Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
L
LaTeX-templates
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
18
Issues
18
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Adrian C. Hinrichs
LaTeX-templates
Commits
d2327eae
Verified
Commit
d2327eae
authored
Apr 09, 2019
by
Adrian C. Hinrichs
☕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add ToDo command
Signed-off-by:
Adrian C. Hinrichs
<
adrian.hinrichs@rwth-aachen.de
>
parent
862c64fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
11 deletions
+30
-11
homeworkassignment/homeworkassignment.cls
homeworkassignment/homeworkassignment.cls
+7
-3
homeworkassignment/homeworkassignment.dtx
homeworkassignment/homeworkassignment.dtx
+23
-8
No files found.
homeworkassignment/homeworkassignment.cls
View file @
d2327eae
...
...
@@ -36,8 +36,8 @@
%% LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
%% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
%% SOFTWARE.
\def\fileversion
{
v3.
1
a
}
\def\filedate
{
201
8/11/2
9
}
\def\fileversion
{
v3.
2
a
}
\def\filedate
{
201
9/04/0
9
}
\NeedsTeXFormat
{
LaTeX2e
}
[2005/12/01]
\ProvidesClass
{
homeworkassignment
}
[
\filedate\space\fileversion
]
\RequirePackage
{
suffix
}
...
...
@@ -56,6 +56,8 @@
\RequirePackage
{
adjustbox
}
\RequirePackage
{
eso-pic
}
\RequirePackage
{
xcolor
}
\RequirePackage
{
kvoptions
}
\SetupKeyvalOptions
{
family=hwa,
prefix=hwa@
}
...
...
@@ -89,6 +91,7 @@
\fi
\LoadClass
{
article
}
\RequirePackage
{
hyperref
}
\ifhwa
@listings
\RequirePackage
{
listings
}
\lstset
{
...
...
@@ -348,7 +351,7 @@
\newcommand
{
\Z
}{
\ensuremath
{
\mathbb
{
Z
}}}
\newcommand
{
\R
}{
\ensuremath
{
\mathbb
{
R
}}}
\newcommand
{
\Q
}{
\ensuremath
{
\mathbb
{
Q
}}}
\newcommand
{
\C
}{
\ensuremath
{
\mathbb
{
C
}}}
\newcommand
{
\C
ompl
}{
\ensuremath
{
\mathbb
{
C
}}}
\newcommand
{
\F
}{
\ensuremath
{
\mathbb
{
F
}}}
\newcommand
{
\Primes
}{
\ensuremath
{
\mathbb
{
P
}}}
\DeclareMathOperator
{
\GL
}{
GL
}
...
...
@@ -391,6 +394,7 @@
\renewcommand
{
\exists
}{
\ensuremath
{
\hskip
2pt
\oexists
\hskip
2pt
}}
\newcommand
{
\bigforall
}{
\mbox
{
\raisebox
{
-2pt
}
[
\height
][
\depth
]
{
\Large
$
\mathsurround
4
pt
\forall
$}}}
\newcommand
{
\bigexists
}{
\mbox
{
\raisebox
{
-2pt
}
[
\height
][
\depth
]
{
\Large
$
\mathsurround
4
pt
\exists
$}}}
\DeclareDocumentCommand\todo
{
G
{}}{{
\color
{
red
}{
\textbf
{
~TODO~
}
#1~
}}}
\DeclareDocumentCommand\addToGradingTable
{
m g
}{
\edef\hwa
@gradingtbl@aux@defs
{
\hwa
@gradingtbl@aux@defs|p
{
\hwa
@pointboxsize
}}
\edef\hwa
@gradingtbl@aux@lineOne
{
\hwa
@gradingtbl@aux@lineOne
{
#1
}
&}
...
...
homeworkassignment/homeworkassignment.dtx
View file @
d2327eae
...
...
@@ -7,7 +7,7 @@
% MIT License
%
%
% Copyright (c) 2016-201
8
by Adrian C. Hinrichs
% Copyright (c) 2016-201
9
by Adrian C. Hinrichs
%
%
%
...
...
@@ -29,8 +29,8 @@
% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
% SOFTWARE.
% \fi
\def\fileversion{v3.
1
a}
\def\filedate{201
8/11/2
9}
\def\fileversion{v3.
2
a}
\def\filedate{201
9/04/0
9}
% \iffalse
%<*driver>
\ProvidesFile{homeworkassignment.dtx}
...
...
@@ -157,6 +157,10 @@
% functionality.}
% \dep{gillius}{Bob Tennent}{https://ctan.org/pkg/gillius}{A Gillian
% Sans inspired font, used for all sans serifes fonts}
% \dep{hyperref}{https://ctan.org/pkg/hyperref}{Sebastian Rahtz, Heiko
% Oberdiek}{For hyperrefs, obviously}
% \dep{xcolor}{Dr. Uwe Kern}{https://www.ctan.org/pkg/xcolor}{For
% coloring of ToDos}
% \end{description}
% \subsection{Recommended Dependencies}
% These are not loaded automatically, but require a switch as option
...
...
@@ -193,6 +197,8 @@
\RequirePackage{adjustbox}
\RequirePackage{eso-pic}
\RequirePackage{xcolor}
% \end{macrocode}
% \section{Options\label{sec:Options}}
% KV-Options is essential for this.
...
...
@@ -306,6 +312,10 @@
\fi
\LoadClass{article}
% \end{macrocode}
% Load Hyperref (breaks if it is loaded before article
% \begin{macrocode}
\RequirePackage{hyperref}
% \end{macrocode}
% Loads listings, if wanted
% \begin{macrocode}
...
...
@@ -770,8 +780,8 @@
% \DescribeMacro{\R}
% \newcommand{\Q}{\ensuremath{\mathbb{Q}}}
% \DescribeMacro{\Q}
% \newcommand{\C}{\ensuremath{\mathbb{C}}}
% \DescribeMacro{\C}
% \newcommand{\C
ompl
}{\ensuremath{\mathbb{C}}}
% \DescribeMacro{\C
ompl
}
% \newcommand{\F}{\ensuremath{\mathbb{F}}}
% \DescribeMacro{\F}
% \newcommand{\Primes}{\ensuremath{\mathbb{P}}}
...
...
@@ -784,7 +794,7 @@
% |\Z|&$\Z$&Whole Numbers\\
% |\Q|&$\Q$&Rational Numbers\\
% |\R|&$\R$&Real Numbers\\
% |\C
|&$\C
$&Complex Numbers\\
% |\C
ompl|&$\Compl
$&Complex Numbers\\
% |\F_n|&$\F_n$&Prime Field to base $n$\\
% |\Primes|\footnotemark &$\Primes$ & Set of all Primes\\
% \caption{Field-Commands}
...
...
@@ -798,7 +808,7 @@
\newcommand{\Z}{\ensuremath{\mathbb{Z}}}
\newcommand{\R}{\ensuremath{\mathbb{R}}}
\newcommand{\Q}{\ensuremath{\mathbb{Q}}}
\newcommand{\C}{\ensuremath{\mathbb{C}}}
\newcommand{\C
ompl
}{\ensuremath{\mathbb{C}}}
\newcommand{\F}{\ensuremath{\mathbb{F}}}
% The last one is mine
\newcommand{\Primes}{\ensuremath{\mathbb{P}}}
...
...
@@ -944,7 +954,8 @@
% \begin{macro}{\todo}
% Creates a todo at the location of the command, highlighted in red.
% The ToDos will be listed after maketitle, unless the option
% |todos=nolist| or |todos=none| is specified.
% |todos=nolist| or |todos=none| is specified.
\DeclareDocumentCommand\todo{G{}}{{\color{red}{\textbf{~TODO~}#1~}}}
% \end{macro}
% \subsection{Grading Table\label{GRADING-TABLE}}
% This Document-Class is still mainly designed for Homework, so
...
...
@@ -1230,6 +1241,10 @@
% \item[v3.2 - pending]
% \begin{itemize}
% \item Make XeLaTex-Compatible
% \begin{itemize}
% \item Rename |\C| to |\Compl|, because of a |unicode-math|
% incompatibility
% \end{itemize}
% \item Fix |\newproblem| requiring a Problem-Number
% \item Add |\toDisprove| macro similar to the |\toShow| macro
% \end{itemize}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment