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
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.#
> 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
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
> "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
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
> "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
>>
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
> "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
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
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
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
12 matches
Mail list logo