diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-08-01 13:39:31 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-08-01 13:39:31 +0200 |
commit | c44a9d2f89620e439f335029689e7f0dff9516b7 (patch) | |
tree | 1062a464cb13362d82598c41c437ab1c7eb4f236 /doc/context/sources/general/manuals/spacing/spacing-linecorrection.tex | |
parent | 665f9095475ffcd1c8750546727c75e5486a266f (diff) | |
download | context-c44a9d2f89620e439f335029689e7f0dff9516b7.tar.gz |
2016-08-01 13:07:00
Diffstat (limited to 'doc/context/sources/general/manuals/spacing/spacing-linecorrection.tex')
-rw-r--r-- | doc/context/sources/general/manuals/spacing/spacing-linecorrection.tex | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/doc/context/sources/general/manuals/spacing/spacing-linecorrection.tex b/doc/context/sources/general/manuals/spacing/spacing-linecorrection.tex new file mode 100644 index 000000000..c16afbf0a --- /dev/null +++ b/doc/context/sources/general/manuals/spacing/spacing-linecorrection.tex @@ -0,0 +1,108 @@ +% language=uk + +\environment spacing-style + +\startcomponent spacing-linecorrection + +\startchapter[title=Line correction] + +\startbuffer[linecorrection] +\typebuffer +\blank +\enabletrackers[linecorrection.boxes] +\getbuffer +\disabletrackers[linecorrection.boxes] +\blank +\stopbuffer + +We really do out best to make the spacing look as good as possible +(or at least consistent) but sometimes \TEX\ needs a bit of help. +An example of a helper is the following: + +\startbuffer +\startlinecorrection + \input ward +\stoplinecorrection +\stopbuffer + +\getbuffer[linecorrection] + +When we use the same command with some left and/or right margins set, we get +this: + +\startbuffer +\startnarrower + \startlinecorrection + \input ward + \stoplinecorrection +\stopnarrower +\stopbuffer + +\getbuffer[linecorrection] + +Here we do obey the margins inside the correction box but the box itself is still +as wide as the current width. A typical case where this happens is: + +\startbuffer +\startitemize + \startitem an item: + \startlinecorrection + \input ward + \stoplinecorrection + \stopitem +\stopitemize +\stopbuffer + +\getbuffer[linecorrection] + +Here is a variant: + +\startbuffer +\startitemize + \startitem a local linecorrection: + \startlocallinecorrection + \input ward + \stoplocallinecorrection + \stopitem +\stopitemize +\stopbuffer + +\getbuffer[linecorrection] + +Both types of correction wrap their content in a box and make sure that the +spacing around it is visually as good as possible. The local variant uses a box +fitting the available width taking margins into account and but resetting them +inside the box. The normal variant applies the margins inside the box. Which one +you use depends on the situation and content. + +You can pass an optional argument that indicates the amount of spacing to be +added before and after the correction. + +\startbuffer +\startlinecorrection[3*line] + \input ward +\stoplinecorrection +\stopbuffer + +\getbuffer[linecorrection] + +Normally you don't need this correction. It is mainly used for correcting spacing +around boxed material, like \type {\framed}: + +\startbuffer +before +\startlinecorrection + \framed{something inbetween} +\stoplinecorrection +after +\stopbuffer + +\getbuffer[linecorrection] + +Because in this document we have set the whitespace this also gets added around +the box. So, in case your spacing around some special content looks bad, consider +using these commands. + +\stopchapter + +\stopcomponent |