summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/langsci/langsci-basic.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/langsci/langsci-basic.sty')
-rw-r--r--Master/texmf-dist/tex/xelatex/langsci/langsci-basic.sty42
1 files changed, 34 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/xelatex/langsci/langsci-basic.sty b/Master/texmf-dist/tex/xelatex/langsci/langsci-basic.sty
index 152790db886..c8165b4710f 100644
--- a/Master/texmf-dist/tex/xelatex/langsci/langsci-basic.sty
+++ b/Master/texmf-dist/tex/xelatex/langsci/langsci-basic.sty
@@ -1,11 +1,11 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% File: langsci-basic.sty
%% Author: Language Science Press (http://langsci-press.org)
-%% Date: 2016-01-16 16:47:43 UTC
-%% Purpose: This file contains essential macros and is included
+%% Date: 2016-01-16 16:47:43 UTC
+%% Purpose: This file contains essential macros and is included
%% into langscibook.cls
%% Language: LaTeX
-%% Licence:
+%% Licence:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\sectref}[1]{§\ref{#1}}
@@ -14,8 +14,30 @@
\newcommand{\tabref}[1]{Table~\ref{#1}}
\newcommand{\figref}[1]{Figure~\ref{#1}}
+
+\ifx\lsBookLanguage\lsBookLanguageFrench
+ \newcommand{\chapref}[1]{Chapitre~\ref{#1}}
+ \newcommand{\partref}[1]{Partie~\ref{#1}}
+ \newcommand{\tabref}[1]{Tableau~\ref{#1}}
+ \newcommand{\figref}[1]{Figure~\ref{#1}}
+\fi
+
+\ifx\lsBookLanguage\lsBookLanguageGerman
+ \newcommand{\chapref}[1]{Kapitel~\ref{#1}}
+ \newcommand{\partref}[1]{Teil~\ref{#1}}
+ \newcommand{\tabref}[1]{Tabelle~\ref{#1}}
+ \newcommand{\figref}[1]{Abbildung~\ref{#1}}
+\fi
+
+\ifx\lsBookLanguage\lsBookLanguagePortuguese
+ \newcommand{\chapref}[1]{Capítulo~\ref{#1}}
+ \newcommand{\partref}[1]{Parte~\ref{#1}}
+ \newcommand{\tabref}[1]{Tabela~\ref{#1}}
+ \newcommand{\figref}[1]{Figura~\ref{#1}}
+\fi
+
\newcommand{\lsptoprule}{\midrule\toprule}
-\newcommand{\lspbottomrule}{\bottomrule\midrule}
+\newcommand{\lspbottomrule}{\bottomrule\midrule}
\newcommand{\REF}[1]{(\ref{#1})}
@@ -30,11 +52,12 @@
\newcommand{\db}{\hspaceThis{[}} %dummy space for [ in IMT line
\newcommand{\rmfnm}{{\upshape\footnotemark}} %romanfootnotemark
-\newcommand{\citegen}[2][]{\citeauthor{#2}'s (\citeyear[#1]{#2})}
+\newcommand{\citegen}[2][]{\citeauthor{#2}'s (\citeyear*[#1]{#2})}
+\newcommand{\citeapo}[2][]{\citeauthor{#2}' (\citeyear*[#1]{#2})}
\newcommand{\protectedex}[1]{
\noindent
-\parbox{\textwidth}{
+\parbox{\textwidth}{
#1}
}
@@ -42,7 +65,7 @@
\enlargethispage{#1\baselineskip}
}
-\newcommand\shorttitlerunninghead[1]{\rohead{\thechapter\hspace{.5em} #1}}
+\newcommand\shorttitlerunninghead[1]{\rohead{\thechapter\hspace{.5em} #1}}
% old font commands
\renewcommand{\it}{\itshape}
@@ -51,4 +74,7 @@
\renewcommand{\rm}{\upshape}
% vertical space to structure tables
-\newcommand{\tablevspace}{\\[-.5em]} \ No newline at end of file
+\newcommand{\tablevspace}{\\[-.5em]}
+
+\let\oldfootnotemark\footnotemark
+\renewcommand{\footnotemark}{\upshape\oldfootnotemark}