Merge pull request #81 from rchurchley/simplify

Streamline .dtx files
This commit is contained in:
Matthias Vogelgesang 2015-06-16 23:17:07 +02:00
commit e70b12c509
5 changed files with 80 additions and 219 deletions

View File

@ -1,77 +1,32 @@
% \iffalse meta-comment % \iffalse meta-comment -------------------------------------------------------
% Copyright 2015 Matthias Vogelgesang and the LaTeX community. A full list of
% contributors can be found at
% %
% Copyright (C) 2015 by Matthias Vogelgesang <matthias.vogelgesang@gmail.com> % https://github.com/matze/mtheme/graphs/contributors
% ---------------------------------------------------------------------------
% Licensed under CC-BY-SA 4.0 International.
% %
% The initial template comes from the HSRM beamer theme by Benjamin Weiss, % and the original template was based on the HSRM theme by Benjamin Weiss.
% which you can find at https://github.com/benjamin-weiss/hsrmbeamertheme.
% ---------------------------------------------------------------------------
%
% The Current Maintainer of this work is Matthias Vogelgesang.
%
% This work consists of the files beamercolorthememetropolis.dtx and
% beamercolorthememetropolis.ins and the derived filebase
% beamercolorthememetropolis.sty.
%
% \fi
% %
% This work is licensed under a Creative Commons Attribution-ShareAlike 4.0
% International License (https://creativecommons.org/licenses/by-sa/4.0/).
% ------------------------------------------------------------------------- \fi
% \iffalse % \iffalse
%<*driver> %<driver> \ProvidesFile{beamercolorthememetropolis.dtx}
\ProvidesFile{beamercolorthememetropolis.dtx}
%</driver>
%<package>\NeedsTeXFormat{LaTeX2e}
%<package>\ProvidesPackage{beamercolorthememetropolis}
%<*package> %<*package>
[2015/06/12 1.0.0 A Modern Beamer Color Theme] \NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamercolorthememetropolis}
[2015/06/12 A Modern Beamer Color Theme]
%</package> %</package>
% %<driver> \documentclass{ltxdoc}
%<*driver> %<driver> \usepackage{beamercolorthememetropolis}
\documentclass{ltxdoc} %<driver> \begin{document}
\usepackage{beamercolorthememetropolis} %<driver> \DocInput{beamercolorthememetropolis.dtx}
\EnableCrossrefs %<driver> \end{document}
\CodelineIndex
\RecordChanges
\begin{document}
\DocInput{beamercolorthememetropolis.dtx}
\PrintChanges
\PrintIndex
\end{document}
%</driver>
% \fi % \fi
%
% \CheckSum{0} % \CheckSum{0}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
% Digits \0\1\2\3\4\5\6\7\8\9
% Exclamation \! Double quote \" Hash (number) \#
% Dollar \$ Percent \% Ampersand \&
% Acute accent \' Left paren \( Right paren \)
% Asterisk \* Plus \+ Comma \,
% Minus \- Point \. Solidus \/
% Colon \: Semicolon \; Less than \<
% Equals \= Greater than \> Question mark \?
% Commercial at \@ Left bracket \[ Backslash \\
% Right bracket \] Circumflex \^ Underscore \_
% Grave accent \` Left brace \{ Vertical bar \|
% Right brace \} Tilde \~}
%
%
% \changes{1.0.0}{2015/06/12}{Initial Stable Release.}
%
% \DoNotIndex{\newcommand,\newenvironment}
%
%
% \StopEventually{} % \StopEventually{}
%
% \subsection{Color Theme}
%
% \iffalse % \iffalse
%<*package> %<*package>
% \fi % ------------------------------------------------------------------------- \fi
% %
% Options % Options
% %
@ -213,6 +168,5 @@
% \iffalse % \iffalse
%</package> %</package>
% \fi % \fi
%
% \Finale % \Finale
\endinput \endinput

View File

@ -1,77 +1,32 @@
% \iffalse meta-comment % \iffalse meta-comment -------------------------------------------------------
% Copyright 2015 Matthias Vogelgesang and the LaTeX community. A full list of
% contributors can be found at
% %
% Copyright (C) 2015 by Matthias Vogelgesang <matthias.vogelgesang@gmail.com> % https://github.com/matze/mtheme/graphs/contributors
% ---------------------------------------------------------------------------
% Licensed under CC-BY-SA 4.0 International.
% %
% The initial template comes from the HSRM beamer theme by Benjamin Weiss, % and the original template was based on the HSRM theme by Benjamin Weiss.
% which you can find at https://github.com/benjamin-weiss/hsrmbeamertheme.
% ---------------------------------------------------------------------------
%
% The Current Maintainer of this work is Matthias Vogelgesang.
%
% This work consists of the files beamerfontthememetropolis.dtx and
% beamerfontthememetropolis.ins and the derived filebase
% beamerfontthememetropolis.sty.
%
% \fi
% %
% This work is licensed under a Creative Commons Attribution-ShareAlike 4.0
% International License (https://creativecommons.org/licenses/by-sa/4.0/).
% ------------------------------------------------------------------------- \fi
% \iffalse % \iffalse
%<*driver> %<driver> \ProvidesFile{beamerfontthememetropolis.dtx}
\ProvidesFile{beamerfontthememetropolis.dtx}
%</driver>
%<package>\NeedsTeXFormat{LaTeX2e}
%<package>\ProvidesPackage{beamerfontthememetropolis}
%<*package> %<*package>
[2015/06/12 1.0.0 A Modern Beamer Font Theme] \NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamerfontthememetropolis}
[2015/06/12 A Modern Beamer Font Theme]
%</package> %</package>
% %<driver> \documentclass{ltxdoc}
%<*driver> %<driver> \usepackage{beamerfontthememetropolis}
\documentclass{ltxdoc} %<driver> \begin{document}
\usepackage{beamerfontthememetropolis} %<driver> \DocInput{beamerfontthememetropolis.dtx}
\EnableCrossrefs %<driver> \end{document}
\CodelineIndex
\RecordChanges
\begin{document}
\DocInput{beamerfontthememetropolis.dtx}
\PrintChanges
\PrintIndex
\end{document}
%</driver>
% \fi % \fi
%
% \CheckSum{0} % \CheckSum{0}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
% Digits \0\1\2\3\4\5\6\7\8\9
% Exclamation \! Double quote \" Hash (number) \#
% Dollar \$ Percent \% Ampersand \&
% Acute accent \' Left paren \( Right paren \)
% Asterisk \* Plus \+ Comma \,
% Minus \- Point \. Solidus \/
% Colon \: Semicolon \; Less than \<
% Equals \= Greater than \> Question mark \?
% Commercial at \@ Left bracket \[ Backslash \\
% Right bracket \] Circumflex \^ Underscore \_
% Grave accent \` Left brace \{ Vertical bar \|
% Right brace \} Tilde \~}
%
%
% \changes{1.0.0}{2015/06/12}{Initial Stable Release.}
%
% \DoNotIndex{\newcommand,\newenvironment}
%
%
% \StopEventually{} % \StopEventually{}
%
% \subsection{Font Theme}
%
% \iffalse % \iffalse
%<*package> %<*package>
% \fi % ------------------------------------------------------------------------- \fi
% %
% Font Definitions % Font Definitions
% %
@ -123,6 +78,5 @@
% \iffalse % \iffalse
%</package> %</package>
% \fi % \fi
%
% \Finale % \Finale
\endinput \endinput

View File

@ -1,76 +1,33 @@
% \iffalse meta-comment % \iffalse meta-comment -------------------------------------------------------
% Copyright 2015 Matthias Vogelgesang and the LaTeX community. A full list of
% contributors can be found at
% %
% Copyright (C) 2015 by Matthias Vogelgesang <matthias.vogelgesang@gmail.com> % https://github.com/matze/mtheme/graphs/contributors
% ---------------------------------------------------------------------------
% Licensed under CC-BY-SA 4.0 International.
% %
% The initial template comes from the HSRM beamer theme by Benjamin Weiss, % and the original template was based on the HSRM theme by Benjamin Weiss.
% which you can find at https://github.com/benjamin-weiss/hsrmbeamertheme.
% ---------------------------------------------------------------------------
%
% The Current Maintainer of this work is Matthias Vogelgesang.
%
% This work consists of the files beamerthemem.dtx and beamerthemem.ins
% and the derived filebase beamerthemem.sty.
%
% \fi
% %
% This work is licensed under a Creative Commons Attribution-ShareAlike 4.0
% International License (https://creativecommons.org/licenses/by-sa/4.0/).
% ------------------------------------------------------------------------- \fi
% \iffalse % \iffalse
%<*driver> %<driver> \ProvidesFile{beamerthemem.dtx}
\ProvidesFile{beamerthemem.dtx}
%</driver>
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package>\ProvidesPackage{beamerthemem}
%<*package> %<*package>
[2015/06/12 1.0.0 A Modern Beamer Theme] \NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamerthemem}
[2015/06/12 A Modern Beamer Theme]
%</package> %</package>
% %<driver> \documentclass{ltxdoc}
%<*driver> %<driver> \usepackage{beamerthemem}
\documentclass{ltxdoc} %<driver> \begin{document}
\usepackage{beamerthemem} %<driver> \DocInput{beamerthemem.dtx}
\EnableCrossrefs %<driver> \end{document}
\CodelineIndex
\RecordChanges
\begin{document}
\DocInput{beamerthemem.dtx}
\PrintChanges
\PrintIndex
\end{document}
%</driver>
% \fi % \fi
%
% \CheckSum{0} % \CheckSum{0}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
% Digits \0\1\2\3\4\5\6\7\8\9
% Exclamation \! Double quote \" Hash (number) \#
% Dollar \$ Percent \% Ampersand \&
% Acute accent \' Left paren \( Right paren \)
% Asterisk \* Plus \+ Comma \,
% Minus \- Point \. Solidus \/
% Colon \: Semicolon \; Less than \<
% Equals \= Greater than \> Question mark \?
% Commercial at \@ Left bracket \[ Backslash \\
% Right bracket \] Circumflex \^ Underscore \_
% Grave accent \` Left brace \{ Vertical bar \|
% Right brace \} Tilde \~}
%
%
% \changes{1.0.0}{2015/06/12}{Initial Stable Release.}
%
% \DoNotIndex{\newcommand,\newenvironment}
%
%
% \StopEventually{} % \StopEventually{}
%
% \subsection{Main Theme}
%
% \iffalse % \iffalse
%<*package> %<*package>
% \fi % ------------------------------------------------------------------------- \fi
%
% %
% %
% Options % Options
@ -708,6 +665,5 @@
% \iffalse % \iffalse
%</package> %</package>
% \fi % \fi
%
% \Finale % \Finale
\endinput \endinput

View File

@ -1,19 +1,16 @@
%%
%% This is file `mtheme.sty',
%%
%% Copyright (C) 2015 by Matthias Vogelgesang <matthias.vogelgesang@gmail.com>
%% --------------------------------------------------------------------------- %% ---------------------------------------------------------------------------
%% Licensed under CC-BY-SA 4.0 International. %% Copyright 2015 Matthias Vogelgesang and the LaTeX community. A full list of
%% contributors can be found at
%% %%
%% The initial template comes from the HSRM beamer theme by Benjamin Weiss, %% https://github.com/matze/mtheme/graphs/contributors
%% which you can find at https://github.com/benjamin-weiss/hsrmbeamertheme. %%
%% and the original template was based on the HSRM theme by Benjamin Weiss.
%%
%% This work is licensed under a Creative Commons Attribution-ShareAlike 4.0
%% International License (https://creativecommons.org/licenses/by-sa/4.0/).
%% --------------------------------------------------------------------------- %% ---------------------------------------------------------------------------
%%
\documentclass{ltxdoc} \documentclass{ltxdoc}
\EnableCrossrefs
\CodelineIndex
\RecordChanges
%\OnlyDescription %\OnlyDescription
\usepackage{setspace} \usepackage{setspace}
@ -77,7 +74,7 @@
\GetFileInfo{beamerthemem.dtx} \GetFileInfo{beamerthemem.dtx}
\title{Modern Beamer Presentations\\with the\\\textsc{mtheme} package} \title{Modern Beamer Presentations\\with the\\\textsc{mtheme} package}
\author{Matthias Vogelgesang \\ \url{matthias.vogelgesang@gmail.com}} \author{Matthias Vogelgesang \\ \url{matthias.vogelgesang@gmail.com}}
\date{\fileversion~from \filedate} \date{v0.x.x}
\begin{document} \begin{document}
@ -113,8 +110,6 @@ To get started with the theme is very simple. The following code shows a minimal
\section{Known Issues} \section{Known Issues}
\section{Changelog}
\section{License} \section{License}
The theme itself is licensed under a \href{http://creativecommons.org/licenses/by-sa/4.0/}{Creative Commons Attribution-ShareAlike 4.0 International License}. This means that if you change the theme and re-distribute it, you must retain the copyright notice header and license it under the same CC-BY-SA license. This does not affect the presentation that you create with the theme. The theme itself is licensed under a \href{http://creativecommons.org/licenses/by-sa/4.0/}{Creative Commons Attribution-ShareAlike 4.0 International License}. This means that if you change the theme and re-distribute it, you must retain the copyright notice header and license it under the same CC-BY-SA license. This does not affect the presentation that you create with the theme.

View File

@ -1,30 +1,32 @@
%% Copyright (C) 2015 by Matthias Vogelgesang <matthias.vogelgesang@gmail.com>
%% --------------------------------------------------------------------------- %% ---------------------------------------------------------------------------
%% Licensed under CC-BY-SA 4.0 International. %% Copyright 2015 Matthias Vogelgesang and the LaTeX community. A full list of
%% contributors can be found at
%% %%
%% The Current Maintainer of this work is Matthias Vogelgesang. %% https://github.com/matze/mtheme/graphs/contributors
%% %%
%% This work consists of the files beamerthemem.dtx and beamerthemem.ins %% and the original template was based on the HSRM theme by Benjamin Weiss.
%% and the derived filebase beamerthemem.sty.
%% %%
%% This work is licensed under a Creative Commons Attribution-ShareAlike 4.0
%% International License (https://creativecommons.org/licenses/by-sa/4.0/).
%% ---------------------------------------------------------------------------
\input docstrip.tex \input{docstrip.tex}
\keepsilent \keepsilent
\askforoverwritefalse \askforoverwritefalse
\usedir{tex/latex/mtheme} \usedir{tex/latex/mtheme}
\preamble \preamble
This is a generated file
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
Copyright 2014 Matthias Vogelgesang Copyright 2015 Matthias Vogelgesang and the LaTeX community. A full list of
Licensed under CC-BY-SA 4.0 International. contributors can be found at
The initial template comes from the HSRM beamer theme by Benjamin Weiss, https://github.com/matze/mtheme/graphs/contributors
which you can find at https://github.com/benjamin-weiss/hsrmbeamertheme.
and the original template was based on the HSRM theme by Benjamin Weiss.
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0
International License (https://creativecommons.org/licenses/by-sa/4.0/).
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
\endpreamble \endpreamble
\generate{\file{beamerthemem.sty}{% \generate{\file{beamerthemem.sty}{%