Re: Figure caption macro

2007-07-04 Thread Daniel Lohmann
Enrico Forestieri wrote: > Try the following: > > \let\oldcaption\caption > \def\takeshort#1.#2\next{\gdef\short{#1}\gdef\everything{{\bfseries #1}.~~#2}} > \def\caption#1{\takeshort#1\next\oldcaption[\short]{\everything}} > >> I am a bit confused... Why there is such a big difference in the eff

Re: Figure caption macro

2007-07-03 Thread Enrico Forestieri
Daniel Lohmann writes: > I would also like to highlight the first sentence and add some extra > space to visually separate it from the additional text. The following > shows the relevant parts of my preamble (I use koma-script): > > % Figure captions > \let\oldcaption\caption > \def\takeshort#1.#

Re: Figure caption macro

2007-07-03 Thread Lyx user
> May I ask why you want to do that? What is wrong with using > Insert>Short Title? Simple, I didn't know that Short Title worked on captions. Maybe it should be called "Short Title or Caption" or "Short Title/Caption." Nevertheless, I am going to use the macro because it will save me some effort

Re: Figure caption macro

2007-07-03 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Abdelrazak> I am probably missing something but the objective of the Abdelrazak> short title is to replace the caption text in the list of Abdelrazak> figures or tables. What is the benefit of having the s

Re: Figure caption macro

2007-07-03 Thread Jean-Marc Lasgouttes
> "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Abdelrazak> I am probably missing something but the objective of the Abdelrazak> short title is to replace the caption text in the list of Abdelrazak> figures or tables. What is the benefit of having the same Abdelrazak> text? So

Re: Figure caption macro

2007-07-03 Thread Abdelrazak Younes
Daniel Lohmann wrote: Jean-Marc Lasgouttes wrote: "Lyx" == Lyx user <[EMAIL PROTECTED]> writes: Lyx> I would like to insert code in my preamble that will replace Lyx> every instance of \caption{Short. Long long long long.} Lyx> with Lyx> \caption[Short]{Short. Long long long long.} May I ask

Re: Figure caption macro

2007-07-03 Thread Jean-Marc Lasgouttes
> "Daniel" == Daniel Lohmann <[EMAIL PROTECTED]> writes: Daniel> Jean-Marc Lasgouttes wrote: >>> "Lyx" == Lyx user <[EMAIL PROTECTED]> writes: >> Lyx> I would like to insert code in my preamble that will replace Lyx> every instance of \caption{Short. Long long long long.} >> Lyx> with >>

Re: Figure caption macro

2007-07-03 Thread Daniel Lohmann
Jean-Marc Lasgouttes wrote: >> "Lyx" == Lyx user <[EMAIL PROTECTED]> writes: > > Lyx> I would like to insert code in my preamble that will replace > Lyx> every instance of \caption{Short. Long long long long.} > > Lyx> with > > Lyx> \caption[Short]{Short. Long long long long.} > > May I ask

Re: Figure caption macro

2007-07-03 Thread Jean-Marc Lasgouttes
> "Lyx" == Lyx user <[EMAIL PROTECTED]> writes: Lyx> I would like to insert code in my preamble that will replace Lyx> every instance of \caption{Short. Long long long long.} Lyx> with Lyx> \caption[Short]{Short. Long long long long.} May I ask why you want to do that? What is wrong with us

Re: Figure caption macro

2007-07-03 Thread Daniel Lohmann
Enrico Forestieri wrote: > Lyx user writes: > >> I would like to insert code in my preamble that will replace every instance >> of >> >> \caption{Short. Long long long long.} >> >> with >> >> \caption[Short]{Short. Long long long long.} >> >> However, I am not too familiar with LaTeX and TeX comm

Re: Figure caption macro

2007-07-02 Thread Enrico Forestieri
Lyx user writes: > > I would like to insert code in my preamble that will replace every instance of > > \caption{Short. Long long long long.} > > with > > \caption[Short]{Short. Long long long long.} > > However, I am not too familiar with LaTeX and TeX commands. Specifically, I > don't know

Figure caption macro

2007-07-02 Thread Lyx user
I would like to insert code in my preamble that will replace every instance of \caption{Short. Long long long long.} with \caption[Short]{Short. Long long long long.} However, I am not too familiar with LaTeX and TeX commands. Specifically, I don't know how to extract the text before the '.' ch