summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2008-07-07 09:54:46 +0000
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2008-07-07 09:54:46 +0000
commit06c4daa53d286161db92cf8d0f9c7055748ee92e (patch)
tree670af1851b2bb6c3affd2ef490c89f2b7d3c878c /Master/texmf-dist/tex
parent50edff76c23a58397d042ed589bbdec6cc2bfa88 (diff)
passivetex update
git-svn-id: svn://tug.org/texlive/trunk@9324 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/xmltex/passivetex/fotex.sty1230
-rw-r--r--Master/texmf-dist/tex/xmltex/passivetex/fotex.xmt482
-rw-r--r--Master/texmf-dist/tex/xmltex/passivetex/mlnames.sty21
-rw-r--r--Master/texmf-dist/tex/xmltex/passivetex/nomulticol.sty1065
-rw-r--r--Master/texmf-dist/tex/xmltex/passivetex/ucharacters.sty4
5 files changed, 596 insertions, 2206 deletions
diff --git a/Master/texmf-dist/tex/xmltex/passivetex/fotex.sty b/Master/texmf-dist/tex/xmltex/passivetex/fotex.sty
index f0581d1b4f3..bccbf77a039 100644
--- a/Master/texmf-dist/tex/xmltex/passivetex/fotex.sty
+++ b/Master/texmf-dist/tex/xmltex/passivetex/fotex.sty
@@ -1,6 +1,6 @@
-%RCS: $Id: //depot/Master/texmf-dist/tex/xmltex/passivetex/fotex.sty#1 $, $Date: 2004/02/09 $
+%RCS: $Id: //TEI/web/Software/passivetex/fotex.sty#29 $, $Date: 2002/06/26 $
%
-% Copyright 2003 Sebastian Rahtz/Oxford University
+% Copyright 2002 Sebastian Rahtz/Oxford University
% <sebastian.rahtz@oucs.ox.ac.uk>
%
% Permission is hereby granted, free of charge, to any person obtaining
@@ -14,41 +14,14 @@
% The above copyright notice and this permission notice shall be included
% in all copies or substantial portions of the Software.
%
-\batchmode
-\ProvidesPackage{fotex}[2003/03/10: version 1.25. support for XSL formatting, S Rahtz]
-\RequirePackage{graphicx,color}
-%\IfFileExists{multicol.sty}
-% {\RequirePackage{multicol}[1997/12/16]}
-% {\newenvironment{multicols}[1]%
-% {\typeout{Warning, at line \the\inputlineno, multicol package not available}}{}%
-%}
-
-\def\confirmnomulticols{
- \RequirePackage{nomulticol}[2003/01/09]
- \typeout{INFO (nomulticol.sty: fo:block span="all" works}
-}
-\def\warnnomulticols{
- \RequirePackage{multicol}[1997/12/16]
- \typeout{WARNING (multicol.sty: fo:block span="all" does not work}
- \fakenomulticols
-}
-\def\warnmulticols{
- \typeout{WARNING (no multicol.sty: multiple columns not available}
- \newenvironment{multicols}[1]{\typeout{Warning, at line \the\inputlineno, multicol package not available}}{}
- \fakenomulticols
-}
-\def\fakenomulticols{
- \def\nobeginmulticols##1{\begin{multicols}{##1}}
- \def\noendmulticols{\end{multicols}}
- \def\interbeginmulticols##1{}
- \let\interendmulticols\relax
- \let\refreshmulticols\relax
-}
-\IfFileExists{nomulticol.sty}
-{\confirmnomulticols}
-{\IfFileExists{multicol.sty}
- {\warnnomulticols}
- {\warnmulticols}
+% Includes fixes from Tomas Bures <ghort@pauline.vellum.cz>
+%
+\ProvidesPackage{fotex}[2002/06/25: version 1.17. support for XSL formatting, S Rahtz]
+\RequirePackage{graphicx}
+\IfFileExists{multicol.sty}
+ {\RequirePackage{multicol}[1997/12/16]}
+ {\newenvironment{multicols}[1]%
+ {\typeout{Warning, at line \the\inputlineno, multicol package not available}}{}%
}
\RequirePackage{rotating}
\RequirePackage{array}
@@ -57,12 +30,12 @@
\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}
\newcolumntype{R}[1]{>{\raggedleft\arraybackslash}p{#1}}
\newcolumntype{P}[1]{>{\arraybackslash}p{#1}}
-\RequirePackage{soul}
\RequirePackage{amsmath}
\let\Vec\undefined
\RequirePackage{longtable}
\RequirePackage{url}
\RequirePackage[normalem]{ulem}
+\RequirePackage{color}
\RequirePackage{times}
\RequirePackage{mlnames}
\RequirePackage{unicode}
@@ -70,17 +43,14 @@
\RequirePackage{ucharacters}
%\usepackage{ucs}\usepackage[utf8]{inputenc}
\RequirePackage{nameref}
-\RequirePackage[pdfcreator={PassiveTeX 1.25},colorlinks=false,plainpages=true,hypertexnames=false,pdfborder={1 0 0}]{hyperref}[1999/08/1]
+\RequirePackage[colorlinks=false,plainpages=true,hypertexnames=false,pdfborder={1 0 0}]{hyperref}[1999/08/1]
%-------------------------------------------
\newcount\FOListBlocks
-\edef\This@FOListBlocks{\the\FOListBlocks}
\newcount\FOTableNesting
\newcount\FOinList
\newcount\FOinTable
\newcount\NCols
\newcount\RowCount
-\newcount\SimplePMRefs
-\newskip\LeaderLength
\newdimen\CurrentCellWidth
\newdimen\FObalancespace
\newdimen\FOspaceleft
@@ -107,17 +77,13 @@
\newif\ifMulticolPending
\newif\ifNoTableCheckHeight
\newif\ifStartWithOmit
-\newif\ifForcePageSetup
-\newif\ifBlankPage
-\newif\ifInInsertion
\newsavebox\BlockBox
\newsavebox\CellBox
\newsavebox\FOBOX
\newsavebox\ItemBox
\newtoks\ColSpecs
-\newtoks\BoxedFootnotes
%
-%\FODebugtrue
+\FODebugfalse
\FOBlockGrabfalse
\FODefiningPagefalse
\FOListBodyfalse
@@ -133,10 +99,6 @@
\MasterTopMargin\z@
\MulticolPendingfalse
\StartWithOmitfalse
-% smarts from Anton to deal with long lines in verbatim
-\gdef\FOdiscretionary{\ifx\FOwrapoption\att@nowrap\discretionary{\kern-.5ex\lower1ex\hbox{$\hookleftarrow$}}{}{\kern1ex}\else\space\fi}
-\def\obeyspaces{\catcode`\ =\active}
-{\obeyspaces\global\let =\FOdiscretionary}
\def\DEBUG#1{%
\ifFODebug
\typeout{#1, at \the\inputlineno}%
@@ -158,7 +120,6 @@
\def\FOborderendstyle{#2}%
\def\FOborderbeforestyle{#2}%
\def\FOborderafterstyle{#2}%
- \interpretwidth
}
\def\FOexpandattributes{%
%
@@ -221,25 +182,36 @@
\fi
% end of shortcuts
\ifx\FOborderendstyle\att@solid
+ \ifx\FOborderendwidth\att@thin\def\FOborderendwidth{0.4pt}\fi
+ \ifx\FOborderendwidth\att@medium\def\FOborderendwidth{0.8pt}\fi
+ \ifx\FOborderendwidth\att@thick\def\FOborderendwidth{1.2pt}\fi
\FOBlockGrabtrue
\else
\def\FOborderendwidth{\z@}%
\fi
\ifx\FOborderstartstyle\att@solid
+ \ifx\FOborderstartwidth\att@thin\def\FOborderstartwidth{0.4pt}\fi
+ \ifx\FOborderstartwidth\att@medium\def\FOborderstartwidth{0.8pt}\fi
+ \ifx\FOborderstartwidth\att@thick\def\FOborderstartwidth{1.2pt}\fi
\FOBlockGrabtrue
\else
\def\FOborderstartwidth{\z@}%
\fi
\ifx\FOborderafterstyle\att@solid
+ \ifx\FOborderafterwidth\att@thin\def\FOborderafterwidth{0.4pt}\fi
+ \ifx\FOborderafterwidth\att@medium\def\FOborderafterwidth{0.8pt}\fi
+ \ifx\FOborderafterwidth\att@thick\def\FOborderafterwidth{1.2pt}\fi
\else
\def\FOborderafterwidth{\z@}%
\fi
\ifx\FOborderbeforestyle\att@solid
+ \ifx\FOborderbeforewidth\att@thin\def\FOborderbeforewidth{0.4pt}\fi
+ \ifx\FOborderbeforewidth\att@medium\def\FOborderbeforewidth{0.8pt}\fi
+ \ifx\FOborderbeforewidth\att@thick\def\FOborderbeforewidth{1.2pt}\fi
\FOBlockGrabtrue
\else
\def\FOborderbeforewidth{\z@}%
\fi
- \interpretwidth
}
%-------------------------------------------
%
@@ -285,107 +257,33 @@
\def\NoTableSetup{%
\global\advance\AbsoluteTableCount by 1
\DeclareArray{fotable\the\AbsoluteTableCount:}%
- \DeclareArray{fotabletextalign\the\AbsoluteTableCount:}%
- \DeclareArray{fotableborderbeforestyle\the\AbsoluteTableCount:}%
- \DeclareArray{fotableborderafterstyle\the\AbsoluteTableCount:}%
- \DeclareArray{fotableborderstartstyle\the\AbsoluteTableCount:}%
- \DeclareArray{fotableborderendstyle\the\AbsoluteTableCount:}%
- \DeclareArray{fotableborderbeforewidth\the\AbsoluteTableCount:}%
- \DeclareArray{fotableborderafterwidth\the\AbsoluteTableCount:}%
- \DeclareArray{fotableborderstartwidth\the\AbsoluteTableCount:}%
- \DeclareArray{fotableborderendwidth\the\AbsoluteTableCount:}%
- \DeclareArray{fotableborderbeforecolor\the\AbsoluteTableCount:}%
- \DeclareArray{fotableborderaftercolor\the\AbsoluteTableCount:}%
- \DeclareArray{fotableborderstartcolor\the\AbsoluteTableCount:}%
- \DeclareArray{fotableborderendcolor\the\AbsoluteTableCount:}%
\global\CellCount0
-\ifnum\FOinTable=0
- \global\BoxedFootnotes{}%
- \global\let\FOfoottext\FOboxedfoottext
-\fi
-}
-
-\def\NoTableFinish{
-\ifnum\FOinTable=0
- \the\BoxedFootnotes
- \global\BoxedFootnotes={}%
- \global\let\FOfoottext\FOplainfoottext
-\fi
-}
-
-\def\saveinterlineskip{%
- \edef\savedbaselineskip{\the\baselineskip}%
- \edef\savedlineskip{\the\lineskip}%
- \edef\savedlineskiplimit{\the\lineskiplimit}%
- \baselineskip=-1000pt\relax
- \lineskiplimit=16383pt\relax
- \lineskip=0pt
-}
-
-\def\restoreinterlineskip{%
- \baselineskip\savedbaselineskip\relax
- \lineskip\savedlineskip\relax
- \lineskiplimit\savedlineskiplimit\relax
}
\def\NoTableStart#1{#1}
-\def\NoTableEnd{%
- \clearArray{fotable\the\AbsoluteTableCount:}%
- \clearArray{fotabletextalign\the\AbsoluteTableCount:}%
- \clearArray{fotableborderbeforestyle\the\AbsoluteTableCount:}%
- \clearArray{fotableborderafterstyle\the\AbsoluteTableCount:}%
- \clearArray{fotableborderstartstyle\the\AbsoluteTableCount:}%
- \clearArray{fotableborderendstyle\the\AbsoluteTableCount:}%
- \clearArray{fotableborderbeforewidth\the\AbsoluteTableCount:}%
- \clearArray{fotableborderafterwidth\the\AbsoluteTableCount:}%
- \clearArray{fotableborderstartwidth\the\AbsoluteTableCount:}%
- \clearArray{fotableborderendwidth\the\AbsoluteTableCount:}%
- \clearArray{fotableborderbeforecolor\the\AbsoluteTableCount:}%
- \clearArray{fotableborderaftercolor\the\AbsoluteTableCount:}%
- \clearArray{fotableborderstartcolor\the\AbsoluteTableCount:}%
- \clearArray{fotableborderendcolor\the\AbsoluteTableCount:}%
-}
+\def\NoTableEnd{\clearArray{fotable\the\AbsoluteTableCount:}}
\def\NoTableColumn{%
- \ifx\@empty\FOcolumnnumber
- \global\advance\NCols by 1
- \else
- \global\NCols\FOcolumnnumber
- \fi
- \ifx\prop@width\FOcolumnwidth\def\FOcolumnwidth{1in}\fi
- \ifx\@empty\FOcolumnwidth\def\FOcolumnwidth{1in}\fi
- \TablePercentToDimen{\FOcolumnwidth}%
- \addToArray{fotable\the\AbsoluteTableCount:}{\the\@tempdima}%
- \addToArray{fotabletextalign\the\AbsoluteTableCount:}{\FOtextalign}%
- \addToArray{fotableborderbeforestyle\the\AbsoluteTableCount:}{\FOborderbeforestyle}%
- \addToArray{fotableborderafterstyle\the\AbsoluteTableCount:}{\FOborderafterstyle}%
- \addToArray{fotableborderstartstyle\the\AbsoluteTableCount:}{\FOborderstartstyle}%
- \addToArray{fotableborderendstyle\the\AbsoluteTableCount:}{\FOborderendstyle}%
- \addToArray{fotableborderbeforewidth\the\AbsoluteTableCount:}{\FOborderbeforewidth}%
- \addToArray{fotableborderafterwidth\the\AbsoluteTableCount:}{\FOborderafterwidth}%
- \addToArray{fotableborderstartwidth\the\AbsoluteTableCount:}{\FOborderstartwidth}%
- \addToArray{fotableborderendwidth\the\AbsoluteTableCount:}{\FOborderendwidth}%
- \addToArray{fotableborderbeforecolor\the\AbsoluteTableCount:}{\FOborderbeforecolor}%
- \addToArray{fotableborderaftercolor\the\AbsoluteTableCount:}{\FOborderaftercolor}%
- \addToArray{fotableborderstartcolor\the\AbsoluteTableCount:}{\FOborderstartcolor}%
- \addToArray{fotableborderendcolor\the\AbsoluteTableCount:}{\FOborderendcolor}%
- \DEBUG{Table Column \the\NCols, in Table \the\AbsoluteTableCount,
- \FOcolumnwidth, = \the\@tempdima}%
+ \ifx\@empty\FOcolumnnumber
+ \global\advance\NCols by 1
+ \else
+ \global\NCols\FOcolumnnumber
+ \fi
+ \ifx\prop@width\FOcolumnwidth\def\FOcolumnwidth{1in}\fi
+ \ifx\@empty\FOcolumnwidth\def\FOcolumnwidth{1in}\fi
+ \TablePercentToDimen{\FOcolumnwidth}%
+ \addToArray{fotable\the\AbsoluteTableCount:}{\the\@tempdima}%
+ \DEBUG{Table Column \the\NCols, in Table \the\AbsoluteTableCount,
+ \FOcolumnwidth, = \the\@tempdima}%
}
\def\NoTableRow#1{%
- \setbox0=\vbox{
- \ifx\FOheight\att@auto%
- \strut They
- \else
- \rule{\z@}{\FOheight}%
- \fi
- }%
+ \setbox0=\vbox{\strut They}%
\NoTableCellHeight=\ht0
\advance\NoTableCellHeight by \dp0
\global\CellCount0
\NoTableCheckHeightfalse
- \setbox0=\vbox{\hbox{\let\FOfoottext\FOnofoottext#1}}%
+ \setbox0=\hbox{#1}%
\@tempdima=\ht0
\advance\@tempdima by \dp0
\FOspaceleft=\pagegoal
@@ -397,49 +295,30 @@
\fi
\ifdim\@tempdima>\NoTableCellHeight
%\typeout{row pass 2 at \the\inputlineno, as [\the\@tempdima] > [\the\NoTableCellHeight]}%
+ \global\CellCount0
\NoTableCellHeight=\@tempdima
+ \NoTableCheckHeighttrue
+ \vbox{\hbox{#1}}%
+ \else
+ \box0\relax
\fi
- \global\CellCount0
- \NoTableCheckHeighttrue
- \vbox to \NoTableCellHeight{\hbox{#1}}%
-% \ifFOinOutput\else\vskip-\lineskip\fi
-}
-
-\def\inheritfromcolumn#1#2{%
- \explicitattribute{#1}%
- \ifx\isexplicit\relax
- \expandafter\edef\csname FO#2\endcsname{\csname fotable#2\the\AbsoluteTableCount:\the\CellCount\endcsname}%
- \fi
+ \vskip-\lineskip
}
\def\NoTableCell#1{%
\ifx\FOstartsrow\att@true
-% \vskip-\lineskip
+ \vskip-\lineskip
\global\CellCount1
\else
\global\advance\CellCount by 1
\fi
\ifnum\NCols<1
\CurrentCellWidth\z@
- \setbox0=\hbox{\restoreinterlineskip#1\strut}%
+ \setbox0=\hbox{#1}%
\CurrentCellWidth=\wd0
-%\DEBUG{report \the\CurrentCellWidth}%
+\DEBUG{report \the\CurrentCellWidth}%
\else
\CurrentCellWidth=\csname fotable\the\AbsoluteTableCount:\the\CellCount\endcsname
- \inheritfromcolumn{text-align}{textalign}%
- \inheritfromcolumn{border-before-style}{borderbeforestyle}%
- \inheritfromcolumn{border-after-style}{borderafterstyle}%
- \inheritfromcolumn{border-start-style}{borderstartstyle}%
- \inheritfromcolumn{border-end-style}{borderendstyle}%
- \inheritfromcolumn{border-before-width}{borderbeforewidth}%
- \inheritfromcolumn{border-after-width}{borderafterwidth}%
- \inheritfromcolumn{border-start-width}{borderstartwidth}%
- \inheritfromcolumn{border-end-width}{borderendwidth}%
- \inheritfromcolumn{border-before-color}{borderbeforecolor}%
- \inheritfromcolumn{border-after-color}{borderaftercolor}%
- \inheritfromcolumn{border-start-color}{borderstartcolor}%
- \inheritfromcolumn{border-end-color}{borderendcolor}%
- \interpretwidth
\fi
\advance\CurrentCellWidth by -\FOpaddingstart
\advance\CurrentCellWidth by -\FOpaddingend
@@ -462,7 +341,7 @@
\leavevmode\hbox{\FOTableCellBlock#1\FOEndTableCellBlock}%
\fi
\ifx\FOendsrow\att@true
-% \vskip-\lineskip
+ \vskip-\lineskip
\global\CellCount0
\fi
}
@@ -471,18 +350,17 @@
\begin{lrbox}{\CellBox}%
\vbox\bgroup
\hsize\the\CurrentCellWidth
- \restoreinterlineskip
- \ifFOinOutput\else \color@begingroup\fi
+ \color@begingroup
\FOSetFont{tablecellblock}%
\ifx\FOwhitespace\att@pre\obeyspaces\obeylines\fi
\ifx\FOwhitespacecollapse\att@false\obeyspaces\fi
\ifx\FOwrapoption\att@nowrap\obeylines\fi
- \ifx\FOverticalalign\att@bottom\vfill\fi
+ \ifx\TOverticalalign\att@bottom\vfill\fi
}
\def\FOEndTableCellBlock{%
- \ifx\FOverticalalign\att@top\vfill\fi
- \ifFOinOutput\else \color@endgroup\fi
+ \ifx\TOverticalalign\att@top\vfill\fi
+ \color@endgroup
\egroup
\end{lrbox}%
\@tempdima\FOmargintop
@@ -498,7 +376,7 @@
\hbox{%
\hskip\FOmarginleft
\vbox{%
- \kern\FOmargintop
+ \vskip\FOmargintop
\vbox{%
\ifx\FOborderbeforestyle\att@solid
{\color{\FOborderbeforecolor}\hrule\@height\FOborderbeforewidth}%
@@ -515,29 +393,29 @@
% According to FOdisplayalign property, we put glue
% before and/or after the cell contents
\vtop to \NoTableCellHeight{%
- \kern\FOpaddingbefore
+ \vskip\FOpaddingbefore
\ifx\FOdisplayalign\att@auto
- \else\ifx\FOdisplayalign\att@before
- \else\ifx\FOdisplayalign\att@after\vfil
+ \else\ifx\FOdisplayalign\att@after
+ \else\ifx\FOdisplayalign\att@before\vfil
\else\ifx\FOdisplayalign\att@centered\vfil\fi
\fi
\fi
\fi
\hbox{\kern\FOpaddingstart\box\CellBox\kern\FOpaddingend}%
\ifx\FOdisplayalign\att@auto\vfil
- \else\ifx\FOdisplayalign\att@before\vfil
- \else\ifx\FOdisplayalign\att@after
+ \else\ifx\FOdisplayalign\att@after\vfil
+ \else\ifx\FOdisplayalign\att@before
\else\ifx\FOdisplayalign\att@centered\vfil\fi
\fi
\fi
\fi
- \kern\FOpaddingafter
+ \vskip\FOpaddingafter
}%
\else
\vbox{%
- \kern\FOpaddingbefore
+ \vskip\FOpaddingbefore
\hbox{\kern\FOpaddingstart\box\CellBox\kern\FOpaddingend}%
- \kern\FOpaddingafter
+ \vskip\FOpaddingafter
}%
\fi
\ifx\FOborderendstyle\att@solid
@@ -547,7 +425,7 @@
\ifx\FOborderafterstyle\att@solid
{\color{\FOborderaftercolor}\hrule\@height\FOborderafterwidth}\fi
}%
- \kern\FOmarginbottom
+ \vskip\FOmarginbottom
}%
\hskip\FOmarginright
}%
@@ -555,22 +433,18 @@
}
\def\FOBoxedBlock#1{%
-% Dirk Roorda: I cannot perceive what should be going on here.
-% But \hbox{#1} cannot be right, since #1 is a length or even a dimen.
-% In the latter case this leads to a TeX error!
-% So I have commented out the then-branch.
-% \ifdim\@tempdimb=\z@
-% \setbox0=\hbox{#1}\@tempdimb\wd0\relax
+ \ifdim\@tempdimb=\z@
+ \setbox0=\hbox{#1}\@tempdimb\wd0
%\typeout{report \the\CurrentCellWidth}%
-% \else
- \@tempdimb#1\relax%
-% \fi
- \advance\@tempdimb by -\FOpaddingstart\relax
- \advance\@tempdimb by -\FOpaddingend\relax
- \ifx\FOborderstartstyle\att@solid\advance\@tempdimb by -\FOborderstartwidth\relax\fi
- \ifx\FOborderendstyle\att@solid\advance\@tempdimb by -\FOborderendwidth\relax\fi
- \advance\@tempdimb by -\FOmarginright\relax
- \advance\@tempdimb by -\FOmarginleft\relax
+ \else
+ \@tempdimb#1%
+ \fi
+ \advance\@tempdimb by -\FOpaddingstart
+ \advance\@tempdimb by -\FOpaddingend
+ \ifx\FOborderstartstyle\att@solid\advance\@tempdimb by -\FOborderstartwidth\fi
+ \ifx\FOborderendstyle\att@solid\advance\@tempdimb by -\FOborderendwidth\fi
+ \advance\@tempdimb by -\FOmarginright
+ \advance\@tempdimb by -\FOmarginleft
\begin{lrbox}{\BlockBox}%
\vbox\bgroup
\hsize\the\@tempdimb
@@ -581,12 +455,11 @@
\ifx\FOwrapoption\att@nowrap\obeylines\fi
\parindent\FOtextindent
\Quadding
- %\strut
- \start@strut
+ \strut
}
\def\FOEndBoxedBlock{%
- \start@strut
+ \par
\color@endgroup
\egroup
\end{lrbox}%
@@ -605,7 +478,7 @@
\hbox{%
\kern\FOtempdim
\vbox{%
- \kern\FOmargintop
+ \vskip\FOmargintop
\vbox{%
\ifx\FOborderbeforestyle\att@solid
{\color{\FOborderbeforecolor}\hrule\@height\FOborderbeforewidth}%
@@ -618,9 +491,9 @@
{\color{\FObackgroundcolor}\vrule\@width\@tempdimc\kern-\@tempdimc}%
\fi
\vbox{%
- \kern\FOpaddingbefore
+ \vskip\FOpaddingbefore
\hbox{\kern\FOpaddingstart\box\BlockBox\kern\FOpaddingend}%
- \kern\FOpaddingafter
+ \vskip\FOpaddingafter
}%
\ifx\FOborderendstyle\att@solid
{\color{\FOborderendcolor}\vrule\@width\FOborderendwidth}\fi
@@ -628,7 +501,7 @@
\ifx\FOborderafterstyle\att@solid
{\color{\FOborderaftercolor}\hrule\@height\FOborderafterwidth}\fi
}%
- \kern\FOmarginbottom
+ \vskip\FOmarginbottom
}%
\kern\FOmarginright
}%
@@ -675,7 +548,6 @@
\xdef\FOsrcname{#1}%
}
\def\NColumns{1}
-\gdef\PrevNColumns{1}
\def\Pass#1\\{\expandafter\@Pass#1}
\def\@Pass#1|#2|#3|#4|{%
\columnsep=#1
@@ -713,42 +585,32 @@
\xdef\FOsrcname{#1#2#3#4#5#6#7#8}%
\fi
\fi}
-
-
-{\catcode`\%=12\relax
-\gdef\percentother{%}
-}
-{\catcode`\%=13\relax
-\gdef\defpercentother{\xdef%{\percentother}}
-}
-{\catcode`\%=12\relax
+{\catcode`\%=13
\gdef\percenttest#1%#2#3\@{\ifx#2\relax\def\percentval{#1}\expandafter\@firstoftwo
\else
\expandafter\@secondoftwo
\fi}
-\gdef\performpercent#1{\defpercentother\edef\dopercent{\noexpand\percenttest#1\relax%.\noexpand\@}\dopercent}
-
-\gdef\TablePercentToDimen#1{\performpercent{#1}
- {\@tempdimb\percentval pt\relax\divide\@tempdimb by 100
+\gdef\TablePercentToDimen#1{\expandafter\percenttest#1\relax%.\@
+ {\@tempdimb\percentval pt\relax\divide\@tempdimb by 100
\edef\SCALE{\strip@pt\@tempdimb}\global\@tempdima=\SCALE\TableWidth}{\global\@tempdima#1}
}
-\gdef\PercentToDimen#1{\performpercent{#1}
+\gdef\PercentToDimen#1{\expandafter\percenttest#1\relax%.\@
{\@tempdimb\percentval pt\relax\divide\@tempdimb by 100
\edef\SCALE{\strip@pt\@tempdimb}\global\@tempdima=\SCALE\hsize}{\global\@tempdima#1}
}
-\gdef\FOSetGWidth{\performpercent{\FOcontentwidth}
+\gdef\FOSetGWidth{\expandafter\percenttest\FOcontentwidth\relax%.\@
{\@tempdima\percentval pt\relax\divide\@tempdima by 100
\edef\WSCALE{\strip@pt\@tempdima}\setkeys{Gin}{width=\WSCALE\Gin@nat@width}}{\setkeys{Gin}{width=\FOcontentwidth}}}
-\gdef\FOSetGHeight{\performpercent{\FOcontentheight}
+\gdef\FOSetGHeight{\expandafter\percenttest\FOcontentheight\relax%.\@
{\@tempdima\percentval pt\relax\divide\@tempdima by 100
\edef\HSCALE{\strip@pt\@tempdima}\setkeys{Gin}{height=\HSCALE\Gin@nat@height}}{\setkeys{Gin}{height=\FOcontentheight}}}
\gdef\PlayWithFSize#1{\@default\f@size pt
- \performpercent{#1}
+ \expandafter\percenttest#1\relax%.\@
{\dimen@0.01\@default
\multiply\dimen@\percentval\relax}{\dimen@#1}\edef\FOfontsizefinal{\the\dimen@}}
-\gdef\PlayWithShift{performpercent{\FOverticalalign}
+\gdef\PlayWithShift{\expandafter\percenttest\FOverticalalign\relax%.\@
{\dimen@0.01\baselineskip\multiply\dimen@\percentval\relax}{\dimen@\FOverticalalign}}
}
\def\strip@pt@and@otherjunk#1{\expandafter\rem@ptetc\the#1!}
@@ -771,19 +633,15 @@
}
\catcode`\/=12
%
-\def\nocontentbox{\vbox to \z@{}}
-
\def\BlankPage{%
+ \def\@thehead{\csname\FirstHead\endcsname}%
+ \def\@thefoot{\csname\FirstTail\endcsname}%
+ \let\@themargin\oddsidemargin
+ \def\headheight{\FirstHeadExtent}%
+ \def\tailheight{\FirstTailExtent}%
+ \mark{}%
\DEBUG{Blank Page \the\c@page}%
-% \def\@thehead{\csname\FirstHead\endcsname}%
-% \def\@thefoot{\csname\FirstTail\endcsname}%
-% \let\@themargin\oddsidemargin
-% \def\headheight{\FirstHeadExtent}%
-% \def\tailheight{\FirstTailExtent}%
-% \mark{}%
- \global\BlankPagetrue
- \nocontentbox
- \newpage
+ \hbox{}
}
%-----------------------------------------------
% longtable
@@ -856,12 +714,10 @@
\endgroup
}
-\def\oline#1{$\overline{\mbox{#1}}$}
\def\TableHeader{}
\def\DECO@{\@firstofone}
\def\DECO@blink{\uwave}
\def\DECO@underline{\uline}
-\def\DECO@overline{\oline}
\expandafter\def\csname DECO@line-through\endcsname{\sout}
\def\QuaddingStart{%
\ifx\FOtextalignlast\att@relative
@@ -885,19 +741,20 @@
\fi
}%
% page number compression (by David Carlisle)
-\def\fopagecitation{\csname r@\FOrefid\endcsname}
+
+\def\fopagecitation{\pageref{\FOrefid}}
%was \hyperlink{\FOrefid}{\pageref{\FOrefid}}}
\newcount\sortcount
\newtoks\sorttoks
\def\fosortpagecitation{%
\setbox0\hbox{\global\sortcount=0\expandafter\expandafter\expandafter
\@secondoffive\csname r@\FOrefid\endcsname
- \relax\relax\relax\relax\relax}%
+ \relax\relax\relax\relax\relax}
\let\@elt\fosort@elt
\global\sorttoks\expandafter{\expandafter}\the\sorttoks
\ifnum\sortcount<\maxdimen
\global\sorttoks\expandafter{%
- \the\expandafter\sorttoks\expandafter\@elt\expandafter{\the\sortcount}}%
+ \the\expandafter\sorttoks\expandafter\@elt\expandafter{\the\sortcount}}
\fi
}
@@ -914,19 +771,18 @@
}
\gdef\focompress@elt#1{%
- \global\advance\sortcount\@ne
- \ifnum#1=\sortcount\relax
- \edef\foheld{#1}%
- \else
- \ifx\foheld\relax
- \else
- \FOrangechar
- \fi
- \foheld\fosep#1\relax
- \let\foheld\relax
- \fi
- \global\sortcount#1\relax
- \def\fosep{, }%
+ \global\advance\sortcount\@ne
+ \ifnum#1=\sortcount
+ \ifx\foheld\relax
+ \edef\foheld{#1}%
+ \else
+ \def\foheld{\textendash#1}%
+ \fi
+ \else
+ \foheld\fosep#1
+ \fi
+ \global\sortcount#1
+ \def\fosep{, }%
}
% headers
@@ -987,32 +843,6 @@
\def\FOgeneratePage#1#2\@null{\csname Format-#1\endcsname{\c@page}#2}
-\def\endtrivlist{%
- \if@inlabel
- \leavevmode
- \global \@inlabelfalse
- \fi
- \if@newlist
- \@noitemerr
- \global \@newlistfalse
- \fi
- \ifhmode\unskip \par\fi
- \if@noparlist \else
- \ifInInsertion\else
- \ifdim\lastskip >\z@
- \@tempskipa\lastskip \vskip -\lastskip
- \advance\@tempskipa\parskip \advance\@tempskipa -\@outerparskip
- \vskip\@tempskipa
- \fi
- \fi
- \@endparenv
- \fi
-}
-
-\def\@endparenv{%
- \ifInInsertion\else\addpenalty\@endparpenalty\addvspace\@topsepadd\@endpetrue\fi
-}
-
\def\@item[#1]{%
\if@noparitem
\@donoparitem
@@ -1023,22 +853,19 @@
\ifhmode
\unskip\unskip \par
\fi
- \ifInInsertion
- \else
- \if@newlist
+ \if@newlist
% removed this test 2000/11/05. always put in topsep.
-% \if@nobreak
-% \@nbitem
-% \else
- \addpenalty\@beginparpenalty
- \addvspace\@topsep
- \addvspace{-\parskip}%
-% \fi
- \else
- \addpenalty\@itempenalty
- \addvspace\itemsep
- \fi
- \fi
+% \if@nobreak
+% \@nbitem
+% \else
+ \addpenalty\@beginparpenalty
+ \addvspace\@topsep
+ \addvspace{-\parskip}%
+% \fi
+ \else
+ \addpenalty\@itempenalty
+ \addvspace\itemsep
+ \fi
\global\@inlabeltrue
\fi
\global\everypar{%
@@ -1050,7 +877,7 @@
\ifvoid\z@
\kern-\itemindent
\fi}%
- \box\@labels\FOlabel
+ \box\@labels
\penalty\z@
\fi
\if@nobreak
@@ -1059,8 +886,7 @@
\else
\clubpenalty \@clubpenalty
\global\everypar{}%
- \fi
- }%
+ \fi}%
\if@noitemarg
\@noitemargfalse
\if@nmbrlist
@@ -1122,85 +948,59 @@
}
-%\tracingpages3\relax
% vertical spacing
\newskip\FOafterskip
\def\FOvspaceafter{%
- \ifFOinOutput
- \else
- \ifnum\FOTableNesting>0
- \else
- \ifx\@empty\FOspaceafter
- \@tempdima\FOspaceafteroptimum
- \advance\@tempdima by -\FOspaceafterminimum
- \@tempdimb\FOspaceafteroptimum
- \advance\@tempdimb by \FOspaceaftermaximum
- \FOafterskip\FOspaceafteroptimum plus \@tempdimb minus \@tempdima
- \else
- \FOafterskip\FOspaceafter
- \fi
- \@tempswafalse
- \ifx\FOkeepwithnext\att@always\@tempswatrue\fi
- \ifx\FOkeepwithnextColumn\att@always\@tempswatrue\fi
- \ifx\FOkeepwithnextPage\att@always\@tempswatrue\fi
- \addvspace\FOafterskip
- \if@tempswa \addpenalty{9996}\fi
- \fi
- \fi
+\ifFOinOutput
+\else
+ \ifnum\FOTableNesting>0
+ \else
+ \ifx\@empty\FOspaceafter
+ \@tempdima\FOspaceafteroptimum
+ \advance\@tempdima by -\FOspaceafterminimum
+ \@tempdimb\FOspaceafteroptimum
+ \advance\@tempdimb by \FOspaceaftermaximum
+ \FOafterskip\FOspaceafteroptimum plus \@tempdimb minus \@tempdima
+ \else
+ \FOafterskip\FOspaceafter
+ \fi
+ \@tempswafalse
+ \ifx\FOkeepwithnext\att@always\@tempswatrue\fi
+ \ifx\FOkeepwithnextColumn\att@always\@tempswatrue\fi
+ \ifx\FOkeepwithnextPage\att@always\@tempswatrue\fi
+ \if@tempswa\addpenalty{\@M}\fi
+ \addvspace\FOafterskip
+ \fi
+\fi
}
-\@secpenalty = -300
\def\FOvspacebefore{%
- \ifFOinOutput
- \else
- \ifx\@empty\FOspacebefore
- \@tempdima\FOspacebeforeoptimum
- \advance\@tempdima by -\FOspacebeforeminimum
- \@tempdimb\FOspacebeforeoptimum
- \advance\@tempdimb by \FOspacebeforemaximum
- \@tempskipa\FOspacebeforeoptimum plus \@tempdimb minus \@tempdima
- \else
- \@tempskipa\FOspacebefore
- \fi
- %\typeout{SPACE BEFORE \the\inputlineno: \the\@tempskipa, \FOspacebeforeminimum/\FOspacebeforemaximum/\FOspacebeforeoptimum}%
- \ifnum\FOTableNesting>0
- \rule{\z@}{\@tempskipa}%
- \else
- \@tempswafalse
- \ifx\FOkeepwithnext\att@always\@tempswatrue\fi
- \ifx\FOkeepwithnextColumn\att@always\@tempswatrue\fi
- \ifx\FOkeepwithnextPage\att@always\@tempswatrue\fi
- \@tempskipb\f@baselineskip\relax\@tempskipb3\@tempskipb\relax
- %\ifx\@empty\FOspacebefore\else
- %\if@tempswa\vskip0pt plus \@tempskipb
- %\addpenalty\@secpenalty\vskip-\lastskip\fi\fi
- \if@tempswa\addpenalty\@secpenalty\fi
- \addvspace\@tempskipa
- \fi
- \fi
- \def\FOspacebefore{\z@}%
+\ifFOinOutput
+\else
+ \ifx\@empty\FOspacebefore
+ \@tempdima\FOspacebeforeoptimum
+ \advance\@tempdima by -\FOspacebeforeminimum
+ \@tempdimb\FOspacebeforeoptimum
+ \advance\@tempdimb by \FOspacebeforemaximum
+ \@tempskipa\FOspacebeforeoptimum plus \@tempdimb minus \@tempdima
+ \else
+ \@tempskipa\FOspacebefore
+ \fi
+%\typeout{SPACE BEFORE \the\inputlineno: \the\@tempskipa, \FOspacebeforeminimum/\FOspacebeforemaximum/\FOspacebeforeoptimum}%
+ \ifnum\FOTableNesting>0
+ \rule{\z@}{\@tempskipa}%
+ \else
+ \@tempswafalse
+ \ifx\FOkeepwithnext\att@always\@tempswatrue\fi
+ \ifx\FOkeepwithnextColumn\att@always\@tempswatrue\fi
+ \ifx\FOkeepwithnextPage\att@always\@tempswatrue\fi
+ \if@tempswa\addpenalty\@secpenalty\fi
+ \addvspace\@tempskipa
+ \fi
+\fi
+\def\FOspacebefore{\z@}%
}
-\def\addpenalty#1{%
- \ifvmode
- \if@minipage
- \else
- \if@nobreak
- \else
- \ifdim\lastskip=\z@
- \penalty#1\relax
- \else
- \@tempskipb\lastskip
- \vskip -\lastskip
- \penalty#1%
- \vskip\@tempskipb
- \fi
- \fi
- \fi
- \else
- \@noitemerr
- \fi
-}
% lets do some setup
% setup
\paperwidth211mm
@@ -1219,8 +1019,8 @@
\relpenalty=500
\tolerance=1000
\vbadness=3000
-\widowpenalty=0
-\clubpenalty=0
+\widowpenalty=8000
+\clubpenalty=8000
\@twosidetrue
\fboxsep0pt
\setcounter{topnumber}{5}
@@ -1249,108 +1049,82 @@
%\catcode`\^^M\active\gdef\@resetactivechars{\def^^M{x}}\endgroup
\def\@outputpage{%
- \begingroup % the \endgroup is put in by \aftergroup
- \let\protect\noexpand
+\begingroup % the \endgroup is put in by \aftergroup
+ \let \protect \noexpand
% \@resetactivechars
- \@parboxrestore
- \shipout\vbox{%
- \set@typeset@protect
- \aftergroup\endgroup
- \aftergroup\set@typeset@protect
+ \@parboxrestore
+ \shipout \vbox{%
+ \set@typeset@protect
+ \aftergroup \endgroup
+ \aftergroup \set@typeset@protect
% correct? or just restore by ending
% the group?
- \if@specialpage
-% \typeout{PAGE=FIRST \the\c@page}%
- \global\@specialpagefalse
- \def\@thehead{\csname\FirstHead\endcsname}%
- \def\@thefoot{\csname\FirstTail\endcsname}%
- \let\@themargin\oddsidemargin
- \def\headheight{\FirstHeadExtent}%
- \def\tailheight{\FirstTailExtent}%
- \else
- \ifBlankPage
-%\typeout{PAGE=BLANK \the\c@page}%
- \global\BlankPagefalse
- \def\@thehead{\csname\BlankHead\endcsname}%
- \def\@thefoot{\csname\BlankTail\endcsname}%
- \let\@themargin\oddsidemargin
- \def\headheight{\BlankHeadExtent}%
- \def\tailheight{\BlankTailExtent}%
- \else
- \ifodd\count\z@
-% \typeout{PAGE=ODD \the\c@page}%
- \def\@thehead{\csname\OddHead\endcsname}%
- \def\@thefoot{\csname\OddTail\endcsname}%
- \let\@themargin\oddsidemargin
- \def\headheight{\OddHeadExtent}%
- \def\tailheight{\OddTailExtent}%
- \else
-% \typeout{PAGE=EVEN \the\c@page}%
- \def\@thehead{\csname\EvenHead\endcsname}%
- \def\@thefoot{\csname\EvenTail\endcsname}%
- \let\@themargin\evensidemargin
- \def\headheight{\EvenHeadExtent}%
- \def\tailheight{\EvenTailExtent}%
- \fi
- \fi
- \fi
- \@tempdima\textwidth
- \advance\@tempdima by -\FOheadindent
- \reset@font
- \normalsize
- \normalsfcodes
- \let\label\@gobble
- \let\index\@gobble
- \let\glossary\@gobble
- %\baselineskip\z@skip \lineskip\z@skip \lineskiplimit\z@
- \offinterlineskip
- \@begindvi
- \vskip \topmargin
- \vskip -\InnerTopMargin
- \moveright\@themargin \vbox {%
- \setbox\@tempboxa \vbox to\z@{%
- \color@hbox
- \normalcolor
- \hb@xt@\textwidth{\hfill\llap{\hb@xt@\@tempdima{\@thehead}}}%
- \color@endbox
- \vss
- }%
- \dp\@tempboxa \z@
- \box\@tempboxa
- \vskip\headsep
- \vskip\InnerTopMargin
- \box\@outputbox
- \baselineskip\footskip
- \vskip\bottommargin
- \vskip-\tailheight
- \@tempdima\textwidth
- \advance\@tempdima by -\FOheadindent
- \setbox\@tempboxa \vbox to\tailheight{%
- \color@hbox
- \normalcolor
- \hb@xt@\textwidth{\hfill\llap{\hb@xt@\@tempdima{\@thefoot}}}%
- \color@endbox
- \vfil
- }%
- \dp\@tempboxa \z@
- \box\@tempboxa
+ \if@specialpage
+ \global\@specialpagefalse
+ \def\@thehead{\csname\FirstHead\endcsname}%
+ \def\@thefoot{\csname\FirstTail\endcsname}%
+ \let\@themargin\oddsidemargin
+ \def\headheight{\FirstHeadExtent}%
+ \def\tailheight{\FirstTailExtent}%
+ \else
+ \ifodd\count\z@
+ \def\@thehead{\csname\OddHead\endcsname}%
+ \def\@thefoot{\csname\OddTail\endcsname}%
+ \let\@themargin\oddsidemargin
+ \def\headheight{\OddHeadExtent}%
+ \def\tailheight{\OddTailExtent}%
+ \else
+ \def\@thehead{\csname\EvenHead\endcsname}%
+ \def\@thefoot{\csname\EvenTail\endcsname}%
+ \let\@themargin\evensidemargin
+ \def\headheight{\EvenHeadExtent}%
+ \def\tailheight{\EvenTailExtent}%
+ \fi
+ \fi
+ \@tempdima\textwidth
+ \advance\@tempdima by -\FOheadindent
+ \reset@font
+ \normalsize
+ \normalsfcodes
+ \let\label\@gobble
+ \let\index\@gobble
+ \let\glossary\@gobble
+ \baselineskip\z@skip \lineskip\z@skip \lineskiplimit\z@
+ \@begindvi
+ \vskip \topmargin
+ \moveright\@themargin \vbox {%
+ \setbox\@tempboxa \vbox to\headheight{%
+ \color@hbox
+ \normalcolor
+ \hb@xt@\textwidth{\hfill\llap{\hb@xt@\@tempdima{\@thehead}}}%
+ \color@endbox
+ \vfil
}%
+ \dp\@tempboxa \z@
+ \box\@tempboxa
+ \vskip \headsep
+ \box\@outputbox
+ \baselineskip \footskip
+ \vskip \bottommargin
+ \@tempdima\textwidth
+ \advance\@tempdima by -\FOheadindent
+ \setbox\@tempboxa \vbox to\tailheight{%
+ \color@hbox
+ \normalcolor
+ \hb@xt@\textwidth{\hfill\llap{\hb@xt@\@tempdima{\@thefoot}}}%
+ \color@endbox
+ \vfil
}%
- \global \@colht \textheight
- \stepcounter{page}%
- \ifForcePageSetup
- \global\advance\SimplePMRefs1\relax
- \DEBUG{Start page \the\SimplePMRefs\space of page sequence, using layout \CurrentPageMaster, at page \the\c@page}%
- \setaccordingtomaster
- \ifnum\NColumns>1\relax
- \refreshmulticols % this is defined in nomulticols.sty
- \fi
- \else
- \DEBUG{Skipping page set up at page \the\c@page}%
- \fi
- \let\firstmark\botmark
+ \dp\@tempboxa \z@
+ \box\@tempboxa
+ }%
+ }%
+ \global \@colht \textheight
+ \stepcounter{page}%
+ \let\firstmark\botmark
}
+%%%%
\def\FO@character#1{%
\ifx\FOverticalalign\att@baseline
#1%
@@ -1368,52 +1142,25 @@
\fi
}
\def\FO@inlinesequence#1{%
- \FOSetFont{normal}%
- \ifx\FOletterspacing\att@normal
- \def\pre@sequence{{#1}}%
- \else
- \def\pre@sequence{\@ifundefined{thisso}{\sodef\thisso{}{\FOletterspacing}{.4em}{.5em}}{}{\thisso{#1}}}%
- \fi
- \ifx\FOverticalalign\att@baseline
- \csname DECO@\FOtextdecoration\endcsname{\FOlabel\pre@sequence}%
- \else
- \ifx\FOverticalalign\att@super
- \textsuperscript{\csname DECO@\FOtextdecoration\endcsname{\FOlabel\pre@sequence}}%
- \else
- \ifx\FOverticalalign\att@sub
- \textsubscript{\csname DECO@\FOtextdecoration\endcsname{\FOlabel\pre@sequence}}%
- \else
- \PlayWithShift
- \raisebox{\dimen@}{\csname DECO@\FOtextdecoration\endcsname{\FOlabel\pre@sequence}}%
- \fi
- \fi
- \fi
-}
-\def\interpretwidth{%
- \ifx\FOborderwidth\att@thin\def\FOborderwidth{0.4pt}\fi
- \ifx\FOborderwidth\att@medium\def\FOborderwidth{0.8pt}\fi
- \ifx\FOborderwidth\att@thick\def\FOborderwidth{1.2pt}\fi
- \ifx\FOborderbeforewidth\att@thin\def\FOborderbeforewidth{0.4pt}\fi
- \ifx\FOborderbeforewidth\att@medium\def\FOborderbeforewidth{0.8pt}\fi
- \ifx\FOborderbeforewidth\att@thick\def\FOborderbeforewidth{1.2pt}\fi
- \ifx\FOborderafterwidth\att@thin\def\FOborderafterwidth{0.4pt}\fi
- \ifx\FOborderafterwidth\att@medium\def\FOborderafterwidth{0.8pt}\fi
- \ifx\FOborderafterwidth\att@thick\def\FOborderafterwidth{1.2pt}\fi
- \ifx\FOborderstartwidth\att@thin\def\FOborderstartwidth{0.4pt}\fi
- \ifx\FOborderstartwidth\att@medium\def\FOborderstartwidth{0.8pt}\fi
- \ifx\FOborderstartwidth\att@thick\def\FOborderstartwidth{1.2pt}\fi
- \ifx\FOborderendwidth\att@thin\def\FOborderendwidth{0.4pt}\fi
- \ifx\FOborderendwidth\att@medium\def\FOborderendwidth{0.8pt}\fi
- \ifx\FOborderendwidth\att@thick\def\FOborderendwidth{1.2pt}\fi
+ \FOSetFont{normal}%
+\ifx\FOverticalalign\att@baseline
+ \csname DECO@\FOtextdecoration\endcsname{\FOlabel#1}%
+\else
+ \ifx\FOverticalalign\att@super
+ \textsuperscript{\csname DECO@\FOtextdecoration\endcsname{\FOlabel#1}}%
+ \else
+ \ifx\FOverticalalign\att@sub
+ \textsubscript{\csname DECO@\FOtextdecoration\endcsname{\FOlabel#1}}%
+ \else
+ \PlayWithShift
+ \raisebox{\dimen@}{\csname DECO@\FOtextdecoration\endcsname{\FOlabel#1}}%
+ \fi
+ \fi
+\fi
}
-
\def\FOboxedsequence#1{%
\FOSetFont{normal}%
-\ifx\FOborderwidth\@empty
-\else
- \interpretwidth
- \fboxrule\FOborderwidth
-\fi
+\ifx\FOborderwidth\@empty\else\fboxrule\FOborderwidth\fi
\ifx\FOverticalalign\att@baseline
\fbox{\csname DECO@\FOtextdecoration\endcsname{\FOlabel#1}}%
\else
@@ -1453,117 +1200,6 @@
\def\FOfontvariant{#4}%
\def\FOfontweight{#5}%
\def\FOfontstyle{#3}#8\global\FOinOutputfalse}}}%
- \ifx\FOflowname\att@xsl@footnote@separator\relax
- \xdef\footnoterulepre{Static:#9}%
- \global\footnotesep\z@\relax
- \setbox\@tempboxa\vbox{\csname\footnoterulepre\endcsname}%
- \@tempdima=\z@\relax
- \advance\@tempdima\ht\@tempboxa\relax
- \advance\@tempdima\dp\@tempboxa\relax
- \global\skip\footins\@tempdima\relax
- \gdef\footnoterule{\vfill\vbox to\z@{\vss\csname\footnoterulepre\endcsname}}%
- \fi
-}
-
-\def\setaccordingtomaster{%
- \global\@specialpagetrue
- \@ifundefined{Atomic:\CurrentPageMaster}
- {
- \@ifundefined{Lead:\the\SimplePMRefs:\CurrentPageMaster}
- {
- \ifnum\SimplePMRefs>1\relax\global\@specialpagefalse\fi
- \@ifundefined{First:\CurrentPageMaster}
- {
- \ifx\FOinitialpagenumber\att@auto
- \ifodd\c@page
- \DEBUG{Master \CurrentPageMaster: no first page, use odd page}
- \xdef\PFirst{\csname Odd:\CurrentPageMaster\endcsname}
- \else
- \DEBUG{Master \CurrentPageMaster: no first page, use even page}
- \@ifundefined{Even:\CurrentPageMaster}
- {\xdef\PFirst{\csname Odd:\CurrentPageMaster\endcsname}}
- {\xdef\PFirst{\csname Even:\CurrentPageMaster\endcsname}}
- \fi
- \else
- \ifx\FOinitialpagenumber\att@autoeven
- \@ifundefined{Even:\CurrentPageMaster}
- {\xdef\PFirst{\csname Odd:\CurrentPageMaster\endcsname}}
- {\xdef\PFirst{\csname Even:\CurrentPageMaster\endcsname}}
- \else
- \ifx\FOinitialpagenumber\att@autoodd
- \xdef\PFirst{\csname Odd:\CurrentPageMaster\endcsname}
- \else
- \ifodd\FOinitialpagenumber
- \xdef\PFirst{\csname Odd:\CurrentPageMaster\endcsname}
- \else
- \@ifundefined{Even:\CurrentPageMaster}
- {\xdef\PFirst{\csname Odd:\CurrentPageMaster\endcsname}}
- {\xdef\PFirst{\csname Even:\CurrentPageMaster\endcsname}}
- \fi
- \fi
- \fi
- \fi
- }
- {
- \xdef\PFirst{\csname First:\CurrentPageMaster\endcsname}
- }
- \@ifundefined{Blank:\CurrentPageMaster}
- {\xdef\PBlank{\csname Odd:\CurrentPageMaster\endcsname}}
- {\xdef\PBlank{\csname Blank:\CurrentPageMaster\endcsname}}
- \@ifundefined{Even:\CurrentPageMaster}
- {\xdef\PEven{\csname Odd:\CurrentPageMaster\endcsname}}
- {\xdef\PEven{\csname Even:\CurrentPageMaster\endcsname}}
- \xdef\POdd{\csname Odd:\CurrentPageMaster\endcsname}
- }
- {
- \xdef\PFirst{\csname Lead:\the\SimplePMRefs:\CurrentPageMaster\endcsname}
- \global\let\POdd\PFirst
- \global\let\PEven\PFirst
- \global\let\PBlank\PFirst
- }
- }
- {
- \global\let\PFirst\CurrentPageMaster
- \global\let\PBlank\CurrentPageMaster
- \global\let\POdd\CurrentPageMaster
- \global\let\PEven\CurrentPageMaster
- }
- \DEBUG{ first page master is [\PFirst]}
- \DEBUG{ odd page master is [\POdd]}
- \DEBUG{ even page master is [\PEven]}
- \DEBUG{ blank page master is [\PBlank]}
- \expandafter\Pass\csname\POdd:xsl-region-body\endcsname\\
- \csname Atomic:\POdd\endcsname
- \global\oddsidemargin\MasterLeftMargin
- \global\evensidemargin\MasterLeftMargin
- \global\advance\evensidemargin by \SpecialOffset
- \global\advance\oddsidemargin by \SpecialOffset
- \@ifundefined{Atomic:\PEven}
- {
- \DEBUG{no master for Atomic:\PEven}
- }
- {
- \csname Atomic:\PEven\endcsname
- \global\evensidemargin\MasterLeftMargin
- \global\advance\evensidemargin by \SpecialOffset
- }
- \xdef\EvenHeadExtent{\csname\PEven:before-extent\endcsname}
- \xdef\EvenHead{Static:\csname\PEven:before\endcsname}
- \xdef\EvenTailExtent{\csname\PEven:after-extent\endcsname}
- \xdef\EvenTail{Static:\csname\PEven:after\endcsname}
- \xdef\FirstHeadExtent{\csname\PFirst:before-extent\endcsname}
- \xdef\FirstHead{Static:\csname\PFirst:before\endcsname}
- \xdef\FirstTailExtent{\csname\PFirst:after-extent\endcsname}
- \xdef\FirstTail{Static:\csname\PFirst:after\endcsname}
- \xdef\OddHeadExtent{\csname\POdd:before-extent\endcsname}
- \xdef\OddHead{Static:\csname\POdd:before\endcsname}
- \xdef\OddTailExtent{\csname\POdd:after-extent\endcsname}
- \xdef\OddTail{Static:\csname\POdd:after\endcsname}
- \xdef\BlankHeadExtent{\csname\PBlank:before-extent\endcsname}
- \xdef\BlankHead{Static:\csname\PBlank:before\endcsname}
- \xdef\BlankTailExtent{\csname\PBlank:after-extent\endcsname}
- \xdef\BlankTail{Static:\csname\PBlank:after\endcsname}
- \FOSetPage
}
\let\olditem\item
@@ -1573,7 +1209,7 @@
% \typeout{Hypertext label \FOid, at \the\inputlineno}%
\@bsphack
\protected@write\@mainaux{}%
- {\string\newlabel{\FOid}{{}{\noexpand\FOgeneratePage\FOformat\noexpand\@null}{}{}{}}}%
+ {\string\newlabel{\FOid}{{}{\expandafter\FOgeneratePage\FOformat\@null}{}{\FOid}{}}}%
\@esphack
\hyper@@anchor{\FOid}{\relax}%
\global\let\FOid\@empty
@@ -1593,10 +1229,9 @@
\itemsep\FOspacebefore
\fi
\itemindent=\FOstartindent
- \PercentToDimen{\FOprovisionaldistancebetweenstarts}%
- \leftmargin=\@tempdima\relax
+ \leftmargin=\FOprovisionaldistancebetweenstarts
\rightmargin=\FOmarginright
- \labelwidth=\@tempdima\relax
+ \labelwidth=\FOprovisionaldistancebetweenstarts
\advance\labelwidth by -\FOprovisionallabelseparation
\expandafter\csname List\FOtextalign\endcsname
%\typeout{List at \the\inputlineno: labelwidth: \the\labelwidth,
@@ -1607,106 +1242,72 @@
\def\FOOutputBlock{%
\FOSetFont{output}%
+ \ifFOBlockGrab
+ \FOBoxedBlock{\textwidth}%
+ \fi
\ifx\FOtextalignlast\att@relative
\csname startQ@\FOtextalign\endcsname
-% \csname Q@\FOtextalign\endcsname
+ \csname Q@\FOtextalign\endcsname
\else
\csname startQ@\FOtextalignlast\endcsname
-% \csname Q@\FOtextalignlast\endcsname
- \fi
-% \Quadding
- \ifFOBlockGrab
- \FOBoxedBlock{\textwidth}%
+ \csname Q@\FOtextalignlast\endcsname
\fi
}
-\def\list#1#2{%
- \ifnum \@listdepth >5\relax
- \@toodeep
- \else
- \global\advance\@listdepth\@ne
- \fi
- \rightmargin\z@
- \listparindent\z@
- \itemindent\z@
- \csname @list\romannumeral\the\@listdepth\endcsname
- \def\@itemlabel{#1}%
- \let\makelabel\@mklab
- \@nmbrlistfalse
- #2\relax
- \@trivlist
- \parskip\parsep
- \parindent\listparindent
- \global\advance\linewidth -\rightmargin
- \global\advance\linewidth -\leftmargin
- \advance\@totalleftmargin \leftmargin
- \parshape \@ne \@totalleftmargin \linewidth
- \ignorespaces}
-
\def\FONormalBlock{%
- \ifnum\FOTableNesting>0
- \ifx\FOtextalign\att@centered
- \centering
- \fi
- \FOSetFont{normalblock}%
-% \vrule height \f@baselineskip depth \z@ width \z@\relax
- \else
- \ifnum\FOinList>0
- \ifFOListInnerPar
- \unskip\par
- \FOvspacebefore
- \fi
- \ifx\FOwhitespace\att@pre\obeyspaces\obeylines\fi
- \ifx\FOwhitespacecollapse\att@false\obeyspaces\fi
- \ifx\FOwrapoption\att@nowrap\obeylines\fi
- \ifInInsertion\start@strut\fi
- \else
- \ifx\FObreakbefore\att@page
- \let\tempID\FOid
-% \penalty -\@M
- \newpage
- \let\FOid\tempID
- \else
- \ifx\FObreakbefore\att@oddpage
- \let\tempID\FOid
-% \penalty -\@M
- \newpage
- \ifodd\c@page\else\BlankPage\fi
- \let\FOid\tempID
- \else
- \ifx\FObreakbefore\att@evenpage
- \let\tempID\FOid
-% \penalty -\@M
- \newpage
- \ifodd\c@page\BlankPage\fi
- \let\FOid\tempID
- \fi
- \fi
- \fi
- \par
- \Quadding
- \ifFOBlockGrab
- \FOBoxedBlock{\linewidth}%
- \else
- \FOBorderTop
- \ifdim\FOpaddingbefore>\z@
- \vskip\FOpaddingbefore
- \fi
- \FOvspacebefore
- \parindent\FOtextindent
- \advance\leftskip by \FOpaddingstart
- \advance\leftskip by \FOmarginleft
- \advance\rightskip by \FOpaddingend
- \advance\rightskip by \FOmarginright
- \fi
-% \par
- \ifx\FOwhitespace\att@pre\obeyspaces\obeylines\fi
- \ifx\FOwhitespacecollapse\att@false\obeyspaces\fi
- \ifx\FOwrapoption\att@nowrap\obeylines\fi
- \FOlabel
- \fi
- \ifx\XML@parent\FOFootnoteBody\else\FOSetFont{normal}\fi
+ \let\@x\relax
+ \ifnum\FOTableNesting>0
+ \ifx\FOtextalign\att@centered
+ \centering
+ \fi
+ \let\@x\relax
+ \FOSetFont{normalblock}%
+ \vrule height \f@baselineskip depth \z@ width \z@
+ \else
+ \ifnum\FOinList>0
+ \FOlabel
+ \ifFOListInnerPar\par\FOvspacebefore\fi
+ \ifx\FOwhitespace\att@pre\obeyspaces\obeylines\fi
+ \ifx\FOwhitespacecollapse\att@false\obeyspaces\fi
+ \ifx\FOwrapoption\att@nowrap\obeylines\fi
+ \else
+ \ifx\FObreakbefore\att@page
+ \let\tempID\FOid
+ \penalty -\@M
+ \let\FOid\tempID
+ \else
+ \ifx\FObreakbefore\att@oddpage
+ \let\tempID\FOid
+ \penalty -\@M
+ \ifodd\c@page\else\BlankPage\newpage\fi
+ \let\FOid\tempID
+ \fi
+ \fi
+ \par
+ \FOlabel
+ \Quadding
+ \ifFOBlockGrab
+ \FOBoxedBlock{\linewidth}%
+ \else
+ \FOBorderTop
+ \ifdim\FOpaddingbefore>\z@
+ \vskip\FOpaddingbefore
\fi
+ \FOvspacebefore
+ \parindent\FOtextindent
+ \advance\leftskip by \FOpaddingstart
+ \advance\leftskip by \FOmarginleft
+ \advance\rightskip by \FOpaddingend
+ \advance\rightskip by \FOmarginright
+ \fi
+% \par
+ \ifx\FOwhitespace\att@pre\obeyspaces\obeylines\fi
+ \ifx\FOwhitespacecollapse\att@false\obeyspaces\fi
+ \ifx\FOwrapoption\att@nowrap\obeylines\fi
+ \fi
+ \FOSetFont{normal}%
+ \fi
+\@x
}
\def\FOEndOutputBlock{%
@@ -1724,8 +1325,7 @@
\ifx\XML@parent\FOListItemLabel
\else
\ifnum\FOinList>0
- \ifInInsertion\start@strut\fi
- \ifFOListInnerPar\unskip\par\fi
+ \ifFOListInnerPar\par\fi
\else
\ifnum\FOTableNesting>0
\else
@@ -1735,7 +1335,6 @@
\fi
}
-
\def\FOEndBlockTwo{%
\par
\ifFOBlockGrab
@@ -1747,27 +1346,22 @@
\FOBorderBottom
\fi
\ifx\FObreakafter\att@page
- \clearpage
-% \penalty -\@M
+ \penalty -\@M
\else
\ifx\FObreakafter\att@oddpage
- \ifodd\c@page\cleardoublepage\else\clearpage\fi
- \else
- \ifx\FObreakafter\att@evenpage
- \ifodd\c@page\clearpage\else\cleardoublepage\fi
- \fi
+ \cleardoublepage
\fi
\fi
\@tempswafalse
\ifx\FOkeepwithnext\att@always\@tempswatrue\fi
\ifx\FOkeepwithnextColumn\att@always\@tempswatrue\fi
\ifx\FOkeepwithnextPage\att@always\@tempswatrue\fi
- \if@tempswa\addpenalty{9993}\fi
+ \if@tempswa\nobreak\fi
\FOvspaceafter
-% \if@tempswa\@afterheading\fi
+ \if@tempswa\@afterheading\fi
}
-% \FOStartGrab is never called, so it seems
+
\def\FOStartGrab#1{%
\@tempdima#1
\XFOstartindent\FOstartindent
@@ -1805,7 +1399,6 @@
\vskip\FOpaddingbefore
\parindent\FOtextindent\leftskip\z@\rightskip\z@
}
-% \FOEndGrab is never called, so it seems
\def\FOEndGrab#1{%
\vspace*{\FOpaddingafter}%
\end{minipage}%
@@ -1818,7 +1411,6 @@
\advance\@tempdima by \FOborderbeforewidth
\advance\@tempdima by \FOborderafterwidth
\ifx\FOborderstyle\att@solid
- \interpretwidth
\ifx\FObackgroundcolor\att@transparent
\fboxrule\FOborderwidth
\fboxsep\FOpadding
@@ -1910,88 +1502,17 @@
\expandafter\let\csname p@footnote\endcsname\relax
\@footnotetext{\FOlabel#2}}
-\def\start@strut{%
- \vrule height \ht\strutbox depth \dp\strutbox width \z@\relax
-}
-
\def\FOplainfootmark#1{#1}
-
-\newtoks\sav@everypar
-\newbox\sav@labels
-
-%\showboxbreadth10
-%\showboxdepth10
-\gdef \@makecol {%
- \ifvoid\footins
- \setbox\@outputbox \box\@cclv
- \else
-% \showbox\footins
- \setbox\@outputbox \vbox {%
- \boxmaxdepth \@maxdepth
- \@tempdima\dp\@cclv
- \unvbox \@cclv
- \vskip \skip\footins
- \color@begingroup
- \normalcolor
- \footnoterule
- \unvbox \footins
- \color@endgroup
- }%
- \fi
- \xdef\@freelist{\@freelist\@midlist}%
- \global \let \@midlist \@empty
- \@combinefloats
- \ifvbox\@kludgeins
- \@makespecialcolbox
- \else
- \setbox\@outputbox \vbox to\@colht {%
- \@texttop
- \dimen@ \dp\@outputbox
- \unvbox \@outputbox
- \vskip -\dimen@
- \@textbottom
- }%
- \fi
- \global \maxdepth \@maxdepth
+\long\def\FOplainfoottext#1{\insert\footins{%
+ \reset@font\footnotesize
+ \interlinepenalty\interfootnotelinepenalty
+ \splittopskip\footnotesep
+ \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
+ \hsize\columnwidth \@parboxrestore
+ \color@begingroup
+ #1\unskip\ifhmode\nobreak\fi\vskip\lineskip
+ \color@endgroup}%
}
-
-\long\def\FOplainfoottext#1{%
- \insert\footins{\relax
- \reset@font\footnotesize
- \FORestoreFontSize
- \size@update
- \interlinepenalty\interfootnotelinepenalty
- \splittopskip0pt\relax
- \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
- \hsize\columnwidth\@parboxrestore
- \color@begingroup\InInsertiontrue
- \xdef\Sav@FOListBlocks{\the\FOListBlocks}\FOListBlocks0\relax
- \global\let\sav@if@inlabel\if@inlabel
- \global\let\sav@if@nobreak\if@nobreak
- \global\let\sav@if@newlist\if@newlist
- \global\setbox\sav@labels\box\@labels
- \expandafter\global\expandafter\sav@everypar\expandafter{\the\everypar}\global\everypar{}\relax
- \FOinList0\relax
- \FOListBodyfalse
- #1\ifhmode\nobreak\fi
- \global\FOListBlocks\Sav@FOListBlocks\relax
- \global\let\if@inlabel\sav@if@inlabel
- \global\let\if@nobreak\sav@if@nobreak
- \global\let\if@newlist\sav@if@newlist
- \global\setbox\@labels\box\sav@labels
- \expandafter\global\expandafter\everypar\expandafter{\the\sav@everypar}\relax
- %\vskip\lineskip
- \color@endgroup}%
-}
-\let\FOfoottext\FOplainfoottext
-
-\def\FOboxedfoottext#1{
- \edef\boxedfootnotetext{\the\BoxedFootnotes\noexpand\FOplainfoottext}%
- \global\BoxedFootnotes=\expandafter{\boxedfootnotetext{#1}}%
-}
-
-\def\FOnofoottext#1{}
-
\ColSpecs={}%
\NCols0
\RowCount0
@@ -2038,15 +1559,6 @@
%}
\edef\LastLanguage{\newL}}
-\def\FoTeXSetSpacingStyle{%
- \ifx\FoTeXSpacingStyle\att@french
- \frenchspacing
- \typeout{INFO: Using french-spacing in document}%
- \else
- \typeout{INFO: Using normal, i.e. nonfrench-spacing in document}%
- %\nonfrenchspacing
- \fi
-}
\def\FOSetHyphenation{%
\ifx\FOhyphenate\att@true
\LoadLanguage{\FOlanguage}%
@@ -2061,8 +1573,8 @@
\csname Weight@\FOfontweight\endcsname}%
\ifx\LaTeXshape\@empty\def\LaTeXshape{m}\fi
\edef\fFamName{\FOfontfamily}%
-\DEBUG{#1: \FOfontweight, \FOfontstyle,
- \FOfontsize, \FOtextalign, \LaTeXshape}%
+%\typeout{#1 At \the\inputlineno, \FOfontweight, \FOfontstyle,
+% \FOfontsize, \FOtextalign, \LaTeXshape}%
\edef\f@series{\LaTeXshape}%
\edef\f@shape{\csname Posture@\FOfontstyle\endcsname}%
\ifx\FOfontvariant\att@smallcaps
@@ -2120,69 +1632,43 @@
\set@fontsize\baselinestretch{\FOfontsizefinal}{\FOlineheight}%
\fi
}
-\def\FOSaveFontSize{%
- \computeFOfontsize
- \ifx\FOlineheight\att@normal
- \@tempdima\FOfontsizefinal
- \multiply\@tempdima by 12
- \divide\@tempdima by 10
- \xdef\FORestoreFontSize{\noexpand\set@fontsize\noexpand\baselinestretch{\FOfontsizefinal}{\the\@tempdima}}%
- \else
- \xdef\FORestoreFontSize{\noexpand\set@fontsize\noexpand\baselinestretch{\FOfontsizefinal}{\FOlineheight}}%
- \fi
-}
-
\DeclareRobustCommand*\textsubscript[1]{%
\@textsubscript{\selectfont#1}}
-%\def\@textsubscript#1{%
-% {\m@th\ensuremath{_{\mbox{\fontsize\sf@size\z@#1}}}}}
\def\@textsubscript#1{%
- {\m@th\ensuremath{_{\mbox{#1}}}}}
-\def\@textsuperscript#1{%
- {\m@th\ensuremath{^{\mbox{#1}}}}}
+ {\m@th\ensuremath{_{\mbox{\fontsize\sf@size\z@#1}}}}}
\def\reserved@e{}
-
\def\FOSetPage{%
- \global\bottommargin\Marginbottom
-% \headsep\Margintop
- \global\headsep\z@
- \global\topmargin\MasterTopMargin
- \global\advance\topmargin by \SpecialOffset
- \global\textheight\paperheight
- \global\textwidth\paperwidth
-% \advance\textheight by -\FirstHeadExtent
-% \advance\textheight by -\FirstTailExtent
- \global\advance\textheight by -\MasterTopMargin
-% \advance\textheight by -\Margintop
- \global\advance\textheight by -\MasterBottomMargin
-% \advance\textheight by -\Marginbottom
- \global\advance\textwidth by -\MasterLeftMargin
- \global\advance\textwidth by -\MasterRightMargin
+ \bottommargin\Marginbottom
+ \headsep\Margintop
+ \topmargin\MasterTopMargin
+ \advance\topmargin by \SpecialOffset
+ \textheight\paperheight
+ \textwidth\paperwidth
+ \advance\textheight by -\FirstHeadExtent
+ \advance\textheight by -\FirstTailExtent
+ \advance\textheight by -\MasterTopMargin
+ \advance\textheight by -\Margintop
+ \advance\textheight by -\MasterBottomMargin
+ \advance\textheight by -\Marginbottom
+ \advance\textwidth by -\MasterLeftMargin
+ \advance\textwidth by -\MasterRightMargin
\FOpdfsetpagesize{\paperwidth}{\paperheight}
- \global\@colht\textheight
- \global\@colroom\textheight
- \global\vsize\textheight
- \global\columnwidth\textwidth
- \global\hsize\columnwidth
- \global\linewidth\hsize
- \gdef\headheight{12pt}%
-% if we are in the middle of a list, we have to redo some of the list assignments
- \FOResetPageParts
+ \@colht\textheight
+ \@colroom\textheight
+ \vsize\textheight
+ \linewidth\textwidth
+ \columnwidth\textwidth
+ \hsize\columnwidth \linewidth\hsize
+ \def\headheight{12pt}%
\DEBUG{Page size is \the\textwidth/\the\textheight,
on paper \the\paperwidth/\the\paperheight,^^J
with paper margins \the\MasterRightMargin/\the\MasterLeftMargin,
and region margins \the\topmargin/\the\MasterBottomMargin;^^J
footskip is \the\footskip, headsep is \the\headsep^^J
evensidemargin \the\evensidemargin, oddsidemargin \the\oddsidemargin}%
+ \global\@specialpagetrue
}
-
-\def\FOResetPageParts{
- \expandafter\ifx\csname This@LineWidth\endcsname\relax\else
- \global\linewidth\This@LineWidth\relax
- \fi
-}
-
% don't ask
\def\supppdf{supp-pdf}
\let\FOinputIfFileExists\InputIfFileExists
@@ -2234,5 +1720,5 @@
\g@addto@macro\Gin@extensions{,.gif}
\@namedef{Gin@rule@.eps}#1{{pdf}{.pdf}{`epstopdf #1}}
\@namedef{Gin@rule@.gif}#1{{png}{.png}{`giftopng #1}}
-\errorstopmode
+
\endinput
diff --git a/Master/texmf-dist/tex/xmltex/passivetex/fotex.xmt b/Master/texmf-dist/tex/xmltex/passivetex/fotex.xmt
index 8bdbe94be2c..4ddb49bd1eb 100644
--- a/Master/texmf-dist/tex/xmltex/passivetex/fotex.xmt
+++ b/Master/texmf-dist/tex/xmltex/passivetex/fotex.xmt
@@ -1,8 +1,8 @@
-% $Id: //depot/Master/texmf-dist/tex/xmltex/passivetex/fotex.xmt#1 $, $Date: 2004/02/09 $
+% $Id: //depot/Master/texmf/tex/xmltex/passivetex/fotex.xmt#90 $, $Date: 2002/06/25 $
%
-% PassiveTeX version 1.25
+% PassiveTeX version 1.17
%
-% Copyright 2003 Sebastian Rahtz/Oxford University
+% Copyright 2002 Sebastian Rahtz/Oxford University
% <sebastian.rahtz@oucs.ox.ac.uk>
%
% Permission is hereby granted, free of charge, to any person obtaining
@@ -19,34 +19,6 @@
% Includes fixes from Tomas Bures <ghort@pauline.vellum.cz>
% Yura Zotov <yznews@hotbox.ru>
% Anton V. Boyarshinov <boyarsh@ru.echo.fr>
-% Dirk Roorda <dirk.roorda@planet.nl>
-
-
-% MODIFICATIONS IN XMLTEX (Dirk)
-% allow an explicit inheritance of attributes
-
-\gdef\XML@attrib@x#1#2{
- \gdef\XML@tempb##1#1##2##3##4\relax\relax{
- \global\let\inheritexplicit\relax
- {\set@display@protect
- \expandafter\ifx\csname#2\endcsname\inherit
- \global\let\inheritexplicit\noexpand
- \fi}%
- \ifx\inheritexplicit\relax
- \def##2{#2}%
- \fi
- ##1##4\relax\relax}}
-
-% test whether an attribute was explicitly set on an element
-
-\gdef\explicitattribute#1{
- { \expandafter\def\csname#1-test\endcsname{\global\def\isexplicit{1}}
- \global\let\isexplicit\relax
- \def\XML@doattribute##1##2##3{\csname##2-test\endcsname}
- \the\XML@attribute@toks
- }
-}
-
\DeclareNamespace{fotex}{http://www.tug.org/fotex}
\DeclareNamespace{fo}{http://www.w3.org/1999/XSL/Format}
\def\string@autoauto{autoauto}
@@ -56,33 +28,31 @@
\XMLstring\file@urlprefix<>url(</>
\XMLstring\file@prefix<>file://</>
\XMLstring\file@shortprefix<>file:</>
-\XMLstring\prop@width<>proportional-column-width(1)</>
+\XMLstringX\prop@width<>proportional-column-width(1)</>
\XMLstringX\@staticafter<>xsl-after</>
\XMLstringX\@staticbefore<>xsl-before</>
\XMLstringX\@staticstart<>xsl-start</>
+\XMLstring\att@labelend<>label-end()</>
+\XMLstring\att@bodystart<>body-start()</>
\XMLstringX\att@NaN<>NaN</>
-\XMLstringX\att@after<>after</>
\XMLstringX\att@all<>all</>
\XMLstringX\att@always<>always</>
\XMLstringX\att@any<>any</>
\XMLstringX\att@auto<>auto</>
-\XMLstringX\att@autoeven<>auto-even</>
\XMLstringX\att@autoodd<>auto-odd</>
+\XMLstringX\att@autoeven<>auto-even</>
+\XMLstringX\att@endonodd<>end-on-odd</>
+\XMLstringX\att@endoneven<>end-on-even</>
\XMLstringX\att@baseline<>baseline</>
-\XMLstringX\att@before<>before</>
-\XMLstringX\att@black<>black</>
\XMLstringX\att@blank<>blank</>
+\XMLstringX\att@black<>black</>
\XMLstringX\att@bottom<>bottom</>
\XMLstringX\att@centered<>center</>
-\XMLstringX\att@endoneven<>end-on-even</>
-\XMLstringX\att@endonodd<>end-on-odd</>
-\XMLstringX\att@even<>even</>
-\XMLstringX\att@evenpage<>even-page</>
\XMLstringX\att@false<>false</>
-\XMLstringX\att@first<>first</>
\XMLstringX\att@first@starting@within@page<>first-starting-within-page</>
-\XMLstringX\att@french<>french</>
-\XMLstringX\att@last@starting@within@page<>last-starting-within-page</>
+\XMLstringX\att@first<>first</>
+\XMLstringX\att@even<>even</>
+\XMLstringX\att@odd<>odd</>
\XMLstringX\att@lr@tb<>lr-tb</>
\XMLstringX\att@maximum<>maximum</>
\XMLstringX\att@maximumuniform<>maximum-uniform</>
@@ -92,7 +62,6 @@
\XMLstringX\att@none<>none</>
\XMLstringX\att@normal<>normal</>
\XMLstringX\att@nowrap<>no-wrap</>
-\XMLstringX\att@odd<>odd</>
\XMLstringX\att@oddpage<>odd-page</>
\XMLstringX\att@page<>page</>
\XMLstringX\att@page@sequence<>page-sequence</>
@@ -101,28 +70,25 @@
\XMLstringX\att@relative<>relative</>
\XMLstringX\att@repeat<>repeat</>
\XMLstringX\att@replace<>replace</>
-\XMLstringX\att@scaletofit<>scale-to-fit</>
\XMLstringX\att@scroll<>scroll</>
+\XMLstringX\att@scaletofit<>scale-to-fit</>
\XMLstringX\att@show<>show</>
\XMLstringX\att@smallcaps<>small-caps</>
\XMLstringX\att@solid<>solid</>
\XMLstringX\att@static<>static</>
\XMLstringX\att@sub<>sub</>
\XMLstringX\att@super<>super</>
-\XMLstringX\att@thick<>thick</>
-\XMLstringX\att@thin<>thin</>
-\XMLstringX\att@tiny<>true</>
\XMLstringX\att@top<>top</>
\XMLstringX\att@transparent<>transparent</>
\XMLstringX\att@true<>true</>
+\XMLstringX\att@tiny<>true</>
+\XMLstringX\att@thin<>thin</>
+\XMLstringX\att@thick<>thick</>
\XMLstringX\att@uniform<>uniform</>
\XMLstringX\att@use@font@metrics<>use-font-metrics</>
\XMLstringX\att@visible<>visible</>
\XMLstringX\att@xsl@any<>xsl-any</>
-\XMLstringX\att@xsl@footnote@separator<>xsl-footnote-separator</>
\XMLstringX\att@yes<>yes</>
-\XMLstring\att@bodystart<>body-start()</>
-\XMLstring\att@labelend<>label-end()</>
\XMLstringX\leader@pattern@space<>space</>
\XMLstringX\leader@pattern@rule<>rule</>
\XMLstringX\leader@pattern@dots<>dots</>
@@ -383,17 +349,15 @@
%<length> | <percentage> | inherit
\XMLnamespaceattributeX{fo}{last-line-end-indent}{\FOlastlineendindent}{\inherit}
%none | reference-area | page | inherit
- \XMLnamespaceattribute{fo}{leader-length.maximum}{\FOleaderlengthmaximum}{\textwidth}
-% leader-length.minimum=0pt, .optimum=12.0pt, .maximum=100percent
- \XMLnamespaceattributeX{fo}{leader-alignment}{\FOleaderalignment}{\inherit}
- \XMLnamespaceattributeX{fo}{leader-length}{\FOleaderlength}{\inherit}
+\XMLnamespaceattributeX{fo}{leader-alignment}{\FOleaderalignment}{\inherit}
+%<length-range> | inherit
+\XMLnamespaceattributeX{fo}{leader-length}{\FOleaderlength}{\inherit}
%space | rule | dots | use-content | inherit
- \XMLnamespaceattributeX{fo}{leader-pattern}{\FOleaderpattern}{\inherit}
+\XMLnamespaceattributeX{fo}{leader-pattern}{\FOleaderpattern}{\inherit}
%use-font-metrics | <length> | inherit
- \XMLnamespaceattributeX{fo}{leader-pattern-width}{\FOleaderpatternwidth}{\inherit}
+\XMLnamespaceattributeX{fo}{leader-pattern-width}{\FOleaderpatternwidth}{\inherit}
%<length> | <percentage> | auto | inherit
- \XMLnamespaceattribute{fo}{leader-length.optimum}{\FOleaderlengthoptimum}{0pt}
- \XMLnamespaceattributeX{fo}{leader-length.minimum}{\FOleaderlengthminimum}{\z@}\XMLnamespaceattributeX{fo}{left}{\FOleft}{auto}
+\XMLnamespaceattributeX{fo}{left}{\FOleft}{auto}
%normal | <length> | <space> | inherit
\XMLnamespaceattributeX{fo}{letter-spacing}{\FOletterspacing}{\inherit}
%auto | alphabetic | traditional
@@ -638,7 +602,6 @@
% with namespaces.
\XMLnamespaceattributeX{fo}{fotex:placement}{\FOkplacement}{}
\XMLname{fo:inline-container}{\FOInlineContainer}
-\XMLname{fo:footnote-body}{\FOFootnoteBody}
\XMLname{fo:list-item-label}{\FOListItemLabel}
\XMLname{fo:list-item-body}{\FOListItemBody}
\XMLname{fo:table-cell}{\FOTableCell}
@@ -661,7 +624,7 @@
\gdef\FOborderseparation{\z@}
\gdef\FOborderspacing{\z@}
\gdef\FOcaptionside{before}
- \gdef\FOcolor{black}
+ \gdef\FOcolor{}
\gdef\FOcountry{none}
\gdef\FOdirection{ltr}
\gdef\FOdisplayalign{auto}
@@ -688,7 +651,7 @@
\gdef\FOlanguage{none}
\gdef\FOlastlineendindent{\z@}
\gdef\FOleaderalignment{none}
- \gdef\FOleaderlength{}
+ \gdef\FOleaderlength{\z@}
\gdef\FOleaderpattern{space}
\gdef\FOleaderpatternwidth{}
\gdef\FOletterspacing{normal}
@@ -739,13 +702,12 @@
\gdef\FOkplacement{}
\XMLelement{fo:root}
- {\XMLnamespaceattributeX{fo}{fotex:spacing-style}{\FoTeXSpacingStyle}{normal}}
+ {}
{\documentclass{article}
\usepackage{fotex}
\begin{document}
\pagestyle{empty}
\FOSetHyphenation
- \FoTeXSetSpacingStyle
%\ignorewhitespace
}
{\end{document}}
@@ -797,60 +759,53 @@
\XMLelement{fo:block}
{\SpaceAttributes}
{%
- \ifx\FOspan\att@all
- \ifnum\NColumns>1\relax
- \interendmulticols
- \fi
- \fi
- \ifnum\FOwidows>1\relax\widowpenalty10000\relax\else\widowpenalty0\relax\fi
- \ifnum\FOorphans>1\relax\clubpenalty10000\relax\else\clubpenalty0\relax\fi
\FOBlockGrabfalse
\FOexpandattributes
\FOSetHyphenation
- \ifFOinOutput
+ %\edef\SavedNColumns{\NColumns}
+ \ifx\XML@parent\FOListItemLabel
+ \def\w@t{\FOListBlock}%
+ \def\@whattodonext{\FOEndBlock}%
+ \else
+ \ifFOinOutput
\ifx\FObackgroundcolor\att@transparent
\ifx\FOborderstyle\att@solid
- \FOBlockGrabtrue
+ \FOBlockGrabtrue
\fi
\else
- \FOBlockGrabtrue
+ \FOBlockGrabtrue
\fi
\def\w@t{\FOOutputBlock}%
\def\@whattodonext{\FOEndOutputBlock}%
- \DEBUG{Start of Output Block, \expandafter\meaning\w@t, \expandafter\meaning\@whattodonext}%
- \else
- \ifx\XML@parent\FOListItemLabel
- \def\w@t{\FOListBlock}%
- \def\@whattodonext{\FOEndBlock}%
- \else
+ \else
% we care if a block is inside a table cell
- \ifnum\FOinTable>1\relax
- \FOinTable1\relax
- \def\w@t{\FOBoxedBlock{\CurrentCellWidth}}%
- \def\@whattodonext{\FOEndBoxedBlock}
- \else
+ \ifnum\FOinTable>\z@
+ \def\w@t{\FOBoxedBlock{\CurrentCellWidth}}%
+ \def\@whattodonext{\FOEndBoxedBlock}
+ \else
% we care if a block is a second or subsequent child of a list body
- \ifx\XML@parent\FOListItemBody
- \global\advance\FOListBlocks by 1\relax%
- \ifnum\FOListBlocks<2\relax\else\FOListInnerPartrue\fi
- \else
+ \ifx\XML@parent\FOListItemBody
+ \global\advance\FOListBlocks by 1%
+ \ifnum\FOListBlocks=1\relax\else\FOListInnerPartrue\fi
+ \else
% but also if its nested within a list body block
- \ifFOListBody
- \FOListInnerPartrue
- \fi
- \fi
- \ifx\FObackgroundcolor\att@transparent
- \ifx\FOborderstyle\att@solid
- \FOBlockGrabtrue
- \fi
- \else
- \FOBlockGrabtrue
- \fi
- \def\@whattodonext{\FOEndBlock}
- \def\w@t{\FONormalBlock}%
+ \ifFOListBody
+ \FOListInnerPartrue
+ \fi
\fi
- \fi
+ \ifx\FObackgroundcolor\att@transparent
+ \ifx\FOborderstyle\att@solid
+ \FOBlockGrabtrue
+ \fi
+ \else
+ \FOBlockGrabtrue
+ \fi
+ \def\@whattodonext{\FOEndBlock}
+ \def\w@t{\FONormalBlock}%
+ \fi
+ \fi
\fi
+%\typeout{Block \the\inputlineno, \meaning\w@t, \meaning\@whattodonext}%
\w@t
\ifx\FOkeeptogether\att@always\samepage\fi
\ifx\FOkeeptogetherColumn\att@always\samepage\fi
@@ -861,11 +816,6 @@
\ifx\FOkeeptogetherColumn\att@always\samepage\fi
\ifx\FOkeeptogetherPage\att@always\samepage\fi
\@whattodonext
- \ifx\FOspan\att@all
- \ifnum\NColumns>1\relax
- \interbeginmulticols{\NColumns}%
- \fi
- \fi
}
\XMLelement{fo:character}
@@ -880,9 +830,9 @@
\XMLelement{fo:external-graphic}
{
%auto | <length> | <percentage> | inherit
-\XMLattributeX{content-height}{\FOcontentheight}{auto}
+\XMLattribute{content-height}{\FOcontentheight}{auto}
%auto | <length> | <percentage> | inherit
-\XMLattributeX{content-width}{\FOcontentwidth}{auto}
+\XMLattribute{content-width}{\FOcontentwidth}{auto}
}
{
{\utfeight@protect@chars\expandafter\FOfiletest\FOsrc\@empty\@empty\@empty\@empty\@empty\@empty\@empty\@}%
@@ -902,12 +852,12 @@
\fi
\fi
\ifx\FOcontentwidth\att@scaletofit
- \setkeys{Gin}{width=\hsize}%
+ \setkeys{Gin}{width=\linewidth}%
\else
\ifx\FOcontentwidth\att@auto\else\FOSetGWidth\fi
\fi
\ifx\FOcontentheight\att@scaletofit
- \setkeys{Gin}{height=\vsize}%
+ \setkeys{Gin}{height=\textheight}%
\else
\ifx\FOcontentheight\att@auto\else\FOSetGHeight\fi
\fi
@@ -940,66 +890,131 @@
\XMLelement{fo:flow}
{}
- {\global\SimplePMRefs1\relax
- \FOSetHyphenation
- \ifnum\PrevNColumns>1\relax
- \else
- \clearpage
- \fi
+ {\FOSetHyphenation
+ \clearpage
\DEBUG{New page, \the\c@page, \PageNumber}%
\ifx\PageNumber\att@auto
\else
- \ifx\PageNumber\att@autoeven
- \ifodd\c@page
- \BlankPage
- \fi
- \else
- \ifx\PageNumber\att@autoodd
- \ifodd\c@page
- \else
- \BlankPage
- \fi
- \else
- \setcounter{page}{\PageNumber}%
- \fi
- \fi
- \fi
+ \ifx\PageNumber\att@autoeven
+ \ifodd\c@page\hbox{}\newpage\fi
+ \else
+ \ifx\PageNumber\att@autoodd
+ \ifodd\c@page\else\hbox{}\newpage\fi
+ \else
+ \setcounter{page}{\PageNumber}%
+ \fi
+ \fi
+ \fi
\ifx\@empty\pendingID\else
\@bsphack
\protected@write\@mainaux{}%
- {\string\newlabel{\pendingID}{{}{\expandafter\FOgeneratePage\FOformat\@null}{}{}{}}}%
+ {\string\newlabel{\pendingID}{{}{\expandafter\FOgeneratePage\FOformat\@null}{}{\pendingID}{}}}%
\@esphack
\hyper@@anchor{\pendingID}{\relax}%
\global\let\pendingID\@empty
\fi
- \DEBUG{^^JStart page sequence, using layout \CurrentPageMaster, at page \the\c@page}%
+ \DEBUG{^^JStart page sequence, using layout \CurrentPageMaster, at page \the\c@page}
- \setaccordingtomaster
- \xdef\PrevNColumns{\NColumns}%
- \ForcePageSetuptrue
- \ifnum\NColumns>1\relax
- \nobeginmulticols{\NColumns}%
- \fi
+ \@ifundefined{Atomic:\CurrentPageMaster}
+ {
+ \@ifundefined{First:\CurrentPageMaster}
+ {
+ \ifx\FOinitialpagenumber\att@auto
+ \ifodd\c@page
+ \DEBUG{Master \CurrentPageMaster: no first page, use odd page}
+ \edef\PFirst{\csname Odd:\CurrentPageMaster\endcsname}
+ \else
+ \DEBUG{Master \CurrentPageMaster: no first page, use even page}
+ \@ifundefined{Even:\CurrentPageMaster}
+ {\edef\PFirst{\csname Odd:\CurrentPageMaster\endcsname}}
+ {\edef\PFirst{\csname Even:\CurrentPageMaster\endcsname}}
+ \fi
+ \else
+ \ifx\FOinitialpagenumber\att@autoeven
+ \@ifundefined{Even:\CurrentPageMaster}
+ {\edef\PFirst{\csname Odd:\CurrentPageMaster\endcsname}}
+ {\edef\PFirst{\csname Even:\CurrentPageMaster\endcsname}}
+ \else
+ \ifx\FOinitialpagenumber\att@autoodd
+ \edef\PFirst{\csname Odd:\CurrentPageMaster\endcsname}
+ \else
+ \ifodd\FOinitialpagenumber
+ \edef\PFirst{\csname Odd:\CurrentPageMaster\endcsname}
+ \else
+ \@ifundefined{Even:\CurrentPageMaster}
+ {\edef\PFirst{\csname Odd:\CurrentPageMaster\endcsname}}
+ {\edef\PFirst{\csname Even:\CurrentPageMaster\endcsname}}
+ \fi
+ \fi
+ \fi
+ \fi
+ }
+ {
+ \edef\PFirst{\csname First:\CurrentPageMaster\endcsname}
+ }
+ \@ifundefined{Blank:\CurrentPageMaster}
+ {\edef\PBlank{\csname Odd:\CurrentPageMaster\endcsname}}
+ {\edef\PBlank{\csname Blank:\CurrentPageMaster\endcsname}}
+ \@ifundefined{Even:\CurrentPageMaster}
+ {\edef\PEven{\csname Odd:\CurrentPageMaster\endcsname}}
+ {\edef\PEven{\csname Even:\CurrentPageMaster\endcsname}}
+ \edef\POdd{\csname Odd:\CurrentPageMaster\endcsname}
+ }
+ {
+ \let\PFirst\CurrentPageMaster
+ \let\PBlank\CurrentPageMaster
+ \let\POdd\CurrentPageMaster
+ \let\PEven\CurrentPageMaster
+ }
+ \DEBUG{ first page master is [\PFirst]}
+ \DEBUG{ odd page master is [\POdd]}
+ \DEBUG{ even page master is [\PEven]}
+ \DEBUG{ blank page master is [\PBlank]}
+ \expandafter\Pass\csname\POdd:xsl-region-body\endcsname\\
+ \csname Atomic:\POdd\endcsname
+ \oddsidemargin\MasterLeftMargin
+ \evensidemargin\MasterLeftMargin
+ \advance\evensidemargin by \SpecialOffset
+ \advance\oddsidemargin by \SpecialOffset
+ \@ifundefined{Atomic:\PEven}{\DEBUG{no master for Atomic:\PEven}}
+ {\csname Atomic:\PEven\endcsname
+ \evensidemargin\MasterLeftMargin
+ \advance\evensidemargin by \SpecialOffset
+ }
+ \edef\EvenHeadExtent{\csname\PEven:before-extent\endcsname}
+ \edef\EvenHead{Static:\csname\PEven:before\endcsname}
+ \edef\EvenTailExtent{\csname\PEven:after-extent\endcsname}
+ \edef\EvenTail{Static:\csname\PEven:after\endcsname}
+ \edef\FirstHeadExtent{\csname\PFirst:before-extent\endcsname}
+ \edef\FirstHead{Static:\csname\PFirst:before\endcsname}
+ \edef\FirstTailExtent{\csname\PFirst:after-extent\endcsname}
+ \edef\FirstTail{Static:\csname\PFirst:after\endcsname}
+ \edef\OddHeadExtent{\csname\POdd:before-extent\endcsname}
+ \edef\OddHead{Static:\csname\POdd:before\endcsname}
+ \edef\OddTailExtent{\csname\POdd:after-extent\endcsname}
+ \edef\OddTail{Static:\csname\POdd:after\endcsname}
+ \edef\BlankHeadExtent{\csname\PBlank:before-extent\endcsname}
+ \edef\BlankHead{Static:\csname\PBlank:before\endcsname}
+ \edef\BlankTailExtent{\csname\PBlank:after-extent\endcsname}
+ \edef\BlankTail{Static:\csname\PBlank:after\endcsname}
+ \FOSetPage
+ \ifnum\NColumns>1\begin{multicols}{\NColumns}\fi
% \ifnum\NColumns>1\MulticolPendingtrue
% \begin{multicols}{\NColumns}\fi
}
{
- \ForcePageSetupfalse
- \ifnum\NColumns>1\relax
- \noendmulticols
- \else
- \clearpage
- \fi
+ \ifnum\NColumns>1\end{multicols}\fi
+ \clearpage
\ifx\ForcePage\att@auto
\else
% remember that we'll do a \clearpage next time anyway.
% so leave here on wrong sort of page
\ifx\ForcePage\att@endoneven
- \ifodd\c@page\else\BlankPage\fi
+ \ifodd\c@page\else\BlankPage\newpage\fi
\else
\ifx\ForcePage\att@endonodd
- \ifodd\c@page\BlankPage\fi
+ \ifodd\c@page\BlankPage\newpage\fi
\fi
\fi
\fi
@@ -1014,7 +1029,7 @@
\XMLelement{fo:footnote}
{}
{\xmlgrab}
- {\FOSaveFontSize\xmltextwochildren\FOplainfootmark\FOfoottext#1}
+ {\xmltextwochildren\FOplainfootmark\FOplainfoottext#1}
\XMLelement{fo:page-number-citation}
{\XMLattributeX{ref-id}{\FOrefid}{}}
@@ -1022,15 +1037,14 @@
{\fopagecitation}
\XMLelement{fotex:sort}
- {\XMLattributeX{range-char}{\FOrangechar}{\textendash}}
+ {}
{\let\fopagecitation\fosortpagecitation
\global\sorttoks{}}
{\global\sortcount-2\let\@elt\focompress@elt
\let\fosep\@empty
\let\foheld\relax
\the\sorttoks
- \ifx\foheld\relax\else\FOrangechar\fi\foheld
- }
+ \foheld}
\XMLelement{fo:wrapper}
{}
@@ -1042,47 +1056,28 @@
{
\leavevmode
\ifx\FOleaderpattern\leader@pattern@rule
- \ifx\FOrulestyle\rule@style@dashed
- \def\w@t{\cleaders\hbox{$\m@th \mkern1.5mu-\mkern1.5mu$}\hfil}%
- \else
- \ifx\FOrulestyle\rule@style@dotted
- \def\w@t{\cleaders\hbox{$\m@th \mkern1.5mu.\mkern1.5mu$}\hfil}%
- \else
- \ifdim\FOrulethickness>\z@
- \def\w@t{\leaders\hrule height \FOrulethickness\hfill}%
- \else
- \def\w@t{\hfill}%
- \fi
- \fi
- \fi
-\else
- \ifx\FOleaderpattern\leader@pattern@dots
- \def\w@t{\cleaders\hbox{$\m@th \mkern1.5mu.\mkern1.5mu$}\hfill}%
- \else % space
- \def\w@t{\hfill}%
- \fi
-\fi
-\ifx\@empty\FOleaderlength
- \PercentToDimen{\FOleaderlengthoptimum}%
- \edef\leaderopt{\the\@tempdima}%
- \PercentToDimen{\FOleaderlengthminimum}%
- \edef\leadermin{\the\@tempdima}%
- \PercentToDimen{\FOleaderlengthmaximum}%
- \edef\leadermax{\the\@tempdima}%
- \@tempdima\leaderopt\relax
- \advance\@tempdima-\leadermin\relax
- \@tempdimb\leadermax\relax
- \advance\@tempdimb-\leaderopt\relax
- \LeaderLength\leaderopt plus \@tempdimb minus \@tempdima\relax
-\else
- \PercentToDimen{\FOleaderlength}%
- \LeaderLength\@tempdima\relax
-\fi
-\ifdim\LeaderLength=\z@
- \w@t
+ \ifx\FOrulestyle\rule@style@dashed
+ \def\w@t{\cleaders\hbox{$\m@th \mkern1.5mu-\mkern1.5mu$}\hfil}%
+ \else
+ \ifx\FOrulestyle\rule@style@dotted
+ \def\w@t{\cleaders\hbox{$\m@th \mkern1.5mu.\mkern1.5mu$}\hfil}%
+ \else
+ \ifdim\FOrulethickness>\z@
+ \def\w@t{\leaders\hrule height \FOrulethickness\hfill}%
+ \else
+ \def\w@t{\hfill}%
+ \fi
+ \fi
+ \fi
\else
- \hbox to \LeaderLength{\w@t}%
+ \ifx\FOleaderpattern\leader@pattern@dots
+ \def\w@t{\cleaders\hbox{$\m@th \mkern1.5mu.\mkern1.5mu$}\hfill}%
+ \else % space
+ \def\w@t{\hfill}%
+ \fi
\fi
+\PercentToDimen{\FOleaderlength}%
+\ifdim\@tempdima=\z@\w@t\else\hbox to \@tempdima{\w@t}\fi
}
{}
@@ -1129,29 +1124,27 @@
\XMLelement{fo:list-block}
{\SpaceAttributes}
- {\ifx\FOstartindent\att@bodystart
+ {
+ \ifx\FOstartindent\att@bodystart
\let\FOstartindent\z@
\fi
\ifx\FOendindent\att@labelend
\let\FOendindent\z@
\fi
- %\FOSetFont{normal}%
+ \FOSetFont{normal}%
\advance\FOinList by 1\relax
- %\ifnum\FOinList>1\relax\leavevmode\fi
- \edef\This@LineWidth{\the\linewidth}%
+ \ifnum\FOinList>1\relax\leavevmode\fi
\begin{list}{}{%
\itemindent=\FOstartindent
- \PercentToDimen{\FOprovisionaldistancebetweenstarts}%
- \leftmargin=\@tempdima\relax
+ \leftmargin=\FOprovisionaldistancebetweenstarts
\advance\leftmargin by \FOmarginleft
\rightmargin=\FOmarginright
- \labelwidth=\@tempdima\relax
+ \labelwidth=\FOprovisionaldistancebetweenstarts
\advance\labelwidth by -\FOprovisionallabelseparation
\expandafter\csname List\FOtextalign\endcsname
\labelsep\FOprovisionallabelseparation
\itemsep\z@
\parsep\z@
- \partopsep\z@
\topsep\z@
\parskip\z@
\ifx\@empty\FOspacebefore
@@ -1163,13 +1156,11 @@
\else
\topsep\FOspacebefore
\fi
- }%
- \edef\This@LineWidth{\the\linewidth}%
- }
- {\end{list}%
- \global\linewidth\This@LineWidth\relax
- \advance\FOinList by -1\relax
-% \par
+ }
+ }
+ {\end{list}
+ \advance\FOinList by -1
+ \par
}
\XMLelement{fo:list-item-body}
@@ -1177,9 +1168,8 @@
{\ifx\FOstartindent\att@bodystart
\let\FOstartindent\z@
\fi
- \edef\This@FOListBlocks{\the\FOListBlocks}%
- \FOListBodytrue\global\FOListBlocks0}
- {\global\FOListBlocks\This@FOListBlocks\relax}
+ \FOListBodytrue\FOListBlocks0}
+ {}
\XMLelement{fo:list-item-label}
{}
@@ -1194,7 +1184,8 @@
\XMLelement{fo:list-item}
{\SpaceAttributes}
- {\FOSetHyphenation
+ {
+ \FOSetHyphenation
\ifx\@empty\FOspacebefore
\@tempdima\FOspacebeforeoptimum
\advance\@tempdima by -\FOspacebeforeminimum
@@ -1202,7 +1193,7 @@
\advance\@tempdimb by \FOspacebeforemaximum
\vskip\FOspacebeforeoptimum plus \@tempdimb minus \@tempdima
\else
- \ifdim\FOspacebefore=0pt\relax\else\vskip\FOspacebefore\fi
+ \vskip\FOspacebefore
\fi
\FOlabel}
{}
@@ -1325,7 +1316,6 @@
\end{sidewaystable}
\fi
\fi
- \NoTableFinish
}
\XMLelement{fo:table-body}
@@ -1333,7 +1323,6 @@
{
\FOFirstCelltrue
\FOinTable1
- \saveinterlineskip
\expandafter\NoTableStart{\TableHeader}%
}
{
@@ -1357,14 +1346,11 @@
{\xmlgrab}
{\FOlabel
\FOexpandattributes
- \FOinTable2
\NoTableCell{#1}}
\XMLelement{fo:table-column}
- {
- \XMLattributeX{text-align}{\FOtextalign}{\inherit}
- }
+ {}
{
\@tempcnta0
\loop\ifnum\FOnumbercolumnsrepeated>\@tempcnta
@@ -1387,20 +1373,14 @@
\XMLelement{fo:table}
{}
{
- \FOexpandattributes
\global\ColSpecs={}\NCols0
\TableWidth\linewidth
\advance\TableWidth by -\FOmarginleft
\advance\TableWidth by -\FOmarginright
\gdef\TableHeader{}
\NoTableSetup
- \vbox\bgroup\FOBorderTop
-% \vskip2\lineskip
-
- }
- {\FOBorderBottom\egroup
- \NoTableFinish
}
+ {}
\XMLelement{fo:inline}
{}
@@ -1412,7 +1392,9 @@
\fi
\FOlabel
\ifx\FOborderstyle\att@solid
- \interpretwidth
+ \ifx\FOborderwidth\att@thin\def\FOborderwidth{0.4pt}\fi
+ \ifx\FOborderwidth\att@medium\def\FOborderwidth{0.8pt}\fi
+ \ifx\FOborderwidth\att@thick\def\FOborderwidth{1.2pt}\fi
\FOboxedsequence{#1}%
\else
\FO@inlinesequence{#1}%
@@ -1457,13 +1439,13 @@
{\xmlgrab}
{\begingroup
\utfeight@protect@chars
-\ifx\FOretrieveposition\att@first@starting@within@page
- \xdef\FOthismark{\firstmark}%
+\ifx\FOretrieveposition\FirstOnPage
+ \xdef\FOthismark{\topmark}%
\else
- \ifx\FOretrieveposition\att@last@starting@within@page
+ \ifx\FOretrieveposition\LastOnPage
\xdef\FOthismark{\botmark}%
\else
- \xdef\FOthismark{\firstmark}%
+ \xdef\FOthismark{\topmark}%
\fi
\fi
\xdef\FOthisretrieveclassname{\FOretrieveclassname}
@@ -1518,23 +1500,21 @@
\XMLelement{fo:page-sequence-master}
{}
- {\global\SimplePMRefs0\relax
+ {
\DEBUG{Page sequence master: \FOmastername}
\let\Granpa\FOmastername
}
- {\global\SimplePMRefs0\relax}
+ {}
\XMLelement{fo:single-page-master-reference}
{}
- {\global\advance\SimplePMRefs1\relax
- \DEBUG{ (single page \the\SimplePMRefs\space in \Granpa: use master \FOmasterreference)}
+ {\DEBUG{ (single page in \Granpa: use master \FOmasterreference)}
\begingroup
\utfeight@protect@chars
- \expandafter\xdef\csname Lead:\the\SimplePMRefs:\Granpa\endcsname{\FOmasterreference}
-% \expandafter\xdef\csname First:\Granpa\endcsname{\FOmasterreference}
-% \expandafter\xdef\csname Blank:\Granpa\endcsname{\FOmasterreference}
-% \expandafter\xdef\csname Odd:\Granpa\endcsname{\FOmasterreference}
-% \expandafter\xdef\csname Even:\Granpa\endcsname{\FOmasterreference}
+ \expandafter\xdef\csname First:\Granpa\endcsname{\FOmasterreference}
+ \expandafter\xdef\csname Blank:\Granpa\endcsname{\FOmasterreference}
+ \expandafter\xdef\csname Odd:\Granpa\endcsname{\FOmasterreference}
+ \expandafter\xdef\csname Even:\Granpa\endcsname{\FOmasterreference}
\endgroup
}
{}
@@ -1544,10 +1524,10 @@
{\DEBUG{ (multiple pages in \Granpa: use master \FOmasterreference)}
\begingroup
\utfeight@protect@chars
-% \expandafter\xdef\csname First:\Granpa\endcsname{\FOmasterreference}
-% \expandafter\xdef\csname Blank:\Granpa\endcsname{\FOmasterreference}
- \expandafter\xdef\csname Odd:\Granpa\endcsname{\FOmasterreference}
-% \expandafter\xdef\csname Even:\Granpa\endcsname{\FOmasterreference}
+ \expandafter\xdef\csname Blank:\Granpa\endcsname{\FOmasterreference}
+ \expandafter\xdef\csname First:\Granpa\endcsname{\FOmasterreference}
+ \expandafter\xdef\csname Odd:\Granpa\endcsname{\FOmasterreference}
+ \expandafter\xdef\csname Even:\Granpa\endcsname{\FOmasterreference}
\endgroup
}
{}
@@ -1623,18 +1603,18 @@
\expandafter\xdef\csname\FOMaster:after-extent\endcsname{\FOextent}
}
{
-% \ifdim\InnerTopMargin>\FOmargintop\def\FOmargintop{\InnerTopMargin}\fi
-% \ifdim\InnerBottomMargin>\FOmarginbottom\def\FOmarginbottom{\InnerBottomMargin}\fi
-% \ifdim\InnerRightMargin>\FOmarginright\def\FOmarginright{\InnerRightMargin}\fi
-% \ifdim\InnerLeftMargin>\FOmarginleft\def\FOmarginleft{\InnerLeftMargin}\fi
+ \ifdim\InnerTopMargin>\FOmargintop\def\FOmargintop{\InnerTopMargin}\fi
+ \ifdim\InnerBottomMargin>\FOmarginbottom\def\FOmarginbottom{\InnerBottomMargin}\fi
+ \ifdim\InnerRightMargin>\FOmarginright\def\FOmarginright{\InnerRightMargin}\fi
+ \ifdim\InnerLeftMargin>\FOmarginleft\def\FOmarginleft{\InnerLeftMargin}\fi
\DEBUG{Define page master \FOmargin, \FOMaster, \FOmarginright/\FOmarginleft}
\begingroup
\utfeight@protect@chars
\expandafter\xdef\csname Atomic:\FOMaster\endcsname{
- \MasterTopMargin\FOmargintop\advance\MasterTopMargin\InnerTopMargin\relax
- \MasterBottomMargin\FOmarginbottom\advance\MasterBottomMargin\InnerBottomMargin\relax
- \MasterRightMargin\FOmarginright\advance\MasterRightMargin\InnerRightMargin\relax
- \MasterLeftMargin\FOmarginleft\advance\MasterLeftMargin\InnerLeftMargin\relax
+ \MasterTopMargin\FOmargintop
+ \MasterBottomMargin\FOmarginbottom
+ \MasterRightMargin\FOmarginright
+ \MasterLeftMargin\FOmarginleft
\paperwidth\FOpagewidth
\paperheight\FOpageheight
}
diff --git a/Master/texmf-dist/tex/xmltex/passivetex/mlnames.sty b/Master/texmf-dist/tex/xmltex/passivetex/mlnames.sty
index 522f7a6296e..72fc5ade4c6 100644
--- a/Master/texmf-dist/tex/xmltex/passivetex/mlnames.sty
+++ b/Master/texmf-dist/tex/xmltex/passivetex/mlnames.sty
@@ -1,10 +1,10 @@
-%% File: $Id: //depot/Master/texmf-dist/tex/xmltex/passivetex/mlnames.sty#1 $ $Date: 2004/02/09 $ Copyright 1999 Sebastian Rahtz
+%% File: $Id: //depot/Master/texmf/tex/xmltex/passivetex/mlnames.sty#20 $ $Date: 2002/06/25 $ Copyright 1999 Sebastian Rahtz
%%
%% This package may be distributed under the terms of the LaTeX Project Public
%% License, as described in lppl.txt in the base LaTeX distribution.
%% Either version 1.0 or, at your option, any later version.
%%
-\ProvidesPackage{mlnames}[2002/07/31, some XSL and Unicode support material, Sebastian Rahtz]
+\ProvidesPackage{mlnames}[2001/01/10, some XSL and Unicode support material, Sebastian Rahtz]
%
\DeclareFontFamily{T1}{pzd}{}
\DeclareFontShape{T1}{pzd}{m}{n}{<->pzdr}{}
@@ -137,7 +137,7 @@
\def\Weight@medium{}
\def\Weight@normal{}
\def\Weight@semibold{sb}
-\def\Weight@bold{b}
+\def\Weight@bold{bx}
\def\Weight@extrabold{eb}
\def\Weight@ultrabold{ub}
\def\Weight@false{}
@@ -252,8 +252,6 @@
\def\L@SH{\selectlanguage{serbocroat}}
\def\L@SI{\selectlanguage{slovene}}
\def\L@SK{\selectlanguage{slovak}}
-\expandafter\def\csname L@en_GB\endcsname{\selectlanguage{ukenglish}}
-\expandafter\def\csname L@en_US\endcsname{\selectlanguage{english}}
\def\L@US{\selectlanguage{english}}
\def\L@none{\selectlanguage{english}}
\def\L@br{\selectlanguage{portuguese}}
@@ -353,16 +351,9 @@
\let\Q@justify\Q@justified
\let\startQ@\startQ@justified
\let\endQ@\endQ@justified
-
\def\Q@end{% raggedleft, I hope
-% \let\newline\@centercr
-% \leftskip\StartIndent plus 1fill%
-% \parfillskip\z@skip
-%
\let\newline\@centercr
- \leftskip\StartIndent plus 1fill %
- \rightskip\EndIndent
- \@rightskip\rightskip
+ \leftskip\StartIndent plus 1fil%
\parfillskip\z@skip
}
\def\Q@centered{%
@@ -374,9 +365,9 @@
}
\def\Q@center{%
\let\newline\@centercr
- \rightskip-\StartIndent plus 1fill%
+ \rightskip-\StartIndent plus 1fil%
\@rightskip\rightskip
- \leftskip-\EndIndent plus 1fill%
+ \leftskip-\EndIndent plus 1fil%
\parfillskip\z@skip
}
\let\Q@left\Q@start
diff --git a/Master/texmf-dist/tex/xmltex/passivetex/nomulticol.sty b/Master/texmf-dist/tex/xmltex/passivetex/nomulticol.sty
deleted file mode 100644
index be1105f0fab..00000000000
--- a/Master/texmf-dist/tex/xmltex/passivetex/nomulticol.sty
+++ /dev/null
@@ -1,1065 +0,0 @@
-%%
-%% This is file `nomulticol.sty',
-%% a tweak in package multicol.sty [2000/07/10 v1.5z multicolumn formatting (FMi)]
-%% Tweaked by Dirk Roorda 2003/01/09
-%%
-%% purpose: to have the \begin{multicols} \end{multicols} functionality without
-%% putting the material inside a group
-%%
-%% reason: in PassiveTeX a fo:flow is embedded in a multicols environment.
-%% But the fo:block span="all" must be able to interrupt this.
-%% However, sayin \end{multicols} just before and \begin{multicols}{N} just after
-%% does not work, because it makes the attributes, set between the start of the flow
-%% and the beginning of the block, invisible.
-%% That's why a grouping-transparent multicol setup is needed.
-%%
-%% method:
-%% providing macros \nobeginmulticols \noendmulticols that do essentially the same
-%% but do not create a group.
-%% I just removed the crucial \begingroup and \endgroup from \mult@@cols and \endmulticols.
-%% Instead of relying on the TeX group restore mechanism, I have added macros
-%% \save@mult@settings and \restore@mult@settings to mimick the grouping as far
-%% as the settings for the multicol package are concerned.
-
-%%
-%% This is file `multicol.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% multicol.dtx (with options: `package,badness,check,marktrace,nobalance,colbreak')
-%%
-%% This is a generated file.
-%%
-%% Copyright 1993 1994 1995 1996 1997 1998 1999 2000
-%% The LaTeX3 Project and any individual authors listed elsewhere
-%% in this file.
-%%
-%% This file was generated from file(s) of the Standard LaTeX `Tools Bundle'.
-%% --------------------------------------------------------------------------
-%%
-%% It may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either version 1.2
-%% 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.2 or later is part of all distributions of LaTeX
-%% version 1999/12/01 or later.
-%%
-%% This file may only be distributed together with a copy of the LaTeX
-%% `Tools Bundle'. You may however distribute the LaTeX `Tools Bundle'
-%% without such generated files.
-%%
-%% The list of all files belonging to the LaTeX `Tools Bundle' is
-%% given in the file `manifest.txt'.
-%%
-%% Package `multicol' to use with LaTeX2e
-%% Copyright 1989-2000 Frank Mittelbach
-%%
-%% In addition to the terms of LPPL any distributed version
-%% (unchanged or modified) of multicol has to keep the statement
-%% about the moral obligation for using multicol. In case of major
-%% changes where this would not be appropriate the author of the
-%% changed version should contact the copyright holder.
-%%
-%%
-%% Moral obligation for using multicol:
-%% ------------------------------------
-%%
-%% Users of multicol who wish to include or use multicol or a modified
-%% version in a proprietary and commercially market product are asked
-%% under certain conditions (see below) for the payment of a license
-%% fee. The size of this fee is to be determined, in each instance,
-%% by the commercial user, depending on his/her judgment of the value of
-%% multicol for his/her product.
-%%
-%%
-%% The conditions for this are as follows:
-%%
-%% The producer of a proprietary and commercially market product
-%% that involves typesetting using multicol is asked to determine
-%% the value of a license fee for using multicol if
-%%
-%% - the product is a document and the producer has decided to
-%% include multicol to typeset (parts of) the document or has
-%% directed the author of the document to include multicol (for
-%% example, by providing a class file to be used by the author)
-%%
-%% - the product is a LaTeX class or package that includes multicol
-%%
-%%
-%% There is no moral obligation in case
-%%
-%% - the product is a document but producer has not directed
-%% the author to include multicol (in that case the moral obligation
-%% lies with the author of the document)
-%%
-%% - the product does not involve typesetting, e.g., consists, for
-%% example, of distributing multicol and its documentation.
-%%
-%% - the product is not proprietary, i.e., is made available as free
-%% software itself (which doesn't prohibit its commercial marketing)
-%%
-%% - multicol is used for non-commercial purposes
-%%
-%%
-%% Determinating a license fee might result in a license fee of zero
-%% (i.e., no payment) in case a producer has determined that the use
-%% of multicol has no enhancing effect on the product. This is a
-%% plausible scenario, i.e., in the above two cases the producer is
-%% only asked to evaluate the value of multicol for the product
-%% not for the payment of a license fee per se (which might or might
-%% not follow from this evaluation).
-%%
-%% The license fee, if any, can be payed either to the LaTeX3 fund
-%% (see ltx3info.txt in the base LaTeX distribution) or to the author of
-%% the program who can be contacted at
-%%
-%% Frank.Mittelbach@latex-project.org
-%%
-\NeedsTeXFormat{LaTeX2e}[1997/12/01]
-\ProvidesPackage{nomulticol}
- [2003/01/09 v1.5z multicolumn formatting (FMi)]
-%% \CheckSum{1451}
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-%%
-\DeclareOption{twocolumn}
- {\PackageWarning{nomulticol}{May not work
- with the twocolumn option}}
-\newcount\c@tracingmulticols
-\DeclareOption{errorshow}
- {\c@tracingmulticols\z@}
-\DeclareOption{infoshow}
- {\c@tracingmulticols\@ne}
-\DeclareOption{balancingshow}
- {\c@tracingmulticols\tw@}
-\DeclareOption{markshow}
- {\c@tracingmulticols\thr@@}
-\DeclareOption{debugshow}
- {\c@tracingmulticols5\relax}
-\ProcessOptions
-
-%%
-%% Start Additions by Dirk Roorda
-%%
-
-\def\show@mult@settings{%
- \typeout{LINEWIDTH=SAVED=\sav@linewidth; CURRENT=\the\linewidth}%
- \typeout{COLUMNWIDTH=SAVED=\sav@columnwidth; CURRENT=\the\columnwidth}%
- \typeout{FULL@WIDTH=SAVED=\sav@full@width; CURRENT=\the\full@width}%
- \typeout{HSIZE=SAVED=\sav@hsize; CURRENT=\the\hsize}%
- \typeout{VSIZE=SAVED=\sav@vsize; CURRENT=\the\vsize}%
- \typeout{BASELINESKIP=SAVED=\sav@baselineskip; CURRENT=\the\baselineskip}%
- \typeout{EMERGENCYSTRETCH=SAVED=\sav@emergencystretch; CURRENT=\the\emergencystretch}%
- \typeout{PRETOLERANCE=SAVED=\sav@pretolerance; CURRENT=\the\pretolerance}%
- \typeout{TOLERANCE=SAVED=\sav@tolerance; CURRENT=\the\tolerance}%
- \typeout{HBADNESS=SAVED=\sav@hbadness; CURRENT=\the\hbadness}%
- \typeout{VBADNESS=SAVED=\sav@vbadness; CURRENT=\the\vbadness}%
- \typeout{PARSHAPE=SAVED=\sav@parshape; CURRENT=\the\parshape}%
- \typeout{@TOTALLEFTMARGIN=SAVED=\sav@totalleftmargin; CURRENT=\the\@totalleftmargin}%
- \typeout{MULTICOL@LEFTMARGIN=SAVED=\sav@multicol@leftmargin; CURRENT=\the\multicol@leftmargin}%
- \typeout{@COLROOM=SAVED=\sav@colroom; CURRENT=\the\@colroom}%
- \typeout{DOUBLECOL@NUMBER=SAVED=\sav@doublecol@number; CURRENT=\the\doublecol@number}%
- \typeout{@TEMPDIMA=SAVED=\sav@tempdima; CURRENT=\the\@tempdima}%
- \typeout{FOOTINS=SAVED=\sav@count@footins; CURRENT=\the\count\footins}%
- \typeout{FOOTINS=SAVED=\sav@skip@footins; CURRENT=\the\skip\footins}%
-%
- \typeout{COL@NUMBER=SAVED=\sav@col@number; CURRENT=\the\col@number}%
- \typeout{PAGE@FREE=SAVED=\sav@page@free; CURRENT=\the\page@free}%
- \typeout{@TEMPSKIPA=SAVED=\sav@tempskipa; CURRENT=\the\@tempskipa}%
-}
-
-\def\explain@mult@settings{%
- \typeout{linewidth=\meaning\linewidth}%
- \typeout{columnwidth=\meaning\columnwidth}%
- \typeout{full-width=\meaning\full@width}%
- \typeout{hsize=\meaning\hsize}%
- \typeout{vsize=\meaning\vsize}%
- \typeout{baselineskip=\meaning\baselineskip}%
- \typeout{emergencystretch=\meaning\emergencystretch}%
- \typeout{pretolerance=\meaning\pretolerance}%
- \typeout{tolerance=\meaning\tolerance}%
- \typeout{hbadness=\meaning\hbadness}%
- \typeout{vbadness=\meaning\vbadness}%
- \typeout{parshape=\meaning\parshape}%
- \typeout{-totalleftmargin=\meaning\@totalleftmargin}%
- \typeout{multicol-leftmargin=\meaning\multicol@leftmargin}%
- \typeout{-colroom=\meaning\@colroom}%
- \typeout{doublecol-number=\meaning\doublecol@number}%
- \typeout{-tempdima=\meaning\@tempdima}%
- \typeout{-tempskipa=\meaning\@tempskipa}%
- \typeout{page-free=\meaning\page@free}%
- \typeout{col-number=\meaning\col@number}%
-}
-
-\def\save@mult@settings{%
- \xdef\sav@linewidth{\the\linewidth}%
- \xdef\sav@columnwidth{\the\columnwidth}%
- \xdef\sav@full@width{\the\full@width}%
- \xdef\sav@hsize{\the\hsize}%
- \xdef\sav@vsize{\the\vsize}%
- \xdef\sav@baselineskip{\the\baselineskip}%
- \xdef\sav@emergencystretch{\the\emergencystretch}%
- \xdef\sav@pretolerance{\the\pretolerance}%
- \xdef\sav@tolerance{\the\tolerance}%
- \xdef\sav@hbadness{\the\hbadness}%
- \xdef\sav@vbadness{\the\vbadness}%
- \xdef\sav@parshape{\the\parshape}%
- \xdef\sav@totalleftmargin{\the\@totalleftmargin}%
- \xdef\sav@multicol@leftmargin{\the\multicol@leftmargin}%
- \xdef\sav@colroom{\the\@colroom}%
- \xdef\sav@doublecol@number{\the\doublecol@number}%
- \xdef\sav@tempdima{\the\@tempdima}%
- \xdef\sav@count@footins{\the\count\footins}%
- \xdef\sav@skip@footins{\the\skip\footins}%
- \global\let\sav@dblfloat\@dblfloat
- \global\let\sav@end@dblfloat\end@dblfloat
- \xdef\sav@output{\the\output}%
- \global\let\sav@reserved@c\reserved@c
-%
- \xdef\sav@col@number{\the\col@number}%
- \xdef\sav@page@free{\the\page@free}%
- \xdef\sav@tempskipa{\the\@tempskipa}%
- \global\let\sav@reserved@a\reserved@a
- \global\let\sav@reserved@b\reserved@b
- \global\let\sav@reserved@d\reserved@d
- \global\let\sav@let@token\@let@token
- \global\let\sav@footnotetext\@footnotetext
- \global\let\sav@orig@footnotetext\orig@footnotetext
-}
-
-\def\restore@mult@settings{%
- \global\linewidth\sav@linewidth\relax
- \global\columnwidth\sav@columnwidth\relax
- \global\full@width\sav@full@width\relax
- \global\hsize\sav@hsize\relax
- \global\vsize\sav@vsize\relax
- \global\baselineskip\sav@baselineskip\relax
- \global\emergencystretch\sav@emergencystretch\relax
- \global\pretolerance\sav@pretolerance\relax
- \global\tolerance\sav@tolerance\relax
- \global\hbadness\sav@hbadness\relax
- \global\vbadness\sav@vbadness\relax
- \global\parshape\sav@parshape\relax
- \global\@totalleftmargin\sav@totalleftmargin\relax
- \global\multicol@leftmargin\sav@multicol@leftmargin\relax
- \global\@colroom\sav@colroom\relax
- \global\doublecol@number\sav@doublecol@number\relax
- \global\@tempdima\sav@tempdima\relax
- \global\count\footins\sav@count@footins\relax
- \global\skip\footins\sav@skip@footins\relax
- \global\let\@dblfloat\sav@dblfloat
- \global\let\end@dblfloat\sav@end@dblfloat
- \global\expandafter\output\expandafter{\sav@output}%
- \global\let\reserved@c\sav@reserved@c
-%
- \global\col@number\sav@col@number\relax
- \global\page@free\sav@page@free\relax
- \global\@tempskipa\sav@tempskipa\relax
- \global\let\reserved@a\sav@reserved@a
- \global\let\reserved@b\sav@reserved@b
- \global\let\reserved@d\sav@reserved@d
- \global\let\@let@token\sav@let@token
- \global\let\@footnotetext\sav@footnotetext
- \global\let\orig@footnotetext\sav@orig@footnotetext
-}
-
-\def\nobeginmulticols#1{%
-\typeout{^^JSTART #1 COLUMNS}%
- \save@mult@settings
- \global\col@number#1\relax
- \ifnum\col@number<\tw@
- \PackageWarning{multicol}%
- {Using `\number\col@number'
- columns doesn't seem a good idea.^^J
- I therefore use two columns instead}%
- \global\col@number\tw@ \fi
- \ifnum\col@number>10
- \PackageError{multicol}%
- {Too many columns}%
- {Current implementation doesn't
- support more than 10 columns.%
- \MessageBreak
- I therefore use 10 columns instead}%
- \global\col@number10 \fi
- \global\let\orig@footnotetext\@footnotetext
- \long\gdef\@footnotetext##1{\begingroup
- \columnwidth\textwidth
- \orig@footnotetext{##1}\endgroup}%
- \@ifnextchar[\nomult@cols{\nomult@cols[]}}
-
-\def\nomult@cols[#1]{\@ifnextchar[%
- {\nomult@@cols{#1}}%
- {\nomult@@cols{#1}[\premulticols]}}
-
-\def\nomult@@cols#1[#2]{%
- \par
- \ifinner \global\@boxedmulticolstrue
- \else
- \ifnum \doublecol@number>\z@
- \global\@boxedmulticolstrue
- \fi
- \fi
- \mult@info\z@
- {Starting environment with
- \the\col@number\space columns%
- \if@boxedmulticols\MessageBreak
- (boxed mode)\fi
- }%
- \enough@room{#2}%
- #1\par\addvspace\multicolsep
-% \begingroup
- \prepare@multicols
- \if@boxedmulticols
- \global\setbox\mult@box\vbox\bgroup
- \fi
- \ignorespaces}
-
-\def\noendmulticols{\par
- \if@boxedmulticols
- \egroup
- %\balance@columns
- \return@nonemptymark{first}%
- \kept@firstmark
- \return@nonemptymark{bot}%
- \kept@botmark
- \page@sofar
- \global\let\kept@firstmark\l@kept@firstmark
- \global\let\kept@botmark\l@kept@botmark
- \mult@info\tw@
- {Restore kept marks to\MessageBreak
- first: \meaning\kept@firstmark
- \MessageBreak bot\space\space:
- \meaning\kept@botmark }%
- \else
- \penalty\z@
- \global\output{\balance@columns@out}\eject
- \ifvbox\partial@page
- \unvbox\partial@page\fi
- \global\let\kept@firstmark\@empty
- \global\let\kept@botmark\@empty
- \mult@info\tw@
- {Make kept marks empty}%
- \fi
-% \@checkend{multicols}%
-% \endgroup
- \global\c@unbalance\z@
- \if@boxedmulticols\else
- \reinsert@footnotes
- \ifdim \pagegoal=\maxdimen
- \global\vsize\@colroom
- \else
- \enough@room\postmulticols
- \fi
- \fi
- \addvspace\multicolsep
- \mult@info\z@
- {Ending environment
- \if@boxedmulticols
- \space(boxed mode)\fi
- }%
-\typeout{^^JSTOP \the\col@number\space COLUMNS}%
- \restore@mult@settings
-}
-
-%%
-%% End Additions by Dirk Roorda
-%%
-
-%%
-%% The following code is unmodified, except that many local
-%% statements have been globalized
-%%
-
-\newif\if@boxedmulticols
-\global\@boxedmulticolsfalse
-
-\newbox\mult@box
-
-\def\enough@room#1{%
- \if@boxedmulticols\else
- \par
- \bgroup\@nobreakfalse\addpenalty\z@\egroup
- \global\page@free\pagegoal
- \global\advance\page@free -\pagetotal
- \global\@tempskipa#1\relax
- \mult@info\z@
- {Current page:\MessageBreak
- height=%
- \the\pagegoal: used \the\pagetotal
- \space -> free=\the\page@free
- \MessageBreak
- needed \the\@tempskipa
- \space(for #1)}%
- \ifdim\page@free<#1\newpage \fi
- \fi}
-
-\newif\ifmult@just@prepared
-
-\def\prepare@multicols{%
- \global\multicol@leftmargin\@totalleftmargin
- \global\@totalleftmargin\z@
- \global\parshape\z@
- \global\doublecol@number\col@number
- \global\multiply\doublecol@number\tw@
- \global\advance\doublecol@number\mult@rightbox
- \if@boxedmulticols
- \global\let\l@kept@firstmark\kept@firstmark
- \global\let\l@kept@botmark\kept@botmark
- \global\let\kept@firstmark\@empty
- \global\let\kept@botmark\@empty
- \else
- \nointerlineskip {\global\topskip\z@\null}%
- \global\output{%
- \global\setbox\partial@page\vbox
- {%
- \ifvoid\partial@page\else
- \PackageError{multicol}%
- {Error saving partial page}%
- {The part of the page before
- the multicols environment was
- nearly full with^^Jthe result
- that starting the environment
- will produce an overfull
- page. Some^^Jtext may be lost!
- Please increase \premulticols
- either generally or for this%
- ^^Jenvironment by specifying a
- suitable value in the second
- optional argument to^^Jthe
- multicols environment.}
- \unvbox\partial@page
- \box\last@line
- \fi
- \unvbox\@cclv
- \global\setbox\last@line\lastbox
- }%
- \prep@keptmarks
- \global\let\kept@topmark\firstmark
- }\eject
- \global\advance\@colroom-\ht\partial@page
- \set@mult@vsize\relax
- \global\output{\multi@column@out}%
- \init@mult@footins
- \reinsert@footnotes
- \fi
- \global\vbadness\@Mi \global\hbadness5000
- \global\tolerance\multicoltolerance
- \global\pretolerance\multicolpretolerance
- \setemergencystretch\col@number\hsize
- \set@floatcmds
- \global\advance\baselineskip\multicolbaselineskip
- \global\hsize\linewidth \global\advance\hsize\columnsep
- \global\advance\hsize-\col@number\columnsep
- \global\divide\hsize\col@number
- \global\full@width\linewidth
- \global\linewidth\hsize
- \global\columnwidth\hsize
- \global\mult@just@preparedtrue
-%\typeout{SETTING JUSTPREPARED to TRUE}%
-}
-
-\def\refreshmulticols{%
-%\typeout{REFRESH?}%
- \ifmult@just@prepared
-%\typeout{NO, JUSTPREPARED!}%
- \else
-%\typeout{YES}%
- \global\multicol@leftmargin\@totalleftmargin
- \global\@totalleftmargin\z@
- \global\parshape\z@
- \global\doublecol@number\col@number
- \global\multiply\doublecol@number\tw@
- \global\advance\doublecol@number\mult@rightbox
- \if@boxedmulticols
- \global\let\l@kept@firstmark\kept@firstmark
- \global\let\l@kept@botmark\kept@botmark
- \global\let\kept@firstmark\@empty
- \global\let\kept@botmark\@empty
- \else
- \nointerlineskip {\global\topskip\z@\null}%
- \global\advance\@colroom-\ht\partial@page
- \set@mult@vsize\relax
- \init@mult@footins
- % \reinsert@footnotes
- \fi
- \global\vbadness\@Mi \global\hbadness5000
- \global\tolerance\multicoltolerance
- \global\pretolerance\multicolpretolerance
- \setemergencystretch\col@number\hsize
- \set@floatcmds
- % \global\advance\baselineskip\multicolbaselineskip
- \global\hsize\linewidth \global\advance\hsize\columnsep
- \global\advance\hsize-\col@number\columnsep
- \global\divide\hsize\col@number
- \global\full@width\linewidth
- \global\linewidth\hsize
- \global\columnwidth\hsize
- \global\mult@just@preparedtrue
-%\typeout{SETTING JUSTPREPARED to TRUE}%
- \fi
-}
-
-\def\init@mult@footins{%
- \global\multiply\count\footins\col@number
- \global\multiply\skip \footins\col@number
-}
-
-\def\set@mult@vsize#1{%
- \global\vsize\@colroom
- \global\@tempdima\baselineskip
- \global\advance\@tempdima-\topskip
- \global\advance\vsize\@tempdima
- \global\vsize\col@number\vsize
- \global\advance\vsize-\@tempdima
- #1\global\advance\vsize\c@collectmore\baselineskip}
-
-\newdimen\multicol@leftmargin
-\newcount\c@unbalance
-\newcount\c@collectmore
-\newcount\doublecol@number
-\newcount\multicoltolerance
-\newcount\multicolpretolerance
-\newdimen\full@width
-\newdimen\page@free
-\newdimen\premulticols
-\newdimen\postmulticols
-\newskip\multicolsep
-\newskip\multicolbaselineskip
-\newbox\partial@page
-\newbox\last@line
-\global\c@unbalance = 0
-\global\c@collectmore = 0
-\global\col@number = 1
-\global\multicoltolerance = 9999
-\global\multicolpretolerance = -1
-\global\premulticols = 50pt
-\global\postmulticols= 20pt
-\global\multicolsep = 12pt plus 4pt minus 3pt
-\global\multicolbaselineskip=0pt
-
-\def\process@cols#1#2{\global\count@#1\relax
- \loop
- #2%
- \global\advance\count@\tw@
- \ifnum\count@<\doublecol@number
- \repeat}
-
-\def\page@sofar{%
- \process@cols\mult@rightbox
- {\ifvoid\count@
- \setbox\count@\hbox to\hsize{}%
- \else
- \wd\count@\hsize
- \fi}%
- \mult@info\z@
- {Column spec:\MessageBreak
- (\the\multicol@leftmargin\space -->
- \the\full@width\space = \the\hsize
- \space x \the\col@number)%
- }%
-\ifvmode\else\errmessage{Multicol Error}\fi
- \moveright\multicol@leftmargin
- \hbox to\full@width{%
- \process@cols\mult@gfirstbox{\box\count@
- \hss{\normalcolor\vrule\@width\columnseprule}\hss}%
- \box\mult@rightbox
- \rlap{\phantom p}%
- }%
-}
-
-\def\reinsert@footnotes{\ifvoid\footins\else
- \insert\footins{}\fi}
-
-\def\multi@column@out{%
- \ifnum\outputpenalty <-\@M
- \speci@ls
- \else
- \global\mult@just@preparedfalse
-%\typeout{SETTING JUSTPREPARED TO FALSE}%
- \ifvoid\colbreak@box
- \else
- \mult@info\@ne{Re-adding forced
- break(s) for splitting}%
- \setbox\@cclv\vbox{%
- \unvbox\colbreak@box
- \penalty-\@Mv\unvbox\@cclv}%
- \fi
- \splittopskip\topskip
- \splitmaxdepth\maxdepth
- \global\dimen@\@colroom
- \global\divide\skip\footins\col@number
- \ifvoid\footins
- \else
- \leave@mult@footins
- \fi
- \process@cols\mult@gfirstbox{%
- \setbox\count@\vsplit\@cclv to\dimen@
- \set@keptmarks
- \ifshr@nking
- \setbox\count@\vbox to\dimen@{\unvbox\count@\vfill}%
- \fi
- }%
- \global\setbox\mult@rightbox\vsplit\@cclv to\dimen@
- \set@keptmarks
- \ifshr@nking
- \global\setbox\mult@rightbox\vbox to\dimen@{\unvbox\mult@rightbox\vfill}%
- \fi
- \ifvoid\@cclv
- \else
- \unvbox\@cclv
- \penalty\outputpenalty
- \ifvoid\footins
- \else
- \PackageWarning{multicol}%
- {I moved some lines to
- the next page.\MessageBreak
- Footnotes on page
- \thepage\space might be wrong}%
- \fi
- \ifnum \c@tracingmulticols>\thr@@
- \hrule\allowbreak
- \fi
- \fi
- \ifx\@empty\kept@firstmark
- \global\let\firstmark\kept@topmark
- \global\let\botmark\kept@topmark
- \else
- \global\let\firstmark\kept@firstmark
- \global\let\botmark\kept@botmark
- \fi
- \global\let\topmark\kept@topmark
- \mult@info\tw@
- {Use kept top mark:\MessageBreak
- \meaning\kept@topmark
- \MessageBreak
- Use kept first mark:\MessageBreak
- \meaning\kept@firstmark
- \MessageBreak
- Use kept bot mark:\MessageBreak
- \meaning\kept@botmark
- \MessageBreak
- Produce first mark:\MessageBreak
- \meaning\firstmark
- \MessageBreak
- Produce bot mark:\MessageBreak
- \meaning\botmark
- \@gobbletwo}%
- \setbox\@cclv\vbox{\unvbox\partial@page\page@sofar}%
- \@makecol\@outputpage
- \global\let\kept@topmark\botmark
- \global\let\kept@firstmark\@empty
- \global\let\kept@botmark\@empty
- \mult@info\tw@
- {(Re)Init top mark:\MessageBreak
- \meaning\kept@topmark
- \@gobbletwo}%
- \global\@colroom\@colht
- \process@deferreds
- \@whilesw\if@fcolmade\fi{\@outputpage
- \global\@colroom\@colht
- \process@deferreds}%
- \mult@info\@ne
- {Colroom:\MessageBreak
- \the\@colht\space
- after float space removed
- = \the\@colroom \@gobble}%
- \set@mult@vsize \global
- \fi
-}
-
-\def\leave@mult@footins{%
- \global\advance\dimen@-\skip\footins
- \global\advance\dimen@-\ht\footins
-}
-
-\def\speci@ls{%
- \ifnum\outputpenalty <-\@Mi
- \ifnum \outputpenalty<-\@MM
- \PackageError{multicol}{Document end
- inside multicols environment}\@ehd
- \@specialoutput
- \else
- \ifnum\outputpenalty = -\@Mv
- \mult@info\@ne{Forced column
- break seen}%
- \global\advance\vsize-\pagetotal
- \global\setbox\colbreak@box
- \vbox{\ifvoid\colbreak@box
- \else
- \unvbox\colbreak@box
- \penalty-\@Mv
- \fi
- \unvbox\@cclv}
- \reinsert@footnotes
- \else
- \PackageWarning{multicol}%
- {Floats and marginpars not
- allowed inside `multicols'
- environment!
- \@gobble}%
- \unvbox\@cclv\reinsert@footnotes
- \xdef\@freelist{\@freelist\@currlist}%
- \gdef\@currlist{}%
- \fi
- \fi
- \else \@doclearpage \fi
-}
-
-\def\process@deferreds{%
- \@floatplacement
- \@tryfcolumn\@deferlist
- \if@fcolmade\else
- \begingroup
- \let\@tempb\@deferlist
- \gdef\@deferlist{}%
- \let\@elt\@scolelt
- \@tempb \endgroup
- \fi}
-
-\newif\ifshr@nking
-
-\def\raggedcolumns{%
- \@bsphack\global\shr@nkingtrue\@esphack}
-
-\def\flushcolumns{%
- \@bsphack\global\shr@nkingfalse\@esphack}
-
-\def\balance@columns@out{%
- \global\setbox\mult@box\vbox{%
- \ifvoid\colbreak@box\else
- \unvbox\colbreak@box\break
- \mult@info\@ne{Re-adding
- forced break(s) in balancing}%
- \fi
- \unvbox\@cclv}%
- \balance@columns
- \global\vsize\@colroom
- \global\advance\vsize\ht\partial@page
- \unvbox\partial@page
- \return@nonemptymark{first}\kept@firstmark
- \return@nonemptymark{bot}\kept@botmark
- \page@sofar
- \penalty\z@
-}
-
-\def\balance@columns{%
- \get@keptmarks\mult@box
- \global\setbox\mult@box\vbox{%
- \penalty-\@M
- \unvbox\mult@box
- \remove@discardable@items
- }%
- \global\@tempdima\topskip
- \global\splittopskip\@tempdima
- \@plus\multicolundershoot
- \@minus\multicolovershoot
- \splitmaxdepth\maxdepth
- \setbox\@tempboxa\vsplit\mult@box to\z@
- \global\@tempdima\ht\mult@box
- \global\advance\@tempdima\dp\mult@box
- \global\divide\@tempdima\col@number
- \global\count@\@tempdima
- \global\divide\count@\baselineskip
- \global\dimen@\count@\baselineskip
- \global\advance\dimen@\topskip
- \ifdim \dimen@ >\@tempdima
- \global\advance\dimen@-\baselineskip
- \fi
- \global\advance\dimen@\c@unbalance\baselineskip
- \mult@info\@ne
- {Balance columns\on@line:
- \ifnum\c@unbalance=\z@\else
- (off balance=\number\c@unbalance)\fi
- \@gobbletwo}%
- \ifnum\dimen@<\topskip
- \mult@info\@ne
- {Start value
- \the\dimen@ \space ->
- \the\topskip \space (corrected)}%
- \global\dimen@\topskip
- \fi
- \global\vbadness\@M
- \global\vfuzz \col@number\baselineskip
- \global\last@try-\p@
- \loop
- {\process@cols\mult@grightbox
- {\global\setbox\count@
- \box\voidb@x}}%
- \global\setbox\mult@grightbox
- \copy\mult@box
- \global\too@badfalse
- {\process@cols\mult@firstbox{%
- \global\setbox\count@
- \vsplit\mult@grightbox to\dimen@
- \ifnum\c@tracingmulticols>\@ne
- \@tempcnta\count@
- \advance\@tempcnta-\mult@grightbox
- \divide\@tempcnta \tw@
- \message{^^JColumn
- \number\@tempcnta\space
- badness: \the\badness\space}%
- \fi
- \ifnum\badness>\c@columnbadness
- \ifnum\c@tracingmulticols>\@ne
- \message{too bad
- (>\the\c@columnbadness)}%
- \fi
- \global\too@badtrue
- \fi
- }}%
- \global\boxmaxdepth\maxdepth
- \global\setbox\mult@grightbox
- \vbox{\unvbox\mult@grightbox}%
- \global\setbox\mult@nat@firstbox
- \vbox{\unvcopy\mult@firstbox}%
- \ifnum\c@tracingmulticols>\@ne
- \message{^^JFirst column
- = \the\dimen@\space
- (\the\ht\mult@nat@firstbox)}\fi
- \ifnum\c@tracingmulticols>\@ne
- \message{<> last column =
- \the\ht\mult@grightbox^^J}%
- \fi
- \ifdim\ht\mult@grightbox >\dimen@
- \global\too@badtrue
- \ifnum\c@tracingmulticols>\@ne
- \typeout{Rejected: last
- column too large!}%
- \fi
- \else
- \setbox\@tempboxa
- \copy\mult@grightbox
- \setbox\z@\vsplit\@tempboxa to\maxdimen
- \ifvoid\@tempboxa
- \global\setbox\mult@grightbox
- \vbox to\dimen@
- {\unvbox\mult@grightbox}%
- \ifnum\c@tracingmulticols>\@ne
- \message{Final badness:
- \the\badness}%
- \fi
- \ifnum\badness>\c@finalcolumnbadness
- \global\setbox\mult@grightbox
- \vbox to\dimen@
- {\unvbox\mult@grightbox\vfill}%
- \ifnum\c@tracingmulticols>\@ne
- \message{ setting natural
- (> \the\c@finalcolumnbadness)}%
- \fi
- \fi
- \else
- \global\too@badtrue
- \ifnum\c@tracingmulticols>\@ne
- \typeout{Rejected: unprocessed
- forced break(s) in last column!}%
- \fi
- \fi
- \fi
- \ifdim\ht\mult@nat@firstbox<\dimen@
- \ifdim\ht\mult@nat@firstbox>\last@try
- \global\too@badtrue
- \ifnum\c@tracingmulticols>\@ne
- \typeout{Retry: using natural
- height of first column!}%
- \fi
- \global\dimen@\ht\mult@nat@firstbox
- \global\last@try\dimen@
- \global\advance\dimen@-\p@
- \fi
- \fi
- \iftoo@bad
- \global\advance\dimen@\p@
- \repeat
- \if@boxedmulticols\else
- \ifdim\dimen@>\@colroom
- \global\dimen@\@colroom
- \fi
- \fi
- \process@cols\mult@rightbox
- {\@tempcnta\count@
- \advance\@tempcnta\@ne
- \setbox\count@\vbox to\dimen@
- {%
- \vskip \z@
- \@plus-\multicolundershoot
- \@minus-\multicolovershoot
- \unvbox\@tempcnta
- \ifshr@nking\vfill\fi}}%
-}
-
-\newbox\mult@rightbox
-\newbox\mult@grightbox
-\newbox\mult@gfirstbox
-\newbox\mult@firstbox
-\newbox\@tempa\newbox\@tempa
-\newbox\@tempa\newbox\@tempa
-\newbox\@tempa\newbox\@tempa
-\newbox\@tempa\newbox\@tempa
-\newbox\@tempa\newbox\@tempa
-\newbox\@tempa\newbox\@tempa
-\newbox\@tempa\newbox\@tempa
-\newbox\@tempa\newbox\@tempa
-\newbox\@tempa
-
-\global\let\@tempa\relax
-
-\@ifundefined{emergencystretch}
- {\newdimen\emergencystretch}{}
-
-\def\setemergencystretch#1#2{%
- \global\emergencystretch 4pt
- \global\multiply\emergencystretch#1}
-
-\def\set@floatcmds{%
- \global\let\@dblfloat\@dbflt
- \gdef\end@dblfloat{\par
- \vskip\z@
- \egroup
- \color@endbox
- \@largefloatcheck
- \outer@nobreak
- \ifnum\@floatpenalty<\z@
- \@cons\@deferlist\@currbox
- \fi
- \ifnum\@floatpenalty=-\@Mii
- \@Esphack
- \fi}}
-
-\def\kept@topmark{{}{}}
-
-\global\let\kept@firstmark\@empty
-\global\let\kept@botmark\@empty
-
-\def\return@nonemptymark#1#2{%
- \ifx#2\@empty
- \else
- \mult@info\tw@
- {Returned #1 mark:\MessageBreak
- \meaning#2}%
- \toks@\expandafter{#2}%
- \mark{\the\toks@}%
- \nobreak
- \fi}
-
-\def\get@keptmarks#1{%
- \begingroup
- \vbadness\@M
- \setbox#1\copy#1%
- \setbox#1\vsplit#1to\maxdimen
- \set@keptmarks
- \endgroup
-}
-
-\def\set@keptmarks{%
- \ifx\kept@firstmark\@empty
- \expandafter\gdef\expandafter
- \kept@firstmark
- \expandafter{\splitfirstmark}%
- \ifx\kept@firstmark\@empty\else
- \mult@info\tw@
- {Set kept first mark:\MessageBreak
- \meaning\kept@firstmark%
- \@gobbletwo}%
- \fi
- \fi
- \expandafter\gdef\expandafter\@tempa
- \expandafter{\splitbotmark}%
- \ifx\@tempa\@empty\else
- \global\let\kept@botmark\@tempa
- \mult@info\tw@
- {Set kept bot mark:\MessageBreak
- \meaning\kept@botmark%
- \@gobbletwo}%
- \fi}%
-
-\def\prep@keptmarks{%
- \if@boxedmulticols \else
- \get@keptmarks\partial@page
- \fi}
-
-\def\remove@discardable@items{%
- \unskip\unpenalty\unkern
- \unskip\unpenalty\unkern
- \unskip\unpenalty\unkern
- \unskip\unpenalty\unkern
-}
-
-\newif\iftoo@bad
-\newcount\c@columnbadness
-\global\c@columnbadness=10000
-
-\newcount\c@finalcolumnbadness
-\global\c@finalcolumnbadness=9999
-
-\newdimen\last@try
-\newdimen\multicolovershoot
-\global\multicolovershoot=2pt
-
-\newdimen\multicolundershoot
-\global\multicolundershoot=2pt
-
-\newbox\mult@nat@firstbox
-
-\def\mult@info#1#2{%
- \ifnum\c@tracingmulticols>#1%
- \GenericWarning
- {(multicol)\@spaces\@spaces}%
- {Package multicol: #2}%
- \fi
-}
-
-\@namedef{multicols*}{%
- \ifinner
- \PackageWarning{multicol}%
- {multicols* inside a box does
- not make sense.\MessageBreak
- Going to balance anyway}%
- \else
- \global\let\balance@columns@out
- \multi@column@out
- \fi
- \begin{multicols}
-}
-\@namedef{endmulticols*}{\vfill
- \end{multicols}}
-
-\mathchardef\@Mv=10005
-
-\def\columnbreak{%
- \ifnum\col@number<\tw@
- \PackageError{multicol}%
- {\noexpand\columnbreak outside multicols}%
- {This command can only be used within
- a multicols or multicols* environment.}%
- \else
- \ifvmode
- \penalty -\@Mv\relax
- \else
- \@bsphack
- \vadjust{\penalty -\@Mv\relax}%
- \@esphack
- \fi
- \fi}
-
-\newbox\colbreak@box
-
-\global\let\interbeginmulticols\nobeginmulticols
-\global\let\interendmulticols\noendmulticols
-\endinput
-%%
-%% End of file `multicol.sty'.
diff --git a/Master/texmf-dist/tex/xmltex/passivetex/ucharacters.sty b/Master/texmf-dist/tex/xmltex/passivetex/ucharacters.sty
index d3ce3e5547d..713c292a66b 100644
--- a/Master/texmf-dist/tex/xmltex/passivetex/ucharacters.sty
+++ b/Master/texmf-dist/tex/xmltex/passivetex/ucharacters.sty
@@ -13,7 +13,7 @@
\DefineCharacter{172}{AC}{\ensuremath{\lnot }}
\DefineCharacter{173}{AD}{\ensuremath{\-}}
\DefineCharacter{174}{AE}{\ifmmode \circledR \else \textregistered \fi}%
-\DefineCharacter{175}{AF}{\ifmmode\mbox{\textasciimacron}\else\textasciimacron\fi}
+\DefineCharacter{175}{AF}{\textasciimacron }
\DefineCharacter{176}{B0}{\ifmmode \mbox{\textdegree}\else \textdegree \fi}%
\DefineCharacter{177}{B1}{\ensuremath{\pm }}
\DefineCharacter{178}{B2}{\ensuremath{{^2}}}
@@ -591,8 +591,6 @@
\DefineCharacter{1249}{4E1}{\cyrchar\cyrabhdze }
\DefineCharacter{1256}{4E8}{\cyrchar\CYROTLD }
\DefineCharacter{1257}{4E9}{\cyrchar\cyrotld }
-\DefineCharacter{8192}{2000}{\,\fbox{\vrule height1.5ex depth0pt width0pt \hspace{0.5em}}\,}
-\DefineCharacter{8193}{2001}{\,\fbox{\vrule height1.5ex depth0pt width0pt \hspace{1em}}\,}
\DefineCharacter{8194}{2002}{\hspace{0.6em}}
\DefineCharacter{8195}{2003}{\hspace{1em}}
\DefineCharacter{8196}{2004}{\hspace{0.33em}}