summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/titlesec
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-11-20 01:16:38 +0000
committerKarl Berry <karl@freefriends.org>2011-11-20 01:16:38 +0000
commit319985f28012617ef65f49e1072cb1de269780e4 (patch)
treed2cd2ab2d3b43c6f237127de409534e87ae1f71b /Master/texmf-dist/tex/latex/titlesec
parent0a0091fe9ba71eced85c73dacff4ec5a763291e8 (diff)
titlesec (18nov11)
git-svn-id: svn://tug.org/texlive/trunk@24623 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/titlesec')
-rw-r--r--Master/texmf-dist/tex/latex/titlesec/titleps.sty87
1 files changed, 87 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/titlesec/titleps.sty b/Master/texmf-dist/tex/latex/titlesec/titleps.sty
new file mode 100644
index 00000000000..bc75ccdb675
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/titlesec/titleps.sty
@@ -0,0 +1,87 @@
+% +--------------------------------------------------+
+% | Typeset titlesec.tex to get the documentation. |
+% +--------------------------------------------------+
+%
+% Copyright (c) 1998-2011 by Javier Bezos.
+% All Rights Reserved.
+%
+% This file is part of the titlesec distribution release 2.9.2
+% -----------------------------------------------------------
+%
+% It may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3
+% of this license or (at your option) any later version.
+% The latest version of this license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of LaTeX
+% version 2003/12/01 or later.
+%
+% This work has the LPPL maintenance status "maintained".
+%
+% The Current Maintainer of this work is Javier Bezos.
+%
+% Release
+% ~~~~~~~
+
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{titleps}[2011/11/17 v1.0 Page styles]
+
+% This package is mainly a wrapper for the pagestyle macros provided
+% by titlesec, so that they can be used without it. Functionality is
+% almost similar, but top pagemarks (which require 2 marks, before
+% and after the title) do not work directly and therefore they are
+% not available (yet).
+
+\newif\ifttl@ps
+\newif\ifttl@toclabel
+\ttl@toclabeltrue
+
+\def\ttl@calcneg#1#2{%
+ {\setlength\@tempskipa{#2}%
+ #1{-\@tempskipa}}}
+
+\DeclareRobustCommand\ttl@naerror[1]{%
+ \PackageError{titleps}%
+ {#1\space only available in titlesec.\MessageBreak
+ Consider using it instead of titleps}%
+ {titleps provides a subset of the macros\MessageBreak
+ for pagestyles defined in titlesec.}}
+
+\DeclareOption{psfloats}{\let\ttl@replace\@empty} % a flag
+
+\DeclareOption{outermarks}{\ttl@naerror{outermarks}}
+\DeclareOption{topmarks}{\ttl@naerror{topmarks}}
+\DeclareOption{botmarks}{%
+ \def\ttl@titlemarks{\bottitlemarks}}
+\DeclareOption{innermarks}{%
+ \def\ttl@titlemarks{\innertitlemarks}}
+
+\ExecuteOptions{innermarks}
+
+\ProcessOptions
+
+\let\newpagestyle\@empty
+\let\renewpagestyle\@empty
+\let\widenhead\@empty
+
+\input ttlps.def
+
+% Raise error if the following are used.
+
+\def\ttl@setifthe#1{%
+ \expandafter\protected@edef\csname ifthe#1\endcsname{%
+ \ttl@naerror{\string\ifthe#1}}}
+
+\ttl@setifthe{part}
+\ttl@setifthe{chapter}
+\ttl@setifthe{section}
+\ttl@setifthe{subsection}
+\ttl@setifthe{subsubsection}
+\ttl@setifthe{paragraph}
+\ttl@setifthe{subparagraph}
+
+\renewcommand\toptitlemarks{\ttl@naerror{\string\toptitlemarks}}
+\renewcommand\nexttoptitlemarks{\ttl@naerror{\string\nexttoptitlemarks}}
+\renewcommand\outertitlemarks{\ttl@naerror{\string\outertitlemarks}}
+
+\endinput \ No newline at end of file