summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/articleingud
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-11-20 01:09:25 +0000
committerKarl Berry <karl@freefriends.org>2012-11-20 01:09:25 +0000
commitbe36daf1ff08dd6f8c4ca39d25e3b6c74eae2bb9 (patch)
tree6a99571973a069e45fd367aae9c31698fdb71774 /Master/texmf-dist/tex/latex/articleingud
parentb2c83036fa4b19847dadd3e0c34560ede262a99c (diff)
articleingud (19nov12)
git-svn-id: svn://tug.org/texlive/trunk@28302 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/articleingud')
-rw-r--r--Master/texmf-dist/tex/latex/articleingud/articleingud.cls104
1 files changed, 67 insertions, 37 deletions
diff --git a/Master/texmf-dist/tex/latex/articleingud/articleingud.cls b/Master/texmf-dist/tex/latex/articleingud/articleingud.cls
index 73198aa70c8..5f26b2ef9b0 100644
--- a/Master/texmf-dist/tex/latex/articleingud/articleingud.cls
+++ b/Master/texmf-dist/tex/latex/articleingud/articleingud.cls
@@ -68,8 +68,10 @@
%%
\NeedsTeXFormat{LaTeX2e}%
\ProvidesClass{articleingud}%
-[2012/04/24 v0.1 Article for INGENIERIA UD]%
+[2012/11/10 v0.2 Article for INGENIERIA UD]%
\newif\ifINGUD@peerreview\INGUD@peerreviewfalse
+\newif\ifINGUD@ingudpapersize\INGUD@ingudpapersizefalse
+\newif\ifINGUD@rightcolauthor\INGUD@rightcolauthorfalse
\newif\ifINGUD@endofbiography\INGUD@endofbiographytrue
\newcommand{\INGUD@internalmargin}{21mm}%
\newcommand{\INGUD@externalmargin}{18mm}%
@@ -92,7 +94,7 @@
\newcommand{\INGUD@reviewinfo}{%
\begingroup
\normalfont\scriptsize\scshape
- \INGUD@reviewname \INGUD@separator
+ {\bfseries\INGUD@reviewname}\INGUD@separator
\ifINGUD@peerreview
draft, paper for peer review \INGUD@separator
\else
@@ -112,6 +114,8 @@
\ClassError{articleingud}%
{No \noexpand\INGUDsetciteinfo given}%
{See documentation for details}}%
+\DeclareOption{ingudpaper}{%
+ \global\INGUD@ingudpapersizetrue}%
\DeclareOption{titlepage}{%
\OptionNotUsed
\ClassError{articleingud}%
@@ -124,10 +128,17 @@
{See documentation for details}}%
\DeclareOption{peerreview}{%
\global\INGUD@peerreviewtrue}%
+\DeclareOption{rightcolauthor}{%
+ \global\INGUD@rightcolauthortrue}%
\DeclareOption*{%
\PassOptionsToClass{\CurrentOption}{article}}%
\ProcessOptions\relax
\LoadClass{article}%
+\ifINGUD@ingudpapersize
+ \setlength{\paperheight}{240mm}%
+ \setlength{\paperwidth}{170mm}%
+ \AtBeginDvi{\special{papersize=170mm,240mm}}%
+\fi
\setlength{\headheight}{24\p@}%
\setlength{\voffset}{\z@}%
\setlength{\headsep}{\INGUD@topmargin}%
@@ -209,12 +220,8 @@
\parbox[b][\headheight][b]{\@tempdima}%
{\parskip\z@ \parindent\z@
\normalfont\scriptsize
- \if@twoside
- \ifodd\c@page
- \raggedleft
- \else
- \raggedright
- \fi
+ \ifINGUD@rightcolauthor
+ \raggedright
\else
\raggedleft
\fi
@@ -226,12 +233,8 @@
{\parskip\z@ \parindent\z@
\normalfont\scriptsize
\ifINGUD@peerreview\else
- \if@twoside
- \ifodd\c@page
- \raggedleft
- \else
- \raggedright
- \fi
+ \ifINGUD@rightcolauthor
+ \raggedright
\else
\raggedleft
\fi
@@ -277,20 +280,15 @@
\def\endmaketitle{\clearpage}%
\long\def\@maketitle{%
\begingroup
-\if@twoside
- \ifodd\c@page
- \raggedright
- \else
- \raggedleft
- \fi
+\ifINGUD@rightcolauthor
+ \raggedleft
\else
\raggedright
\fi
\normalfont \parskip\z@ \parindent\z@
- {\LARGE\bfseries\@title}\par\nobreak
- \vskip 1.5em%
- {\Large\bfseries\slshape\INGUD@secondtitle}\par\nobreak
- \vskip 1.5em%
+ {\LARGE\bfseries\@title\par\nobreak}%
+ \vskip 1em%
+ {\Large\bfseries\slshape\INGUD@secondtitle\par\nobreak}%
\endgroup}%
\newcommand*{\INGUDsetvolume}[1]{\gdef\INGUD@reviewvolume{#1}}%
\newcommand*{\INGUDsetnumber}[1]{\gdef\INGUD@reviewnumber{#1}}%
@@ -302,7 +300,7 @@
\newcommand{\INGUDkeywordsname}{Key words}%
\newenvironment{INGUDkeywords}{%
\removelastskip
- \vskip0.5\baselineskip
+ \vskip0.25\baselineskip
\par\nobreak
\noindent\textbf{\INGUDkeywordsname :}%
\nobreakspace}{\par}%
@@ -345,8 +343,8 @@
\setlength{\@dblfpbot}{\z@ \@plus 1fil}%
\if@twoside
\def\ps@plainingud{%
- \def\@oddfoot{\INGUD@reviewinfo\hfil\thepage}%
- \def\@evenfoot{\thepage\hfil\INGUD@reviewinfo}%
+ \def\@oddfoot{\INGUD@reviewinfo\hfil{\bfseries\thepage}}%
+ \def\@evenfoot{{\bfseries\thepage}\hfil\INGUD@reviewinfo}%
\def\@oddhead{\vbox{\hb@xt@\textwidth{\hfil\INGUD@authorinfo}%
\vskip2\p@
\hrule \@height0.4\p@
@@ -362,7 +360,7 @@
\def\subsectionmark##1{}}%
\else
\def\ps@plainingud{%
- \def\@oddfoot{\INGUD@reviewinfo\hfil\thepage}%
+ \def\@oddfoot{\INGUD@reviewinfo\hfil{\bfseries\thepage}}%
\def\@oddhead{\vbox{\hb@xt@\textwidth{\hfil\INGUD@authorinfo}%
\vskip2\p@
\hrule \@height0.4\p@
@@ -373,36 +371,65 @@
\fi
\if@twoside
\def\ps@titlepageingud{%
+ \ifINGUD@rightcolauthor\else
\advance\oddsidemargin by \INGUD@colauthorinfosep
\advance\oddsidemargin by \INGUD@colauthorinfowidth
- \def\@oddfoot{\hskip-\INGUD@colauthorinfosep
- \hskip-\INGUD@colauthorinfowidth
- \hb@xt@\textwidth{\INGUD@reviewinfo\hfil\thepage}}%
- \def\@evenfoot{\thepage\hfil\INGUD@reviewinfo}%
+ \advance\evensidemargin by \INGUD@colauthorinfosep
+ \advance\evensidemargin by \INGUD@colauthorinfowidth
+ \fi
+ \ifINGUD@rightcolauthor
+ \def\@oddfoot{\INGUD@reviewinfo\hfil{\bfseries\thepage}}%
+ \def\@evenfoot{{\bfseries\thepage}\hfil\INGUD@reviewinfo}%
+ \else
+ \def\@oddfoot{\hskip-\INGUD@colauthorinfosep
+ \hskip-\INGUD@colauthorinfowidth
+ \hb@xt@\textwidth{\INGUD@reviewinfo
+ \hfil
+ {\bfseries\thepage}}}%
+ \def\@evenfoot{\hskip-\INGUD@colauthorinfosep
+ \hskip-\INGUD@colauthorinfowidth
+ \hb@xt@\textwidth{{\bfseries\thepage}%
+ \hfil
+ \INGUD@reviewinfo}}%
+ \fi
+ \ifINGUD@rightcolauthor
+ \def\@oddhead{\INGUD@makeciteinfo
+ \hfil
+ \hb@xt@\z@{\hskip-\INGUD@colauthorinfowidth
+ \INGUD@makeauthorinfo}}%
+ \else
\def\@oddhead{\hskip-\INGUD@colauthorinfosep
\hskip-\INGUD@colauthorinfowidth
\hb@xt@\textwidth{\INGUD@makeauthorinfo
\hfil
\INGUD@makeciteinfo}}%
- \def\@evenhead{\INGUD@makeciteinfo
- \hfil
- \hb@xt@\z@{\hskip-\INGUD@colauthorinfowidth
- \INGUD@makeauthorinfo}}%
+ \fi
+ \let\@evenhead\@oddhead
\let\@mkboth\markboth
\def\sectionmark##1{}%
\def\subsectionmark##1{}}%
\else
\def\ps@titlepageingud{%
+ \ifINGUD@rightcolauthor
+ \def\@oddfoot{\INGUD@reviewinfo\hfil{\bfseries\thepage}}%
+ \def\@oddhead{\INGUD@makeciteinfo
+ \hfil
+ \hb@xt@\z@{\hskip-\INGUD@colauthorinfowidth
+ \INGUD@makeauthorinfo}}%
+ \else
\advance\oddsidemargin by \INGUD@colauthorinfosep
\advance\oddsidemargin by \INGUD@colauthorinfowidth
\def\@oddfoot{\hskip-\INGUD@colauthorinfosep
\hskip-\INGUD@colauthorinfowidth
- \hb@xt@\textwidth{\INGUD@reviewinfo\hfil\thepage}}%
+ \hb@xt@\textwidth{\INGUD@reviewinfo
+ \hfil
+ {\bfseries\thepage}}}%
\def\@oddhead{\hskip-\INGUD@colauthorinfosep
\hskip-\INGUD@colauthorinfowidth
\hb@xt@\textwidth{\INGUD@makeauthorinfo
\hfil
\INGUD@makeciteinfo}}%
+ \fi
\let\@mkboth\markboth
\def\sectionmark##1{}}%
\fi
@@ -498,6 +525,9 @@
\par \nobreak \noindent
\normalfont \footnotesize \ignorespaces}%
\fi
+\renewcommand{\sfdefault}{phv}%
+\renewcommand{\rmdefault}{ptm}%
+\renewcommand{\ttdefault}{pcr}%
\pagestyle{plainingud}%
\endinput
%%