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.cls482
1 files changed, 252 insertions, 230 deletions
diff --git a/Master/texmf-dist/tex/xelatex/langsci/langscibook.cls b/Master/texmf-dist/tex/xelatex/langsci/langscibook.cls
index 587fc1fb0d9..4bfbdd94e35 100644
--- a/Master/texmf-dist/tex/xelatex/langsci/langscibook.cls
+++ b/Master/texmf-dist/tex/xelatex/langsci/langscibook.cls
@@ -1,7 +1,6 @@
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% File: langscibook.cls
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% File: langscibook.cls
%% Author: Language Science Press (http://langsci-press.org)
-%% Date: Fri Apr 27 2018
+%% Date: 2019-03-31 13:12 UTC
%% Purpose: This file defines the basic document class
%% for books published with Language Science Press.
%% Language: LaTeX
@@ -13,16 +12,11 @@
%% http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
-%%
-%% This work has the LPPL maintenance status `maintained'.
-%%
-%% The Current Maintainer of this work is Sebastian Nordhoff.
-%%
-%%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%
+%%% This work has the LPPL maintenance status `maintained'.
+%%% The Current Maintainer of this work is Sebastian Nordhoff.
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Structure of this file:
+% \- Early load packages
% \- Paths
% \- Default values of variables
% \- Definition of conditionals
@@ -50,31 +44,37 @@
% \- Indexes
% \- Hyperref
% \- Edited volumes (Collection)
+% \- Colors
% \_ Miscellaneous
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{langscibook}[2018/01/15 Language Science Press]
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Early load packages
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\RequirePackage[]{silence}
+\WarningsOff[hyperref]
+\WarningsOff[tocstyle]
+\typeout{Warnings are disabled in langscibook.cls for hyperref and tocstyle}
+\usepackage{etoolbox}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%
% Paths
-%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\fontpath}{}
\newcommand{\logopath}{}
\newcommand{\seriesinfopath}{}
\newcommand{\localepath}{}
-\newcommand{\bstpath}{}
-\newcommand{\bbxpath}{}
-\newcommand{\cbxpath}{}
+\newcommand{\bibstylepath}{}
+% \newcommand{\bbxpath}{}
+% \newcommand{\cbxpath}{}
\newcommand{\stylepath}{}
% Paths can be overwritten with option "nonflat"
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%
% Default values
-%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{xspace}
@@ -91,8 +91,8 @@
\newcommand{\lsURL}{http://langsci-press.org/catalog/book/\lsID}
\newcommand{\lsSeries}{eotms}
% \newcommand{\lsSpineBreadth}{20mm}
-\newcommand{\lsOutput}{book} %"short" makes no sense if "long" is deprecated
-\newcommand{\lsBookLanguage}{english} %"short" makes no sense if "long" is deprecated
+\newcommand{\lsOutput}{book}
+\newcommand{\lsBookLanguage}{english}
\newcommand{\lsFontsize}{11pt}
\newcommand{\lsChapterFooterSize}{\small} %footers in editedvolumes
\newcommand{\lsCopyright}{CC-BY}
@@ -118,9 +118,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%
% Conditionals
-%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newif\iflsDraft \lsDraftfalse
@@ -133,17 +131,17 @@
\newif\iflsCollectionTOCLong \lsCollectionTOCLongfalse
\newif\iflsNewtxmath \lsNewtxmathfalse
\newif\iflsCover \lsCoverfalse %output format is cover
-\newif\iflsUscover \lsUscoverfalse
+% \newif\iflsUscover \lsUscoverfalse
\newif\iflsModfonts \lsModfontsfalse
\newif\iflsNoBabel \lsNoBabelfalse
\newif\iflsBabelShorthands \lsBabelShorthandsfalse
\newif\iflsMultiauthors \lsMultiauthorsfalse
+\newif\iflsArseneau \lsArseneaufalse
+\newif\iflsOldStyleNumbers \lsOldStyleNumbersfalse
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%
% Option handling
-%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage{kvoptions} % for key-value options
@@ -180,11 +178,9 @@
\renewcommand{\logopath}{./langsci/graphics/}
\renewcommand{\seriesinfopath}{./langsci/seriesinfo/}
\renewcommand{\localepath}{./langsci/locale/}
- \renewcommand{\bstpath}{./langsci/bst/}
- \renewcommand{\bbxpath}{\bstpath biblatex-langsci-unified/bbx/}
- % \renewcommand{\bbxpath}{\bstpath}
- \renewcommand{\cbxpath}{\bstpath biblatex-langsci-unified/cbx/}
- % \renewcommand{\cbxpath}{\bstpath}
+ \renewcommand{\bibstylepath}{./langsci/}
+% \renewcommand{\bbxpath}{\bibstylepath langsci-unified/bbx/}
+% \renewcommand{\cbxpath}{\bibstylepath langsci-unified/cbx/}
\renewcommand{\stylepath}{./langsci/styles/}
}
\DeclareVoidOption{nobabel}{
@@ -214,6 +210,8 @@
\DeclareVoidOption{collectiontoclong}{
\lsCollectiontrue%
\lsCollectionTOCLongtrue}
+\DeclareVoidOption{arseneau}{\lsArseneautrue}
+\DeclareVoidOption{oldstylenumbers}{\lsOldStyleNumberstrue}
\DeclareVoidOption{chinesefont}{
\newfontfamily\cn[Mapping=tex-text,Ligatures=Common,Scale=MatchUppercase]{AR PL UMing CN}
% \newcommand{\zh}[1]{{\cn #1}}
@@ -246,13 +244,12 @@
% \newcommand{\textsyriac}[1]{{\syriacfont #1}}
\AdditionalFontImprint{Estrangelo Edessa}
}
+
\ProcessKeyvalOptions{langscibook}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%
% Class
-%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -268,9 +265,7 @@
]{scrbook}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%
% Packages
-%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{morewrites} %more helper files to write to
@@ -291,16 +286,12 @@
%% standard commands
\usepackage{\stylepath langsci-basic} % FIXME: contains important commands for the index (\isi etc.) which should be defined in the class
-%% useful commands for glossings:
-% \usepackage{\stylepath langsci-lgr} #FIXME this should probably be replaced by \usepackage{leipzig}
\usepackage{todonotes}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%
% Print on demand macros
-%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Basic cover commands, including PGF layers
@@ -314,8 +305,7 @@
\renewcommand{\lastand}{ \& }%
\renewcommand{\affiliation}[1]{}
}
-
-% \usepackage[outline]{contour}
+
% Content creation for the spine. Including Logo, author, title, and volume number on spine.
\newcommand{\podspine}{
@@ -323,14 +313,6 @@
\renewcommand{\and}{, }
\renewcommand{\lastand}{ \& }
\node [above = 0mm of CoverSpine.south, anchor=base] (lspcls_spinelogo) {\color{\lsSeriesColor}\includegraphics{\logopath langsci_spinelogo_nocolor.pdf}};
-% add number on spine
-% inside logo
-% \node [below = -7mm of lspcls_spinelogo] (lspcls_splinenumber) { \hspace*{4mm}{\parbox{.37cm}{\centering \contour{\lsSeriesColor}{\color{white}\sffamily \large \lsSeriesNumber }}}};
-% bottom centered
-% \node [below = -1mm of lspcls_spinelogo] (lspcls_splinenumber) {\color{\lsSeriesColor} \hspace*{4mm}{\parbox{.37cm}{\centering\sffamily \large \lsSeriesNumber }}};
-% bottom leftaligned
-% \node [below = -1mm of lspcls_spinelogo] (lspcls_splinenumber) {\color{\lsSeriesColor} \hspace*{4mm}{\parbox{.37cm}{\sffamily \large \lsSeriesNumber }}};
-%
\node [below = 0mm of CoverSpine.north, anchor=north] (lspcls_splinenumber) {\color{\lsSeriesColor}
{\parbox{.47cm}{
\centering
@@ -447,9 +429,7 @@
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%
% Output types
-%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \newcommand{\lsOutputLong}{long}
@@ -465,7 +445,7 @@
%% Output types are defined with \newcommand above so they can be used with geometry.
\AtBeginDocument{
-\ifx\lsOutput\lsOutputPaper % only if output=paper
+\ifx\lsOutput\lsOutputPaper % only if output==paper
\usepackage{chngcntr}
\counterwithout{figure}{chapter}
\counterwithout{table}{chapter}
@@ -474,7 +454,7 @@
\renewcommand{\maketitle}{
\begin{titlepage}
\thispagestyle{empty}
-\ifx\lsOutput\lsOutputBook % only if output=book
+\ifx\lsOutput\lsOutputBook % only if output==book
\setcounter{page}{-1}
%% First titlepage:
{\lsFrontPage}
@@ -501,14 +481,14 @@
}
\fi
-\ifx\lsOutput\lsOutputInprep % only if output=inprep
+\ifx\lsOutput\lsOutputInprep % only if output==inprep
{\renewcommand{\lsCoverBlockColor}{white}
\renewcommand{\lsCoverFontColor}{black}
\lsCoverBlock
\lsCoverTitleAuthor}
\fi
-\ifx\lsOutput\lsOutputGuidelines % only if output=guidelines
+\ifx\lsOutput\lsOutputGuidelines % only if output==guidelines
{\setcounter{page}{-1}
\renewcommand{\lsAdvertisement}{}
%% First titlepage:
@@ -517,7 +497,7 @@
\fi
-\ifx\lsOutput\lsOutputCoverBODhc % only if output=cover
+\ifx\lsOutput\lsOutputCoverBODhc % only if output==cover
\podsetup
\begin{tikzpicture}[remember picture, overlay,bg/.style={outer sep=0}]
\podgeometry{24.2mm}{23.1cm}{15.5cm}
@@ -533,7 +513,7 @@
\fi
-\ifx\lsOutput\lsOutputCoverBODsc % only if output=cover
+\ifx\lsOutput\lsOutputCoverBODsc % only if output==cover
\podsetup
\begin{tikzpicture}[remember picture, overlay,bg/.style={outer sep=0}]
\podgeometry{13.75mm}{23.1cm}{15.5cm}
@@ -550,14 +530,14 @@
% ============================
-\ifx\lsOutput\lsOutputCoverCS % only if output=covercs
+\ifx\lsOutput\lsOutputCoverCS % only if output==covercs
\podsetup
\begin{tikzpicture}[remember picture, overlay,bg/.style={outer sep=0}]
\podgeometry{10.675mm}{22.5cm}{15.5cm}
\podspine
\podfrontcovertoptext{140mm}{52pt} % Due to different cover sizes, the text size was adjusted so that the difference in line breaks would be minimal between hard and softcover books.
\podcoverbottomtext
- \iflsUscover\newcommand{\lsISBNcover}{\lsISBNsoftcoverus}\else\newcommand{\lsISBNcover}{\lsISBNsoftcover}\fi
+% \iflsUscover\newcommand{\lsISBNcover}{\lsISBNsoftcoverus}\else\newcommand{\lsISBNcover}{\lsISBNsoftcover}\fi
\podbackcover{140mm}
\end{tikzpicture}
%exit the document right here
@@ -604,7 +584,7 @@
\fi
\ifx\lsSeries\pmwe
- \renewcommand{\eachwordone}{\itshape}
+ \renewcommand{\eachwordone}{\normalfont}
\fi
\ifx\lsSeries\nc
@@ -617,15 +597,12 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%
% Geometry
-%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% For output type cover
-% \usepackage{catchfilebetweentags}
-\newlength{\csspine} % CS spine width algorithm, when page count is known: Total Page Number (excluding cover), usually (Total Page - 3) * 0.0572008 mm
-\newlength{\bodspine} % BoD spine width algorithm located at http://www.bod.de/hilfe/coverberechnung.html (German only, please contact LangSci for help)
+% For output type cover
+% \newlength{\csspine} % CS spine width algorithm, when page count is known: Total Page Number (excluding cover), usually (Total Page - 3) * 0.0572008 mm
+% \newlength{\bodspine} % BoD spine width algorithm located at http://www.bod.de/hilfe/coverberechnung.html (German only, please contact LangSci for help)
\newlength{\bleed}
\newlength{\seitenbreite}
\newlength{\seitenhoehe}
@@ -701,9 +678,7 @@
\textblockorigin{0mm}{0mm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%
% Fonts
-%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{ifxetex}
@@ -763,6 +738,9 @@
\fi
\iflsModfonts% use Langsci fonts
+ \iflsOldStyleNumbers
+ \defaultfontfeatures[LinLibertine_RZ_B.otf,LinLibertine_RI_B.otf,LinLibertine_RZI_B.otf,LinLibertine_R_B.otf]{SmallCapsFeatures={Numbers=OldStyle}}
+ \fi
\setsansfont[
%Ligatures={TeX,Common}, % not supported by ttf
Scale=MatchLowercase,
@@ -784,10 +762,13 @@
SlantedFont = LinLibertine_R_B.otf,
SlantedFeatures = {FakeSlant=0.25},
BoldSlantedFeatures = {FakeSlant=0.25},
- SmallCapsFeatures = {FakeSlant=0,Numbers=OldStyle},
+ SmallCapsFeatures = {FakeSlant=0},
]{LinLibertine_R_B.otf}
\else % use standard fonts
- \setsansfont[
+ \iflsOldStyleNumbers
+ \defaultfontfeatures[LinLibertine_RZ.otf,LinLibertine_RI.otf,LinLibertine_RZI.otf,LinLibertine_R.otf]{SmallCapsFeatures={Numbers=OldStyle}}
+ \fi
+ \setsansfont[
%Ligatures={TeX,Common}, % not supported by ttf
Scale=MatchLowercase,
Path=\fontpath,
@@ -808,9 +789,8 @@
SlantedFont = LinLibertine_R.otf,
SlantedFeatures = {FakeSlant=0.25},
BoldSlantedFeatures = {FakeSlant=0.25},
- SmallCapsFeatures = {FakeSlant=0,Numbers=OldStyle},
+ SmallCapsFeatures = {FakeSlant=0},
]{LinLibertine_R.otf}
-
\fi
%% Deprecated:
@@ -853,9 +833,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%
% Colors
-%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{xcolor}
@@ -863,9 +841,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%
% Cover
-%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{pst-barcode} % for generating bar codes
@@ -909,30 +885,25 @@
\begin{textblock}{170}(-20,75)
\rotatebox{30}{
\colorbox{red}{
- \parbox[c][15ex][c]{220mm}{\centering\lsCoverTitleFont\color{white}Open Review\\[-0.1ex]}
- % \begin{tabular}{c}
- % ~\\
- % \scalebox{6}{\color{red}Open Review}\\[-0.5ex]
- % ~%version of \today, \currenttime
- % \end{tabular}
- }
- }
- \end{textblock}
- \fi
- \iflsUndecapitalize
- \begin{textblock}{170}(-20,75)
- \rotatebox{30}{
- \colorbox{red}{
- \parbox[c][15ex][c]{220mm}{\centering\lsCoverTitleFont\color{white}Undecapitalized\\[-0.1ex]}
- % \begin{tabular}{c}
- % ~\\
- % \scalebox{6}{\color{red}Open Review}\\[-0.5ex]
- % ~%version of \today, \currenttime
- % \end{tabular}
+ \parbox[c][15ex][c]{220mm}{\centering\lsCoverTitleFont\color{white}Open Review\\[-0.1ex]}
}
}
\end{textblock}
\fi
+% \iflsUndecapitalize
+% \begin{textblock}{170}(-20,75)
+% \rotatebox{30}{
+% \colorbox{red}{
+% \parbox[c][15ex][c]{220mm}{\centering\lsCoverTitleFont\color{white}Undecapitalized\\[-0.1ex]}
+% % \begin{tabular}{c}
+% % ~\\
+% % \scalebox{6}{\color{red}Open Review}\\[-0.5ex]
+% % ~%version of \today, \currenttime
+% % \end{tabular}
+% }
+% }
+% \end{textblock}
+% \fi
}
@@ -976,13 +947,10 @@
\pgfdeclarelayer{lspcls_bg} % Create a background layer that serves as the canvas for the coloured rectangles.
\pgfsetlayers{lspcls_bg,main} % Order the background layer behind the main layer of TikZ.
-\newcommand{\lsFrontPage}{ % Front page
- \pgfdeclarelayer{lspcls_bg} % Create a background layer that serves as the canvas for the coloured rectangles.
- \pgfsetlayers{lspcls_bg,main} % Order the background layer behind the main layer of TikZ.
-% % \lsCoverBlock
-% % \lsCoverTitleAuthor
-% % \lsCoverSeries
-% % \lsCoverLogo
+\newcommand{\lsFrontPage}{% Front page
+ \ifcsname tikz@library@external@loaded\endcsname\tikzexternaldisable\fi
+ \pgfdeclarelayer{lspcls_bg} % Create a background layer that serves as the canvas for the coloured rectangles.
+ \pgfsetlayers{lspcls_bg,main} % Order the background layer behind the main layer of TikZ.
\thispagestyle{empty}
\renewcommand{\and}{, }%
\renewcommand{\lastand}{ \& }%
@@ -1000,16 +968,15 @@
\podcoverbottomtext
\iflsDraft \node [rotate=45,align=center,scale=3,color=white,text opacity=.75] at (current page.center) {\lsCoverTitleFont Draft\\of \today, \currenttime}; \fi
\iflsOpenReview \node [rotate=45,align=center,scale=1.5,color=white,text opacity=.75] at (current page.center) {\lsCoverTitleFont Open Review\\Version of \today, \currenttime}; \fi
- \iflsUndecapitalize \node [rotate=45,scale=1.5,color=white,text opacity=.75] at (current page.center) {\lsCoverTitleFont Undecapitalized}; \fi
+% \iflsUndecapitalize \node [rotate=45,scale=1.5,color=white,text opacity=.75] at (current page.center) {\lsCoverTitleFont Undecapitalized}; \fi
\end{tikzpicture}
+\ifcsname tikz@library@external@loaded\endcsname\tikzexternalenable\fi
}
\newcommand{\lsSchmutztitel}{% Schmutztitel
+ \ifcsname tikz@library@external@loaded\endcsname\tikzexternaldisable\fi
\pgfdeclarelayer{lspcls_bg} % Create a background layer that serves as the canvas for the coloured rectangles.
- \pgfsetlayers{lspcls_bg,main} % Order the background layer behind the main layer of TikZ.
-% % \lsCoverBlock
-% % \lsCoverTitleAuthor
-% % \lsCoverLogo
+ \pgfsetlayers{lspcls_bg,main} % Order the background layer behind the main layer of TikZ.
\thispagestyle{empty}
\renewcommand{\and}{, }%
\renewcommand{\lastand}{ \& }%
@@ -1026,36 +993,16 @@
\podfrontcovertoptext[\lsSeriesColor]{140mm}{51pt}
\node [ above left = 10mm and 7.5mm of CoverColouredRectangleFront.south east] {\color{\lsSeriesColor}\includegraphics{\logopath langsci_logo_nocolor.pdf}}; % Print the Language Science press Logo
\end{tikzpicture}
+\ifcsname tikz@library@external@loaded\endcsname\tikzexternalenable\fi
}
%\usepackage{pdfpages}
-\newcommand{\lsAdvertisement}{
+\newcommand{\lsAdvertisement}{%
\include{\logopath langsci-advertisement}
}
-\newcommand{\lsBackPage}{ % Back page
-% % \lsCoverBlock
-% %
-% % \begin{textblock}{140}(15,24) % 30mm-6mm
-% % \color{white}
-% % {\raggedright
-% % \lsBackTitleFont
-% % \lsBackTitle \\ \null}
-% %
-% % \lsBackBodyFont
-% %
-% % \noindent
-% % \lsBackBody
-% % \end{textblock}
-% %
-% % \begin{textblock}{40}(105,200)
-% % \lsBackBodyFont\sffamily
-% % \colorbox{white}{%
-% % \begin{pspicture}(0,0)(4.1,1in)
-% % \psbarcode[transx=0.4,transy=0.3]{\lsISBNdigital}{includetext height=0.7}{isbn}
-% % \end{pspicture}
-% % }%
-% % \end{textblock}
+\newcommand{\lsBackPage}{%
+ \ifcsname tikz@library@external@loaded\endcsname\tikzexternaldisable\fi
\pgfdeclarelayer{lspcls_bg} % Create a background layer that serves as the canvas for the coloured rectangles.
\pgfsetlayers{lspcls_bg,main} % Order the background layer behind the main layer of TikZ.
\pagestyle{empty}
@@ -1074,13 +1021,12 @@
\end{pgfonlayer}
\podbackcover{137mm}
\end{tikzpicture}
+ \ifcsname tikz@library@external@loaded\endcsname\tikzexternalenable\fi
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%
% Series history
-%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\lsSeriesHistory}{
@@ -1092,15 +1038,11 @@
\IfStrEq{\lsISSN}{??} % \IfStrEq from xstring
{}
- {\vfill\hfill ISSN: \lsISSN}
-
-}
-
+ {\vfill\hfill ISSN: \lsISSN}
+}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%
% Imprint
-%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% for imprint:
@@ -1136,17 +1078,57 @@
\newcommand{\SeriesNumber}[1]{\renewcommand{\lsSeriesNumber}{#1}}
\newcommand{\BookDOI}[1]{\renewcommand{\lsBookDOI}{#1}}
+
+%invert names of first author for citation on impressum page
+
+\newcommand{\lsFirstAuthorFullName}{}%temporary, will be overwritten
+\newcommand{\lsFirstAuthorFirstName}{}%temporary, will be overwritten
+\newcommand{\lsFirstAuthorLastName}{}%temporary, will be overwritten
+\newcommand{\lsFirstAuthorString}{\lsFirstAuthorLastName, \lsFirstAuthorFirstName} %can be customized in localmetadata.tex
+\newcommand{\lsNonFirstAuthorsString}{} %default, will be overwritten iff more than one author
+% \newcommand{\lsImpressionCitationAuthor}{\lsFirstAuthorString \lsNonFirstAuthorsString}
+
+
+\AtBeginDocument{
+\makeatletter
+\let\theauthor\@author
+\makeatother
+\renewcommand{\and}{NONLASTAND} %expand for easier checking. Might need to be undone later on
+\renewcommand{\lastand}{LASTAND} %expand for easier checking
+
+\IfSubStr{\theauthor}{NONLASTAND}{%2+authors
+ \renewcommand{\lsFirstAuthorFullName}{\StrBefore{\theauthor}{\and }}
+ \renewcommand{\lsFirstAuthorFirstName}{\StrBefore{\theauthor}{ }}
+ \renewcommand{\lsFirstAuthorLastName}{\StrBetween{\theauthor}{ }{\and }}
+ \renewcommand{\lsNonFirstAuthorsString}{\and\StrBehind{\theauthor}{\and }}
+ }{%else
+ \IfSubStr{\theauthor}{LASTAND}{%less than two authors, more than one
+ \renewcommand{\lsFirstAuthorFullName}{\StrBefore{\theauthor}{\lastand }}
+ \renewcommand{\lsFirstAuthorFirstName}{\StrBefore{\theauthor}{ }}
+ \renewcommand{\lsFirstAuthorLastName}{\StrBetween{\theauthor}{ }{\lastand }}
+ \renewcommand{\lsNonFirstAuthorsString}{\lastand\StrBehind{\theauthor}{\lastand }}
+ }{%else exactly one author
+ \renewcommand{\lsFirstAuthorFirstName}{\StrBefore{\theauthor}{ }}
+ \renewcommand{\lsFirstAuthorLastName}{\StrBehind{\theauthor}{ }}
+ }
+ }
+}
+
+
+\newcommand{\lsImpressionCitationAuthor}{
+\lsFirstAuthorLastName, \lsFirstAuthorFirstName \lsNonFirstAuthorsString}
+
\newcommand{\lsImpressumCitationText}{
\onlyAuthor
\renewcommand{\newlineCover}{}
\renewcommand{\newlineSpine}{}
- {\@author}\if\lsEditorSuffix\empty\else\ \lsEditorSuffix\fi. %
+ {\lsImpressionCitationAuthor}\if\lsEditorSuffix\empty\else\ \lsEditorSuffix\fi. %
{\lsYear}. %
\textit{\@title}\if\@subtitle\empty\else: \textit{\@subtitle}\fi\ %
(\lsSeriesTitle). %
Berlin: Language Science Press.
}
-
+\newcommand{\lsImpressumExtra}{}%for legal notes required for revised theses ("... in fulfillment of ... ")
\newcommand{\lsImpressum}{
\thispagestyle{empty}
\raggedright
@@ -1163,12 +1145,20 @@ This title can be downloaded at:\\
\newcommand{\ccby}{CC-BY}
\ifx\lsCopyright\ccby
Published under the Creative Commons Attribution 4.0 Licence (CC BY 4.0):
-http://creativecommons.org/licenses/by/4.0/
+http://creativecommons.org/licenses/by/4.0/ \includegraphics[height=.75em]{\logopath ccby.eps}
\else
Published under the Creative Commons Attribution-NoDerivatives 4.0 Licence (CC BY-ND 4.0):
-http://creativecommons.org/licenses/by-nd/4.0/
+http://creativecommons.org/licenses/by-nd/4.0/ \includegraphics[height=.75em]{\logopath ccbynd.eps}
\fi
+{\lsImpressumExtra}
+
+\ifx\lsSeries\sidl
+Indexed in EBSCO\smallskip
+\fi
+
+
+
\begin{tabular}{@{}l@{~}l}
ISBN: &
\IfStrEq{\lsISBNdigital}{000-0-000000-00-0}{%no digital ISBN, issue warning
@@ -1199,9 +1189,10 @@ ISBN: &
\IfStrEq{\lsBookDOI}{??} % \IfStrEq from xstring
{{\color{red} no DOI}}
{\doi{\lsBookDOI}}\\
+\IfStrEq{\lsID}{000}{\color{red} ID not assigned!}{%
Source code available from \href{https://www.github.com/langsci/\lsID}{www.github.com/langsci/\lsID} \\
Collaborative~reading:~\href{https://paperhive.org/documents/remote?type=langsci&id=\lsID}{paperhive.org/documents/remote?type=langsci\&id=\lsID}
-
+}%
\bigskip
Cover and concept of design:
@@ -1254,9 +1245,7 @@ Storage and cataloguing done by FU Berlin \\[3ex]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%
% Dedication
-%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\lsDedication}{\thispagestyle{empty}
@@ -1270,9 +1259,7 @@ Storage and cataloguing done by FU Berlin \\[3ex]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%
% Header and footer
-%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{datetime}
@@ -1301,9 +1288,7 @@ Storage and cataloguing done by FU Berlin \\[3ex]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%
% Sectioning
-%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setcounter{secnumdepth}{4}
@@ -1323,9 +1308,7 @@ Storage and cataloguing done by FU Berlin \\[3ex]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%
% Epigrams
-%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\epigram#1{\gdef\@epigram{#1}} % needs to be defined this way to check emptiness
@@ -1342,9 +1325,7 @@ Storage and cataloguing done by FU Berlin \\[3ex]
\setlength{\afterepigraphskip}{0\baselineskip}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%
% Footnotes
-%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ifxetex
@@ -1372,9 +1353,7 @@ Storage and cataloguing done by FU Berlin \\[3ex]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%
% Quotes
-%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% quotes are indented at one side only.
@@ -1385,8 +1364,7 @@ Storage and cataloguing done by FU Berlin \\[3ex]
%% quotations are indented at one side only
%% there is no indentation at the beginning of the quote
\renewenvironment{quotation}
-{\list{}{\listparindent 1.5em%
-%\itemindent \listparindent
+{\list{}{\listparindent 1.5em%\itemindent \listparindent
%\rightmargin \leftmargin
\parsep \z@ \@plus\p@}%
\item\relax}
@@ -1412,18 +1390,18 @@ Storage and cataloguing done by FU Berlin \\[3ex]
\else
\iflsBabelShorthands
\ifx\lsBookLanguage\lsBookLanguageEnglish
- \usepackage[german,\lsBookLanguage]{babel}
+ \usepackage[ngerman,\lsBookLanguage]{babel}
\addto\extrasenglish{\languageshorthands{german}\useshorthands{"}}
\fi
\ifx\lsBookLanguage\lsBookLanguageFrench
- \usepackage[german,\lsBookLanguage]{babel}
+ \usepackage[ngerman,\lsBookLanguage]{babel}
\addto\extrasfrench{\languageshorthands{german}\useshorthands{"}}
\fi
\ifx\lsBookLanguage\lsBookLanguageGerman
- \usepackage[german]{babel}
+ \usepackage[ngerman]{babel}% ngerman provides better hyphenation than german.
\fi
\ifx\lsBookLanguage\lsBookLanguagePortuguese
- \usepackage[german,\lsBookLanguage]{babel}
+ \usepackage[ngerman,\lsBookLanguage]{babel}
\addto\extrasportuges{\languageshorthands{german}\useshorthands{"}}
\fi
\else
@@ -1433,20 +1411,13 @@ Storage and cataloguing done by FU Berlin \\[3ex]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%
% Citations
-%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[
- natbib=true,
- % \iflsUndecapitalize
- % style=\bstpath biblatex-langsci-unified-undecap,
- % \else
- % style=\bstpath biblatex-langsci-unified,
- % \fi
- style=\bbxpath biblatex-langsci-unified,
- citestyle=\cbxpath langsci-authoryear-comp,
+ natbib=true,
+ style=\bibstylepath langsci-unified,
+ citestyle=\bibstylepath langsci-unified,
useprefix = true, %sort von, van, de where they should appear
%refsection=chapter,
maxbibnames=99,
@@ -1464,7 +1435,7 @@ Storage and cataloguing done by FU Berlin \\[3ex]
\iflsCollection\else
toc=bib, % make bibliography appear in toc
\fi
- datamodel=\bstpath langsci % add authauthor and autheditor as possible fields to bibtex entries
+ datamodel=\bibstylepath langsci % add authauthor and autheditor as possible fields to bibtex entries
]{biblatex}
% If the user provided a shortauthor in the bibtex entry, we use the authentic author (as with the
@@ -1490,21 +1461,8 @@ Storage and cataloguing done by FU Berlin \\[3ex]
{}}
-%% changes of citestyle (cbx) (FIXME: documentation missing)
-\renewcommand{\postnotedelim}{: }%
-\renewcommand{\multicitedelim}{\addsemicolon\space}%
-\renewcommand{\compcitedelim}{\multicitedelim}
-% \renewcommand{\nameyeardelim}{ }%
-
-%% changes of bibliography style (bbx)
-\DeclareFieldFormat{postnote}{#1}% display pages without page prefix (p., pp.)
-\DeclareBibliographyAlias{inbook}{incollection}% see https://github.com/semprag/biblatex-sp-unified/issues/35
-\DeclareFieldFormat[techreport,report,misc]{titlecase}{\MakeSentenceCase*{#1}}% techreport/report and misc are not genuinely supported by biblatex-sp-unified
-%% The note field should appear at end of an entry just before the DOI, other than with the used bibliography style. It is therefore first removed, then again restored and included together with the DOI.
-\AtEveryBibitem{%
- \savefield*{note}{\lsnote}%
- \clearfield{note}%
-}
+
+
%% DOIs are handled after hyperref.
\defbibheading{references}{\chapter{References}\sloppy}
\defbibheading{french}{\chapter{Références bibliographiques}\sloppy}
@@ -1549,24 +1507,16 @@ Storage and cataloguing done by FU Berlin \\[3ex]
%% penalties against widows and orphans in bibliography
%% http://tex.stackexchange.com/questions/297705/atbeginenvironment-does-not-work-with-natbib/297721#297721
-\usepackage{etoolbox}
\apptocmd{\thebibliography}{%
\clubpenalty\@M
\@clubpenalty\clubpenalty
\widowpenalty\@M
}
{}{}
-
-% % temporary workaround to fix wrong wrapping for \verb in bibtex
-% \makeatletter
-% \def\blx@maxline{77}
-% \makeatother
-
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%
% Floats
-%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{floatrow} % For adjusting the position of the caption (default is below).
@@ -1613,9 +1563,7 @@ width=.8\textwidth
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%
% Appendices
-%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\appto\appendix{%
@@ -1635,13 +1583,10 @@ width=.8\textwidth
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%
% Indexes
-%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\usepackage{index}
-%% Wie im Stylefile, aber ohne \MakeUppercase
+\usepackage{index} %% Wie im Stylefile, aber ohne \MakeUppercase
\renewenvironment{theindex}{%
\edef\indexname{\the\@nameuse{idxtitle@\@indextype}}%
\if@twocolumn
@@ -1657,9 +1602,7 @@ width=.8\textwidth
\index@prologue
\bigskip
\fi
- ]%
-% \@mkboth{\MakeUppercase\indexname}%
-% {\MakeUppercase\indexname}%
+ ]% \@mkboth{\MakeUppercase\indexname}% {\MakeUppercase\indexname}%
\@mkboth{\indexname}%
{\indexname}%
\thispagestyle{plain}%
@@ -1694,6 +1637,11 @@ width=.8\textwidth
\renewcommand{\lsAcknowledgementTitle}{Remerciements}
\renewcommand{\lsAbbreviationsTitle}{Liste des abréviations utilisées dans les gloses des exemples}
\renewcommand{\lsReferencesTitle}{french}
+ \iflsNoBabel
+ \else
+ \renewcommand\frenchfigurename{Figure}
+ \renewcommand\frenchtablename{Table}
+ \fi
\IfFileExists{{\localepath langsci-hyphenation-fr}}{\input{\localepath langsci-hyphenation-fr}}{}
\fi
@@ -1721,20 +1669,19 @@ width=.8\textwidth
\IfFileExists{{\localepath langsci-hyphenation-pt}}{\input{\localepath langsci-hyphenation-pt}}{}
\fi
-\AtBeginDocument{
+% \AtBeginDocument{% FK 16-Jan-19: It is unclear why this was set. It conflicts with TikZ externalisation.
\makeindex
\newindex{lan}{ldx}{lnd}{\lsLanguageIndexTitle}
\newindex{sbj}{sdx}{snd}{\lsSubjectIndexTitle}
\renewindex{default}{adx}{and}{\lsNameIndexTitle} %biblatex can only deal with the default index
% \newindex{wrd}{wdx}{wnd}{Expression index}
% \newindex{rwrd}{rdx}{rnd}{Reverse expression index}
-}
+% }
\indexproofstyle{\setlength{\overfullrule}{0pt}\raggedright\footnotesize}
%% \index inside footnote
-\def\infn#1#2{%
-% \hyperpage{#2}n#1% 99n2
+\def\infn#1#2{% \hyperpage{#2}n#1% 99n2
% \hyperpage{#2}*% 99*
\hyperpage{#2}\textsuperscript{#1}% 99²
}%
@@ -1791,8 +1738,8 @@ width=.8\textwidth
\let\isold\is
\let\ilold\il
\let\iaold\ia
- \renewcommand{\isi}[1]{\sethlcolor{green}\hl{#1}\isold{#1}}
- \renewcommand{\is}[1]{{\tikzstyle{notestyleraw} += [text width=1.5cm]\todo[color=green,size=\scriptsize]{\tiny#1}\isold{#1}}}
+ \renewcommand{\isi}[1]{\sethlcolor{lsSoftGreen}\hl{#1}\isold{#1}}
+ \renewcommand{\is}[1]{{\tikzstyle{notestyleraw} += [text width=1.5cm]\todo[color=lsSoftGreen,size=\scriptsize]{\tiny#1}\isold{#1}}}
\renewcommand{\ili}[1]{\sethlcolor{yellow}\hl{#1}\ilold{#1}}
\renewcommand{\il}[1]{{\tikzstyle{notestyleraw} += [text width=1.5cm]\todo[color=yellow,size=\scriptsize]{\tiny#1}\ilold{#1}}}
\renewcommand{\iai}[1]{\sethlcolor{pink}\hl{#1}\iaold{#1}}
@@ -1801,9 +1748,7 @@ width=.8\textwidth
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%
% Hyperref
-%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[
@@ -1833,7 +1778,7 @@ width=.8\textwidth
\iffieldundef{url}{}{ \url{\thefield{url}}\iffieldundef{urlday}{}{, accessed \thefield{urlyear}-\thefield{urlmonth}-\thefield{urlday}}.}
\restorefield{note}{\lsnote}
\iffieldundef{note}{}{\addspace{\thefield{note}\addperiod}}
- \iffieldundef{doi}{}{ {\color{lsGuidelinesGray}\doi{\thefield{doi}}}}
+ \iffieldundef{doi}{}{ {\color{lsDOIGray}\doi{\thefield{doi}}}}
}
%\DeclareFieldFormat{doi}{{\color{lsGuidelinesGray}\doi{#1}}}
\fi
@@ -1852,9 +1797,7 @@ width=.8\textwidth
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%
% Collection (edited volume):
-%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% for papers of collections:
@@ -1891,10 +1834,13 @@ width=.8\textwidth
\edef\lsCollectionTitle{\@title\ifx\@subtitle\empty\else{: \@subtitle}\fi} % \edef immediately expands \@title
\edef\lsCollectionEditor{\@author}
\addbibresource{collection_tmp.bib}
+ \if@partsw\AfterEndDocument{\typeout{langscibook Warning: You are in includeonly mode.}\typeout{The bibliographical information for the chapters in this volume have not been updated}}\else% Check for \includeonly mode
\newwrite\tempfile % open temporary bib file
\immediate\openout\tempfile=collection_tmp.bib
+ \fi
}
-\AtEndDocument{\immediate\closeout\tempfile}% close temporary bib file
+% Only touch the \tempfile if we are NOT in \includeonly mode, prevent flushing of the file
+\AtEndDocument{\if@partsw\else\immediate\closeout\tempfile\fi}% close temporary bib file
%% customize \tableofcontents
\renewcommand{\@dotsep}{2.5} % space between dots
@@ -1938,12 +1884,13 @@ width=.8\textwidth
{\thefield{entrytype}}}
{\multicitedelim}
{\usebibmacro{postnote}}
- \renewcommand{\lsCollectionPaperCitationText}{\fullciteFooter{#1}}
+ \renewcommand{\lsCollectionPaperCitationText}{\fullciteFooter{#1footer}}
\include{#1}%
- \addtocounter{page}{-1}
- \edef\lsCollectionPaperLastPage{\thepage} % \lsCollectionPaperFirstPage is defined in \lsPaper
- \addtocounter{page}{1}
+ \if@partsw\relax\else% This switch controls whether the included chapter is in the range of \includeonly. It's from source2e.
+ \addtocounter{page}{-1}
+ \edef\lsCollectionPaperLastPage{\thepage} % \lsCollectionPaperFirstPage is defined in \lsPaper
+ \addtocounter{page}{1}
%%% for citation in footer
%% preprocessing of author/editor names
@@ -1958,8 +1905,9 @@ width=.8\textwidth
%% write bib entry to file
%% FIXME: the publisher field needs a final period, since this is not provided by \fullciteFooter together with DOIs.
- \immediate\write\tempfile{@incollection{#1,author={\authorTemp},title={{\lsCollectionPaperFooterTitle}},booktitle={{\lsCollectionTitle}},editor={\editorTemp},publisher={Language Science Press.},Address={Berlin},year={\,\lsYear},pages={\lsCollectionPaperFirstPage --\lsCollectionPaperLastPage},doi={\lsChapterDOI},options={skipbib=true,skiplab=true}}}
-
+ \immediate\write\tempfile{@incollection{#1,author={\authorTemp},title={{\lsCollectionPaperFooterTitle}},booktitle={{\lsCollectionTitle}},editor={\editorTemp},publisher={Language Science Press.},Address={Berlin},year={\lsYear},pages={\lsCollectionPaperFirstPage --\lsCollectionPaperLastPage},doi={\lsChapterDOI},keywords={withinvolume}}}
+ \immediate\write\tempfile{@incollection{#1footer,author={\authorTemp},title={{\lsCollectionPaperFooterTitle}},booktitle={{\lsCollectionTitle}},editor={\editorTemp},publisher={Language Science Press.},Address={Berlin},year={\lsYear},pages={\lsCollectionPaperFirstPage --\lsCollectionPaperLastPage},doi={\lsChapterDOI},options={dataonly=true}}}
+ \fi% If the paper is not within \includeonly, don't do anything.
\end{refsection}
\end{collectionpaper}}
\fi
@@ -2043,8 +1991,8 @@ width=.8\textwidth
\includegraphics{\logopath langsci_spinelogo_nocolor.pdf}}%
% \hspace{0.8em}%
\hfill%
- \parbox[b]{.87\textwidth}{\linespread{0.8}\lsChapterFooterSize\normalfont\lsCollectionPaperCitationText}}
-\ifx\lsOutput\lsOutputPaper % only if output=paper
+ \parbox[b]{.87\textwidth}{\linespread{0.8}\lsChapterFooterSize\normalfont\lsCollectionPaperCitationText \includegraphics[height=.75em]{\logopath ccby.eps}}}
+\ifx\lsOutput\lsOutputPaper % only if output==paper
\renewcommand{\lsCollectionPaperCitation}{Change with \string\papernote}
\fi
@@ -2087,22 +2035,86 @@ width=.8\textwidth
}
+
+
%writeout page numbers for separation of chapters
% \usepackage{newfile}
% \newoutputstream{pages}
% \openoutputfile{\jobname.pgs}{pages}
% \newcommand{\writechapterpages}{\addtostream{pages}{\thepage}}
-%
% \AtEndDocument{
% \closeoutputstream{pages}
% }
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Color definitions:
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\definecolor{lsLightBlue}{cmyk}{0.6,0.05,0.05,0}
+\definecolor{lsMidBlue}{cmyk}{0.75,0.15,0,0}
+\definecolor{lsMidDarkBlue}{cmyk}{0.9,0.4,0.05,0}
+\definecolor{lsDarkBlue}{cmyk}{0.9,0.5,0.15,0.3}
+\definecolor{lsNightBlue}{cmyk}{1,0.47,0.22,0.68}
+
+\definecolor{lsYellow}{cmyk}{0,0.25,1,0}
+\definecolor{lsLightOrange}{cmyk}{0,0.50,1,0}
+\definecolor{lsMidOrange}{cmyk}{0,0.64,1,0}
+\definecolor{lsDarkOrange}{cmyk}{0,0.78,1,0}
+\definecolor{lsRed}{cmyk}{0.05,1,0.8,0}
+
+\definecolor{lsLightWine}{cmyk}{0.3,1,0.6,0}
+\definecolor{lsMidWine}{cmyk}{0.54,1,0.65,0.1}
+\definecolor{lsDarkWine}{cmyk}{0.58,1,0.70,0.35}
+\definecolor{lsSoftGreen}{cmyk}{0.32,0.02,0.72,0}
+\definecolor{lsLightGreen}{cmyk}{0.4,0,1,0}
+
+\definecolor{lsMidGreen}{cmyk}{0.55,0,0.9,0.1}
+\definecolor{lsRichGreen}{cmyk}{0.6,0,0.9,0.35}
+\definecolor{lsDarkGreenOne}{cmyk}{0.85,0.02,0.95,0.38}
+\definecolor{lsDarkGreenTwo}{cmyk}{0.85,0.05,1,0.5}
+\definecolor{lsNightGreen}{cmyk}{0.88,0.15,1,0.66}
+
+\definecolor{lsLightGray}{cmyk}{0,0,0,0.17}
+\definecolor{lsGuidelinesGray}{cmyk}{0,0.04,0,0.45}
+
+\definecolor{lsDOIGray}{cmyk}{0,0,0,0.45}
+
+\definecolor{langscicol1}{cmyk}{0.6,0.05,0.05,0}
+\definecolor{langscicol2}{cmyk}{0.75,0.15,0,0}
+\definecolor{langscicol3}{cmyk}{0.9,0.4,0.05,0}
+\definecolor{langscicol4}{cmyk}{0.9,0.5,0.15,0.3}
+\definecolor{langscicol5}{cmyk}{1,0.47,0.22,0.68}
+\definecolor{langscicol6}{cmyk}{0,0.25,1,0}
+\definecolor{langscicol7}{cmyk}{0,0.50,1,0}
+\definecolor{langscicol8}{cmyk}{0,0.64,1,0}
+\definecolor{langscicol9}{cmyk}{0,0.78,1,0}
+\definecolor{langscicol10}{cmyk}{0.05,1,0.8,0}
+\definecolor{langscicol11}{cmyk}{0.3,1,0.6,0}
+\definecolor{langscicol12}{cmyk}{0.54,1,0.65,0.1}
+\definecolor{langscicol13}{cmyk}{0.58,1,0.70,0.35}
+\definecolor{langscicol14}{cmyk}{0.32,0.02,0.72,0}
+\definecolor{langscicol15}{cmyk}{0.4,0,1,0}
+\definecolor{langscicol16}{cmyk}{0.55,0,0.9,0.1}
+\definecolor{langscicol17}{cmyk}{0.6,0,0.9,0.35}
+\definecolor{langscicol18}{cmyk}{0.85,0.02,0.95,0.38}
+\definecolor{langscicol19}{cmyk}{0.85,0.05,1,0.5}
+\definecolor{langscicol20}{cmyk}{0.88,0.15,1,0.66}
+
+
+% \newcommand{\lsptable}[2]{
+% \resizebox{#1}{!}{
+% \begin{tabularx}{\textwidth}{XXXXXXXXXXXXXXXXXXXX}
+% \cellcolor{langscicol1}&\cellcolor{langscicol2}&\cellcolor{langscicol3}&\cellcolor{langscicol4}&\cellcolor{langscicol5}&\cellcolor{langscicol6}&\cellcolor{langscicol7}&\cellcolor{langscicol8}&\cellcolor{langscicol9}&\cellcolor{langscicol10}&\cellcolor{langscicol11}&\cellcolor{langscicol12}&\cellcolor{langscicol13}&\cellcolor{langscicol14}&\cellcolor{langscicol15}&\cellcolor{langscicol16}&\cellcolor{langscicol17}&\cellcolor{langscicol18}&\cellcolor{langscicol19}&\cellcolor{langscicol20}
+% \rule{0pt}{#2}
+% \end{tabularx}
+% }
+% }
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%
% Miscellaneous
-%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[figuresright]{rotating}
@@ -2122,4 +2134,14 @@ width=.8\textwidth
%% {}* Can the boy who run fast can jump high?
%% \zl
+\iflsArseneau% Donald Arseneau's automatic handling of page breaking from comp.text.tex: https://groups.google.com/d/topic/comp.text.tex/3eehwzortPg/discussion
+% With the optimisations from the memoir class. The memoir class has relative instead of absolute values.
+\def\sloppybottom{%
+ \def\@textbottom{\vskip \z@ \@plus.0001fil \@minus .95\topskip}%
+ \topskip=1\topskip \@plus 0.625\topskip \@minus .95\topskip%
+ \def\@texttop{\vskip \z@ \@plus -0.625\topskip \@minus -0.95\topskip}%
+}
+\sloppybottom
+\fi
+
\endinput