diff options
author | Norbert Preining <norbert@preining.info> | 2024-12-12 03:03:28 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2024-12-12 03:03:28 +0000 |
commit | fe5c519618513f27a0f339adddc3876f62aacbdf (patch) | |
tree | 3642fc1665e46219c47a28d5b77dbe55c3a7253a /macros/latex/contrib/gratzer-color-scheme | |
parent | cdc6e712c35005727bb3f617f6ee88ddfdc07123 (diff) |
CTAN sync 202412120303
Diffstat (limited to 'macros/latex/contrib/gratzer-color-scheme')
-rw-r--r-- | macros/latex/contrib/gratzer-color-scheme/Gratzer-Color-Scheme.sty | 55 | ||||
-rw-r--r-- | macros/latex/contrib/gratzer-color-scheme/README.txt | 11 | ||||
-rw-r--r-- | macros/latex/contrib/gratzer-color-scheme/example.pdf | bin | 0 -> 79281 bytes | |||
-rw-r--r-- | macros/latex/contrib/gratzer-color-scheme/example.tex | 51 |
4 files changed, 117 insertions, 0 deletions
diff --git a/macros/latex/contrib/gratzer-color-scheme/Gratzer-Color-Scheme.sty b/macros/latex/contrib/gratzer-color-scheme/Gratzer-Color-Scheme.sty new file mode 100644 index 0000000000..61708048be --- /dev/null +++ b/macros/latex/contrib/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/macros/latex/contrib/gratzer-color-scheme/README.txt b/macros/latex/contrib/gratzer-color-scheme/README.txt new file mode 100644 index 0000000000..8956c36fe1 --- /dev/null +++ b/macros/latex/contrib/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/macros/latex/contrib/gratzer-color-scheme/example.pdf b/macros/latex/contrib/gratzer-color-scheme/example.pdf Binary files differnew file mode 100644 index 0000000000..986358895e --- /dev/null +++ b/macros/latex/contrib/gratzer-color-scheme/example.pdf diff --git a/macros/latex/contrib/gratzer-color-scheme/example.tex b/macros/latex/contrib/gratzer-color-scheme/example.tex new file mode 100644 index 0000000000..7087e69387 --- /dev/null +++ b/macros/latex/contrib/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} |