summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/langsci/langscibook.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/langsci/langscibook.cls')
-rw-r--r--Master/texmf-dist/tex/xelatex/langsci/langscibook.cls377
1 files changed, 236 insertions, 141 deletions
diff --git a/Master/texmf-dist/tex/xelatex/langsci/langscibook.cls b/Master/texmf-dist/tex/xelatex/langsci/langscibook.cls
index 3f051f1fcd5..c9f356d2d44 100644
--- a/Master/texmf-dist/tex/xelatex/langsci/langscibook.cls
+++ b/Master/texmf-dist/tex/xelatex/langsci/langscibook.cls
@@ -1,6 +1,7 @@
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% File: langscibook.cls
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% File: langscibook.cls
%% Author: Language Science Press (http://langsci-press.org)
-%% Date: 2021-03-17 18:00 CET
+%% Date: 2022-02-08 14:00 CET
%% Purpose: This file defines the basic document class
%% for books published with Language Science Press.
%% Language: LaTeX
@@ -14,7 +15,7 @@
%% version 2005/12/01 or later.
%%% This work has the LPPL maintenance status `maintained'.
%%% The Current Maintainer of this work is Sebastian Nordhoff.
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Structure of this file:
% \- Early load packages
% \- Default values of variables
@@ -45,18 +46,21 @@
% \- Hyperref
% \- Edited volumes (Collection)
% \- Localisation
-% \_ Miscellaneous
+% \- Miscellaneous
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{langscibook}[2021/03/17 Language Science Press]
+\ProvidesClass{langscibook}[2022/02/08 Language Science Press]
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Early load packages
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage[]{silence}
\WarningsOff[hyperref]
\WarningsOff[microtype]
+\WarningFilter{latex}{Command \mark} %markboth/markright
+\WarningFilter{scrbook}{\float@addtolist}
+\WarningFilter{biblatex}{Macro 'date+extradate}
\WarningFilter{microtype}{Unknown slot}
\WarningFilter{scrbook}{package incompatibility}
\WarningFilter{todonotes}{The length}
@@ -85,7 +89,7 @@
\newcommand{\lsBookDOI}{??}
\newcommand{\lsChapterDOI}{??}
\newcommand{\lsID}{000}
-\newcommand{\lsURL}{http://langsci-press.org/catalog/book/\lsID}
+\newcommand{\lsURL}{redefine \ lsURL}
\newcommand{\lsSeries}{eotms}
\newcommand{\lsOutput}{book}
\newcommand{\lsBookLanguage}{english}
@@ -121,7 +125,7 @@
\newcommand{\includestoragelogo}{~}
\newcommand{\includepublisherlogo}{~}
\newcommand{\includechapterfooterlogo}{~}
-
+\newcommand{\lsLicenseInformation}[1]{~}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Conditionals
@@ -145,6 +149,8 @@
\newbool{oldstylenumbers}
\newbool{tblseight}%for chinesefonts in tbls series page
\newbool{lsISBNTwoDigitAddon}
+\newbool{lsFloatCounterWithoutChapter}
+ \booltrue{lsFloatCounterWithoutChapter}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Option handling
@@ -201,6 +207,7 @@
}
\DeclareVoidOption{uniformtopskip}{\booltrue{uniformtopskip}}
\DeclareVoidOption{oldstylenumbers}{\booltrue{oldstylenumbers}}
+\DeclareVoidOption{classicfloatnumbers}{\boolfalse{lsFloatCounterWithoutChapter}}
\DeclareVoidOption{chinesefont}{
\AtEndPreamble{
@@ -296,13 +303,6 @@
% Class
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\newcommand{\lsChapterPrefixString}{}
-% this conditional cannot be put
-% directly into the LoadClass, so we compute the value and store it in a command
-\ifbool{collection}
- {\renewcommand{\lsChapterPrefixString}{chapterprefix=true,}}
- {\ifbool{paper}{\renewcommand{\lsChapterPrefixString}{chapterprefix=true,}}{}}
-
\LoadClass[
fontsize=\lsFontsize,% default is 11pt
@@ -311,10 +311,21 @@
toc=bibliography,
index=totoc,
headings=optiontohead,
- \lsChapterPrefixString,
footnotes=multiple
]{scrbook}
+\ifbool{collection}
+ {% In collected volumes, write "Chapter n" instead of "n" in the header
+ \KOMAoptions{chapterprefix=true}
+ }
+ {
+ \ifbool{paper}
+ {% The same is applied to papers.
+ \KOMAoptions{chapterprefix=true}
+ }
+ {}
+ }
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Packages
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -375,33 +386,42 @@
\end{pgfonlayer}
}
- % Generates the content of the back cover
- % Argument 1: Text width, corresponding to Argument 1 of \frontcovertoptext
- \newcommand{\backcover}[1]{%
- \node [ font=\lsBackTitleFont,
- right,
- below right = 10mm and 7.5mm of CoverColouredRectangleBack.north west,
- text width=#1
- ] (lspcls_backtitle) {\color{white}\raggedright\lsBackTitle\par};
- \node [ font=\lsBackBodyFont,
- below = 10mm of lspcls_backtitle,
- text width=#1,
- align=justify
- ] {\color{white}\parindent=15pt\lsBackBody};
- \node [ above left = 10mm and 7.5mm of CoverColouredRectangleBack.south east ] {%
- \colorbox{white}{%
- \ifbool{lsISBNTwoDigitAddon}{%
- \begin{pspicture}(0,0)(5.25,1in)
- \psbarcode[transx=.4,transy=.3]{\lsISBNcover\ \lsISBNhardcoverTwoDigitAddon}{includetext guardwhitespace height=.7}{isbn}
- \end{pspicture}%
- }{%
- \begin{pspicture}(0,0)(4.15,1in)
- \psbarcode[transx=.4,transy=.3]{\lsISBNcover}{includetext height=.7}{isbn}%
- \end{pspicture}%
- }%
- }%
- };
- }
+ % Generates the content of the back cover. The starred variant \backcover*
+ % does not print the ISBN on the back. By default, we use \backcover if
+ % we are in a cover generation mode, and backcover* otherwise.
+ % Mandatory argument: Text width, corresponding to Argument 1 of \frontcovertoptext
+ \NewDocumentCommand \backcover {s m}
+ {%
+ \node [ font=\lsBackTitleFont,
+ right,
+ below right = 10mm and 7.5mm of CoverColouredRectangleBack.north west,
+ text width=#2
+ ] (lspcls_backtitle) {\color{white}\raggedright\lsBackTitle\par};
+ \node [ font=\lsBackBodyFont,
+ below = 10mm of lspcls_backtitle,
+ text width=#2,
+ align=justify
+ ] {\color{white}\parindent=15pt\lsBackBody};
+ \node [ above left = 10mm and 7.5mm of CoverColouredRectangleBack.south east ] {%
+ \IfBooleanF {#1}
+ {%
+ \colorbox{white}{%
+ \ifbool{lsISBNTwoDigitAddon}{%
+ \begin{pspicture}(0,0)(5.25,1in)
+ \psbarcode[transx=.4,transy=.3]
+ {\lsISBNcover\ \lsISBNhardcoverTwoDigitAddon}
+ {includetext guardwhitespace height=.7}{isbn}
+ \end{pspicture}%
+ }{%
+ \begin{pspicture}(0,0)(4.15,1in)
+ \psbarcode[transx=.4,transy=.3]
+ {\lsISBNcover}
+ {includetext height=.7}{isbn}%
+ \end{pspicture}%
+ }%
+ }%
+ }};
+ }
% Generates the content on the front cover, including title, author, subtitle. See below for remaining commands
% Argument 1: Text width on the front cover. Input: 12.34mm
@@ -572,7 +592,7 @@
%% this is possible for a complete series only.
\ifx\lsSeries\sidl
%\def\exfont{\normalsize\itshape}
- \providecommand{\eachwordone}{\itshape} % only \gll
+ \let\eachwordone=\itshape % only \gll
\let\oldtable\table % footnotes in tables without horizontal line
\let\endoldtable\endtable
@@ -580,13 +600,20 @@
\fi
\ifx\lsSeries\pmwe
- \providecommand{\eachwordone}{\normalfont}
+ \let\eachwordone=\normalfont
\fi
\ifx\lsSeries\nc
- \providecommand{\eachwordone}{\itshape}
+ \let\eachwordone=\itshape
+ \fi
+
+ \ifx\lsSeries\cogl
+ \let\eachwordone=\itshape
+ \fi
+
+ \ifx\lsSeries\eotms
+ \renewcommand{\sectref}[1]{Section~\ref{#1}}
\fi
-
} %% \AtBeginDocument
}{} %notbool paper
@@ -879,6 +906,15 @@
\newcommand{\lsCoverFontColor}{white}
\newcommand{\lsCoverBlockColor}{\lsSeriesColor}
+\ExplSyntaxOn
+\NewDocumentCommand{\lsDetermineMultiauthors}{}
+ {%
+ \int_compare:nNnTF
+ {\g__affiliations_num_authors_int} > {1}
+ {\booltrue{multiauthors}} {\boolfalse{multiauthors}}
+ }
+\ExplSyntaxOff
+
\newcommand{\lsEditorPrefix}{}
\newcommand{\lsEditorSuffix}{}
\ifbool{collection}{
@@ -887,9 +923,9 @@
\renewcommand{\newlineSpine}{}
\renewcommand{\lsEditorPrefix}{{\Large Edited by\\}}
\renewcommand{\lsEditorSuffix}{(ed.)}
- \ifbool{multiauthors}{
- \renewcommand{\lsEditorSuffix}{(eds.)}
- }{}
+ \CountAuthorsFromAffiliations{\@author}
+ \lsDetermineMultiauthors{}
+ \ifbool{multiauthors}{\renewcommand{\lsEditorSuffix}{(eds.)}}{}
} %end AtBeginDocument
}{} %end collection
@@ -954,7 +990,7 @@
minimum height=225mm
] (CoverColouredRectangleBack) {};
\end{pgfonlayer}
- \backcover{137mm}
+ \ifbool{cover}{\backcover{137mm}}{\backcover*{137mm}}
\end{tikzpicture}
\ifcsname tikz@library@external@loaded\endcsname\tikzexternalenable\fi
}
@@ -976,6 +1012,50 @@
\renewcommand{\tblseight}{{\cn 语法理论: 从转换语法到基于约束的理论}}
}{}
+
+\ExplSyntaxOn
+% A command to output a limited number of items on the series history page.
+% This is useful in case there are too many items in a series history.
+% The number of maximum items are passed to the first, optional argument
+% to the command. Its default is 15.
+\NewDocumentCommand{\lsSeriesHistoryWheel}{O{15} m}
+ {%
+ \begin{enumerate}
+ \langsci_wheel:nn {#1} {#2}
+ \end{enumerate}
+ }
+
+% Setup of data
+\seq_new:N \langsci_wheel_seq
+\int_new:N \langsci_wheel_loop_count_int
+\int_new:N \langsci_wheel_output_difference_int
+\tl_new:N \langsci__wheel_wastebin_tl
+\cs_new:Npn \langsci_wheel:nn #1#2
+ {
+ % Let's split the input at each \item. From the result, remove the
+ % first item, which will be empty.
+ \seq_set_split:Nnn \langsci_wheel_seq {\item} {#2}
+ \seq_pop_left:NNTF \langsci_wheel_seq \langsci__wheel_wastebin_tl {} {}
+ % The offset is calculated by (length of input - maximum output)
+ \int_set:Nn \langsci_wheel_output_difference_int
+ {
+ \seq_count:N \langsci_wheel_seq - #1
+ }
+ % An integer used for counting inside the loop.
+ \int_zero:N \langsci_wheel_loop_count_int
+ % Loop over the input and determine, for each item, whether to output
+ % it. The item is output when its number is greater than the difference
+ % between actual length and maximum.
+ \seq_map_inline:Nn \langsci_wheel_seq
+ {
+ \int_incr:N \langsci_wheel_loop_count_int
+ \int_compare:nNnTF
+ \langsci_wheel_loop_count_int > \langsci_wheel_output_difference_int
+ {\item[\int_use:N \langsci_wheel_loop_count_int.] ##1}
+ {}
+ }
+ }
+\ExplSyntaxOff
\newcommand{\lsSeriesHistory}{
\color{black}
@@ -1045,6 +1125,9 @@
{%
\AtBeginDocument
{%
+ \bgroup
+ \renewcommand{\newlineCover}{}
+ \renewcommand{\newlineSpine}{}
\newwrite\metadatafile
\immediate\openout\metadatafile=langscitmp.bib
\immediate\write\metadatafile{%
@@ -1063,6 +1146,7 @@
}
}
\immediate\closeout\metadatafile
+ \egroup
\addbibresource{langscitmp.bib}
}
}
@@ -1077,17 +1161,13 @@
\newcommand{\lsImpressumExtra}{}%for legal notes required for revised theses ("... in fulfillment of ... ")
\newcommand{\publisherstreetaddress}
- {%
- Language Science Press\\
- xHain\\
- Grünberger Str. 16\\
- 10243 Berlin, Germany
- }
+ {redefine \textbackslash publisherstreetaddress}
-\newcommand{\publisherurl}{\href{http://langsci-press.org}{langsci-press.org}}
-\newcommand{\storageinstitution}{FU Berlin}
-\newcommand{\githubtext}{Source code available from \href{https://www.github.com/langsci/\lsID}{www.github.com/langsci/\lsID}}
-\newcommand{\paperhivetext}{Collaborative~reading:~\href{https://paperhive.org/documents/remote?type=langsci&id=\lsID}{paperhive.org/documents/remote?type=langsci\&id=\lsID}}
+\newcommand{\publisherurl}{redefine \textbackslash publisherurl}
+
+\newcommand{\storageinstitution}{redefine \textbackslash storageinstitution}
+\newcommand{\githubtext}{~}
+\newcommand{\paperhivetext}{~}
\newcommand{\lsImpressum}{%
\thispagestyle{empty}
@@ -1109,35 +1189,20 @@ This title can be downloaded at:\\
\newcommand{\ccby}{CC-BY}
\newcommand{\ccbynd}{CC-BY-ND}
-
+\newcommand{\ccbysa}{CC-BY-SA}
\ifx\lsCopyright\ccby
Published under the Creative Commons Attribution 4.0 Licence (CC BY 4.0):
-http://creativecommons.org/licenses/by/4.0/
-\IfFileExists{./ccby.pdf}{
- \includegraphics[height=.75em]{ccby.pdf}
- }{🅭🅯}
+http://creativecommons.org/licenses/by/4.0/ \lsLicenseInformation{ccby}
\fi
-
-
\ifx\lsCopyright\ccbynd
Published under the Creative Commons Attribution-NoDerivatives 4.0 Licence (CC BY-ND 4.0):
-http://creativecommons.org/licenses/by-nd/4.0
-\IfFileExists{./ccbynd.pdf}{
- \includegraphics[height=.75em]{ccbynd.pdf}
- }{🅭🅯⊜}
+http://creativecommons.org/licenses/by-nd/4.0/ \lsLicenseInformation{ccbynd}
\fi
-
\ifx\lsCopyright\ccbysa
Published under the Creative Commons Attribution-ShareAlike 4.0 Licence (CC BY-SA 4.0):
-http://creativecommons.org/licenses/by-sa/4.0/
-\IfFileExists{./ccbysa.pdf}{
- \includegraphics[height=.75em]{ccbysa.pdf}
- }{🅭🅯🄎}
+http://creativecommons.org/licenses/by-sa/4.0/ \lsLicenseInformation{ccbysa}
\fi
-
-
-
{\lsImpressumExtra}
\ifx\lsSeries\sidl
@@ -1238,7 +1303,6 @@ Storage and cataloguing done by \storageinstitution\\[3ex]
% is, or will remain, accurate or appropriate.
}
-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Dedication
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -1309,6 +1373,47 @@ Storage and cataloguing done by \storageinstitution\\[3ex]
%% needed for hyperref
\def\toclevel@subsubsubsection{4}
+% Commands for Sections in Appendices:
+% Use as \appendixsection and \appendixsubsection.
+% Further commands for lower levels can be defined following this pattern.
+\DeclareNewSectionCommand
+ [
+ counterwithin = chapter,
+ afterskip = 2.3ex plus .2ex,
+ beforeskip = -3.5ex plus -1ex minus -.2ex,
+ indent = 0pt,
+ font = \usekomafont{section},
+ level = 1,
+ tocindent = 1.5em,
+ toclevel = 1,
+ tocnumwidth = 2.3em,
+ tocstyle = section,
+ style = section
+ ]
+ {appendixsection}
+
+\renewcommand*\theappendixsection{\Alph{appendixsection}}
+\renewcommand*{\appendixsectionformat}
+ {\appendixname~\theappendixsection\autodot\enskip}
+\renewcommand*{\appendixsectionmarkformat}
+ {\appendixname~\theappendixsection\autodot\enskip}
+
+\DeclareNewSectionCommand
+ [
+ counterwithin = appendixsection,
+ beforeskip=-10pt,
+ afterskip=1sp,
+ indent = 0pt,
+ font = \usekomafont{subsection},
+ level = 2,
+ tocindent = 3.8em,
+ toclevel = 2,
+ tocnumwidth = 3.2em,
+ tocstyle = section,
+ style = section
+ ]
+ {appendixsubsection}
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Epigrams
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -1377,7 +1482,7 @@ Storage and cataloguing done by \storageinstitution\\[3ex]
%% languages
\newcommand{\lsBookLanguageEnglish}{english}
\newcommand{\lsBookLanguageFrench}{french}
-% \newcommand{\lsBookLanguageSpanish}{spanish}
+\newcommand{\lsBookLanguageSpanish}{spanish}
\newcommand{\lsBookLanguagePortuguese}{portuguese}
\newcommand{\lsBookLanguageGerman}{german}
\newcommand{\lsBookLanguageChinese}{chinese}
@@ -1395,10 +1500,10 @@ Storage and cataloguing done by \storageinstitution\\[3ex]
\usepackage[ngerman,main=\lsBookLanguage]{babel}
\addto\extrasfrench{\languageshorthands{german}\useshorthands{"}}
\fi
-% \ifx\lsBookLanguage\lsBookLanguageSpanish
-% \usepackage[ngerman,main=\lsBookLanguage]{babel}
-% \addto\extrasspanish{\languageshorthands{german}\useshorthands{"}}
-% \fi
+ \ifx\lsBookLanguage\lsBookLanguageSpanish
+ \usepackage[ngerman,main=\lsBookLanguage,es-minimal]{babel}
+ \addto\extrasspanish{\languageshorthands{german}\useshorthands{"}}
+ \fi
\ifx\lsBookLanguage\lsBookLanguageGerman
\usepackage[ngerman]{babel}
\fi
@@ -1407,7 +1512,11 @@ Storage and cataloguing done by \storageinstitution\\[3ex]
\addto\extrasportuges{\languageshorthands{german}\useshorthands{"}}
\fi
}{%else babelshorthands
- \usepackage[\lsBookLanguage]{babel}
+ \ifx\lsBookLanguage\lsBookLanguageSpanish
+ %the Spanish option does not work out of the box
+ \usepackage[\lsBookLanguage,es-minimal]{babel}
+ \else
+ \usepackage[\lsBookLanguage]{babel}
}
\fi%Close language=chinese
}{}
@@ -1420,8 +1529,6 @@ Storage and cataloguing done by \storageinstitution\\[3ex]
\usepackage[
natbib=true,
style=langsci-unified,
- citestyle=langsci-unified,
- datamodel=langsci, % add authauthor and autheditor as possible fields to bibtex entries
%refsection=chapter,
maxbibnames=99,
uniquename=false,
@@ -1437,32 +1544,11 @@ Storage and cataloguing done by \storageinstitution\\[3ex]
}{}
]{biblatex}
-% If the user provided a shortauthor in the bibtex entry, we use the authentic author (as with the
-% authorindex package) if it is defined, otherwise we use the author.
-% This gets F/T as shorthand right and puts the guys in the index.
-
-\renewbibmacro*{citeindex}{%
- \ifciteindex
- {\iffieldequalstr{labelnamesource}{shortauthor} % If biblatex uses shortauthor as the label of a bibitem
- {\ifnameundef{authauthor} % we check whether there is something in authauthor
- {\indexnames{author}} % if not, we use author
- {\indexnames{authauthor}}} % if yes, we use authauthor
- {\iffieldequalstr{labelnamesource}{author} % if biblatex uses author we similarly test for
- % authauthor and use this field
- {\ifnameundef{authauthor}% if defined use authauthor
- {\indexnames{author}}
- {\indexnames{authauthor}}} % if defined use this field
- {\iffieldequalstr{labelnamesource}{shorteditor} % same for editor
- {\ifnameundef{autheditor}
- {\indexnames{editor}}
- {\indexnames{autheditor}}}
- {\indexnames{labelname}}}}} % as a fallback we index on whatever biblatex used.
- {}}
-
%% DOIs are handled after hyperref.
\defbibheading{references}{\chapter{References}\sloppy}
+\defbibheading{english}{\chapter{References}\sloppy}
\defbibheading{french}{\chapter{Références bibliographiques}\sloppy}
-% \defbibheading{spanish}{\chapter{Referencias bibliográficas}\sloppy}
+\defbibheading{spanish}{\chapter{Referencias bibliográficas}\sloppy}
\defbibheading{german}{\chapter{Literaturverzeichnis}\sloppy}
\defbibheading{portuguese}{\chapter{Referências}\sloppy}
\defbibheading{chinese}{\chapter{参考文献}\sloppy}
@@ -1513,7 +1599,6 @@ Storage and cataloguing done by \storageinstitution\\[3ex]
\usepackage{setspace}
\usepackage{caption}
-% \captionsetup{labelfont=bf}
\captionsetup{font={stretch=.8,small},width=.8\textwidth}
\setcapindent{0pt}
@@ -1577,7 +1662,7 @@ Storage and cataloguing done by \storageinstitution\\[3ex]
\parindent\z@
\parskip\z@ \@plus .3\p@\relax
\let\item\@idxitem
- \providecommand*\seealso[2]{\emph{see also} ##1}
+ \providecommand*\seealso[2]{\emph{\lsSeeAlsoTerm{}} ##1}
}{%
\if@restonecol
\onecolumn
@@ -1725,6 +1810,7 @@ Storage and cataloguing done by \storageinstitution\\[3ex]
\providecommand{\partref}[1]{Part~\ref{#1}}
\providecommand{\tabref}[1]{Table~\ref{#1}}
\providecommand{\figref}[1]{Figure~\ref{#1}}
+\providecommand{\lsSeeAlsoTerm}{see also}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Collection (edited volume):
@@ -1769,17 +1855,22 @@ Storage and cataloguing done by \storageinstitution\\[3ex]
\renewcommand{\@pnumwidth}{1.5em} % width of page numbers
\ifbool{collectiontoclong}{}{\setcounter{tocdepth}{0}}
\DeclareTOCStyleEntry%Settings for parts in the TOC of collected volumes
- [
+ [
pagenumberbox={\csname @gobble\endcsname},
raggedentrytext=true,
linefill={\hfill}
- ]{tocline}{part}
+ ]{tocline}{part}
\usepackage{chngcntr}
\counterwithin{figure}{chapter}
\counterwithin{table}{chapter}
+ \ifbool{lsFloatCounterWithoutChapter}{
+ \renewcommand{\thefigure}{\arabic{figure}}
+ \renewcommand{\thetable}{\arabic{table}}
+ \renewcommand{\theequation}{\arabic{equation}}
+ }{}
- \NewDocumentCommand{\includepaper}{m}{
+ \NewDocumentCommand{\includepaper}{m}{%
\bgroup
\renewcommand{\newlineCover}{\\}
\renewcommand{\documentclass}[2][]{}%
@@ -1805,13 +1896,14 @@ Storage and cataloguing done by \storageinstitution\\[3ex]
\renewcommand{\newlineSpine}{}
\renewcommand{\newlineTOC}{}
%% write bib entry to file
- \immediate\write\tempfile{@incollection{#1,author={\@author},title={{\expandonce{\titleTemp}}},booktitle={{\expandonce{\lsCollectionTitle}}},editor={\lsCollectionEditor},publisher={Language Science Press.},Address={Berlin},year={\lsYear},pages={\lsCollectionPaperFirstPage --\lsCollectionPaperLastPage},doi={\lsChapterDOI},keywords={withinvolume}}}
- \immediate\write\tempfile{@incollection{#1footer,author={\@author},title={{\expandonce{\titleTemp}}},booktitle={{\expandonce{\lsCollectionTitle}}},editor={\lsCollectionEditor},publisher={Language Science Press.},Address={Berlin},year={\lsYear},pages={\lsCollectionPaperFirstPage --\lsCollectionPaperLastPage},doi={\lsChapterDOI},options={dataonly=true}}}
+ \immediate\write\tempfile{@incollection{#1,author={\authorToBib},title={{\expandonce{\titleTemp}}},booktitle={{\expandonce{\lsCollectionTitle}}},editor={\lsCollectionEditor},publisher={Language Science Press.},Address={Berlin},year={\lsYear},pages={\lsCollectionPaperFirstPage --\lsCollectionPaperLastPage},doi={\lsChapterDOI},keywords={withinvolume}}}
+ \immediate\write\tempfile{@incollection{#1footer,author={\authorToBib},title={{\expandonce{\titleTemp}}},booktitle={{\expandonce{\lsCollectionTitle}}},editor={\lsCollectionEditor},publisher={Language Science Press.},Address={Berlin},year={\lsYear},pages={\lsCollectionPaperFirstPage --\lsCollectionPaperLastPage},doi={\lsChapterDOI},options={dataonly=true}}}
}
\newcommand{\titleToHead}{}
\newcommand{\titleTemp}{}
\newcommand{\titleToToC}{}
+\newcommand{\authorToBib}{}
\newcommand{\lsCollectionPaperHeaderTitle}{%
\renewcommand{\newlineCover}{}
@@ -1827,7 +1919,10 @@ Storage and cataloguing done by \storageinstitution\\[3ex]
\renewcommand{\titleTemp}{##2}
\renewcommand{\titleToToC}{##3}
}
- \renewcommand{\author}[1]{\renewcommand{\@author}{##1}}
+ \RenewDocumentCommand{\author}{O{##2} m}{
+ \renewcommand{\authorToBib}{##1}
+ \renewcommand{\@author}{##2}
+ }
\renewcommand*{\thesection}{\arabic{section}}
\RedeclareSectionCommand
[afterskip=1.15\baselineskip plus .1\baselineskip minus .167\baselineskip]
@@ -1881,11 +1976,7 @@ Storage and cataloguing done by \storageinstitution\\[3ex]
\includechapterfooterlogo}%
% \hspace{0.8em}%
\hfill%
- \parbox[b]{.87\textwidth}{\linespread{0.8}\lsChapterFooterSize\normalfont\lsCollectionPaperCitationText
- \IfFileExists{./ccby.pdf}{
- \includegraphics[height=.75em]{ccby.pdf}
- }{🅭🅯}
- }
+ \parbox[b]{.87\textwidth}{\linespread{0.8}\lsChapterFooterSize\normalfont\lsCollectionPaperCitationText \lsLicenseInformation{ccby}}
}
\ifbool{paper}{
@@ -1931,20 +2022,23 @@ Storage and cataloguing done by \storageinstitution\\[3ex]
\renewcommand{\partref}[1]{Partie~\ref{#1}}
\renewcommand{\tabref}[1]{Tableau~\ref{#1}}
\renewcommand{\figref}[1]{Figure~\ref{#1}}
+ \renewcommand{\lsSeeAlsoTerm}{voir aussi}
\fi
-% \ifx\lsBookLanguage\lsBookLanguageSpanish
-% \renewcommand{\chapref}[1]{Capítulo~\ref{#1}}
-% \renewcommand{\partref}[1]{Parte~\ref{#1}}
-% \renewcommand{\tabref}[1]{Tabla~\ref{#1}}
-% \renewcommand{\figref}[1]{Figura~\ref{#1}}
-% \fi
+\ifx\lsBookLanguage\lsBookLanguageSpanish
+ \renewcommand{\chapref}[1]{Capítulo~\ref{#1}}
+ \renewcommand{\partref}[1]{Parte~\ref{#1}}
+ \renewcommand{\tabref}[1]{Tabla~\ref{#1}}
+ \renewcommand{\figref}[1]{Figura~\ref{#1}}
+ \renewcommand{\lsSeeAlsoTerm}{véase también}
+\fi
\ifx\lsBookLanguage\lsBookLanguageGerman
\renewcommand{\chapref}[1]{Kapitel~\ref{#1}}
\renewcommand{\partref}[1]{Teil~\ref{#1}}
\renewcommand{\tabref}[1]{Tabelle~\ref{#1}}
\renewcommand{\figref}[1]{Abbildung~\ref{#1}}
+ \renewcommand{\lsSeeAlsoTerm}{siehe auch}
\fi
\ifx\lsBookLanguage\lsBookLanguagePortuguese
@@ -1952,6 +2046,7 @@ Storage and cataloguing done by \storageinstitution\\[3ex]
\renewcommand{\partref}[1]{Parte~\ref{#1}}
\renewcommand{\tabref}[1]{Tabela~\ref{#1}}
\renewcommand{\figref}[1]{Figura~\ref{#1}}
+ \renewcommand{\lsSeeAlsoTerm}{ver tambem}
\fi
\ifx\lsBookLanguage\lsBookLanguageChinese
@@ -2007,16 +2102,16 @@ Storage and cataloguing done by \storageinstitution\\[3ex]
}{}
\fi
-% \ifx\lsBookLanguage\lsBookLanguageSpanish
-% \renewcommand{\lsIndexTitle}{Índices}
-% \renewcommand{\lsNameIndexTitle}{Índice nominal}
-% \renewcommand{\lsSubjectIndexTitle}{Índice temático}
-% \renewcommand{\lsLanguageIndexTitle}{Índice de idiomas}
-% \renewcommand{\lsPrefaceTitle}{Prefacio}
-% \renewcommand{\lsAcknowledgementTitle}{Agradecimientos}
-% \renewcommand{\lsAbbreviationsTitle}{Abreviaciones}
-% \renewcommand{\lsReferencesTitle}{spanish}
-% \fi
+\ifx\lsBookLanguage\lsBookLanguageSpanish
+ \renewcommand{\lsIndexTitle}{Índices}
+ \renewcommand{\lsNameIndexTitle}{Índice nominal}
+ \renewcommand{\lsSubjectIndexTitle}{Índice temático}
+ \renewcommand{\lsLanguageIndexTitle}{Índice de idiomas}
+ \renewcommand{\lsPrefaceTitle}{Prefacio}
+ \renewcommand{\lsAcknowledgementTitle}{Agradecimientos}
+ \renewcommand{\lsAbbreviationsTitle}{Abreviaciones}
+ \renewcommand{\lsReferencesTitle}{spanish}
+\fi
\ifx\lsBookLanguage\lsBookLanguageGerman
\renewcommand{\lsIndexTitle}{Register}