-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
1,994 additions
and
69 deletions.
There are no files selected for viewing
This file contains 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 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,80 @@ | ||
\documentclass{tutodoc} | ||
|
||
\input{regression-test} | ||
|
||
\begin{document} | ||
\START | ||
|
||
\section{No footnote} | ||
|
||
\begin{tdocnote} | ||
\textcolor{black}{One note} | ||
|
||
One note... | ||
\end{tdocnote} | ||
|
||
\begin{tdoctip} | ||
\textcolor{black}{Useful tip.} | ||
|
||
Useful tip. | ||
\end{tdoctip} | ||
|
||
\begin{tdocimp} | ||
\textcolor{black}{Something important.} | ||
|
||
Something important. | ||
\end{tdocimp} | ||
|
||
\begin{tdoccaut} | ||
\textcolor{black}{Be aware.} | ||
|
||
Be aware. | ||
\end{tdoccaut} | ||
|
||
\begin{tdocwarn} | ||
\textcolor{black}{Be prudent!} | ||
|
||
Be prudent! | ||
\end{tdocwarn} | ||
|
||
|
||
\section{With one footnote} | ||
|
||
\begin{tdocnote} | ||
\textcolor{black}{One note} | ||
|
||
One note...% | ||
\footnote{\textcolor{black}{Good color and not good doctor!} \par Good color and not good doctor!} | ||
\end{tdocnote} | ||
|
||
\begin{tdoctip} | ||
\textcolor{black}{Useful tip.} | ||
|
||
Useful tip.% | ||
\footnote{\textcolor{black}{Good color and not good doctor!} \par Good color and not good doctor!} | ||
\end{tdoctip} | ||
|
||
\begin{tdocimp} | ||
\textcolor{black}{Something important.} | ||
|
||
Something important.% | ||
\footnote{\textcolor{black}{Good color and not good doctor!} \par Good color and not good doctor!} | ||
\end{tdocimp} | ||
|
||
\begin{tdoccaut} | ||
\textcolor{black}{Be aware.} | ||
|
||
Be aware.% | ||
\footnote{\textcolor{black}{Good color and not good doctor!} \par Good color and not good doctor!} | ||
\end{tdoccaut} | ||
|
||
\begin{tdocwarn} | ||
\textcolor{black}{Be prudent!} | ||
|
||
Be prudent!% | ||
\footnote{\textcolor{black}{Good color and not good doctor!} \par Good color and not good doctor!} | ||
\end{tdocwarn} | ||
|
||
\showoutput | ||
|
||
\end{document} |
This file contains 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,46 @@ | ||
% -- COLORFUL HIGHLIGHTING OF CONTENT -- % | ||
|
||
\NewExpandableDocumentCommand{\tutodoc@build@title@color}{m}{% | ||
white% | ||
} | ||
|
||
\NewExpandableDocumentCommand{\tutodoc@build@upper@color}{m}{% | ||
\tdocdarkcolor[40]{Gray}% | ||
} | ||
|
||
\NewExpandableDocumentCommand{\tutodoc@build@back@color}{m}{% | ||
\tdoclightcolor[10]{Gray}% | ||
} | ||
|
||
\NewExpandableDocumentCommand{\tutodoc@build@frame@color}{m}{% | ||
Gray!75!black!45% | ||
} | ||
|
||
\colorlet{tutodoc@admonition@shadow@color}{Gray!15} | ||
|
||
|
||
\ExplSyntaxOn | ||
|
||
%%% | ||
% We use two ''prop'' variables to factorize the code just after. | ||
%%% | ||
\prop_new:N \g__tutodoc_focus_color_prop | ||
\prop_new:N \g__tutodoc_focus_icon_prop | ||
|
||
\prop_set_from_keyval:Nn \g__tutodoc_focus_color_prop { | ||
note = DarkGray, | ||
tip = DarkGray, | ||
imp = DarkGray, | ||
caut = DarkGray, | ||
warn = DarkGray, | ||
} | ||
|
||
\prop_set_from_keyval:Nn \g__tutodoc_focus_icon_prop { | ||
note = \faInfoCircle, | ||
tip = \faLightbulb, | ||
imp = \faHighlighter, | ||
caut = \faBiohazard, | ||
warn = \faSkullCrossbones, | ||
} | ||
|
||
\ExplSyntaxOff |
This file contains 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,30 @@ | ||
% :: INLINE LATEX MACRO :: % | ||
|
||
\newcommand{\tutodoc@latex@style}{friendly_grayscale} | ||
|
||
\colorlet{tutodoc@latex@back@color}{gray!5} | ||
\colorlet{tutodoc@latex@text@color}{black} | ||
|
||
|
||
% :: THE TCOLORBOX LISTING STYLE :: % | ||
|
||
\colorlet{tutodoc@latex@frame@color}{darkgray} | ||
|
||
\newcommand{\tutodoc@latex@left@len}{1mm} | ||
\newcommand{\tutodoc@latex@right@len}{1mm} | ||
\newcommand{\tutodoc@latex@top@len}{1mm} | ||
\newcommand{\tutodoc@latex@bottom@len}{1mm} | ||
|
||
\newcommand{\tutodoc@latex@arc@len}{.75mm} | ||
|
||
\newcommand{\tutodoc@latex@left@rule@len}{1pt} | ||
\newcommand{\tutodoc@latex@right@rule@len}{1pt} | ||
\newcommand{\tutodoc@latex@top@rule@len}{1pt} | ||
\newcommand{\tutodoc@latex@bottom@rule@len}{1pt} | ||
|
||
\colorlet{tutodoc@latex@shadow@color}{black!30} | ||
\newcommand{\tutodoc@latex@shadow@xshift@len}{.75mm} | ||
\newcommand{\tutodoc@latex@shadow@yshift@len}{-.75mm} | ||
\newcommand{\tutodoc@latex@shadow@offset@len}{0mm} | ||
|
||
\colorlet{tutodoc@latex@segment@color}{gray} |
This file contains 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,3 @@ | ||
% -- LINKS -- % | ||
|
||
\definecolor{tutodoc@link@color}{named}{DimGray} |
This file contains 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,21 @@ | ||
% -- SHOWCASE -- % | ||
|
||
\NewExpandableDocumentCommand{\tutodoc@showcase@rule@color}{}{% | ||
black% | ||
} | ||
|
||
\NewExpandableDocumentCommand{\tutodoc@showcase@stripe@color}{}{% | ||
darkgray% | ||
} | ||
|
||
\NewExpandableDocumentCommand{\tutodoc@showcase@text@color}{}{% | ||
black% | ||
} | ||
|
||
\NewExpandableDocumentCommand{\tutodoc@showcase@build@rule@color}{m}{% | ||
black% | ||
} | ||
|
||
\NewExpandableDocumentCommand{\tutodoc@showcase@build@back@color}{m}{% | ||
gray!10% | ||
} |
5 changes: 5 additions & 0 deletions
5
tutodoc/rollout/debug/tutodoc-bw-version-n-change.css.cls.sty
This file contains 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,5 @@ | ||
% -- VERSION & CHANGES -- % | ||
|
||
\NewExpandableDocumentCommand{\tutodoc@changes@when@color}{}{% | ||
gray% | ||
} |
50 changes: 50 additions & 0 deletions
50
tutodoc/rollout/debug/tutodoc-color-admonitions.css.cls.sty
This file contains 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,50 @@ | ||
% -- COLORFUL HIGHLIGHTING OF CONTENT -- % | ||
|
||
\NewExpandableDocumentCommand{\tutodoc@build@title@color}{m}{% | ||
white% | ||
} | ||
|
||
\NewExpandableDocumentCommand{\tutodoc@build@upper@color}{m}{% | ||
\tdocdarkcolor{#1}% | ||
} | ||
|
||
\NewExpandableDocumentCommand{\tutodoc@build@lower@color}{m}{% | ||
\tdocdarkcolor{#1}% | ||
} | ||
|
||
\NewExpandableDocumentCommand{\tutodoc@build@back@color}{m}{% | ||
\tdoclightcolor{#1}% | ||
} | ||
|
||
\NewExpandableDocumentCommand{\tutodoc@build@frame@color}{m}{% | ||
#1!75!black!45% | ||
} | ||
|
||
\colorlet{tutodoc@admonition@shadow@color}{black!30} | ||
|
||
|
||
\ExplSyntaxOn | ||
|
||
%%% | ||
% We use two ''prop'' variables to factorize the code just after. | ||
%%% | ||
\prop_new:N \g__tutodoc_focus_color_prop | ||
\prop_new:N \g__tutodoc_focus_icon_prop | ||
|
||
\prop_set_from_keyval:Nn \g__tutodoc_focus_color_prop { | ||
note = cyan, | ||
tip = ForestGreen, | ||
imp = orange, | ||
caut = violet, | ||
warn = red, | ||
} | ||
|
||
\prop_set_from_keyval:Nn \g__tutodoc_focus_icon_prop { | ||
note = \faInfoCircle, | ||
tip = \faLightbulb, | ||
imp = \faHighlighter, | ||
caut = \faBiohazard, | ||
warn = \faSkullCrossbones, | ||
} | ||
|
||
\ExplSyntaxOff |
This file contains 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,30 @@ | ||
% :: INLINE LATEX MACRO :: % | ||
|
||
\newcommand{\tutodoc@latex@style}{pastie} | ||
|
||
\colorlet{tutodoc@latex@back@color}{yellow!4} | ||
\colorlet{tutodoc@latex@text@color}{black} | ||
|
||
|
||
% :: THE TCOLORBOX LISTING STYLE :: % | ||
|
||
\colorlet{tutodoc@latex@frame@color}{darkgray} | ||
|
||
\newcommand{\tutodoc@latex@left@len}{1mm} | ||
\newcommand{\tutodoc@latex@right@len}{1mm} | ||
\newcommand{\tutodoc@latex@top@len}{1mm} | ||
\newcommand{\tutodoc@latex@bottom@len}{1mm} | ||
|
||
\newcommand{\tutodoc@latex@arc@len}{.75mm} | ||
|
||
\newcommand{\tutodoc@latex@left@rule@len}{1pt} | ||
\newcommand{\tutodoc@latex@right@rule@len}{1pt} | ||
\newcommand{\tutodoc@latex@top@rule@len}{1pt} | ||
\newcommand{\tutodoc@latex@bottom@rule@len}{1pt} | ||
|
||
\colorlet{tutodoc@latex@shadow@color}{black!30} | ||
\newcommand{\tutodoc@latex@shadow@xshift@len}{.75mm} | ||
\newcommand{\tutodoc@latex@shadow@yshift@len}{-.75mm} | ||
\newcommand{\tutodoc@latex@shadow@offset@len}{0mm} | ||
|
||
\colorlet{tutodoc@latex@segment@color}{gray} |
This file contains 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,3 @@ | ||
% -- LINKS -- % | ||
|
||
\colorlet{tutodoc@link@color}{NavyBlue!85!white} |
Oops, something went wrong.