| 1 |
%% |
| 2 |
%% This is file `lwarp-parallel.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% lwarp.dtx (with options: `parallel') |
| 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{parallel}[2003/04/13] |
| 19 |
\newcounter{LWR@parallel@Lwidth} |
| 20 |
\newcounter{LWR@parallel@Rwidth} |
| 21 |
\newcommand*{\LWR@parallel@border} |
| 22 |
|
| 23 |
\newenvironment*{Parallel}[3][]% |
| 24 |
{% |
| 25 |
\LWR@printpendingfootnotes% |
| 26 |
\setlength{\linewidth}{\LWR@userstextwidth}% |
| 27 |
\setlength{\textwidth}{\LWR@userstextwidth}% |
| 28 |
\renewcommand*{\LWR@parallel@border}{}% |
| 29 |
\ifstrequal{#1}{v}% |
| 30 |
{% |
| 31 |
\renewcommand*{\LWR@parallel@border}{ ; border-left: 2px solid black}% |
| 32 |
}% |
| 33 |
{}% |
| 34 |
\ifblank{#2}{% |
| 35 |
\ifblank{#3}{% {}{} |
| 36 |
\setcounter{LWR@parallel@Lwidth}{45}% |
| 37 |
\setcounter{LWR@parallel@Rwidth}{45}% |
| 38 |
}% {}{} |
| 39 |
{% {}{x} |
| 40 |
\setlength{\LWR@templengthone}{\linewidth-#3}% |
| 41 |
\setcounter{LWR@parallel@Lwidth}{% |
| 42 |
90*\ratio{\LWR@templengthone}{\linewidth}% |
| 43 |
}% |
| 44 |
\setcounter{LWR@parallel@Rwidth}{% |
| 45 |
90*\ratio{#3}{\linewidth}% |
| 46 |
}% |
| 47 |
}% {}{x} |
| 48 |
}% #2 blank |
| 49 |
{% #2 non-blank |
| 50 |
\ifblank{#3}{% {x}{} |
| 51 |
\setcounter{LWR@parallel@Lwidth}{% |
| 52 |
90*\ratio{#2}{\linewidth}% |
| 53 |
}% |
| 54 |
\setlength{\LWR@templengthone}{\linewidth-#2}% |
| 55 |
\setcounter{LWR@parallel@Rwidth}{% |
| 56 |
90*\ratio{\LWR@templengthone}{\linewidth}% |
| 57 |
}% |
| 58 |
}% {x}{} |
| 59 |
{% {x}{x} |
| 60 |
\setcounter{LWR@parallel@Lwidth}{% |
| 61 |
90*\ratio{#2}{\linewidth}% |
| 62 |
}% |
| 63 |
\setcounter{LWR@parallel@Rwidth}{% |
| 64 |
90*\ratio{#3}{\linewidth}% |
| 65 |
}% |
| 66 |
}% {x}{x} |
| 67 |
}% #2 non-blank |
| 68 |
} |
| 69 |
{% |
| 70 |
\ParallelAtEnd% |
| 71 |
\renewcommand*{\ParallelAtEnd}{}% |
| 72 |
\LWR@printpendingfootnotes% |
| 73 |
} |
| 74 |
|
| 75 |
\newcommand*{\ParallelLText}[1]{% |
| 76 |
\begin{BlockClass}[% |
| 77 |
width:\arabic{LWR@parallel@Lwidth}\% ; % space |
| 78 |
padding: .5ex 1\% ; % space |
| 79 |
]{minipage}% |
| 80 |
#1% |
| 81 |
\end{BlockClass}% |
| 82 |
} |
| 83 |
|
| 84 |
\newcommand*{\ParallelRText}[1]{% |
| 85 |
\begin{BlockClass}[% |
| 86 |
width:\arabic{LWR@parallel@Rwidth}\% ; % space |
| 87 |
padding: .5ex 1\% ; % space |
| 88 |
\LWR@parallel@border% |
| 89 |
]{minipage}% |
| 90 |
#1% |
| 91 |
\end{BlockClass}% |
| 92 |
} |
| 93 |
|
| 94 |
\newcommand*{\ParallelPar}{\LWR@printpendingfootnotes} |
| 95 |
|
| 96 |
\newcommand*{\ParallelAtEnd}{} |
| 97 |
|
| 98 |
\endinput |
| 99 |
%% |
| 100 |
%% End of file `lwarp-parallel.sty'. |