diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/upmethodology/upmethodology-document.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/upmethodology/upmethodology-document.cls | 54 |
1 files changed, 33 insertions, 21 deletions
diff --git a/Master/texmf-dist/tex/latex/upmethodology/upmethodology-document.cls b/Master/texmf-dist/tex/latex/upmethodology/upmethodology-document.cls index 4e993264da1..94372cf9632 100644 --- a/Master/texmf-dist/tex/latex/upmethodology/upmethodology-document.cls +++ b/Master/texmf-dist/tex/latex/upmethodology/upmethodology-document.cls @@ -17,7 +17,7 @@ % write to the Free Software Foundation, Inc., 59 Temple Place - Suite % 330, Boston, MA 02111-1307, USA. -\global\edef\upm@package@docclazz@ver{2013/09/05} +\global\edef\upm@package@docclazz@ver{2013/09/29} \NeedsTeXFormat{LaTeX2e}[1995/12/01] \ProvidesClass{upmethodology-document}[\upm@package@docclazz@ver] @@ -28,6 +28,8 @@ \upm@package@docclazz@nodocinfofalse \newif\ifupm@package@docclazz@nopubpage \upm@package@docclazz@nopubpagefalse +\newif\ifupm@package@docclazz@autofrontmatter +\upm@package@docclazz@autofrontmatterfalse \gdef\upm@package@docclazz@optionstopass{a4paper,11pt} @@ -62,6 +64,12 @@ \DeclareOption{pubpage}{% \global\upm@package@docclazz@nopubpagefalse% } +\DeclareOption{nofrontmatter}{% + \global\upm@package@docclazz@autofrontmatterfalse% +} +\DeclareOption{frontmatter}{% + \global\upm@package@docclazz@autofrontmattertrue% +} \DeclareOption{book}{% \global\upmbookformattrue \global\upmreportformatfalse @@ -167,18 +175,35 @@ \fi %---------------------------------------- +% FRONT, MAIN AND BACK MATTERS +%---------------------------------------- + +\global\let\upm@package@docclazz@frontmatter\frontmatter +\gdef\frontmatter{\pagestyle{headings}\pagenumbering{roman}\global\let\frontmatter\relax} + +\global\let\upm@package@docclazz@mainmatter\mainmatter +\gdef\mainmatter{\cleardoublepage\pagestyle{fancyplain}\upm@package@docclazz@mainmatter} + +%\global\let\upm@package@docclazz@backmatter\backmatter +%\gdef\backmatter{% +% \pagestyle{plain} +% \upm@package@docclazz@backmatter% +%} + +%---------------------------------------- % AUTO-GENERATED DOCUMENT %---------------------------------------- -\AtBeginDocument{ - \makefrontcover - \ifupm@package@docclazz@nopubpage\else\upmpublicationpage\fi - \ifupm@package@docclazz@nodocinfo\else\upmdocinfopage\fi - \sloppy +\AtBeginDocument{% + \ifupm@package@docclazz@autofrontmatter\frontmatter\fi% + \makefrontcover% + \ifupm@package@docclazz@nopubpage\else\upmpublicationpage\fi% + \ifupm@package@docclazz@nodocinfo\else\upmdocinfopage\fi% + \sloppy% } -\AtEndDocument{ - \makebackcover +\AtEndDocument{% + \makebackcover% } %---------------------------------------- @@ -221,17 +246,4 @@ \fi\fi - -\global\let\upm@package@docclazz@frontmatter\frontmatter -\gdef\frontmatter{\pagestyle{headings}\pagenumbering{roman}} - -\global\let\upm@package@docclazz@mainmatter\mainmatter -\gdef\mainmatter{\cleardoublepage\pagestyle{fancyplain}\upm@package@docclazz@mainmatter} - -%\global\let\upm@package@docclazz@backmatter\backmatter -%\gdef\backmatter{% -% \pagestyle{plain} -% \upm@package@docclazz@backmatter% -%} - \endinput |