[OS X TeX] Goto Error (TS 4.23)
Ross Moore
ross.moore at mq.edu.au
Mon Jan 28 23:46:56 CET 2019
Hello Louis, Justin, Themis,
On 29 Jan 2019, at 9:18 am, Louis Talman <talmanl at gmail.com<mailto:talmanl at gmail.com>> wrote:
On Mon, 28 Jan 2019 13:18:32 -0700, Justin C. Walker <justin at mac.com<mailto:justin at mac.com>>
wrote:
> the error occurs where the closing brace isn’t :-}, and that is hard to
> locate…
Is your error the missing closing brace?
That is actually not an error until TeX encounters something that is not supposed
to be enclosed within \textit{…. } which is an “inner” macro.
“Outer" material is stuff like an end of paragraph (\par or blank line).
This inner/outer distinction is part of TeX (the language).
It isn’t all that well explained in LaTeX documentation.
Put simply, macros like \textit, \textbf, \textsf, etc. are meant to have short arguments
consisting of just a few words. Although they can be nested, this is usually not a good idea.
If you want to apply font-style changes to whole paragraphs, or to several paragraphs
(within an environment, or perhaps not), it is better to use the declarative forms
\itshape, \bfseries , \sffamily, etc.
These apply up until the closing of the grouping within which they occur.
Since each adjust font-family characteristics, you can use multiples of these to get
the required representation; e.g. use a bold-italic sans-serif font, if this is available
with whatever packages you are using.
In your case however, it’s probably not until the end of the paragraph that an error will be reported.
Maybe not until several paragraphs, depending on how clean is your LaTeX coding.
Cannot you use syntax-colouring to find the mistake?
Locate \textit and arrow-right to the { .
Everything until *an* actual close should become coloured.
Presumably only a few words were intended, so you’ll have to decide which ones for yourself.
A bit more precisely: \textit{everywhere} is where the closing brace isn't.
--Louis A. Talman, Ph.D.
Emeritus Professor of Mathematics
Metropolitan State University of Denver
<http://sites.msudenver.edu/talmanl/homepage/<https://protect-au.mimecast.com/s/agALC5QP8ySgPp5GClmbT1?domain=sites.msudenver.edu>>
Hope this helps.
Ross
Dr Ross Moore
Department of Mathematics and Statistics
12 Wally’s Walk, Level 7, Room 734
Macquarie University, NSW 2109, Australia
T: +61 2 9850 8955 | F: +61 2 9850 8114
M:+61 407 288 255 | E: ross.moore at mq.edu.au<mailto:ross.moore at mq.edu.au>
http://www.maths.mq.edu.au
[cid:image001.png at 01D030BE.D37A46F0]
CRICOS Provider Number 00002J. Think before you print.
Please consider the environment before printing this email.
This message is intended for the addressee named and may
contain confidential information. If you are not the intended
recipient, please delete it and notify the sender. Views expressed
in this message are those of the individual sender, and are not
necessarily the views of Macquarie University. <http://mq.edu.au/>
<http://mq.edu.au/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/macostex-archives/attachments/20190128/83e8ec5b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 4605 bytes
Desc: image001.png
URL: <https://tug.org/pipermail/macostex-archives/attachments/20190128/83e8ec5b/attachment-0001.png>
-------------- next part --------------
----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex
More information about the macostex-archives
mailing list