summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/coursepaper
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/coursepaper
Initial commit
Diffstat (limited to 'macros/latex/contrib/coursepaper')
-rw-r--r--macros/latex/contrib/coursepaper/coursepaper.cls41
-rw-r--r--macros/latex/contrib/coursepaper/coursepaper.tex18
2 files changed, 59 insertions, 0 deletions
diff --git a/macros/latex/contrib/coursepaper/coursepaper.cls b/macros/latex/contrib/coursepaper/coursepaper.cls
new file mode 100644
index 0000000000..3cf8204768
--- /dev/null
+++ b/macros/latex/contrib/coursepaper/coursepaper.cls
@@ -0,0 +1,41 @@
+% coursepaper.cls %------------------------------------------------------------------------% %% This is a class (.cls) file for LaTeX2e. %% %% Author: Norman R. Gall %% Department of Philosophy %% The University of Calgary %% Calgary, Alberta %% %% ngall@ucalgary.ca %% %% Feel free to copy, modify, and distribute. %% I am interested in all changes you make. %% Send changes to ngall@ucalgary.ca %% %% This file is based on the default article.cls file %% %% General Notes: %% %% I have taken quite a few liberties in the template to cohere with %% idiosyncratic preferences in reading student's papers. I think that
+%% while other instructors might be more liberal, there will be few who
+%% are more conservative in their requirements. %% %% My purpose in writing this .cls is to provide students with a single
+%% straightforward template from which to generate clear, clean, and
+%% simple papers that are easy to read and identify by instructors. %% %% %% I have assumed onecolumn and onepage. In my experience, no one likes to
+%% see columned or duplex papers. %% % Version History % --------------- % v0.1 2002-02-16 Test of Class file % v1.0 2002-02-21 Cleaned up comments and added \coursesection % v2.0 2003-08-19 Major revision to make template generic % % - Command Notes ------------------------------
+% % new commands: \studentnumber, \college, \coursename, \coursenumber, % \coursesection, \instructor % % All of these commands go in the preamble and are pretty % straightforward. You use them just like the \author % command. I have smart-assed defaults programmed, so you'd better
+% remember to insert your own values. % % I have included these as these are what I want to see on each and every
+% paper I receive. If there are other items that you might find helpful,
+% e-mail the suggestion. % % Page Styles % % \pagestyle{headings} and pagestyle{plain} work as per article.cls
+% except that % a) when using titlepage, there is no page number printed on
+% the title page and the title page is not counted. % b) when not using titlepage, there is no page number printed
+% on the first page but it is counted. % c) when using titlepage and there is an abstract, there is no
+% page number printed on the title page or the abstract page
+% and neither the title page nor abstract page is counted. % d) when not using titlepage and there is an abstract, there
+% is no page number printed on the first page but it is
+% counted. The abstract is inserted immediately after the
+% title matter. % % \pagestyle{myheadings) works as above except it has the marks shifted
+% to the right for clarity so that students can place their name on
+% each page, if required % % Abstract % % Some disciplines regularly use the abstract in papers, so I have dealt
+% with it. If you use the titlepage option and included the abstract right
+% after the title material, the abstract will be placed on a second page
+% by itself after the titlepage. The main body will then begin on the next
+% page, with page numbering beginning there. % % Draft and Final Modes % % The draft and final options actually do something other than show you
+% line overruns. The draft option single spaces everything and gives you
+% slightly smaller margins. The final option gives you wider margins (for
+% comments---students never leave enough room for instructor marginalia),
+% and double spaces everything except the abstract, quotations, quotes,
+% verses, and footnotes. None of these things should be double-spaced in a
+% final paper, in my view. The bibliography (`References' has been
+% renamed) will be double spaced. You can use a \spacing{1} before your
+% \bibliography command to change that behaviour. %
+% There is also an \epigraph command at the end, if you are into that sort
+% of thing in your papers.
+% % - Identification ------------------------------------- \NeedsTeXFormat{LaTeX2e} \ProvidesClass{coursepaper}[2003/08/19 v2.0] % Initial Code --------------------------------------- % \RequirePackage{ifthen} % % - Declaration of Options ----------------------------- % % saving taken from dissertation.sty with modification % \newboolean{saving} % \DeclareOption{draft}{\setboolean{saving}{true}} \DeclareOption{final}{\setboolean{saving}{false}} \PassOptionsToClass{letterpaper,oneside,onecolumn}{article} \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} \ExecuteOptions{draft} % % - Execution of Options ------------------------------- % \ProcessOptions % % - Package Loading ------------------------------------ % \LoadClass{article} % % - Main Code ------------------------------------------ % % some redefinitions I need later % \let\oldquote\quote \let\oldendquote\endquote \let\oldquotation\quotation \let\oldendquotation\endquotation \let\oldverse\verse \let\oldendverse\oldverse \let\oldbibliography\bibliography \let\oldendbibliography\endbibliography \let\oldabstract\abstract \let\oldendabstract\endabstract % % some definitions and defaults that are convenient % \def\college#1{\gdef\@college{#1}} \def\coursename#1{\gdef\@coursename{#1}} \def\coursenumber#1{\gdef\@coursenumber{#1}} \def\coursesection#1{\gdef\@coursesection{#1}} \def\studentnumber#1{\gdef\@studentnumber{#1}} \def\instructor#1{\gdef\@instructor{#1}} % \gdef\@author{I.M.A. Student} \gdef\@title{The Socio-Economic Layering of Sub-Atomic Particle Cultures} \gdef\@date{\today} \gdef\@college{School of Hard Knocks} \gdef\@coursename{Sociology of Physics} \gdef\@coursenumber{SOCI4568} \gdef\@coursesection{L01} \gdef\@studentnumber{00000000} \gdef\@instructor{Professor Y.R.U StillHere} % % Spacing and margins % % These margins are set for letter size paper for North American tastes. % Other users will have to make the relevant adjustments here or in their % LaTeX source file % % \spacing - redefine \baselinestretch and recompute \baselineskip % \newcommand{\spacing}[1]{\renewcommand{\baselinestretch}{#1}%
+ \large\normalsize} % \ifthenelse{\boolean{saving}} { % settings for draft \setlength {\topmargin}{0.0in} % top margin 1.0 inch \setlength {\textheight}{8.5in} % bottom margin 1.0 inch \setlength {\oddsidemargin}{0.0in} % left margin 1.0 inch
+ \setlength {\evensidemargin}{0.0in} % right margin 1.0 inch \setlength {\textwidth}{6.5in} % right margin 1.0 inch \spacing{1} % single spacing for draft } { % settings for final \setlength {\topmargin}{0.0in} % top margin 1.0 inch \setlength {\textheight}{8.5in} % bottom margin 1.0 inch \setlength {\oddsidemargin}{0.5in} % left margin 1.5 inch
+ \setlength {\evensidemargin}{0.5in} % right margin 1.5 inch \setlength {\textwidth}{5.5in} % right margin 1.5 inch \spacing{2} % double spacing for final \renewenvironment{quote} % redef as single spaced {\oldquote\spacing{1}} {\oldendquote\spacing{2}} \renewenvironment{quotation} % redef as single spaced {\oldquotation\spacing{1}} {\oldendquotation\spacing{2}} \renewenvironment{verse} % redef as single spaced {\oldquotation\spacing{1}} {\oldendquotation\spacing{2}} } \setlength {\footnotesep}{14pt} % baseline skip for fn's 1st line \setlength {\headheight}{0.2in} % make room for header \setlength {\headsep}{0.2in} % modest header separation \setlength {\parskip}{0.2in} % set a paragraph skip \setlength {\parindent}{0.2in} % I hate unindented first lines \renewenvironment{bibliography}[1] % automatically enter toc line {\addcontentsline{toc}{chapter}{Bibliography}\oldbibliography {#1}} {\oldendbibliography} % % Make footnotes single spaced % % code shamelessly stolen from setspace.sty % written by Geoffrey Tobin <G.Tobin@latrobe.edu.au> % \long\def\@footnotetext#1{% \insert\footins{% \def\baselinestretch {1}% \reset@font\footnotesize \interlinepenalty\interfootnotelinepenalty \splittopskip\footnotesep \splitmaxdepth \dp\strutbox \floatingpenalty \@MM \hsize\columnwidth \@parboxrestore \protected@edef\@currentlabel{% \csname p@footnote\endcsname\@thefnmark }% \color@begingroup \@makefntext{% \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}% \color@endgroup}} % % redefine the titlematter % \renewcommand\maketitle{\par \begingroup \renewcommand\thefootnote{\@fnsymbol\c@footnote}% \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}% \long\def\@makefntext##1{\parindent 1em\noindent \hb@xt@1.8em{% \hss\@textsuperscript{\normalfont\@thefnmark}}##1}% \newpage \global\@topnum\z@ % Prevents figures from going at top of page. \@maketitle \thispagestyle{empty}\@thanks \endgroup \setcounter{footnote}{0}% \global\let\thanks\relax \global\let\maketitle\relax \global\let\@maketitle\relax \global\let\@thanks\@empty \global\let\@author\@empty \global\let\@date\@empty \global\let\@title\@empty % \global\let\@studentnumber\@empty \global\let\@coursenumber\@empty \global\let\@coursename\@empty \global\let\@coursesection\@empty \global\let\@instructor\@empty \global\let\@college\@empty % \global\let\title\relax \global\let\author\relax \global\let\date\relax \global\let\and\relax } % \def\@maketitle{% \newpage \null \vskip 2em% \begin{flushleft}% \begin{spacing}{1}% {\sffamily \LARGE \@title \par}% \vskip 2em% {\sffamily \large\lineskip .75em\@author}\\% \sffamily \@studentnumber% \vskip 1em% \sffamily \@date \vskip 3em% \sffamily \@college\\% \sffamily \@coursenumber\hskip 6pt\@coursesection\hskip 6pt%
+ \@coursename\\% \sffamily For: \@instructor% \par% \end{spacing}% \end{flushleft}\hrule\vskip 1em\par \par \vskip 1.5em} % % make section titles less obnoxious % \renewcommand\section{\@startsection {section}{1}{\z@}% {-3.5ex \@plus -1ex \@minus -.2ex}% {2.3ex \@plus.2ex}% {\normalfont\large\bfseries}} \renewcommand\subsection{\@startsection{subsection}{2}{\z@}% {-3.25ex\@plus -1ex \@minus -.2ex}% {1.5ex \@plus .2ex}% {\normalfont\normalsize\bfseries}} \renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}% {-3.25ex\@plus -1ex \@minus -.2ex}% {1.5ex \@plus .2ex}% {\normalfont\normalsize\bfseries}} \renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}% {3.25ex \@plus1ex \@minus.2ex}% {-1em}% {\normalfont\normalsize\bfseries}} \renewcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}% {3.25ex \@plus1ex \@minus .2ex}% {-1em}% {\normalfont\normalsize\bfseries}} % % Set up headers % \def\ps@myheadings{% \let\@oddfoot\@empty\let\@evenfoot\@empty \def\@evenhead{\thepage -- \slshape\leftmark\hfil}% \def\@oddhead{\hfil{\slshape\rightmark} -- \thepage}% \let\@mkboth\@gobbletwo \let\sectionmark\@gobble \let\subsectionmark\@gobble } % % Position the abstract depending on presence of titlepage % \if@titlepage \renewenvironment{abstract}{% \titlepage \null\vfil \@beginparpenalty\@lowpenalty \begin{center}% \bfseries \abstractname \@endparpenalty\@M \end{center}}% {\par\vfil\null\endtitlepage} \fi % % change some names % \renewcommand\contentsname{Table of Contents} \renewcommand\refname{Bibliography} % % \epigraph{text}{byline} % \newcommand{\epigraph}[2]{\begin{flushright}\begin{minipage}{4in}%
+ \spacing{1}#1\begin{flushright}#2\end{flushright}%
+ \hrule\end{minipage}\vskip 12pt\end{flushright}} % %% End of file `coursepaper.cls'. \ No newline at end of file
diff --git a/macros/latex/contrib/coursepaper/coursepaper.tex b/macros/latex/contrib/coursepaper/coursepaper.tex
new file mode 100644
index 0000000000..d251c4e944
--- /dev/null
+++ b/macros/latex/contrib/coursepaper/coursepaper.tex
@@ -0,0 +1,18 @@
+\documentclass[11pt,draft]{coursepaper}
+
+\usepackage{amsthm}
+
+\author{I.M.A. Student} \title{The Socio-Economic Layering of Sub-Atomic Particle Cultures} \date{\today} \college{School of Hard Knocks} \coursename{Sociology of Physics} \coursenumber{SOCI4568} \coursesection{L01} \studentnumber{00000000} \instructor{Professor Y.R.U StillHere}
+
+\begin{document}
+\maketitle
+
+ Nulla velit quis hendrerit velit esse vel aliquam luptatum vero volutpat ut. In commodo, diam veniam nulla consectetuer sed esse duis lorem, aliquam lorem volutpat odio, vel luptatum. Duis luptatum sciurus duis dignissim velit consequat qui lorem, dolor odio magna, autem facilisi qui autem praesent aliquip iusto ut, blandit minim. Feugait eu diam feugiat eum minim ut iusto iriure. Delenit erat, ut iriuredolor nostrud, consequat dolore blandit tation consectetuer praesent dolore dignissim et, ipsum exerci minim nibh in facilisi nisl.
+ Ad illum vel et, lorem esse et te. In tation dolore enim nisl, aliquip at molestie wisi dolor et quis ipsum ea dolore odio, accumsan nulla et? Feugait nulla eu ea ut velit ad et ullamcorper sed accumsan vel, aliquip consequatvel ut at eros, luptatum eros feugait et. Te esse ut commodo ut eu autem feugiat ullamcorper vero iriuredolor dolore, enim ipsum nulla, facilisi nonummy te duis vel. Autem eum luptatum nulla molestie eum quis praesent, qui ad iusto dignissim autem dolore veniam ut delenit. Iriuredolor quis, aliquam sed minim hendrerit blandit et erat, dolor minim commodo, te aliquip ut autem accumsan facilisi, molestie ut et wisi ipsum vero velit exerci, te tation nulla minim. Iriuredolor autem, iriuredolor velit eu enim ex duis, eu eum lorem ut dolore facilisi delenit tation vulputate luptatum vel, enim in.
+ Sit ad, consequat in, praesent delenit at aliquip veniam. Hendrerit et accumsan luptatum nisl tation sciurus blandit vel dolore. Ad feugiat in nisl consectetuer minim in odio feugait tation, tincidunt ullamcorper. Odio dolore consequat duis in dolore qui, vel facilisi esse? Ut exerci, accumsan consequat odio ad praesent ullamcorper ad feugait ut ullamcorper, dolore lobortis suscipit iriure vulputate? In iusto eum duis aliquip praesent dignissim consequatvel, ad dolor autem consectetuer, delenit ullamcorper. Dignissim ut ea iriuredolor vulputate dolore hendrerit laoreet nisl nonummy.
+ Et blandit eros, ullamcorper eu dolore consequatvel sed. Dolore sciurus esse ut, suscipit eu volutpat delenit ea vero quis augue commodo vel minim consequat, dignissim vel blandit. Dolor minim praesent vel iriuredolor iriure praesent at praesent wisi sit te consequat minim ut illum dolore vel. Nulla ullamcorper, vel autem ullamcorper in, nibh nonummy iriuredolor tincidunt ad, duis wisi. Molestie te, dolore vulputate nulla sciurus ut sed minim erat nulla odio in, nostrud consequat enim, quis veniam vulputate. Exerci adipiscing ut lobortis euismod eum praesent, delenit nonummy vel dolore vel blandit euismod exerci nulla blandit lobortis te esse. Duis facilisi iriure quis in ea et, dolor commodo praesent ad veniam dignissim.
+ Aliquam elit tincidunt nostrud minim feugait volutpat luptatum nulla in. Blandit velit vulputate nonummy euismod illum, feugiat quis eum, tation esse et. Velit aliquip ut hendrerit et eu ullamcorper quis et esse qui eum? Exerci et facilisis diam hendrerit aliquam feugait, feugiat at sed iusto ex blandit dolore. Velit at facilisis ut dolore feugait accumsan odio autem, sed delenit? Nostrud, erat ex, dolore ad dolore, nulla ex eu augue nostrud ut. Eum commodo aliquip ut, duis minim quis.
+ Commodo, veniam ullamcorper volutpat in duis suscipit odio minim lobortis nulla dolor. Aliquip ut iriuredolor ut, diam vel nulla illum. Ut minim iusto ullamcorper facilisis consequat illum wisi lobortis exerci amet nonummy ullamcorper? Ad at in ut lobortis vel in amet exerci, ut in accumsan te qui feugait illum dolor consequat illum vel volutpat duis facilisis eu qui nibh iusto nisl. Sit ipsum adipiscing eros wisi.
+ In et consequat qui commodo in tation in et consequat ex consequatvel lobortis augue. In aliquam consequatvel eu duis consequat vulputate dignissim ad. Nisl commodo ex vero praesent. Dolore nulla delenit tincidunt velit ut sciurus, nisl magna autem lorem, veniam consequat. Iusto exerci dolore in lorem consectetuer, ut dolore duis, et dignissim at blandit, velit odio velit. Et nisl luptatum feugiat suscipit vulputate, sit blandit tation, illum ex.
+\end{document}
+ \ No newline at end of file