Obviously that helps Ross!!!!!<div><br></div><div>it works like a Swiss Clockwork!!!! <br><br></div><div>Thanks!!!</div><div><br><div class="gmail_quote">On 15 February 2010 19:31, Ross Moore <span dir="ltr"><<a href="mailto:ross@ics.mq.edu.au">ross@ics.mq.edu.au</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Sr.<div><div></div><div class="h5"><br>
<br>
On 16/02/2010, at 3:44 AM, Sr Sur wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi everybody,<br>
<br>
I'm trying to change the caption of a single figure, I need to put a flag between the number of the figure and the colon, I've used this line to redefine it in the preamble of the figure:<br>
<br>
\renewcommand{\thefigure}{\thechapter.\arabic{figure} (begins in the page before)}<br>
<br>
With this I obtain the result that i want. But there are two problems with this way....<br>
<br>
1. the flag appears in the list of tables....<br>
2. The flag also apears in the text when you reference the figure...<br>
<br>
<br>
Is there any way to put the flag and avoid the points 1 and 2???<br>
</blockquote>
<br></div></div>
You need to define some markup that only has a non-trivial<br>
meaning within a specific environment; e.g., within those<br>
figures that need the special captions.<br>
<br>
e.g.,<br>
something like the following in the preamble:<br>
<br>
\DeclareRobustCommand{\captiononly}[1]{\docaptiononly{#1}}<br>
\newcommand{\docaptiononly}[1]{}% default is to gobble contents<br>
\newcommand{\insidecaption}[1]{ (#1)}% use this method to show it<br>
\newcommand{\prevpagethefigure}{\thechapter.\arabic{figure}%<br>
\captiononly{begins on the previous page}}% use the *robust* command<br>
<br>
\newenvironment{prevpagefigure}<br>
{\let\docaptiononly\insidecaption<br>
\let\thefigure\prevpagethefigure<br>
\begin{figure}}<br>
{\end{figure}}<br>
<br>
<br>
Now use:<br>
\begin{prevpagefigure}<br>
...<br>
\caption{...}% as per normal<br>
\label{...}% as per normal<br>
\end{prevpagefigure}<br>
<br>
<br>
This should handle the visual appearance properly.<br>
Check the contents of the .lof file; it should be like<br>
<br>
\contentsline {figure}{\numberline {0.1\captiononly {begins on the previous page}}{\ignorespaces ... }}{3}<br>
<br>
but \captiononly will just cleanly gobble its content.<br>
<br>
<br>
Similarly in the .aux file you should get:<br>
<br>
\@writefile{lof}{\contentsline {figure}{\numberline {0.1\captiononly {begins on the previous page}}{\ignorespaces ... }}{3}}<br>
\newlabel{whatever}{{0.1\captiononly {begins on the previous page}}{3}}<br>
<br>
but again the \captiononly gobbles what follows,<br>
when you use Figure~\ref{whatever} .<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
thanks!!!!!!!!<br>
<br>
<br>
-- <br>
Atte: Sr. Sur<br>
</blockquote>
<br>
<br>
Hope this helps,<br>
<br>
Ross<br>
<br>
------------------------------------------------------------------------<br><font color="#888888">
Ross Moore <a href="mailto:ross@maths.mq.edu.au" target="_blank">ross@maths.mq.edu.au</a><br>
Mathematics Department office: E7A-419<br>
Macquarie University tel: +61 (0)2 9850 8955<br>
Sydney, Australia 2109 fax: +61 (0)2 9850 8114<br>
------------------------------------------------------------------------<br>
<br>
<br>
<br>
</font><br>----------- Please Consult the Following Before Posting -----------<br>
TeX FAQ: <a href="http://www.tex.ac.uk/faq" target="_blank">http://www.tex.ac.uk/faq</a><br>
List Reminders and Etiquette: <a href="http://email.esm.psu.edu/mac-tex/" target="_blank">http://email.esm.psu.edu/mac-tex/</a><br>
List Archive: <a href="http://tug.org/pipermail/macostex-archives/" target="_blank">http://tug.org/pipermail/macostex-archives/</a><br>
TeX on Mac OS X Website: <a href="http://mactex-wiki.tug.org/" target="_blank">http://mactex-wiki.tug.org/</a><br>
List Info: <a href="http://email.esm.psu.edu/mailman/listinfo/macosx-tex" target="_blank">http://email.esm.psu.edu/mailman/listinfo/macosx-tex</a><br>
<br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Atte: Sr. Sur<br><br>
</div>