kks32 / PhDThesisLyX

A LyX PhD thesis template for Cambridge University Engineering Department
MIT License
45 stars 27 forks source link

several abstracts/localisation #1

Closed darked89 closed 9 years ago

darked89 commented 9 years ago

I need to have three separate abstracts in three languages. What is a way to get this, with customized names for these abstracts? Many thanks for your help. It is really well designed, pretty template.

Darek

kks32 commented 9 years ago

Hi @darked89

You need to edit the abstract section in https://github.com/kks32/PhDThesisLyX/blob/master/PhDThesisLyX.layout#L70. Have a look at the babel package for support for different languages.

darked89 commented 9 years ago

Bit late but hopefully still relevant for others: I ended up with simply adding ERT code inside of Lyx doc to include abstracts

%abstract eng
\selectlanguage{english}
\input{head/abstract_en}
%abstract es
\inputencoding{latin1}
\selectlanguage{spanish}
\input{head/abstract_es}

And the example abstract file:

\newenvironment{abstracten}%
{\cleardoublepage\thispagestyle{empty}\null\vfill\begin{center}%
\bfseries\abstractname\end{center}}%
{\vfill\null}
    \begin{abstracten}{english}
    Lorem Ipsum is simply dummy text of the printing and typesetting industry. 
    \end{abstracten}

There is an easier way (i.e. normalize encoding for Lyx doc plus all the tex files => utf8), but above solution works. Also since 300 words abstracts are simple text only, Lyx superpowers are not needed to format them.

Best,

Darek Kedra

kks32 commented 9 years ago

Great! Thanks!