Discussion:
Underlining captions
(too old to reply)
D***@uml.edu
2007-03-16 00:05:02 UTC
Permalink
For a thesis (not my choice!), I need to underline Table n. or Figure
m. .How would I modify the existing format to accommodate the required
format. If I simply put \underline in the capture argument the Table
or Figure is left with no underline. I am sure there is a way, but not
yet charted those waters yet so a point in the right direction would
be greatly appreciated.
Alan Munn
2007-03-16 04:15:08 UTC
Permalink
Post by D***@uml.edu
For a thesis (not my choice!), I need to underline Table n. or Figure
m. .How would I modify the existing format to accommodate the required
format. If I simply put \underline in the capture argument the Table
or Figure is left with no underline. I am sure there is a way, but not
yet charted those waters yet so a point in the right direction would
be greatly appreciated.
Are you sure that they really need to be underlined? Many thesis style
guides use underlining but mean italics and the thesis office will
(should?) allow it if you grumble.

If you really have to do it, the easiest is to use the caption package
and make your own caption format. (This will also ease the job of
making them italics if your grumble is successful.) See the
documentation for caption for more details on how this works. -Alan


\documentclass{article}
\usepackage{caption}

\DeclareCaptionFormat{underline}{\underline{#1}#2#3\par}
\captionsetup{format=underline}

\begin{document}

\begin{figure}
\caption{This is the caption}
\end{figure}
\end{document}
Dvan@uml.edu
2007-03-16 13:18:19 UTC
Permalink
Post by Alan Munn
Post by D***@uml.edu
For a thesis (not my choice!), I need to underline Table n. or Figure
m. .How would I modify the existing format to accommodate the required
format. If I simply put \underline in the capture argument the Table
or Figure is left with no underline. I am sure there is a way, but not
yet charted those waters yet so a point in the right direction would
be greatly appreciated.
Are you sure that they really need to be underlined? Many thesis style
guides use underlining but mean italics and the thesis office will
(should?) allow it if you grumble.
If you really have to do it, the easiest is to use the caption package
and make your own caption format. (This will also ease the job of
making them italics if your grumble is successful.) See the
documentation for caption for more details on how this works. -Alan
\documentclass{article}
\usepackage{caption}
\DeclareCaptionFormat{underline}{\underline{#1}#2#3\par}
\captionsetup{format=underline}
\begin{document}
\begin{figure}
\caption{This is the caption}
\end{figure}
\end{document}
I am sure it needs to be underlined. Any deviation from the guide is
not tolerated. I am not even supposed to be using LaTex. I was told
already a few times to re-type it in Word, but I am bring stubborn on
this. Its way to much work in Word and it looks even worse. Anyway
That looks like it does the job. I think I understand what the command
does, what are the #1 #2 and #3 refering to exactly ? I am just
curious.
Thanks a bunch
Axel Sommerfeldt
2007-03-16 13:37:59 UTC
Permalink
Post by ***@uml.edu
what are the #1 #2 and #3 refering to exactly ? I am just
curious.
#1 is referring to the caption `label', something like "Figure 3.2"
#2 is referring to the caption `separator', something like ":"
#3 is referring to the caption `text', something like "This is a figure"

See also doc. of the caption package.

HTH,
Axel

Continue reading on narkive:
Loading...