diff options
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/langsci/langsci-optional.sty')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/langsci/langsci-optional.sty | 40 |
1 files changed, 39 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/xelatex/langsci/langsci-optional.sty b/Master/texmf-dist/tex/xelatex/langsci/langsci-optional.sty index 4edfa8672c4..17e9f0df598 100644 --- a/Master/texmf-dist/tex/xelatex/langsci/langsci-optional.sty +++ b/Master/texmf-dist/tex/xelatex/langsci/langsci-optional.sty @@ -1,7 +1,7 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% File: langsci-optional.sty %% Author: Language Science Press (http://langsci-press.org) -%% Date: 2016-01-16 16:47:43 UTC +%% Date: 2022-02-16 16:47:43 UTC %% Purpose: This file contains useful, but not essential, %% macros for books using langscibook.cls %% Language: LaTeX @@ -351,3 +351,41 @@ \newcommand{\glottocodes}[1]{} \newcommand{\keywords}[1]{} + +\providecommand{\ob}{{\upshape [}} %opening bracket +\providecommand{\cb}{{\upshape ]}} %closing bracket +\providecommand{\op}{{\upshape (}} %opening paren +\providecommand{\cp}{{\upshape )}} %closing paren +\providecommand{\db}{\hphantom{[}} %dummy space for [ in IMT line + +% old font commands +\renewcommand{\it}{\itshape} +\renewcommand{\bf}{\bfseries} +\renewcommand{\sc}{\scshape} +\renewcommand{\rm}{\upshape} + +% Shortcuts to langsci-affiliation styles +% These commands allow switching between two frequently used output styles +% for authors and affiliations: +% The first command does not produce any superscripted indexes for affiliations. +% Authors are output in their own line (not grouped in one line), with their +% affiliations following in the line directly below their names. +\NewDocumentCommand{\AffiliationsWithoutIndexing}{} + {% + \SetupAffiliations{output in groups = false, + separator between two = {\bigskip\\}, + separator between multiple = {\bigskip\\}, + separator between final two = {\bigskip\\} + } + } +% This commands reverts to the standards in langsci-affiliations: authors are +% grouped in one line, with indexes pointing to their affiliations. Affiliations +% are resolved in the line below. +\NewDocumentCommand{\AffiliationsWithIndexing}{} + {% + \SetupAffiliations{output in groups = true, + separator between two = {~\&~}, + separator between multiple = {,~}, + separator between final two = {~\&~} + } + } |