diff options
author | Karl Berry <karl@freefriends.org> | 2022-02-17 21:47:27 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-02-17 21:47:27 +0000 |
commit | ad59fa4275f36a12c72af4b1f5bd6aa06b522101 (patch) | |
tree | ceb10d59fdf3cfa6bb95500ab2b61b35a278c687 /Master/texmf-dist/tex/xelatex/langsci/langsci-optional.sty | |
parent | 736fd624a41b983a5190e2bcfbc1fb779bdab35a (diff) |
langsci (17feb22)
git-svn-id: svn://tug.org/texlive/trunk@62061 c570f23f-e606-0410-a88d-b1316a301751
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 = {~\&~} + } + } |