Re: Two latex questions

2001-04-13 Thread Dekel Tsur

On Thu, Apr 12, 2001 at 11:45:26AM +0200, Stefano Ghirlanda wrote:
> Brett Jones <[EMAIL PROTECTED]> writes:
> 
> > First, I cite a reference in a figure caption, but don't like that
> > it shows up in the TOF.  Is there a way to show the reference in the
> > figure caption, but not in the TOF?
> 
> In LaTeX you can provide an optional argument to caption, that is used
> in the tof. In LyX you could try to put [your tof text] as the first
> thing in the caption.

This won't work.

A nice way for having both caption and a short caption is the following:

Modify the stdlayouts.inc file (or just the layout file
you use for your document), adding to it the following lines:

---begin-
Style ShortCaption
 CopyStyle Caption
 LatexName setshortcaption
 LabelString   "Short Caption:"
 LabelType Static
 Preamble
\let\oldcaption=\caption
\renewcommand{\caption}[1]{
\ifx \shortcaption \undefined
  \oldcaption{#1}
\else
  \oldcaption[\shortcaption]{#1}
\fi
}
\newcommand{\setshortcaption}[1]{
\newcommand{\shortcaption}{#1}
}
 EndPreamble
End
-end-
Then you can put a short caption paragraph before your caption paragraph.



Re: Two latex questions

2001-04-12 Thread Stefano Ghirlanda

Brett Jones <[EMAIL PROTECTED]> writes:

> First, I cite a reference in a figure caption, but don't like that
> it shows up in the TOF.  Is there a way to show the reference in the
> figure caption, but not in the TOF?

In LaTeX you can provide an optional argument to caption, that is used
in the tof. In LyX you could try to put [your tof text] as the first
thing in the caption.

> Second, I have a couple LARGE figures that just about fill the page.
> Trouble is, that they cover the page numbers in the std report
> format.  Actually, it's OK when that happens, but sometimes they
> don't cover the page number, and the caption ends up beneath it.  Is
> there a way to either turn off or reposition the page number, just
> for the page that a float ends up on?

You can do that by putting \thispagestyle{empty} just before the
figure (or perhaps even better inside the caption?).

But you should be sure that figures fit properly! Use height=100% in
the figure box to do this.

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



Two latex questions

2001-04-12 Thread Brett Jones

I have two latex questions if anyone has a minute to help me.

First, I cite a reference in a figure caption, but don't like that it shows up
in the TOF.  Is there a way to show the reference in the figure caption, but not
in the TOF?

Second, I have a couple LARGE figures that just about fill the page.  Trouble
is, that they cover the page numbers in the std report format.  Actually, it's
OK when that happens, but sometimes they don't cover the page number, and the
caption ends up beneath it.  Is there a way to either turn off or reposition the
page number, just for the page that a float ends up on?

Thanks for any help.

Brett