| 1 |
%% |
| 2 |
%% This is file `lwarp-vwcol.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% lwarp.dtx (with options: `vwcol') |
| 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 |
|
| 19 |
\LWR@ProvidesPackagePass{vwcol}[2015/02/10] |
| 20 |
\newcommand*{\LWR@vwcol@addrule}[1]{% |
| 21 |
\appto{\LWR@vwcolstyle}{% |
| 22 |
#1: % |
| 23 |
\LWR@printlength{\vwcol@rule} solid \LWR@origpound\LWR@vwcol@rulecolor ; % |
| 24 |
}% |
| 25 |
} |
| 26 |
|
| 27 |
\newcommand*{\LWR@vwcol@addgap}[1]{% |
| 28 |
\appto{\LWR@vwcolstyle}{% |
| 29 |
#1: % |
| 30 |
\LWR@printlength{\vwcol@sep} ; % |
| 31 |
}% |
| 32 |
} |
| 33 |
\renewenvironment*{vwcol}[1][]{% |
| 34 |
\LWR@stoppars% |
| 35 |
\vwcolsetup{#1}% |
| 36 |
\newcommand*{\LWR@vwcolstyle}{} |
| 37 |
\if@vwcol@presep |
| 38 |
\appto{\LWR@vwcolstyle}{margin-left: 1em ; padding-left: .5em ; } |
| 39 |
\fi |
| 40 |
\if@vwcol@postsep |
| 41 |
\appto{\LWR@vwcolstyle}{margin-right: 1em ; padding-right: .5em ; } |
| 42 |
\fi |
| 43 |
\ifdimgreater{\vwcol@sep}{1sp}{ |
| 44 |
\LWR@vwcol@addgap{column-gap} |
| 45 |
\LWR@vwcol@addgap{-moz-column-gap} |
| 46 |
\LWR@vwcol@addgap{-webkit-column-gap} |
| 47 |
}{} |
| 48 |
\convertcolorspec{named}{\vwcol@rulecol}{HTML}\LWR@vwcol@rulecolor% |
| 49 |
\ifdimgreater{\vwcol@rule}{0pt}{ |
| 50 |
\ifdimless{\vwcol@rule}{1pt}{ |
| 51 |
\setlength{\vwcol@rule}{1pt} |
| 52 |
}{} |
| 53 |
\LWR@vwcol@addrule{column-rule} |
| 54 |
\LWR@vwcol@addrule{-moz-column-rule} |
| 55 |
\LWR@vwcol@addrule{-webkit-column-rule} |
| 56 |
\if@vwcol@prerule\LWR@vwcol@addrule{border-left}\fi |
| 57 |
\if@vwcol@postrule\LWR@vwcol@addrule{border-right}\fi |
| 58 |
}{} |
| 59 |
\ifdefequal{\vwcol@justify}{\RaggedRight}{ |
| 60 |
\appto{\LWR@vwcolstyle}{text-align: left ; } |
| 61 |
\ifdimgreater{\vwcol@parindent}{0pt}{ |
| 62 |
\appto{\LWR@vwcolstyle}{% |
| 63 |
text-indent: \LWR@printlength{\vwcol@parindent} ; % |
| 64 |
} |
| 65 |
}{} |
| 66 |
}{} |
| 67 |
\ifdefequal{\vwcol@justify}{\RaggedLeft}{ |
| 68 |
\appto{\LWR@vwcolstyle}{text-align: right ; } |
| 69 |
}{} |
| 70 |
\ifdefequal{\vwcol@justify}{\Centering}{ |
| 71 |
\appto{\LWR@vwcolstyle}{text-align: center ; } |
| 72 |
}{} |
| 73 |
\ifdefequal{\vwcol@justify}{\justifying}{ |
| 74 |
\appto{\LWR@vwcolstyle}{text-align: justify ; } |
| 75 |
\ifdimgreater{\vwcol@parindent}{0pt}{ |
| 76 |
\appto{\LWR@vwcolstyle}{% |
| 77 |
text-indent: \LWR@printlength{\vwcol@parindent} ; % |
| 78 |
} |
| 79 |
}{} |
| 80 |
}{} |
| 81 |
\BlockClass[\LWR@vwcolstyle]{multicols} |
| 82 |
} |
| 83 |
{ |
| 84 |
\endBlockClass |
| 85 |
\LWR@startpars |
| 86 |
} |
| 87 |
\endinput |
| 88 |
%% |
| 89 |
%% End of file `lwarp-vwcol.sty'. |