summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/subfiles/subfiles.cls
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-02-14 22:34:36 +0000
committerKarl Berry <karl@freefriends.org>2020-02-14 22:34:36 +0000
commit7254c1be8ff5654e37a078be83a1c77ce723ff3a (patch)
tree20e726dbbf51bf9b411117c171b7bf659d51eccb /Master/texmf-dist/tex/latex/subfiles/subfiles.cls
parentb8d3ace4447b96b711b2722a4a65e3c9966dd51d (diff)
subfiles (14feb20)
git-svn-id: svn://tug.org/texlive/trunk@53782 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/subfiles/subfiles.cls')
-rw-r--r--Master/texmf-dist/tex/latex/subfiles/subfiles.cls26
1 files changed, 7 insertions, 19 deletions
diff --git a/Master/texmf-dist/tex/latex/subfiles/subfiles.cls b/Master/texmf-dist/tex/latex/subfiles/subfiles.cls
index eed0b1c431f..258a4544165 100644
--- a/Master/texmf-dist/tex/latex/subfiles/subfiles.cls
+++ b/Master/texmf-dist/tex/latex/subfiles/subfiles.cls
@@ -26,10 +26,11 @@
%% and the derived files subfiles.sty and subfiles.pdf
%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{subfiles}[2019/10/30 v1.5 Multi-file projects (class)]
+\ProvidesClass{subfiles}[2020/02/14 v1.6 Multi-file projects (class)]
\DeclareOption*{\typeout{Preamble taken from file `\CurrentOption'}%
\let\preamble@file\CurrentOption}
\ProcessOptions
+\let\@classoptionslist\relax
\let\subfiles@documentclass\documentclass
\let\documentclass\LoadClass\relax
\RequirePackage{verbatim}
@@ -37,26 +38,13 @@
\let\subfiles@endcomment\endcomment
\RequirePackage{import}
\def\subfiles@split#1{%
- \edef\subfiles@filename{#1}%
- \def\subfiles@dir{}%
- \def\subfiles@base{}%
- \def\subfiles@sep{}%
- \expandafter\subfiles@split@\subfiles@filename/\@nil/%
-}
-\def\subfiles@split@#1/{%
- \def\tmp{#1}%
- \ifx\tmp\@nnil
- \let\subfiles@next\relax
- \else
- \edef\subfiles@dir{\subfiles@dir\subfiles@base\subfiles@sep}%
- \def\subfiles@base{#1}%
- \def\subfiles@sep{/}%
- \let\subfiles@next\subfiles@split@
- \fi
- \subfiles@next
+ \let\subfiles@filename@simple\filename@simple
+ \def\filename@simple##1.\\{\edef\filename@base{##1}}%
+ \filename@parse{#1}%
+ \let\filename@simple\subfiles@filename@simple
}
\subfiles@split{\preamble@file}
-\subimport{\subfiles@dir}{\subfiles@base}
+\subimport{\filename@area}{\filename@base}
{\catcode`\@=11
\global\let\document\subfiles@document
\global\let\enddocument\subfiles@enddocument