summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/koma-script/visualize.lco
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-02-17 01:13:08 +0000
committerKarl Berry <karl@freefriends.org>2010-02-17 01:13:08 +0000
commitfc452419467f73cbbe9e7748ac266442487b75c4 (patch)
tree9f2cc4858705479715feb886723ffd6361cbfc29 /Master/texmf-dist/tex/latex/koma-script/visualize.lco
parent5323eaeeb7b140b77a69f88dba6a5ef38f12f60e (diff)
koma-script update (16feb10)
git-svn-id: svn://tug.org/texlive/trunk@17067 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/koma-script/visualize.lco')
-rw-r--r--Master/texmf-dist/tex/latex/koma-script/visualize.lco42
1 files changed, 38 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/koma-script/visualize.lco b/Master/texmf-dist/tex/latex/koma-script/visualize.lco
index 9b05ae56aa2..4faca0dfbbe 100644
--- a/Master/texmf-dist/tex/latex/koma-script/visualize.lco
+++ b/Master/texmf-dist/tex/latex/koma-script/visualize.lco
@@ -10,7 +10,7 @@
%% scrklco.dtx (with options: `lco,visualize,body')
%% scrknpap.dtx (with options: `lco,visualize,body')
%%
-%% Copyright (c) 1994-2009
+%% Copyright (c) 1994-2010
%% Markus Kohm and any individual authors listed elsewhere in this file.
%%
%% This file was generated from file(s) of the KOMA-Script bundle.
@@ -65,7 +65,7 @@
\fi
}
\fi
- \@CheckKOMAScriptVersion{2009/07/24 v3.04a KOMA-Script}%
+ \@CheckKOMAScriptVersion{2010/02/15 v3.05 KOMA-Script}%
\endgroup
%%% From File: scrklco.dtx
\ProvidesFile{%
@@ -181,13 +181,47 @@
\showfield{1cm}{1cm}{10cm}{15cm}%
}
\newcommand*{\showfield@head}{%
- \showfield{\dimexpr (\paperwidth-\useplength{firstheadwidth})/2\relax}%
+ \ifdim\useplength{firstheadhpos}<\paperwidth
+ \ifdim \useplength{firstheadhpos}>-\paperwidth
+ \ifdim \useplength{firstheadhpos}<\z@
+ \setlength\@tempskipa{\paperwidth}%
+ \addtolengthplength{\@tempskipa}{firstheadhpos}%
+ \addtolengthplength[-]{\@tempskipa}{firstheadwidth}%
+ \else
+ \setlength{\@tempskipa}{\useplength{firstheadhpos}}%
+ \fi
+ \else
+ \setlength\@tempskipa{\oddsidemargin}%
+ \addtolength\@tempskipa{1in}%
+ \fi
+ \else
+ \setlength\@tempskipa{.5\paperwidth}%
+ \addtolengthplength[-.5]{\@tempskipa}{firstheadwidth}%
+ \fi
+ \showfield{\@tempskipa}%
{\useplength{firstheadvpos}}%
{\useplength{firstheadwidth}}%
{-\headheight}%
}
\newcommand*{\showfield@foot}{%
- \showfield{\dimexpr (\paperwidth-\useplength{firstfootwidth})/2\relax}%
+ \ifdim\useplength{firstfoothpos}<\paperwidth
+ \ifdim \useplength{firstfoothpos}>-\paperwidth
+ \ifdim \useplength{firstfoothpos}<\z@
+ \setlength\@tempskipa{\paperwidth}%
+ \addtolengthplength{\@tempskipa}{firstfoothpos}%
+ \addtolengthplength[-]{\@tempskipa}{firstfootwidth}%
+ \else
+ \setlength{\@tempskipa}{\useplength{firstfoothpos}}%
+ \fi
+ \else
+ \setlength\@tempskipa{\oddsidemargin}%
+ \addtolength\@tempskipa{1in}%
+ \fi
+ \else
+ \setlength\@tempskipa{.5\paperwidth}%
+ \addtolengthplength[-.5]{\@tempskipa}{firstfootwidth}%
+ \fi
+ \showfield{\@tempskipa}%
{\useplength{firstfootvpos}}%
{\useplength{firstfootwidth}}%
{-\baselineskip}%