texlive[69776] branches/branch2023.final/Master: tblr-extras

commits+karl at tug.org commits+karl at tug.org
Sat Feb 10 21:36:52 CET 2024


Revision: 69776
          https://tug.org/svn/texlive?view=revision&revision=69776
Author:   karl
Date:     2024-02-10 21:36:52 +0100 (Sat, 10 Feb 2024)
Log Message:
-----------
tblr-extras (10feb24)

Modified Paths:
--------------
    branches/branch2023.final/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc

Added Paths:
-----------
    branches/branch2023.final/Master/texmf-dist/doc/latex/tblr-extras/
    branches/branch2023.final/Master/texmf-dist/doc/latex/tblr-extras/README.md
    branches/branch2023.final/Master/texmf-dist/doc/latex/tblr-extras/tblr-extras-doc-EN.pdf
    branches/branch2023.final/Master/texmf-dist/doc/latex/tblr-extras/tblr-extras-doc-EN.tex
    branches/branch2023.final/Master/texmf-dist/tex/latex/tblr-extras/
    branches/branch2023.final/Master/texmf-dist/tex/latex/tblr-extras/tblr-extras.sty
    branches/branch2023.final/Master/tlpkg/tlpsrc/tblr-extras.tlpsrc

Added: branches/branch2023.final/Master/texmf-dist/doc/latex/tblr-extras/README.md
===================================================================
--- branches/branch2023.final/Master/texmf-dist/doc/latex/tblr-extras/README.md	                        (rev 0)
+++ branches/branch2023.final/Master/texmf-dist/doc/latex/tblr-extras/README.md	2024-02-10 20:36:52 UTC (rev 69776)
@@ -0,0 +1,18 @@
+Package tblr-extras: Extra libraries for tabularray package.
+Copyright (C) 2024 Manuel E. Merino <manuel.merino.pe at gmail.com>
+
+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


Property changes on: branches/branch2023.final/Master/texmf-dist/doc/latex/tblr-extras/README.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: branches/branch2023.final/Master/texmf-dist/doc/latex/tblr-extras/tblr-extras-doc-EN.pdf
===================================================================
(Binary files differ)

Index: branches/branch2023.final/Master/texmf-dist/doc/latex/tblr-extras/tblr-extras-doc-EN.pdf
===================================================================
--- branches/branch2023.final/Master/texmf-dist/doc/latex/tblr-extras/tblr-extras-doc-EN.pdf	2024-02-10 20:34:52 UTC (rev 69775)
+++ branches/branch2023.final/Master/texmf-dist/doc/latex/tblr-extras/tblr-extras-doc-EN.pdf	2024-02-10 20:36:52 UTC (rev 69776)

Property changes on: branches/branch2023.final/Master/texmf-dist/doc/latex/tblr-extras/tblr-extras-doc-EN.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: branches/branch2023.final/Master/texmf-dist/doc/latex/tblr-extras/tblr-extras-doc-EN.tex
===================================================================
--- branches/branch2023.final/Master/texmf-dist/doc/latex/tblr-extras/tblr-extras-doc-EN.tex	                        (rev 0)
+++ branches/branch2023.final/Master/texmf-dist/doc/latex/tblr-extras/tblr-extras-doc-EN.tex	2024-02-10 20:36:52 UTC (rev 69776)
@@ -0,0 +1,84 @@
+% -----------------------------------------------------------------------
+%%% tblr-extras-doc: Documentation for tblr-extras package.
+%%% Version    : 1.0 - 2024-02-10
+%%% Copyright  : 2024 (c) Manuel E. Merino <manuel.merino.pe at gmail.com>
+%%% 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 at 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


Property changes on: branches/branch2023.final/Master/texmf-dist/doc/latex/tblr-extras/tblr-extras-doc-EN.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: branches/branch2023.final/Master/texmf-dist/tex/latex/tblr-extras/tblr-extras.sty
===================================================================
--- branches/branch2023.final/Master/texmf-dist/tex/latex/tblr-extras/tblr-extras.sty	                        (rev 0)
+++ branches/branch2023.final/Master/texmf-dist/tex/latex/tblr-extras/tblr-extras.sty	2024-02-10 20:36:52 UTC (rev 69776)
@@ -0,0 +1,74 @@
+% -----------------------------------------------------------------------
+%%% tblr-extras: Extra libraries for tabularray package.
+%%% Version    : 1.0 - 2024-02-10
+%%% Copyright  : 2024 (c) Manuel E. Merino <manuel.merino.pe at gmail.com>
+%%% 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=<option>'}}
+	\SetTblrOuter[talltblr,longtblr]{headsep=0pt}
+	\DefTblrTemplate{firsthead}{default}{%
+		\addtocounter{table}{-1}%
+		\IfTokenListEmpty{\InsertTblrText{entry}}{%
+				\captionsetup{type=table}
+				\caption{\InsertTblrText{caption}}%
+		}{%
+				\captionsetup{type=table}
+				\caption[\InsertTblrText{entry}]{\InsertTblrText{caption}}%
+		}%
+	}
+	\DefTblrTemplate{middlehead,lasthead}{default}{%
+		\addtocounter{table}{-1}%
+			\captionsetup{type=table}%
+			\caption[]{\InsertTblrText{caption} \UseTblrTemplate{conthead-text}{default}}%
+	}
+	\SetTblrTemplate{caption-lot}{empty}
+}
+%% ----------------------------------------------------------------------
+%% TblrLibrary babel - Translate contfoot and conthead to current babel
+%% language. Supports: ngerman, french and spanish translations.
+\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)}
+		}{}
+}


Property changes on: branches/branch2023.final/Master/texmf-dist/tex/latex/tblr-extras/tblr-extras.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: branches/branch2023.final/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
===================================================================
--- branches/branch2023.final/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc	2024-02-10 20:34:52 UTC (rev 69775)
+++ branches/branch2023.final/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc	2024-02-10 20:36:52 UTC (rev 69776)
@@ -1342,6 +1342,7 @@
 depend talk
 depend tamefloats
 depend tasks
+depend tblr-extras
 depend tcldoc
 depend tcolorbox
 depend tdclock

Added: branches/branch2023.final/Master/tlpkg/tlpsrc/tblr-extras.tlpsrc
===================================================================


More information about the tex-live-commits mailing list.