diff options
author | Norbert Preining <norbert@preining.info> | 2021-03-18 03:01:43 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-03-18 03:01:43 +0000 |
commit | ca17f652236af2ce3a16cb0125fb6e190d59cc17 (patch) | |
tree | 1664d8d4a3ba38eacabed5fe0e3d4ff7f2dd966c /macros/xetex/latex/langsci/langsci-optional.sty | |
parent | bb51b61cfc3fcb367f52d31948039a1468fbcf80 (diff) |
CTAN sync 202103180301
Diffstat (limited to 'macros/xetex/latex/langsci/langsci-optional.sty')
-rw-r--r-- | macros/xetex/latex/langsci/langsci-optional.sty | 34 |
1 files changed, 26 insertions, 8 deletions
diff --git a/macros/xetex/latex/langsci/langsci-optional.sty b/macros/xetex/latex/langsci/langsci-optional.sty index c70f7e35f7..4edfa8672c 100644 --- a/macros/xetex/latex/langsci/langsci-optional.sty +++ b/macros/xetex/latex/langsci/langsci-optional.sty @@ -8,6 +8,7 @@ %% Licence: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\usepackage{pbox} % boxes with maximum width % Heiko Oberdiek % http://tex.stackexchange.com/questions/136644/vertical-space-in-interaction-with-figure-center-environment \newcommand{\oneline}[1]{% @@ -109,7 +110,6 @@ } \newcommand{\fittable}[1]{\resizebox{\textwidth}{!}{#1}} -\usepackage{tabularx} \usepackage{array} \newenvironment{widetabular}[1][1] {\tabularx{#1\textwidth}} @@ -134,6 +134,7 @@ \node at (2.25,1) (O) {ɔ}; } +\usepackage{tabularx} %no hyphenation left alingned \newcolumntype{Q}{>{\raggedright\arraybackslash}X} %no hyphenation right aligned @@ -147,9 +148,6 @@ %no hyphenation right aligned fixed width \newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} -\newcolumntype{d}[1]{D{.}{.}{#1}} - - % Underlining in gb4e-example Environments. Usual underlining commands that span multiple words do not work, because gb4e would parse it as one word. % Example: \underline{My example phrase} should become \ulp{My}{~~~~~} \ulp{example}{~~~~~} \ule{phrase} % Note: The 2nd Argument of the \ulp command is filled in by experience - if you are not familiar with the command, you should experiment a bit. Usually, five tildes are enough, but be sure to check the outcome. @@ -216,8 +214,8 @@ % \def\blx@maxline{77} % \makeatother +\usepackage{todonotes} \newcommand{\rephrase}[2]{{\color{yellow!30!black}#2}\todo{replaced `#1'}} - \newcommand{\missref}[2][]{\todo[#1]{missing reference #2}} \newenvironment{indentquote}[1]% @@ -269,7 +267,7 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % for chapters without abstract -\newcommand{\noabstract}{\vspace*{-2\baselineskip}} +\newcommand{\noabstract}{\relax} %%%%%%%%%%%%%%%%%%%% %%%% %%%%% @@ -277,10 +275,8 @@ %%%% %%%%% %%%%%%%%%%%%%%%%%%%% - \newcommand{\LSfrac}[1]{{\addfontfeature{Fractions=On}#1}}% Use the fraction glyphs shipped with Libertine. The argument is n/m, where n and m are integers - % Provide a raised tie bar for diphthongs and affricates with ascenders \newcommand{\hitie}[2]{% \mbox{#1}% @@ -333,3 +329,25 @@ \usepackage{pifont} \newcommand*{\langscicheckmark}{\ding{51}} \newcommand*{\langscicross}{\ding{55}} + + +\providecommand{\citegen}[2][]{\citeauthor{#2}'s (\citeyear*[#1]{#2})} +\providecommand{\citeapo}[2][]{\citeauthor{#2}' (\citeyear*[#1]{#2})} + +\providecommand{\protectedex}[1]{\noindent\parbox{\linewidth}{#1}} + +\providecommand{\largerpage}[1][1]{\enlargethispage{#1\baselineskip}} + +% vertical space to structure tables +\providecommand{\tablevspace}{\\[-.5em]} + +\providecommand{\biberror}[1]{{\color{red}#1}} + +\providecommand{\lsptoprule}{\midrule\toprule} +\providecommand{\lspbottomrule}{\bottomrule\midrule} + +\providecommand{\REF}[1]{(\ref{#1})} + + +\newcommand{\glottocodes}[1]{} +\newcommand{\keywords}[1]{} |