You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
99 lines
3.0 KiB
99 lines
3.0 KiB
%%
|
|
%% This is file `lwarp-parallel.sty',
|
|
%% generated with the docstrip utility.
|
|
%%
|
|
%% The original source files were:
|
|
%%
|
|
%% lwarp.dtx (with options: `parallel')
|
|
%% 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.
|
|
\LWR@ProvidesPackageDrop{parallel}[2003/04/13]
|
|
\newcounter{LWR@parallel@Lwidth}
|
|
\newcounter{LWR@parallel@Rwidth}
|
|
\newcommand*{\LWR@parallel@border}
|
|
|
|
\newenvironment*{Parallel}[3][]%
|
|
{%
|
|
\LWR@printpendingfootnotes%
|
|
\setlength{\linewidth}{\LWR@userstextwidth}%
|
|
\setlength{\textwidth}{\LWR@userstextwidth}%
|
|
\renewcommand*{\LWR@parallel@border}{}%
|
|
\ifstrequal{#1}{v}%
|
|
{%
|
|
\renewcommand*{\LWR@parallel@border}{ ; border-left: 2px solid black}%
|
|
}%
|
|
{}%
|
|
\ifblank{#2}{%
|
|
\ifblank{#3}{% {}{}
|
|
\setcounter{LWR@parallel@Lwidth}{45}%
|
|
\setcounter{LWR@parallel@Rwidth}{45}%
|
|
}% {}{}
|
|
{% {}{x}
|
|
\setlength{\LWR@templengthone}{\linewidth-#3}%
|
|
\setcounter{LWR@parallel@Lwidth}{%
|
|
90*\ratio{\LWR@templengthone}{\linewidth}%
|
|
}%
|
|
\setcounter{LWR@parallel@Rwidth}{%
|
|
90*\ratio{#3}{\linewidth}%
|
|
}%
|
|
}% {}{x}
|
|
}% #2 blank
|
|
{% #2 non-blank
|
|
\ifblank{#3}{% {x}{}
|
|
\setcounter{LWR@parallel@Lwidth}{%
|
|
90*\ratio{#2}{\linewidth}%
|
|
}%
|
|
\setlength{\LWR@templengthone}{\linewidth-#2}%
|
|
\setcounter{LWR@parallel@Rwidth}{%
|
|
90*\ratio{\LWR@templengthone}{\linewidth}%
|
|
}%
|
|
}% {x}{}
|
|
{% {x}{x}
|
|
\setcounter{LWR@parallel@Lwidth}{%
|
|
90*\ratio{#2}{\linewidth}%
|
|
}%
|
|
\setcounter{LWR@parallel@Rwidth}{%
|
|
90*\ratio{#3}{\linewidth}%
|
|
}%
|
|
}% {x}{x}
|
|
}% #2 non-blank
|
|
}
|
|
{%
|
|
\ParallelAtEnd%
|
|
\renewcommand*{\ParallelAtEnd}{}%
|
|
\LWR@printpendingfootnotes%
|
|
}
|
|
|
|
\newcommand*{\ParallelLText}[1]{%
|
|
\begin{BlockClass}[%
|
|
width:\arabic{LWR@parallel@Lwidth}\% ; % space
|
|
padding: .5ex 1\% ; % space
|
|
]{minipage}%
|
|
#1%
|
|
\end{BlockClass}%
|
|
}
|
|
|
|
\newcommand*{\ParallelRText}[1]{%
|
|
\begin{BlockClass}[%
|
|
width:\arabic{LWR@parallel@Rwidth}\% ; % space
|
|
padding: .5ex 1\% ; % space
|
|
\LWR@parallel@border%
|
|
]{minipage}%
|
|
#1%
|
|
\end{BlockClass}%
|
|
}
|
|
|
|
\newcommand*{\ParallelPar}{\LWR@printpendingfootnotes}
|
|
|
|
\newcommand*{\ParallelAtEnd}{}
|
|
\endinput
|
|
%%
|
|
%% End of file `lwarp-parallel.sty'.
|
|
|