diff options
author | Norbert Preining <norbert@preining.info> | 2024-05-15 03:01:23 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2024-05-15 03:01:23 +0000 |
commit | bad773ccaf029cbc3f447929332fbbb8a5c28faa (patch) | |
tree | 6a6260cb43a92f32aa42263f77c505f1381c5583 /macros/latex/contrib/tblr-extras | |
parent | f37b07217a41ad15251ba603bade202897769a05 (diff) |
CTAN sync 202405150301
Diffstat (limited to 'macros/latex/contrib/tblr-extras')
-rw-r--r-- | macros/latex/contrib/tblr-extras/README.md | 12 | ||||
-rw-r--r-- | macros/latex/contrib/tblr-extras/tblr-extras-doc-EN.pdf | bin | 26714 -> 29492 bytes | |||
-rw-r--r-- | macros/latex/contrib/tblr-extras/tblr-extras-doc-EN.tex | 19 | ||||
-rw-r--r-- | macros/latex/contrib/tblr-extras/tblr-extras.sty | 87 |
4 files changed, 90 insertions, 28 deletions
diff --git a/macros/latex/contrib/tblr-extras/README.md b/macros/latex/contrib/tblr-extras/README.md index 4c7dc3ce22..373fedb6a1 100644 --- a/macros/latex/contrib/tblr-extras/README.md +++ b/macros/latex/contrib/tblr-extras/README.md @@ -7,12 +7,12 @@ license or (at your option) any later version. The latest version of this license is in http://www.latex-project.org/lppl.txt # Usage -Just use \usepackage{tblr-extras} after loading tabularray. -Activate the libraries using \UseTblrLibrary command +Just use `\usepackage{tblr-extras}` after loading tabularray. +Activate the libraries using `\UseTblrLibrary` command. ## Caption Library Use caption package to typeset tabularray tall and long tabulars captions. -Enable this library with \UseTblrLibrary{caption} +Enable this library with `\UseTblrLibrary{caption}` ## Babel Library -Translate contfoot and conthead to current babel language. -Curremtle only supports ngerman, french and spanish translations. -Enable this library with \UseTblrLibrary{babel}
\ No newline at end of file +Translate `contfoot` and `conthead` to current `babel`/`polyglossia` language. +Currently only supports ngerman, french, spanish, russian and ukrainian translations. +Enable this library with `\UseTblrLibrary{babel}` diff --git a/macros/latex/contrib/tblr-extras/tblr-extras-doc-EN.pdf b/macros/latex/contrib/tblr-extras/tblr-extras-doc-EN.pdf Binary files differindex 5f1292e5c7..9262427895 100644 --- a/macros/latex/contrib/tblr-extras/tblr-extras-doc-EN.pdf +++ b/macros/latex/contrib/tblr-extras/tblr-extras-doc-EN.pdf diff --git a/macros/latex/contrib/tblr-extras/tblr-extras-doc-EN.tex b/macros/latex/contrib/tblr-extras/tblr-extras-doc-EN.tex index f15a58f8c4..308c0e232a 100644 --- a/macros/latex/contrib/tblr-extras/tblr-extras-doc-EN.tex +++ b/macros/latex/contrib/tblr-extras/tblr-extras-doc-EN.tex @@ -1,6 +1,6 @@ % ----------------------------------------------------------------------- %%% tblr-extras-doc: Documentation for tblr-extras package. -%%% Version : 1.0 - 2024-02-10 +%%% Version : 1.1 - 2024-05-13 %%% Copyright : 2024 (c) Manuel E. Merino <manuel.merino.pe@gmail.com> %%% License : The LaTeX Project Public License 1.3c % ----------------------------------------------------------------------- @@ -31,7 +31,7 @@ \usepackage{parskip} \usepackage[hidelinks]{hyperref} -\newcommand{\Version}{1.0} +\newcommand{\Version}{1.1} \NewDocumentCommand{\tblrextras}{}{\textbf{\color{udep}tblr-extras}} @@ -40,7 +40,7 @@ \centering \LARGE\textbf{Package \color{udep}tblr-extras}\par \large Manuel E. Merino\par - \texttt{v\Version{} - 10/02/2024}\par + \texttt{v\Version{} - 13/06/2024}\par \normalsize Extra libraries for tabularray package.\par \endgroup \tableofcontents @@ -68,7 +68,7 @@ The \tblrextras{} package redefines the \texttt{conthead-text} and \textbf{contfoot-text} for the \texttt{longtblr} environment, using the current babel language. - Currently only spanish, ngerman and english variants are supported. + Currently only spanish, ngerman, russian, ukrainian and french variants are supported. \section{Bug reports and suggestions} @@ -78,6 +78,17 @@ The \tblrextras{} package and all its included files are licensed under the LPPL v1.3c or later. + \section{Changelog} + + v1.1 - Thanks sgolovan. + \begin{itemize} + \item Improved the babel library using language hooks. + \item Added support for polyglossia package. + \item Added ukrainian and russian translations. + \end{itemize} + + v1.0 - Initial release. + \vfill \centering \footnotesize \tblrextras{} -- {\copyright} 2024 Manuel E. Merino. Licensed under LPPL v1.3c. diff --git a/macros/latex/contrib/tblr-extras/tblr-extras.sty b/macros/latex/contrib/tblr-extras/tblr-extras.sty index 09cd5ce16c..a6742f4a10 100644 --- a/macros/latex/contrib/tblr-extras/tblr-extras.sty +++ b/macros/latex/contrib/tblr-extras/tblr-extras.sty @@ -1,6 +1,6 @@ % ----------------------------------------------------------------------- %%% tblr-extras: Extra libraries for tabularray package. -%%% Version : 1.0 - 2024-02-10 +%%% Version : 1.1 - 2024-05-13 %%% Copyright : 2024 (c) Manuel E. Merino <manuel.merino.pe@gmail.com> %%% License : The LaTeX Project Public License 1.3c % ----------------------------------------------------------------------- @@ -18,7 +18,7 @@ % The Current Maintainer of this work is Manuel E. Merino % ----------------------------------------------------------------------- \NeedsTeXFormat{LaTeX2e}[2018-04-01] -\ProvidesPackage{tblr-extras}[2024/02/06 package tblr-extras] +\ProvidesPackage{tblr-extras}[2024/05/13 package tblr-extras] \RequirePackage{tabularray} %% ---------------------------------------------------------------------- %% TblrLibrary caption - Use caption package to typeset tabularray tall @@ -34,7 +34,7 @@ %% Check if a KomaClass is loaded and issue a warning for caption position setup \@ifundefined{KOMAClassName} {} - {\PackageWarningNoLine{tblr-extras}{KOMAScript class detected. Setup caption position using 'captions=<option>'}} + {\PackageWarningNoLine{tblr-extras}{KOMAScript class detected. Setup caption position using 'captions=option'}} \SetTblrOuter[talltblr,longtblr]{headsep=0pt} \DefTblrTemplate{firsthead}{default}{% \addtocounter{table}{-1}% @@ -54,21 +54,72 @@ \SetTblrTemplate{caption-lot}{empty} } %% ---------------------------------------------------------------------- -%% TblrLibrary babel - Translate contfoot and conthead to current babel -%% language. Supports: ngerman, french and spanish translations. +%% TblrLibrary babel - Translate contfoot and conthead to current babel/polyglossia +%% language. Supports: ngerman, french, spanish, russian and ukrainian translations. +%% Check engine +\newif\if@unicode@engine +\ifdefined\luatexversion + \@unicode@enginetrue +\else\ifdefined\XeTeXrevision + \@unicode@enginetrue +\fi\fi \NewTblrLibrary{babel} {% - \RequirePackage{babel,iflang} - \IfLanguagePatterns{spanish}{% - \DefTblrTemplate{contfoot-text}{default}{Continúa en la página siguiente} - \DefTblrTemplate{conthead-text}{default}{(Continuación)} - }{} - \IfLanguagePatterns{ngerman}{% - \DefTblrTemplate{contfoot-text}{default}{Fortsetzung auf der nächsten Seite} - \DefTblrTemplate{conthead-text}{default}{(Fortsetzung)} - }{} - \IfLanguagePatterns{french}{% - \DefTblrTemplate{contfoot-text}{default}{Suite à la page suivante} - \DefTblrTemplate{conthead-text}{default}{(Suite)} - }{} + \AddToHook{begindocument/before}{% + \@ifpackageloaded{babel}{}{% + \@ifpackageloaded{polyglossia}{}{% + \RequirePackage{babel} + } + } + \ifdefined\captionsspanish + \addto\captionsspanish{% + \DefTblrTemplate{contfoot-text}{default}{Continúa en la página siguiente}% + \DefTblrTemplate{conthead-text}{default}{(Continuación)}% + } + \fi + \ifdefined\captionsngerman + \addto\captionsngerman{% + \DefTblrTemplate{contfoot-text}{default}{Fortsetzung auf der nächsten Seite}% + \DefTblrTemplate{conthead-text}{default}{(Fortsetzung)}% + } + \fi + \ifdefined\captionsgerman + \addto\captionsgerman{% + \DefTblrTemplate{contfoot-text}{default}{Fortsetzung auf der nächsten Seite}% + \DefTblrTemplate{conthead-text}{default}{(Fortsetzung)}% + } + \fi + \ifdefined\captionsfrench + \addto\captionsfrench{% + \DefTblrTemplate{contfoot-text}{default}{Suite à la page suivante}% + \DefTblrTemplate{conthead-text}{default}{(Suite)}% + } + \fi + \ifdefined\captionsrussian + \if@unicode@engine + \addto\captionsrussian{% + \DefTblrTemplate{contfoot-text}{default}{Продолжение на следующей странице}% + \DefTblrTemplate{conthead-text}{default}{(продолжение)}% + } + \else + \addto\captionsrussian{% + \DefTblrTemplate{contfoot-text}{default}{\cyr\CYRP\cyrr\cyro\cyrd\cyro\cyrl\cyrzh\cyre\cyrn\cyri\cyre\ \cyrn\cyra\ \cyrs\cyrl\cyre\cyrd\cyru\cyryu\cyrshch\cyre\cyrishrt\ \cyrs\cyrt\cyrr\cyra\cyrn\cyri\cyrc\cyre}% + \DefTblrTemplate{conthead-text}{default}{(\cyr\cyrp\cyrr\cyro\cyrd\cyro\cyrl\cyrzh\cyre\cyrn\cyri\cyre)}% + } + \fi + \fi + \ifdefined\captionsukrainian + \if@unicode@engine + \addto\captionsukrainian{% + \DefTblrTemplate{contfoot-text}{default}{Продовження на наступній сторінці}% + \DefTblrTemplate{conthead-text}{default}{(продовження)}% + } + \else + \addto\captionsukrainian{% + \DefTblrTemplate{contfoot-text}{default}{\cyr\CYRP\cyrr\cyro\cyrd\cyro\cyrv\cyrzh\cyre\cyrn\cyrn\cyrya\ \cyrn\cyra\ \cyrn\cyra\cyrs\cyrt\cyru\cyrp\cyrn\cyrii\cyrishrt\ \cyrs\cyrt\cyro\cyrr\cyrii\cyrn\cyrc\cyrii}% + \DefTblrTemplate{conthead-text}{default}{(\cyr\cyrp\cyrr\cyro\cyrd\cyro\cyrv\cyrzh\cyre\cyrn\cyrn\cyrya)}% + } + \fi + \fi + } } |