diff options
author | Karl Berry <karl@freefriends.org> | 2016-02-20 23:41:56 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-02-20 23:41:56 +0000 |
commit | 2660ff9b164e0df66d71e66640d107543c8651e0 (patch) | |
tree | 97028203f9bfda2c2b12237050ebdc30924abdde /Master/texmf-dist/source | |
parent | 96d5a1c4ed06b7fbfbba43fe27e862c59752d105 (diff) |
fithesis (20feb16)
git-svn-id: svn://tug.org/texlive/trunk@39803 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r-- | Master/texmf-dist/source/latex/fithesis/fithesis.dtx | 32 |
1 files changed, 31 insertions, 1 deletions
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 %</class> % ^^A Old fithesis classes |