summaryrefslogtreecommitdiff
path: root/macros/unicodetex/latex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/unicodetex/latex')
-rw-r--r--macros/unicodetex/latex/einfart/einfart-doc-cn.pdfbin250392 -> 250451 bytes
-rw-r--r--macros/unicodetex/latex/einfart/einfart-doc-cn.tex4
-rw-r--r--macros/unicodetex/latex/einfart/einfart-doc-en.pdfbin156965 -> 157014 bytes
-rw-r--r--macros/unicodetex/latex/einfart/einfart-doc-en.tex4
-rw-r--r--macros/unicodetex/latex/einfart/einfart-doc-fr.pdfbin162102 -> 162066 bytes
-rw-r--r--macros/unicodetex/latex/einfart/einfart-doc-fr.tex4
-rw-r--r--macros/unicodetex/latex/einfart/einfart.cls38
-rw-r--r--macros/unicodetex/latex/lebhart/lebhart-doc-cn.pdfbin279341 -> 280518 bytes
-rw-r--r--macros/unicodetex/latex/lebhart/lebhart-doc-cn.tex4
-rw-r--r--macros/unicodetex/latex/lebhart/lebhart-doc-en.pdfbin156264 -> 157242 bytes
-rw-r--r--macros/unicodetex/latex/lebhart/lebhart-doc-en.tex4
-rw-r--r--macros/unicodetex/latex/lebhart/lebhart-doc-fr.pdfbin159384 -> 160325 bytes
-rw-r--r--macros/unicodetex/latex/lebhart/lebhart-doc-fr.tex4
-rw-r--r--macros/unicodetex/latex/lebhart/lebhart.cls38
-rw-r--r--macros/unicodetex/latex/simplivre/simplivre-doc-cn.pdfbin309221 -> 310418 bytes
-rw-r--r--macros/unicodetex/latex/simplivre/simplivre-doc-cn.tex4
-rw-r--r--macros/unicodetex/latex/simplivre/simplivre-doc-en.pdfbin210494 -> 211832 bytes
-rw-r--r--macros/unicodetex/latex/simplivre/simplivre-doc-en.tex4
-rw-r--r--macros/unicodetex/latex/simplivre/simplivre-doc-fr.pdfbin212933 -> 214757 bytes
-rw-r--r--macros/unicodetex/latex/simplivre/simplivre-doc-fr.tex4
-rw-r--r--macros/unicodetex/latex/simplivre/simplivre.cls38
21 files changed, 120 insertions, 30 deletions
diff --git a/macros/unicodetex/latex/einfart/einfart-doc-cn.pdf b/macros/unicodetex/latex/einfart/einfart-doc-cn.pdf
index 90d7c7c9a2..2b1962fa50 100644
--- a/macros/unicodetex/latex/einfart/einfart-doc-cn.pdf
+++ b/macros/unicodetex/latex/einfart/einfart-doc-cn.pdf
Binary files differ
diff --git a/macros/unicodetex/latex/einfart/einfart-doc-cn.tex b/macros/unicodetex/latex/einfart/einfart-doc-cn.tex
index 43f9380831..67e5b151a3 100644
--- a/macros/unicodetex/latex/einfart/einfart-doc-cn.tex
+++ b/macros/unicodetex/latex/einfart/einfart-doc-cn.tex
@@ -98,9 +98,9 @@
\title{\einfart{},以极简主义风格排版你的文章}
\author{许锦文}
-\thanks{对应版本. \texttt{\einfart{} 2021/08/11}}
+\thanks{对应版本. \texttt{\einfart{} 2021/10/23}}
\email{\href{mailto:ProjLib@outlook.com}{ProjLib@outlook.com}}
-\date{2021年8月,北京}
+\date{2021年10月,巴黎}
\maketitle
diff --git a/macros/unicodetex/latex/einfart/einfart-doc-en.pdf b/macros/unicodetex/latex/einfart/einfart-doc-en.pdf
index ebf652ea5d..bd79975c54 100644
--- a/macros/unicodetex/latex/einfart/einfart-doc-en.pdf
+++ b/macros/unicodetex/latex/einfart/einfart-doc-en.pdf
Binary files differ
diff --git a/macros/unicodetex/latex/einfart/einfart-doc-en.tex b/macros/unicodetex/latex/einfart/einfart-doc-en.tex
index 83a421637d..6996ab24f3 100644
--- a/macros/unicodetex/latex/einfart/einfart-doc-en.tex
+++ b/macros/unicodetex/latex/einfart/einfart-doc-en.tex
@@ -98,9 +98,9 @@
\title{\einfart{}, write your articles in a simple and clear way}
\author{Jinwen XU}
-\thanks{Corresponding to: \texttt{\einfart{} 2021/08/11}}
+\thanks{Corresponding to: \texttt{\einfart{} 2021/10/23}}
\email{\href{mailto:ProjLib@outlook.com}{ProjLib@outlook.com}}
-\date{August 2021, Beijing}
+\date{October 2021, Paris}
\maketitle
diff --git a/macros/unicodetex/latex/einfart/einfart-doc-fr.pdf b/macros/unicodetex/latex/einfart/einfart-doc-fr.pdf
index e66f64e7a7..f999974aa2 100644
--- a/macros/unicodetex/latex/einfart/einfart-doc-fr.pdf
+++ b/macros/unicodetex/latex/einfart/einfart-doc-fr.pdf
Binary files differ
diff --git a/macros/unicodetex/latex/einfart/einfart-doc-fr.tex b/macros/unicodetex/latex/einfart/einfart-doc-fr.tex
index f0217a97b6..b2e777c20d 100644
--- a/macros/unicodetex/latex/einfart/einfart-doc-fr.tex
+++ b/macros/unicodetex/latex/einfart/einfart-doc-fr.tex
@@ -98,9 +98,9 @@
\title{\einfart{}, écrivez vos articles de manière simple et claire}
\author{Jinwen XU}
-\thanks{Correspondant à : \texttt{\einfart{} 2021/08/11}}
+\thanks{Correspondant à : \texttt{\einfart{} 2021/10/23}}
\email{\href{mailto:ProjLib@outlook.com}{ProjLib@outlook.com}}
-\date{Août 2021, à Pékin}
+\date{Octobre 2021, à Paris}
\maketitle
diff --git a/macros/unicodetex/latex/einfart/einfart.cls b/macros/unicodetex/latex/einfart/einfart.cls
index 27363074fa..c904d2b074 100644
--- a/macros/unicodetex/latex/einfart/einfart.cls
+++ b/macros/unicodetex/latex/einfart/einfart.cls
@@ -17,7 +17,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[2020-10-01]
\ProvidesClass{einfart}
- [2021/08/11 A simple and clear article style]
+ [2021/10/23 A simple and clear article style]
\def\minimclass@baseclass{article}
\RequirePackage{kvoptions}
\RequirePackage{etoolbox}
@@ -30,6 +30,7 @@
\DeclareBoolOption[false]{classical}
\DeclareBoolOption[false]{useindent}
\DeclareBoolOption[false]{useosf}
+\DeclareBoolOption[false]{lmodern}
\DeclareBoolOption[false]{palatino}
\DeclareBoolOption[false]{times}
\DeclareBoolOption[false]{garamond}
@@ -53,6 +54,9 @@
\if@minimclass@classical\else
\@minimclass@useindenttrue
\fi
+\if@minimclass@lmodern
+ \@minimclass@customfonttrue
+\fi
\if@minimclass@palatino
\@minimclass@customfonttrue
\fi
@@ -77,7 +81,8 @@
\RequirePackage[heightrounded]{geometry}
\geometry{
papersize={7in,10in},
- total={40em,60em},
+ % total={40em,60em},
+ total={5.535in,8.300in},
hmarginratio=1:1,
vmarginratio=1:1,
footnotesep=2em plus 2pt minus 2pt,
@@ -85,7 +90,8 @@
\if@minimclass@bfivepaper
\geometry{
b5paper,
- total={40em,59em},
+ % total={40em,59em},
+ total={5.535in,8.160in},
hmarginratio=1:1,
vmarginratio=1:1,
footnotesep=2em plus 2pt minus 2pt,
@@ -94,7 +100,8 @@
\if@minimclass@afourpaper
\geometry{
a4paper,
- total={47em,70em},
+ % total={47em,70em},
+ total={6.500in,9.685in},
hmarginratio=1:1,
vmarginratio=1:1,
footnotesep=2em plus 2pt minus 2pt,
@@ -382,6 +389,19 @@
\renewcommand{\mid}{\hspace{-.2em}\mid@original\hspace{-.2em}}
\let\nmid@original\nmid
\renewcommand{\nmid}{\hspace{-.2em}\nmid@original\hspace{-.2em}}
+\renewcommand{\frac}[2]{\genfrac{}{}{}{}{
+ \mathchoice
+ {\raisebox{-.15em}{$\displaystyle #1$}}
+ {\raisebox{-.15em}{$\textstyle #1$}}
+ {\raisebox{-.08em}{$\scriptstyle #1$}}
+ {\scriptscriptstyle #1}
+}{
+ \mathchoice
+ {\raisebox{.08em}{$\displaystyle #2$}}
+ {\raisebox{.08em}{$\textstyle #2$}}
+ {\raisebox{.05em}{$\scriptstyle #2$}}
+ {\scriptscriptstyle #2}
+}}
}
\RequirePackage{tikz-cd}
@@ -454,6 +474,16 @@
\fi
\fi
+\if@minimclass@lmodern
+ \RequirePackage{amssymb}
+ \if@minimclass@useosf
+ \RequirePackage{cfr-lm}
+ \else
+ \RequirePackage{lmodern}
+ \fi
+ \PJLsetlinespacing{\setstretch{1.00}}
+\fi
+
\if@minimclass@palatino
\RequirePackage{amssymb}
\RequirePackage{mathpazo}
diff --git a/macros/unicodetex/latex/lebhart/lebhart-doc-cn.pdf b/macros/unicodetex/latex/lebhart/lebhart-doc-cn.pdf
index d170416dea..50a3107436 100644
--- a/macros/unicodetex/latex/lebhart/lebhart-doc-cn.pdf
+++ b/macros/unicodetex/latex/lebhart/lebhart-doc-cn.pdf
Binary files differ
diff --git a/macros/unicodetex/latex/lebhart/lebhart-doc-cn.tex b/macros/unicodetex/latex/lebhart/lebhart-doc-cn.tex
index c307fda6b6..b85c421927 100644
--- a/macros/unicodetex/latex/lebhart/lebhart-doc-cn.tex
+++ b/macros/unicodetex/latex/lebhart/lebhart-doc-cn.tex
@@ -93,9 +93,9 @@
\title{{\normalfont\bfseries\color{maintext}\lebhart{}}\\以多彩的方式排版你的文章}
\author{许锦文}
-\thanks{对应版本. \texttt{\lebhart{} 2021/08/11}}
+\thanks{对应版本. \texttt{\lebhart{} 2021/10/23}}
\email{\href{mailto:ProjLib@outlook.com}{ProjLib@outlook.com}}
-\date{2021年8月,北京}
+\date{2021年10月,巴黎}
\maketitle
diff --git a/macros/unicodetex/latex/lebhart/lebhart-doc-en.pdf b/macros/unicodetex/latex/lebhart/lebhart-doc-en.pdf
index 1bf78a225f..c81f771921 100644
--- a/macros/unicodetex/latex/lebhart/lebhart-doc-en.pdf
+++ b/macros/unicodetex/latex/lebhart/lebhart-doc-en.pdf
Binary files differ
diff --git a/macros/unicodetex/latex/lebhart/lebhart-doc-en.tex b/macros/unicodetex/latex/lebhart/lebhart-doc-en.tex
index 0b983789d5..a53e8dd5b2 100644
--- a/macros/unicodetex/latex/lebhart/lebhart-doc-en.tex
+++ b/macros/unicodetex/latex/lebhart/lebhart-doc-en.tex
@@ -93,9 +93,9 @@
\title{{\normalfont\bfseries\color{maintext}\lebhart{}}\\write your articles in a colorful way}
\author{Jinwen XU}
-\thanks{Corresponding to: \texttt{\lebhart{} 2021/08/11}}
+\thanks{Corresponding to: \texttt{\lebhart{} 2021/10/23}}
\email{\href{mailto:ProjLib@outlook.com}{ProjLib@outlook.com}}
-\date{August 2021, Beijing}
+\date{October 2021, Paris}
\maketitle
diff --git a/macros/unicodetex/latex/lebhart/lebhart-doc-fr.pdf b/macros/unicodetex/latex/lebhart/lebhart-doc-fr.pdf
index f6b06a01a4..f2770aa621 100644
--- a/macros/unicodetex/latex/lebhart/lebhart-doc-fr.pdf
+++ b/macros/unicodetex/latex/lebhart/lebhart-doc-fr.pdf
Binary files differ
diff --git a/macros/unicodetex/latex/lebhart/lebhart-doc-fr.tex b/macros/unicodetex/latex/lebhart/lebhart-doc-fr.tex
index 1a1b43ecf4..6c1dc08b90 100644
--- a/macros/unicodetex/latex/lebhart/lebhart-doc-fr.tex
+++ b/macros/unicodetex/latex/lebhart/lebhart-doc-fr.tex
@@ -93,9 +93,9 @@
\title{{\normalfont\bfseries\color{maintext}\lebhart{}}\\écrivez vos articles de manière colorée}
\author{Jinwen XU}
-\thanks{Correspondant à : \texttt{\lebhart{} 2021/08/11}}
+\thanks{Correspondant à : \texttt{\lebhart{} 2021/10/23}}
\email{\href{mailto:ProjLib@outlook.com}{ProjLib@outlook.com}}
-\date{Août 2021, à Pékin}
+\date{Octobre 2021, à Paris}
\maketitle
diff --git a/macros/unicodetex/latex/lebhart/lebhart.cls b/macros/unicodetex/latex/lebhart/lebhart.cls
index a3a18edaab..ea342e93fd 100644
--- a/macros/unicodetex/latex/lebhart/lebhart.cls
+++ b/macros/unicodetex/latex/lebhart/lebhart.cls
@@ -17,7 +17,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[2020-10-01]
\ProvidesClass{lebhart}
- [2021/08/11 A colorful article style]
+ [2021/10/23 A colorful article style]
\def\colorclass@baseclass{article}
\RequirePackage{kvoptions}
\RequirePackage{etoolbox}
@@ -28,6 +28,7 @@
\DeclareBoolOption[false]{draft}
\DeclareBoolOption[false]{fast}
\DeclareBoolOption[false]{useosf}
+\DeclareBoolOption[false]{lmodern}
\DeclareBoolOption[false]{palatino}
\DeclareBoolOption[false]{times}
\DeclareBoolOption[false]{garamond}
@@ -48,6 +49,9 @@
\if@colorclass@draft
\@colorclass@fasttrue
\fi
+\if@colorclass@lmodern
+ \@colorclass@customfonttrue
+\fi
\if@colorclass@palatino
\@colorclass@customfonttrue
\fi
@@ -72,7 +76,8 @@
\RequirePackage[heightrounded]{geometry}
\geometry{
papersize={8.5in,11in},
- total={47em,66em},
+ % total={47em,66em},
+ total={6.500in,9.130in},
hmarginratio=1:1,
vmarginratio=1:1,
footnotesep=2em plus 2pt minus 2pt,
@@ -80,7 +85,8 @@
\if@colorclass@bfivepaper
\geometry{
b5paper,
- total={40em,59em},
+ % total={40em,59em},
+ total={5.535in,8.160in},
hmarginratio=1:1,
vmarginratio=1:1,
footnotesep=2em plus 2pt minus 2pt,
@@ -89,7 +95,8 @@
\if@colorclass@afourpaper
\geometry{
a4paper,
- total={47em,70em},
+ % total={47em,70em},
+ total={6.500in,9.685in},
hmarginratio=1:1,
vmarginratio=1:1,
footnotesep=2em plus 2pt minus 2pt,
@@ -373,6 +380,19 @@
\renewcommand{\mid}{\hspace{-.2em}\mid@original\hspace{-.2em}}
\let\nmid@original\nmid
\renewcommand{\nmid}{\hspace{-.2em}\nmid@original\hspace{-.2em}}
+\renewcommand{\frac}[2]{\genfrac{}{}{}{}{
+ \mathchoice
+ {\raisebox{-.15em}{$\displaystyle #1$}}
+ {\raisebox{-.15em}{$\textstyle #1$}}
+ {\raisebox{-.08em}{$\scriptstyle #1$}}
+ {\scriptscriptstyle #1}
+}{
+ \mathchoice
+ {\raisebox{.08em}{$\displaystyle #2$}}
+ {\raisebox{.08em}{$\textstyle #2$}}
+ {\raisebox{.05em}{$\scriptstyle #2$}}
+ {\scriptscriptstyle #2}
+}}
}
\RequirePackage{tikz-cd}
@@ -447,6 +467,16 @@
\fi
\fi
+\if@colorclass@lmodern
+ \RequirePackage{amssymb}
+ \if@colorclass@useosf
+ \RequirePackage{cfr-lm}
+ \else
+ \RequirePackage{lmodern}
+ \fi
+ \PJLsetlinespacing{\setstretch{1.00}}
+\fi
+
\if@colorclass@palatino
\RequirePackage{amssymb}
\RequirePackage{mathpazo}
diff --git a/macros/unicodetex/latex/simplivre/simplivre-doc-cn.pdf b/macros/unicodetex/latex/simplivre/simplivre-doc-cn.pdf
index eb64364065..8d3b68bdb7 100644
--- a/macros/unicodetex/latex/simplivre/simplivre-doc-cn.pdf
+++ b/macros/unicodetex/latex/simplivre/simplivre-doc-cn.pdf
Binary files differ
diff --git a/macros/unicodetex/latex/simplivre/simplivre-doc-cn.tex b/macros/unicodetex/latex/simplivre/simplivre-doc-cn.tex
index d7b6bf459e..8d2b1f4476 100644
--- a/macros/unicodetex/latex/simplivre/simplivre-doc-cn.tex
+++ b/macros/unicodetex/latex/simplivre/simplivre-doc-cn.tex
@@ -103,9 +103,9 @@
\fill [cyan!90!black] ($(current page.south west)+(0,7)$) rectangle ($(current page.north west)+(21,-7)$);
\fill [yellow] (current page.south west) rectangle ($(current page.north west)+(3,0)$);
\node[text width=10cm] at ($(current page.north west)+(8.5,-6)$) {\huge\ProjLib};
- \node[text width=6cm,text height=3.5cm,scale=2.5] at ($(current page.north west)+(11,-9)$) {\textcolor{white}{\sffamily\simplivre{}\\[5pt]\footnotesize\hspace*{-.05em}以极简主义风格排版你的图书\\[10pt]\tiny 对应版本. \texttt{\simplivre{} 2021/08/11}}};
+ \node[text width=6cm,text height=3.5cm,scale=2.5] at ($(current page.north west)+(11,-9)$) {\textcolor{white}{\sffamily\simplivre{}\\[5pt]\footnotesize\hspace*{-.05em}以极简主义风格排版你的图书\\[10pt]\tiny 对应版本. \texttt{\simplivre{} 2021/10/23}}};
\node at ($(current page.south)+(1.5,3)$) {\fontsize{16pt}{0pt}\selectfont\textcolor{gray}{许锦文}};
- \node at ($(current page.south)+(1.5,2)$) {\fontsize{12pt}{0pt}\selectfont\textcolor{gray}{2021年8月,北京}};
+ \node at ($(current page.south)+(1.5,2)$) {\fontsize{12pt}{0pt}\selectfont\textcolor{gray}{2021年10月,巴黎}};
\end{tikzpicture}%
\end{titlepage}%
\cleardoublepage%
diff --git a/macros/unicodetex/latex/simplivre/simplivre-doc-en.pdf b/macros/unicodetex/latex/simplivre/simplivre-doc-en.pdf
index 66babbedbb..8bdb833fdb 100644
--- a/macros/unicodetex/latex/simplivre/simplivre-doc-en.pdf
+++ b/macros/unicodetex/latex/simplivre/simplivre-doc-en.pdf
Binary files differ
diff --git a/macros/unicodetex/latex/simplivre/simplivre-doc-en.tex b/macros/unicodetex/latex/simplivre/simplivre-doc-en.tex
index aa00414e13..c6f2a94485 100644
--- a/macros/unicodetex/latex/simplivre/simplivre-doc-en.tex
+++ b/macros/unicodetex/latex/simplivre/simplivre-doc-en.tex
@@ -104,9 +104,9 @@
\fill [cyan!90!black] ($(current page.south west)+(0,7)$) rectangle ($(current page.north west)+(21,-7)$);
\fill [yellow] (current page.south west) rectangle ($(current page.north west)+(3,0)$);
\node[text width=10cm] at ($(current page.north west)+(8.5,-6)$) {\huge\ProjLib};
- \node[text width=6cm,text height=3.5cm,scale=2.5] at ($(current page.north west)+(11,-9)$) {\textcolor{white}{\sffamily\simplivre{}\\[5pt]\footnotesize\textsc{Write your books in \\a simple and clear way}\\[10pt]\tiny Corresponding to: \texttt{\simplivre{} 2021/08/11}}};
+ \node[text width=6cm,text height=3.5cm,scale=2.5] at ($(current page.north west)+(11,-9)$) {\textcolor{white}{\sffamily\simplivre{}\\[5pt]\footnotesize\textsc{Write your books in \\a simple and clear way}\\[10pt]\tiny Corresponding to: \texttt{\simplivre{} 2021/10/23}}};
\node at ($(current page.south)+(1.5,3)$) {\fontsize{16pt}{0pt}\selectfont\textcolor{gray}{\scshape Jinwen XU}};
- \node at ($(current page.south)+(1.5,2)$) {\fontsize{12pt}{0pt}\selectfont\textcolor{gray}{August 2021, Beijing}};
+ \node at ($(current page.south)+(1.5,2)$) {\fontsize{12pt}{0pt}\selectfont\textcolor{gray}{October 2021, Paris}};
\end{tikzpicture}%
\end{titlepage}%
\cleardoublepage%
diff --git a/macros/unicodetex/latex/simplivre/simplivre-doc-fr.pdf b/macros/unicodetex/latex/simplivre/simplivre-doc-fr.pdf
index 45a25ef1db..6a4b397cd0 100644
--- a/macros/unicodetex/latex/simplivre/simplivre-doc-fr.pdf
+++ b/macros/unicodetex/latex/simplivre/simplivre-doc-fr.pdf
Binary files differ
diff --git a/macros/unicodetex/latex/simplivre/simplivre-doc-fr.tex b/macros/unicodetex/latex/simplivre/simplivre-doc-fr.tex
index d8cfcc840e..178f122109 100644
--- a/macros/unicodetex/latex/simplivre/simplivre-doc-fr.tex
+++ b/macros/unicodetex/latex/simplivre/simplivre-doc-fr.tex
@@ -103,9 +103,9 @@
\fill [cyan!90!black] ($(current page.south west)+(0,7)$) rectangle ($(current page.north west)+(21,-7)$);
\fill [yellow] (current page.south west) rectangle ($(current page.north west)+(3,0)$);
\node[text width=10cm] at ($(current page.north west)+(8.5,-6)$) {\huge\ProjLib};
- \node[text width=6cm,text height=3.5cm,scale=2.5] at ($(current page.north west)+(11,-9)$) {\textcolor{white}{\sffamily\simplivre{}\\[5pt]\footnotesize\textsc{Écrivez vos livres \\de manière simple et claire}\\[10pt]\tiny Correspondant à : \texttt{\simplivre{} 2021/08/11}}};
+ \node[text width=6cm,text height=3.5cm,scale=2.5] at ($(current page.north west)+(11,-9)$) {\textcolor{white}{\sffamily\simplivre{}\\[5pt]\footnotesize\textsc{Écrivez vos livres \\de manière simple et claire}\\[10pt]\tiny Correspondant à : \texttt{\simplivre{} 2021/10/23}}};
\node at ($(current page.south)+(1.5,3)$) {\fontsize{16pt}{0pt}\selectfont\textcolor{gray}{\scshape Jinwen XU}};
- \node at ($(current page.south)+(1.5,2)$) {\fontsize{12pt}{0pt}\selectfont\textcolor{gray}{Août 2021, à Pékin}};
+ \node at ($(current page.south)+(1.5,2)$) {\fontsize{12pt}{0pt}\selectfont\textcolor{gray}{Octobre 2021, à Paris}};
\end{tikzpicture}%
\end{titlepage}%
\cleardoublepage%
diff --git a/macros/unicodetex/latex/simplivre/simplivre.cls b/macros/unicodetex/latex/simplivre/simplivre.cls
index 84c21b30bb..8ec380f257 100644
--- a/macros/unicodetex/latex/simplivre/simplivre.cls
+++ b/macros/unicodetex/latex/simplivre/simplivre.cls
@@ -17,7 +17,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[2020-10-01]
\ProvidesClass{simplivre}
- [2021/08/11 A simple and clear book style]
+ [2021/10/23 A simple and clear book style]
\def\minimclass@baseclass{book}
\RequirePackage{kvoptions}
\RequirePackage{etoolbox}
@@ -30,6 +30,7 @@
\DeclareBoolOption[false]{classical}
\DeclareBoolOption[false]{useindent}
\DeclareBoolOption[false]{useosf}
+\DeclareBoolOption[false]{lmodern}
\DeclareBoolOption[false]{palatino}
\DeclareBoolOption[false]{times}
\DeclareBoolOption[false]{garamond}
@@ -53,6 +54,9 @@
\if@minimclass@classical\else
\@minimclass@useindenttrue
\fi
+\if@minimclass@lmodern
+ \@minimclass@customfonttrue
+\fi
\if@minimclass@palatino
\@minimclass@customfonttrue
\fi
@@ -77,7 +81,8 @@
\RequirePackage[heightrounded]{geometry}
\geometry{
papersize={7in,10in},
- total={40em,60em},
+ % total={40em,60em},
+ total={5.535in,8.300in},
hmarginratio=1:1,
vmarginratio=1:1,
footnotesep=2em plus 2pt minus 2pt,
@@ -85,7 +90,8 @@
\if@minimclass@bfivepaper
\geometry{
b5paper,
- total={40em,59em},
+ % total={40em,59em},
+ total={5.535in,8.160in},
hmarginratio=1:1,
vmarginratio=1:1,
footnotesep=2em plus 2pt minus 2pt,
@@ -94,7 +100,8 @@
\if@minimclass@afourpaper
\geometry{
a4paper,
- total={47em,70em},
+ % total={47em,70em},
+ total={6.500in,9.685in},
hmarginratio=1:1,
vmarginratio=1:1,
footnotesep=2em plus 2pt minus 2pt,
@@ -382,6 +389,19 @@
\renewcommand{\mid}{\hspace{-.2em}\mid@original\hspace{-.2em}}
\let\nmid@original\nmid
\renewcommand{\nmid}{\hspace{-.2em}\nmid@original\hspace{-.2em}}
+\renewcommand{\frac}[2]{\genfrac{}{}{}{}{
+ \mathchoice
+ {\raisebox{-.15em}{$\displaystyle #1$}}
+ {\raisebox{-.15em}{$\textstyle #1$}}
+ {\raisebox{-.08em}{$\scriptstyle #1$}}
+ {\scriptscriptstyle #1}
+}{
+ \mathchoice
+ {\raisebox{.08em}{$\displaystyle #2$}}
+ {\raisebox{.08em}{$\textstyle #2$}}
+ {\raisebox{.05em}{$\scriptstyle #2$}}
+ {\scriptscriptstyle #2}
+}}
}
\RequirePackage{tikz-cd}
@@ -454,6 +474,16 @@
\fi
\fi
+\if@minimclass@lmodern
+ \RequirePackage{amssymb}
+ \if@minimclass@useosf
+ \RequirePackage{cfr-lm}
+ \else
+ \RequirePackage{lmodern}
+ \fi
+ \PJLsetlinespacing{\setstretch{1.00}}
+\fi
+
\if@minimclass@palatino
\RequirePackage{amssymb}
\RequirePackage{mathpazo}