Debian Codegraph @

texmf-dist/tex/latex/lwarp/lwarp-adjmulticol.sty

raw
1 %%
2 %% This is file `lwarp-adjmulticol.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% lwarp.dtx (with options: `adjmulticol')
8 %% This is a generated file.
9 %% Copyright 2016-2026 Brian Dunn
10 %%
11 %% This work may be distributed and/or modified under the
12 %% conditions of the LaTeX Project Public License, either version 1.3
13 %% of this license or (at your option) any later version.
14 %% The latest version of this license is in
15 %% http://www.latex-project.org/lppl.txt
16 %% and version 1.3 or later is part of all distributions of LaTeX
17 %% version 2005/12/01 or later.
18 \LWR@ProvidesPackageDrop{adjmulticol}[2012/01/20]
19 \RequirePackage{multicol}
20
21 \NewDocumentEnvironment{adjmulticols}{s m m m}
22 {%
23 \setlength{\LWR@templengthone}{#3}%
24 \ifdimcomp{\LWR@templengthone}{<}{0pt}{\setlength{\LWR@templengthone}{0pt}}{}%
25 \setlength{\LWR@templengthtwo}{#4}
26 \ifdimcomp{\LWR@templengthtwo}{<}{0pt}{\setlength{\LWR@templengthtwo}{0pt}}{}%
27 \newcommand*{\LWR@mcolstype}{multicols}%
28 \ifnumcomp{#2}{=}{1}{\renewcommand*{\LWR@mcolstype}{singlecolumn}}{}%
29 \LWR@forcenewpage%
30 \BlockClass[%
31 \LWR@print@mbox{margin-left:\LWR@printlength{\LWR@templengthone}} ; %
32 \LWR@print@mbox{margin-right:\LWR@printlength{\LWR@templengthtwo}}%
33 ]{\LWR@mcolstype}%
34 }
35 {\endBlockClass}
36
37 \endinput
38 %%
39 %% End of file `lwarp-adjmulticol.sty'.