summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-parcolumns.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-parcolumns.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lwarp/lwarp-parcolumns.sty102
1 files changed, 102 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-parcolumns.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-parcolumns.sty
new file mode 100644
index 00000000000..cef4d69bd91
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-parcolumns.sty
@@ -0,0 +1,102 @@
+%%
+%% This is file `lwarp-parcolumns.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% lwarp.dtx (with options: `parcolumns')
+%% This is a generated file.
+%% Copyright 2016-2020 Brian Dunn
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% 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
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+\RequirePackage{keyval}%
+
+\LWR@ProvidesPackageDrop{parcolumns}[2004/11/25]
+\newcounter{LWR@parcolumns@numcols}
+\newcounter{LWR@parcolumns@thiscol}
+\newcounter{LWR@parcolumns@width}
+\newbool{LWR@parcolumns@started}
+\newbool{LWR@parcolumns@rule}
+
+\define@key{LWRparcols}{colwidths}{}
+\define@key{LWRparcols}{distance}{}
+\define@key{LWRparcols}{rulebetween}[true]{%
+ \setbool{LWR@parcolumns@rule}{#1}%
+}
+\define@key{LWRparcols}{nofirstindent}{}
+\define@key{LWRparcols}{sloppy}{}
+\define@key{LWRparcols}{sloppyspaces}{}
+
+\newenvironment*{parcolumns}[2][]
+ {%
+ \begin{LWR@setvirtualpage}*[#2]%
+ \setcounter{LWR@parcolumns@numcols}{#2}%
+ \setcounter{LWR@parcolumns@thiscol}{1}%
+ \boolfalse{LWR@parcolumns@started}%
+ \boolfalse{LWR@parcolumns@rule}%
+ \setcounter{LWR@parcolumns@width}{%
+ 85/#2
+ }%
+ \setkeys{LWRparcols}{#1}%
+ }
+ {\end{LWR@setvirtualpage}}
+
+\newcommand{\LWR@parcolumns@onecol}[1]{%
+ \ifbool{LWR@parcolumns@started}%
+ {}%
+ {%
+ \LWR@htmldivclass{parcolumns}%
+ \booltrue{LWR@parcolumns@started}%
+ }%
+ \ifboolexpr{%
+ bool {LWR@parcolumns@rule} and
+ test {%
+ \ifnumgreater
+ {\value{LWR@parcolumns@thiscol}}
+ {1}
+ }%
+ }%
+ {\renewcommand{\LWR@tempone}{ ; border-left: 2px solid black}}%
+ {\renewcommand{\LWR@tempone}{}}%
+ \begin{BlockClass}[%
+ width:\arabic{LWR@parcolumns@width}\% ; % space
+ padding: .5ex 1\% ; % space
+ \LWR@tempone%
+ ]{minipage}%
+ #1%
+ \end{BlockClass}%
+ \addtocounter{LWR@parcolumns@thiscol}{1}%
+}
+
+\newcommand{\colchunk}[2][\value{LWR@parcolumns@thiscol}]{%
+ \whileboolexpr{%
+ test {%
+ \ifnumcomp%
+ {\value{LWR@parcolumns@thiscol}}
+ {<}
+ {#1}%
+ }%
+ }{%
+ \LWR@parcolumns@onecol{}%
+ }%
+ \LWR@parcolumns@onecol{#2}%
+}
+
+\newcommand*{\colplacechunks}{%
+ \ifbool{LWR@parcolumns@started}%
+ {%
+ \LWR@htmldivclassend{div}%
+ \boolfalse{LWR@parcolumns@started}%
+ }%
+ {}%
+ \setcounter{LWR@parcolumns@thiscol}{1}%
+}
+\endinput
+%%
+%% End of file `lwarp-parcolumns.sty'.