-
Notifications
You must be signed in to change notification settings - Fork 39
problem style revamp #201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
wiobber
wants to merge
5
commits into
master
Choose a base branch
from
jason-problemStyleRevamp
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
problem style revamp #201
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
87f05e7
Fixed the emitted "probnum" attribute (previously "numbered" atrtibut…
xronosuf ddde265
Added styling for pdf which includes colored or black and white boxes…
xronosuf 404309e
Fixed a minor typo, and actually ran make to get the new cls. Everyth…
xronosuf 730bfda
default black; optional colored nesting-boxes
wiobber e3d29f6
uncomment wrongly committed comments
wiobber File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| % \begin{macrocode} | ||
| %<*classXimera> | ||
| % \end{macrocode} | ||
| % \begin{macrocode} | ||
| %%% Now we colorbox-ize nested theorems and problems. | ||
| % Define default color for colorized boxes now, so they can be edited by user in preamble if desired. | ||
| \definecolor{xmNestingColorLevelI}{RGB}{102, 255, 178}% Default top level color is Light Green | ||
| \definecolor{xmNestingColorLevelII}{RGB}{102, 178, 255}% Default first nested layer color is Light Blue | ||
| \definecolor{xmNestingColorLevelIII}{RGB}{255, 102, 178}% Default second nested layer color is Light Pink | ||
| \definecolor{xmNestingColorLevelIV}{RGB}{178, 255, 102}% Default third nested layer color is Bright Green | ||
| \definecolor{xmBackground}{RGB}{255,255,255}% Default background color is white. | ||
|
|
||
| \newif\ifdispNest%% Flag for displaying any kind of nesting indicator via tcolorbox | ||
| \dispNesttrue% Default to showing nesting behavior via tcolorbox. | ||
|
|
||
| \newif\ifdispNestColors%% Flag to opt for colored nesting indicators | ||
| \dispNestColorsfalse% Default to all black boxes, rather than colored by level | ||
|
|
||
| \AtBeginDocument{ | ||
| \pdfOnly{ | ||
| \ifdispNestColors | ||
| \else% If we want non-colored boxes, overwrite the previous color definitions with variations on black. | ||
| \definecolor{xmNestingColorLevelI}{RGB}{0,0,0}% Black | ||
| \definecolor{xmNestingColorLevelII}{RGB}{35, 35, 35}% Light Blue | ||
| \definecolor{xmNestingColorLevelIII}{RGB}{70, 70, 70}% Light Pink | ||
| \definecolor{xmNestingColorLevelIV}{RGB}{105, 105, 105}% Bright Green | ||
| \fi | ||
|
|
||
| %% Apply colorboxes around theorem-like environments in pdfs only to help see nesting. | ||
| \ifdispNest%% If you want to display nesting behavior via tcolorframebox frames, we now apply them. | ||
| \tcolorboxenvironment{algorithm}{colframe=xmNestingColorLevel\Roman{tcblayer},colback=transparent} | ||
| \tcolorboxenvironment{axiom}{colframe=xmNestingColorLevel\Roman{tcblayer},colback=xmBackground} | ||
| \tcolorboxenvironment{claim}{colframe=xmNestingColorLevel\Roman{tcblayer},colback=xmBackground} | ||
| \tcolorboxenvironment{conclusion}{colframe=xmNestingColorLevel\Roman{tcblayer},colback=xmBackground} | ||
| \tcolorboxenvironment{condition}{colframe=xmNestingColorLevel\Roman{tcblayer},colback=xmBackground} | ||
| \tcolorboxenvironment{conjecture}{colframe=xmNestingColorLevel\Roman{tcblayer},colback=xmBackground} | ||
| \tcolorboxenvironment{corollary}{colframe=xmNestingColorLevel\Roman{tcblayer},colback=xmBackground} | ||
| \tcolorboxenvironment{criterion}{colframe=xmNestingColorLevel\Roman{tcblayer},colback=xmBackground} | ||
| \tcolorboxenvironment{definition}{colframe=xmNestingColorLevel\Roman{tcblayer},colback=xmBackground} | ||
| \tcolorboxenvironment{example}{colframe=xmNestingColorLevel\Roman{tcblayer},colback=xmBackground} | ||
| \tcolorboxenvironment{explanation}{colframe=xmNestingColorLevel\Roman{tcblayer},colback=xmBackground} | ||
| \tcolorboxenvironment{fact}{colframe=xmNestingColorLevel\Roman{tcblayer},colback=xmBackground} | ||
| \tcolorboxenvironment{formula}{colframe=xmNestingColorLevel\Roman{tcblayer},colback=xmBackground} | ||
| \tcolorboxenvironment{idea}{colframe=xmNestingColorLevel\Roman{tcblayer},colback=xmBackground} | ||
| \tcolorboxenvironment{lemma}{colframe=xmNestingColorLevel\Roman{tcblayer},colback=xmBackground} | ||
| \tcolorboxenvironment{model}{colframe=xmNestingColorLevel\Roman{tcblayer},colback=xmBackground} | ||
| \tcolorboxenvironment{notation}{colframe=xmNestingColorLevel\Roman{tcblayer},colback=xmBackground} | ||
| \tcolorboxenvironment{observation}{colframe=xmNestingColorLevel\Roman{tcblayer},colback=xmBackground} | ||
| \tcolorboxenvironment{proposition}{colframe=xmNestingColorLevel\Roman{tcblayer},colback=xmBackground} | ||
| \tcolorboxenvironment{paradox}{colframe=xmNestingColorLevel\Roman{tcblayer},colback=xmBackground} | ||
| \tcolorboxenvironment{procedure}{colframe=xmNestingColorLevel\Roman{tcblayer},colback=xmBackground} | ||
| \tcolorboxenvironment{remark}{colframe=xmNestingColorLevel\Roman{tcblayer},colback=xmBackground} | ||
| \tcolorboxenvironment{summary}{colframe=xmNestingColorLevel\Roman{tcblayer},colback=xmBackground} | ||
| \tcolorboxenvironment{template}{colframe=xmNestingColorLevel\Roman{tcblayer},colback=xmBackground} | ||
| \tcolorboxenvironment{warning}{colframe=xmNestingColorLevel\Roman{tcblayer},colback=xmBackground} | ||
|
|
||
| %% Apply colorboboxes around problem-like environments in pdfs only to help see nesting. | ||
| \tcolorboxenvironment{problem}{colframe=xmNestingColorLevel\Roman{tcblayer},colback=xmBackground} | ||
| \tcolorboxenvironment{question}{colframe=xmNestingColorLevel\Roman{tcblayer},colback=xmBackground} | ||
| \tcolorboxenvironment{exploration}{colframe=xmNestingColorLevel\Roman{tcblayer},colback=xmBackground} | ||
| \tcolorboxenvironment{exercise}{colframe=xmNestingColorLevel\Roman{tcblayer},colback=xmBackground} | ||
|
|
||
| \fi | ||
| } | ||
| } | ||
| % \end{macrocode} | ||
| % \begin{macrocode} | ||
| %</classXimera> | ||
| % \end{macrocode} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.