make todo commands accept optional arguments

Build branch master (2d16a2d) from kesslermaximilian/LatexPackages
This commit is contained in:
Maximilian Keßler 2022-06-27 15:48:35 +00:00
parent 340d7093f5
commit 043fb16fc3
7 changed files with 87 additions and 62 deletions

View file

@ -1,8 +1,8 @@
{
"build_time": "",
"source files": {
"version": "v2.9-16-gd96c0bd",
"commit": "d96c0bdb380606e25f620f6ea61608b9e32c26ef",
"version": "v2.9-27-g2d16a2d",
"commit": "2d16a2d72a81696210140564037ce71ac4d8d91b",
"dirty": false
},
"pytex": {
@ -80,23 +80,23 @@
{
"name": "math/mathfig/mkessler-mathfig.sty",
"source file": "math/mathfig/mathfig.pysty",
"build time": "2022/06/27 14:01",
"source version": "v2.9-15-gb7ba678",
"source commit hash": "b7ba678943aae7a865556f4295a4509fb3f9bd7f",
"build time": "2022/06/27 15:48",
"source version": "v2.9-27-g2d16a2d",
"source commit hash": "2d16a2d72a81696210140564037ce71ac4d8d91b",
"pytex version": "v1.2.0-31-gc9bb0e8",
"pytex commit hash": "c9bb0e87c91beae3e17a829603e4459cf804ec51",
"md5sum": "ff0be1fc2a4563885533c7be16a7dab1",
"md5sum": "710398f4cdd2be59afcd0783d5d65ea6",
"dirty": false
},
{
"name": "wrappers/todo/mkessler-todo.sty",
"source file": "wrappers/todo/todo.pysty",
"build time": "2022/01/30 23:48",
"source version": "v2.8.1-9-g4bda829",
"source commit hash": "4bda829518c07d985656547cf897712db361160e",
"build time": "2022/06/27 15:48",
"source version": "v2.9-27-g2d16a2d",
"source commit hash": "2d16a2d72a81696210140564037ce71ac4d8d91b",
"pytex version": "v1.2.0-31-gc9bb0e8",
"pytex commit hash": "c9bb0e87c91beae3e17a829603e4459cf804ec51",
"md5sum": "a0ddc7df8f250406c4e8f96c40e7c2ba",
"md5sum": "2c09ed62ddf08a701e9b51995ca17296",
"dirty": false
},
{
@ -333,23 +333,23 @@
{
"name": "math/categories/translator-mathematical-categories-dictionary-English.dict",
"source file": "math/categories/mathematical-categories.pydict",
"build time": "2022/01/30 23:48",
"source version": "v2.8.1-9-g4bda829",
"source commit hash": "4bda829518c07d985656547cf897712db361160e",
"build time": "2022/06/27 15:48",
"source version": "v2.9-27-g2d16a2d",
"source commit hash": "2d16a2d72a81696210140564037ce71ac4d8d91b",
"pytex version": "v1.2.0-31-gc9bb0e8",
"pytex commit hash": "c9bb0e87c91beae3e17a829603e4459cf804ec51",
"md5sum": "ab4b5783c60172a2d850093886e6e4d7",
"md5sum": "663f5b46ae8344e2b1e2c7121a8f2d57",
"dirty": false
},
{
"name": "math/categories/translator-mathematical-categories-dictionary-German.dict",
"source file": "math/categories/mathematical-categories.pydict",
"build time": "2022/01/30 23:48",
"source version": "v2.8.1-9-g4bda829",
"source commit hash": "4bda829518c07d985656547cf897712db361160e",
"build time": "2022/06/27 15:48",
"source version": "v2.9-27-g2d16a2d",
"source commit hash": "2d16a2d72a81696210140564037ce71ac4d8d91b",
"pytex version": "v1.2.0-31-gc9bb0e8",
"pytex commit hash": "c9bb0e87c91beae3e17a829603e4459cf804ec51",
"md5sum": "44351cbc0ba67debc335d1d9470bafe0",
"md5sum": "7bb515c4db2a1f4282b538cecf8500d5",
"dirty": false
},
{
@ -377,12 +377,12 @@
{
"name": "math/categories/mkessler-categories.sty",
"source file": "math/categories/categories.pysty3",
"build time": "2022/06/07 19:16",
"source version": "v2.9-13-g004413d",
"source commit hash": "004413d6747c75bc8bf2b033a639953458339c53",
"build time": "2022/06/27 15:48",
"source version": "v2.9-27-g2d16a2d",
"source commit hash": "2d16a2d72a81696210140564037ce71ac4d8d91b",
"pytex version": "v1.2.0-31-gc9bb0e8",
"pytex commit hash": "c9bb0e87c91beae3e17a829603e4459cf804ec51",
"md5sum": "cb5c9c39376af8d87758b7ad4c5fe18c",
"md5sum": "e1943cb165466dbef364eb2553596f82",
"dirty": false
},
{
@ -432,12 +432,12 @@
{
"name": "environments/fancythm/fancythm.sty",
"source file": "environments/fancythm/fancythm.dtx",
"build time": "2022/06/27 13:33",
"source version": "v2.9-14-gc939483",
"source commit hash": "c939483b4283dd03bf86429cc23b66b6084ea090",
"build time": "2022/06/27 15:48",
"source version": "v2.9-27-g2d16a2d",
"source commit hash": "2d16a2d72a81696210140564037ce71ac4d8d91b",
"pytex version": "v1.2.0-31-gc9bb0e8",
"pytex commit hash": "c9bb0e87c91beae3e17a829603e4459cf804ec51",
"md5sum": "654976d61c4bc24086feb40083d54ba8",
"md5sum": "fe42cebefd1d73bf723bf4a1dc8071e7",
"dirty": false
},
{

View file

@ -223,10 +223,10 @@
{ new, provide }
{ fancythm_#1_theorem:nnnn }
{
\use:c { groupthm_#1_family:nnnnn } { ##1 } { dagger, star } { ##3 } { ##4 } { ##2 }
\use:c { groupthm_#1_family:nnnnn } { ##1 } { dagger, star, nobraces } { ##3 } { ##4 } { ##2 }
\use:c { groupthm_#1_family_options:nnnn }
{ ##1 }
{ !s !t+ }
{ !s !t+ !t-}
{
\IfBooleanT { ####1 }
{
@ -236,6 +236,10 @@
{
\AddTheoremToGroup { dagger }
}
\IfBooleanT { ####3 }
{
\AddTheoremToGroup { nobraces }
}
}
{ ##2 }
}
@ -273,12 +277,14 @@
{
\use:c { fancythm_#1_theorem:nn } { ##1 } { ##2 }
}
\declaretheoremstyle[notebraces={{}{}}]{nobraces}
\groupthm_new_group:nnnnn { star } { } { * } { } { }
\groupthm_new_group:nnnnn { dagger } { } { $^{\dagger}$ } { } { }
\groupthm_new_group:nnnnn { big } { } { } { } { sibling = toplevel }
\groupthm_new_group:nnnnn { small } { } { } { } { sibling = sublevel }
\groupthm_new_group:nnnnn { tiny } { } { } { } { numbered = no }
\groupthm_new_group:nnnnn { custom } { } { } { } { sibling = sublevel }
\groupthm_new_group:nnnnn { nobraces } { } { } { } { style = nobraces }
\groupthm_add_parent:nn { star } { custom }
\groupthm_add_parent:nn { dagger } { custom }
\DeclareTheoremGroupRule [ suffix ] { dagger } { higher } { star }

View file

@ -31,7 +31,7 @@
%
% Build details:
% PyTeX version: v1.2.0-31-gc9bb0e8 (commit c9bb0e8)
% Source code version: v2.9-13-g004413d (commit 004413d)
% Source code version: v2.9-27-g2d16a2d (commit 2d16a2d)
%
% This LaTeX package is free software and is dual-licensed
% under the LPPLv1.3c and the GPLv3 licenses.
@ -46,7 +46,7 @@
% at the Git repository for further information.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ProvidesExplPackage{mkessler-categories}{2022/06/07}{2.9-13-g004413d}{Definitions of categories with automatic indexing}
\ProvidesExplPackage{mkessler-categories}{2022/06/27}{2.9-27-g2d16a2d}{Definitions of categories with automatic indexing}
%% Wrapper commands specific for defining categories
@ -198,6 +198,19 @@
[
\translate{GrAb~(Category~description)}
]
\DeclareSimpleCategory
{ CGHaus }
[
\translate{CGHaus~(Category~description)}
]
\DeclareSimpleCategory
[
formula = S
]
{ SimplicialSet }
[
\translate{SimplicialSet~(Category~description)}
]
\DeclareCategory
[
operator = \operatorname,

View file

@ -31,7 +31,7 @@
%
% Build details:
% PyTeX version: v1.2.0-31-gc9bb0e8 (commit c9bb0e8)
% Source code version: v2.8.1-9-g4bda829 (commit 4bda829)
% Source code version: v2.9-27-g2d16a2d (commit 2d16a2d)
%
% This LaTeX dictionary is free software and is dual-licensed
% under the LPPLv1.3c and the GPLv3 licenses.
@ -66,3 +66,5 @@
\providetranslation{Sch (Category description)}{Schemes and homomorphisms}
\providetranslation{GrAb (Category description)}{Graded abelian groups and homomorphisms}
\providetranslation{Ordinal number category (Category description)}{Finite ordinal numbers and order-preserving maps}
\providetranslation{CGHaus (Category description)}{Compactly generated Hausdorff spaces and continuous maps}
\providetranslation{SimplicialSet (Category description)}{Functor category $[\OrdCat, \Set]$}

View file

@ -31,7 +31,7 @@
%
% Build details:
% PyTeX version: v1.2.0-31-gc9bb0e8 (commit c9bb0e8)
% Source code version: v2.8.1-9-g4bda829 (commit 4bda829)
% Source code version: v2.9-27-g2d16a2d (commit 2d16a2d)
%
% This LaTeX dictionary is free software and is dual-licensed
% under the LPPLv1.3c and the GPLv3 licenses.
@ -66,3 +66,5 @@
\providetranslation{Sch (Category description)}{Schemata und Homomorphismen}
\providetranslation{GrAb (Category description)}{Graduierte Gruppen und Homomorphismen}
\providetranslation{Ordinal number category (Category description)}{Endliche Ordinalzahlen und ordnungserhaltende Abbildungen}
\providetranslation{CGHaus (Category description)}{Kompakt erzeugte Hausdorffräume und stetige Abbildungen}
\providetranslation{SimplicialSet (Category description)}{Funktorkategorie $[\OrdCat, \Set]$}

View file

@ -31,7 +31,7 @@
%
% Build details:
% PyTeX version: v1.2.0-31-gc9bb0e8 (commit c9bb0e8)
% Source code version: v2.9-15-gb7ba678 (commit b7ba678)
% Source code version: v2.9-27-g2d16a2d (commit 2d16a2d)
%
% This LaTeX package is free software and is dual-licensed
% under the LPPLv1.3c and the GPLv3 licenses.
@ -59,7 +59,7 @@
\pgfplotsset{compat=1.7}
\RequirePackage{tikz} % Plots / drawings
\usetikzlibrary{calc, intersections, through, quotes, angles, babel, positioning, snakes}
\usetikzlibrary{calc, intersections, through, quotes, angles, babel, positioning, snakes, decorations.markings}
\RequirePackage{tikz-cd} %Commutative diagrams
\RequirePackage{xparse}
@ -98,18 +98,19 @@
%% Fix for equal arrows in tikz, see
% https://tex.stackexchange.com/questions/443017/equal-arrows-without-transparent-ends-possible-in-tikzcd
\usetikzlibrary{decorations.markings}
\tikzset {
double line with arrow/.style args =
{ #1, #2 }
{ decorate, decoration =
{#1,#2}%
{
decorate, decoration =
{
markings,
mark = at position 0 with
{
\coordinate (ta-base-1) at (0,1pt);
\coordinate (ta-base-2) at (0,-1pt);
},
}
,
mark = at position 1 with
{
\draw[#1] (ta-base-1) -- (0,1pt);
@ -118,4 +119,5 @@
}
}
}
\tikzset{Equal/.style={-,double line with arrow={-,-}}}

View file

@ -31,7 +31,7 @@
%
% Build details:
% PyTeX version: v1.2.0-31-gc9bb0e8 (commit c9bb0e8)
% Source code version: v2.8.1-9-g4bda829 (commit 4bda829)
% Source code version: v2.9-27-g2d16a2d (commit 2d16a2d)
%
% This LaTeX package is free software and is dual-licensed
% under the LPPLv1.3c and the GPLv3 licenses.
@ -47,7 +47,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{mkessler-todo}[2022/01/30 - Easy standards for the todonotes package]
\ProvidesPackage{mkessler-todo}[2022/06/27 - Easy standards for the todonotes package]
@ -60,18 +60,18 @@
\setuptodonotes{tickmarkheight=0.1cm, size=\small}
\newcommand\todoref{
\todo[color=red!40]{Add reference.}
\NewDocumentCommand\todoref{O{}}{
\todo[color=red!40, #1]{Add reference.}
}
\newcommand\todoquestion{
\todo[color=black!10, size=\tiny]
\NewDocumentCommand\todoquestion{O{}}{
\todo[color=black!10, size=\tiny, #1]
}
\newcommand\todotex{
\todo[color=green!75!black]
\NewDocumentCommand\todotex{O{}}{
\todo[color=green!75!black, #1]
}
\newcommand\todotypo{
\todo[color=blue!40, size=\tiny]{Typo corrected, double check this.}
\NewDocumentCommand\todotypo{O{}}{
\todo[color=blue!40, size=\tiny, #1]{Typo corrected, double check this.}
}