[texhax] Smart periods?

Shubho Roy shubho.roy85 at gmail.com
Mon Nov 5 03:44:17 CET 2012


This can be solved using a 'regular expression' search. You need to search
for [a-z]\}. You can use either the editors search and replace or some
other program. Syntax will vary accordingly.
On Nov 4, 2012 11:34 PM, "Michael Barr" <barr at math.mcgill.ca> wrote:

>
> Surely someone has solved this problem.  The online journal I do tex
> editing for uses \subsection and \subsubsection run in to the text.  The
> problem is that we want to add a period to the title unless there is
> already a punctuation mark.  But I have seen the following in authors'
> texts (even my own, I must admit).
> \subsection{This is a subsection}
> \subsection{This is a subsection.}
> \subsection{Is this a subsection?}
> \subsection{This is an amazing subsection!}
> and I would want to automatically add a period to the first form and leave
> the remaining three unchanged.  This is also an issue for the starred
> version.  I have tried a couple of solutions, none of which quite worked.
>  Yet it seems like an obvious thing for someone to have dealt with.
>
> Michael
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
>
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20121105/5b679374/attachment.html>


More information about the texhax mailing list