rch
2014-11-13 19:35:23 UTC
Dear txt2tags- list
Because I've been using LaTeX for a long time,
I'm writing t2t in a sort of hybrid txt2tags x LaTeX dialect.
For example, my t2t references are typed thus
\cite{omega:99}
Getting that postprocessed for xhtml was quite easy
%!postproc(xhtml): '\\cite\{(.*?)\}' '(see ref \1)'
But for LaTeX it seems to be more difficult.
I've ended up with 4 postproc commands
%!postproc(tex): '\\cite\{(.*?)\}' '\cite{\1}'
%!postproc(tex): '\$\\backslash\$' '\\'
%!postproc(tex): '\\\{' '{'
%!postproc(tex): '\\\}' '}'
Could someone tell me how to do the postproc(tex)
for \cite{foobar:2014} in one line?
Richard H
-------- End of Original Message --------
Because I've been using LaTeX for a long time,
I'm writing t2t in a sort of hybrid txt2tags x LaTeX dialect.
For example, my t2t references are typed thus
\cite{omega:99}
Getting that postprocessed for xhtml was quite easy
%!postproc(xhtml): '\\cite\{(.*?)\}' '(see ref \1)'
But for LaTeX it seems to be more difficult.
I've ended up with 4 postproc commands
%!postproc(tex): '\\cite\{(.*?)\}' '\cite{\1}'
%!postproc(tex): '\$\\backslash\$' '\\'
%!postproc(tex): '\\\{' '{'
%!postproc(tex): '\\\}' '}'
Could someone tell me how to do the postproc(tex)
for \cite{foobar:2014} in one line?
Richard H
-------- End of Original Message --------