Files
klammertext/sks/block/sty/block.sty
T

33 lines
1.1 KiB
TeX
Raw Normal View History

%\usepackage{quoting}
%\quotingsetup{vskip=0pt}
\usepackage{float}
\usepackage{multicol}
%\usepackage[absolute,showboxes]{textpos}
\usepackage[absolute]{textpos}
\setlength{\TPHorizModule}{\paperwidth}
\setlength{\TPVertModule}{\paperheight}
%\setlength{\TPVertModule}{1\paperheight}
% The paper's top-left corner. textpos's absolute mode subtracts TeX's
% 1in origin itself (\textblockorigin stores x-1in, y-1in), and
% document.sty already sets \hoffset and \voffset to -1in for the same
% reason, so {0in}{0in} here shifted every block 1in left and 1in up
% (until 2026-09-08). Cancelling the offsets is right under either
% convention.
\textblockorigin{-\hoffset}{-\voffset}
\newlength{\fwboxwidth}
\newcommand{\fwboxn}[1]{\setlength{\fwboxwidth}{#1}}
\newcommand{\fwboxs}[1]{\setlength{\fwboxwidth}{\widthof{#1}}}
\newcommand{\fwbox}[1]{\makebox[\fwboxwidth][l]{#1}}
% No space if top of page:
\newcommand{\topspace}[1]{\ifdim\pagetotal=0pt\else\vspace*{#1}\fi}
% Quote (to be improved)
\newcommand{\quoteblock}[2]{
{\hspace*{24pt}\begin{minipage}{\textwidth - 48pt}
#1
\end{minipage}}}