From 42f4f28953152c5d59a8932b80c2edf592f4f5b9 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Thu, 15 Jul 2021 20:01:19 +0000
Subject: jxu (15jul21)

git-svn-id: svn://tug.org/texlive/trunk@59941 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/lebhart/lebhart.cls | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/lebhart/lebhart.cls')

diff --git a/Master/texmf-dist/tex/latex/lebhart/lebhart.cls b/Master/texmf-dist/tex/latex/lebhart/lebhart.cls
index 29a4088e809..4221ba16be1 100644
--- a/Master/texmf-dist/tex/latex/lebhart/lebhart.cls
+++ b/Master/texmf-dist/tex/latex/lebhart/lebhart.cls
@@ -17,7 +17,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}[2020-10-01]
 \ProvidesClass{lebhart}
-    [2021/06/30 A colorful article style]
+    [2021/07/15 A colorful article style]
 \def\colorclass@baseclass{article}
 \RequirePackage{kvoptions}
 \RequirePackage{etoolbox}
@@ -42,6 +42,7 @@
 \DeclareDefaultOption{\PassOptionsToClass{\CurrentOption}{\colorclass@baseclass}}
 \ProcessKeyvalOptions*\relax
 \LoadClass{\colorclass@baseclass}
+
 \if@colorclass@draft
     \@colorclass@fasttrue
 \fi
@@ -97,19 +98,18 @@
     \RequirePackage{draftwatermark}
     \DraftwatermarkOptions{text={\normalfont DRAFT},color=paper!95!-paper}
 \fi
+
 \RequirePackage{colorist}
 
 %%================================
 %% Fonts
 %%================================
-%% Math fonts in fast mode
 \if@colorclass@customfont\else
     \if@colorclass@fast
         \RequirePackage{mathpazo}
     \fi
 \fi
 
-%% English fonts
 \PassOptionsToPackage{no-math}{fontspec}
 \RequirePackage{fontspec}
 \IfFontExistsTF{Palatino Linotype}{%
@@ -133,7 +133,6 @@
         ItalicFont     = cmunst.otf ,
         BoldItalicFont = cmuntb.otf ]
 
-%% Chinese fonts
 \PassOptionsToPackage{fontset=none,scheme=plain}{ctex}
 \RequirePackage{ctex}
 \WarningFilter{everysel}{Everysel is no longer required}
@@ -185,7 +184,6 @@
         SmallCapsFont  = * ]
 }
 
-%% Math font
 \if@colorclass@customfont\else
 \if@colorclass@fast
 \RequirePackage{amssymb}
@@ -215,6 +213,14 @@
 \setmathfont[range={up/num, bfup/num}
             ]{texgyrepagella-math.otf}
 
+\AtBeginDocument{
+\let\mid@original\mid
+\renewcommand{\mid}{\hspace{-.2em}\mid@original\hspace{-.2em}}
+\let\nmid@original\nmid
+\renewcommand{\nmid}{\hspace{-.2em}\nmid@original\hspace{-.2em}}
+}
+
+\RequirePackage{tikz-cd}
 \newbox\xratbelow
 \newbox\xratabove
 \renewcommand{\xrightarrow}[2][]{%
@@ -273,6 +279,7 @@
         \draw (0,0) edge[commutative diagrams/equal] node[below=3pt] {\box\xratbelow}
         node[above=2pt] {\box\xratabove}
         (\xratlen,0) ;}}
+
 \AtBeginDocument{
 \renewcommand{\twoheadrightarrow}{%
     \mathrel{\tikz [baseline=-.55ex, every node/.style={inner sep=0pt}]
@@ -344,7 +351,6 @@
 
 \def\PJL@font@alreadyset{}
 
-%% Minor improvements
 \PassOptionsToPackage{verbose=silent}{microtype}
 \RequirePackage{microtype}
 \PassOptionsToPackage{all}{nowidow}
-- 
cgit v1.2.3

