From 67c0d9d706bb2de18260161a21ed2c01d11f0a4e Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Sun, 11 Feb 2024 03:01:18 +0000 Subject: CTAN sync 202402110301 --- macros/latex/contrib/tblr-extras/README.md | 18 +++++ .../contrib/tblr-extras/tblr-extras-doc-EN.pdf | Bin 0 -> 26714 bytes .../contrib/tblr-extras/tblr-extras-doc-EN.tex | 84 +++++++++++++++++++++ macros/latex/contrib/tblr-extras/tblr-extras.sty | 74 ++++++++++++++++++ 4 files changed, 176 insertions(+) create mode 100644 macros/latex/contrib/tblr-extras/README.md create mode 100644 macros/latex/contrib/tblr-extras/tblr-extras-doc-EN.pdf create mode 100644 macros/latex/contrib/tblr-extras/tblr-extras-doc-EN.tex create mode 100644 macros/latex/contrib/tblr-extras/tblr-extras.sty (limited to 'macros/latex') diff --git a/macros/latex/contrib/tblr-extras/README.md b/macros/latex/contrib/tblr-extras/README.md new file mode 100644 index 0000000000..4c7dc3ce22 --- /dev/null +++ b/macros/latex/contrib/tblr-extras/README.md @@ -0,0 +1,18 @@ +Package tblr-extras: Extra libraries for tabularray package. +Copyright (C) 2024 Manuel E. Merino + +The package may be distributed and/or modified under the conditions +of the LaTeX Project Public License, either version 1.3c of this +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 +## Caption Library +Use caption package to typeset tabularray tall and long tabulars captions. +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 diff --git a/macros/latex/contrib/tblr-extras/tblr-extras-doc-EN.pdf b/macros/latex/contrib/tblr-extras/tblr-extras-doc-EN.pdf new file mode 100644 index 0000000000..5f1292e5c7 Binary files /dev/null and b/macros/latex/contrib/tblr-extras/tblr-extras-doc-EN.pdf differ diff --git a/macros/latex/contrib/tblr-extras/tblr-extras-doc-EN.tex b/macros/latex/contrib/tblr-extras/tblr-extras-doc-EN.tex new file mode 100644 index 0000000000..f15a58f8c4 --- /dev/null +++ b/macros/latex/contrib/tblr-extras/tblr-extras-doc-EN.tex @@ -0,0 +1,84 @@ +% ----------------------------------------------------------------------- +%%% tblr-extras-doc: Documentation for tblr-extras package. +%%% Version : 1.0 - 2024-02-10 +%%% Copyright : 2024 (c) Manuel E. Merino +%%% License : The LaTeX Project Public License 1.3c +% ----------------------------------------------------------------------- +%%% LPPL 1.3c Notice: --------------------------------------------------- +% This work may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either version 1.3c +% of this license or (at your option) any later version. +% The latest version of this license is in +% https://www.latex-project.org/lppl.txt +% and version 1.3c or later is part of all distributions of LaTeX +% version 2008 or later. +% +% This work has the LPPL maintenance status `maintained'. +% +% The Current Maintainer of this work is Manuel E. Merino +% ----------------------------------------------------------------------- +\documentclass[a4paper,12pt]{article} +\usepackage{fontspec} +\setmainfont{montserrat} +\setsansfont{montserrat} +\setmonofont[Scale=MatchLowercase]{Roboto Mono} +\usepackage{microtype} +\usepackage[english]{babel} +\usepackage{xcolor} +\usepackage{graphicx} +\usepackage{udepcolor} +\usepackage[margin=2.5cm]{geometry} +\usepackage{parskip} +\usepackage[hidelinks]{hyperref} + +\newcommand{\Version}{1.0} + +\NewDocumentCommand{\tblrextras}{}{\textbf{\color{udep}tblr-extras}} + +\begin{document} + \begingroup% + \centering + \LARGE\textbf{Package \color{udep}tblr-extras}\par + \large Manuel E. Merino\par + \texttt{v\Version{} - 10/02/2024}\par + \normalsize Extra libraries for tabularray package.\par + \endgroup + \tableofcontents + \clearpage + + \section{Introduction} + The \tblrextras{} package is a collection of extra libraries for the \texttt{tabularray} package. + + Currently, it includes two libraries: caption and babel. + + \section{Installation and use} + + To install the \tblrextras{} package download and unzip the \texttt{tblr-extras.sty} file and place it in a folder accessible to \LaTeX{} (this can be the current working folder or a subfolder in the TEXMF directory). + + To use the \tblrextras{} package add the following command to the preamble of your document: \verb|\usepackage{tblr-extras}| + + \section{Available libraries} + \subsection{caption library} + + The \tblrextras{} package changes the way \texttt{tabularray} typesets the captions of \texttt{talltblr} and \texttt{longtblr} environments, using the settings defined by the \texttt{caption} package. + + To enable this library, use \verb*|\UseTblrLibrary{caption}| after loading \tblrextras{} and \texttt{tabularray} packages. + + \subsection{babel library} + + 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. + + \section{Bug reports and suggestions} + + For bug reports and suggestions, please use GitHub or send an email to manuel.merino.pe@gmail.com. + + \section{License} + + The \tblrextras{} package and all its included files are licensed under the LPPL v1.3c or later. + + \vfill + \centering + \footnotesize \tblrextras{} -- {\copyright} 2024 Manuel E. Merino. Licensed under LPPL v1.3c. +\end{document} \ No newline at end of file diff --git a/macros/latex/contrib/tblr-extras/tblr-extras.sty b/macros/latex/contrib/tblr-extras/tblr-extras.sty new file mode 100644 index 0000000000..09cd5ce16c --- /dev/null +++ b/macros/latex/contrib/tblr-extras/tblr-extras.sty @@ -0,0 +1,74 @@ +% ----------------------------------------------------------------------- +%%% tblr-extras: Extra libraries for tabularray package. +%%% Version : 1.0 - 2024-02-10 +%%% Copyright : 2024 (c) Manuel E. Merino +%%% License : The LaTeX Project Public License 1.3c +% ----------------------------------------------------------------------- +%%% LPPL 1.3c Notice: --------------------------------------------------- +% This work may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either version 1.3c +% of this license or (at your option) any later version. +% The latest version of this license is in +% https://www.latex-project.org/lppl.txt +% and version 1.3c or later is part of all distributions of LaTeX +% version 2008 or later. +% +% This work has the LPPL maintenance status `maintained'. +% +% The Current Maintainer of this work is Manuel E. Merino +% ----------------------------------------------------------------------- +\NeedsTeXFormat{LaTeX2e}[2018-04-01] +\ProvidesPackage{tblr-extras}[2024/02/06 package tblr-extras] +\RequirePackage{tabularray} +%% ---------------------------------------------------------------------- +%% TblrLibrary caption - Use caption package to typeset tabularray tall +%% and long tabulars captions. +%% Empty token list checker wrapper +\ExplSyntaxOn +\prg_generate_conditional_variant:Nnn \tl_if_empty:n { e } { TF } +\let \IfTokenListEmpty = \tl_if_empty:eTF +\ExplSyntaxOff +\NewTblrLibrary{caption} +{% + \RequirePackage{caption} + %% 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=