[OS X TeX] finding missing braces

Herbert Schulz herbs at wideopenwest.com
Mon Mar 5 18:45:11 EST 2007


On Mar 4, 2007, at 5:05 PM, Roussanka Loukanova wrote:

>> Howdy,
>>
>> I believe the problem is intractable. How can a program know what  
>> you intended? E.g., suppose you leave off a closing brace in a  
>> sentence,
>>
>> \emph{emphasized text ...
>>
>> how will a program know whether the closing brace goes after the  
>> word `emphasized' or the word `text', or ...?
>
> Right: In cases like the above, \emph{emphasized text ..., the  
> error notice in the log (e.g., the console in TeXShop) may say that  
> the scope of the unmatched "{" goes to the last line of the entire  
> tex file.
>

Howdy,

Just as a note: since \emph{...} is meant for short snippets it will  
stop and complain if you come the end of a paragraph and it hasn't  
reached a closing brace. I.e., it is a ``short'' command.

Good Luck,

Herb Schulz
(herbs at wideopenwest.com)



------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/





More information about the MacOSX-TeX mailing list