summaries,kw
This commit is contained in:
parent
44d445f92d
commit
e25a082520
6 changed files with 55 additions and 42 deletions
|
@ -37,7 +37,7 @@ def build(directory, sign):
|
|||
languages = [language, *other_languages]
|
||||
other_languages = ','.join(other_languages)
|
||||
summaries = ''.join(
|
||||
[f'\\input{{summary.{lang}}}' for lang in languages])
|
||||
[f'\\summary{{{lang}}}' for lang in languages])
|
||||
# display languages
|
||||
for item in ['', language, other_languages, languages, summaries]:
|
||||
print(item)
|
||||
|
|
|
@ -50,9 +50,16 @@ ERROR%
|
|||
{\def\typelong{\instituteshort\ Master's \typeshort}}
|
||||
{\def\typelong{\typeshort\ d’Ingénieur \instituteshort}}
|
||||
|
||||
\ml
|
||||
{\def\kw{one, two, three, four, five, six, seven, eight}}
|
||||
{\def\kw{un, deux, trois, quatre, cinq, six, sept, huit}}
|
||||
% set key words
|
||||
|
||||
\newcommand{\kwa}[1]{%
|
||||
\ifstreq{#1}{english}{one, two, three, four}{}%
|
||||
\ifstreq{#1}{french}{un, deux, trois, quatre}{}%
|
||||
}
|
||||
\newcommand{\kwb}[1]{%
|
||||
\ifstreq{#1}{english}{five, six, seven, eight}{}%
|
||||
\ifstreq{#1}{french}{cinq, six, sept, huit}{}%
|
||||
}
|
||||
|
||||
% links and pdf metadata
|
||||
|
||||
|
@ -60,7 +67,7 @@ ERROR%
|
|||
\hypersetup{
|
||||
pdfinfo={
|
||||
Subject={\typelong},
|
||||
Keywords={\kw},
|
||||
Keywords={\kwa{\mainlanguage}, \kwb{\mainlanguage}},
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
\typelong,\\
|
||||
Bordeaux \dateshort.
|
||||
|
||||
\summaries
|
||||
\input{summaries}
|
||||
|
||||
\thispagestyle{empty}
|
||||
|
||||
|
|
42
cnam/travaux/thesis/thesis/summaries.tex
Normal file
42
cnam/travaux/thesis/thesis/summaries.tex
Normal file
|
@ -0,0 +1,42 @@
|
|||
\newcommand{\summary}[1]{
|
||||
\begin{center}
|
||||
|
||||
\hr
|
||||
|
||||
\textbf{%
|
||||
\ifstreq{#1}{english}{SUMMARY}{%
|
||||
\ifstreq{#1}{french}{RÉSUMÉ}{%
|
||||
}}%
|
||||
}
|
||||
|
||||
\end{center}
|
||||
|
||||
\ifstreq{#1}{english}{%
|
||||
Line 1.\\
|
||||
Line 2.\\
|
||||
Line 3.}{%
|
||||
\ifstreq{#1}{french}{%
|
||||
Ligne 1.\\
|
||||
Ligne 2.\\
|
||||
Ligne 3.}{%
|
||||
}}
|
||||
|
||||
\ifstreq{#1}{english}{%
|
||||
Line 4.\\
|
||||
Line 5.\\
|
||||
Line 6…}{%
|
||||
\ifstreq{#1}{french}{%
|
||||
Ligne 4.\\
|
||||
Ligne 5.\\
|
||||
Ligne 6…}{%
|
||||
}}
|
||||
|
||||
\textbf{%
|
||||
\ifstreq{#1}{english}{Key words:}{%
|
||||
\ifstreq{#1}{french}{Mots clés :}{%
|
||||
}} \kwa{#1},\\\kwb{#1}.%
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
\summaries
|
|
@ -1,18 +0,0 @@
|
|||
\begin{center}
|
||||
|
||||
\hr
|
||||
|
||||
\textbf{SUMMARY}
|
||||
|
||||
\end{center}
|
||||
|
||||
.\\
|
||||
.\\
|
||||
.
|
||||
|
||||
.\\
|
||||
.\\
|
||||
…
|
||||
|
||||
\textbf{Key words: ?, ?, ?, ?,\\
|
||||
?, ?, ?, ?.}
|
|
@ -1,18 +0,0 @@
|
|||
\begin{center}
|
||||
|
||||
\hr
|
||||
|
||||
\textbf{RÉSUMÉ}
|
||||
|
||||
\end{center}
|
||||
|
||||
.\\
|
||||
.\\
|
||||
.
|
||||
|
||||
.\\
|
||||
.\\
|
||||
…
|
||||
|
||||
\textbf{Mots clés : ?, ?, ?, ?,\\
|
||||
?, ?, ?, ?.}
|
Loading…
Add table
Add a link
Reference in a new issue