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>
% ---------------------------------------------------------------------------
% Licensed under CC-BY-SA 4.0 International.
% https://github.com/matze/mtheme/graphs/contributors
%
% The initial template comes from the HSRM beamer 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
% 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/).
% ------------------------------------------------------------------------- \fi
% \iffalse
%<*driver>
\ProvidesFile{beamercolorthememetropolis.dtx}
%</driver>
%<package>\NeedsTeXFormat{LaTeX2e}
%<package>\ProvidesPackage{beamercolorthememetropolis}
%<driver> \ProvidesFile{beamercolorthememetropolis.dtx}
%<*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>
%
%<*driver>
\documentclass{ltxdoc}
\usepackage{beamercolorthememetropolis}
\EnableCrossrefs
\CodelineIndex
\RecordChanges
\begin{document}
\DocInput{beamercolorthememetropolis.dtx}
\PrintChanges
\PrintIndex
\end{document}
%</driver>
%<driver> \documentclass{ltxdoc}
%<driver> \usepackage{beamercolorthememetropolis}
%<driver> \begin{document}
%<driver> \DocInput{beamercolorthememetropolis.dtx}
%<driver> \end{document}
% \fi
%
% \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{}
%
% \subsection{Color Theme}
%
% \iffalse
%<*package>
% \fi
% ------------------------------------------------------------------------- \fi
%
% Options
%
@ -213,6 +168,5 @@
% \iffalse
%</package>
% \fi
%
% \Finale
\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>
% ---------------------------------------------------------------------------
% Licensed under CC-BY-SA 4.0 International.
% https://github.com/matze/mtheme/graphs/contributors
%
% The initial template comes from the HSRM beamer 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
% 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/).
% ------------------------------------------------------------------------- \fi
% \iffalse
%<*driver>
\ProvidesFile{beamerfontthememetropolis.dtx}
%</driver>
%<package>\NeedsTeXFormat{LaTeX2e}
%<package>\ProvidesPackage{beamerfontthememetropolis}
%<driver> \ProvidesFile{beamerfontthememetropolis.dtx}
%<*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>
%
%<*driver>
\documentclass{ltxdoc}
\usepackage{beamerfontthememetropolis}
\EnableCrossrefs
\CodelineIndex
\RecordChanges
\begin{document}
\DocInput{beamerfontthememetropolis.dtx}
\PrintChanges
\PrintIndex
\end{document}
%</driver>
%<driver> \documentclass{ltxdoc}
%<driver> \usepackage{beamerfontthememetropolis}
%<driver> \begin{document}
%<driver> \DocInput{beamerfontthememetropolis.dtx}
%<driver> \end{document}
% \fi
%
% \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{}
%
% \subsection{Font Theme}
%
% \iffalse
%<*package>
% \fi
% ------------------------------------------------------------------------- \fi
%
% Font Definitions
%
@ -123,6 +78,5 @@
% \iffalse
%</package>
% \fi
%
% \Finale
\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>
% ---------------------------------------------------------------------------
% Licensed under CC-BY-SA 4.0 International.
% https://github.com/matze/mtheme/graphs/contributors
%
% The initial template comes from the HSRM beamer 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
% 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/).
% ------------------------------------------------------------------------- \fi
% \iffalse
%<*driver>
\ProvidesFile{beamerthemem.dtx}
%</driver>
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package>\ProvidesPackage{beamerthemem}
%<driver> \ProvidesFile{beamerthemem.dtx}
%<*package>
[2015/06/12 1.0.0 A Modern Beamer Theme]
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamerthemem}
[2015/06/12 A Modern Beamer Theme]
%</package>
%
%<*driver>
\documentclass{ltxdoc}
\usepackage{beamerthemem}
\EnableCrossrefs
\CodelineIndex
\RecordChanges
\begin{document}
\DocInput{beamerthemem.dtx}
\PrintChanges
\PrintIndex
\end{document}
%</driver>
%<driver> \documentclass{ltxdoc}
%<driver> \usepackage{beamerthemem}
%<driver> \begin{document}
%<driver> \DocInput{beamerthemem.dtx}
%<driver> \end{document}
% \fi
%
% \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{}
%
% \subsection{Main Theme}
%
% \iffalse
%<*package>
% \fi
% ------------------------------------------------------------------------- \fi
%
%
%
% Options
@ -708,6 +665,5 @@
% \iffalse
%</package>
% \fi
%
% \Finale
\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,
%% which you can find at https://github.com/benjamin-weiss/hsrmbeamertheme.
%% https://github.com/matze/mtheme/graphs/contributors
%%
%% 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}
\EnableCrossrefs
\CodelineIndex
\RecordChanges
%\OnlyDescription
\usepackage{setspace}
@ -77,7 +74,7 @@
\GetFileInfo{beamerthemem.dtx}
\title{Modern Beamer Presentations\\with the\\\textsc{mtheme} package}
\author{Matthias Vogelgesang \\ \url{matthias.vogelgesang@gmail.com}}
\date{\fileversion~from \filedate}
\date{v0.x.x}
\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{Changelog}
\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.

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 derived filebase beamerthemem.sty.
%% 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/).
%% ---------------------------------------------------------------------------
\input docstrip.tex
\input{docstrip.tex}
\keepsilent
\askforoverwritefalse
\usedir{tex/latex/mtheme}
\preamble
This is a generated file
---------------------------------------------------------------------------
Copyright 2014 Matthias Vogelgesang
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,
which you can find at https://github.com/benjamin-weiss/hsrmbeamertheme.
https://github.com/matze/mtheme/graphs/contributors
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
\generate{\file{beamerthemem.sty}{%