Added "incomplete" warning
This commit is contained in:
parent
7301f7c8c3
commit
f8b1b01d3e
@ -1,7 +1,8 @@
|
||||
% use [nosolutions] flag to hide solutions.
|
||||
% use [solutions] flag to show solutions.
|
||||
\documentclass[
|
||||
solutions
|
||||
solutions,
|
||||
unfinished
|
||||
]{../../resources/ormc_handout}
|
||||
\usepackage{../../resources/macros}
|
||||
|
||||
|
@ -36,6 +36,7 @@
|
||||
\newif{\if@nopagenumber} % If true, don't number pages.
|
||||
\newif{\if@shortwarning} % If true, show a smaller solutions warning
|
||||
\newif{\if@nowarning} % If true, do not show solution warning
|
||||
\newif{\if@unfinished} % If true, show an "unfinished" warning at the top of each page
|
||||
|
||||
% Standard LaTeX options
|
||||
\DeclareOption{10pt}{\renewcommand\@ptsize{0}}
|
||||
@ -52,8 +53,10 @@
|
||||
\DeclareOption{shortwarning}{\@shortwarningtrue}
|
||||
\DeclareOption{showwarning}{\@nowarningfalse}
|
||||
\DeclareOption{hidewarning}{\@nowarningtrue}
|
||||
\DeclareOption{unfinished}{\@unfinishedtrue}
|
||||
\DeclareOption*{\ClassWarning{ormc_handout}{\CurrentOption ignored}}
|
||||
|
||||
\@unfinishedfalse
|
||||
\ExecuteOptions{
|
||||
10pt,
|
||||
solutions,
|
||||
@ -319,9 +322,11 @@
|
||||
\RequirePackage{xcolor} % For colored text
|
||||
\RequirePackage{tikz} % Used by \boxlinehack
|
||||
\RequirePackage{comment} % Used to hide solutions
|
||||
\RequirePackage{bophook} % Call a command on every page
|
||||
\RequirePackage{tcolorbox} % For solution boxes
|
||||
\RequirePackage{hyperref} % For custom references & clickable links
|
||||
\tcbuselibrary{breakable} % Allows tcolorboxes to break across pages
|
||||
\usetikzlibrary{calc}
|
||||
|
||||
\RequirePackage[ % Provides \say{} for quoted text.
|
||||
left = ``,
|
||||
@ -347,6 +352,29 @@
|
||||
%pdfcreator={Mark}
|
||||
}
|
||||
|
||||
\if@unfinished
|
||||
\AtBeginPage{%
|
||||
\begin{tikzpicture}[overlay, remember picture]
|
||||
\path
|
||||
(current page.north) ++ (0, -1)
|
||||
node[
|
||||
anchor=center,
|
||||
draw,
|
||||
below,
|
||||
text=red,
|
||||
draw=red,
|
||||
fill=white,
|
||||
inner sep = 2mm,
|
||||
line width = 0.3mm,
|
||||
] {
|
||||
\textbf{Incomplete Handout:}
|
||||
this handout is not done, it may need edits!
|
||||
}
|
||||
;
|
||||
\end{tikzpicture}
|
||||
}
|
||||
\fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user