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
32 changes: 32 additions & 0 deletions conf/localOverrides.conf.dist
Original file line number Diff line number Diff line change
Expand Up @@ -512,4 +512,36 @@ $options{useOPLdefFiles}=1;
$permissionLevels{show_answer_group_info_checkbox} = "admin";

$permissionLevels{modify_tags} = "admin";

################################################################################

# Available Hardcopy themes (located in snippets) - adds four XeLaTeX themes
# using polyglossia for multilingual support and fontspec.

$hardcopyThemes = [ qw (
oneColumn
twoColumn
XeLaTeX-oneColumn
XeLaTeX-twoColumn
XeLaTeX-Hebrew-oneColumn
XeLaTeX-Hebrew-twoColumn
)];

# Hardcopy theme names (pretty names for themes)
$hardcopyThemeNames = {
oneColumn => 'pdfLaTeX - English - One Column',
twoColumn => 'pdfLaTeX - English - Two Columns',
XeLaTeX-oneColumn => 'XeLaTeX - English - one Column',
XeLaTeX-twoColumn => 'XeLaTeX - English - two Columns',
XeLaTeX-Hebrew-oneColumn => 'XeLaTeX - Hebrew/English - one Column',
XeLaTeX-Hebrew-twoColumn => 'XeLaTeX - Hebrew/English - two Columns',
};

# Change default Hardcopy theme - in order to use an XeLaTeX theme, we must set
# $externalPrograms{pdflatex} to use xelatex (here or in site.conf) !!!
#$hardcopyTheme = "XeLaTeX-twoColumn";
#$externalPrograms{pdflatex} ="/usr/bin/xelatex --shell-escape";

################################################################################

1; #final line of the file to reassure perl that it was read properly.
6 changes: 6 additions & 0 deletions conf/site.conf.dist
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ $externalPrograms{git} = "/usr/bin/git";
# equation rendering/hardcopy utiltiies
####################################################
$externalPrograms{latex} ="/usr/bin/latex";

$externalPrograms{pdflatex} ="/usr/bin/pdflatex --shell-escape";
# Consider using xelatex instead of pdflatex for multilingual use, and
# use polyglossia and fontspec packages (which require xelatex or lualatex).
#$externalPrograms{pdflatex} ="/usr/bin/xelatex --shell-escape";

$externalPrograms{dvipng} ="/usr/bin/dvipng";

####################################################
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

\vfill
\end{document}
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
\batchmode
\documentclass[11pt]{amsart}
\usepackage{amsmath,amsfonts,amssymb,multicol}

% For XeLaTeX + polyglossia - using Hebrew and the Culmus fonts
\usepackage{fontspec}
\usepackage{xunicode}

\usepackage{booktabs,tabularx,colortbl,caption,xcolor}

% Load the polyglossia package to support multiple languages.
% see https://ctan.org/pkg/polyglossia
\usepackage{polyglossia}

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

\setdefaultlanguage{hebrew}
\setotherlanguage{english}
\setmainfont{Frank Ruehl CLM}
\setmonofont{Miriam Mono CLM}
\setsansfont{Simple CLM}

% When using default English
% Use \begin{hebrew} block of text \end{hebrew} for paragraphs.
%
% When using default Hebrew
% Use \begin{hebrew} block of text \end{hebrew} for paragraphs.

\usepackage{path}
\discretionaries |~!@$%^&*()_+`-=#{"}[]:;'<>,.?\/abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789|
\usepackage{graphicx}

% There is no support for epstopdf in xelatex, but it supports eps files natively
%\usepackage{epstopdf} % allows use of eps files

% WeBWorK used Control+_ = ^_ for verbatim... so we change its charcode
\catcode`\=12

\usepackage{epsf}
\usepackage{epsfig}
\usepackage{pslatex}
\usepackage{fullpage}

% Comment out 3 lines - XeLaTeX supports UTF-8 and the euro symbol already
%\usepackage[utf8]{inputenc}
%\usepackage{eurosym} % the euro symbol
%\DeclareUnicodeCharacter{20AC}{\euro} % make it possible to use the UTF-8 character for the euro symbol in problems

\pagestyle{plain}
\def\endline{\bigskip\hrule width \hsize height 0.8pt }
\newcommand{\lt}{<}
\newcommand{\gt}{>}
\newcommand{\less}{<}
\newcommand{\grt}{>}

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

% BEGIN capa tex macros

\newcommand{\capa}{{\sl C\kern-.10em\raise-.00ex\hbox{\rm A}\kern-.22em%
{\sl P}\kern-.14em\kern-.01em{\rm A}}}

\newenvironment{choicelist}
{\begin{list}{}
{\setlength{\rightmargin}{0in}\setlength{\leftmargin}{0.13in}
\setlength{\topsep}{0.05in}\setlength{\itemsep}{0.022in}
\setlength{\parsep}{0in}\setlength{\belowdisplayskip}{0.04in}
\setlength{\abovedisplayskip}{0.05in}
\setlength{\abovedisplayshortskip}{-0.04in}
\setlength{\belowdisplayshortskip}{0.04in}}
}
{\end{list}}

% END capa tex macros

\begin{document}
\newpage
\setcounter{page}{1}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

\medskip
\goodbreak
\hrule
\nobreak
\smallskip
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

\newpage%
\setcounter{page}{1}%

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

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

BEGIN_TEXT
$BR

\newfontfamily\libertine{Linux Libertine O}

\begin{english}
\noindent {\tiny Generated by WeBWorK {\libertine \copyright}}
\end{english}

\begin{hebrew}
\noindent{\tiny נוצר על ידי \textenglish{WeBWorK} {\libertine \copyright}}
\end{hebrew}

END_TEXT

ENDDOCUMENT();
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
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
@@ -0,0 +1,3 @@

\newpage%
\setcounter{page}{1}%
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

\end{multicols}
\vfill
\end{document}
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
\batchmode
\documentclass[10pt]{amsart}
\usepackage{amsmath,amsfonts,amssymb,multicol}

% For XeLaTeX + polyglossia - using Hebrew and the Culmus fonts
\usepackage{fontspec}
\usepackage{xunicode}

\usepackage{booktabs,tabularx,colortbl,caption,xcolor}

% Load the polyglossia package to support multiple languages.
% see https://ctan.org/pkg/polyglossia
\usepackage{polyglossia}

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

\setdefaultlanguage{hebrew}
\setotherlanguage{english}
\setmainfont{Frank Ruehl CLM}
\setmonofont{Miriam Mono CLM}
\setsansfont{Simple CLM}

% When using default English
% Use \begin{hebrew} block of text \end{hebrew} for paragraphs.
%
% When using default Hebrew
% Use \begin{hebrew} block of text \end{hebrew} for paragraphs.

\usepackage{path}
\discretionaries |~!@$%^&*()_+`-=#{"}[]:;'<>,.?\/abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789|
\usepackage{graphicx}

% There is no support for epstopdf in xelatex, but it supports eps files natively
%\usepackage{epstopdf} % allows use of eps files

% WeBWorK used Control+_ = ^_ for verbatim... so we change its charcode
\catcode`\=12

\usepackage{epsf}
\usepackage{epsfig}
\usepackage{pslatex}

% Comment out 3 lines - XeLaTeX supports UTF-8 and the euro symbol already
%\usepackage[utf8]{inputenc}
%\usepackage{eurosym} % the euro symbol
%\DeclareUnicodeCharacter{20AC}{\euro} % make it possible to use the UTF-8 character for the euro symbol in problems

\pagestyle{plain}
\textheight 9in
\oddsidemargin = -0.42in
\evensidemargin = -0.42in
\textwidth= 7.28in
\columnsep = .25in
\columnseprule = .4pt
\def\endline{\bigskip\hrule width \hsize height 0.8pt }
\newcommand{\lt}{<}
\newcommand{\gt}{>}
\newcommand{\less}{<}
\newcommand{\grt}{>}

% BEGIN capa tex macros

\newcommand{\capa}{{\sl C\kern-.10em\raise-.00ex\hbox{\rm A}\kern-.22em%
{\sl P}\kern-.14em\kern-.01em{\rm A}}}

\newenvironment{choicelist}
{\begin{list}{}
{\setlength{\rightmargin}{0in}\setlength{\leftmargin}{0.13in}
\setlength{\topsep}{0.05in}\setlength{\itemsep}{0.022in}
\setlength{\parsep}{0in}\setlength{\belowdisplayskip}{0.04in}
\setlength{\abovedisplayskip}{0.05in}
\setlength{\abovedisplayshortskip}{-0.04in}
\setlength{\belowdisplayshortskip}{0.04in}}
}
{\end{list}}

% END capa tex macros

\begin{document}
\voffset=-0.8in
\newpage
\setcounter{page}{1}
\begin{multicols}{2}
\columnwidth=\linewidth
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

\medskip
\goodbreak
\hrule
\nobreak
\smallskip
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

\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

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

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

BEGIN_TEXT
$BEGIN_ONE_COLUMN

\newfontfamily\libertine{Linux Libertine O}

\begin{english}
\noindent {\tiny Generated by WeBWorK {\libertine \copyright}}
\end{english}

\begin{hebrew}
\noindent{\tiny נוצר על ידי \textenglish{WeBWorK} {\libertine \copyright}}
\end{hebrew}

$END_ONE_COLUMN
END_TEXT

ENDDOCUMENT();
Loading