[texhax] Inter-sentence space with amsthm
Uwe Lück
uwe.lueck at web.de
Wed Aug 5 22:32:28 CEST 2009
[Please ignore previous again and read this here ... 3 mistakes ... Arial
... actually I need the cursor keys myself in order to count blank spaces
here, even to distinguish '\.' from '\. ']
So I was wrong! ... [stil quoting like '...']
----- on 14:30 2009/08/05 Pierre MacKay wrote: -----
> Just a slight clarification for the required space after `\.
> or for any other char number. The space is there to
> terminate the number, as with all other numbers.
> If you don't have it, and the next character happens
> to be a number, TeX goes on evaluating digits,
> and you get a result that is much too large to be a char number.
> A good protection against this is {} or enclosing braces.
I was not aware that '`\.' behaves just like '3000' w.r.t. ensuing spaces
(TeXbook pp. 269ff. on <normal integer>).
(Instead I thought that '\.' is a control symbol, so according to p. 46 ...)
This means that in order really to produce a space (that obeys
\spacefactor), you have the following options:
'\spacefactor=3000 \space'
'\spacefactor=3000\relax\space'
'\spacefactor=3000{} '
'\spacefactor=\sfcode`\. \space'
'\spacefactor=\sfcode`\.\relax \space'
'\spacefactor=\sfcode`\.{} '
(tested). These fail (immediate '\space' or repeated blank space):
'\spacefactor=3000\space'
'\spacefactor=3000 '
'\spacefactor=\sfcode`\.\space'
'\spacefactor=\sfcode`\. '
-- Uwe L.
_______________________________________________
At 14:30 05.08.09, pierre.mackay at comcast.net wrote:
>----- Original Message -----
>From: "Uwe Lück" <uwe.lueck at web.de>
>To: "Joel C. Salomon" <joelcsalomon at gmail.com>, "texhax" <texhax at tug.org>
>Sent: Thursday, August 6, 2009 7:17:17 AM (GMT-0300) Auto-Detected
>Subject: Re: [texhax] Inter-sentence space with amsthm
>
>[Please ignore previous, too many errors, partially due to Arial. I use
>single right quotes on both sides for quoting here because the original
>posting used this style. That's important with '\sfcode`\.'!]
>
>At 02:54 23.06.09, Joel C. Salomon wrote:
> >I'm playing with amsthm, and want to define a theorem style like:
> > Example:**To avoid lithobraking, most rockets...
> > where the '**' is the wide space TeX puts between sentences.
> >
> >The eight[th] argument to \newtheoremstyle is the "head space"; and I know
> >I can give it an explicit (inter-word) space, '\newline', or a dimension
> >like 0.5em. But what is the size of the inter-sentence space?
>
>It is described on pp. 75f. of the TeXbook. With '\frenchspacing', you get
>inter-sentence space just by ' ' or '\space', i.e., inter-sentence space
>doesn't differ from inter-word space. With '\nonfrenchspacing', you get the
>inter-sentence space the same way as before, if the current \spacefactor is
>3000, so just precede the same space with '\spacefactor=3000' ... however:
>not so easy ... better type: '\spacefactor=3000\relax\space' ('\ ' in
>place of '\space' doesn't work). More generally, one might /define/
>inter-sentence space as the horizontal glue that is inserted after the dot
>of '\spacefactor=1000. ' (arguing that '. ' is the "definitive sentence
>delimiter"). In this sense the space is obtained by
>'\spacefactor=\sfcode`\. '. (Note the space after '\.'. Not tested.)
>
>HTH -- Uwe Lueck.
>
>Just a slight clarification for the required space after `\.
>or for any other char number. The space is there to terminate the number,
>as with all other numbers. If you don't have it, and the next character
>happens to be a number, TeX goes on evaluating digits, and you get a
>result that is much too large to be a char number. A good protection
>against this is {} or enclosing braces.
>
>Pierre MacKay
More information about the texhax
mailing list