Discussion:
Change 'Abstract' to 'Summary' in article class when working with babel and English (UK)
Roey Angel
2012-12-06 13:30:38 UTC
Permalink
Hi,
I'm trying to change the section name 'Abstract' to 'Summary' in an article
class document with babel enabled and language set to English (UK).
So far I tried to place in the preamble:

\AtBeginDocument{%
\addto\captions\captionsenglish{%
\renewcommand{\abstractname}{Summary}%
}}
or

\AtBeginDocument{%
\addto\captionsenglish{%
\def\abstractname{Summary}%
}}

or in the document, an ERT with
\renewcommand\abstractname{Summary}

but nothing worked

I also tried replacing \captionsenglish with \captionsbritish or
\captionsUKenglish, but both didn't work.

Any suggestions?

Roey
Waluyo Adi Siswanto
2012-12-06 15:20:16 UTC
Permalink
Did you try

\AtBeginDocument{%
\renewcommand{\abstractname}{Summary}%
}

that works for me in default language.

regards,
waluyo
Post by Roey Angel
Hi,
I'm trying to change the section name 'Abstract' to 'Summary' in an article
class document with babel enabled and language set to English (UK).
\AtBeginDocument{%
\addto\captions\captionsenglish{%
\renewcommand{\abstractname}{Summary}%
}}
or
\AtBeginDocument{%
\addto\captionsenglish{%
\def\abstractname{Summary}%
}}
or in the document, an ERT with
\renewcommand\abstractname{Summary}
but nothing worked
I also tried replacing \captionsenglish with \captionsbritish or
\captionsUKenglish, but both didn't work.
Any suggestions?
Roey
Roey Angel
2012-12-06 15:38:53 UTC
Permalink
Works great!
Why the hell is it documented wrongly under http://wiki.lyx.org/FAQ/Unsorted?!?

Thanks
Yama Ploskonka
2012-12-06 15:43:38 UTC
Permalink
It's a wiki. Now that you know better, can you fix it, please?
Post by Roey Angel
Works great!
Why the hell is it documented wrongly under http://wiki.lyx.org/FAQ/Unsorted?!?
Thanks
Roey Angel
2012-12-06 16:09:08 UTC
Permalink
Fixed

Thanks again
Uwe Stöhr
2012-12-06 23:23:37 UTC
Permalink
Post by Roey Angel
Why the hell is it documented wrongly under http://wiki.lyx.org/FAQ/Unsorted?!?
This is because first with LyX 2.0.5 we don't load the package babel if your document language is
English. Note that if your document contains another language, and if that#s only a quote from a
French philosopher, you again will have to use \addtocaptionsenglish.

regards Uwe
Roey Angel
2012-12-07 12:49:22 UTC
Permalink
Hi Uwe,
Thanks, good to know.
But in my case I set the language to English (UK) which does load babel.
Also the LyX wiki entry I was talking about refers to cases where babel is
loaded, otherwise \renewcommand\abstractname{Executive Summary} works.

p.s
why did you change the wiki back to the old description.

\AtBeginDocument{%
\addto\captions<your language>{%
\renewcommand{\abstractname}{In nuce}%
}}


Doesn't seem to work.

Roey

Nikos Alexandris
2012-12-06 21:55:08 UTC
Permalink
Post by Roey Angel
Hi,
Hi!
Post by Roey Angel
I'm trying to change the section name 'Abstract' to 'Summary' in an article
class document with babel enabled and language set to English (UK).
\AtBeginDocument{%
\addto\captions\captionsenglish{%
\renewcommand{\abstractname}{Summary}%
}}
or
\AtBeginDocument{%
\addto\captionsenglish{%
\def\abstractname{Summary}%
}}
or in the document, an ERT with
\renewcommand\abstractname{Summary}
Did you try the above in the Preamble, i.e.
\renewcommand\abstractname{Summary}

without the "\AtBeginDocument" stuff?

..

Cheers, Nikos
Roey Angel
2012-12-07 12:43:07 UTC
Permalink
Hi Nikos,
No this doesn't work when babel is loaded.
See: http://wiki.lyx.org/FAQ/Unsorted
Loading...