From 12ab1975e0f359c757e8cee13c2ef2872fbbd750 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Wed, 13 Nov 2019 03:00:41 +0000 Subject: CTAN sync 201911130300 --- macros/latex/contrib/csquotes/csq-compat.def | 2 +- macros/latex/contrib/csquotes/csquotes.def | 22 +++- macros/latex/contrib/csquotes/csquotes.pdf | Bin 291554 -> 291928 bytes macros/latex/contrib/csquotes/csquotes.sty | 69 +++++++---- macros/latex/contrib/csquotes/csquotes.tex | 179 +++++++++++++-------------- macros/latex/contrib/xsavebox/ChangeLog | 4 + macros/latex/contrib/xsavebox/xsavebox.pdf | Bin 372998 -> 368416 bytes macros/latex/contrib/xsavebox/xsavebox.sty | 16 +-- 8 files changed, 162 insertions(+), 130 deletions(-) (limited to 'macros') diff --git a/macros/latex/contrib/csquotes/csq-compat.def b/macros/latex/contrib/csquotes/csq-compat.def index 9f99b31b8a..61e880d956 100644 --- a/macros/latex/contrib/csquotes/csq-compat.def +++ b/macros/latex/contrib/csquotes/csq-compat.def @@ -1,5 +1,5 @@ \ProvidesFile{csq-compat.def} - [2019/05/10 v5.2e csquotes backwards compatibility (JAW)] + [2019-11-11 v2.5f csquotes backwards compatibility (JAW)] \def\csq@getversion#1{% \expandafter\csq@getversion@i diff --git a/macros/latex/contrib/csquotes/csquotes.def b/macros/latex/contrib/csquotes/csquotes.def index 1f4b1b1445..a6b7fe10a5 100644 --- a/macros/latex/contrib/csquotes/csquotes.def +++ b/macros/latex/contrib/csquotes/csquotes.def @@ -1,5 +1,5 @@ \ProvidesFile{csquotes.def} - [2019/05/10 v5.2e csquotes generic definitions (JAW)] + [2019-11-11 v2.5f csquotes generic definitions (JAW)] % Set defaults @@ -232,6 +232,24 @@ {\guillemotright} {\quotedblbase} {\textquotedblleft} +\DeclareQuoteStyle[quotes]{serbian}% verified + {\quotedblbase} + {\textquotedblright} + [0.05em] + {\textquoteright} + {\textquoteright} +\DeclareQuoteStyle[guillemets]{serbian}% verified + {\guillemotright} + {\guillemotleft} + [0.025em] + {\textquoteright} + {\textquoteright} +\DeclareQuoteStyle[german]{serbian}% verified + {\quotedblbase} + {\textquotedblleft} + [0.05em] + {\textquoteright} + {\textquoteright} \DeclareQuoteStyle[mexican]{spanish} {\textquotedblleft} {\textquotedblright} @@ -301,6 +319,7 @@ \DeclareQuoteAlias[guillemets]{polish}{polish} \DeclareQuoteAlias[brazilian]{portuguese}{brazilian} \DeclareQuoteAlias[portuguese]{portuguese}{portuguese} +\DeclareQuoteAlias[quotes]{serbian}{serbian} \DeclareQuoteAlias[mexican]{spanish}{mexican} \DeclareQuoteAlias[spanish]{spanish}{spanish} \DeclareQuoteAlias[quotes]{swedish}{swedish} @@ -319,6 +338,7 @@ \DeclareQuoteAlias{norwegian}{norsk} \DeclareQuoteAlias{norwegian}{nynorsk} \DeclareQuoteAlias{portuguese}{portuges} +\DeclareQuoteAlias{serbian}{serbianc} % Language options diff --git a/macros/latex/contrib/csquotes/csquotes.pdf b/macros/latex/contrib/csquotes/csquotes.pdf index be3224968f..ceff68e660 100644 Binary files a/macros/latex/contrib/csquotes/csquotes.pdf and b/macros/latex/contrib/csquotes/csquotes.pdf differ diff --git a/macros/latex/contrib/csquotes/csquotes.sty b/macros/latex/contrib/csquotes/csquotes.sty index 89ffabe7fd..7c68115a9b 100644 --- a/macros/latex/contrib/csquotes/csquotes.sty +++ b/macros/latex/contrib/csquotes/csquotes.sty @@ -12,7 +12,7 @@ \NeedsTeXFormat{LaTeX2e}[2005/12/01] \ProvidesPackage{csquotes} - [2019/05/10 v5.2e context-sensitive quotations (JAW)] + [2019-11-11 v2.5f context-sensitive quotations (JAW)] %% Compatibility and requirements @@ -207,6 +207,9 @@ \protected\def\csq@warning#1{% \PackageWarning{csquotes}{#1}} +\protected\def\csq@warning@noline#1{% + \PackageWarningNoLine{csquotes}{#1}} + \protected\def\csq@info#1{% \iftoggle{csq@quiet} {} @@ -778,20 +781,33 @@ \endgroup}} \def\csq@resetstyle{% + \ifundef\babelname + {\csq@resetstyle@i{\languagename}}% + {\csq@resetstyle@i{\babelname}}} + +\def\csq@resetstyle@i#1{% + \begingroup + \edef\csq@tempa{\endgroup + \noexpand\csq@resetstyle@ii{#1}}% + \csq@tempa} + +\def\csq@resetstyle@ii#1{% \ifnum\csq@reset=\@ne - \ifx\csq@currentstyle\languagename + \ifx\csq@currentstyle#1 \else - \ifcsundef{csq@qstyle@\languagename} - {\csq@warn@style\languagename + \ifcsundef{csq@qstyle@#1} + {\csq@warn@style#1 \csq@setstyle{fallback}} - {\csq@setstyle{\languagename}}% + {\csq@setstyle{#1}}% \fi \fi} \def\csq@savelang{% \ifdef\csq@mainlang {} - {\edef\csq@mainlang{\languagename}}} + {\ifdef\babelname + {\edef\csq@mainlang{\babelname}} + {\edef\csq@mainlang{\langname}}}} \def\csq@resetlang{% \ifdef\csq@mainlang @@ -1139,10 +1155,10 @@ {\csq@getpunct{% \ifboolexpr{ bool {inner} and bool {hmode} } {\csq@bquote@ii} - {\ifbool{csdisplay} - {\csq@bquote@i} - {\iftoggle{csq@parbox}\csq@bquote@ii\csq@bquote@i}}% - {#1}{#2}{#3}{#4}{#5}{#6}}}} + {\ifbool{csdisplay} + {\csq@bquote@i} + {\iftoggle{csq@parbox}\csq@bquote@ii\csq@bquote@i}}% + {#1}{#2}{#3}{#4}{#5}{#6}}}} % {}{}{}{}{}{}{} @@ -1325,8 +1341,8 @@ {\ifdimgreater\lastskip\z@ {\unskip\unspace} {\ifnumgreater\lastpenalty\z@ - {\unpenalty\unspace} - {}}} + {\unpenalty\unspace} + {}}} {}} % {}{} @@ -1762,8 +1778,8 @@ \def\@inpenc@undefined@##1{\def\inputencodingname{##1}}% \@inpenc@undefined \ifdefstring\inputencodingname{utf8} - {\aftergroup\@firstoftwo} - {\aftergroup\@secondoftwo}% + {\aftergroup\@firstoftwo} + {\aftergroup\@secondoftwo}% \endgroup}}} {\def\csq@ifutfenc{% \csq@ifucs @@ -2138,7 +2154,7 @@ \def\openinnerquote{\csq@pdf@oiqmark}% \def\closeinnerquote{\csq@pdf@ciqmark}} -%% Author interface to internal marks +%% Author interface to internal marks \newrobustcmd*{\initoquote}{% \csq@resetstyle @@ -2250,7 +2266,14 @@ \@ifpackageloaded{polyglossia} {\@ifpackagelater{polyglossia}{2009/11/20} {\let\@frenchquotespace\@empty} - {}} + {}% + \@ifpackagelater{polyglossia}{2019/10/27} + {} + {\csq@warning@noline{% + Outdated 'polyglossia' version detected.\MessageBreak + csquotes works best with 'polyglossia' v1.45\MessageBreak + (2019/10/27) or above, but you are using\MessageBreak + '\csuse{ver@polyglossia.sty}'}}} {}} % German @@ -2392,19 +2415,21 @@ {\csq@info{Checking for multilingual support..}% \@ifpackageloaded{polyglossia} {\csq@info{... found 'polyglossia' package}% - \def\csq@main@language{\xpg@main@language}% - \csq@hook@multilang} + \ifundef\mainbabelname + {\def\csq@main@language{\xpg@main@language}} + {\def\csq@main@language{\mainbabelname}}% + \csq@hook@multilang} {\@ifpackageloaded{babel} - {\csq@info{... found 'babel' package}% + {\csq@info{... found 'babel' package}% \def\csq@main@language{\bbl@main@language}% \csq@hook@multilang} - {\csq@info{... none found}% + {\csq@info{... none found}% \csq@hook@nomultilang}}} {\@ifpackageloaded{polyglossia} {} {\@ifpackageloaded{babel} - {} - {\csq@hook@nomultilang}}}% + {} + {\csq@hook@nomultilang}}}% \undef\csq@hook@multilang \undef\csq@hook@nomultilang \@ifpackageloaded{hyperref} diff --git a/macros/latex/contrib/csquotes/csquotes.tex b/macros/latex/contrib/csquotes/csquotes.tex index 594d3373e4..47e7bfea8d 100644 --- a/macros/latex/contrib/csquotes/csquotes.tex +++ b/macros/latex/contrib/csquotes/csquotes.tex @@ -18,8 +18,8 @@ url={http://www.ctan.org/pkg/csquotes/}, author={Philipp Lehman, Joseph Wright}, email={joseph.wright@morningstar2.co.uk}, - revision={v5.2e}, - date={2019/05/10}} + revision={2.5f}, + date={2019-11-11}} \hypersetup{% pdftitle={The csquotes Package}, @@ -136,35 +136,36 @@ This option selects a fixed quotation style. The style is used throughout the do \optitem[tryonce]{autostyle}{\opt{true}, \opt{false}, \opt{try}, \opt{once}, \opt{tryonce}} -This option controls multilingual support. It requires either the \sty{babel} package or the \sty{polyglossia} package.\footnote{Note that \sty{polyglossia} support is currently in a preliminary state because \sty{polyglossia} is lacking a proper interface for other packages. In practice, this means that \sty{csquotes} can detect the language (\eg \texttt{english}) but not the language variant (\eg \texttt{british}).} \kvopt{autostyle}{true} continuously adapts the quote style to the current document language; \opt{once} will only adapt the style once so that it matches the main language of the document. \kvopt{autostyle}{try} and \opt{tryonce} are similar to \opt{true} and \opt{once} if multilingual support is available but will not issue any warnings if not (\ie if neither \sty{babel} nor \sty{polyglossia} have been loaded). The short form \opt{autostyle} is equivalent to \kvopt{autostyle}{true}. See also \secref{bas:set}. +This option controls multilingual support. It requires either the \sty{babel} package or the \sty{polyglossia} package.\footnote{Note that \sty{polyglossia} support requires \sty{polyglossia}~v1.45 (2019/10/27) or above. With older \sty{polyglossia} versions language variants will not be detected as expected.} \kvopt{autostyle}{true} continuously adapts the quote style to the current document language; \opt{once} will only adapt the style once so that it matches the main language of the document. \kvopt{autostyle}{try} and \opt{tryonce} are similar to \opt{true} and \opt{once} if multilingual support is available but will not issue any warnings if not (\ie if neither \sty{babel} nor \sty{polyglossia} have been loaded). The short form \opt{autostyle} is equivalent to \kvopt{autostyle}{true}. See also \secref{bas:set}. \begin{table} -\tablesetup -\begin{tabularx}{\columnwidth}{@{}P@{}X@{}} - \toprule - \multicolumn{1}{@{}H}{Option key} & \multicolumn{1}{@{}H}{Possible values} \\ - \cmidrule(r){1-1}\cmidrule{2-2} - austrian & quotes, guillemets \\ - croatian & quotes, guillemets, guillemets\*\\ - czech & quotes, guillemets \\ - danish & quotes, guillemets, topquotes \\ - english & american, british\\ - estonian & \\ - french & quotes, quotes\*, guillemets, guillemets\*\\ - galician & quotes, guillemets \\ - german & quotes, guillemets, swiss \\ - hungarian & \\ - italian & guillemets, quotes \\ - latvian & \\ - norwegian & guillemets, quotes \\ - polish & guillemets, guillemets\*\\ - portuguese & portuguese, brazilian \\ - spanish & spanish, mexican \\ - swedish & quotes, guillemets, guillemets\*\\ - \bottomrule -\end{tabularx} -\caption[Language Options]{Language Options Defined by Default} -\label{tab:lng} + \tablesetup + \begin{tabularx}{\columnwidth}{@{}P@{}X@{}} + \toprule + \multicolumn{1}{@{}H}{Option key} & \multicolumn{1}{@{}H}{Possible values} \\ + \cmidrule(r){1-1}\cmidrule{2-2} + austrian & quotes, guillemets \\ + croatian & quotes, guillemets, guillemets\* \\ + czech & quotes, guillemets \\ + danish & quotes, guillemets, topquotes \\ + english & american, british \\ + estonian & \\ + french & quotes, quotes\*, guillemets, guillemets\* \\ + galician & quotes, guillemets \\ + german & quotes, guillemets, swiss \\ + hungarian & \\ + italian & guillemets, quotes \\ + latvian & \\ + norwegian & guillemets, quotes \\ + polish & guillemets, guillemets\* \\ + portuguese & portuguese, brazilian \\ + serbian & quotes, guillemets, german \\ + spanish & spanish, mexican \\ + swedish & quotes, guillemets, guillemets\* \\ + \bottomrule + \end{tabularx} + \caption[Language Options]{Language Options Defined by Default} + \label{tab:lng} \end{table} \varitem{language}{\prm{variant}} @@ -632,31 +633,32 @@ See \secref{cfg:elp} on how to configure the appearance of ellipses and insertio If available, this package will load the configuration file \path{csquotes.cfg}. You may use this file to define new quote styles and aliases or redefine existing ones. \begin{table} -\tablesetup -\begin{tabularx}{\columnwidth}{@{}P@{}X@{}} - \toprule - \multicolumn{1}{@{}H}{Quote style} & \multicolumn{1}{@{}H}{Style variants} \\ - \cmidrule(r){1-1}\cmidrule{2-2} - austrian & quotes, guillemets \\ - croatian & quotes, guillemets, guillemets\*\\ - czech & quotes, guillemets \\ - danish & quotes, guillemets \\ - dutch & -- \\ - english & american, british\\ - finnish & -- \\ - french & quotes, quotes\*, guillemets, guillemets\*\\ - german & quotes, guillemets, swiss \\ - greek & -- \\ - italian & guillemets, quotes \\ - norwegian & guillemets, quotes \\ - portuguese & portuguese, brazilian \\ - russian & -- \\ - spanish & spanish, mexican \\ - swedish & quotes, guillemets, guillemets\*\\ - \bottomrule -\end{tabularx} -\caption[Styles and Variants]{Quote Styles and Style Variants Defined by Default} -\label{tab:sty} + \tablesetup + \begin{tabularx}{\columnwidth}{@{}P@{}X@{}} + \toprule + \multicolumn{1}{@{}H}{Quote style} & \multicolumn{1}{@{}H}{Style variants} \\ + \cmidrule(r){1-1}\cmidrule{2-2} + austrian & quotes, guillemets \\ + croatian & quotes, guillemets, guillemets\* \\ + czech & quotes, guillemets \\ + danish & quotes, guillemets \\ + dutch & -- \\ + english & american, british \\ + finnish & -- \\ + french & quotes, quotes\*, guillemets, guillemets\* \\ + german & quotes, guillemets, swiss \\ + greek & -- \\ + italian & guillemets, quotes \\ + norwegian & guillemets, quotes \\ + portuguese & portuguese, brazilian \\ + russian & -- \\ + serbian & quotes, guillemets, german \\ + spanish & spanish, mexican \\ + swedish & quotes, guillemets, guillemets\* \\ + \bottomrule + \end{tabularx} + \caption[Styles and Variants]{Quote Styles and Style Variants Defined by Default} + \label{tab:sty} \end{table} \subsection{Defining Quote Styles} @@ -689,46 +691,31 @@ This command may be used in the configuration file or in the document preamble. \end{ltxsyntax} \begin{table} -\tablesetup -\begin{tabularx}{\columnwidth}{@{}Q@{}X@{}Q@{}X@{}} - \toprule - \multicolumn{1}{@{}H}{Alias} & \multicolumn{1}{@{}H}{Backend style or alias} & - \multicolumn{1}{@{}H}{Alias} & \multicolumn{1}{@{}H}{Backend style or alias} \\ - \cmidrule(r){1-1}\cmidrule(r){2-2}\cmidrule(r){3-3}\cmidrule{4-4} - american & english/american & - newzealand & english/british \\ - australian & english/british & - ngerman & german \\ - austrian & austrian/quotes & - norsk & norwegian \\ - brazil & brazilian & - norwegian & norwegian/guillemets \\ - brazilian & portuguese/brazilian & - nswissgerman & swissgerman \\ - british & english/british & - nynorsk & norwegian \\ - canadian & english/american & - portuges & portuguese \\ - croatian & croatian/quotes & - portuguese & portuguese/portuguese \\ - danish & danish/quotes & - spanish & spanish/spanish \\ - english & english/american & - swedish & swedish/quotes \\ - french & french/quotes & - swiss & german/swiss \\ - german & german/quotes & - swissgerman & german/swiss \\ - italian & italian/guillemets & - UKenglish & british \\ - mexican & spanish/mexican & - USenglish & american \\ - naustrian & austrian & - \\ - \bottomrule -\end{tabularx} -\caption[Language Aliases]{Language Aliases Defined by Default} -\label{tab:als} + \tablesetup + \begin{tabularx}{\columnwidth}{@{}Q@{}X@{}Q@{}X@{}} + \toprule + \multicolumn{1}{@{}H}{Alias} & \multicolumn{1}{@{}H}{Backend style or alias} & + \multicolumn{1}{@{}H}{Alias} & \multicolumn{1}{@{}H}{Backend style or alias} \\ + \cmidrule(r){1-1}\cmidrule(r){2-2}\cmidrule(r){3-3}\cmidrule{4-4} + american & english/american & newzealand & english/british \\ + australian & english/british & ngerman & german \\ + austrian & austrian/quotes & norsk & norwegian \\ + brazil & brazilian & norwegian & norwegian/guillemets \\ + brazilian & portuguese/brazilian & nswissgerman & swissgerman \\ + british & english/british & nynorsk & norwegian \\ + canadian & english/american & portuges & portuguese \\ + croatian & croatian/quotes & portuguese & portuguese/portuguese \\ + danish & danish/quotes & serbian & serbian/quotes \\ + english & english/american & spanish & spanish/spanish \\ + french & french/quotes & swedish & swedish/quotes \\ + german & german/quotes & swiss & german/swiss \\ + italian & italian/guillemets & swissgerman & german/swiss \\ + mexican & spanish/mexican & UKenglish & british \\ + naustrian & austrian & USenglish & american \\ + \bottomrule + \end{tabularx} + \caption[Language Aliases]{Language Aliases Defined by Default} + \label{tab:als} \end{table} \subsection{Defining Package Options} @@ -1555,6 +1542,10 @@ The scope of these hooks must always be confined to a group. This revision history is a list of changes relevant to users of this package. Changes of a more technical nature which do not affect the user interface or the behavior of the package are not included in the list. If an entry in the revision history states that a feature has been \emph{extended}, this indicates a syntactically backwards compatible modification, such as the addition of an optional argument to an existing command. Entries stating that a feature has been \emph{modified}, \emph{renamed}, or \emph{removed} demand attention. They indicate a modification which may require changes to existing documents in some, hopefully rare, cases. The \opt{version} option from \secref{opt:opt} may be helpful in this case. The numbers on the right indicate the relevant section of this manual. \begin{changelog} +\begin{release}{5.2f}{2019-11-11} +\item Added language option \opt{serbian}\see{opt:opt} +\item Improved \sty{polyglossia} support\see{opt:opt} +\end{release} \begin{release}{5.2d}{2018-04-13} \item Update for \LaTeX{} kernel changes in 2018 diff --git a/macros/latex/contrib/xsavebox/ChangeLog b/macros/latex/contrib/xsavebox/ChangeLog index b5470c78a2..c039533f0d 100644 --- a/macros/latex/contrib/xsavebox/ChangeLog +++ b/macros/latex/contrib/xsavebox/ChangeLog @@ -1,3 +1,7 @@ +2019-11-12 + * v0.15 + * fix: output driver set-up + 2019-08-13 * v0.14 * fix: existing \theXXX macros, such as LaTeX counters, could accidentally diff --git a/macros/latex/contrib/xsavebox/xsavebox.pdf b/macros/latex/contrib/xsavebox/xsavebox.pdf index 15801a37c0..0c2d0fb2e9 100644 Binary files a/macros/latex/contrib/xsavebox/xsavebox.pdf and b/macros/latex/contrib/xsavebox/xsavebox.pdf differ diff --git a/macros/latex/contrib/xsavebox/xsavebox.sty b/macros/latex/contrib/xsavebox/xsavebox.sty index 164dfab829..686640aaa9 100644 --- a/macros/latex/contrib/xsavebox/xsavebox.sty +++ b/macros/latex/contrib/xsavebox/xsavebox.sty @@ -45,18 +45,11 @@ % % The Current Maintainer of this work is A. Grahn. -%process non-detectable dvipdfmx driver for passing to expl3 -\RequirePackage{xkeyval} -\DeclareOptionX{dvipdfmx}{% - \PassOptionsToPackage{driver=dvipdfmx}{expl3} -} -\DeclareOptionX*{}\ProcessOptionsX*\relax %allow anything as an option - \RequirePackage{xparse} \RequirePackage{l3keys2e} -\def\g@xsb@version@tl{0.14} -\def\g@xsb@date@tl{2019/08/13} +\def\g@xsb@version@tl{0.15} +\def\g@xsb@date@tl{2019/11/12} \ProvidesExplPackage{xsavebox}{\g@xsb@date@tl}{\g@xsb@version@tl} {saveboxes for repeating content without code replication} @@ -122,7 +115,6 @@ \msg_error:nnn{xsavebox}{support~outdated}{pdfbase.sty} \tex_endinput:D } -\cs_gset_eq:NN\xsb@newkey\pbs@newkey \cs_gset_eq:NN\xsb_pdfxform:nnnnn\pbs_pdfxform:nnnnn \cs_gset_eq:NN\xsb_pdflastxform:\pbs_pdflastxform: \cs_gset_eq:NN\xsb_pdfrefxform:n\pbs_pdfrefxform:n @@ -313,14 +305,14 @@ } %for tracking box usage \iow_now:Nx\@mainaux{ - \token_to_str:N\xsb@newkey{xsb@\int_use:N\g_xsb_id_int}{false} + \token_to_str:N\pbs@newkey{xsb@\int_use:N\g_xsb_id_int}{false} } %define command for inserting the m-boxed XObject reference \cs_gset_protected:cpx{the#1}{ \exp_not:N\tl_if_exist:cF{xsb_\int_use:N\g_xsb_id_int}{ %mark box as `used' \exp_not:N\iow_now:Nx\@mainaux{ - \token_to_str:N\xsb@newkey{xsb@\int_use:N\g_xsb_id_int}{true} + \token_to_str:N\pbs@newkey{xsb@\int_use:N\g_xsb_id_int}{true} } \exp_not:N\tl_new:c{xsb_\int_use:N\g_xsb_id_int} } -- cgit v1.2.3