projects
/
latex-mlastyle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b982cf6
)
Substituted instructor and course for professor and classname
author
Tim Pope
<code@tpope.net>
Thu, 13 Nov 2003 07:25:52 +0000
(07:25 +0000)
committer
Tim Pope
<code@tpope.net>
Thu, 13 Nov 2003 07:25:52 +0000
(07:25 +0000)
mlastyle.dtx
patch
|
blob
|
history
diff --git
a/mlastyle.dtx
b/mlastyle.dtx
index d38f36c494a904afd42172d2c9116bc88d890580..fbb8c272d41397790bb5d95ca736fd7f2253d7aa 100644
(file)
--- a/
mlastyle.dtx
+++ b/
mlastyle.dtx
@@
-126,8
+126,8
@@
%\usepackage{mlastyle}
%
%\author{John Doe}
%\usepackage{mlastyle}
%
%\author{John Doe}
-%\
profess
or{Professor Smith}
-%\c
lassnam
e{English 101}
+%\
instruct
or{Professor Smith}
+%\c
ours
e{English 101}
%\date{1~Jan.\ 1970}
%\title{The Futility of Compulsory English Classes}
%
%\date{1~Jan.\ 1970}
%\title{The Futility of Compulsory English Classes}
%
@@
-137,18
+137,18
@@
%\end{document}\end{verbatim}
% \subsection{Initiation Macros}
% \DescribeMacro{\maketitle}
%\end{document}\end{verbatim}
% \subsection{Initiation Macros}
% \DescribeMacro{\maketitle}
-% \DescribeMacro{\
profess
or}
-% \DescribeMacro{\c
lassnam
e}
+% \DescribeMacro{\
instuct
or}
+% \DescribeMacro{\c
ours
e}
% The mandatory heading\index{heading|usage} is generated with
% |\maketitle|. Use the standard macros |\author|, |\title|, and |\date|
% The mandatory heading\index{heading|usage} is generated with
% |\maketitle|. Use the standard macros |\author|, |\title|, and |\date|
-% to specify the relevant information. To define the
profess
or and name
-% of the c
lass, use the aptly named |\professor|\marg{name
} and
-% |\
classname|\marg{class
} macros.
+% to specify the relevant information. To define the
instruct
or and name
+% of the c
ourse, use the aptly named |\instructor|\marg{instructor
} and
+% |\
instructor|\marg{course
} macros.
%
%
-% \DescribeMacro{\
last
name}
+% \DescribeMacro{\
sur
name}
% The last name for use in the header\index{header|usage} is derived from
% |\author|. If this does not produce the desired result, use
% The last name for use in the header\index{header|usage} is derived from
% |\author|. If this does not produce the desired result, use
-% |\
last
name|\marg{last name} to override it.
+% |\
sur
name|\marg{last name} to override it.
%
% \DescribeMacro{\date}
% \DescribeMacro{\today}
%
% \DescribeMacro{\date}
% \DescribeMacro{\today}
@@
-178,24
+178,23
@@
% \subsection{Documentating Sources}
%
% Coupled with \BibTeX, \package{mlastyle} provides a experimental
% \subsection{Documentating Sources}
%
% Coupled with \BibTeX, \package{mlastyle} provides a experimental
-% implementation of MLA documentation style.
Load the bibliography style
-%
by putting |\bibliographystyle{mlastyle}| in the document preamb
le.
+% implementation of MLA documentation style.
Put |\bibstyle{mlastyle}| in
+%
the document preamble to load the bibliography sty
le.
%
% \StopEventually{\PrintChanges\PrintIndex}
%
% \StopEventually{\PrintChanges\PrintIndex}
+%
+% \section{Implementation}
% \iffalse
%<*package>
% \fi
% \iffalse
%<*package>
% \fi
-% \section{Implementation}
-%
% \subsection{Options}
%
% \subsection{Options}
%
-% First, the options.
+% Most options are implemented by modifying a |\newif| declared for this
+% purpose.
% \begin{macrocode}
\newif\ifmlastyle@bibstyle
\DeclareOption{bibstyle}{\mlastyle@bibstyletrue}
\DeclareOption{nobibstyle}{\mlastyle@bibstylefalse}
% \begin{macrocode}
\newif\ifmlastyle@bibstyle
\DeclareOption{bibstyle}{\mlastyle@bibstyletrue}
\DeclareOption{nobibstyle}{\mlastyle@bibstylefalse}
-% \end{macrocode}
-% \begin{macrocode}
\newif\ifmlastyle@papersize
\DeclareOption{papersize}{\mlastyle@papersizetrue}
\DeclareOption{nopapersize}{\mlastyle@papersizefalse}
\newif\ifmlastyle@papersize
\DeclareOption{papersize}{\mlastyle@papersizetrue}
\DeclareOption{nopapersize}{\mlastyle@papersizefalse}
@@
-261,22
+260,25
@@
\fi % \ifmlastyle@times
% \end{macrocode}
% \subsection{Macros}
\fi % \ifmlastyle@times
% \end{macrocode}
% \subsection{Macros}
-% \begin{macro}{\
profess
or}
-% Define the
professor
.
+% \begin{macro}{\
instruct
or}
+% Define the
instructor, along with an obsolete synonym
.
% \begin{macrocode}
% \begin{macrocode}
-\def\professor#1{\gdef\theprofessor{#1}}
+\def\instructor#1{\gdef\mlastyle@instructor{#1}}
+\let\professor\instructor
% \end{macrocode}
% \end{macro}
% \end{macrocode}
% \end{macro}
-% \begin{macro}{\c
lassnam
e}
-% Define the c
lass
.
+% \begin{macro}{\c
ours
e}
+% Define the c
ourse, along with an obsolete synonym
.
% \begin{macrocode}
% \begin{macrocode}
-\def\classname#1{\gdef\theclassname{#1}}
+\def\course#1{\gdef\mlastyle@course{#1}}
+\let\classname\course
% \end{macrocode}
% \end{macro}
% \end{macrocode}
% \end{macro}
-% \begin{macro}{\
last
name}
-% Define the
last name
.
+% \begin{macro}{\
sur
name}
+% Define the
surname, along with an obsolete synonym
.
% \begin{macrocode}
% \begin{macrocode}
-\def\lastname#1{\gdef\thelastname{#1}}
+\def\surname#1{\gdef\mlastyle@surname{#1}}
+\let\lastname\surname
% \end{macrocode}
% \end{macro}
% \subsection{Formatting}
% \end{macrocode}
% \end{macro}
% \subsection{Formatting}
@@
-291,8
+293,8
@@
% \begin{macrocode}
\renewcommand{\maketitle}{\begin{flushleft}
\@author\par
% \begin{macrocode}
\renewcommand{\maketitle}{\begin{flushleft}
\@author\par
- \@ifundefined{
theprofessor}{}{\theprofess
or}\par
- \@ifundefined{
theclassname}{}{\theclassnam
e}\par
+ \@ifundefined{
mlastyle@instructor}{}{\mlastyle@instruct
or}\par
+ \@ifundefined{
mlastyle@course}{}{\mlastyle@cours
e}\par
\@date\end{flushleft}
\begin{center}\@title\end{center}\par
}
\@date\end{flushleft}
\begin{center}\@title\end{center}\par
}
@@
-429,8
+431,8
@@
\fancypagestyle{mlastyle}{
\fancyhf{}
\def\sw@llow##1 {}
\fancypagestyle{mlastyle}{
\fancyhf{}
\def\sw@llow##1 {}
- \rhead{\@ifundefined{
thelast
name}%
- {\expandafter\sw@llow\@author}{\
thelast
name} \thepage}
+ \rhead{\@ifundefined{
mlastyle@sur
name}%
+ {\expandafter\sw@llow\@author}{\
mlastyle@sur
name} \thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
}
@@
-634,3
+636,4
@@
%
% \Finale
\endinput
%
% \Finale
\endinput
+% vim:tw=74