Changes

Jump to navigation Jump to search
1,383 bytes added ,  17:56, 14 February 2023
mixing broad and packed spaces
In English, the space after some punctuation (most notably after period) is wider than a usual one; this is a standard behaviour of ConTeXt when typesetting in English. If you want to disable it, in plain TeX or LaTeX you would call <code>\frenchspacing</code>is the command in TeX (that also works in ConTeXt).  In ConTeXt, you may say also setup the language instead: <texcode>\setuplanguage[en][spacing=packed]</texcode> instead Here is a nice tweak:  <texcode>\enabledirectives[characters.spaceafteruppercase=normal] \vbox{\hsize 5em x. X\par x.\ X\par X. X\par X.\ X\par}</texcode> By default space after uppercase followed by punctuation is set to <code>traditional</code> which enables a somewhat special hard coded hack in the tex engine where characters with sfcodes 999 nil a following spacecode setting, even when it's triggered by a <code>\ </code>.  == Mixing broad and packed spaces == When current language is set to English, the default is to have broad spaces after punctuation marks. But after an uppercase letter, ConTeXt applies a packed space. Using {{cmd|null}} before the punctuation mark, gives a broad space. If you need a packed space after a punctuation mark use {{cmd|fsp}}<ref>It stands for ''fixed space punctuation'' before the punctuation mark. It requires ConTeXt LMTX from 2023.02.06 17:58.</ref> or simply use {{cmd| }} (backslash and space) after the punctuation mark. This sample shows the commands in use:<ref>Excepting {{cmd|fsp}}, since the command is too new for the ConTeXt version in the wiki.</ref> <context source="yes">\startTEXpage[offset=1em, foregroundstyle={\tfd}]PhD. Next sentence PhD\null. Next sentence word. Next sentence word.\ Next sentence\stopTEXpage</context> == Footnotes == [[Category:Languages]]
139

edits

Navigation menu