Files
klammertext/sks/table/sty/table.sty
Andy Kopra d61336b191 Escaping, table layout, and document fixes
Quoted Klammertext specials (^@ ^| ^# ^^ ^: ^*) and ^'...'^ regions now
survive re-processing (held as escape markers until final output);
:after_apply phase functions receive and return raw target text.

Tables: :hpos element position (center|left|right|<length>) replaces the
unimplemented :center/:indent; the ranged cell override is renamed
:justify; :column_width works in html (colgroup widths) and gains
'fill' -- the remaining width, capped at the column's widest entry, in
both targets; a table wider than the text column warns on the console;
table edges without an outer line set their text flush on the margins.

@document: no empty title bar for untitled documents; @vfill fills to
the bottom of the window in html (pure CSS); @vspace in plain text;
new @dot klammer; monospace email links.
2026-07-25 21:16:21 +02:00

39 lines
1.0 KiB
TeX

\usepackage{booktabs}
\usepackage{multirow}
\usepackage{array}
%\usepackage{longtable}
\usepackage{color, colortbl}
\definecolor{Table-red}{rgb}{1,.88,.88}
\definecolor{Table-green}{rgb}{.92,1,.92}
\definecolor{Table-blue}{rgb}{.9,.9,1}
\definecolor{Table-yellow}{rgb}{1,1,.9}
%\newcommand{\topstrut}[1]{\rule[0pt]{0pt}{#1}}
\newcommand{\botstrut}[1]{\rule[-#1]{0pt}{#1}}
\newcommand{\colorrow}{\rowcolor}
\setlength{\arrayrulewidth}{.5pt}
\newcommand{\strutline}{\topstrut{12pt}\botstrut{6pt}}
\newcommand{\noleftvline}[2]{\multicolumn{1}{#1|}{#2}}
\newcommand{\norightvline}[2]{\multicolumn{1}{|#1}{#2}}
\newcommand{\novline}[2]{\multicolumn{1}{#1}{#2}}
\newlength{\tablewidth}
\setlength{\tabcolsep}{4pt}
\newsavebox{\tablebox}
\newlength{\tableboxwidth}
% Computed widths of :column_width 'fill' columns (up to four per table):
% min(share of the remaining width, widest entry), set per table in the
% generated LaTeX via calc's \minof/\ratio.
\newlength{\klfilla}
\newlength{\klfillb}
\newlength{\klfillc}
\newlength{\klfilld}