From fd95e879442e050790f06552eb074eeb7c5b4cab Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 11 May 2020 03:02:11 +0000 Subject: CTAN sync 202005110302 --- .../acro/examples/acro.example.texsx-513623.pdf | Bin 0 -> 22752 bytes .../acro/examples/acro.example.texsx-513623.tex | 21 +++++++++++ .../acro/examples/acro.example.texsx-515295.pdf | Bin 0 -> 15855 bytes .../acro/examples/acro.example.texsx-515295.tex | 24 +++++++++++++ .../acro/examples/acro.example.texsx-542461.pdf | Bin 0 -> 15808 bytes .../acro/examples/acro.example.texsx-542461.tex | 39 +++++++++++++++++++++ .../contrib/acro/examples/acro.example.units.pdf | Bin 65310 -> 65067 bytes .../contrib/acro/examples/acro.example.units.tex | 17 ++++----- 8 files changed, 90 insertions(+), 11 deletions(-) create mode 100644 macros/latex/contrib/acro/examples/acro.example.texsx-513623.pdf create mode 100644 macros/latex/contrib/acro/examples/acro.example.texsx-513623.tex create mode 100644 macros/latex/contrib/acro/examples/acro.example.texsx-515295.pdf create mode 100644 macros/latex/contrib/acro/examples/acro.example.texsx-515295.tex create mode 100644 macros/latex/contrib/acro/examples/acro.example.texsx-542461.pdf create mode 100644 macros/latex/contrib/acro/examples/acro.example.texsx-542461.tex (limited to 'macros/latex/contrib/acro/examples') diff --git a/macros/latex/contrib/acro/examples/acro.example.texsx-513623.pdf b/macros/latex/contrib/acro/examples/acro.example.texsx-513623.pdf new file mode 100644 index 0000000000..51e1ef49fb Binary files /dev/null and b/macros/latex/contrib/acro/examples/acro.example.texsx-513623.pdf differ diff --git a/macros/latex/contrib/acro/examples/acro.example.texsx-513623.tex b/macros/latex/contrib/acro/examples/acro.example.texsx-513623.tex new file mode 100644 index 0000000000..049172952b --- /dev/null +++ b/macros/latex/contrib/acro/examples/acro.example.texsx-513623.tex @@ -0,0 +1,21 @@ +\documentclass{article} +\usepackage{acro} + +\newrobustcmd*\newspecies[4][]{% + \DeclareAcronym{#2}{ + short = {#3} , + long = {#4} , + #1 , + tag = species , + first-style= long , + format = \itshape + }% +} +\newspecies{ecoli}{E.~coli}{Escherichia coli} + +\begin{document} + +First use: \ac{ecoli}\par +Second use: \ac{ecoli} + +\end{document} diff --git a/macros/latex/contrib/acro/examples/acro.example.texsx-515295.pdf b/macros/latex/contrib/acro/examples/acro.example.texsx-515295.pdf new file mode 100644 index 0000000000..f5cdd4871b Binary files /dev/null and b/macros/latex/contrib/acro/examples/acro.example.texsx-515295.pdf differ diff --git a/macros/latex/contrib/acro/examples/acro.example.texsx-515295.tex b/macros/latex/contrib/acro/examples/acro.example.texsx-515295.tex new file mode 100644 index 0000000000..f9a93dfab2 --- /dev/null +++ b/macros/latex/contrib/acro/examples/acro.example.texsx-515295.tex @@ -0,0 +1,24 @@ +\documentclass{article} + +\usepackage{acro} +\usepackage{csquotes} +\usepackage{chemmacros} + +\DeclareAcronym{APA}{ + short = 3-APA , + long = \iupac{3-azido-1-propyl|amine} +} +\DeclareAcronym{CuAAC}{ + short = \enquote{click} chemistry , + long = copper(I)-catalyzed azide-alkyne cycloaddition +} + +\begin{document} + +1: \Acl{APA} + +2: \Acs{CuAAC} + +3: \Acl{CuAAC} + +\end{document} diff --git a/macros/latex/contrib/acro/examples/acro.example.texsx-542461.pdf b/macros/latex/contrib/acro/examples/acro.example.texsx-542461.pdf new file mode 100644 index 0000000000..6c4222c343 Binary files /dev/null and b/macros/latex/contrib/acro/examples/acro.example.texsx-542461.pdf differ diff --git a/macros/latex/contrib/acro/examples/acro.example.texsx-542461.tex b/macros/latex/contrib/acro/examples/acro.example.texsx-542461.tex new file mode 100644 index 0000000000..c44358073e --- /dev/null +++ b/macros/latex/contrib/acro/examples/acro.example.texsx-542461.tex @@ -0,0 +1,39 @@ +\documentclass{article} +\usepackage{acro} + +\DeclareAcroArticle{definite}{the} +\DeclareAcroEnding{possessive}{'s}{'s} + +\NewAcroCommand\dac{m}{\acrodefinite\UseAcroTemplate{first}{#1}} +\NewAcroCommand\Dac{m}{\acroupper\acrodefinite\UseAcroTemplate{first}{#1}} + +\NewAcroCommand\Dacg{m}{% + \acroupper + \acrodefinite + \acropossessive + \UseAcroTemplate{first}{#1}% +} + +\DeclareAcronym{css}{ + short = CSS , + long = Centre for Spaghetti Studies , + short-definite = \nospace , + long-possessive = ' +} + +\begin{document} + +Bob hails from \dac{css}. \par +Bob hails from \dac{css}. + +\acreset{css} + +\Dacg{css} mandate is broad. \par +\Dacg{css} mandate is broad. + +\acreset{css} + +\Dac{css} scientists eat well. \par +\Dac{css} scientists eat well. \par + +\end{document} diff --git a/macros/latex/contrib/acro/examples/acro.example.units.pdf b/macros/latex/contrib/acro/examples/acro.example.units.pdf index 79c07fc50a..f699cdcd82 100644 Binary files a/macros/latex/contrib/acro/examples/acro.example.units.pdf and b/macros/latex/contrib/acro/examples/acro.example.units.pdf differ diff --git a/macros/latex/contrib/acro/examples/acro.example.units.tex b/macros/latex/contrib/acro/examples/acro.example.units.tex index f499a918cb..ff4d9cc8bb 100644 --- a/macros/latex/contrib/acro/examples/acro.example.units.tex +++ b/macros/latex/contrib/acro/examples/acro.example.units.tex @@ -33,41 +33,36 @@ short = \ensuremath{f} , long = Frequenz , unit = \si{\hertz} , - class = physics + tag = physics } \DeclareAcronym{A}{ short = \ensuremath{A} , long = Fläche , unit = \si{\metre^2} , - class = physics + tag = physics } \DeclareAcronym{C}{ short = \ensuremath{C} , long = Kapazität , unit = \si{\farad} , - class = physics + tag = physics } \DeclareAcronym{F}{ short = \ensuremath{F} , long = Kraft , unit = \si{\newton} , - class = physics + tag = physics } \NewAcroTemplate[list]{physics}{% - \def\TableCode{}% \acronymsmapT{% - \AcroPutRight\TableCode{% - \def\AcronymID{##1}% + \AcroAddRow{% \acrowrite{short}% & - \def\AcronymID{##1}% \acrowrite{unit}% & - \def\AcronymID{##1}% \acrowrite{list}% & - \def\AcronymID{##1}% \acropages {\acrotranslate{page}\nobreakspace}% {\acrotranslate{pages}\nobreakspace}% @@ -80,7 +75,7 @@ \setlength\LTleft{0pt}% \setlength\LTright{0pt}% \begin{longtable}{@{}lll@{\extracolsep{\fill}}l@{}} - \TableCode + \AcronymTable \end{longtable} } -- cgit v1.2.3