| 1 |
% \iffalse meta-comment |
| 2 |
% |
| 3 |
% Copyright (C) 2025 Cerigos <[email protected]> |
| 4 |
% ----------------------------------- |
| 5 |
% |
| 6 |
% This file may be distributed and/or modified under the |
| 7 |
% conditions of the LaTeX Project Public License, either version 1.3 |
| 8 |
% of this license or (at your option) any later version. |
| 9 |
% The latest version of this license is in: |
| 10 |
% |
| 11 |
% http://www.latex-project.org/lppl.txt |
| 12 |
% |
| 13 |
% and version 1.3 or later is part of all distributions of LaTeX |
| 14 |
% version 2005/12/01 or later. |
| 15 |
% |
| 16 |
% \fi |
| 17 |
% |
| 18 |
% \iffalse |
| 19 |
%<*driver> |
| 20 |
\ProvidesFile{multinotes.dtx} |
| 21 |
%</driver> |
| 22 |
%<package>\NeedsTeXFormat{LaTeX2e}[2005-12-31] |
| 23 |
%<package>\ProvidesPackage{multinotes} |
| 24 |
%<*package> |
| 25 |
[2025-06-25 v1.1 Multilingual lecture notes] |
| 26 |
%</package> |
| 27 |
% |
| 28 |
%<*driver> |
| 29 |
\documentclass{ltxdoc} |
| 30 |
\setlength{\parindent}{0em} |
| 31 |
\usepackage{idxlayout} |
| 32 |
\EnableCrossrefs |
| 33 |
\CodelineIndex |
| 34 |
\RecordChanges |
| 35 |
\begin{document} |
| 36 |
\DocInput{multinotes.dtx} |
| 37 |
\end{document} |
| 38 |
%</driver> |
| 39 |
% \fi |
| 40 |
% |
| 41 |
% \CheckSum{0} |
| 42 |
% \CharacterTable |
| 43 |
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z |
| 44 |
% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z |
| 45 |
% Digits \0\1\2\3\4\5\6\7\8\9 |
| 46 |
% Exclamation \! Double quote \" Hash (number) \# |
| 47 |
% Dollar \$ Percent \% Ampersand \& |
| 48 |
% Acute accent \' Left paren \( Right paren \) |
| 49 |
% Asterisk \* Plus \+ Comma \, |
| 50 |
% Minus \- Point \. Solidus \/ |
| 51 |
% Colon \: Semicolon \; Less than \< |
| 52 |
% Equals \= Greater than \> Question mark \? |
| 53 |
% Commercial at \@ Left bracket \[ Backslash \\ |
| 54 |
% Right bracket \] Circumflex \^ Underscore \_ |
| 55 |
% Grave accent \` Left brace \{ Vertical bar \| |
| 56 |
% Right brace \} Tilde \~} |
| 57 |
% |
| 58 |
% |
| 59 |
% \changes{v1.0}{2025/06/21}{Initial version} |
| 60 |
% |
| 61 |
% \changes{v1.1}{2025/06/25}{Dictionary files prefix changed to `multinotes`} |
| 62 |
% |
| 63 |
% \GetFileInfo{multinotes.dtx} |
| 64 |
% |
| 65 |
% \DoNotIndex{\#,\$,\%,\&,\@,\\,\{,\},\^,\_,\~,\ } |
| 66 |
% \DoNotIndex{\!,\,} |
| 67 |
% \DoNotIndex{\begingroup,\endgroup,\catcode} |
| 68 |
% \DoNotIndex{\if,\ifx,\else,\fi} |
| 69 |
% \DoNotIndex{\def,\edef,\let} |
| 70 |
% \DoNotIndex{\newcommand,\newenvironment,\newcounter} |
| 71 |
% \DoNotIndex{\begin,\end,\list,\endlist,\item} |
| 72 |
% \DoNotIndex{\alph,\Alph,\bigcirc,\bigsquare} |
| 73 |
% \DoNotIndex{\arabic,\roman} |
| 74 |
% \DoNotIndex{\DeclareOption,\BODY} |
| 75 |
% \DoNotIndex{\hskip,\hss,\llap,\advance,\noindent,\enspace} |
| 76 |
% \DoNotIndex{\fbox,\edef,\let} |
| 77 |
% \DoNotIndex{\leftmargin,\leftskip,\linewidth} |
| 78 |
% \DoNotIndex{\leftmargin,\leftskip,\linewidth} |
| 79 |
% \DoNotIndex{\@ifclassloaded,\@ifpackageloaded,\if@undefined,\@undefined,\@temp} |
| 80 |
% \DoNotIndex{\AtBeginDocument,\bfseries,\bigskip,\char,\ClassError,\color,\csname} |
| 81 |
% \DoNotIndex{\endcsname,\expandafter,\hfill,\hspace} |
| 82 |
% \DoNotIndex{\ifcat,\ifcsname,\ifnum,\ifthenelse,\isempty,\long} |
| 83 |
% \DoNotIndex{\makelabel,\mbox,\MessageBreak} |
| 84 |
% \DoNotIndex{\newif,\newlength,\next,\nobreak,\noexpand,\null} |
| 85 |
% \DoNotIndex{\PackageWarning,\par,\parbox,\parindent,\phantom,\quad} |
| 86 |
% \DoNotIndex{\raisebox,\relax,\renewcommand,\renewenvironment,\renewtcbox} |
| 87 |
% \DoNotIndex{\RequirePackage,\rlap,\rule} |
| 88 |
% \DoNotIndex{\settoheight,\settowidth,\sl,\smallskip,\space,\strut} |
| 89 |
% \DoNotIndex{\tcbuselibrary,\text,\textcolor,\textheight,\textsl,\textwidth,\topsep} |
| 90 |
% \DoNotIndex{\usecounter,\value,\vbox,\vspace,\xspace} |
| 91 |
% |
| 92 |
% \title{The \textsf{multinotes} package\thanks{This document corresponds to \textsf{multinotes}~\fileversion, dated \filedate.}} |
| 93 |
% \author{Dafydd Evans\\\small Prifysgol Caerdydd / Cardiff University\\\texttt{\small [email protected]}\\} |
| 94 |
% \date{} |
| 95 |
% |
| 96 |
% \maketitle |
| 97 |
% |
| 98 |
% \begin{center} |
| 99 |
% A package for typesetting multilingual lecture notes and exercise sheets. |
| 100 |
% \end{center} |
| 101 |
% |
| 102 |
% \bigskip |
| 103 |
% \section{Introduction} |
| 104 |
% |
| 105 |
% This package provides tools for typesetting multilingual lecture notes in various formats, and adopts some macros and environments from the \texttt{exam} document class for producing exercise sheets and solutions. |
| 106 |
% |
| 107 |
% \bigskip |
| 108 |
% The package repository is at |
| 109 |
% \begin{center} |
| 110 |
% \texttt{https://github.com/dimbyd/multinotes/} |
| 111 |
% \end{center} |
| 112 |
% |
| 113 |
% \section{Package options} |
| 114 |
% |
| 115 |
% The following package options control the visibility of different elements. |
| 116 |
% \par\bigskip |
| 117 |
% \renewcommand{\arraystretch}{1.3} |
| 118 |
% \begin{tabular}{ll} |
| 119 |
% \hline |
| 120 |
% {\tt blanks} & Remove contents of |\blank| cmds and |blankbox| envs.\\ |
| 121 |
% \hline |
| 122 |
% {\tt noproofs} & Exclude |\prf| commands and |proof| environments. \\ |
| 123 |
% {\tt blankproofs} & Replace |\prf| commands and |proof| environments by blanks. \\ |
| 124 |
% \hline |
| 125 |
% {\tt noanswers} & Exclude |\ans| commands and |answer| environments. \\ |
| 126 |
% {\tt blankanswers} & Replace |\ans| commands and |answer| environments by blanks. \\ |
| 127 |
% \hline |
| 128 |
% {\tt nosketchboxes} & Exclude sketch boxes. \\ |
| 129 |
% \hline |
| 130 |
% {\tt student} & Equivalent to choosing |blanks|, |blankproofs| and |noanswers|. \\ |
| 131 |
% {\tt compact} & Equivalent to choosing |noproofs|, |noanswers| and |nosketchboxes|. \\ |
| 132 |
% \hline |
| 133 |
% \end{tabular} |
| 134 |
% \bigskip |
| 135 |
% |
| 136 |
% \section{Languages} |
| 137 |
% |
| 138 |
% A language is specified by its \textbf{babel} name. |
| 139 |
% |
| 140 |
% \bigskip |
| 141 |
% \DescribeMacro{\definelanguage} |
| 142 |
% Define the declaration name, macro name and environment name. |
| 143 |
% |
| 144 |
% \DescribeMacro{\setlanguagestyle} |
| 145 |
% Set language-specific style options (fonts, colours, etc.). |
| 146 |
% |
| 147 |
% \DescribeMacro{\includelanguage} |
| 148 |
% Include language in document. |
| 149 |
% |
| 150 |
% \bigskip |
| 151 |
% \DescribeEnv{multicols} |
| 152 |
% Environment for parallel typesetting (one column for each language). |
| 153 |
% |
| 154 |
% \DescribeMacro{\multicolson} |
| 155 |
% Switch parallel mode on. |
| 156 |
% |
| 157 |
% \DescribeMacro{\multicolsoff} |
| 158 |
% Switch parallel mode off. |
| 159 |
% |
| 160 |
% \DescribeMacro{\multicolspan} |
| 161 |
% Typeset content across all columns. |
| 162 |
% |
| 163 |
% \DescribeMacro{\multicolsync} |
| 164 |
% Synchronize columns. |
| 165 |
% |
| 166 |
% \bigskip |
| 167 |
% \section{Lecture notes} |
| 168 |
% |
| 169 |
% \DescribeEnv{blankbox} |
| 170 |
% Environment for displayed blank box (responds to |blanks| option). |
| 171 |
% |
| 172 |
% \DescribeMacro{\blank} |
| 173 |
% Command for inline blank box (responds to |blanks| option). |
| 174 |
% |
| 175 |
% \bigskip |
| 176 |
% \DescribeMacro{\prf} |
| 177 |
% Command for inline proof box (responds to |blankproofs| and |noproofs|). |
| 178 |
% |
| 179 |
% \DescribeEnv{proof} |
| 180 |
% Environment for displayed proof box (responds to |blankproofs| and |noproofs|). |
| 181 |
% |
| 182 |
% \bigskip |
| 183 |
% \DescribeMacro{\ans} |
| 184 |
% Command for inline answer box (responds to |blankanswers| and |noanswers|). |
| 185 |
% |
| 186 |
% \DescribeEnv{answer} |
| 187 |
% Environment for displayed answer box (responds to |blankanswers| and |noanswers|). |
| 188 |
% |
| 189 |
% \DescribeMacro{\filin} |
| 190 |
% Command for inline fill-the-blank box (responds to |blankanswers|). |
| 191 |
% |
| 192 |
% \bigskip |
| 193 |
% \DescribeMacro{\textcolour} |
| 194 |
% Set default font colour. |
| 195 |
% |
| 196 |
% \DescribeMacro{\backgroundcolour} |
| 197 |
% Set background colour. |
| 198 |
% |
| 199 |
% \DescribeMacro{\showcolour} |
| 200 |
% Set font colour for blank boxes. |
| 201 |
% |
| 202 |
% \DescribeMacro{\proofcolour} |
| 203 |
% Set font colour for proof boxes. |
| 204 |
% |
| 205 |
% \DescribeMacro{\setanswercolour} |
| 206 |
% Set font colour for answer boxes. |
| 207 |
% |
| 208 |
% \bigskip |
| 209 |
% \DescribeMacro{\framedblankboxes} |
| 210 |
% Choose framed blank boxes (inline and displayed). |
| 211 |
% |
| 212 |
% \DescribeMacro{\framedproofs} |
| 213 |
% Choose framed proof boxes (inline and displayed). |
| 214 |
% |
| 215 |
% \DescribeMacro{\framedanswers} |
| 216 |
% Choose framed answer boxes (inline and displayed). |
| 217 |
% |
| 218 |
% \DescribeMacro{\setboxrule} |
| 219 |
% Set width of the frame border (default is zero). |
| 220 |
% |
| 221 |
% \bigskip |
| 222 |
% \DescribeMacro{\setstretchfactor} |
| 223 |
% Set stretch factor for blank boxes (to accomodate handwriting). |
| 224 |
% |
| 225 |
% \DescribeMacro{\setimagestretchfactor} |
| 226 |
% Set stretch factor for blank images (to accomodate hand-drawing). |
| 227 |
% |
| 228 |
% \bigskip |
| 229 |
% \DescribeMacro{\blankson} |
| 230 |
% Override global |blanks| option. |
| 231 |
% |
| 232 |
% \DescribeMacro{\blanksoff} |
| 233 |
% Override global |blanks| option. |
| 234 |
% |
| 235 |
% \DescribeMacro{\blankproofson} |
| 236 |
% Override global |blankproofs| option. |
| 237 |
% |
| 238 |
% \DescribeMacro{\blankproofsoff} |
| 239 |
% Override global |blankproofs| option. |
| 240 |
% |
| 241 |
% \DescribeMacro{\noproofsoff} |
| 242 |
% Override global |noproofs| option. |
| 243 |
% |
| 244 |
% \DescribeMacro{\noproofson} |
| 245 |
% Override global |noproofs| option. |
| 246 |
% |
| 247 |
% \DescribeMacro{\blankanswersoff} |
| 248 |
% Override global |blankanswers| option. |
| 249 |
% |
| 250 |
% \DescribeMacro{\blankanswerson} |
| 251 |
% Override global |blankanswers| option. |
| 252 |
% |
| 253 |
% \DescribeMacro{\noanswersoff} |
| 254 |
% Override global |noanswers| option. |
| 255 |
% |
| 256 |
% \DescribeMacro{\noanswerson} |
| 257 |
% Override global |noanswers| option. |
| 258 |
% |
| 259 |
% \section{Exercises} |
| 260 |
% |
| 261 |
% Inspired by |exam.cls|, responds to |blankanswers| and |noanswers| options. |
| 262 |
% |
| 263 |
% \bigskip |
| 264 |
% \DescribeEnv{questions} |
| 265 |
% List environment for questions. |
| 266 |
% |
| 267 |
% \DescribeEnv{parts} |
| 268 |
% List environment for parts of a question. |
| 269 |
% |
| 270 |
% \DescribeEnv{subparts} |
| 271 |
% List environment for subparts of a part. |
| 272 |
% |
| 273 |
% \bigskip |
| 274 |
% \DescribeMacro{\question} |
| 275 |
% Item type for the |questions| environment. |
| 276 |
% |
| 277 |
% \DescribeMacro{\part} |
| 278 |
% Item type for the |parts| environment. |
| 279 |
% |
| 280 |
% \DescribeMacro{\subpart} |
| 281 |
% Item type for the |subparts| environment. |
| 282 |
% |
| 283 |
% \bigskip |
| 284 |
% \DescribeEnv{choices} |
| 285 |
% List environment for multiple choice options (choose one). |
| 286 |
% |
| 287 |
% \DescribeEnv{checkboxes} |
| 288 |
% List environment for multiple answer options (choose zero or more). |
| 289 |
% |
| 290 |
% \bigskip |
| 291 |
% \DescribeMacro{\choice} |
| 292 |
% Item type for incorrect choices within |choices| and |checkboxes| environments. |
| 293 |
% |
| 294 |
% \DescribeMacro{\correctchoice} |
| 295 |
% Item type for correct choices within |choices| and |checkboxes| environments. |
| 296 |
% |
| 297 |
% \MaybeStop{\PrintChanges\PrintIndex} |
| 298 |
% |
| 299 |
% \iffalse |
| 300 |
%<*package> |
| 301 |
% \fi |
| 302 |
% |
| 303 |
% \section{Implementation} |
| 304 |
% \setlength{\parskip}{1ex} |
| 305 |
% \slshape |
| 306 |
% |
| 307 |
% Load packages |
| 308 |
% \begin{macrocode} |
| 309 |
\RequirePackage{amsmath,amsfonts,amssymb,amsthm} |
| 310 |
\RequirePackage{babel} |
| 311 |
\RequirePackage{caption} |
| 312 |
\RequirePackage{comment} |
| 313 |
\RequirePackage{etoolbox} |
| 314 |
\RequirePackage{float} |
| 315 |
\RequirePackage{graphicx} |
| 316 |
\RequirePackage{paracol} |
| 317 |
\RequirePackage{setspace} |
| 318 |
\RequirePackage{tcolorbox} |
| 319 |
\RequirePackage{tikz} |
| 320 |
\RequirePackage{titling} |
| 321 |
\RequirePackage{translations} |
| 322 |
\RequirePackage{trimspaces} |
| 323 |
\RequirePackage{xifthen} |
| 324 |
\RequirePackage{xstring} |
| 325 |
\RequirePackage{xspace} |
| 326 |
\RequirePackage{xparse} |
| 327 |
\tcbuselibrary{breakable} |
| 328 |
\tcbuselibrary{skins} |
| 329 |
% \end{macrocode} |
| 330 |
% |
| 331 |
% \subsection{Options} |
| 332 |
% |
| 333 |
% \begin{macrocode} |
| 334 |
\newif\ifmultinotes@blanks |
| 335 |
\newif\ifmultinotes@noproofs |
| 336 |
\newif\ifmultinotes@blankproofs |
| 337 |
\newif\ifmultinotes@noanswers |
| 338 |
\newif\ifmultinotes@blankanswers |
| 339 |
\newif\ifmultinotes@nosketchboxes |
| 340 |
\DeclareOption{blanks}{\multinotes@blankstrue} |
| 341 |
\DeclareOption{noproofs}{\multinotes@noproofstrue} |
| 342 |
\DeclareOption{blankproofs}{\multinotes@blankproofstrue} |
| 343 |
\DeclareOption{noanswers}{\multinotes@noanswerstrue} |
| 344 |
\DeclareOption{blankanswers}{\multinotes@blankanswerstrue} |
| 345 |
\DeclareOption{nosketchboxes}{\multinotes@nosketchboxestrue} |
| 346 |
\DeclareOption{student}{ |
| 347 |
\multinotes@blankstrue |
| 348 |
\multinotes@blankproofstrue |
| 349 |
\multinotes@noanswerstrue |
| 350 |
} |
| 351 |
\DeclareOption{compact}{ |
| 352 |
\multinotes@nosketchboxestrue |
| 353 |
\multinotes@noproofstrue |
| 354 |
\multinotes@noanswerstrue |
| 355 |
} |
| 356 |
\DeclareOption*{\PackageWarning{multinotes}{Unknown option ‘\CurrentOption’}} |
| 357 |
\ProcessOptions* |
| 358 |
\relax |
| 359 |
% \end{macrocode} |
| 360 |
% |
| 361 |
% \subsection{Language tools} |
| 362 |
% |
| 363 |
% Languages are referenced by their {\bf babel} names. |
| 364 |
% |
| 365 |
% \subsubsection{Define language} |
| 366 |
% |
| 367 |
% Usage example: |\definelanguage{welsh}{cy}{cym}{cymraeg}| |
| 368 |
% |
| 369 |
% This will define |
| 370 |
% \begin{itemize} |
| 371 |
% \item three internal commands: |\@welshdec|, |\@welshcmd| and |\@welshenv|, |
| 372 |
% \item a declaration |\cy| which maps to |\@welshdec|, |
| 373 |
% \item a command |\cym{...}| which maps to |\@welshcmd{...}|, |
| 374 |
% \item an environment |`cymraeg'| which maps to environment |`@welshenv'|. |
| 375 |
% \item an environment |`welsh'| which also maps to environment |`@welshenv'|. |
| 376 |
% \end{itemize} |
| 377 |
% |
| 378 |
% \hrule |
| 379 |
% {\bf Important}. Language environments are implemented as |comment| environments, which allows us to discard their contents when required. The |comment| package documentation states that |
| 380 |
% \begin{quote} |
| 381 |
% ``... all text included between |\begin{comment}| and |\end{comment}| is discarded. The opening and closing commands should appear on a line of their own. No starting spaces, nothing after it.'' |
| 382 |
% \end{quote} |
| 383 |
% |
| 384 |
% Failure to ensure this can produce some very confusing errors! This also applies to the |proof| and |answer| environments defined below.\vspace{0.5ex} |
| 385 |
% \hrule |
| 386 |
% |
| 387 |
% \begin{macrocode} |
| 388 |
\newcommand{\multinotes@definelanguage}[4]{ |
| 389 |
\ifcsname multinotes@#1dec\endcsname\else |
| 390 |
\expandafter\def\csname multinotes@#1dec\endcsname{\multinotes@commonstyle\multinotes@remove} |
| 391 |
\expandafter\def\csname #2\endcsname{\csname multinotes@#1dec\endcsname} |
| 392 |
\expandafter\def\csname multinotes@#1cmd\endcsname##1{} |
| 393 |
\expandafter\def\csname #3\endcsname{\csname multinotes@#1cmd\endcsname} |
| 394 |
\expandafter\def\csname multinotes@#1envname\endcsname{#4} |
| 395 |
\specialcomment{#4}{}{} |
| 396 |
\excludecomment{#4} |
| 397 |
\expandafter\def\csname multinotes@#1style\endcsname{} |
| 398 |
\fi |
| 399 |
} |
| 400 |
\newcommand{\definelanguage}[1]{\multinotes@definelanguage{#1}} |
| 401 |
% \end{macrocode} |
| 402 |
% |
| 403 |
% \subsubsection{Include language} |
| 404 |
% |
| 405 |
% Usage example: |\includelanguage{welsh}| |
| 406 |
% |
| 407 |
% When a language is included it is assigned a sequential number, which specifies its column number in |paracol| environments. %The |\switchcolumn| command is only defined within \verb+paracol+ environments, and therefore provides a criterion to decide whether column switching is required. |
| 408 |
% \begin{macrocode} |
| 409 |
\newcommand{\multinotes@mainlanguage}{UKenglish} |
| 410 |
\newcommand{\multinotes@selectlanguage}[1]{\@ifpackageloaded{babel}{\selectlanguage{#1}}{}} |
| 411 |
\AtBeginDocument{\multinotes@selectlanguage{\multinotes@mainlanguage}} |
| 412 |
|
| 413 |
\newcounter{multinotes@numlangs} |
| 414 |
|
| 415 |
\newcommand{\multinotes@activatelanguage}[1]{ |
| 416 |
\babelprovide[import]{#1} |
| 417 |
\expandafter\newcounter{multinotes@#1number} |
| 418 |
\expandafter\setcounter{multinotes@#1number}{\value{multinotes@numlangs}} |
| 419 |
\stepcounter{multinotes@numlangs} |
| 420 |
\ifnum\value{multinotes@numlangs}=1\relax |
| 421 |
\renewcommand{\multinotes@mainlanguage}{#1} |
| 422 |
\fi |
| 423 |
\expandafter\def\csname multinotes@#1dec\endcsname{% |
| 424 |
\@ifundefined{switchcolumn}{}{\switchcolumn[\value{multinotes@#1number}]}% |
| 425 |
\csname multinotes@#1style\endcsname% |
| 426 |
\multinotes@selectlanguage{#1}% |
| 427 |
}% |
| 428 |
\expandafter\def\csname multinotes@#1cmd\endcsname##1{% |
| 429 |
\@ifundefined{switchcolumn}{}{\switchcolumn[\value{multinotes@#1number}]}% |
| 430 |
\csname multinotes@#1style\endcsname% |
| 431 |
\multinotes@selectlanguage{#1}% |
| 432 |
##1% |
| 433 |
\multinotes@commonstyle\xspace% |
| 434 |
}% |
| 435 |
\renewenvironment{\csname multinotes@#1envname\endcsname}{% |
| 436 |
\@ifundefined{switchcolumn}{}{\switchcolumn[\value{multinotes@#1number}]}% |
| 437 |
\csname multinotes@#1style\endcsname% |
| 438 |
\multinotes@selectlanguage{#1}% |
| 439 |
}{}% |
| 440 |
} |
| 441 |
\newcommand{\includelanguage}[1]{ |
| 442 |
\multinotes@activatelanguage{#1} |
| 443 |
\LoadDictionaryFor{#1}{multinotes-basic-dictionary} |
| 444 |
\LoadDictionaryFor{#1}{multinotes-theorem-dictionary} |
| 445 |
} |
| 446 |
% \end{macrocode} |
| 447 |
% |
| 448 |
% \subsubsection{Language style} |
| 449 |
% |
| 450 |
% Usage example: |\setlanguagestyle{welsh}{\slshape\color{red}}| |
| 451 |
% |
| 452 |
% \begin{macrocode} |
| 453 |
\newcommand{\setlanguagestyle}[2]{\expandafter\def\csname multinotes@#1style\endcsname{#2}} |
| 454 |
\newcommand{\multinotes@commonstyle}{\normalfont\color{\multinotes@CurrentColour}} |
| 455 |
\newcommand{\setcommonstyle}[1]{\renewcommand{\multinotes@commonstyle}{#1}} |
| 456 |
% \end{macrocode} |
| 457 |
% |
| 458 |
% \subsubsection{Parallel typesetting} |
| 459 |
% |
| 460 |
% The |multicols| environment is based entirely on the |paracol| environment from the package of the same name. The number of columns required is obtained from the |numlangs| counter value. Any option commands for |paracol| such as |\columnsep|, |\columnseprule| or |\localcounter| can be used directly. |
| 461 |
% |
| 462 |
% \begin{macrocode} |
| 463 |
\newenvironment{multicols}{}{} |
| 464 |
\newcommand{\multicolsync}{} |
| 465 |
\newcommand{\multicolson}{ |
| 466 |
\ifnum\value{multinotes@numlangs}>1 |
| 467 |
\renewenvironment{multicols}{\begin{paracol}{\themultinotes@numlangs}}{\end{paracol}} |
| 468 |
\renewcommand{\multicolsync}{\switchcolumn[0]*} |
| 469 |
\fi |
| 470 |
} |
| 471 |
\newcommand{\multicolsoff}{ |
| 472 |
\renewenvironment{multicols}{}{} |
| 473 |
\renewcommand{\multicolsync}{} |
| 474 |
} |
| 475 |
\AtBeginDocument{\multicolson} |
| 476 |
% \end{macrocode} |
| 477 |
% |
| 478 |
% Mark content to span across columns (used inside |multicols| environments) |
| 479 |
% |
| 480 |
% \begin{macrocode} |
| 481 |
\newcommand{\multicolspan}[1]{\multinotes@commonstyle% |
| 482 |
\@ifundefined{switchcolumn}{}{% |
| 483 |
\ifthenelse{\isempty{#1}}{% |
| 484 |
\switchcolumn[0]% |
| 485 |
}{% |
| 486 |
\switchcolumn*[{#1}]% |
| 487 |
}% |
| 488 |
}% |
| 489 |
} |
| 490 |
% \end{macrocode} |
| 491 |
% |
| 492 |
% \subsubsection{Declarations} |
| 493 |
% |
| 494 |
% Finally some dubious TeX magic for dealing with declarations: when a language is excluded, everything between a corresponding language declaration and the next non-alphabetical/numerical/space character should be removed. This doesn't always work as intended! |
| 495 |
% \begin{macrocode} |
| 496 |
\def\multinotes@remove{\afterassignment\checkit\let\char=}% |
| 497 |
\def\checkit{% |
| 498 |
\ifcat\char\null % |
| 499 |
\let\char=\null% |
| 500 |
\fi% |
| 501 |
\ifcat\char\space% |
| 502 |
\let\next=\multinotes@remove% |
| 503 |
\else% |
| 504 |
\ifcat\char x% |
| 505 |
\let\next=\multinotes@remove% |
| 506 |
\else% |
| 507 |
\ifcat\char 1% |
| 508 |
\let\next=\multinotes@remove% |
| 509 |
\else% |
| 510 |
\noexpand\char |
| 511 |
\let\next=\relax% |
| 512 |
\fi% |
| 513 |
\fi% |
| 514 |
\fi% |
| 515 |
\next% |
| 516 |
}% |
| 517 |
% \end{macrocode} |
| 518 |
% |
| 519 |
% \subsection{Lecture notes} |
| 520 |
% |
| 521 |
% Macros for proof, answer and sketch names. |
| 522 |
% \begin{macrocode} |
| 523 |
\def\multinotes@proofname{\GetTranslation{Proof}} |
| 524 |
\def\multinotes@answername{\GetTranslation{Answer}} |
| 525 |
\def\multinotes@sketchname{\GetTranslation{Sketch}} |
| 526 |
% \end{macrocode} |
| 527 |
% |
| 528 |
% Global variables to allow local override of the \verb+blanks+, \verb+blankproofs+, \verb+noproofs+, \verb+blankanswers+ and \verb+noanswers+ options. |
| 529 |
% \begin{macrocode} |
| 530 |
\newcommand{\blanksoff}{\multinotes@blanksfalse} |
| 531 |
\newcommand{\blankson}{\multinotes@blankstrue} |
| 532 |
\newcommand{\blankproofsoff}{\multinotes@blankproofsfalse} |
| 533 |
\newcommand{\blankproofson}{\multinotes@blankproofstrue} |
| 534 |
\newcommand{\blankanswersoff}{\multinotes@blankanswersfalse} |
| 535 |
\newcommand{\blankanswerson}{\multinotes@blankanswerstrue} |
| 536 |
% \end{macrocode} |
| 537 |
% |
| 538 |
% \begin{macrocode} |
| 539 |
\newcommand{\noproofsoff}{ |
| 540 |
\multinotes@noproofsfalse |
| 541 |
\multinotes@createProofEnvironment |
| 542 |
} |
| 543 |
\newcommand{\noproofson}{ |
| 544 |
\multinotes@noproofstrue |
| 545 |
\excludecomment{proof} |
| 546 |
} |
| 547 |
\newcommand{\noanswersoff}{ |
| 548 |
\multinotes@noanswersfalse |
| 549 |
\multinotes@createAnswerEnvironment |
| 550 |
} |
| 551 |
\newcommand{\noanswerson}{ |
| 552 |
\multinotes@noanswerstrue |
| 553 |
\excludecomment{answer} |
| 554 |
} |
| 555 |
% \end{macrocode} |
| 556 |
% |
| 557 |
% Runtime flags |
| 558 |
% \begin{macrocode} |
| 559 |
\newif\ifmultinotes@blankmode |
| 560 |
\newif\ifmultinotes@imgblankmode |
| 561 |
% \end{macrocode} |
| 562 |
% |
| 563 |
% Colours |
| 564 |
% \begin{macrocode} |
| 565 |
\newcommand{\multinotes@BackgroundColour}{white} |
| 566 |
\newcommand{\multinotes@TextColour}{black} |
| 567 |
\newcommand{\multinotes@ShowColour}{black} |
| 568 |
\newcommand{\multinotes@ProofColour}{black} |
| 569 |
\newcommand{\multinotes@SolutionColour}{black} |
| 570 |
\newcommand{\multinotes@AnswerColour}{black} |
| 571 |
\newcommand{\multinotes@QEDSymbol}{} |
| 572 |
\AtBeginDocument{ |
| 573 |
\color{\multinotes@TextColour} |
| 574 |
\pagecolor{\multinotes@BackgroundColour} |
| 575 |
} |
| 576 |
% \end{macrocode} |
| 577 |
% |
| 578 |
% Set colours |
| 579 |
% \begin{macrocode} |
| 580 |
\newcommand{\textcolour}[1]{\renewcommand{\multinotes@TextColour}{#1}} |
| 581 |
\newcommand{\backgroundcolour}[1]{\renewcommand{\multinotes@BackgroundColour}{#1}} |
| 582 |
\newcommand{\showcolour}[1]{\renewcommand{\multinotes@ShowColour}{#1}} |
| 583 |
\newcommand{\proofcolour}[1]{\renewcommand{\multinotes@ProofColour}{#1}} |
| 584 |
\newcommand{\answercolour}[1]{\renewcommand{\multinotes@AnswerColour}{#1}} |
| 585 |
\newcommand{\includeqedsymbol}[1]{\renewcommand{\multinotes@QEDSymbol}{#1}} |
| 586 |
% \end{macrocode} |
| 587 |
% |
| 588 |
% Stretch factors for blank boxes (to accomodate handwriting) |
| 589 |
% \begin{macrocode} |
| 590 |
\newcommand{\multinotes@StretchFactor}{1} |
| 591 |
\newcommand{\multinotes@ImageStretchFactor}{1} |
| 592 |
\newcommand{\setstretchfactor}[1]{\renewcommand{\multinotes@StretchFactor}{#1}} |
| 593 |
\newcommand{\setimagestretchfactor}[1]{\renewcommand{\multinotes@ImageStretchFactor}{#1}} |
| 594 |
% \end{macrocode} |
| 595 |
% |
| 596 |
% Frame options |
| 597 |
% \begin{macrocode} |
| 598 |
\newif\ifmultinotes@framedblankboxes |
| 599 |
\newif\ifmultinotes@framedproofs |
| 600 |
\newif\ifmultinotes@framedanswers |
| 601 |
\newcommand{\framedblankboxes}{\multinotes@framedblankboxestrue} |
| 602 |
\newcommand{\framedblankboxesoff}{\multinotes@framedblankboxesfalse} |
| 603 |
\newcommand{\framedproofs}{\multinotes@framedproofstrue} |
| 604 |
\newcommand{\framedproofsoff}{\multinotes@framedproofsfalse} |
| 605 |
\newcommand{\framedanswers}{\multinotes@framedanswerstrue} |
| 606 |
\newcommand{\framedanswersoff}{\multinotes@framedanswersfalse} |
| 607 |
\newcommand{\setboxrule}[1]{\renewcommand{\multinotes@BoxRule}{#1}} |
| 608 |
% \end{macrocode} |
| 609 |
% |
| 610 |
% Runtime parameters |
| 611 |
% \begin{macrocode} |
| 612 |
\newcommand{\multinotes@CurrentColour}{black} |
| 613 |
\newcommand{\multinotes@CurrentBoxRule}{0pt} |
| 614 |
\newcommand{\multinotes@CurrentBoxTitle}{} |
| 615 |
\newcommand{\multinotes@BoxRule}{0pt} |
| 616 |
\newcommand{\multinotes@makeboxtitle}{% |
| 617 |
\textcolor{\multinotes@TextColour}{\noindent\multinotes@CurrentBoxTitle}% |
| 618 |
}% |
| 619 |
% \end{macrocode} |
| 620 |
% |
| 621 |
% \subsection{Inline boxes} |
| 622 |
% |
| 623 |
% Inline blankbox |
| 624 |
% \begin{macrocode} |
| 625 |
\newcommand\multinotes@inlineboxsize{normal} |
| 626 |
\newcommand{\inlineboxsize}[1]{\renewcommand{\multinotes@inlineboxsize}{#1}} |
| 627 |
\newcommand{\blank}[1]{#1} |
| 628 |
\ifmultinotes@blanks |
| 629 |
\renewtcbox{\blank}{ |
| 630 |
on line, |
| 631 |
size=\multinotes@inlineboxsize, |
| 632 |
colback=\multinotes@BackgroundColour, |
| 633 |
coltext={\ifmultinotes@blanks\multinotes@BackgroundColour\else\multinotes@ShowColour\fi}, |
| 634 |
boxrule={\ifmultinotes@blanks\multinotes@BoxRule\else0pt\fi} |
| 635 |
} |
| 636 |
\fi |
| 637 |
% \end{macrocode} |
| 638 |
% |
| 639 |
% Inline fillbox |
| 640 |
% \begin{macrocode} |
| 641 |
\newcommand{\fillbox}[1]{#1} |
| 642 |
\ifmultinotes@blankanswers\else |
| 643 |
\renewtcbox{\fillbox}{ |
| 644 |
on line, |
| 645 |
size=\multinotes@inlineboxsize, |
| 646 |
arc=0pt, |
| 647 |
boxsep=1pt,left=10pt,right=10pt, |
| 648 |
boxrule=\multinotes@BoxRule, |
| 649 |
colback=\multinotes@BackgroundColour, |
| 650 |
coltext={ |
| 651 |
\ifmultinotes@noanswers\multinotes@BackgroundColour |
| 652 |
\else\ifmultinotes@blankanswers\multinotes@BackgroundColour |
| 653 |
\else\multinotes@AnswerColour |
| 654 |
\fi\fi |
| 655 |
}, |
| 656 |
} |
| 657 |
\fi |
| 658 |
% \end{macrocode} |
| 659 |
% |
| 660 |
% Inline answer box |
| 661 |
% \begin{macrocode} |
| 662 |
\newcommand{\ans}[1]{} |
| 663 |
\ifmultinotes@noanswers\else |
| 664 |
\ifthenelse{\isempty{#1}}% |
| 665 |
{\renewcommand{\multinotes@CurrentBoxTitle}{#1}}% |
| 666 |
{\renewcommand{\multinotes@CurrentBoxTitle}{}}% |
| 667 |
\renewtcbox{\ans}{ |
| 668 |
on line, |
| 669 |
title=\sl\multinotes@CurrentBoxTitle, |
| 670 |
coltitle=\multinotes@AnswerColour, |
| 671 |
attach title to upper={\strut}, |
| 672 |
size=\multinotes@inlineboxsize, |
| 673 |
arc=1pt, |
| 674 |
boxsep=1pt,left=5pt,right=5pt, |
| 675 |
boxrule=\multinotes@BoxRule, |
| 676 |
colback=\multinotes@BackgroundColour, |
| 677 |
coltext={ |
| 678 |
\ifmultinotes@blankanswers\multinotes@BackgroundColour |
| 679 |
\else\ifmultinotes@noanswers\multinotes@BackgroundColour |
| 680 |
\else\multinotes@AnswerColour |
| 681 |
\fi\fi |
| 682 |
}, |
| 683 |
} |
| 684 |
\fi |
| 685 |
% \end{macrocode} |
| 686 |
% |
| 687 |
% Inline proof box |
| 688 |
% \begin{macrocode} |
| 689 |
\newcommand{\prf}[1]{} |
| 690 |
\ifmultinotes@noproofs\else |
| 691 |
\ifthenelse{\isempty{#1}}% |
| 692 |
{\renewcommand{\multinotes@CurrentBoxTitle}{#1}}% |
| 693 |
{\renewcommand{\multinotes@CurrentBoxTitle}{}}% |
| 694 |
\renewtcbox{\prf}{ |
| 695 |
on line, |
| 696 |
title=\sl\multinotes@CurrentBoxTitle, |
| 697 |
coltitle=\multinotes@ProofColour, |
| 698 |
attach title to upper={\strut}, |
| 699 |
size=\multinotes@inlineboxsize, |
| 700 |
arc=1pt, |
| 701 |
boxsep=1pt,left=5pt,right=5pt, |
| 702 |
boxrule=\multinotes@BoxRule, |
| 703 |
colback=\multinotes@BackgroundColour, |
| 704 |
coltext={ |
| 705 |
\ifmultinotes@blankproofs\multinotes@BackgroundColour |
| 706 |
\else\ifmultinotes@noproofs\multinotes@BackgroundColour |
| 707 |
\else\multinotes@ProofColour |
| 708 |
\fi\fi |
| 709 |
}, |
| 710 |
} |
| 711 |
\fi |
| 712 |
% \end{macrocode} |
| 713 |
% |
| 714 |
% \subsection{Display boxes} |
| 715 |
% |
| 716 |
% Box template |
| 717 |
% \begin{macrocode} |
| 718 |
\newenvironment{multinotes@tcbox}{% |
| 719 |
\begin{tcolorbox}[ |
| 720 |
breakable, |
| 721 |
notitle, |
| 722 |
boxrule={\multinotes@BoxRule}, |
| 723 |
colback={\multinotes@BackgroundColour}, |
| 724 |
before={\smallskip}, |
| 725 |
after={}, |
| 726 |
coltext={\multinotes@CurrentColour}, |
| 727 |
skin=enhanced jigsaw, |
| 728 |
opacityback=0, |
| 729 |
height fixed for = first and middle, |
| 730 |
ignore nobreak, |
| 731 |
before upper={\parindent0em\noindent}, |
| 732 |
flushleft upper |
| 733 |
]% |
| 734 |
\begingroup |
| 735 |
}{ |
| 736 |
\endgroup |
| 737 |
\end{tcolorbox} |
| 738 |
} |
| 739 |
% \end{macrocode} |
| 740 |
% |
| 741 |
% Basic display box |
| 742 |
% \begin{macrocode} |
| 743 |
\newenvironment{multinotes@basicbox}[1][]{ |
| 744 |
\ifthenelse{\isempty{#1}}% |
| 745 |
{\renewcommand{\multinotes@CurrentBoxTitle}{}}% |
| 746 |
{\renewcommand{\multinotes@CurrentBoxTitle}{#1}} |
| 747 |
\ifmultinotes@blankmode |
| 748 |
\renewcommand{\multinotes@CurrentColour}{\multinotes@BackgroundColour} |
| 749 |
\setstretch{\multinotes@StretchFactor} |
| 750 |
\begin{multinotes@tcbox}% |
| 751 |
\ifthenelse{\isempty{#1}}{}{\multinotes@makeboxtitle}\quad |
| 752 |
\else |
| 753 |
\par |
| 754 |
\ifthenelse{\isempty{#1}}{}{\multinotes@makeboxtitle}\quad |
| 755 |
\color{\multinotes@CurrentColour} |
| 756 |
\fi |
| 757 |
}{ |
| 758 |
\ifmultinotes@blankmode |
| 759 |
\end{multinotes@tcbox} |
| 760 |
\setstretch{1} |
| 761 |
\fi |
| 762 |
\multinotes@blankmodefalse |
| 763 |
\color{\multinotes@TextColour} |
| 764 |
} |
| 765 |
% \end{macrocode} |
| 766 |
% |
| 767 |
% Basic framed box |
| 768 |
% \begin{macrocode} |
| 769 |
\newenvironment{multinotes@framedbox}[1][]{ |
| 770 |
\ifthenelse{\isempty{#1}}% |
| 771 |
{\renewcommand{\multinotes@CurrentBoxTitle}{}}% |
| 772 |
{\renewcommand{\multinotes@CurrentBoxTitle}{#1}} |
| 773 |
\ifmultinotes@blankmode |
| 774 |
\renewcommand{\multinotes@CurrentColour}{\multinotes@BackgroundColour} |
| 775 |
\setstretch{\multinotes@StretchFactor} |
| 776 |
\else |
| 777 |
\color{\multinotes@CurrentColour} |
| 778 |
\fi |
| 779 |
\begin{multinotes@tcbox}% |
| 780 |
\ifthenelse{\isempty{#1}}{}{\multinotes@makeboxtitle} |
| 781 |
}{ |
| 782 |
\mbox{} |
| 783 |
\end{multinotes@tcbox} |
| 784 |
\ifmultinotes@blankmode |
| 785 |
\setstretch{1} |
| 786 |
\fi |
| 787 |
\multinotes@blankmodefalse |
| 788 |
\renewcommand{\multinotes@CurrentColour}{\multinotes@TextColour} |
| 789 |
\color{\multinotes@TextColour} |
| 790 |
} |
| 791 |
% \end{macrocode} |
| 792 |
% |
| 793 |
% Blankbox |
| 794 |
% \begin{macrocode} |
| 795 |
\newenvironment{blankbox}[1][]{ |
| 796 |
\def\boxtitle{} |
| 797 |
\ifthenelse{\isempty{#1}}{}{\def\boxtitle{#1}} |
| 798 |
\renewcommand{\multinotes@CurrentColour}{\multinotes@ShowColour} |
| 799 |
\ifmultinotes@blanks |
| 800 |
\multinotes@blankmodetrue |
| 801 |
\fi |
| 802 |
\ifmultinotes@framedblankboxes |
| 803 |
\begin{multinotes@framedbox}[\sl\boxtitle] |
| 804 |
\else |
| 805 |
\begin{multinotes@basicbox}[\sl\boxtitle] |
| 806 |
\fi |
| 807 |
}{% |
| 808 |
\ifmultinotes@framedblankboxes |
| 809 |
\end{multinotes@framedbox} |
| 810 |
\else |
| 811 |
\end{multinotes@basicbox} |
| 812 |
\fi |
| 813 |
} |
| 814 |
% \end{macrocode} |
| 815 |
% |
| 816 |
% Proof box |
| 817 |
% \begin{macrocode} |
| 818 |
\newcommand\multinotes@createProofEnvironment{ |
| 819 |
\let\proof\@undefined |
| 820 |
\let\endproof\@undefined |
| 821 |
\newenvironment{proof}[1][]{ |
| 822 |
\renewcommand{\multinotes@CurrentColour}{\multinotes@ProofColour} |
| 823 |
\ifmultinotes@blankproofs |
| 824 |
\multinotes@blankmodetrue |
| 825 |
\fi |
| 826 |
\ifthenelse{\isempty{##1}}{ |
| 827 |
\ifmultinotes@framedproofs |
| 828 |
\begin{multinotes@framedbox}[\sl\multinotes@proofname] |
| 829 |
\else |
| 830 |
\begin{multinotes@basicbox}[\sl\multinotes@proofname] |
| 831 |
\fi |
| 832 |
}{% |
| 833 |
\ifmultinotes@framedproofs |
| 834 |
\begin{multinotes@framedbox}[##1] |
| 835 |
\else |
| 836 |
\begin{multinotes@basicbox}[##1] |
| 837 |
\fi |
| 838 |
} |
| 839 |
}{% |
| 840 |
\mbox{}\hfill\multinotes@QEDSymbol |
| 841 |
\ifmultinotes@framedproofs |
| 842 |
\end{multinotes@framedbox} |
| 843 |
\else |
| 844 |
\end{multinotes@basicbox} |
| 845 |
\fi |
| 846 |
} |
| 847 |
} |
| 848 |
\ifmultinotes@noproofs |
| 849 |
\excludecomment{proof} |
| 850 |
\else |
| 851 |
\multinotes@createProofEnvironment |
| 852 |
\fi |
| 853 |
% \end{macrocode} |
| 854 |
% |
| 855 |
% \begin{environment}{answer} |
| 856 |
% Answer box |
| 857 |
% \begin{macrocode} |
| 858 |
\newcommand\multinotes@createAnswerEnvironment{ |
| 859 |
\let\answer\@undefined |
| 860 |
\let\endanswer\@undefined |
| 861 |
\newenvironment{answer}[1][]{ |
| 862 |
\renewcommand{\multinotes@CurrentColour}{\multinotes@AnswerColour} |
| 863 |
\ifmultinotes@blankanswers |
| 864 |
\multinotes@blankmodetrue |
| 865 |
\fi |
| 866 |
\ifthenelse{\isempty{##1}}{ |
| 867 |
\ifmultinotes@framedanswers |
| 868 |
\begin{multinotes@framedbox}[\sl\multinotes@answername]% |
| 869 |
\else |
| 870 |
\begin{multinotes@basicbox}[\sl\multinotes@answername]% |
| 871 |
\fi |
| 872 |
}{% |
| 873 |
\ifmultinotes@framedanswers |
| 874 |
\begin{multinotes@framedbox}[##1]% |
| 875 |
\else |
| 876 |
\begin{multinotes@basicbox}[##1]% |
| 877 |
\fi |
| 878 |
} |
| 879 |
}{ |
| 880 |
\mbox{}\hfill\multinotes@QEDSymbol |
| 881 |
\ifmultinotes@framedanswers |
| 882 |
\end{multinotes@framedbox} |
| 883 |
\else |
| 884 |
\end{multinotes@basicbox} |
| 885 |
\fi |
| 886 |
} |
| 887 |
} |
| 888 |
\ifmultinotes@noanswers |
| 889 |
\excludecomment{answer} |
| 890 |
\else |
| 891 |
\multinotes@createAnswerEnvironment |
| 892 |
\fi |
| 893 |
% \end{macrocode} |
| 894 |
% \end{environment} |
| 895 |
% |
| 896 |
% \subsection{Floats for sketches, figures and videos} |
| 897 |
% |
| 898 |
% \begin{macro}{\sketchbox} |
| 899 |
% Custom float for sketch boxes. Caption |\sketchname| is always typeset at the top-left. Mandatory argument is the height of the box as a proportion of |\textheight|. Optional argument is a subtitle which appears in parentheses after the caption. |
| 900 |
% \begin{macrocode} |
| 901 |
\floatstyle{boxed} |
| 902 |
\newfloat{sketch}{!ht}{losk} |
| 903 |
\newcommand{\sketchbox}[2][]{} |
| 904 |
\ifmultinotes@nosketchboxes\else |
| 905 |
\renewcommand{\sketchbox}[2][]{% |
| 906 |
\begin{sketch}[H]% |
| 907 |
\color{\multinotes@CurrentColour} |
| 908 |
\vspace{1ex}\hspace{1ex}\textsl{\multinotes@sketchname}% |
| 909 |
\ifthenelse{\isempty{#1}}{}{ (#1)}\par% |
| 910 |
\parbox{\textwidth}{\vspace{#2\textheight}}% |
| 911 |
\end{sketch}% |
| 912 |
} |
| 913 |
\fi |
| 914 |
% \end{macrocode} |
| 915 |
% \end{macro} |
| 916 |
% |
| 917 |
% |
| 918 |
% \begin{macro}{\includevideo} |
| 919 |
% Custom float for videos |
| 920 |
% \begin{macrocode} |
| 921 |
\newcommand{\includevideo}[2][1]{\url{#2}} |
| 922 |
\floatstyle{boxed} |
| 923 |
\newfloat{video}{!ht}{lov}[section] |
| 924 |
\floatname{video}{Video} |
| 925 |
\captionsetup[video]{labelfont=normalfont} |
| 926 |
% \end{macrocode} |
| 927 |
% \end{macro} |
| 928 |
% |
| 929 |
% Make |\includegraphics| respond to blankmode |
| 930 |
% \begin{macrocode} |
| 931 |
\let\oldincludegraphics=\includegraphics |
| 932 |
\renewcommand\includegraphics[2][]{ |
| 933 |
\ifmultinotes@blankmode |
| 934 |
\scalebox{\multinotes@ImageStretchFactor}{ |
| 935 |
\phantom{\oldincludegraphics[#1]{#2}} |
| 936 |
} |
| 937 |
\else |
| 938 |
\oldincludegraphics[#1]{#2} |
| 939 |
\fi |
| 940 |
} |
| 941 |
% \end{macrocode} |
| 942 |
% |
| 943 |
% Display alternative image under under blankmode |
| 944 |
% \begin{macrocode} |
| 945 |
\newlength\imageheight |
| 946 |
\newlength\imagewidth |
| 947 |
\newcommand{\includetwographics}[3][scale=1]{ |
| 948 |
\ifmultinotes@blankmode |
| 949 |
\settoheight{\imageheight}{\oldincludegraphics[#1]{#2}} |
| 950 |
\settowidth{\imagewidth}{\oldincludegraphics[#1]{#2}} |
| 951 |
\scalebox{\multinotes@ImageStretchFactor}{ |
| 952 |
\oldincludegraphics[height=\imageheight,width=\imagewidth,keepaspectratio]{#3} |
| 953 |
} |
| 954 |
\else |
| 955 |
\oldincludegraphics[#1]{#2} |
| 956 |
\fi |
| 957 |
} |
| 958 |
% \end{macrocode} |
| 959 |
% |
| 960 |
% Replace tikz picture by blank box (moody) |
| 961 |
% \begin{macrocode} |
| 962 |
\newcommand{\blanktikz}{% |
| 963 |
\ifmultinotes@blankmode |
| 964 |
\tikzset{every picture/.append style={ |
| 965 |
scale=\multinotes@ImageStretchFactor, |
| 966 |
execute at end picture={ |
| 967 |
\draw[fill=\multinotes@BackgroundColour] |
| 968 |
(current bounding box.south west) |
| 969 |
rectangle |
| 970 |
(current bounding box.north east); |
| 971 |
}}} |
| 972 |
\fi |
| 973 |
} |
| 974 |
% \end{macrocode} |
| 975 |
% |
| 976 |
% \subsection{Exercise sheets (inspired by {\tt exam.cls})} |
| 977 |
% |
| 978 |
% Check that exam.cls is not already loaded. |
| 979 |
% \begin{macrocode} |
| 980 |
\@ifclassloaded{exam}{}{% |
| 981 |
% \end{macrocode} |
| 982 |
% |
| 983 |
% Counters and labels |
| 984 |
% \begin{macrocode} |
| 985 |
\newcounter{question} |
| 986 |
\newcounter{partno} |
| 987 |
\newcounter{subpart} |
| 988 |
\newcounter{choice} |
| 989 |
\newcommand\questionlabel{\arabic{question}.} |
| 990 |
\newcommand\partlabel{(\alph{partno})} |
| 991 |
\newcommand\subpartlabel{(\roman{subpart})} |
| 992 |
% \end{macrocode} |
| 993 |
% |
| 994 |
% Default symbols (circle for MC, square for MA) |
| 995 |
% \begin{macrocode} |
| 996 |
\newcommand{\choicechar}[1]{\def\choice@char{#1}} |
| 997 |
\newcommand{\chosenchar}[1]{\def\chosen@char{#1}} |
| 998 |
\newcommand{\checkboxchar}[1]{\def\checkbox@char{#1}} |
| 999 |
\newcommand{\checkedchar}[1]{\def\checked@char{#1}} |
| 1000 |
\newcommand{\bigsquare}{\raisebox{0.5ex}{\fbox{\phantom{\rule{0.5ex}{0.5ex}}}}} |
| 1001 |
\choicechar{$\bigcirc$} |
| 1002 |
\chosenchar{$\text{\rlap{\,$\checkmark$}}\bigcirc$} |
| 1003 |
\checkboxchar{$\bigsquare$} |
| 1004 |
\checkedchar{$\rlap{\hskip 0.2ex\raisebox{0.2ex}{\checkmark}}{\bigsquare}$} |
| 1005 |
% \end{macrocode} |
| 1006 |
% |
| 1007 |
% Hooks for customisation |
| 1008 |
% \begin{macrocode} |
| 1009 |
\newcommand\questionshook{} |
| 1010 |
\newcommand\partshook{} |
| 1011 |
\newcommand\subpartshook{} |
| 1012 |
\newcommand\choiceshook{} |
| 1013 |
\newcommand\checkboxeshook{} |
| 1014 |
% \end{macrocode} |
| 1015 |
% |
| 1016 |
% Questions, parts and subparts. |
| 1017 |
% \begin{macrocode} |
| 1018 |
\newenvironment{questions}{ |
| 1019 |
\def\@queslevel{question} |
| 1020 |
\def\question{\@checkqueslevel{question}\item} |
| 1021 |
\def\subpart{\@checkqueslevel{subpart}\item} |
| 1022 |
\list{\questionlabel}{ |
| 1023 |
\usecounter{question} |
| 1024 |
\settowidth{\leftmargin}{10.\hskip\labelsep} |
| 1025 |
\labelwidth\leftmargin\advance\labelwidth-\labelsep |
| 1026 |
\partopsep=0pt\questionshook |
| 1027 |
}}{\endlist} |
| 1028 |
\newenvironment{parts}{ |
| 1029 |
\def\@queslevel{part} |
| 1030 |
\def\part{\@checkqueslevel{part}\item} |
| 1031 |
\list{\partlabel}{ |
| 1032 |
\usecounter{partno}\def\makelabel##1{\hss\llap{##1}} |
| 1033 |
\settowidth{\leftmargin}{(m)\hskip\labelsep} |
| 1034 |
\labelwidth\leftmargin\advance\labelwidth-\labelsep |
| 1035 |
\topsep=0pt\partopsep=0pt\partshook |
| 1036 |
}}{\endlist} |
| 1037 |
\newenvironment{subparts}{ |
| 1038 |
\def\@queslevel{subpart} |
| 1039 |
\list{\subpartlabel}{ |
| 1040 |
\usecounter{subpart}\def\makelabel##1{\hss\llap{##1}} |
| 1041 |
\settowidth{\leftmargin}{vii.\hskip\labelsep} |
| 1042 |
\labelwidth\leftmargin\advance\labelwidth-\labelsep |
| 1043 |
\topsep=0pt\partopsep=0pt\subpartshook |
| 1044 |
}}{\endlist} |
| 1045 |
% \end{macrocode} |
| 1046 |
% |
| 1047 |
% Choices and checkboxes (MC and MA) |
| 1048 |
% \begin{macrocode} |
| 1049 |
\newif\if@correctchoice |
| 1050 |
\newcommand\CorrectChoiceEmphasis[1]{\def\CorrectChoice@Emphasis{#1}} |
| 1051 |
\CorrectChoiceEmphasis{\bfseries} |
| 1052 |
\newenvironment{choices}{ |
| 1053 |
\list{\choice@char}{ |
| 1054 |
\usecounter{choice} |
| 1055 |
\settowidth{\leftmargin}{W.\hskip\labelsep} |
| 1056 |
\def\choice{\if@correctchoice\endgroup\fi\item} |
| 1057 |
\def\CorrectChoice{ |
| 1058 |
\if@correctchoice\endgroup\fi |
| 1059 |
\ifmultinotes@noanswers\item |
| 1060 |
\else\ifmultinotes@blankanswers\item |
| 1061 |
\else |
| 1062 |
\begingroup |
| 1063 |
\@correctchoicetrue |
| 1064 |
\CorrectChoice@Emphasis |
| 1065 |
\item[\chosen@char] |
| 1066 |
\fi\fi |
| 1067 |
} |
| 1068 |
\let\correctchoice\CorrectChoice |
| 1069 |
\topsep=2pt\partopsep=0pt\choiceshook |
| 1070 |
} |
| 1071 |
}{\if@correctchoice\endgroup\fi\endlist} |
| 1072 |
\newenvironment{checkboxes}{ |
| 1073 |
\list{\checkbox@char}{ |
| 1074 |
\usecounter{choice} |
| 1075 |
\settowidth{\leftmargin}{W.\hskip\labelsep} |
| 1076 |
\def\choice{\if@correctchoice\endgroup\fi\item} |
| 1077 |
\def\CorrectChoice{ |
| 1078 |
\if@correctchoice\endgroup\fi |
| 1079 |
\ifmultinotes@noanswers\item |
| 1080 |
\else\ifmultinotes@blankanswers\item |
| 1081 |
\else |
| 1082 |
\begingroup |
| 1083 |
\@correctchoicetrue |
| 1084 |
\CorrectChoice@Emphasis |
| 1085 |
\item[\checked@char] |
| 1086 |
\fi\fi |
| 1087 |
} |
| 1088 |
\let\correctchoice\CorrectChoice |
| 1089 |
\topsep=2pt\partopsep=0pt\choiceshook |
| 1090 |
} |
| 1091 |
}{\if@correctchoice\endgroup\fi\endlist} |
| 1092 |
% \end{macrocode} |
| 1093 |
% |
| 1094 |
% Nesting check and indentation trick. |
| 1095 |
% \begin{macrocode} |
| 1096 |
\def\@checkqueslevel#1{ |
| 1097 |
\begingroup |
| 1098 |
\def\@temp{#1} |
| 1099 |
\ifx\@temp\@queslevel\null |
| 1100 |
\else\ClassError{multinotes}{ |
| 1101 |
I found a #1 where I expected to find a \@queslevel |
| 1102 |
\MessageBreak |
| 1103 |
}{} |
| 1104 |
\fi\endgroup |
| 1105 |
} |
| 1106 |
\long\def\uplevel#1{ |
| 1107 |
\par\bigskip\vbox{ |
| 1108 |
\leftskip=\@totalleftmargin |
| 1109 |
\advance\leftskip-\leftmargin |
| 1110 |
\advance\@totalleftmargin-\leftmargin |
| 1111 |
\advance\linewidth\leftmargin |
| 1112 |
#1 |
| 1113 |
} |
| 1114 |
\nobreak |
| 1115 |
} |
| 1116 |
% \end{macrocode} |
| 1117 |
% |
| 1118 |
% End |\@ifclassloaded{exam}| check. |
| 1119 |
% |
| 1120 |
% \begin{macrocode} |
| 1121 |
} |
| 1122 |
% \end{macrocode} |
| 1123 |
% |
| 1124 |
% \iffalse |
| 1125 |
%</package> |
| 1126 |
% \fi |
| 1127 |
% |
| 1128 |
% \iffalse |
| 1129 |
%<*basic-english> |
| 1130 |
\ProvideDictionaryFor{English}{multinotes-basic-dictionary} |
| 1131 |
\ProvideDictTranslation{Abstract}{Abstract} |
| 1132 |
\ProvideDictTranslation{Addresses}{Addresses} |
| 1133 |
\ProvideDictTranslation{addresses}{addresses} |
| 1134 |
\ProvideDictTranslation{Address}{Address} |
| 1135 |
\ProvideDictTranslation{address}{address} |
| 1136 |
\ProvideDictTranslation{and}{and} |
| 1137 |
\ProvideDictTranslation{Appendix}{Appendix} |
| 1138 |
\ProvideDictTranslation{Authors}{Authors} |
| 1139 |
\ProvideDictTranslation{authors}{authors} |
| 1140 |
\ProvideDictTranslation{Author}{Author} |
| 1141 |
\ProvideDictTranslation{author}{author} |
| 1142 |
\ProvideDictTranslation{Bibliography}{Bibliography} |
| 1143 |
\ProvideDictTranslation{cc}{cc} |
| 1144 |
\ProvideDictTranslation{Chapters}{Chapters} |
| 1145 |
\ProvideDictTranslation{chapters}{chapters} |
| 1146 |
\ProvideDictTranslation{Chapter}{Chapter} |
| 1147 |
\ProvideDictTranslation{chapter}{chapter} |
| 1148 |
\ProvideDictTranslation{Conclusion}{Conclusion} |
| 1149 |
\ProvideDictTranslation{conclusion}{conclusion} |
| 1150 |
\ProvideDictTranslation{Contents}{Contents} |
| 1151 |
\ProvideDictTranslation{Continuation}{Continuation} |
| 1152 |
\ProvideDictTranslation{continuation}{continuation} |
| 1153 |
\ProvideDictTranslation{cont}{cont} |
| 1154 |
\ProvideDictTranslation{encl (plural)}{encl} |
| 1155 |
\ProvideDictTranslation{encl (singular)}{encl} |
| 1156 |
\ProvideDictTranslation{encl}{encl} |
| 1157 |
\ProvideDictTranslation{Figures}{Figures} |
| 1158 |
\ProvideDictTranslation{figures}{figures} |
| 1159 |
\ProvideDictTranslation{Figure}{Figure} |
| 1160 |
\ProvideDictTranslation{figure}{figure} |
| 1161 |
\ProvideDictTranslation{From}{From} |
| 1162 |
\ProvideDictTranslation{from}{from} |
| 1163 |
\ProvideDictTranslation{Glossary}{Glossary} |
| 1164 |
\ProvideDictTranslation{Index}{Index} |
| 1165 |
\ProvideDictTranslation{Introduction}{Introduction} |
| 1166 |
\ProvideDictTranslation{introduction}{introduction} |
| 1167 |
\ProvideDictTranslation{List of Figures and Tables}{List of Figures and Tables} |
| 1168 |
\ProvideDictTranslation{List of Figures}{List of Figures} |
| 1169 |
\ProvideDictTranslation{List of Tables}{List of Tables} |
| 1170 |
\ProvideDictTranslation{or}{or} |
| 1171 |
\ProvideDictTranslation{Outline}{Outline} |
| 1172 |
\ProvideDictTranslation{Overview}{Overview} |
| 1173 |
\ProvideDictTranslation{Pages}{Pages} |
| 1174 |
\ProvideDictTranslation{pages}{pages} |
| 1175 |
\ProvideDictTranslation{Page}{Page} |
| 1176 |
\ProvideDictTranslation{page}{page} |
| 1177 |
\ProvideDictTranslation{Paragraphs}{Paragraphs} |
| 1178 |
\ProvideDictTranslation{paragraphs}{paragraphs} |
| 1179 |
\ProvideDictTranslation{Paragraph}{Paragraph} |
| 1180 |
\ProvideDictTranslation{paragraph}{paragraph} |
| 1181 |
\ProvideDictTranslation{Parts}{Parts} |
| 1182 |
\ProvideDictTranslation{parts}{parts} |
| 1183 |
\ProvideDictTranslation{Part}{Part} |
| 1184 |
\ProvideDictTranslation{part}{part} |
| 1185 |
\ProvideDictTranslation{Preface}{Preface} |
| 1186 |
\ProvideDictTranslation{Proofs}{Proofs} |
| 1187 |
\ProvideDictTranslation{proofs}{proofs} |
| 1188 |
\ProvideDictTranslation{Proof}{Proof} |
| 1189 |
\ProvideDictTranslation{proof}{proof} |
| 1190 |
\ProvideDictTranslation{References}{References} |
| 1191 |
\ProvideDictTranslation{Related work}{Related work} |
| 1192 |
\ProvideDictTranslation{Related Work}{Related Work} |
| 1193 |
\ProvideDictTranslation{Sections}{Sections} |
| 1194 |
\ProvideDictTranslation{sections}{sections} |
| 1195 |
\ProvideDictTranslation{Section}{Section} |
| 1196 |
\ProvideDictTranslation{section}{section} |
| 1197 |
\ProvideDictTranslation{See also}{See also} |
| 1198 |
\ProvideDictTranslation{see also}{see also} |
| 1199 |
\ProvideDictTranslation{See}{See} |
| 1200 |
\ProvideDictTranslation{see}{see} |
| 1201 |
\ProvideDictTranslation{Sketch of Proofs}{Sketch of Proofs} |
| 1202 |
\ProvideDictTranslation{Sketch of proofs}{Sketch of proofs} |
| 1203 |
\ProvideDictTranslation{Sketch of Proof}{Sketch of Proof} |
| 1204 |
\ProvideDictTranslation{Sketch of proof}{Sketch of proof} |
| 1205 |
\ProvideDictTranslation{Subsections}{Subsections} |
| 1206 |
\ProvideDictTranslation{subsections}{subsections} |
| 1207 |
\ProvideDictTranslation{Subsection}{Subsection} |
| 1208 |
\ProvideDictTranslation{subsection}{subsection} |
| 1209 |
\ProvideDictTranslation{Summary}{Summary} |
| 1210 |
\ProvideDictTranslation{Tables}{Tables} |
| 1211 |
\ProvideDictTranslation{tables}{tables} |
| 1212 |
\ProvideDictTranslation{Table}{Table} |
| 1213 |
\ProvideDictTranslation{table}{table} |
| 1214 |
\ProvideDictTranslation{To}{To} |
| 1215 |
\ProvideDictTranslation{to}{to} |
| 1216 |
|
| 1217 |
\ProvideDictTranslation{Monday}{Monday} |
| 1218 |
\ProvideDictTranslation{Tuesday}{Tuesday} |
| 1219 |
\ProvideDictTranslation{Wednesday}{Wednesday} |
| 1220 |
\ProvideDictTranslation{Thursday}{Thursday} |
| 1221 |
\ProvideDictTranslation{Friday}{Friday} |
| 1222 |
\ProvideDictTranslation{Saturday}{Saturday} |
| 1223 |
\ProvideDictTranslation{Sunday}{Sunday} |
| 1224 |
|
| 1225 |
\ProvideDictTranslation{January}{January} |
| 1226 |
\ProvideDictTranslation{February}{February} |
| 1227 |
\ProvideDictTranslation{March}{March} |
| 1228 |
\ProvideDictTranslation{April}{April} |
| 1229 |
\ProvideDictTranslation{May}{May} |
| 1230 |
\ProvideDictTranslation{June}{June} |
| 1231 |
\ProvideDictTranslation{July}{July} |
| 1232 |
\ProvideDictTranslation{August}{August} |
| 1233 |
\ProvideDictTranslation{September}{September} |
| 1234 |
\ProvideDictTranslation{October}{October} |
| 1235 |
\ProvideDictTranslation{November}{November} |
| 1236 |
\ProvideDictTranslation{December}{December} |
| 1237 |
%</basic-english> |
| 1238 |
%<*theorem-english> |
| 1239 |
\ProvideDictionaryFor{English}{multinotes-theorem-dictionary} |
| 1240 |
\ProvideDictTranslation{Answers}{Answers} |
| 1241 |
\ProvideDictTranslation{answers}{answers} |
| 1242 |
\ProvideDictTranslation{Answer}{Answer} |
| 1243 |
\ProvideDictTranslation{answer}{answer} |
| 1244 |
\ProvideDictTranslation{Answerabb}{Ans.} |
| 1245 |
\ProvideDictTranslation{answerabb}{ans.} |
| 1246 |
\ProvideDictTranslation{Checks}{Checks} |
| 1247 |
\ProvideDictTranslation{checks}{checks} |
| 1248 |
\ProvideDictTranslation{Check}{Check} |
| 1249 |
\ProvideDictTranslation{check}{check} |
| 1250 |
\ProvideDictTranslation{Claims}{Claims} |
| 1251 |
\ProvideDictTranslation{claims}{claims} |
| 1252 |
\ProvideDictTranslation{Claim}{Claim} |
| 1253 |
\ProvideDictTranslation{claim}{claim} |
| 1254 |
\ProvideDictTranslation{Comments}{Comments} |
| 1255 |
\ProvideDictTranslation{comments}{comments} |
| 1256 |
\ProvideDictTranslation{Comment}{Comment} |
| 1257 |
\ProvideDictTranslation{comment}{comment} |
| 1258 |
\ProvideDictTranslation{Conditions}{Conditions} |
| 1259 |
\ProvideDictTranslation{conditions}{conditions} |
| 1260 |
\ProvideDictTranslation{Condition}{Condition} |
| 1261 |
\ProvideDictTranslation{condition}{condition} |
| 1262 |
\ProvideDictTranslation{Conjectures}{Conjectures} |
| 1263 |
\ProvideDictTranslation{conjectures}{conjectures} |
| 1264 |
\ProvideDictTranslation{Conjecture}{Conjecture} |
| 1265 |
\ProvideDictTranslation{conjecture}{conjecture} |
| 1266 |
\ProvideDictTranslation{Continued}{Continued} |
| 1267 |
\ProvideDictTranslation{continued}{continued} |
| 1268 |
\ProvideDictTranslation{Continuedabb}{Cont.} |
| 1269 |
\ProvideDictTranslation{continuedabb}{cont.} |
| 1270 |
\ProvideDictTranslation{Corollaries}{Corollaries} |
| 1271 |
\ProvideDictTranslation{corollaries}{corollaries} |
| 1272 |
\ProvideDictTranslation{Corollary}{Corollary} |
| 1273 |
\ProvideDictTranslation{corollary}{corollary} |
| 1274 |
\ProvideDictTranslation{Definitions}{Definitions} |
| 1275 |
\ProvideDictTranslation{definitions}{definitions} |
| 1276 |
\ProvideDictTranslation{Definition}{Definition} |
| 1277 |
\ProvideDictTranslation{definition}{definition} |
| 1278 |
\ProvideDictTranslation{Examples}{Examples} |
| 1279 |
\ProvideDictTranslation{examples}{examples} |
| 1280 |
\ProvideDictTranslation{Example}{Example} |
| 1281 |
\ProvideDictTranslation{example}{example} |
| 1282 |
\ProvideDictTranslation{Exercises}{Exercises} |
| 1283 |
\ProvideDictTranslation{exercises}{exercises} |
| 1284 |
\ProvideDictTranslation{Exercise}{Exercise} |
| 1285 |
\ProvideDictTranslation{exercise}{exercise} |
| 1286 |
\ProvideDictTranslation{Lemmas}{Lemmas} |
| 1287 |
\ProvideDictTranslation{lemmas}{lemmas} |
| 1288 |
\ProvideDictTranslation{Lemma}{Lemma} |
| 1289 |
\ProvideDictTranslation{lemma}{lemma} |
| 1290 |
\ProvideDictTranslation{Observations}{Observations} |
| 1291 |
\ProvideDictTranslation{observations}{observations} |
| 1292 |
\ProvideDictTranslation{Observation}{Observation} |
| 1293 |
\ProvideDictTranslation{observation}{observation} |
| 1294 |
\ProvideDictTranslation{Problems}{Problems} |
| 1295 |
\ProvideDictTranslation{problems}{problems} |
| 1296 |
\ProvideDictTranslation{Problem}{Problem} |
| 1297 |
\ProvideDictTranslation{problem}{problem} |
| 1298 |
\ProvideDictTranslation{Proofs}{Proofs} |
| 1299 |
\ProvideDictTranslation{proofs}{proofs} |
| 1300 |
\ProvideDictTranslation{Proof}{Proof} |
| 1301 |
\ProvideDictTranslation{proof}{proof} |
| 1302 |
\ProvideDictTranslation{Proofabb}{Prf.} |
| 1303 |
\ProvideDictTranslation{proofabb}{prf.} |
| 1304 |
\ProvideDictTranslation{Propositions}{Propositions} |
| 1305 |
\ProvideDictTranslation{propositions}{propositions} |
| 1306 |
\ProvideDictTranslation{Proposition}{Proposition} |
| 1307 |
\ProvideDictTranslation{proposition}{proposition} |
| 1308 |
\ProvideDictTranslation{Questions}{Questions} |
| 1309 |
\ProvideDictTranslation{questions}{questions} |
| 1310 |
\ProvideDictTranslation{Question}{Question} |
| 1311 |
\ProvideDictTranslation{question}{question} |
| 1312 |
\ProvideDictTranslation{Remarks}{Remarks} |
| 1313 |
\ProvideDictTranslation{remarks}{remarks} |
| 1314 |
\ProvideDictTranslation{Remark}{Remark} |
| 1315 |
\ProvideDictTranslation{remark}{remark} |
| 1316 |
\ProvideDictTranslation{Sketches}{Sketches} |
| 1317 |
\ProvideDictTranslation{sketches}{sketches} |
| 1318 |
\ProvideDictTranslation{Sketch}{Sketch} |
| 1319 |
\ProvideDictTranslation{sketch}{sketch} |
| 1320 |
\ProvideDictTranslation{Solutions}{Solutions} |
| 1321 |
\ProvideDictTranslation{solutions}{solutions} |
| 1322 |
\ProvideDictTranslation{Solution}{Solution} |
| 1323 |
\ProvideDictTranslation{solution}{solution} |
| 1324 |
\ProvideDictTranslation{Solutionabb}{Sol.} |
| 1325 |
\ProvideDictTranslation{solutionabb}{sol.} |
| 1326 |
\ProvideDictTranslation{Summaries}{Summaries} |
| 1327 |
\ProvideDictTranslation{summaries}{summaries} |
| 1328 |
\ProvideDictTranslation{Summary}{Summary} |
| 1329 |
\ProvideDictTranslation{summary}{summary} |
| 1330 |
\ProvideDictTranslation{Theorems}{Theorems} |
| 1331 |
\ProvideDictTranslation{theorems}{theorems} |
| 1332 |
\ProvideDictTranslation{Theorem}{Theorem} |
| 1333 |
\ProvideDictTranslation{theorem}{theorem} |
| 1334 |
%</theorem-english> |
| 1335 |
% |
| 1336 |
%<*basic-welsh> |
| 1337 |
\ProvideDictionaryFor{Welsh}{multinotes-basic-dictionary} |
| 1338 |
\ProvideDictTranslation{Abstract}{Crynodeb} |
| 1339 |
\ProvideDictTranslation{Addresses}{Cyfeiriadau} |
| 1340 |
\ProvideDictTranslation{addresses}{cyfeiriadau} |
| 1341 |
\ProvideDictTranslation{Address}{Cyfeiriad} |
| 1342 |
\ProvideDictTranslation{address}{cyfeiriad} |
| 1343 |
\ProvideDictTranslation{and}{a} |
| 1344 |
\ProvideDictTranslation{Appendix}{Atodiad} |
| 1345 |
\ProvideDictTranslation{Authors}{Awduron} |
| 1346 |
\ProvideDictTranslation{authors}{awduron} |
| 1347 |
\ProvideDictTranslation{Author}{Awdur} |
| 1348 |
\ProvideDictTranslation{author}{awdur} |
| 1349 |
\ProvideDictTranslation{Bibliography}{Llyfryddiaeth} |
| 1350 |
\ProvideDictTranslation{cc}{cop\"\i au} |
| 1351 |
\ProvideDictTranslation{Chapters}{Penodau} |
| 1352 |
\ProvideDictTranslation{chapters}{penodau} |
| 1353 |
\ProvideDictTranslation{Chapter}{Pennod} |
| 1354 |
\ProvideDictTranslation{chapter}{pennod} |
| 1355 |
\ProvideDictTranslation{Conclusion}{Casgliad} |
| 1356 |
\ProvideDictTranslation{conclusion}{casglisd} |
| 1357 |
\ProvideDictTranslation{Contents}{Cynnwys} |
| 1358 |
\ProvideDictTranslation{Continuation}{Parhad} |
| 1359 |
\ProvideDictTranslation{continuation}{parhad} |
| 1360 |
\ProvideDictTranslation{cont}{parh.} |
| 1361 |
\ProvideDictTranslation{encl (plural)}{amgae\"{e}dig} |
| 1362 |
\ProvideDictTranslation{encl (singular)}{amgae\"{e}dig} |
| 1363 |
\ProvideDictTranslation{encl}{amgae\"{e}dig} |
| 1364 |
\ProvideDictTranslation{Figures}{Ffigurau} |
| 1365 |
\ProvideDictTranslation{figures}{ffigurau} |
| 1366 |
\ProvideDictTranslation{Figure}{Ffigur} |
| 1367 |
\ProvideDictTranslation{figure}{ffigur} |
| 1368 |
\ProvideDictTranslation{From}{Oddi wrth} |
| 1369 |
\ProvideDictTranslation{from}{oddi wrth} |
| 1370 |
\ProvideDictTranslation{Glossary}{Rhestr termau} |
| 1371 |
\ProvideDictTranslation{Index}{Mynegai} |
| 1372 |
\ProvideDictTranslation{Introduction}{Cyflwyniad} |
| 1373 |
\ProvideDictTranslation{introduction}{cyflwyniad} |
| 1374 |
\ProvideDictTranslation{List of Figures and Tables}{Rhestr ffigurau a thablau} |
| 1375 |
\ProvideDictTranslation{List of Figures}{Rhestr ffigurau} |
| 1376 |
\ProvideDictTranslation{List of Tables}{Rhestr tablau} |
| 1377 |
\ProvideDictTranslation{or}{neu} |
| 1378 |
\ProvideDictTranslation{Outline}{Amlinelliad} |
| 1379 |
\ProvideDictTranslation{Overview}{Trosolwg} |
| 1380 |
\ProvideDictTranslation{Pages}{Tudalennau} |
| 1381 |
\ProvideDictTranslation{pages}{tudalennau} |
| 1382 |
\ProvideDictTranslation{Page}{Tudalen} |
| 1383 |
\ProvideDictTranslation{page}{tudalen} |
| 1384 |
\ProvideDictTranslation{Paragraphs}{Paragraffau} |
| 1385 |
\ProvideDictTranslation{paragraphs}{paragraffau} |
| 1386 |
\ProvideDictTranslation{Paragraph}{Paragraff} |
| 1387 |
\ProvideDictTranslation{paragraph}{paragraff} |
| 1388 |
\ProvideDictTranslation{Parts}{Rhannau} |
| 1389 |
\ProvideDictTranslation{parts}{rhannau} |
| 1390 |
\ProvideDictTranslation{Part}{Rhan} |
| 1391 |
\ProvideDictTranslation{part}{rhan} |
| 1392 |
\ProvideDictTranslation{Preface}{Rhagair} |
| 1393 |
\ProvideDictTranslation{Proofs}{Profion} |
| 1394 |
\ProvideDictTranslation{proofs}{profion} |
| 1395 |
\ProvideDictTranslation{Proof}{Prawf} |
| 1396 |
\ProvideDictTranslation{proof}{prawf} |
| 1397 |
\ProvideDictTranslation{References}{Cyfeiriadau} |
| 1398 |
\ProvideDictTranslation{Related work}{Gwaith cysylltiedig} |
| 1399 |
\ProvideDictTranslation{Related Work}{Gwaith Cysylltiedig} |
| 1400 |
\ProvideDictTranslation{Sections}{Adrannau} |
| 1401 |
\ProvideDictTranslation{sections}{adrannau} |
| 1402 |
\ProvideDictTranslation{Section}{Adran} |
| 1403 |
\ProvideDictTranslation{section}{adran} |
| 1404 |
\ProvideDictTranslation{See also}{Gweler hefyd} |
| 1405 |
\ProvideDictTranslation{see also}{gweler hefyd} |
| 1406 |
\ProvideDictTranslation{See}{Gweler} |
| 1407 |
\ProvideDictTranslation{see}{gweler} |
| 1408 |
\ProvideDictTranslation{Sketch of Proofs}{Bras Brofion} |
| 1409 |
\ProvideDictTranslation{Sketch of proofs}{Bras brofion} |
| 1410 |
\ProvideDictTranslation{Sketch of Proof}{Bras Brawf} |
| 1411 |
\ProvideDictTranslation{Sketch of proof}{Bras brawf} |
| 1412 |
\ProvideDictTranslation{Subsections}{Isadrannau} |
| 1413 |
\ProvideDictTranslation{subsections}{isadrannau} |
| 1414 |
\ProvideDictTranslation{Subsection}{Isadran} |
| 1415 |
\ProvideDictTranslation{subsection}{isadran} |
| 1416 |
\ProvideDictTranslation{Summary}{Crynodeb} |
| 1417 |
\ProvideDictTranslation{Tables}{Tablau} |
| 1418 |
\ProvideDictTranslation{tables}{tablau} |
| 1419 |
\ProvideDictTranslation{Table}{Tabl} |
| 1420 |
\ProvideDictTranslation{table}{tabl} |
| 1421 |
\ProvideDictTranslation{To}{At} |
| 1422 |
\ProvideDictTranslation{to}{at} |
| 1423 |
|
| 1424 |
\ProvideDictTranslation{Monday}{dydd Llun} |
| 1425 |
\ProvideDictTranslation{Tuesday}{dydd Mawrth} |
| 1426 |
\ProvideDictTranslation{Wednesday}{dydd Mercher} |
| 1427 |
\ProvideDictTranslation{Thursday}{dydd Iau} |
| 1428 |
\ProvideDictTranslation{Friday}{dydd Gwener} |
| 1429 |
\ProvideDictTranslation{Saturday}{dydd Sadwrn} |
| 1430 |
\ProvideDictTranslation{Sunday}{dydd Sul} |
| 1431 |
|
| 1432 |
\ProvideDictTranslation{January}{Ionawr} |
| 1433 |
\ProvideDictTranslation{February}{Chwefror} |
| 1434 |
\ProvideDictTranslation{March}{Mawrth} |
| 1435 |
\ProvideDictTranslation{April}{Ebrill} |
| 1436 |
\ProvideDictTranslation{May}{Mai} |
| 1437 |
\ProvideDictTranslation{June}{Mehefin} |
| 1438 |
\ProvideDictTranslation{July}{Gorffennaf} |
| 1439 |
\ProvideDictTranslation{August}{Awst} |
| 1440 |
\ProvideDictTranslation{September}{Medi} |
| 1441 |
\ProvideDictTranslation{October}{Hydref} |
| 1442 |
\ProvideDictTranslation{November}{Tachwedd} |
| 1443 |
\ProvideDictTranslation{December}{Rhagfyr} |
| 1444 |
%</basic-welsh> |
| 1445 |
% |
| 1446 |
%<*theorem-welsh> |
| 1447 |
\ProvideDictionaryFor{Welsh}{multinotes-theorem-dictionary} |
| 1448 |
\ProvideDictTranslation{Answers}{Atebion} |
| 1449 |
\ProvideDictTranslation{answers}{atebion} |
| 1450 |
\ProvideDictTranslation{Answer}{Ateb} |
| 1451 |
\ProvideDictTranslation{answer}{ateb} |
| 1452 |
\ProvideDictTranslation{Answerabb}{Atb.} |
| 1453 |
\ProvideDictTranslation{answerabb}{atb.} |
| 1454 |
\ProvideDictTranslation{Checks}{Gwiriadau} |
| 1455 |
\ProvideDictTranslation{checks}{gwiriadau} |
| 1456 |
\ProvideDictTranslation{Check}{Gwiriad} |
| 1457 |
\ProvideDictTranslation{check}{gwiriad} |
| 1458 |
\ProvideDictTranslation{Claims}{Honiadau} |
| 1459 |
\ProvideDictTranslation{claims}{honiadau} |
| 1460 |
\ProvideDictTranslation{Claim}{Honiad} |
| 1461 |
\ProvideDictTranslation{claim}{honiad} |
| 1462 |
\ProvideDictTranslation{Comments}{Sylwadau} |
| 1463 |
\ProvideDictTranslation{comments}{sylwadau} |
| 1464 |
\ProvideDictTranslation{Comment}{Sylwad} |
| 1465 |
\ProvideDictTranslation{comment}{sylwad} |
| 1466 |
\ProvideDictTranslation{Conjectures}{Tybiaethau} |
| 1467 |
\ProvideDictTranslation{conjectures}{tybiaethau} |
| 1468 |
\ProvideDictTranslation{Conjecture}{Tybiaeth} |
| 1469 |
\ProvideDictTranslation{conjecture}{tybiaeth} |
| 1470 |
\ProvideDictTranslation{Conditions}{Amodau} |
| 1471 |
\ProvideDictTranslation{conditions}{amodau} |
| 1472 |
\ProvideDictTranslation{Condition}{Amod} |
| 1473 |
\ProvideDictTranslation{condition}{amod} |
| 1474 |
\ProvideDictTranslation{Continued}{Parhad} |
| 1475 |
\ProvideDictTranslation{continued}{parhad} |
| 1476 |
\ProvideDictTranslation{Continuedabb}{Parh.} |
| 1477 |
\ProvideDictTranslation{continuedabb}{parh.} |
| 1478 |
\ProvideDictTranslation{Corollaries}{Canlynebau} |
| 1479 |
\ProvideDictTranslation{corollaries}{canlynebau} |
| 1480 |
\ProvideDictTranslation{Corollary}{Canlyneb} |
| 1481 |
\ProvideDictTranslation{corollary}{canlyneb} |
| 1482 |
\ProvideDictTranslation{Definitions}{Diffiniadau} |
| 1483 |
\ProvideDictTranslation{definitions}{diffiniadau} |
| 1484 |
\ProvideDictTranslation{Definition}{Diffiniad} |
| 1485 |
\ProvideDictTranslation{definition}{diffiniad} |
| 1486 |
\ProvideDictTranslation{Examples}{Enghreifftiau} |
| 1487 |
\ProvideDictTranslation{examples}{enghreifftiau} |
| 1488 |
\ProvideDictTranslation{Example}{Enghraifft} |
| 1489 |
\ProvideDictTranslation{example}{enghraifft} |
| 1490 |
\ProvideDictTranslation{Exercises}{Ymarferion} |
| 1491 |
\ProvideDictTranslation{exercises}{ymarferion} |
| 1492 |
\ProvideDictTranslation{Exercise}{Ymarfer} |
| 1493 |
\ProvideDictTranslation{exercise}{ymarfer} |
| 1494 |
\ProvideDictTranslation{Facts}{Ffeithiau} |
| 1495 |
\ProvideDictTranslation{facts}{ffeithiau} |
| 1496 |
\ProvideDictTranslation{Fact}{Ffaith} |
| 1497 |
\ProvideDictTranslation{fact}{ffaith} |
| 1498 |
\ProvideDictTranslation{Lemmas}{Lemata} |
| 1499 |
\ProvideDictTranslation{lemmas}{lemata} |
| 1500 |
\ProvideDictTranslation{Lemma}{Lema} |
| 1501 |
\ProvideDictTranslation{lemma}{lema} |
| 1502 |
\ProvideDictTranslation{Observations}{Arsylwadau} |
| 1503 |
\ProvideDictTranslation{observations}{arsylwadau} |
| 1504 |
\ProvideDictTranslation{Observation}{Arsylwad} |
| 1505 |
\ProvideDictTranslation{observation}{arsylwad} |
| 1506 |
\ProvideDictTranslation{Problems}{Problemau} |
| 1507 |
\ProvideDictTranslation{problems}{problemau} |
| 1508 |
\ProvideDictTranslation{Problem}{Problem} |
| 1509 |
\ProvideDictTranslation{problem}{problem} |
| 1510 |
\ProvideDictTranslation{Proofs}{Profion} |
| 1511 |
\ProvideDictTranslation{proofs}{profion} |
| 1512 |
\ProvideDictTranslation{Proof}{Prawf} |
| 1513 |
\ProvideDictTranslation{proof}{prawf} |
| 1514 |
\ProvideDictTranslation{Proofabb}{Prf.} |
| 1515 |
\ProvideDictTranslation{proofabb}{prf.} |
| 1516 |
\ProvideDictTranslation{Propositions}{Gosodiadau} |
| 1517 |
\ProvideDictTranslation{propositions}{gosodiadau} |
| 1518 |
\ProvideDictTranslation{Proposition}{Gosodiad} |
| 1519 |
\ProvideDictTranslation{proposition}{gosodiad} |
| 1520 |
\ProvideDictTranslation{Questions}{Cwestiynnau} |
| 1521 |
\ProvideDictTranslation{questions}{cwestiynnau} |
| 1522 |
\ProvideDictTranslation{Question}{Cwestiwn} |
| 1523 |
\ProvideDictTranslation{question}{cwestiwn} |
| 1524 |
\ProvideDictTranslation{Remarks}{Sylwadau} |
| 1525 |
\ProvideDictTranslation{remarks}{sylwadau} |
| 1526 |
\ProvideDictTranslation{Remark}{Sylwad} |
| 1527 |
\ProvideDictTranslation{remark}{sylwad} |
| 1528 |
\ProvideDictTranslation{Sketches}{Brasluniau} |
| 1529 |
\ProvideDictTranslation{sketches}{brasluniau} |
| 1530 |
\ProvideDictTranslation{Sketch}{Braslun} |
| 1531 |
\ProvideDictTranslation{sketch}{braslun} |
| 1532 |
\ProvideDictTranslation{Solutions}{Datrysiadau} |
| 1533 |
\ProvideDictTranslation{solutions}{datrysiadau} |
| 1534 |
\ProvideDictTranslation{Solution}{Datrysiad} |
| 1535 |
\ProvideDictTranslation{solution}{datrysiad} |
| 1536 |
\ProvideDictTranslation{Solutionabb}{Dat.} |
| 1537 |
\ProvideDictTranslation{solutionabb}{dat.} |
| 1538 |
\ProvideDictTranslation{Summaries}{Crynodebau} |
| 1539 |
\ProvideDictTranslation{summaries}{crynodebau} |
| 1540 |
\ProvideDictTranslation{Summary}{Crynodeb} |
| 1541 |
\ProvideDictTranslation{summary}{crynodeb} |
| 1542 |
\ProvideDictTranslation{Theorems}{Theoremau} |
| 1543 |
\ProvideDictTranslation{theorems}{theoremau} |
| 1544 |
\ProvideDictTranslation{Theorem}{Theorem} |
| 1545 |
\ProvideDictTranslation{theorem}{theorem} |
| 1546 |
%</theorem-welsh> |
| 1547 |
% \fi |
| 1548 |
|
| 1549 |
% \Finale |