Replace "ORMC" with generic "handout"
This commit is contained in:
parent
a4e5a065b0
commit
acf57ceab6
18
README.md
18
README.md
@ -1,7 +1,7 @@
|
||||
[tinymist]: https://marketplace.visualstudio.com/items?itemName=myriad-dreamin.tinymist
|
||||
[latex-workshop]: https://marketplace.visualstudio.com/items?itemName=James-Yu.latex-workshop
|
||||
[CC BY-NC-SA 4.0]: https://creativecommons.org/licenses/by-nc-sa/4.0
|
||||
[betalupi.com/handouts]: https://static.betalupi.com/ormc
|
||||
[betalupi.com/handouts]: https://betalupi.com/handouts
|
||||
[ORMC]: https://circles.math.ucla.edu/circles/
|
||||
[Overleaf]: https://overleaf.com
|
||||
[Typst.app]: https://typst.app
|
||||
@ -26,7 +26,7 @@ By submitting or editing a handout in this repository, you agree to release it u
|
||||
|
||||
## 🛠️ Contributing
|
||||
|
||||
If you want to use one of these handouts for a class, see [`betalupi.com/handouts`](https://betalupi.com/handouts). \
|
||||
If you want to use one of these handouts for a class, see [betalupi.com/handouts]. \
|
||||
You only need to read this section if you want to edit these handouts.
|
||||
|
||||
### Setup
|
||||
@ -56,7 +56,7 @@ This repository is organized as follows:
|
||||
- [`./tools`](./tools) contains build scripts, [`./.github`](./.github) configures automation. \
|
||||
You can ignore everything in these directories.
|
||||
|
||||
All handouts in this repository are based on `ormc_handout.cls` or `handout@0.1.0`.
|
||||
All handouts in this repository are based on `handout.cls` or `handout@0.1.0`.
|
||||
|
||||
- If you're using Typst (preferred), read [`docs-typst.md`](./docs-typst.md)
|
||||
- If you're still using LaTeX, read [`docs-latex.md`](./docs-latex.md).
|
||||
@ -95,8 +95,8 @@ _(I do not recommend this. The default toolchain makes it easier to share improv
|
||||
### For LaTeX:
|
||||
|
||||
1. Get the handout's directory (i.e, download the whole repo as a zip and extract the folder you want.)
|
||||
2. Download [`./resources/ormc_handout.cls`](./resources/ormc_handout.cls)
|
||||
3. Put this `ormc_handout.cls` in the same directory as the handout.
|
||||
2. Download [`./resources/handout.cls`](./resources/handout.cls)
|
||||
3. Put this `handout.cls` in the same directory as the handout.
|
||||
4. Fix the include path at the top of `main.tex`:
|
||||
|
||||
You'll need to replace
|
||||
@ -104,7 +104,7 @@ You'll need to replace
|
||||
```latex
|
||||
\documentclass[
|
||||
...
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
```
|
||||
|
||||
with
|
||||
@ -112,11 +112,11 @@ with
|
||||
```latex
|
||||
\documentclass[
|
||||
...
|
||||
]{ormc_handout}
|
||||
]{handout}
|
||||
```
|
||||
|
||||
5. Make a new overleaf project with the resulting directory.
|
||||
6. **Do not use pdflatex**, it misbehaves with `ormc_handout`. Tell Overleaf to use XeLaTeX.
|
||||
6. **Do not use pdflatex**, it misbehaves with `handout`. Tell Overleaf to use XeLaTeX.
|
||||
|
||||
### For Typst:
|
||||
|
||||
@ -124,5 +124,5 @@ Out-of-band typst compilation isn't supported. Clone the repository and use vsco
|
||||
This is because typst can't import packages from a relative path.
|
||||
|
||||
If you _really_ want it, standalone typst compilation _is_ possible. \
|
||||
Follow the LaTeX instructions, but fix `handout@0.1.0` instead of `ormc_handout`. \
|
||||
Follow the LaTeX instructions, but fix `handout@0.1.0` instead of `handout`. \
|
||||
You'll figure it out.
|
||||
|
@ -1,23 +1,25 @@
|
||||
# LaTeX documentation
|
||||
|
||||
All LaTeX handouts are based on [`ormc_handout.cls`](./lib/tex/ormc_handout.cls). \
|
||||
All LaTeX handouts are based on [`handout.cls`](./lib/tex/handout.cls). \
|
||||
This class is based on `article.cls`, and should work with most LaTeX packages.
|
||||
|
||||
The best way to start a new document is to make a copy of an existing one.
|
||||
- [Advanced/Cryptography](./src/Advanced/Cryptography) is a good example of a simple handout.
|
||||
- [Advanced/DFAs](./src/Advanced/DFAs) is a good example of a handout with graphs.
|
||||
- [Advanced/Geometric Optimization](./src/Advanced/Geometric%20Optimization) is a good example of a handout with geometry.
|
||||
|
||||
- [Advanced/Cryptography](./src/Advanced/Cryptography) is a good example of a simple handout.
|
||||
- [Advanced/DFAs](./src/Advanced/DFAs) is a good example of a handout with graphs.
|
||||
- [Advanced/Geometric Optimization](./src/Advanced/Geometric%20Optimization) is a good example of a handout with geometry.
|
||||
|
||||
## Notes
|
||||
- Compile your handouts with XeLaTeX. \
|
||||
`pdflatex` is known to misbehave with `ormc_handout.cls`. \
|
||||
This will happen by default if you use vscode. \
|
||||
If you use Overleaf, you'll have to configure it manually (see document settings).
|
||||
|
||||
- Compile your handouts with XeLaTeX. \
|
||||
`pdflatex` is known to misbehave with `handout.cls`. \
|
||||
This will happen by default if you use vscode. \
|
||||
If you use Overleaf, you'll have to configure it manually (see document settings).
|
||||
|
||||
## Document Options
|
||||
|
||||
Document options are passed to `\documentclass`, as follows:
|
||||
|
||||
```latex
|
||||
\documentclass[
|
||||
% Show solutions is `solutions` is provided,
|
||||
@ -37,47 +39,50 @@ Document options are passed to `\documentclass`, as follows:
|
||||
% This should only be used for single-page handouts
|
||||
% (e.g, warm-ups)
|
||||
nopagenumber
|
||||
]{ormc_handout}
|
||||
]{handout}
|
||||
```
|
||||
|
||||
Use `geometry` to change margins and page dimensions. US letter is the default.
|
||||
|
||||
|
||||
## Utilities
|
||||
- `\say{text}`: Puts text in quotes, handling details like period spacing. Courtesy of `dirtytalk`.
|
||||
- `\note[Type]{text}`: Makes a note.
|
||||
- `\hint{text}`: Shorthand for `\note[Hint]{text}`
|
||||
|
||||
- `\say{text}`: Puts text in quotes, handling details like period spacing. Courtesy of `dirtytalk`.
|
||||
- `\note[Type]{text}`: Makes a note.
|
||||
- `\hint{text}`: Shorthand for `\note[Hint]{text}`
|
||||
|
||||
## Sections
|
||||
|
||||
The usual LaTeX title-customization techniques *WILL NOT WORK* with this class. \
|
||||
The usual LaTeX title-customization techniques _WILL NOT WORK_ with this class. \
|
||||
Don't even try to load `titlesec`.
|
||||
|
||||
`ormc_handout.cls` supports two levels of sections:
|
||||
- `\section`, for large parts of the handout
|
||||
- `\definition`, `\theorem`, `\proposition`, `\example`, `\remark`, `\problem`, and `\problempart`
|
||||
`handout.cls` supports two levels of sections:
|
||||
|
||||
- `\section`, for large parts of the handout
|
||||
- `\definition`, `\theorem`, `\proposition`, `\example`, `\remark`, `\problem`, and `\problempart`
|
||||
|
||||
All these macros have the following syntax: `\problem{title}<label>`
|
||||
- `title` is the problem's title, and may be empty.
|
||||
- `label` is the problem's label. This is optional. \
|
||||
If a label is provided, this section may be referenced with `\ref{label}`.
|
||||
|
||||
- `title` is the problem's title, and may be empty.
|
||||
- `label` is the problem's label. This is optional. \
|
||||
If a label is provided, this section may be referenced with `\ref{label}`.
|
||||
|
||||
Examples:
|
||||
- `\problem{}`
|
||||
- `\problem{Bonus}`
|
||||
- `\problem{}<gcd>`, which may be referenced with `\ref{gcd}`
|
||||
|
||||
- `\problem{}`
|
||||
- `\problem{Bonus}`
|
||||
- `\problem{}<gcd>`, which may be referenced with `\ref{gcd}`
|
||||
|
||||
Do **not** use `\begin{problem} ... \end{problem}`. \
|
||||
Sections are macros, not environments.
|
||||
|
||||
## Environments:
|
||||
|
||||
- `\begin{solution}`: A fancy red for solutions to problems. \
|
||||
This is hidden if the `nosolutions` is provided.
|
||||
- `\begin{instrutornote}`: A fancy blue box for instructor notes. \
|
||||
This is hidden if the `nosolutions` is provided.
|
||||
- `\begin{examplesolution}`: A fancy gray for sample solutions. \
|
||||
This is never hidden.
|
||||
- `\begin{solution}`: A fancy red for solutions to problems. \
|
||||
This is hidden if the `nosolutions` is provided.
|
||||
- `\begin{instrutornote}`: A fancy blue box for instructor notes. \
|
||||
This is hidden if the `nosolutions` is provided.
|
||||
- `\begin{examplesolution}`: A fancy gray for sample solutions. \
|
||||
This is never hidden.
|
||||
|
||||
All the above environments break across pages and may safely be nested.
|
||||
|
||||
|
@ -4,23 +4,27 @@ See [typst.app/docs](https://typst.app/docs) for typst's documentation. \
|
||||
All typst handouts are based on [`handout@0.1.0`](./lib/typst/local/handout/0.1.0).
|
||||
|
||||
The best way to start a new document is to make a copy of an existing one.
|
||||
- [Advanced/Tropical Polynomials](./src/Advanced/Tropical%20Polynomials) is a good place to start.
|
||||
- [Warm-Ups/Painting](./src/Warm-Ups/Painting) is a good example of tikz-like pictures.
|
||||
|
||||
- [Advanced/Tropical Polynomials](./src/Advanced/Tropical%20Polynomials) is a good place to start.
|
||||
- [Warm-Ups/Painting](./src/Warm-Ups/Painting) is a good example of tikz-like pictures.
|
||||
|
||||
## Notes
|
||||
- Typst's equivalent of tikz is cetz ([homepage](https://cetz-package.github.io), [docs](https://cetz-package.github.io/docs/api))
|
||||
- Typst handouts are always compiled with solutions. \
|
||||
Handouts without solutions are automatically compiled and published at [betalupi.com/handouts](https://static.betalupi.com/ormc). \
|
||||
If you'd like to compile a student handout manually, run the following command in a handout directory:
|
||||
|
||||
- Typst's equivalent of tikz is cetz ([homepage](https://cetz-package.github.io), [docs](https://cetz-package.github.io/docs/api))
|
||||
- Typst handouts are always compiled with solutions. \
|
||||
Handouts without solutions are automatically compiled and published at [betalupi.com/handouts](https://betalupi.com/handouts). \
|
||||
If you'd like to compile a student handout manually, run the following command in a handout directory:
|
||||
|
||||
```bash
|
||||
typst compile main.typ --package-path ../../../lib/typst --input show_solutions=false
|
||||
```
|
||||
|
||||
Where `package_path` is a relative path to [./lib/typst](./lib/typst).
|
||||
|
||||
## Document Options
|
||||
|
||||
All typst handouts start with the following:
|
||||
|
||||
```typst
|
||||
#show: handout.with(
|
||||
// Should match `meta.toml`
|
||||
@ -38,39 +42,44 @@ All typst handouts start with the following:
|
||||
```
|
||||
|
||||
## Notable commands
|
||||
- `#v(1fr)`: Like LaTeX's `\vfill`. Creates whitespace that grows automatically. \
|
||||
`fr` means "fraction". `#v(2fr)` will fill twice as much space as `#v(1fr)` on the same page.
|
||||
|
||||
- `#v(1fr)`: Like LaTeX's `\vfill`. Creates whitespace that grows automatically. \
|
||||
`fr` means "fraction". `#v(2fr)` will fill twice as much space as `#v(1fr)` on the same page.
|
||||
|
||||
## Utilities
|
||||
- `#note([content], type: "Note type")`: Makes a note. `type` is optional.
|
||||
- `#hint([content])`: Shorthand for `#note([content], type: "Hint")`
|
||||
- `#solution([content])`: A pretty box for solutions. Hidden in student handouts.
|
||||
- `#examplesolution([content])`: Like `#solution()`, but is never hidden.
|
||||
- `#if_solutions([content])`: Shows content only if we are showing solutions.
|
||||
- `#if_no_solutions([content])`: Shows content only if we **aren't** showing solutions.
|
||||
|
||||
- `#note([content], type: "Note type")`: Makes a note. `type` is optional.
|
||||
- `#hint([content])`: Shorthand for `#note([content], type: "Hint")`
|
||||
- `#solution([content])`: A pretty box for solutions. Hidden in student handouts.
|
||||
- `#examplesolution([content])`: Like `#solution()`, but is never hidden.
|
||||
- `#if_solutions([content])`: Shows content only if we are showing solutions.
|
||||
- `#if_no_solutions([content])`: Shows content only if we **aren't** showing solutions.
|
||||
|
||||
## Sections
|
||||
|
||||
High-level sections are denoted with `=`. \
|
||||
Subsections start with `==`, subsubsections with `===`, and so on. \
|
||||
**`handout@0.1.0` is only designed to use `=`, subsections might be ugly.**
|
||||
|
||||
|
||||
`handout@0.1.0` also provides the following commands:
|
||||
- `problem`
|
||||
- `definition`
|
||||
- `theorem`
|
||||
- `example`
|
||||
- `remark`
|
||||
|
||||
- `problem`
|
||||
- `definition`
|
||||
- `theorem`
|
||||
- `example`
|
||||
- `remark`
|
||||
|
||||
These all have the same syntax: `#problem("title", label: "label")`
|
||||
- `title` is the problem's title, and may be omitted.
|
||||
- `label` is the problem's label. This is optional. \
|
||||
If a label is provided, this problem can be referenced with `@label`
|
||||
|
||||
- `title` is the problem's title, and may be omitted.
|
||||
- `label` is the problem's label. This is optional. \
|
||||
If a label is provided, this problem can be referenced with `@label`
|
||||
|
||||
**Examples:**
|
||||
- `#problem()`
|
||||
- `#problem("Bonus")`
|
||||
- `#problem(label: "gcd")`, which may be referenced with `@gcd`
|
||||
|
||||
- `#problem()`
|
||||
- `#problem("Bonus")`
|
||||
- `#problem(label: "gcd")`, which may be referenced with `@gcd`
|
||||
|
||||
### Complete example:
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesClass{../../../lib/tex/ormc_handout}[2023/05/29 2.0.2 ORMC Handout]
|
||||
\ProvidesClass{../../../lib/tex/handout}[2025/03/02 2.0.2 Mark's handout class]
|
||||
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
\@twocolumnfalse
|
||||
\@twosidefalse
|
||||
\@mparswitchfalse
|
||||
% ORMC-specific
|
||||
% Handout-specific
|
||||
\newif{\if@solutions} % If false, solutions and instructor notes are hidden.
|
||||
\newif{\if@singlenumbering} % If true, the same counter is used for all objects.
|
||||
\newif{\if@nopagenumber} % If true, don't number pages.
|
||||
@ -25,7 +25,7 @@
|
||||
\DeclareOption{10pt}{\renewcommand\@ptsize{0}}
|
||||
\DeclareOption{11pt}{\renewcommand\@ptsize{1}}
|
||||
\DeclareOption{12pt}{\renewcommand\@ptsize{2}}
|
||||
% ORMC-specific options
|
||||
% Handout-specific options
|
||||
\DeclareOption{solutions}{\@solutionstrue}
|
||||
\DeclareOption{nosolutions}{\@solutionsfalse}
|
||||
\DeclareOption{multinumbering}{\@singlenumberingfalse}
|
||||
@ -37,7 +37,7 @@
|
||||
\DeclareOption{showwarning}{\@nowarningfalse}
|
||||
\DeclareOption{hidewarning}{\@nowarningtrue}
|
||||
\DeclareOption{unfinished}{\@unfinishedtrue}
|
||||
\DeclareOption*{\ClassWarning{ormc_handout}{\CurrentOption ignored}}
|
||||
\DeclareOption*{\ClassWarning{handout}{\CurrentOption ignored}}
|
||||
|
||||
\@unfinishedfalse
|
||||
\ExecuteOptions{
|
||||
@ -629,12 +629,12 @@
|
||||
|
||||
% Keep track of the current background color.
|
||||
% Useful for transparent tikz drawings.
|
||||
\def\ORMCbgcolor{white}
|
||||
\def\bgcolor{white}
|
||||
|
||||
% Make a box environment.
|
||||
% These can safely be nested.
|
||||
% Args: title, back color, frame color.
|
||||
\newenvironment{ORMCbox}[3]{
|
||||
\newenvironment{hobox}[3]{
|
||||
% \linehack draws a line across a tcolorbox.
|
||||
% tcolorbox only supports two sections, but
|
||||
% this hack allows us to have more.
|
||||
@ -653,7 +653,7 @@
|
||||
|
||||
% Keep track of the current background color.
|
||||
% Useful for transparent tikz drawings.
|
||||
\def\ORMCbgcolor{#2}
|
||||
\def\bgcolor{#2}
|
||||
|
||||
\begin{tcolorbox}[
|
||||
enhanced,
|
||||
@ -675,21 +675,21 @@
|
||||
}
|
||||
|
||||
\newenvironment{examplesolution}{
|
||||
\begin{ORMCbox}{Example Solution}{black!10!white}{black!65!white}
|
||||
\begin{hobox}{Example Solution}{black!10!white}{black!65!white}
|
||||
} {
|
||||
\end{ORMCbox}
|
||||
\end{hobox}
|
||||
}
|
||||
|
||||
\if@solutions
|
||||
\newenvironment{solution}{
|
||||
\begin{ORMCbox}{Solution}{ored!10!white}{ored}
|
||||
\begin{hobox}{Solution}{ored!10!white}{ored}
|
||||
} {
|
||||
\end{ORMCbox}
|
||||
\end{hobox}
|
||||
}
|
||||
\newenvironment{instructornote}{
|
||||
\begin{ORMCbox}{Note for Instructors}{ocyan!10!white}{ocyan}
|
||||
\begin{hobox}{Note for Instructors}{ocyan!10!white}{ocyan}
|
||||
} {
|
||||
\end{ORMCbox}
|
||||
\end{hobox}
|
||||
}
|
||||
\else
|
||||
\excludecomment{solution}
|
@ -1,5 +1,5 @@
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesPackage{../../../lib/tex/macros}[2023/10/16 ORMC Macros]
|
||||
\ProvidesPackage{../../../lib/tex/macros}[2025/03/02 Handout macros]
|
||||
|
||||
\RequirePackage{hyperref}
|
||||
\RequirePackage{pgf}
|
||||
|
@ -3,7 +3,7 @@
|
||||
\documentclass[
|
||||
solutions,
|
||||
singlenumbering
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
|
||||
\input{tikzset.tex}
|
||||
|
@ -24,7 +24,7 @@
|
||||
label/.style = {
|
||||
rectangle,
|
||||
% For automatic red background in solutions
|
||||
fill = \ORMCbgcolor,
|
||||
fill = \bgcolor,
|
||||
draw = none,
|
||||
rounded corners = 0mm
|
||||
},
|
||||
@ -32,7 +32,7 @@
|
||||
% Nodes
|
||||
edg/.style = {
|
||||
midway,
|
||||
fill = \ORMCbgcolor,
|
||||
fill = \bgcolor,
|
||||
text = gray
|
||||
},
|
||||
int/.style = {},
|
||||
|
@ -5,7 +5,7 @@
|
||||
shortwarning,
|
||||
singlenumbering,
|
||||
unfinished
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
|
||||
\usepackage{multicol}
|
||||
|
@ -4,7 +4,7 @@
|
||||
solutions,
|
||||
singlenumbering,
|
||||
shortwarning
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
|
||||
\usepackage{multicol}
|
||||
|
@ -3,7 +3,7 @@
|
||||
\documentclass[
|
||||
solutions,
|
||||
singlenumbering
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
|
||||
\input{tikzset.tex}
|
||||
|
@ -24,7 +24,7 @@
|
||||
label/.style = {
|
||||
rectangle,
|
||||
% For automatic red background in solutions
|
||||
fill = \ORMCbgcolor,
|
||||
fill = \bgcolor,
|
||||
draw = none,
|
||||
rounded corners = 0mm
|
||||
},
|
||||
|
@ -3,7 +3,7 @@
|
||||
\documentclass[
|
||||
solutions,
|
||||
singlenumbering
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
|
||||
\input{tikzset.tex}
|
||||
|
@ -24,7 +24,7 @@
|
||||
label/.style = {
|
||||
rectangle,
|
||||
% For automatic red background in solutions
|
||||
fill = \ORMCbgcolor,
|
||||
fill = \bgcolor,
|
||||
draw = none,
|
||||
rounded corners = 0mm
|
||||
},
|
||||
|
@ -3,7 +3,7 @@
|
||||
\documentclass[
|
||||
solutions,
|
||||
singlenumbering
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
\documentclass[
|
||||
solutions,
|
||||
singlenumbering
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
\documentclass[
|
||||
nosolutions,
|
||||
singlenumbering
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
solutions,
|
||||
singlenumbering,
|
||||
nopagenumber
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
|
||||
\uptitlel{Advanced 2}
|
||||
|
@ -3,7 +3,7 @@
|
||||
\documentclass[
|
||||
solutions,
|
||||
singlenumbering
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
% use [solutions] flag to show solutions.
|
||||
\documentclass[
|
||||
solutions
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
|
||||
\uptitlel{Advanced 2}
|
||||
|
@ -4,7 +4,7 @@
|
||||
solutions,
|
||||
singlenumbering,
|
||||
shortwarning
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
|
||||
\usepackage{tikz}
|
||||
|
@ -2,7 +2,7 @@
|
||||
% use [solutions] flag to show solutions.
|
||||
\documentclass[
|
||||
solutions
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
|
||||
\input{tikxset}
|
||||
|
@ -22,7 +22,7 @@
|
||||
label/.style = {
|
||||
circle,
|
||||
% For automatic red background in solutions
|
||||
fill = \ORMCbgcolor,
|
||||
fill = \bgcolor,
|
||||
draw = none
|
||||
},
|
||||
%
|
||||
|
@ -3,7 +3,7 @@
|
||||
\documentclass[
|
||||
nosolutions,
|
||||
singlenumbering
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
\documentclass[
|
||||
solutions,
|
||||
singlenumbering
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
\usepackage{units}
|
||||
\input{src/tikzset}
|
||||
|
@ -3,7 +3,7 @@
|
||||
\documentclass[
|
||||
solutions,
|
||||
singlenumbering
|
||||
]{../../../../lib/tex/ormc_handout}
|
||||
]{../../../../lib/tex/handout}
|
||||
\usepackage{../../../../lib/tex/macros}
|
||||
\usepackage{units}
|
||||
\input{tikzset}
|
||||
|
@ -462,7 +462,7 @@ Thus,
|
||||
\end{equation*}
|
||||
|
||||
|
||||
\begin{ORMCbox}{Review: Multiplying Vectors by Matrices}{black!10!white}{black!65!white}
|
||||
\begin{hobox}{Review: Multiplying Vectors by Matrices}{black!10!white}{black!65!white}
|
||||
\begin{equation*}
|
||||
Av =
|
||||
\begin{bmatrix}
|
||||
@ -480,7 +480,7 @@ Thus,
|
||||
\end{equation*}
|
||||
|
||||
Note that each element of $Av$ is the dot product of a row in $A$ and a column in $v$.
|
||||
\end{ORMCbox}
|
||||
\end{hobox}
|
||||
|
||||
\problem{}
|
||||
Compute the following product:
|
||||
|
@ -154,7 +154,7 @@ The \textit{Hadamard Gate} is given by the following matrix: \par
|
||||
\end{equation*}
|
||||
\note{Note that we divide by $\sqrt{2}$, since $H$ must be orthonormal.}
|
||||
|
||||
\begin{ORMCbox}{Review: Matrix Multiplication}{black!10!white}{black!65!white}
|
||||
\begin{hobox}{Review: Matrix Multiplication}{black!10!white}{black!65!white}
|
||||
Matrix multiplication works as follows:
|
||||
|
||||
\begin{equation*}
|
||||
@ -196,7 +196,7 @@ The \textit{Hadamard Gate} is given by the following matrix: \par
|
||||
|
||||
This is exactly the first column of the matrix product. \par
|
||||
Also, note that each element of $Ac_0$ is the dot product of a row in $A$ and a column in $c_0$.
|
||||
\end{ORMCbox}
|
||||
\end{hobox}
|
||||
|
||||
|
||||
\problem{}
|
||||
|
@ -13,7 +13,7 @@
|
||||
line width = 0.35mm
|
||||
},
|
||||
qubit/.style = {
|
||||
fill = \ORMCbgcolor,
|
||||
fill = \bgcolor,
|
||||
line width = 0.35mm
|
||||
},
|
||||
wire/.style = {
|
||||
|
@ -3,7 +3,7 @@
|
||||
\documentclass[
|
||||
solutions,
|
||||
singlenumbering
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
\documentclass[
|
||||
solutions,
|
||||
singlenumbering
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
|
||||
\usepackage{ifthen}
|
||||
|
@ -3,7 +3,7 @@
|
||||
\documentclass[
|
||||
solutions,
|
||||
singlenumbering
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
\documentclass[
|
||||
nosolutions,
|
||||
singlenumbering,
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
\usepackage{units}
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
\documentclass[
|
||||
solutions,
|
||||
%shortwarning
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
|
||||
\graphicspath{ {./images/} }
|
||||
|
@ -2,7 +2,7 @@
|
||||
% use [solutions] flag to show solutions.
|
||||
\documentclass[
|
||||
solutions
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
|
||||
\usepackage{amsmath}
|
||||
|
@ -3,7 +3,7 @@
|
||||
\documentclass[
|
||||
solutions,
|
||||
singlenumbering
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
|
||||
\input{tikxset.tex}
|
||||
|
@ -24,7 +24,7 @@
|
||||
label/.style = {
|
||||
rectangle,
|
||||
% For automatic red background in solutions
|
||||
fill = \ORMCbgcolor,
|
||||
fill = \bgcolor,
|
||||
draw = none,
|
||||
rounded corners = 0mm
|
||||
},
|
||||
|
@ -4,7 +4,7 @@
|
||||
solutions,
|
||||
singlenumbering,
|
||||
shortwarning
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
\input{diagram}
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
\documentclass[
|
||||
solutions,
|
||||
shortwarning
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
|
||||
\usepackage{chessfss}
|
||||
|
@ -3,7 +3,7 @@
|
||||
\documentclass[
|
||||
solutions,
|
||||
singlenumbering
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
\documentclass[
|
||||
solutions,
|
||||
singlenumbering
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
|
||||
\usepackage{units}
|
||||
|
@ -3,7 +3,7 @@
|
||||
\documentclass[
|
||||
solutions,
|
||||
singlenumbering
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
\usetikzlibrary{calc}
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
\documentclass[
|
||||
solutions,
|
||||
singlenumbering
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
||||
label/.style = {
|
||||
rectangle,
|
||||
% For automatic red background in solutions
|
||||
fill = \ORMCbgcolor,
|
||||
fill = \bgcolor,
|
||||
draw = none,
|
||||
rounded corners = 0mm
|
||||
},
|
||||
|
@ -2,7 +2,7 @@
|
||||
% use [solutions] flag to show solutions.
|
||||
\documentclass[
|
||||
solutions
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
% use [solutions] flag to show solutions.
|
||||
\documentclass[
|
||||
solutions
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
% use [solutions] flag to show solutions.
|
||||
\documentclass[
|
||||
solutions
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
% use [nosolutions] flag to hide solutions.
|
||||
% use [solutions] flag to show solutions.
|
||||
\documentclass[solutions]{../../../lib/tex/ormc_handout}
|
||||
\documentclass[solutions]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
\documentclass[
|
||||
solutions,
|
||||
singlenumbering
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
|
||||
\usepackage{units}
|
||||
|
@ -190,7 +190,7 @@ For example, see the proof of the statement in \ref{binomsum} on the next page.
|
||||
\pagebreak
|
||||
|
||||
|
||||
\begin{ORMCbox}{Alternative Proof}{ogrape!10!white}{ogrape}
|
||||
\begin{hobox}{Alternative Proof}{ogrape!10!white}{ogrape}
|
||||
Consider the following problem: \par
|
||||
How many ways are there to write a number $x$ as an ordered sum of positive integers? \par
|
||||
\note{
|
||||
@ -234,7 +234,7 @@ For example, see the proof of the statement in \ref{binomsum} on the next page.
|
||||
We've found that the number of ways to split $x$ can be written as either
|
||||
$\sum_{n = 1}^{x-1} \binom{x-1}{n}$ or $2^{x-1}$,
|
||||
and therefore $\sum_{n = 1}^{x-1} \binom{x-1}{n} = 2^{x-1}$.
|
||||
\end{ORMCbox}
|
||||
\end{hobox}
|
||||
|
||||
|
||||
\pagebreak
|
@ -2,7 +2,7 @@
|
||||
% use [solutions] flag to show solutions.
|
||||
\documentclass[
|
||||
solutions
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
% use [nosolutions] flag to hide solutions.
|
||||
% use [solutions] flag to show solutions.
|
||||
\documentclass[solutions]{../../../lib/tex/ormc_handout}
|
||||
\documentclass[solutions]{../../../lib/tex/handout}
|
||||
\usepackage{adjustbox}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
% use [nosolutions] flag to hide solutions.
|
||||
% use [solutions] flag to show solutions.
|
||||
\documentclass[solutions]{../../../lib/tex/ormc_handout}
|
||||
\documentclass[solutions]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
shortwarning,
|
||||
singlenumbering,
|
||||
nopagenumber
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
\geometry{top = 20mm}
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
hidewarning,
|
||||
singlenumbering,
|
||||
nopagenumber
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
hidewarning,
|
||||
singlenumbering,
|
||||
nopagenumber
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
hidewarning,
|
||||
singlenumbering,
|
||||
nopagenumber
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
|
||||
\def\utri#1#2{
|
||||
@ -102,7 +102,7 @@
|
||||
|
||||
\vfill
|
||||
|
||||
\begin{ORMCbox}{Notes}{ogrape!10!white}{ogrape}
|
||||
\begin{hobox}{Notes}{ogrape!10!white}{ogrape}
|
||||
\begin{itemize}
|
||||
\item
|
||||
Each player needs to make multiple groups before the first player's second turn. \par
|
||||
@ -111,7 +111,7 @@
|
||||
|
||||
\item Groups are easiest to secure near the corners or along the edges. Play there first. \par
|
||||
\end{itemize}
|
||||
\end{ORMCbox}
|
||||
\end{hobox}
|
||||
|
||||
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
\documentclass[
|
||||
solutions,
|
||||
shortwarning
|
||||
]{../../../lib/tex/ormc_handout}
|
||||
]{../../../lib/tex/handout}
|
||||
\usepackage{../../../lib/tex/macros}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user