summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/interfaces/interfaces-appendix.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-10-25 23:12:18 +0000
committerKarl Berry <karl@freefriends.org>2010-10-25 23:12:18 +0000
commitd74b95d250c7632cb73e7420db04e2e38adc3827 (patch)
treefbc6763253fbb9d309da7b613857d782ee5feccb /Master/texmf-dist/tex/latex/interfaces/interfaces-appendix.sty
parentec47c1b7880fd4f626f8aa8377e576e03d72c24f (diff)
new latex package interfaces (25oct10)
git-svn-id: svn://tug.org/texlive/trunk@20206 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/interfaces/interfaces-appendix.sty')
-rw-r--r--Master/texmf-dist/tex/latex/interfaces/interfaces-appendix.sty86
1 files changed, 86 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/interfaces/interfaces-appendix.sty b/Master/texmf-dist/tex/latex/interfaces/interfaces-appendix.sty
new file mode 100644
index 00000000000..41630693aa1
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/interfaces/interfaces-appendix.sty
@@ -0,0 +1,86 @@
+%%
+%% This is file `interfaces-appendix.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% interfaces.dtx (with options: `appendix')
+%%
+%% This is a generated file.
+%%
+%% interfaces : 2010/10/20 v1.0 - interfaces : interfaces with keys for other packages (FC)
+%%
+%% This work 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
+%%
+%% This work consists of the main source file interfaces.dtx
+%% and the derived files
+%% interfaces.sty, interfaces.pdf, interfaces.ins,
+%% interfaces-base.sty,
+%% interfaces-LaTeX.sty,
+%% interfaces-tikz.sty,
+%% interfaces-titlesec.sty,
+%% interfaces-hyperref.sty,
+%% interfaces-bookmark.sty,
+%% interfaces-hypbmsec.sty,interfaces-hypbmsec.code.tex,
+%% interfaces-fancyhdr.sty,
+%% interfaces-marks.sty,
+%% interfaces-tocloft.sty,
+%% interfaces-makecell.sty,
+%% interfaces-enumitem.sty,
+%% interfaces-truncate.sty,
+%% interfaces-appendix.sty,
+%% interfaces-embedfile.sty,
+%% interfaces-environ.sty,
+%% interfaces-umrand.sty,
+%% interfaces-scrlfile.sty,
+%% interfaces-pgfkeys.sty,
+%% interfaces-etoolbox.sty,
+%% interfaces-fancyvrb.sty
+%%
+%% interfaces: interfaces with keys for other packages (FC)
+%% Copyright (C) 2010 by Florent Chervet <florent.chervet@free.fr>
+%%
+\ProvidesPackage{interfaces-appendix}
+ [2010/10/20 v1.0 easy control of appendices environment (FC)]
+\RequirePackage{interfaces-base}
+\itf@Check@Package{appendix}
+\itf@pgfkeys
+\let\itf@appendices@pp\appendices
+\let\itf@endappendices@pp\endappendices
+\let\itf@appendices@pp\appendices
+\let\itf@endappendices@pp\endappendices
+\renewenvironment{appendices}[1][]{%
+ \pgfqkeys{/itf/appendix/appendices}{#1}%
+ \itf@appendices@pp
+ }
+ {\itf@endappendices@pp}%
+\pgfqkeys{/itf/appendix/appendices}{%
+ title/.store as code in cs=appendixpagename,%
+ title/.append code=\ifx\appendixpagename\@empty \@dopage@ppfalse
+ \else \@dopage@pptrue\fi,%
+ title/.value required,%
+ intoc/.is if=@dotoc@pp,%
+ intoc/title/.store as code in cs=appendixtocname,%
+ intoc/title/.append code=\ifx\appendixtocname\@empty \@dotoc@ppfalse
+ \else \@dotoc@pptrue\fi,%
+ intoc/title/.default=\pgfkeysvalueof{/itf/appendix/appendices/title},%
+ section/.is enum={section,chapter},%
+ section/.append code={%
+ \ifcase\pgfkeysvalueof{/itf/appendix/appendices/section/.number}\relax
+ \@chapter@ppfalse\or\@chapter@pptrue\fi
+ \if@chapter@pp\ifundef\chapter{%
+ \PackageError{interfaces-appendix}
+ {You asked chapter-style appendices but your
+ \MessageBreak current class does not provide chapters!}\@eha
+ \pgfkeysalso{/itf/appendix/appendices/section}}{}%
+ \fi},%
+ chapter/.style={section=chapter},%
+ chapter/.value forbidden,%
+}% keys for appendices environment
+\endinput
+%%
+%% End of file `interfaces-appendix.sty'.