LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Classic View

Use Monospaced Font
Show HTML Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Hans Aberg <[log in to unmask]>
Thu, 22 Oct 1998 15:36:10 +0200
text/plain (25 lines)
>... depending on the context, the
>punctuation might be . , ; ! : or whatever.  I don't see how LaTeX could
>guess this from the context.
>
>Easier would be to define yourself (or in the appropriate journal class;
>perhaps that discussion will rear its ugly head again soon) things like
>\period, \comma and so on which you could stick in before the
>\end{equation}.  You could define them to correspond to their names or
>just to do nothing as the style required.

  What I had my mind is that the author just concentrates on writing out
the text logically (just as in the case of the quotes); this then provides
the context which a style can process. Thus, one would simply write
  \begin{equation} 2+2=4 \end{equation}.
                    % Note period here ^

The \end{equation} makes an one character lookahead, and processes it
according to the style definition. (I think this would be possible with the
"environments with hooks" I wrote some code for a long time ago.)

  Hans Aberg
                  * Email: Hans Aberg <mailto:[log in to unmask]>
                  * Home Page: <http://www.matematik.su.se/~haberg/>
                  * AMS member listing: <http://www.ams.org/cml/>

ATOM RSS1 RSS2