[R] A LaTeX question -- Hope people won't mind

Steve Lianoglou mailinglist.honeypot at gmail.com
Mon Aug 20 22:29:58 CEST 2012


Hi Paul,

On Mon, Aug 20, 2012 at 4:13 PM, Paul Miller <pjmiller_57 at yahoo.com> wrote:
> Hello All,
>
> Hope people won't mind my posting a LaTeX question here. I know a lot of people who use R are also using LaTeX. I'm in a bit of a rush to complete a document and am having trouble with one aspect of the formatting.

You might get better help here:

http://tex.stackexchange.com/

But:

> I'm creating a list of tables using:
>
> \listoftables
>
> I also have some table captions that contain the number of patients in an anlysis like:
>
> \caption{Results for Random Forest Model Using Scoring Data (N = 700)}
>
> The tables look great. Trouble is that LaTeX inserts the "(N = 700)" into the text in the List of Tables at the beginning of the document. I'd prefer that it not do so.

I think you can do something like:

\caption[Short caption for listoftables]{Longer caption for body of text ...}

HTH,
-steve

-- 
Steve Lianoglou
Graduate Student: Computational Systems Biology
 | Memorial Sloan-Kettering Cancer Center
 | Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact




More information about the R-help mailing list