Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 7 additions & 11 deletions bin/check_latex.tex
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,26 @@
% Artistic License for more details.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\documentclass[10pt]{amsart}
\documentclass[10pt]{exam}

\input{packages.tex}

\usepackage[text={7.5in,9in},centering]{geometry}
\usepackage[active,textmath,displaymath]{preview} % needed for dvipng
\usepackage{geometry} % needed for ``two column'' hardcopy format
\usepackage{fullpage} % needed for ``single column'' hardcopy format

\pagestyle{plain}
\textheight 9in
\oddsidemargin = -0.42in
\evensidemargin = -0.42in
\textwidth= 7.28in
\columnsep = .25in
\columnseprule = .4pt
\setlength{\columnsep}{.25in}
\setlength{\columnseprule}{.4pt}

\renewcommand{\questionshook}{\leftmargin=0pt\labelwidth=-\labelsep}

\input{CAPA.tex}
\input{PGML.tex}

\begin{document}
\voffset=-0.8in
\newpage
\setcounter{page}{1}
\begin{multicols}{2}
\columnwidth=\linewidth

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Expand Down
8 changes: 4 additions & 4 deletions conf/localOverrides.conf.dist
Original file line number Diff line number Diff line change
Expand Up @@ -550,10 +550,10 @@ $mail{feedbackRecipients} = [
#$hardcopyThemeNames = {
#oneColumn => 'One Column',
#twoColumn => 'Two Columns',
#XeLaTeX-oneColumn => 'English - one Column',
#XeLaTeX-twoColumn => 'English - two Columns',
#XeLaTeX-Hebrew-oneColumn => 'Hebrew/English - one Column',
#XeLaTeX-Hebrew-twoColumn => 'Hebrew/English - two Columns',
#'XeLaTeX-oneColumn' => 'English - one Column',
#'XeLaTeX-twoColumn' => 'English - two Columns',
#'XeLaTeX-Hebrew-oneColumn' => 'Hebrew/English - one Column',
#'XeLaTeX-Hebrew-twoColumn' => 'Hebrew/English - two Columns',
#};

# This is needed to enforce an order that the options are presented when making a hardcopy
Expand Down
60 changes: 45 additions & 15 deletions conf/snippets/ASimpleCombinedHeaderFile.pg
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,15 @@ TEXT($BEGIN_ONE_COLUMN);

####################################################
#
# The item below printed out only when a hardcopy is made.
# The item below is printed out only when a hardcopy is made.
#
####################################################



TEXT(MODES(TeX =>EV3(<<'EOT'),HTML=>""));

\noindent {\large \bf $studentName}
\hfill
{\large \bf {\{protect_underbar($courseName)\}}}
% Uncomment the line below if this course has sections. Note that this is a comment in TeX mode since this is only processed by LaTeX
% {\large \bf { Section: \{protect_underbar($sectionName)\} } }
\par
\noindent{\large \bf {Assignment \{protect_underbar($setNumber)\} due $formattedDueDate}}
%\par\noindent
% Uncomment and edit the line below if this course has a web page. Note that this is a comment in TeX mode.
%See the course web page for information http://yoururl/yourcourse
% This is a TeX comment
% Use this space to add header text to pdf hardcopies
% Text added here will not be displayed in the browser

EOT

Expand Down Expand Up @@ -75,7 +66,7 @@ EOT

####################################################
#
# Anything between the BEGIN_TEXT AND END_TEXT lines
# Anything between the BEGIN_PGML AND END_PGML lines
# will be printed in both screen and hardcopy output
#
####################################################
Expand All @@ -84,7 +75,46 @@ BEGIN_PGML

END_PGML


TEXT($END_ONE_COLUMN);

####################################################
#
# The following lines can be used to customize the PDF output
# by following the documentation for the LaTeX exam class
# http://mirrors.ctan.org/macros/latex/contrib/exam/examdoc.pdf
#
####################################################

TEXT(MODES(TeX => EV3(<<'EOT'),HTML=>""));

% match current hardcopy format
\pagestyle{headandfoot}
\firstpageheader{
{\large \bf $studentName} \\
% Uncomment the line below if this course has sections.
% {\large \bf Section: \{protect_underbar($sectionName)\}} \\
{\large \bf Assignment \{protect_underbar($setNumber)\} due $formattedDueDate}
}{}{
{\large \bf \{protect_underbar($courseName)\} \\ {} }
}
\ifdefined\nocolumns\firstpageheadrule\fi

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The addition of \firstpageheadrule here seems to cause the first page to have two head rules when using the single column theme.

\runningheader{}{}{}
\firstpagefooter{}{\thepage}{}
\runningfooter{}{\thepage}{}

EOT

# The following must be processed separately because of its use of the @-symbol

TEXT(MODES(TeX => EV3P({processVariables => 0}, <<'EOT'), HTML => ''));
%==================================================================================%
% Uncomment the lines below to modify the formatting of problem numbers and points %
%==================================================================================%
%\pointpoints{pt.}{pts.}
%\makeatletter
%\qformat{{\bf Problem \thequestiontitle.} \dotfill \if@placepoints{\bf\footnotesize(\thepoints)}\fi}
%\makeatother

EOT

ENDDOCUMENT(); # This should be the last executable line in the problem.
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
\batchmode
\documentclass[11pt]{amsart}
\documentclass[11pt]{exam}
\input{packages.tex}

\usepackage[text={7.5in,9in},centering]{geometry}

% For XeLaTeX + polyglossia - using Hebrew and the Culmus fonts
\usepackage{fontspec}
\usepackage{xunicode}
Expand All @@ -10,7 +12,7 @@
% see https://ctan.org/pkg/polyglossia
\usepackage{polyglossia}

% bidi needs to be loaded AFTER caption,xcolor
% bidi needs to be loaded AFTER caption, xcolor, and geometry.
\usepackage{bidi}

\setdefaultlanguage{hebrew}
Expand All @@ -28,11 +30,17 @@
% WeBWorK used Control+_ = ^_ for verbatim... so we change its charcode
\catcode`\=12

\usepackage{fullpage}

% This is used to signal PG that we are not using multicols
\newcommand{\nocolumns}{}

% This removes the margin for questions from the exam class. At this point we only use questions and not parts or
% supparts, but if those are used a similar thing will be needed for those as well.
\renewcommand{\questionshook}{\leftmargin=0pt\labelwidth=-\labelsep}

\makeatletter
\qformat{{\bf שאלה \thequestiontitle.} \if@placepoints{\textenglish{\bf\footnotesize(\thepoints)}}\fi \hfill}
\makeatother

\input{CAPA.tex}
\input{PGML.tex}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
#
# hardcopySetFooter.pg - generic hardcopy set footer file
#
#

DOCUMENT();
loadMacros(
Expand All @@ -9,7 +9,6 @@ loadMacros(
);

BEGIN_TEXT
$BR

\newfontfamily\libertine{Linux Libertine O}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,71 +1 @@
DOCUMENT();

loadMacros(
"PG.pl",
"PGbasicmacros.pl",
);

TEXT($BEGIN_ONE_COLUMN);

TEXT(MODES(TeX =>EV3(<<'EOT'),HTML=>"",Latex2HTML=>""));
\noindent {\large \bf $studentName}
\hfill
\noindent {\large \bf MTH 161 $sectionNumber Fall 2003}
\par

EOT

BEGIN_TEXT

$BBOLD WeBWorK assignment number $setNumber is due : $formattedDueDate. $EBOLD

$PAR
The
(* home page *)
\{
#htmlLink(qq!http://www.math.rochester.edu/courses/161/home/!,"home
page")
\}
for the course contains the syllabus, grading policy and other
information.
$PAR
END_TEXT

##################
# EDIT BELOW HERE
##################
BEGIN_TEXT
$HR
$PAR
This file is /conf/snippets/hardcopySetHeader.pg you can use it as
a model for creating files which introduce each problem set.
$PAR
$HR
END_TEXT
##################
# EDIT ABOVE HERE
##################
BEGIN_TEXT
The primary purpose of WeBWorK is to let you know that you are getting the correct answer or to alert
you if you are making some kind of mistake. Usually you can attempt a problem as many times as you want before
the due date. However, if you are having trouble figuring out your error, you should
consult the book, or ask a fellow student, one of the TA's or
your professor for help. Don't spend a lot of time guessing -- it's not very efficient or effective.
$PAR
Give 4 or 5 significant digits for (floating point) numerical answers.
For most problems when entering numerical answers, you can if you wish
enter elementary expressions such as \( 2\wedge3 \) instead of 8, \( sin(3*pi/2) \)instead
of -1, \( e\wedge (ln(2)) \) instead of 2,
\( (2+tan(3))*(4-sin(5))\wedge6-7/8 \) instead of 27620.3413, etc.
Here's the
\{ htmlLink(qq!http://webwork.math.rochester.edu/docs/docs/pglanguage/availableFunctions.html!,"list of the functions") \}
which WeBWorK understands.
$PAR
You can use the Feedback button on each problem
page to send e-mail to the professors.


$END_ONE_COLUMN
END_TEXT

ENDDOCUMENT(); # This should be the last executable line in the problem.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

\end{multicols}
\vfill
\end{document}
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
\batchmode
\documentclass[10pt]{amsart}
\documentclass[10pt]{exam}
\input{packages.tex}

\usepackage[text={7.5in,9in},centering]{geometry}

% For XeLaTeX + polyglossia - using Hebrew and the Culmus fonts
\usepackage{fontspec}
\usepackage{xunicode}
Expand All @@ -10,7 +12,7 @@
% see https://ctan.org/pkg/polyglossia
\usepackage{polyglossia}

% bidi needs to be loaded AFTER caption,xcolor
% bidi needs to be loaded AFTER caption, xcolor, and geometry.
\usepackage{bidi}

\setdefaultlanguage{hebrew}
Expand All @@ -28,9 +30,16 @@
% WeBWorK used Control+_ = ^_ for verbatim... so we change its charcode
\catcode`\=12

\usepackage[text={7.5in,9in},centering]{geometry}
\columnsep = .25in
\columnseprule = .4pt
\setlength{\columnsep}{.25in}
\setlength{\columnseprule}{.4pt}

% This removes the margin for questions from the exam class. At this point we only use questions and not parts or
% supparts, but if those are used a similar thing will be needed for those as well.
\renewcommand{\questionshook}{\leftmargin=0pt\labelwidth=-\labelsep}

\makeatletter
\qformat{{\bf שאלה \thequestiontitle.} \if@placepoints{\textenglish{\bf\footnotesize(\thepoints)}}\fi \hfill}
\makeatother

\input{CAPA.tex}
\input{PGML.tex}
Expand All @@ -39,4 +48,3 @@
\voffset=-0.8in
\newpage
\setcounter{page}{1}
\begin{multicols}{2}
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@

\end{multicols} % close off the columns from the set above

\newpage%
\setcounter{page}{1}%
\begin{multicols}{2}
\columnwidth=\linewidth % reopen the columns for the following set
\setcounter{page}{1}%

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
#
# hardcopySetFooter.pg - generic hardcopy set footer file
#
#

DOCUMENT();
loadMacros(
Expand All @@ -9,7 +9,6 @@ loadMacros(
);

BEGIN_TEXT
$BEGIN_ONE_COLUMN

\newfontfamily\libertine{Linux Libertine O}

Expand All @@ -21,7 +20,6 @@ $BEGIN_ONE_COLUMN
\noindent{\tiny נוצר על ידי \textenglish{WeBWorK} {\libertine \copyright}}
\end{hebrew}

$END_ONE_COLUMN
END_TEXT

ENDDOCUMENT();
Loading