[tex-eplain] replace final comma with period

Oleg Katsitadze olegkat at gmail.com
Wed May 10 18:44:50 CEST 2006


On Wed, May 10, 2006 at 07:21:32PM +0300, Oleg Katsitadze wrote:
> \everypar={\let\punct\empty}% No punctuation before the first \form.

Even better, reset \punct in \newpar, to avoid \everypar.
So it becomes:

====================CUT====================
% Punctuation between two \form's.
\def\formpunct{; }

% Finish off with a period and reset \par and \punct.
\def\newpar{.\endgraf \let\par\endgraf \let\punct\empty}

\def\form#1#2#3{%
  \punct
  {\it#1\/ }#2 #3%
  \let\punct\formpunct
  \let\par\newpar
  \ignorespaces
}

\let\punct\empty


\form{name}{year}{source}
\form{name}{year}{source}
\form{name}{year}{source}

[...]
====================CUT====================

Best,
Oleg


More information about the tex-eplain mailing list