summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/subfiles
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-05-24 23:49:57 +0000
committerKarl Berry <karl@freefriends.org>2012-05-24 23:49:57 +0000
commita86962f67dc5d3f0a8a24b6aa3c19f40a13ca35f (patch)
treee51cc429b7288d4d0b85e81e433a6c978d779e88 /Master/texmf-dist/tex/latex/subfiles
parent8728b425cb5199591a9245e51170184c0a746ebe (diff)
new latex package subfiles (24may12)
git-svn-id: svn://tug.org/texlive/trunk@26645 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/subfiles')
-rw-r--r--Master/texmf-dist/tex/latex/subfiles/subfiles.cls50
-rw-r--r--Master/texmf-dist/tex/latex/subfiles/subfiles.sty40
2 files changed, 90 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/subfiles/subfiles.cls b/Master/texmf-dist/tex/latex/subfiles/subfiles.cls
new file mode 100644
index 00000000000..1a37cabc6fb
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/subfiles/subfiles.cls
@@ -0,0 +1,50 @@
+%%
+%% This is file `subfiles.cls',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% subfiles.dtx (with options: `class')
+%%
+%% This is a generated file.
+%%
+%% Copyright 2002, 2012 Federico Garcia
+%%
+%% 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
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status `maintained'.
+%%
+%% The Current Maintainer of this work is Federico Garcia.
+%%
+%% This work consists of the files subfiles.dtx and subfiles.ins
+%% and the derived files subfiles.sty and subfiles.pdf
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesClass{subfiles}[2012/05/23 Federico Garcia]
+\RequirePackage{verbatim}
+\DeclareOption*{\typeout{Preamble taken from file `\CurrentOption'}%
+ \let\preamble@file\CurrentOption}
+\ProcessOptions
+\let\old@document@subfiles\document
+\let\old@enddocument@subfiles\enddocument
+\let\old@documentclass@subfiles\documentclass
+\let\document\comment
+\let\enddocument\endcomment
+\let\documentclass\LoadClass\relax
+\input{\preamble@file}
+{\catcode`\@=11
+\global\let\document\old@document@subfiles
+\global\let\enddocument\old@enddocument@subfiles
+\global\let\documentclass\old@documentclass@subfiles
+\global\let\old@document@subfiles\undefined
+\global\let\old@enddocument@subfiles\undefined
+\global\let\old@documentclass@subfiles\undefined}
+\endinput
+%%
+%% End of file `subfiles.cls'.
diff --git a/Master/texmf-dist/tex/latex/subfiles/subfiles.sty b/Master/texmf-dist/tex/latex/subfiles/subfiles.sty
new file mode 100644
index 00000000000..fc3e91fcca9
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/subfiles/subfiles.sty
@@ -0,0 +1,40 @@
+%%
+%% This is file `subfiles.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% subfiles.dtx (with options: `package')
+%%
+%% This is a generated file.
+%%
+%% Copyright 2002, 2012 Federico Garcia
+%%
+%% 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
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status `maintained'.
+%%
+%% The Current Maintainer of this work is Federico Garcia.
+%%
+%% This work consists of the files subfiles.dtx and subfiles.ins
+%% and the derived files subfiles.sty and subfiles.pdf
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{subfiles}[2012/05/23 Federico Garcia]
+\DeclareOption*{\PackageWarning{\CurrentOption ignored}}
+\ProcessOptions
+\RequirePackage{verbatim}
+\newcommand{\skip@preamble}{%
+ \let\document\relax\let\enddocument\relax%
+ \newenvironment{document}{}{}%
+ \renewcommand{\documentclass}[2][subfiles]{}}
+\newcommand\subfile[1]{\begingroup\skip@preamble\input{#1}\endgroup}
+\endinput
+%%
+%% End of file `subfiles.sty'.