diff options
author | Karl Berry <karl@freefriends.org> | 2024-12-11 20:27:53 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-12-11 20:27:53 +0000 |
commit | a4559629520839dc2c8d75a388f2e7d127d15952 (patch) | |
tree | ca67834cabd2ea70a16fefa5fc68d9e0c02a15c8 | |
parent | 1b6b17b37ba582e7bf8e1b309e2e4168cf76fca0 (diff) |
gratzer-color-scheme (11dec24)
git-svn-id: svn://tug.org/texlive/trunk@73102 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/doc/latex/gratzer-color-scheme/README.txt | 11 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/gratzer-color-scheme/example.pdf | bin | 0 -> 79281 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/gratzer-color-scheme/example.tex | 51 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/gratzer-color-scheme/Gratzer-Color-Scheme.sty | 55 | ||||
-rwxr-xr-x | Master/tlpkg/bin/tlpkg-ctan-check | 3 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc | 1 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/gratzer-color-scheme.tlpsrc | 0 |
7 files changed, 120 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/gratzer-color-scheme/README.txt b/Master/texmf-dist/doc/latex/gratzer-color-scheme/README.txt new file mode 100644 index 00000000000..8956c36fe1f --- /dev/null +++ b/Master/texmf-dist/doc/latex/gratzer-color-scheme/README.txt @@ -0,0 +1,11 @@ +Introduces the Grätzer-Color-Scheme, Version 1.0, for math publications. + +Invoke it with + +\usepackage{Gratzer-Color-Scheme} + +It colors theorems and corollaries red; lemmas, propositions blue; definitions green. +See example.tex and example.pdf for an illustration. + +Author: George Grätzer. +Distributed under the LaTeX Project Public Licence 1.3c
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/gratzer-color-scheme/example.pdf b/Master/texmf-dist/doc/latex/gratzer-color-scheme/example.pdf Binary files differnew file mode 100644 index 00000000000..986358895e2 --- /dev/null +++ b/Master/texmf-dist/doc/latex/gratzer-color-scheme/example.pdf diff --git a/Master/texmf-dist/doc/latex/gratzer-color-scheme/example.tex b/Master/texmf-dist/doc/latex/gratzer-color-scheme/example.tex new file mode 100644 index 00000000000..7087e693878 --- /dev/null +++ b/Master/texmf-dist/doc/latex/gratzer-color-scheme/example.tex @@ -0,0 +1,51 @@ +\documentclass{amsart} +\usepackage{amssymb,latexsym} +\usepackage{amsmath} +\usepackage{graphicx} +\usepackage{enumerate} +\usepackage{gensymb} +\usepackage{Gratzer-Color-Scheme} + + +\begin{document} +\title{Example file for Gratzer-Color-Scheme} + +\author[G.\ Gr\"atzer]{George Gr\"atzer} + +\keywords{$\mathcal{C}_1$-diagrams, slim planar semimodular lattice} + +\maketitle + +\begin{definition} +%Definition~\ref{D:well} +A diagram of an SPS lattice $L$ is a +\emph{${C}_1$-diagram} if the middle edge of any cover-preserving $7$ is steep +and all other edges are normal. +\end{definition} + +\begin{theorem}\label{T:well} +%Theorem~\ref{T:well} +Every slim, planar, semimodular lattice $L$ has a ${C}_1$-diagram. +\end{theorem} + +\begin{corollary} +The principal ideals are distributive. +\end{corollary} + +\begin{proof} +Let $K$ be represented. +\end{proof} + +\begin{lemma} +$K$ is a lattice. +\end{lemma} + +\begin{proof} +Obvious. +\end{proof} + +\begin{proposition} +$K$ is not a lattice. +\end{proposition} + +\end{document} diff --git a/Master/texmf-dist/tex/latex/gratzer-color-scheme/Gratzer-Color-Scheme.sty b/Master/texmf-dist/tex/latex/gratzer-color-scheme/Gratzer-Color-Scheme.sty new file mode 100644 index 00000000000..61708048bed --- /dev/null +++ b/Master/texmf-dist/tex/latex/gratzer-color-scheme/Gratzer-Color-Scheme.sty @@ -0,0 +1,55 @@ +% Gratzer-Color-Scheme.sty Version 1.0 +% Distributed under the LaTeX Project Public Licence 1.3c +\ProvidesPackage{Gratzer-Color-Scheme} + +% Load necessary packages +\RequirePackage{xcolor} % For coloring text +\RequirePackage{amsthm} % For theorem environment customization + +% Define color styles for each environment +\newtheoremstyle{redStyle} % name + {} % Space above + {} % Space below + {\color{red}} % Body font + {} % Indent amount + {\bfseries\color{red}} % Theorem head font + {.} % Punctuation after theorem head + { } % Space after theorem head + {} % Theorem head spec + +\newtheoremstyle{blueStyle} + {} + {} + {\color{blue}} + {} + {\bfseries\color{blue}} + {.} + { } + {} + +\newtheoremstyle{darkGreenStyle} + {} + {} + {\color{darkgreen}} + {} + {\bfseries\color{darkgreen}} + {.} + { } + {} + +% Define dark green color if not predefined +\definecolor{darkgreen}{rgb}{0.0, 0.5, 0.0} + +% Apply styles to theorem-like environments +\theoremstyle{redStyle} +\newtheorem{theorem}{Theorem} +\newtheorem{corollary}{Corollary} + +\theoremstyle{blueStyle} +\newtheorem{lemma}{Lemma} +\newtheorem{proposition}{Proposition} + +\theoremstyle{darkGreenStyle} +\newtheorem{definition}{Definition} + +\endinput diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index dc132182c92..d07005fa407 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -401,7 +401,8 @@ my @TLP_working = qw( graph35 graphbox graphics graphics-cfg graphics-def graphics-pln graphicx-psmin graphicscache graphicxbox graphicxpsd - graphpaper graphviz grayhints greek-fontenc greek-inputenc + graphpaper graphviz gratzer-color-scheme grayhints + greek-fontenc greek-inputenc greekdates greektex greektonoi greenpoint gregoriotex grfext grffile grfpaste grid grid-system gridpapers gridset gridslides grotesq grundgesetze diff --git a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc index 01b2f582017..3a698802603 100644 --- a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc @@ -661,6 +661,7 @@ depend graphicscache depend graphicx-psmin depend graphicxbox depend graphpaper +depend gratzer-color-scheme depend grayhints depend grfpaste depend grid diff --git a/Master/tlpkg/tlpsrc/gratzer-color-scheme.tlpsrc b/Master/tlpkg/tlpsrc/gratzer-color-scheme.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/gratzer-color-scheme.tlpsrc |