From e1dafecb06e75d448cec3ba54b3fcd7868ee060c Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 5 Jul 2021 20:55:54 +0000 Subject: simplivre (5jul21) git-svn-id: svn://tug.org/texlive/trunk@59849 c570f23f-e606-0410-a88d-b1316a301751 --- .../doc/latex/simplivre/simplivre-doc-cn.pdf | Bin 288667 -> 280225 bytes .../doc/latex/simplivre/simplivre-doc-cn.tex | 9 ++++++--- .../doc/latex/simplivre/simplivre-doc-en.pdf | Bin 194593 -> 184576 bytes .../doc/latex/simplivre/simplivre-doc-en.tex | 14 ++++++++++---- .../texmf-dist/tex/latex/simplivre/simplivre.cls | 16 +++++++++------- 5 files changed, 25 insertions(+), 14 deletions(-) (limited to 'Master') diff --git a/Master/texmf-dist/doc/latex/simplivre/simplivre-doc-cn.pdf b/Master/texmf-dist/doc/latex/simplivre/simplivre-doc-cn.pdf index 329b4355393..26a44b253ff 100644 Binary files a/Master/texmf-dist/doc/latex/simplivre/simplivre-doc-cn.pdf and b/Master/texmf-dist/doc/latex/simplivre/simplivre-doc-cn.pdf differ diff --git a/Master/texmf-dist/doc/latex/simplivre/simplivre-doc-cn.tex b/Master/texmf-dist/doc/latex/simplivre/simplivre-doc-cn.tex index 815bc8737ae..5ce2d00a7d4 100644 --- a/Master/texmf-dist/doc/latex/simplivre/simplivre-doc-cn.tex +++ b/Master/texmf-dist/doc/latex/simplivre/simplivre-doc-cn.tex @@ -40,7 +40,7 @@ \providecommand{\meta}[1]{$\langle${\normalfont\itshape#1}$\rangle$} \lstset{moretexcs=% {linenumbers,nolinenumbers,part,chapter,section,subsection,subsubsection,href, - color,NameTheorem,CreateTheorem,proofideanameCN,cref,dnf,needgraph,UseLanguage,UseOtherLanguage,AddLanguageSetting,maketitle,address,curraddr,email,keywords,subjclass,thanks,dedicatory,PLdate,ProjLib,parttext + color,NameTheorem,CreateTheorem,proofideanameCN,cref,dnf,needgraph,UseLanguage,UseOtherLanguage,AddLanguageSetting,maketitle,address,curraddr,email,keywords,subjclass,thanks,dedicatory,PLdate,ProjLib,parttext,qedhere } } \lstnewenvironment{code}% @@ -102,9 +102,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/06/30}}}; + \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/07/05}}}; \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年6月,北京}}; + \node at ($(current page.south)+(1.5,2)$) {\fontsize{12pt}{0pt}\selectfont\textcolor{gray}{2021年7月,北京}}; \end{tikzpicture}% \end{titlepage}% \cleardoublepage% @@ -447,6 +447,9 @@ \end{itemize} 这是标题使用下划线装饰之后带来的一个缺点。 +\section{关于QED符号} +由于定理类环境中的字体和正文字体是一样的,为了方便看出定理类环境在哪里结束,在其结尾处放置了一个空心的QED符号。然而,如果你的定理是由公式或者列表结尾的,这个符号就无法自动地放在正确的位置。这时,你需要手动在公式或列表最后一个条目的后面加上 \lstinline|\qedhere|,以让QED符号显示到这一行的最后。 + \section{目前存在的问题} diff --git a/Master/texmf-dist/doc/latex/simplivre/simplivre-doc-en.pdf b/Master/texmf-dist/doc/latex/simplivre/simplivre-doc-en.pdf index 3da74b53016..6b4ed825c18 100644 Binary files a/Master/texmf-dist/doc/latex/simplivre/simplivre-doc-en.pdf and b/Master/texmf-dist/doc/latex/simplivre/simplivre-doc-en.pdf differ diff --git a/Master/texmf-dist/doc/latex/simplivre/simplivre-doc-en.tex b/Master/texmf-dist/doc/latex/simplivre/simplivre-doc-en.tex index 7566f60fd3e..1885bfd03c9 100644 --- a/Master/texmf-dist/doc/latex/simplivre/simplivre-doc-en.tex +++ b/Master/texmf-dist/doc/latex/simplivre/simplivre-doc-en.tex @@ -38,7 +38,7 @@ \providecommand{\meta}[1]{$\langle${\normalfont\itshape#1}$\rangle$} \lstset{moretexcs=% {linenumbers,nolinenumbers,part,chapter,section,subsection,subsubsection,href, - color,NameTheorem,CreateTheorem,proofideanameEN,cref,dnf,needgraph,UseLanguage,UseOtherLanguage,AddLanguageSetting,maketitle,address,curraddr,email,keywords,subjclass,thanks,dedicatory,PLdate,ProjLib,parttext + color,NameTheorem,CreateTheorem,proofideanameEN,cref,dnf,needgraph,UseLanguage,UseOtherLanguage,AddLanguageSetting,maketitle,address,curraddr,email,keywords,subjclass,thanks,dedicatory,PLdate,ProjLib,parttext,qedhere } } \lstnewenvironment{code}% @@ -101,9 +101,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/06/30}}}; + \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/07/05}}}; \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}{June 2021, Beijing}}; + \node at ($(current page.south)+(1.5,2)$) {\fontsize{12pt}{0pt}\selectfont\textcolor{gray}{July 2021, Beijing}}; \end{tikzpicture}% \end{titlepage}% \cleardoublepage% @@ -133,9 +133,11 @@ This documentation is typeset using \simplivre{}. You can think of it as a short \section{How to load it} One only needs to put + \begin{code} \documentclass{simplivre} \end{code} + as the first line to use the \simplivre{} class. \begin{tip}[Attention] @@ -364,7 +366,7 @@ defines an unnumbered environment \lstinline|proofidea*| and a numbered environm The \lstinline|proofidea| environment. \end{proofidea} -\clearpage +% \clearpage \section{Draft mark} You can use \lstinline|\dnf| to mark the unfinished part. For example: @@ -440,7 +442,11 @@ In \lstinline|\section| or \lstinline|\subsection| , if you wish to add footnote \end{itemize} This is a disadvantage brought about by the underline decoration of the title. +\section{On the QED symbols} +Since the font in the theorem-like environments is the same as that of the main text, in order to indicate where the environments end, a hollow QED symbol \simpleqedsymbol{} is placed at the end of the theorem-like environments. However, if your theorem ends with an equation or list (itemize, enumerate, description, etc.), this symbol cannot be automatically placed in the correct position. In this case, you need to manually add a \lstinline|\qedhere| at the end of your equation or the last entry of your list to make the QED symbol appear at the end of the line. + +\clearpage \section{Known issues} \begin{itemize}[itemsep=.6em] diff --git a/Master/texmf-dist/tex/latex/simplivre/simplivre.cls b/Master/texmf-dist/tex/latex/simplivre/simplivre.cls index 5f253fee234..28b2e7d16c0 100644 --- a/Master/texmf-dist/tex/latex/simplivre/simplivre.cls +++ b/Master/texmf-dist/tex/latex/simplivre/simplivre.cls @@ -17,7 +17,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2020-10-01] \ProvidesClass{simplivre} - [2021/06/30 A simple and clear book style] + [2021/07/05 A simple and clear book style] \def\minimclass@baseclass{book} \RequirePackage{kvoptions} \RequirePackage{etoolbox} @@ -44,6 +44,7 @@ \DeclareDefaultOption{\PassOptionsToClass{\CurrentOption}{\minimclass@baseclass}} \ProcessKeyvalOptions*\relax \LoadClass{\minimclass@baseclass} + \if@minimclass@draft \@minimclass@fasttrue \fi @@ -110,14 +111,12 @@ %%================================ %% Fonts %%================================ -%% Math fonts in fast mode \if@minimclass@customfont\else \if@minimclass@fast \RequirePackage{mathpazo} \fi \fi -%% English fonts \PassOptionsToPackage{no-math}{fontspec} \RequirePackage{fontspec} \IfFontExistsTF{Palatino Linotype}{% @@ -141,7 +140,6 @@ ItalicFont = cmunst.otf , BoldItalicFont = cmuntb.otf ] -%% Chinese fonts \PassOptionsToPackage{fontset=none,scheme=plain}{ctex} \RequirePackage{ctex} \WarningFilter{everysel}{Everysel is no longer required} @@ -206,7 +204,6 @@ \def\minimalist@titlefontshape{\CJKfamily{zhhei}} -%% Math font \if@minimclass@customfont\else \if@minimclass@fast \RequirePackage{amssymb} @@ -236,6 +233,13 @@ \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}} +} + \newbox\xratbelow \newbox\xratabove \renewcommand{\xrightarrow}[2][]{% @@ -298,7 +302,6 @@ \renewcommand{\twoheadrightarrow}{% \mathrel{\tikz [baseline=-.55ex, every node/.style={inner sep=0pt}] \draw (0,0) edge[commutative diagrams/twoheadrightarrow] (.8em,0) ;}} - \renewcommand{\twoheadleftarrow}{% \mathrel{\tikz [baseline=-.55ex, every node/.style={inner sep=0pt}] \draw (0,0) edge[commutative diagrams/twoheadleftarrow] (.8em,0) ;}} @@ -363,7 +366,6 @@ \def\PJL@font@alreadyset{} -%% Minor improvements \PassOptionsToPackage{verbose=silent}{microtype} \RequirePackage{microtype} \PassOptionsToPackage{all}{nowidow} -- cgit v1.2.3