From 2660ff9b164e0df66d71e66640d107543c8651e0 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 20 Feb 2016 23:41:56 +0000 Subject: fithesis (20feb16) git-svn-id: svn://tug.org/texlive/trunk@39803 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/source/latex/fithesis/fithesis.dtx | 32 +++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) (limited to 'Master/texmf-dist/source') diff --git a/Master/texmf-dist/source/latex/fithesis/fithesis.dtx b/Master/texmf-dist/source/latex/fithesis/fithesis.dtx index a95f132dd54..40627b44843 100644 --- a/Master/texmf-dist/source/latex/fithesis/fithesis.dtx +++ b/Master/texmf-dist/source/latex/fithesis/fithesis.dtx @@ -52,11 +52,16 @@ %<*class> \NeedsTeXFormat{LaTeX2e} % Define `\thesis@version` and store it in the `VERSION.tex` file \fi -\def\thesis@version{2016/02/18 v0.3.32 fithesis3 MU thesis class} +{\def\thesis@versiondef#1#2{ + \gdef\thesis@version@number{#1} + \gdef\thesis@version@date{#2} + \gdef\thesis@version{#2 #1 fithesis3 MU thesis class}} +\thesis@versiondef{v0.3.33}{2016/02/19}} % {\newwrite\f\openout\f=VERSION\write\f{\thesis@version}\closeout\f} % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % +% \changes{v0.3.33} {2016/02/19}{Added \cs{thesis@patch}.} % \changes{v0.3.32} {2016/02/18}{Fixed a regression from % v0.3.27:2 -- The margins in \cs{thesis@blocks@mainMatter} were % corrected in the style files of the Faculty of Economics and @@ -1510,6 +1515,31 @@ \language\csname l@\thesis@locale\endcsname }} % \end{macrocode} +% \begin{macro}{\thesis@patch} +% The |\thesis@patch|\oarg{versions}\oarg{patch} macro expands +% \textit{patch}, if |\thesis@version|\texttt{\discretionary{@}^^A +% {@}{@}}|number| (defined at the top of the file +% \texttt{fithesis3.cls}) matches any of the comma-delimited +% \textit{versions}. This macro enables the simple deployment of +% version-targeted patches. +% \begin{macrocode} +\def\thesis@patch#1#2{% + \def\thesis@patch@versions{#1}% + \def\thesis@patch@action{#2}% + \def\thesis@patch@next##1,{% + \def\thesis@patch@arg{##1}% + \def\thesis@patch@relax{\relax}% + \ifx\thesis@patch@arg\thesis@version@number + \def\thesis@patch@next####1\relax,{}% + \expandafter\thesis@patch@action + \expandafter\thesis@patch@next + \else\ifx\thesis@patch@arg\thesis@patch@relax\else + \expandafter\expandafter\expandafter\thesis@patch@next + \fi\fi}% + \expandafter\expandafter\expandafter\thesis@patch@next + \expandafter\thesis@patch@versions\expandafter,\relax,} +% \end{macrocode} +% \end{macro} % \iffalse % % ^^A Old fithesis classes -- cgit v1.2.3