[texhax] Last char of a string
Uwe Lueck
uwe.lueck at web.de
Thu Jul 7 15:37:57 CEST 2011
"Michael Barr" barr at math.mcgill.ca[mailto:barr at math.mcgill.ca] wrote 07.07.2011 15:05:53
> Is there any easy way to find the last character of a string?
>
> Why? Well the online journal I do the tex editing for uses runin
> subsection titles. They have to end with a period or other punctuation.
> So I want to look at the last character of the title and add a period
> unless it already is a period (or question mark or even an exclamation
> point).
What was wrong with Donald's earlier answer to your same question earlier?
http://tug.org/pipermail/texhax/2010-January/014192.html[http://tug.org/pipermail/texhax/2010-January/014192.html]
I proposed then
http://tug.org/pipermail/texhax/2010-January/014189.html[http://tug.org/pipermail/texhax/2010-January/014189.html]
Wondering
Uwe.
More information about the texhax
mailing list