texlive[65436] Master/texmf-dist: jxu (2jan23)
commits+karl at tug.org
commits+karl at tug.org
Mon Jan 2 22:23:26 CET 2023
Revision: 65436
http://tug.org/svn/texlive?view=revision&revision=65436
Author: karl
Date: 2023-01-02 22:23:26 +0100 (Mon, 02 Jan 2023)
Log Message:
-----------
jxu (2jan23)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/beaulivre/README.md
trunk/Master/texmf-dist/doc/latex/colorist/README.md
trunk/Master/texmf-dist/doc/latex/lebhart/README.md
trunk/Master/texmf-dist/doc/latex/minimalist/README.md
trunk/Master/texmf-dist/doc/latex/projlib/README.md
trunk/Master/texmf-dist/source/latex/projlib/ProjLib.dtx
trunk/Master/texmf-dist/tex/latex/beaulivre/beaulivre.cls
trunk/Master/texmf-dist/tex/latex/colorist/colorart.cls
trunk/Master/texmf-dist/tex/latex/colorist/colorbook.cls
trunk/Master/texmf-dist/tex/latex/colorist/colorist-fancy.sty
trunk/Master/texmf-dist/tex/latex/colorist/colorist.sty
trunk/Master/texmf-dist/tex/latex/einfart/einfart.cls
trunk/Master/texmf-dist/tex/latex/lebhart/lebhart.cls
trunk/Master/texmf-dist/tex/latex/minimalist/minimalist-classical.sty
trunk/Master/texmf-dist/tex/latex/minimalist/minimalist-plain.sty
trunk/Master/texmf-dist/tex/latex/minimalist/minimalist.sty
trunk/Master/texmf-dist/tex/latex/minimalist/minimart.cls
trunk/Master/texmf-dist/tex/latex/minimalist/minimbook.cls
trunk/Master/texmf-dist/tex/latex/projlib/ProjLib.sty
trunk/Master/texmf-dist/tex/latex/projlib/projlib-author.sty
trunk/Master/texmf-dist/tex/latex/projlib/projlib-datetime.sty
trunk/Master/texmf-dist/tex/latex/projlib/projlib-draft.sty
trunk/Master/texmf-dist/tex/latex/projlib/projlib-font.sty
trunk/Master/texmf-dist/tex/latex/projlib/projlib-language.sty
trunk/Master/texmf-dist/tex/latex/projlib/projlib-logo.sty
trunk/Master/texmf-dist/tex/latex/projlib/projlib-math.sty
trunk/Master/texmf-dist/tex/latex/projlib/projlib-paper.sty
trunk/Master/texmf-dist/tex/latex/projlib/projlib-text.sty
trunk/Master/texmf-dist/tex/latex/projlib/projlib-theorem.sty
trunk/Master/texmf-dist/tex/latex/projlib/projlib-titlepage.sty
trunk/Master/texmf-dist/tex/latex/simplivre/simplivre.cls
Added Paths:
-----------
trunk/Master/texmf-dist/tex/latex/minimalist/minimalist-flow.sty
trunk/Master/texmf-dist/tex/latex/minimalist/minimalist-stream.sty
Removed Paths:
-------------
trunk/Master/texmf-dist/doc/latex/beaulivre/beaulivre-doc-cn.pdf
trunk/Master/texmf-dist/doc/latex/beaulivre/beaulivre-doc-cn.tex
trunk/Master/texmf-dist/doc/latex/beaulivre/beaulivre-doc-en.pdf
trunk/Master/texmf-dist/doc/latex/beaulivre/beaulivre-doc-en.tex
trunk/Master/texmf-dist/doc/latex/beaulivre/beaulivre-doc-fr.pdf
trunk/Master/texmf-dist/doc/latex/beaulivre/beaulivre-doc-fr.tex
trunk/Master/texmf-dist/doc/latex/colorist/colorist-doc.pdf
trunk/Master/texmf-dist/doc/latex/colorist/colorist-doc.tex
trunk/Master/texmf-dist/doc/latex/einfart/einfart-doc-cn.pdf
trunk/Master/texmf-dist/doc/latex/einfart/einfart-doc-cn.tex
trunk/Master/texmf-dist/doc/latex/einfart/einfart-doc-en.pdf
trunk/Master/texmf-dist/doc/latex/einfart/einfart-doc-en.tex
trunk/Master/texmf-dist/doc/latex/einfart/einfart-doc-fr.pdf
trunk/Master/texmf-dist/doc/latex/einfart/einfart-doc-fr.tex
trunk/Master/texmf-dist/doc/latex/lebhart/lebhart-doc-cn.pdf
trunk/Master/texmf-dist/doc/latex/lebhart/lebhart-doc-cn.tex
trunk/Master/texmf-dist/doc/latex/lebhart/lebhart-doc-en.pdf
trunk/Master/texmf-dist/doc/latex/lebhart/lebhart-doc-en.tex
trunk/Master/texmf-dist/doc/latex/lebhart/lebhart-doc-fr.pdf
trunk/Master/texmf-dist/doc/latex/lebhart/lebhart-doc-fr.tex
trunk/Master/texmf-dist/doc/latex/minimalist/minimalist-doc.pdf
trunk/Master/texmf-dist/doc/latex/minimalist/minimalist-doc.tex
trunk/Master/texmf-dist/doc/latex/simplivre/simplivre-doc-cn.pdf
trunk/Master/texmf-dist/doc/latex/simplivre/simplivre-doc-cn.tex
trunk/Master/texmf-dist/doc/latex/simplivre/simplivre-doc-en.pdf
trunk/Master/texmf-dist/doc/latex/simplivre/simplivre-doc-en.tex
trunk/Master/texmf-dist/doc/latex/simplivre/simplivre-doc-fr.pdf
trunk/Master/texmf-dist/doc/latex/simplivre/simplivre-doc-fr.tex
Modified: trunk/Master/texmf-dist/doc/latex/beaulivre/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beaulivre/README.md 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/doc/latex/beaulivre/README.md 2023-01-02 21:23:26 UTC (rev 65436)
@@ -1,4 +1,4 @@
-<!-- Copyright (C) 2021-2022 by Jinwen XU -->
+<!-- Copyright (C) 2021-2023 by Jinwen XU -->
# `beaulivre` : write you books in a colorful way
Deleted: trunk/Master/texmf-dist/doc/latex/beaulivre/beaulivre-doc-cn.pdf
===================================================================
(Binary files differ)
Deleted: trunk/Master/texmf-dist/doc/latex/beaulivre/beaulivre-doc-cn.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beaulivre/beaulivre-doc-cn.tex 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/doc/latex/beaulivre/beaulivre-doc-cn.tex 2023-01-02 21:23:26 UTC (rev 65436)
@@ -1,489 +0,0 @@
-\documentclass[title in boldface, title in scshape, simple name]{beaulivre}
-
-%%================================
-%% Import toolkit
-%%================================
-\usepackage{ProjLib}
-\usepackage{longtable} % breakable tables
-\usepackage{hologo} % more TeX logo
-\usetikzlibrary{calc}
-
-\usepackage{blindtext}
-
-\UseLanguage{Chinese}
-
-%%================================
-%% For typesetting code
-%%================================
-\usepackage{listings}
-\usepackage{xcolor}
-\usepackage{setspace}
-\definecolor{code-main}{RGB}{70,130,180}
-\definecolor{code-expl3}{RGB}{240,50,60}
-\definecolor{code-option}{RGB}{40,110,20}
-\definecolor{code-keys}{RGB}{100,130,150}
-\definecolor{code-comment}{RGB}{20,120,80}
-\definecolor{code-background}{gray}{0.99}
-\lstset{
- language = [LaTeX]TeX,
- basicstyle = \ttfamily,
- keywordstyle = \color{code-main},
- commentstyle = \color{code-comment},
- showstringspaces = false,
- breaklines = true,
- frame = lines,
- backgroundcolor = \color{code-background},
- flexiblecolumns = true,
- escapeinside = {(*}{*)},
- alsoletter = {_,:},
- % numbers = left,
- % firstnumber = last,
- numberstyle = \scriptsize\ttfamily,
- stepnumber = 1,
- numbersep = 5pt,
-}
-\newcommand{\meta}[1]{$\langle${\normalfont\itshape#1}$\rangle$}
-\lstset{% LaTeX2 commands
- classoffset = 0,
- texcsstyle =* \color{code-main},
- moretexcs =
- {
- linenumbers,nolinenumbers,
- part,parttext,chapter,section,subsection,subsubsection,
- frontmatter,mainmatter,backmatter,
- tableofcontents,
- href,
- color,
- NameTheorem,CreateTheorem,
- cref,
- ProjLib,
- DNF,
- UseLanguage,UseOtherLanguage,AddLanguageSetting,
- maketitle,address,curraddr,email,keywords,subjclass,thanks,dedicatory,TheDate,
- qedhere,
- }
-}
-\lstset{% LaTeX3 commands
- classoffset = 1,
- texcsstyle =* \color{code-expl3},
- moretexcs =
- {
- }
-}
-\lstnewenvironment{code}{\setstretch{1.05}}{\vspace{-.3\baselineskip}\vspace{-.5\parskip}}
-\lstnewenvironment{code*}{\setstretch{1.05}\lstset{numbers=left}}{\vspace{-.3\baselineskip}\vspace{-.5\parskip}}
-
-\newcommand{\classoption}[1]{\texttt{\textcolor{code-option}{#1}}}
-\newcommand{\packageoption}[1]{\texttt{\textcolor{code-option}{#1}}}
-\newcommand{\commandoption}[1]{\texttt{\textcolor{code-keys}{#1}}}
-
-%%================================
-%% tip
-%%================================
-\usepackage[many]{tcolorbox}
-\newenvironment{tip}[1][提示]{%
- \begin{tcolorbox}[breakable,
- enhanced,
- width = \textwidth,
- colback = paper, colbacktitle = paper,
- colframe = gray!50, boxrule=0.2mm,
- coltitle = black,
- fonttitle = \sffamily,
- attach boxed title to top left = {yshift=-\tcboxedtitleheight/2, xshift=.5cm},
- boxed title style = {boxrule=0pt, colframe=paper},
- before skip = 0.3cm,
- after skip = 0.3cm,
- top = 3mm,
- bottom = 3mm,
- title={\scshape\sffamily #1}]%
-}{\end{tcolorbox}}
-
-%%================================
-%% Names
-%%================================
-\providecommand{\colorist}{\textsf{colorist}}
-\providecommand{\colorart}{\textsf{colorart}}
-\providecommand{\colorbook}{\textsf{colorbook}}
-\providecommand{\lebhart}{\textsf{lebhart}}
-\providecommand{\beaulivre}{\textsf{beaulivre}}
-
-%%================================
-%% Titles
-%%================================
-\let\LevelOneTitle\chapter
-\let\LevelTwoTitle\section
-\let\LevelThreeTitle\subsection
-
-%%================================
-%% Main text
-%%================================
-\begin{document}
-
-\def\PackageVersion{2022/09/03}
-
-\frontmatter
-
-\TitlePage [ color = { main = forestgreen!75!black, back = forestgreen!10!yellow!30 } ]
- {
- , title = \beaulivre{}
- , subtitle = {
- \textsc{以多彩的方式排版你的图书}\\[20pt]
- \smaller[3] 对应版本. \texttt{\beaulivre{} \PackageVersion}
- }
- , author = 许锦文
- , date = {\TheDate{\PackageVersion}[only-year-month],巴黎}
- }
-
-
-\chapter{前言}
-
-\beaulivre{} 是 \colorist{} 文档类系列的成员之一,其名称取自于法文的beau (美丽),以及livre (书),由二者组合而成。整个 \colorist{} 系列包含用于排版文章的 \colorart{}、\lebhart{} 以及用于排版书的 \colorbook{}、\beaulivre{}。我设计这一系列的初衷是为了撰写草稿与笔记,使之多彩而不缭乱。
-
-\beaulivre{} 支持英语、法语、德语、意大利语、葡萄牙语、巴西葡萄牙语、西班牙语、简体中文、繁体中文、日文、俄文,并且同一篇文档中这些语言可以很好地协调。由于采用了自定义字体,需要用 \hologo{XeLaTeX} 或 \hologo{LuaLaTeX} 引擎进行编译。
-
-这篇说明文档即是用 \beaulivre{} 排版的 (使用了参数 \classoption{use boldface}),你可以把它看作一份简短的说明与演示。
-
-\bigskip
-\begin{tip}
- 多语言支持、定理类环境、未完成标记等功能是由 \ProjLib{} 工具箱提供的,这里只给出了将其与本文档类搭配使用的要点。如需获取更详细的信息,可以参阅 \ProjLib{} 的说明文档。
-\end{tip}
-
-\begin{tip}
- This documentation has not been fully up-to-date with the new \texttt{expl3} version of this class series. Some options or commands introduced here might be obsolete.
-\end{tip}
-
-\tableofcontents
-
-\mainmatter
-
-\part{说明}
-\parttext{可以通过 \lstinline|\\parttext|\meta{text} 在这里添加一些说明}
-
-\medskip
-\LevelOneTitle*{开始之前}
-为了使用这篇文档中提到的文档类,你需要:
-\begin{itemize}
- \item 安装一个尽可能新版本的 TeX Live 或 MikTeX 套装,并确保 \texttt{colorist} 和 \texttt{projlib} 被正确安装在你的 \TeX 封装中。
- \item 下载并安装所需的字体,参考“关于默认字体”这一节。
- \item 熟悉 \LaTeX{} 的基本使用方式,并且知道如何用 \hologo{pdfLaTeX}、\hologo{XeLaTeX} 或 \hologo{LuaLaTeX} 编译你的文档。
-\end{itemize}
-
-
-\LevelOneTitle{使用示例}
-
-\LevelTwoTitle{如何加载}
-
-只需要在第一行写:
-
-\begin{code}
-\documentclass{beaulivre}
-\end{code}
-
-即可使用 \beaulivre{} 文档类。
-
-\begin{tip}[请注意]
- 要使用 \hologo{XeLaTeX} 或 \hologo{LuaLaTeX} 引擎才能编译。
-\end{tip}
-
-\LevelTwoTitle{一篇完整的文档示例}
-
-首先来看一段完整的示例。
-
-
-\begin{code*}
-\documentclass{beaulivre}
-\usepackage{ProjLib}
-
-\UseLanguage{French}
-
-\begin{document}
-
-\frontmatter
-
-\begin{titlepage}
- (*\meta{code for titlepage}*)
-\end{titlepage}
-
-\tableofcontents
-
-\mainmatter
-
-\part{(*\meta{part title}*)}
-\parttext{(*\meta{text after part title}*)}
-
-\chapter{(*\meta{chapter title}*)}
-
-\section{(*\meta{section title}*)}
-
-\DNF<(*\meta{some hint}*)>
-
-\begin{theorem}\label{thm:abc}
- Ceci est un théorème.
-\end{theorem}
-Référence du théorème: \cref{thm:abc}
-
-\backmatter
-
-...
-
-\end{document}
-\end{code*}
-
-如果你觉得这个例子有些复杂,不要担心。现在我们来一点点地观察这个例子。
-
-\LevelThreeTitle{初始化部分}
-
-\begin{code}
-\documentclass{beaulivre}
-\usepackage{ProjLib}
-\end{code}
-
-初始化部分很简单:第一行加载文档类 \beaulivre{},第二行加载 \ProjLib{} 工具箱,以便使用一些附加功能。
-
-\LevelThreeTitle{设定语言}
-
-\begin{code}
-\UseLanguage{French}
-\end{code}
-
-这一行表明文档中将使用法语(如果你的文章中只出现英语,那么可以不需要设定语言)。你也可以在文章中间用同样的方式再次切换语言。支持的语言包括简体中文、繁体中文、日文、英语、法语、德语、西班牙语、葡萄牙语、巴西葡萄牙语、俄语。
-
-对于这一命令的详细说明以及更多相关命令,可以参考后面关于多语言支持的小节。
-
-
-\LevelThreeTitle{未完成标记}
-
-\begin{code}
-\DNF<(*\meta{some hint}*)>
-\end{code}
-当你有一些地方尚未完成的时候,可以用这条指令标记出来,它在草稿阶段格外有用。
-
-\LevelThreeTitle{定理类环境}
-
-\begin{code}
-\begin{theorem}\label{thm:abc}
- Ceci est un théorème.
-\end{theorem}
-Référence du théorème: \cref{thm:abc}
-\end{code}
-
-常见的定理类环境可以直接使用。在引用的时候,建议采用智能引用 \lstinline|\cref{|\meta{label}\lstinline|}|——这样就不必每次都写上相应环境的名称了。
-
-
-
-
-\LevelOneTitle{关于默认字体}
-本文档类中默认使用 Palatino Linotype 作为英文主字体,思源宋体、思源黑体、思源等宽作为中文主字体、无衬线字体以及等宽字体,并部分使用了 Neo Euler 作为数学字体。这些字体需要用户自行下载安装。其中,思源字体系列可在 \url{https://github.com/adobe-fonts} 下载 (推荐下载 Super-OTC 版本,这样下载的体积较小)。Neo Euler可以在 \url{https://github.com/khaledhosny/euler-otf} 下载。在没有安装相应的字体时,将采用TeX Live中自带的字体来代替,效果可能会有所折扣。
-
-另外,还使用了 Source Code Pro 作为英文无衬线字体、New Computer Modern Mono 作为英文等宽字体,以及 Asana Math、Tex Gyre Pagella Math、Latin Modern Math 数学字体中的部分符号。这些字体在 TeX Live 或 MikTeX 中已经提供,无需自行下载安装。
-
-\begin{itemize}
- \item English main font. \textsf{English sans serif font}. \texttt{English typewriter font}.
- \item 简体中文主要字体,\textsf{简体中文无衬线字体},\texttt{简体中文等宽字体}
- \item \UseOtherLanguage{TC}{繁體中文主要字體,\textsf{繁體中文無襯線字體},\texttt{繁體中文等寬字體}}
- \item \UseOtherLanguage{JP}{日本語のメインフォント、\textsf{日本語のサンセリフフォント}、\texttt{日本語の等幅フォント}}
- \item 数学示例: \( \alpha, \beta, \gamma, \delta, 1,2,3,4, a,b,c,d \), \[\mathrm{li}(x)\coloneqq \int_2^{\infty} \frac{1}{\log t}\,\mathrm{d}t \]
-\end{itemize}
-
-
-\LevelOneTitle{选项}
-
-\beaulivre{} 文档类有下面几个选项:
-
-\begin{itemize}[label=,leftmargin=1.25em,itemindent=-1.25em]
- \item 语言选项 \classoption{EN} / \classoption{english} / \classoption{English}、\classoption{FR} / \classoption{french} / \classoption{French},等等
- \begin{itemize}
- \item 具体选项名称可参见下一节的 \meta{language name}。第一个指定的语言将作为默认语言。
- \item 语言选项不是必需的,其主要用途是提高编译速度。不添加语言选项时效果是一样的,只是会更慢一些。
- \end{itemize}
- \item \classoption{draft} 或 \classoption{fast}
- \begin{itemize}
- \item 你可以使用选项 \verb|fast| 来启用快速但略微粗糙的样式,主要区别是:
- \begin{itemize}
- \item 使用较为简单的数学字体设置;
- \item 不启用超链接;
- \item 启用 \ProjLib{} 工具箱的快速模式。
- \end{itemize}
- \end{itemize}
- \begin{tip}
- 在文章的撰写阶段,建议使用 \verb|fast| 选项以加快编译速度,改善写作时的流畅度。使用 \verb|fast| 模式时会有“DRAFT”字样的水印,以提示目前处于草稿阶段。
- \end{tip}
- \item \classoption{a4paper} 或 \classoption{b5paper}
- \begin{itemize}
- \item 可选的纸张大小。默认的纸张大小为 8.5in $\times$ 11in。
- \end{itemize}
- \item \classoption{palatino}、\classoption{times}、\classoption{garamond}、\classoption{noto}、\classoption{biolinum} ~$|$~ \classoption{useosf}
- \begin{itemize}
- \item 字体选项。顾名思义,会加载相应名称的字体。
- \item \classoption{useosf} 选项用来启用“旧式”数字。
- \end{itemize}
- \item \classoption{use boldface}
- \begin{itemize}
- \item 允许加粗。启用这一选项时,题目、各级标题、定理类环境名称会被加粗。
- \end{itemize}
- \item \classoption{runin}
- \begin{itemize}
- \item \lstinline|\subsubsection| 采用 ``runin'' 风格。
- \end{itemize}
- \item \classoption{nothms}
- \begin{itemize}
- \item 纯文本模式,不加载定理类环境。
- \end{itemize}
-% \clearpage
- \item \classoption{nothmnum}、\classoption{thmnum} 或 \classoption{thmnum=}\meta{counter}
- \begin{itemize}
- \item 定理类环境均不编号 / 按照 1、2、3 顺序编号 / 在 \meta{counter} 内编号。在没有使用任何选项的情况下将按照 \texttt{chapter} (书) 或 \texttt{section} (文章) 编号。
- \end{itemize}
- \item \classoption{regionalref}、\classoption{originalref}
- \begin{itemize}
- \item 在智能引用时,定理类环境的名称是否随当前语言而变化。默认为 \classoption{regionalref},即引用时采用当前语言对应的名称;例如,在中文语境中引用定理类环境时,无论原环境处在什么语境中,都将使用名称“定理、定义……”。若启用 \classoption{originalref},则引用时会始终采用定理类环境所处语境下的名称;例如,在英文语境中书写的定理,即使稍后在中文语境下引用时,仍将显示为 Theorem。
- \item 在 \classoption{fast} 模式下,\classoption{originalref} 将不起作用。
- \end{itemize}
-\end{itemize}
-\bigskip
-另外,排版图书时常用的 \classoption{oneside}、\classoption{twoside} 选项也是可以使用的。默认采用双页排版。
-
-\LevelOneTitle{具体说明}
-
-\LevelTwoTitle{语言设置}
-
-\beaulivre{} 提供了多语言支持,包括英语、法语、德语、意大利语、葡萄牙语、巴西葡萄牙语、西班牙语、简体中文、繁体中文、日文、俄文。可以通过下列命令来选定语言:
-\begin{itemize}
- \item \lstinline|\UseLanguage{|\meta{language name}\lstinline|}|,用于指定语言,在其后将使用对应的语言设定。
- \begin{itemize}
- \item 既可以用于导言部分,也可以用于正文部分。在不指定语言时,默认选定 “English”。
- \end{itemize}
- \item \lstinline|\UseOtherLanguage{|\meta{language name}\lstinline|}{|\meta{content}\lstinline|}|,用指定的语言的设定排版 \meta{content}。
- \begin{itemize}
- \item 相比 \lstinline|\UseLanguage|,它不会对行距进行修改,因此中西文字混排时能保持行距稳定。
- \end{itemize}
-\end{itemize}
-
-\meta{language name} 有下列选择 (不区分大小写,如 \texttt{French} 或 \texttt{french} 均可):
-\begin{itemize}
- \item 简体中文:\texttt{CN}、\texttt{Chinese}、\texttt{SChinese} 或 \texttt{SimplifiedChinese}
- \item 繁体中文:\texttt{TC}、\texttt{TChinese} 或 \texttt{TraditionalChinese}
- \item 英文:\texttt{EN} 或 \texttt{English}
- \item 法文:\texttt{FR} 或 \texttt{French}
- \item 德文:\texttt{DE}、\texttt{German} 或 \texttt{ngerman}
- \item 意大利语:\texttt{IT} 或 \texttt{Italian}
- \item 葡萄牙语:\texttt{PT} 或 \texttt{Portuguese}
- \item 巴西葡萄牙语:\texttt{BR} 或 \texttt{Brazilian}
- \item 西班牙语:\texttt{ES} 或 \texttt{Spanish}
- \item 日文:\texttt{JP} 或 \texttt{Japanese}
- \item 俄文:\texttt{RU} 或 \texttt{Russian}
-\end{itemize}
-
-另外,还可以通过下面的方式来填加相应语言的设置:
-\begin{itemize}
- \item \lstinline|\AddLanguageSetting{|\meta{settings}\lstinline|}|
- \begin{itemize}
- \item 向所有支持的语言增加设置 \meta{settings}。
- \end{itemize}
- \item \lstinline|\AddLanguageSetting(|\meta{language name}\lstinline|){|\meta{settings}\lstinline|}|
- \begin{itemize}
- \item 向指定的语言 \meta{language name} 增加设置 \meta{settings}。
- \end{itemize}
-\end{itemize}
-例如,\lstinline|\AddLanguageSetting(German){\color{orange}}| 可以让所有德语以橙色显示(当然,还需要再加上 \lstinline|\AddLanguageSetting{\color{black}}| 来修正其他语言的颜色)。
-
-\LevelTwoTitle{定理类环境及其引用}
-
-定义、定理等环境已经被预定义,可以直接使用。
-
-具体来说,预设的定理类环境包括:
-\texttt{assumption}、\texttt{axiom}、\texttt{conjecture}、\texttt{convention}、\texttt{corollary}、\texttt{definition}、\texttt{definition-proposition}、\texttt{definition-theorem}、\texttt{example}、\texttt{exercise}、\texttt{fact}、\texttt{hypothesis}、\texttt{lemma}、\texttt{notation}、\texttt{observation}、\texttt{problem}、\texttt{property}、\texttt{proposition}、\texttt{question}、\texttt{remark}、\texttt{theorem},以及相应的带有星号 \lstinline|*| 的无编号版本。
-
-在引用定理类环境时,建议使用智能引用 \lstinline|\cref{|\meta{label}\lstinline|}|。这样就不必每次都写上相应环境的名称了。
-
-\medskip
-\begin{tip}[例子]
-\begin{code}
-\begin{definition}[奇异物品] \label{def: strange} ...
-\end{code}
-将会生成
-\begin{definition}[奇异物品]\label{def: strange}
- 这是奇异物品的定义。定理类环境的前后有一行左右的间距。在定义结束的时候会有一个符号来标记。
-\end{definition}
-
-\lstinline|\cref{def: strange}| 会显示为:\cref{def: strange}。
-
-\medskip
-使用 \lstinline|\UseLanguage{English}| 后,定理会显示为:
-
-\UseLanguage{English}
-\begin{theorem}[Useless]\label{thm}
- A theorem in English.
-\end{theorem}
-
-默认情况下,引用时,定理类环境的名称总是与当前语言相匹配,例如,上面的定义在现在的英文模式下将显示为英文:\cref{def: strange,thm}。如果在引用时想让定理的名称总是与原定理所在区域的语言匹配,即总是显示原始名称,可以在全局选项中加入 \texttt{originalref}。
-\end{tip}
-
-\UseLanguage{Chinese}
-
-\bigskip
-下面是定理类环境的几种主要样式:
-\begin{theorem}
- Theorem style: theorem, proposition, lemma, corollary, ...
-\end{theorem}
-
-\begin{proof}
- Proof style
-\end{proof}
-
-\begin{remark}
- Remark style
-\end{remark}
-
-\begin{conjecture}
- Conjecture style
-\end{conjecture}
-
-\begin{example*}
- Example style: example, fact, ...
-\end{example*}
-
-\begin{problem}
- Problem style: problem, question, ...
-\end{problem}
-
-\medskip
-% \clearpage
-为了美观,相邻的定义环境会自动连在一起:
-\begin{definition}
- First definition.
-\end{definition}
-
-\begin{definition}
- Second definition.
-\end{definition}
-
-\begin{tip}
- 请参阅 \textsf{create-theorem} 的说明文档以获知如何定义新的定理类环境。
-\end{tip}
-
-\LevelTwoTitle{未完成标记}
-
-你可以通过 \lstinline|\DNF| 来标记尚未完成的部分。例如:
-\begin{itemize}
- \item \lstinline|\DNF| 或 \lstinline|\DNF<...>|。效果为:\DNF~或 \DNF<...>。\\其提示文字与当前语言相对应,例如,在法语模式下将会显示为 \UseOtherLanguage{French}{\DNF}。
-\end{itemize}
-
-
-\bigskip
-\LevelOneTitle{目前存在的问题}
-\begin{itemize}
- \item 对于字体的设置仍然不够完善。
- \item 目录的设计还不够美观。
- \item 由于很多核心功能建立在 \ProjLib{} 工具箱的基础上,因此 \colorist{} (进而 \colorart{}、\lebhart{} 与 \colorbook{}、\beaulivre{}) 自然继承了其所有问题。详情可以参阅 \ProjLib{} 用户文档的“目前存在的问题”这一小节。
- \item 错误处理功能不完善,在出现一些问题时没有相应的错误提示。
- \item 代码中仍有许多可优化之处。
-\end{itemize}
-
-\part{演示}
-\blinddocument
-
-\end{document}
-\endinput
-%%
-%% End of file `beaulivre/beaulivre-doc-cn.tex'.
Deleted: trunk/Master/texmf-dist/doc/latex/beaulivre/beaulivre-doc-en.pdf
===================================================================
(Binary files differ)
Deleted: trunk/Master/texmf-dist/doc/latex/beaulivre/beaulivre-doc-en.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beaulivre/beaulivre-doc-en.tex 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/doc/latex/beaulivre/beaulivre-doc-en.tex 2023-01-02 21:23:26 UTC (rev 65436)
@@ -1,486 +0,0 @@
-\documentclass[title in boldface, title in scshape, simple name]{beaulivre}
-
-%%================================
-%% Import toolkit
-%%================================
-\usepackage{ProjLib}
-\usepackage{longtable} % breakable tables
-\usepackage{hologo} % more TeX logo
-\usetikzlibrary{calc}
-
-\usepackage{blindtext}
-
-\UseLanguage{English}
-
-%%================================
-%% For typesetting code
-%%================================
-\usepackage{listings}
-\usepackage{xcolor}
-\usepackage{setspace}
-\definecolor{code-main}{RGB}{70,130,180}
-\definecolor{code-expl3}{RGB}{240,50,60}
-\definecolor{code-option}{RGB}{40,110,20}
-\definecolor{code-keys}{RGB}{100,130,150}
-\definecolor{code-comment}{RGB}{20,120,80}
-\definecolor{code-background}{gray}{0.99}
-\lstset{
- language = [LaTeX]TeX,
- basicstyle = \ttfamily,
- keywordstyle = \color{code-main},
- commentstyle = \color{code-comment},
- showstringspaces = false,
- breaklines = true,
- frame = lines,
- backgroundcolor = \color{code-background},
- flexiblecolumns = true,
- escapeinside = {(*}{*)},
- alsoletter = {_,:},
- % numbers = left,
- % firstnumber = last,
- numberstyle = \scriptsize\ttfamily,
- stepnumber = 1,
- numbersep = 5pt,
-}
-\newcommand{\meta}[1]{$\langle${\normalfont\itshape#1}$\rangle$}
-\lstset{% LaTeX2 commands
- classoffset = 0,
- texcsstyle =* \color{code-main},
- moretexcs =
- {
- linenumbers,nolinenumbers,
- part,parttext,chapter,section,subsection,subsubsection,
- frontmatter,mainmatter,backmatter,
- tableofcontents,
- href,
- color,
- NameTheorem,CreateTheorem,
- cref,
- ProjLib,
- DNF,
- UseLanguage,UseOtherLanguage,AddLanguageSetting,
- maketitle,address,curraddr,email,keywords,subjclass,thanks,dedicatory,TheDate,
- qedhere,
- }
-}
-\lstset{% LaTeX3 commands
- classoffset = 1,
- texcsstyle =* \color{code-expl3},
- moretexcs =
- {
- }
-}
-\lstnewenvironment{code}{\setstretch{1.05}}{\vspace{-.3\baselineskip}\vspace{-.5\parskip}}
-\lstnewenvironment{code*}{\setstretch{1.05}\lstset{numbers=left}}{\vspace{-.3\baselineskip}\vspace{-.5\parskip}}
-
-\newcommand{\classoption}[1]{\texttt{\textcolor{code-option}{#1}}}
-\newcommand{\packageoption}[1]{\texttt{\textcolor{code-option}{#1}}}
-\newcommand{\commandoption}[1]{\texttt{\textcolor{code-keys}{#1}}}
-
-%%================================
-%% tip
-%%================================
-\usepackage[many]{tcolorbox}
-\newenvironment{tip}[1][Tip]{%
- \begin{tcolorbox}[breakable,
- enhanced,
- width = \textwidth,
- colback = paper, colbacktitle = paper,
- colframe = gray!50, boxrule=0.2mm,
- coltitle = black,
- fonttitle = \sffamily,
- attach boxed title to top left = {yshift=-\tcboxedtitleheight/2, xshift=.5cm},
- boxed title style = {boxrule=0pt, colframe=paper},
- before skip = 0.3cm,
- after skip = 0.3cm,
- top = 3mm,
- bottom = 3mm,
- title={\scshape\sffamily #1}]%
-}{\end{tcolorbox}}
-
-%%================================
-%% Names
-%%================================
-\providecommand{\colorist}{\textsf{colorist}}
-\providecommand{\colorart}{\textsf{colorart}}
-\providecommand{\colorbook}{\textsf{colorbook}}
-\providecommand{\lebhart}{\textsf{lebhart}}
-\providecommand{\beaulivre}{\textsf{beaulivre}}
-
-%%================================
-%% Titles
-%%================================
-\let\LevelOneTitle\chapter
-\let\LevelTwoTitle\section
-\let\LevelThreeTitle\subsection
-
-%%================================
-%% Main text
-%%================================
-\begin{document}
-
-\def\PackageVersion{2022/09/03}
-
-\frontmatter
-
-\TitlePage [ color = { main = forestgreen!75!black, back = forestgreen!10!yellow!30 } ]
- {
- , title = \beaulivre{}
- , subtitle = {
- \textsc{Write your books in \\a colorful way}\\[20pt]
- \smaller[3] Corresponding to: \texttt{\beaulivre{} \PackageVersion}
- }
- , author = Jinwen XU
- , date = {\TheDate{\PackageVersion}[only-year-month], in Paris}
- }
-
-
-\chapter{Preface}
-
-\beaulivre{} is a member of the \colorist{} class series. Its name is taken from French words ``beau'' (for ``beautiful'') and ``livre'' (for ``book''). The entire collection includes \colorart{} and \lebhart{} for typesetting articles and \colorbook{} and \beaulivre{} for typesetting books. My original intention in designing this series was to write drafts and notes that look colorful yet not dazzling.
-
-\beaulivre{} has multi-language support, including Chinese (simplified and traditional), English, French, German, Italian, Japanese, Portuguese (European and Brazilian), Russian and Spanish. These languages can be switched seamlessly in a single document. Due to the usage of custom fonts, \lebhart{} requires \hologo{XeLaTeX} or \hologo{LuaLaTeX} to compile.
-
-This documentation is typeset using \beaulivre{} (with the option \classoption{use boldface}). You can think of it as a short introduction and demonstration.
-
-\bigskip
-\begin{tip}
- Multi-language support, theorem-like environments, draft marks and some other features are provided by the \ProjLib{} toolkit. Here we only briefly discuss how to use it with this document class. For more detailed information, you can refer to the documentation of \ProjLib{}.
-\end{tip}
-
-\begin{tip}
- This documentation has not been fully up-to-date with the new \texttt{expl3} version of this class series. Some options or commands introduced here might be obsolete.
-\end{tip}
-
-\tableofcontents
-
-\mainmatter
-
-\part{Instruction}
-\parttext{You can add some introductory text here via \lstinline|\\parttext|\meta{text}.}
-
-\medskip
-\LevelOneTitle*{Before you start}
-\addcontentsline{toc}{chapter}{Before you start}
-In order to use the package or classes described here, you need to:
-\begin{itemize}
- \item install TeX Live or MikTeX of the latest possible version, and make sure that \texttt{colorist} and \texttt{projlib} are correctly installed in your \TeX{} system.
- \item download and install the required fonts, see the section "On the default fonts".
- \item be familiar with the basic usage of \LaTeX{}, and know how to compile your document with \hologo{pdfLaTeX}, \hologo{XeLaTeX} or \hologo{LuaLaTeX}.
-\end{itemize}
-
-
-\LevelOneTitle{Usage and examples}
-
-\LevelTwoTitle{How to load it}
-
-One only needs to put
-
-\begin{code}
-\documentclass{beaulivre}
-\end{code}
-as the first line to use the \beaulivre{} class.
-
-\begin{tip}[Attention]
- You need to use either \hologo{XeLaTeX} or \hologo{LuaLaTeX} engine to compile.
-\end{tip}
-
-\LevelTwoTitle{Example - A complete document}
-
-Let's first look at a complete document.
-
-
-\begin{code*}
-\documentclass{beaulivre}
-\usepackage{ProjLib}
-
-\UseLanguage{French}
-
-\begin{document}
-
-\frontmatter
-
-\begin{titlepage}
- (*\meta{code for titlepage}*)
-\end{titlepage}
-
-\tableofcontents
-
-\mainmatter
-
-\part{(*\meta{part title}*)}
-\parttext{(*\meta{text after part title}*)}
-
-\chapter{(*\meta{chapter title}*)}
-
-\section{(*\meta{section title}*)}
-
-\DNF<(*\meta{some hint}*)>
-
-\begin{theorem}\label{thm:abc}
- Ceci est un théorème.
-\end{theorem}
-Référence du théorème: \cref{thm:abc}
-
-\backmatter
-
-...
-
-\end{document}
-\end{code*}
-
-If you find this example a little complicated, don't worry. Let's now look at this example piece by piece.
-
-\LevelThreeTitle{Initialization}
-
-\begin{code}
-\documentclass{beaulivre}
-\usepackage{ProjLib}
-\end{code}
-
-Initialization is straightforward. The first line loads the document class \beaulivre{}, and the second line loads the \ProjLib{} toolkit to obtain some additional functionalities.
-
-\LevelThreeTitle{Set the language}
-
-\begin{code}
-\UseLanguage{French}
-\end{code}
-
-This line indicates that French will be used in the document (by the way, if only English appears in your article, then there is no need to set the language). You can also switch the language in the same way later in the middle of the text. Supported languages include Simplified Chinese, Traditional Chinese, Japanese, English, French, German, Spanish, Portuguese, Brazilian Portuguese and Russian%
-.%
-
-For detailed description of this command and more related commands, please refer to the section on the multi-language support.
-
-
-\LevelThreeTitle{Draft marks}
-
-\begin{code}
-\DNF<(*\meta{some hint}*)>
-\end{code}
-
-When you have some places that have not yet been finished yet, you can mark them with this command, which is especially useful during the draft stage.
-
-\LevelThreeTitle{Theorem-like environments}
-
-\begin{code}
-\begin{theorem}\label{thm:abc}
- Ceci est un théorème.
-\end{theorem}
-Référence du théorème: \cref{thm:abc}
-\end{code}
-
-Commonly used theorem-like environments have been pre-defined. Also, when referencing a theorem-like environment, it is recommended to use \lstinline|\cref{|\meta{label}\texttt{\}} --- in this way, there is no need to explicitly write down the name of the corresponding environment every time.
-
-
-
-
-\LevelOneTitle{On the default fonts}
-By default, this document class uses Palatino Linotype as the English main font; Source Han Serif, Source Han Sans and Source Han Mono as the Chinese main font, sans serif font and typewriter font; and partially uses Neo Euler as the math font. You need to download and install these fonts by yourself. The Source Han font series can be downloaded at \url{https://github.com/adobe-fonts} (It is recommended to download the Super-OTC version, so that the download size is smaller). Neo Euler can be downloaded at \url{https://github.com/khaledhosny/euler-otf}. When the corresponding font is not installed, the font that comes with TeX Live will be used instead, and the effect may be discounted.
-
-In addition, Source Code Pro is used as the English sans serif font, New Computer Modern Mono as the English monospace font, as well as some symbols in the mathematical fonts of Asana Math, Tex Gyre Pagella Math, and Latin Modern Math. These fonts are already available in TeX Live or MikTeX, which means you don't need to install them yourself.
-
-\begin{itemize}
- \item English main font. \textsf{English sans serif font}. \texttt{English typewriter font}.
- \item 简体中文主要字体,\textsf{简体中文无衬线字体},\texttt{简体中文等宽字体}
- \item \UseOtherLanguage{TC}{繁體中文主要字體,\textsf{繁體中文無襯線字體},\texttt{繁體中文等寬字體}}
- \item \UseOtherLanguage{JP}{日本語のメインフォント、\textsf{日本語のサンセリフフォント}、\texttt{日本語の等幅フォント}}
- \item Math demonstration: \( \alpha, \beta, \gamma, \delta, 1,2,3,4, a,b,c,d \), \[\mathrm{li}(x)\coloneqq \int_2^{\infty} \frac{1}{\log t}\,\mathrm{d}t \]
-\end{itemize}
-
-\LevelOneTitle{The options}
-
-\beaulivre{} offers the following options:
-
-\begin{itemize}[label=,leftmargin=1.25em,itemindent=-1.25em]
- \item The language options \classoption{EN} / \classoption{english} / \classoption{English}, \classoption{FR} / \classoption{french} / \classoption{French}, etc.
- \begin{itemize}
- \item For the option names of a specific language, please refer to \meta{language name} in the next section. The first specified language will be used as the default language.
- \item The language options are optional, mainly for increasing the compilation speed. Without them the result would be the same, only slower.
- \end{itemize}
- \item \classoption{draft} or \classoption{fast}
- \begin{itemize}
- \item The option \verb|fast| enables a faster but slightly rougher style, main differences are:
- \begin{itemize}
- \item Use simpler math font configuration;
- \item Do not use \textsf{hyperref};
- \item Enable the fast mode of \ProjLib{} toolkit.
- \end{itemize}
- \end{itemize}
- \begin{tip}
- During the draft stage, it is recommended to use the \verb|fast| option to speed up compilation. When in \verb|fast| mode, there will be a watermark ``DRAFT'' to indicate that you are currently in the draft mode.
- \end{tip}
- \item \classoption{a4paper} or \classoption{b5paper}
- \begin{itemize}
- \item Paper size options. The default paper size is 8.5in $\times$ 11in.
- \end{itemize}
- \item \classoption{palatino}, \classoption{times}, \classoption{garamond}, \classoption{noto}, \classoption{biolinum} ~$|$~ \classoption{useosf}
- \begin{itemize}
- \item Font options. As the name suggest, font with corresponding name will be loaded.
- \item The \classoption{useosf} option is used to enable the old-style figures.
- \end{itemize}
- \item \classoption{use boldface}
- \begin{itemize}
- \item Allow boldface. When this option is enabled, the main title, the titles of all levels and the names of theorem-like environments will be bolded.
- \end{itemize}
- \item \classoption{runin}
- \begin{itemize}
- \item Use the ``runin'' style for \lstinline|\subsubsection|
- \end{itemize}
- \item \classoption{nothms}
- \begin{itemize}
- \item Pure text mode. Do not load theorem-like environments.
- \end{itemize}
- \item \classoption{nothmnum}, \classoption{thmnum} or \classoption{thmnum=}\meta{counter}
- \begin{itemize}
- \item Theorem-like environments will not be numbered / numbered in order 1, 2, 3... / numbered within \meta{counter}. If no option is used, they will be numbered within \texttt{chapter} (book) or \texttt{section} (article).
- \end{itemize}
- \item \classoption{regionalref}, \classoption{originalref}
- \begin{itemize}
- \item When referencing, whether the name of the theorem-like environment changes with the current language. The default is \classoption{regionalref}, \emph{i.e.}, the name corresponding to the current language is used; for example, when referencing a theorem-like environment in English context, the names "Theorem, Definition..." will be used no matter which language context the original environment is in. If \classoption{originalref} is enabled, then the name will always remain the same as the original place; for example, when referencing a theorem written in the French context, even if one is currently in the English context, it will still be displayed as ``Théorème''.
- \item In \classoption{fast} mode, the option \classoption{originalref} will have no effect.
- \end{itemize}
-\end{itemize}
-
-\bigskip
-In addition, the commonly used \classoption{oneside} and \classoption{twoside} options are also available. Two-page layout is used by default.
-
-\LevelOneTitle{Instructions by topic}
-
-\LevelTwoTitle{Language configuration}
-
-\beaulivre{} has multi-language support, including Chinese (simplified and traditional), English, French, German, Italian, Japanese, Portuguese (European and Brazilian), Russian and Spanish. The language can be selected by the following macros:
-
-\begin{itemize}
- \item \lstinline|\UseLanguage{|\meta{language name}\lstinline|}| is used to specify the language. The corresponding setting of the language will be applied after it. It can be used either in the preamble or in the main body. When no language is specified, ``English'' is selected by default.
- \item \lstinline|\UseOtherLanguage{|\meta{language name}\lstinline|}{|\meta{content}\lstinline|}|, which uses the specified language settings to typeset \meta{content}. Compared with \lstinline|\UseLanguage|, it will not modify the line spacing, so line spacing would remain stable when CJK and Western texts are mixed.
-\end{itemize}
-
-\meta{language name} can be (it is not case sensitive, for example, \texttt{French} and \texttt{french} have the same effect):
-\begin{itemize}
- \item Simplified Chinese: \texttt{CN}, \texttt{Chinese}, \texttt{SChinese} or \texttt{SimplifiedChinese}
- \item Traditional Chinese: \texttt{TC}, \texttt{TChinese} or \texttt{TraditionalChinese}
- \item English: \texttt{EN} or \texttt{English}
- \item French: \texttt{FR} or \texttt{French}
- \item German: \texttt{DE}, \texttt{German} or \texttt{ngerman}
- \item Italian: \texttt{IT} or \texttt{Italian}
- \item Portuguese: \texttt{PT} or \texttt{Portuguese}
- \item Portuguese (Brazilian): \texttt{BR} or \texttt{Brazilian}
- \item Spanish: \texttt{ES} or \texttt{Spanish}
- \item Japanese: \texttt{JP} or \texttt{Japanese}
- \item Russian: \texttt{RU} or \texttt{Russian}
-\end{itemize}
-
-\medskip
-In addition, you can also add new settings to selected language:
-\begin{itemize}
- \item \lstinline|\AddLanguageSetting{|\meta{settings}\lstinline|}|
- \begin{itemize}
- \item Add \meta{settings} to all supported languages.
- \end{itemize}
- \item \lstinline|\AddLanguageSetting(|\meta{language name}\lstinline|){|\meta{settings}\lstinline|}|
- \begin{itemize}
- \item Add \meta{settings} to the selected language \meta{language name}.
- \end{itemize}
-\end{itemize}
-For example, \lstinline|\AddLanguageSetting(German){\color{orange}}| can make all German text displayed in orange (of course, one then need to add \lstinline|\AddLanguageSetting{\color{black}}| in order to correct the color of the text in other languages).
-
-\LevelTwoTitle{Theorems and how to reference them}
-
-Environments such as \texttt{definition} and \texttt{theorem} have been preset and can be used directly.
-
-More specifically, preset environments include:
-\texttt{assumption}, \texttt{axiom}, \texttt{conjecture}, \texttt{convention}, \texttt{corollary}, \texttt{definition}, \texttt{definition-proposition}, \texttt{definition-theorem}, \texttt{example}, \texttt{exercise}, \texttt{fact}, \texttt{hypothesis}, \texttt{lemma}, \texttt{notation}, \texttt{observation}, \texttt{problem}, \texttt{property}, \texttt{proposition}, \texttt{question}, \texttt{remark}, \texttt{theorem}, and the corresponding unnumbered version with an asterisk \lstinline|*| in the name. The titles will change with the current language. For example, \texttt{theorem} will be displayed as ``Theorem" in English mode and ``Théorème" in French mode.
-
-When referencing a theorem-like environment, it is recommended to use \lstinline|\cref{|\meta{label}\texttt{\}}. In this way, there is no need to explicitly write down the name of the corresponding environment every time.
-
-\begin{tip}[Example]
-\begin{code}
-\begin{definition}[Strange things] \label{def: strange} ...
-\end{code}
-
-will produce
-\begin{definition}[Strange things]\label{def: strange}
- This is the definition of some strange objects. There is approximately a one-line spacing before and after the theorem environment, and there will be a symbol to mark the end of the environment.
-\end{definition}
-
-\lstinline|\cref{def: strange}| will be displayed as: \cref{def: strange}.
-
-After using \lstinline|\UseLanguage{French}|, a theorem will be displayed as:
-
-\UseLanguage{French}
-\begin{theorem}[Inutile]\label{thm}
- Un théorème en français.
-\end{theorem}
-
-By default, when referenced, the name of the theorem matches the current context. For example, the definition above will be displayed in French in the current French context: \cref{def: strange,thm}. If you want the name of the theorem to always match the language of the context in which the theorem is located, you can add \texttt{originalref} to the global options.
-\end{tip}
-
-\UseLanguage{English}
-
-The following are the main styles of theorem-like environments:
-\begin{theorem}
- Theorem style: theorem, proposition, lemma, corollary, ...
-\end{theorem}
-
-\begin{proof}
- Proof style
-\end{proof}
-
-\begin{remark}
- Remark style
-\end{remark}
-
-\begin{conjecture}
- Conjecture style
-\end{conjecture}
-
-\begin{example*}
- Example style: example, fact, ...
-\end{example*}
-
-\begin{problem}
- Problem style: problem, question, ...
-\end{problem}
-
-\medskip
-% \clearpage
-For aesthetics, adjacent definitions will be connected together automatically:
-\begin{definition}
- First definition.
-\end{definition}
-
-\begin{definition}
- Second definition.
-\end{definition}
-
-\begin{tip}
- Please refer to the documentation of the package \textsf{create-theorem} to see how to declare new theorem-like environments.
-\end{tip}
-
-% \clearpage
-\LevelTwoTitle{Draft mark}
-
-You can use \lstinline|\DNF| to mark the unfinished part. For example:
-\begin{itemize}
- \item \lstinline|\DNF| or \lstinline|\DNF<...>|. The effect is: \DNF~ or \DNF<...>. \\The prompt text changes according to the current language. For example, it will be displayed as \UseOtherLanguage{French}{\DNF} in French mode.
-\end{itemize}
-
-
-\bigskip
-\LevelOneTitle{Known issues}
-
-\begin{itemize}
- \item The font settings are still not perfect.
- \item The TOC design does not look very nice.
- \item Since many features are based on the \ProjLib{} toolkit, \colorist{} (and hence \colorart{}, \lebhart{} and \colorbook{}, \beaulivre{}) inherits all its problems. For details, please refer to the ``Known Issues'' section of the \ProjLib{} documentation.
- \item The error handling mechanism is incomplete: there is no corresponding error prompt when some problems occur.
- \item There are still many things that can be optimized in the code.
-\end{itemize}
-
-\part{Demonstration}
-\blinddocument
-
-\end{document}
-\endinput
-%%
-%% End of file `beaulivre/beaulivre-doc-en.tex'.
Deleted: trunk/Master/texmf-dist/doc/latex/beaulivre/beaulivre-doc-fr.pdf
===================================================================
(Binary files differ)
Deleted: trunk/Master/texmf-dist/doc/latex/beaulivre/beaulivre-doc-fr.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beaulivre/beaulivre-doc-fr.tex 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/doc/latex/beaulivre/beaulivre-doc-fr.tex 2023-01-02 21:23:26 UTC (rev 65436)
@@ -1,482 +0,0 @@
-\documentclass[title in boldface, title in scshape, simple name]{beaulivre}
-
-%%================================
-%% Import toolkit
-%%================================
-\usepackage{ProjLib}
-\usepackage{longtable} % breakable tables
-\usepackage{hologo} % more TeX logo
-\usetikzlibrary{calc}
-
-\usepackage{blindtext}
-
-\UseLanguage{French}
-
-%%================================
-%% For typesetting code
-%%================================
-\usepackage{listings}
-\usepackage{xcolor}
-\usepackage{setspace}
-\definecolor{code-main}{RGB}{70,130,180}
-\definecolor{code-expl3}{RGB}{240,50,60}
-\definecolor{code-option}{RGB}{40,110,20}
-\definecolor{code-keys}{RGB}{100,130,150}
-\definecolor{code-comment}{RGB}{20,120,80}
-\definecolor{code-background}{gray}{0.99}
-\lstset{
- language = [LaTeX]TeX,
- basicstyle = \ttfamily,
- keywordstyle = \color{code-main},
- commentstyle = \color{code-comment},
- showstringspaces = false,
- breaklines = true,
- frame = lines,
- backgroundcolor = \color{code-background},
- flexiblecolumns = true,
- escapeinside = {(*}{*)},
- alsoletter = {_,:},
- % numbers = left,
- % firstnumber = last,
- numberstyle = \scriptsize\ttfamily,
- stepnumber = 1,
- numbersep = 5pt,
-}
-\newcommand{\meta}[1]{$\langle${\normalfont\itshape#1}$\rangle$}
-\lstset{% LaTeX2 commands
- classoffset = 0,
- texcsstyle =* \color{code-main},
- moretexcs =
- {
- linenumbers,nolinenumbers,
- part,parttext,chapter,section,subsection,subsubsection,
- frontmatter,mainmatter,backmatter,
- tableofcontents,
- href,
- color,
- NameTheorem,CreateTheorem,
- cref,
- ProjLib,
- DNF,
- UseLanguage,UseOtherLanguage,AddLanguageSetting,
- maketitle,address,curraddr,email,keywords,subjclass,thanks,dedicatory,TheDate,
- qedhere,
- }
-}
-\lstset{% LaTeX3 commands
- classoffset = 1,
- texcsstyle =* \color{code-expl3},
- moretexcs =
- {
- }
-}
-\lstnewenvironment{code}{\setstretch{1.05}}{\vspace{-.3\baselineskip}\vspace{-.5\parskip}}
-\lstnewenvironment{code*}{\setstretch{1.05}\lstset{numbers=left}}{\vspace{-.3\baselineskip}\vspace{-.5\parskip}}
-
-\newcommand{\classoption}[1]{\texttt{\textcolor{code-option}{#1}}}
-\newcommand{\packageoption}[1]{\texttt{\textcolor{code-option}{#1}}}
-\newcommand{\commandoption}[1]{\texttt{\textcolor{code-keys}{#1}}}
-
-%%================================
-%% tip
-%%================================
-\usepackage[many]{tcolorbox}
-\newenvironment{tip}[1][Astuce]{%
- \begin{tcolorbox}[breakable,
- enhanced,
- width = \textwidth,
- colback = paper, colbacktitle = paper,
- colframe = gray!50, boxrule=0.2mm,
- coltitle = black,
- fonttitle = \sffamily,
- attach boxed title to top left = {yshift=-\tcboxedtitleheight/2, xshift=.5cm},
- boxed title style = {boxrule=0pt, colframe=paper},
- before skip = 0.3cm,
- after skip = 0.3cm,
- top = 3mm,
- bottom = 3mm,
- title={\scshape\sffamily #1}]%
-}{\end{tcolorbox}}
-
-%%================================
-%% Names
-%%================================
-\providecommand{\colorist}{\textsf{colorist}}
-\providecommand{\colorart}{\textsf{colorart}}
-\providecommand{\colorbook}{\textsf{colorbook}}
-\providecommand{\lebhart}{\textsf{lebhart}}
-\providecommand{\beaulivre}{\textsf{beaulivre}}
-
-%%================================
-%% Titles
-%%================================
-\let\LevelOneTitle\chapter
-\let\LevelTwoTitle\section
-\let\LevelThreeTitle\subsection
-
-%%================================
-%% Main text
-%%================================
-\begin{document}
-
-\def\PackageVersion{2022/09/03}
-
-\frontmatter
-
-\TitlePage [ color = { main = forestgreen!75!black, back = forestgreen!10!yellow!30 } ]
- {
- , title = \beaulivre{}
- , subtitle = {
- \textsc{Écrivez vos livres \\de manière colorée}\\[20pt]
- \smaller[3] Correspondant à : \texttt{\beaulivre{} \PackageVersion}
- }
- , author = Jinwen XU
- , date = {\TheDate{\PackageVersion}[only-year-month], à Paris}
- }
-
-
-\chapter{Préface}
-
-\beaulivre{} fait partie de la série de classes \colorist{}, dont le nom est tiré des mots «~beau~» et «~livre~». L'ensemble de la collection comprend \colorart{} et \lebhart{} pour la composition d'articles, et \colorbook{} et \beaulivre{} pour celle des livres. Mon intention initiale en les concevant était d'écrire des brouillons et des notes qui ont l'air coloré mais pas éblouissant.
-
-\beaulivre{} prend en charge plusieurs langues, notamment le chinois (simplifié et traditionnel), l'anglais, le français, l'allemand, l'italien, le japonais, le portugais (européen et brésilien), le russe et l'espagnol. Ces langues peuvent être commutées de manière transparente dans un seul document. En raison de l'utilisation de polices personnalisées, \beaulivre{} demande soit \hologo{XeLaTeX} soit \hologo{LuaLaTeX} pour la compilation.
-
-Cette documentation est composée à l'aide de \beaulivre{} (avec l'option \classoption{use boldface}). Vous pouvez le considérer comme une courte introduction et une démonstration.
-
-\bigskip
-\begin{tip}
- La prise en charge multilingue, les environnements de type théorème, les marques de brouillon et quelques autres fonctionnalités sont fournis par la boîte à outils \ProjLib{}. Ici, nous ne discutons que brièvement de la façon de l'utiliser avec cette classe de document. Pour plus d'informations, veuillez vous référer à la documentation de \ProjLib{}.
-\end{tip}
-
-\begin{tip}
- This documentation has not been fully up-to-date with the new \texttt{expl3} version of this class series. Some options or commands introduced here might be obsolete.
-\end{tip}
-
-\tableofcontents
-
-\mainmatter
-
-\part{Instruction}
-\parttext{Vous pouvez ajouter quelque texte d'introduction ici via \lstinline|\\parttext|\meta{text}.}
-
-\LevelOneTitle*{Avant de commencer}
-\addcontentsline{toc}{chapter}{Avant de commencer}
-
-Pour utiliser les classes de documents décrites ici, vous devez :
-\begin{itemize}
- \item installer TeX Live ou MikTeX de la dernière version possible, et vous assurer que \texttt{colorist} et \texttt{projlib} sont correctement installés dans votre système \TeX{}.
- \item télécharger et installer les polices requises, voir «~À propos des polices par défaut~».
- \item être familiarisé avec l'utilisation de base de \LaTeX{}, et savoir comment compiler vos documents avec \hologo{pdfLaTeX}, \hologo{XeLaTeX} ou \hologo{LuaLaTeX}.
-\end{itemize}
-
-
-\LevelOneTitle{Utilisation et exemples}
-
-\LevelTwoTitle{Comment l'ajouter}
-
-Il suffit simplement de mettre
-
-\begin{code}
-\documentclass{beaulivre}
-\end{code}
-
-comme première ligne pour utiliser la classe \beaulivre{}.
-
-\begin{tip}[Attention]
- Vous devez utiliser le moteur \hologo{XeLaTeX} ou \hologo{LuaLaTeX} pour compiler.
-\end{tip}
-
-\LevelTwoTitle{Exemple - Un document complet}
-
-Regardons d'abord un document complet.
-
-
-\begin{code*}
-\documentclass{beaulivre}
-\usepackage{ProjLib}
-
-\UseLanguage{French}
-
-\begin{document}
-
-\frontmatter
-
-\begin{titlepage}
- (*\meta{code for titlepage}*)
-\end{titlepage}
-
-\tableofcontents
-
-\mainmatter
-
-\part{(*\meta{part title}*)}
-\parttext{(*\meta{text after part title}*)}
-
-\chapter{(*\meta{chapter title}*)}
-
-\section{(*\meta{section title}*)}
-
-\DNF<(*\meta{some hint}*)>
-
-\begin{theorem}\label{thm:abc}
- Ceci est un théorème.
-\end{theorem}
-Référence du théorème: \cref{thm:abc}
-
-\backmatter
-
-...
-
-\end{document}
-\end{code*}
-
-Si vous trouvez cela un peu compliqué, ne vous inquiétez pas. Examinons maintenant cet exemple pièce par pièce.
-
-\LevelThreeTitle{Initialisation}
-
-\begin{code}
-\documentclass{beaulivre}
-\usepackage{ProjLib}
-\end{code}
-
-L'initialisation est simple. La première ligne ajoute la classe de document \beaulivre{}, et la deuxième ligne ajoute la boîte à outils \ProjLib{} pour obtenir des fonctionnalités supplémentaires.
-
-\LevelThreeTitle{Choisir la langue}
-
-\begin{code}
-\UseLanguage{French}
-\end{code}
-
-Cette ligne indique que le français sera utilisé dans le document (d'ailleurs, si seul l'anglais apparaît dans votre article, alors il n'est pas nécessaire de choisir la langue). Vous pouvez également changer de langue de la même manière plus tard au milieu du texte. Les langues prises en charge sont les suivantes : chinois simplifié, chinois traditionnel, japonais, anglais, français, allemand, espagnol, portugais, portugais brésilien et russe.
-
-Pour une description détaillée de cette commande et d'autres commandes associées, veuillez vous référer à la section sur le support multilingue.
-
-
-\LevelThreeTitle{Marques de brouillon}
-
-\begin{code}
-\DNF<(*\meta{some hint}*)>
-\end{code}
-Lorsque vous avez des endroits qui ne sont pas encore finis, vous pouvez les marquer avec cette commande, ce qui est particulièrement utile lors de la phase de brouillon.
-
-\LevelThreeTitle{Environnements de type théorème}
-
-\begin{code}
-\begin{theorem}\label{thm:abc}
- Ceci est un théorème.
-\end{theorem}
-Référence du théorème: \cref{thm:abc}
-\end{code}
-
-Les environnements de type théorème couramment utilisés ont été prédéfinis. De plus, lors du référencement d'un environnement de type théorème, il est recommandé d'utiliser \lstinline|\cref{|\meta{label}\texttt{\}} --- de cette manière, il ne serait pas nécessaire d'écrire explicitement le nom de l'environnement correspondant à chaque fois.
-
-
-
-
-\LevelOneTitle{À propos des polices par défaut}
-Par défaut, cette classe de document utilise Palatino Linotype comme police anglaise principale; Source Han Serif, Source Han Sans et Source Han Mono comme police chinoise principale, sans empattement et monospace; et utilise partiellement Neo Euler comme police mathématique. Vous devez télécharger et installer ces polices vous-même. La série de polices Source Han peut être téléchargée sur \url{https://github.com/adobe-fonts} (il est recommandé de télécharger la version Super-OTC, afin que la taille de téléchargement soit plus petite). Neo Euler peut être téléchargé sur \url{https://github.com/khaledhosny/euler-otf}. Lorsque la police correspondante n'est pas installée, la police fournie avec TeX Live sera utilisée à la place et l'effet peut être réduit.
-
-De plus, Source Code Pro est utilisé comme police anglaise sans empattement, New Computer Modern Mono comme police anglaise monospace, ainsi que certains symboles dans les polices mathématiques Asana Math, Tex Gyre Pagella Math et Latin Modern Math. Ces polices sont déjà disponibles dans TeX Live ou MikTeX, ce qui signifie que vous n'avez pas besoin de les installer vous-même.
-
-\begin{itemize}
- \item English main font. \textsf{English sans serif font}. \texttt{English typewriter font}.
- \item 简体中文主要字体,\textsf{简体中文无衬线字体},\texttt{简体中文等宽字体}
- \item \UseOtherLanguage{TC}{繁體中文主要字體,\textsf{繁體中文無襯線字體},\texttt{繁體中文等寬字體}}
- \item \UseOtherLanguage{JP}{日本語のメインフォント、\textsf{日本語のサンセリフフォント}、\texttt{日本語の等幅フォント}}
- \item Démonstration de maths : \( \alpha, \beta, \gamma, \delta, 1,2,3,4, a,b,c,d \), \[\mathrm{li}(x)\coloneqq \int_2^{\infty} \frac{1}{\log t}\,\mathrm{d}t \]
-\end{itemize}
-
-
-\LevelOneTitle{Les options}
-
-\beaulivre{} propose les options suivantes :
-
-\begin{itemize}[label=,leftmargin=1.25em,itemindent=-1.25em]
- \item Les options de langue \classoption{EN} / \classoption{english} / \classoption{English}, \classoption{FR} / \classoption{french} / \classoption{French}, etc.
- \begin{itemize}
- \item Pour les noms d'options d'une langue spécifique, veuillez vous référer à \meta{language name} dans la section suivante. La première langue spécifiée sera considérée comme la langue par défaut.
- \item Les options de langue ne sont pas nécessaires, elles servent principalement à augmenter la vitesse de compilation. Sans eux, le résultat serait le même, justement plus lent.
- \end{itemize}
- \item \classoption{draft} ou \classoption{fast}
- \begin{itemize}
- \item L'option \verb|fast| permet un style plus rapide mais légèrement plus rugueux, les principales différences sont :
- \begin{itemize}
- \item Utilisez une configuration de police mathématique plus simple ;
- \item N'utilisez pas \textsf{hyperref} ;
- \item Activez le mode rapide de la boîte à outils \ProjLib{}.
- \end{itemize}
- \end{itemize}
- \begin{tip}
- Pendant la phase de brouillon, il est recommandé d'utiliser le \verb|fast| option pour accélérer la compilation. Quand dans \verb|fast| mode, il y aura un filigrane ``DRAFT'' pour indiquer que vous êtes actuellement en mode brouillon.
- \end{tip}
- \item \classoption{a4paper} ou \classoption{b5paper}
- \begin{itemize}
- \item Options de format de papier. Le format de papier par défaut est 8.5 pouces $\times$ 11 pouces.
- \end{itemize}
- \item \classoption{palatino}, \classoption{times}, \classoption{garamond}, \classoption{noto}, \classoption{biolinum} ~$|$~ \classoption{useosf}
- \begin{itemize}
- \item Options de police. Comme son nom l'indique, la police avec le nom correspondant sera utilisée.
- \item L'option \classoption{useosf} est pour activer les chiffres à l'ancienne.
- \end{itemize}
- \item \classoption{use boldface}
- \begin{itemize}
- \item Afficher les titres en gras. Lorsque cette option est utilisée, le titre principal, les titres de tous les niveaux et les noms des environnements de type théorème seront en gras.
- \end{itemize}
- \item \classoption{runin}
- \begin{itemize}
- \item Utilisez le style «~runin~» pour \lstinline|\subsubsection|
- \end{itemize}
- \item \classoption{nothms}
- \begin{itemize}
- \item Mode texte pur. Ne pas définir les environnements de type théorème.
- \end{itemize}
- \item \classoption{nothmnum}, \classoption{thmnum} ou \classoption{thmnum=}\meta{counter}
- \begin{itemize}
- \item Les environnements de type théorème ne seront pas numérotés / numérotés dans l'ordre 1, 2, 3... / numérotés dans \meta{counter}. Si aucune option n'est utilisée, ils seront numérotés dans \texttt{chapter} (livre) ou \texttt{section} (article).
- \end{itemize}
- \item \classoption{regionalref}, \classoption{originalref}
- \begin{itemize}
- \item Lors du référencement, si le nom de l'environnement de type théorème change avec la langue actuelle. Par défaut \classoption{regionalref} est activé, c'est-à-dire que le nom correspondant à la langue courante est utilisé ; par exemple, lors du référencement d'un environnement de type théorème dans un contexte français, les noms «~Théorème, Définition ...~» seront utilisés quel que soit le contexte linguistique dans lequel se trouve l'environnement d'origine. Si \classoption{originalref} est activé, alors le nom restera toujours le même que l'environnement d'origine ; par exemple, lors du référencement d'un théorème écrit dans le contexte français, même si l'on est actuellement dans le contexte anglais, il sera toujours affiché comme «~Théorème~».
- \item En mode \classoption{fast}, l'option \classoption{originalref} n'aura aucun effet.
- \end{itemize}
-\end{itemize}
-\bigskip
-De plus, les options \classoption{oneside} et \classoption{twoside} couramment utilisées lors de la composition de livres sont également disponibles. La disposition recto-verso est utilisée par défaut.
-
-\LevelOneTitle{Instructions par sujet}
-
-\LevelTwoTitle{Configurer la langue}
-
-\beaulivre{} prend en charge plusieurs langues, notamment le chinois (simplifié et traditionnel), l'anglais, le français, l'allemand, l'italien, le japonais, le portugais (européen et brésilien), le russe et l'espagnol. La langue peut être sélectionnée par les macros suivantes :
-
-\begin{itemize}
- \item \lstinline|\UseLanguage{|\meta{language name}\lstinline|}| est utilisé pour spécifier la langue. Le réglage correspondant de la langue sera appliqué après celui-ci. Il peut être utilisé soit dans le préambule ou dans le texte. Lorsqu'aucune langue n'est spécifiée, « English » est sélectionné par défaut.
- \item \lstinline|\UseOtherLanguage{|\meta{language name}\lstinline|}{|\meta{content}\lstinline|}|, qui utilise les paramètres de langue spécifiés pour composer \meta{content}. Par rapport à \lstinline|\UseLanguage|, il ne modifiera pas l'interligne, donc l'interligne restera stable lorsque le texte CJK et occidental sont mélangés.
-\end{itemize}
-
-\meta{language name} peut être (il n'est pas sensible à la casse, par exemple, \texttt{French} et \texttt{french} ont le même effet) :
-\begin{itemize}
- \item chinois simplifié : \texttt{CN}, \texttt{Chinese}, \texttt{SChinese} ou \texttt{SimplifiedChinese}
- \item chinois traditionnel : \texttt{TC}, \texttt{TChinese} ou \texttt{TraditionalChinese}
- \item anglais : \texttt{EN} ou \texttt{English}
- \item français : \texttt{FR} ou \texttt{French}
- \item allemand : \texttt{DE}, \texttt{German} ou \texttt{ngerman}
- \item italien : \texttt{IT} ou \texttt{Italian}
- \item portugais : \texttt{PT} ou \texttt{Portuguese}
- \item portugais (brésilien) : \texttt{BR} ou \texttt{Brazilian}
- \item espagnol : \texttt{ES} ou \texttt{Spanish}
- \item japonais : \texttt{JP} ou \texttt{Japanese}
- \item russe : \texttt{RU} ou \texttt{Russian}
-\end{itemize}
-
-\medskip
-De plus, vous pouvez également ajouter de nouveaux paramètres à la langue sélectionnée :
-\begin{itemize}
- \item \lstinline|\AddLanguageSetting{|\meta{settings}\lstinline|}|
- \begin{itemize}
- \item Ajoutez \meta{settings} à toutes les langues prises en charge.
- \end{itemize}
- \item \lstinline|\AddLanguageSetting(|\meta{language name}\lstinline|){|\meta{settings}\lstinline|}|
- \begin{itemize}
- \item Ajoutez \meta{settings} à la langue \meta{language name} sélectionnée.
- \end{itemize}
-\end{itemize}
-Par exemple, \lstinline|\AddLanguageSetting(German){\color{orange}}| peut rendre tout le texte allemand affiché en orange (bien sûr, il faut alors ajouter \lstinline|\AddLanguageSetting{\color{black}}| afin de corriger la couleur du texte dans d'autres langues).
-
-\LevelTwoTitle{Théorèmes et comment les référencer}
-
-Des environnements tels que \texttt{definition} et \texttt{theorem} ont été prédéfinis et peuvent être utilisés directement.
-
-Plus précisement, les environnements prédéfinis incluent : \texttt{assumption}, \texttt{axiom}, \texttt{conjecture}, \texttt{convention}, \texttt{corollary}, \texttt{definition}, \texttt{definition-proposition}, \texttt{definition-theorem}, \texttt{example}, \texttt{exercise}, \texttt{fact}, \texttt{hypothesis}, \texttt{lemma}, \texttt{notation}, \texttt{observation}, \texttt{problem}, \texttt{property}, \texttt{proposition}, \texttt{question}, \texttt{remark}, \texttt{theorem}, et la version non numérotée correspondante avec un astérisque \lstinline|*| dans le nom. Les titres changeront avec la langue actuelle. Par exemple, \texttt{theorem} sera affiché comme «~Theorem~» en mode anglais et «~Théorème~» en mode français.
-
-Lors du référencement d'un environnement de type théorème, il est recommandé d'utiliser \lstinline|\cref{|\meta{label}\texttt{\}}. De cette façon, il n'est pas nécessaire d'écrire explicitement le nom de l'environnement correspondant à chaque fois.
-
-\begin{tip}[Exemple]
-\begin{code}
-\begin{definition}[Des choses étranges] \label{def: strange} ...
-\end{code}
-
-will produce
-\begin{definition}[Des choses étranges]\label{def: strange}
- C'est la définition de certains objets étranges. Il y a approximativement un espace d'une ligne avant et après l'environnement de type théorème, et il y aura un symbole pour marquer la fin de l'environnement.
-\end{definition}
-
-\lstinline|\cref{def: strange}| s'affichera sous la forme : \cref{def: strange}.
-
-Après avoir utilisé \lstinline|\UseLanguage{French}|, un théorème s'affichera sous la forme :
-
-\UseLanguage{English}
-\begin{theorem}[Useless]\label{thm}
- A theorem in English.
-\end{theorem}
-
-Par défaut, lors du référencement, le nom du théorème correspond au contexte courant. Par exemple, le nom de la définition ci-dessus sera en français dans le contexte français courant : \cref{def: strange,thm}. Si vous voulez que le nom du théorème corresponde toujours à la langue du contexte dans lequel se trouve le théorème, vous pouvez ajouter \texttt{originalref} aux options globales.
-\end{tip}
-
-\UseLanguage{French}
-
-Voici les principaux styles d'environnements de type théorème :
-\begin{theorem}
- Style de théorème : theorem, proposition, lemma, corollary, ...
-\end{theorem}
-
-\begin{proof}
- Style d'épreuve
-\end{proof}
-
-\begin{remark}
- Style de remarque
-\end{remark}
-
-\begin{conjecture}
- Style de conjecture
-\end{conjecture}
-
-\begin{example*}
- Style d'exemple : example, fact, ...
-\end{example*}
-
-\begin{problem}
- Style de problème : problem, question, ...
-\end{problem}
-
-\medskip
-Pour l'esthétique, les définitions adjacentes seront reliées entre elles automatiquement :
-\begin{definition}
- Première définition.
-\end{definition}
-
-\begin{definition}
- Deuxième définition.
-\end{definition}
-
-\begin{tip}
- Veuillez consulter la documentation du paquet \textsf{create-theorem} pour voir comment déclarer de nouveaux environnements de type théorème.
-\end{tip}
-
-\LevelTwoTitle{Draft mark}
-
-Vous pouvez utiliser \lstinline|\DNF| pour marquer la partie inachevée. Par example :
-\begin{itemize}
- \item \lstinline|\DNF| ou \lstinline|\DNF<...>|. L'effet est : \DNF~ ou \DNF<...>. \\Le texte à l'intérieur changera en fonction de la langue actuelle. Par exemple, il sera affiché sous la forme \UseOtherLanguage{English}{\DNF} en mode anglais.
-\end{itemize}
-
-
-\bigskip
-\LevelOneTitle{Problèmes connus}
-
-\begin{itemize}
- \item Les paramètres de police ne sont pas encore parfaits.
- \item La conception de la table des matières est pas si belle.
- \item Comme de nombreuses fonctionnalités sont basées sur la boîte à outils \ProjLib{}, \colorist{} (et donc \colorart{}, \lebhart{} et \colorbook{}, \beaulivre{}) hérite de tous ses problèmes. Pour plus de détails, veuillez vous référer à la section «~Problèmes connus~» de la documentation de \ProjLib{}.
- \item Le mécanisme de gestion des erreurs est incomplet : pas de messages correspondants lorsque certains problèmes surviennent.
- \item Il y a encore beaucoup de choses qui peuvent être optimisées dans le code.
-\end{itemize}
-
-\part{Démonstration}
-\blinddocument
-
-\end{document}
-\endinput
-%%
-%% End of file `beaulivre/beaulivre-doc-fr.tex'.
Modified: trunk/Master/texmf-dist/doc/latex/colorist/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/colorist/README.md 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/doc/latex/colorist/README.md 2023-01-02 21:23:26 UTC (rev 65436)
@@ -1,8 +1,8 @@
-<!-- Copyright (C) 2021-2022 by Jinwen XU -->
+<!-- Copyright (C) 2021-2023 by Jinwen XU -->
# `colorist` bundle: write you documents in a colorful way
-**The whole series have been rewritten with `expl3`. Please note that the documentations are not yet up-to-date. The syntax of some commands have been changed since the last version, especially the declaration of theorem-like environments by `\CreateTheorem`. For the moment, you can refer to the documentation of the package `create-theorem`.**
+<!-- **The whole series have been rewritten with `expl3`. Please note that the documentations are not yet up-to-date. The syntax of some commands have been changed since the last version, especially the declaration of theorem-like environments by `\CreateTheorem`. For the moment, you can refer to the documentation of the package `create-theorem`.** -->
## Introduction
@@ -30,7 +30,7 @@
Italian, Japanese, Portuguese (European and Brazilian), Russian and Spanish
typesetting, and also use more beautiful fonts.
-### How to get these files
+<!-- ### How to get these files
You can get the `.sty` and `.cls` files mentioned above simply by compiling
`colorist.ins`:
```
@@ -39,7 +39,7 @@
To get the `.tex` source files of the documentation, compile `colorist-doc.ins`:
```
latex colorist-doc.ins
-```
+``` -->
## Features
Deleted: trunk/Master/texmf-dist/doc/latex/colorist/colorist-doc.pdf
===================================================================
(Binary files differ)
Deleted: trunk/Master/texmf-dist/doc/latex/colorist/colorist-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/colorist/colorist-doc.tex 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/doc/latex/colorist/colorist-doc.tex 2023-01-02 21:23:26 UTC (rev 65436)
@@ -1,625 +0,0 @@
-\documentclass[title in boldface, title in scshape, simple name]{colorart}
-
-%%================================
-%% Import toolkit
-%%================================
-\usepackage{ProjLib}
-\usepackage{longtable} % breakable tables
-\usepackage{hologo} % more TeX logo
-\usetikzlibrary{calc}
-
-\usepackage{blindtext}
-
-\UseLanguage{English}
-
-%%================================
-%% For typesetting code
-%%================================
-\usepackage{listings}
-\usepackage{xcolor}
-\usepackage{setspace}
-\definecolor{code-main}{RGB}{70,130,180}
-\definecolor{code-expl3}{RGB}{240,50,60}
-\definecolor{code-option}{RGB}{40,110,20}
-\definecolor{code-keys}{RGB}{100,130,150}
-\definecolor{code-comment}{RGB}{20,120,80}
-\definecolor{code-background}{gray}{0.99}
-\lstset{
- language = [LaTeX]TeX,
- basicstyle = \ttfamily,
- keywordstyle = \color{code-main},
- commentstyle = \color{code-comment},
- showstringspaces = false,
- breaklines = true,
- frame = lines,
- backgroundcolor = \color{code-background},
- flexiblecolumns = true,
- escapeinside = {(*}{*)},
- alsoletter = {_,:},
- % numbers = left,
- % firstnumber = last,
- numberstyle = \scriptsize\ttfamily,
- stepnumber = 1,
- numbersep = 5pt,
-}
-\newcommand{\meta}[1]{$\langle${\normalfont\itshape#1}$\rangle$}
-\lstset{% LaTeX2 commands
- classoffset = 0,
- texcsstyle =* \color{code-main},
- moretexcs =
- {
- linenumbers,nolinenumbers,
- part,parttext,chapter,section,subsection,subsubsection,
- frontmatter,mainmatter,backmatter,
- tableofcontents,
- href,
- color,
- NameTheorem,CreateTheorem,
- cref,
- ProjLib,
- DNF,
- UseLanguage,UseOtherLanguage,AddLanguageSetting,
- maketitle,address,curraddr,email,keywords,subjclass,thanks,dedicatory,TheDate,
- qedhere,
- }
-}
-\lstset{% LaTeX3 commands
- classoffset = 1,
- texcsstyle =* \color{code-expl3},
- moretexcs =
- {
- }
-}
-\lstnewenvironment{code}{\setstretch{1.05}}{\vspace{-.3\baselineskip}\vspace{-.5\parskip}}
-\lstnewenvironment{code*}{\setstretch{1.05}\lstset{numbers=left}}{\vspace{-.3\baselineskip}\vspace{-.5\parskip}}
-
-\newcommand{\classoption}[1]{\texttt{\textcolor{code-option}{#1}}}
-\newcommand{\packageoption}[1]{\texttt{\textcolor{code-option}{#1}}}
-\newcommand{\commandoption}[1]{\texttt{\textcolor{code-keys}{#1}}}
-
-%%================================
-%% tip
-%%================================
-\usepackage[many]{tcolorbox}
-\newenvironment{tip}[1][Tip]{%
- \begin{tcolorbox}[breakable,
- enhanced,
- width = \textwidth,
- colback = paper, colbacktitle = paper,
- colframe = gray!50, boxrule=0.2mm,
- coltitle = black,
- fonttitle = \sffamily,
- attach boxed title to top left = {yshift=-\tcboxedtitleheight/2, xshift=.5cm},
- boxed title style = {boxrule=0pt, colframe=paper},
- before skip = 0.3cm,
- after skip = 0.3cm,
- top = 3mm,
- bottom = 3mm,
- title={\scshape\sffamily #1}]%
-}{\end{tcolorbox}}
-
-%%================================
-%% Names
-%%================================
-\providecommand{\colorist}{\textsf{colorist}}
-\providecommand{\colorart}{\textsf{colorart}}
-\providecommand{\colorbook}{\textsf{colorbook}}
-\providecommand{\lebhart}{\textsf{lebhart}}
-\providecommand{\beaulivre}{\textsf{beaulivre}}
-
-%%================================
-%% Titles
-%%================================
-\let\LevelOneTitle\section
-\let\LevelTwoTitle\subsection
-\let\LevelThreeTitle\subsubsection
-
-%%================================
-%% Main text
-%%================================
-\begin{document}
-
-\def\PackageVersion{2022/09/03}
-
-\title{{\normalfont\bfseries\color{main-text}\colorist{}}\\write your articles or books in a colorful way}
-\author{Jinwen XU}
-\thanks{Corresponding to: \texttt{\colorist{} \PackageVersion}}
-\email{\href{mailto:ProjLib at outlook.com}{ProjLib at outlook.com}}
-\date{\TheDate{\PackageVersion}[only-year-month], in Paris}
-
-\maketitle
-
-\begin{abstract}
- \colorist{} is a series of styles and classes for you to typeset your articles or books in a colorful manner. The original intention in designing this series was to write drafts and notes that look colorful yet not dazzling. With the help of the \ProjLib{} toolkit, also developed by the author, the classes provided here have multi-language support, preset theorem-like environments with clever reference support, and many other functionalities. Notably, using these classes, one can organize the author information in the \AmS{} fashion, makes it easy to switch to journal classes later for publication.
-
- Finally, this documentation is typeset using the \colorart{} class (with the option \classoption{use boldface}). You can think of it as a short introduction and demonstration.
-\end{abstract}
-
-
-\begin{tip}
- This documentation has not been fully up-to-date with the new \texttt{expl3} version of this class series. Some options or commands introduced here might be obsolete.
-\end{tip}
-
-\setcounter{tocdepth}{2}
-\tableofcontents
-
-
-\medskip
-\LevelOneTitle*{Before you start}
-\addcontentsline{toc}{section}{Before you start}
-In order to use the package or classes described here, you need to:
-\begin{itemize}
- \item install TeX Live or MikTeX of the latest possible version, and make sure that \texttt{colorist} and \texttt{projlib} are correctly installed in your \TeX{} system.
- \item download and install the required fonts if needed.
- \item be familiar with the basic usage of \LaTeX{}, and know how to compile your document with \hologo{pdfLaTeX}, \hologo{XeLaTeX} or \hologo{LuaLaTeX}.
-\end{itemize}
-
-\LevelOneTitle{Introduction}
-
-\colorist{} is a series of styles and classes for you to typeset your articles or books in a colorful manner. The original intention in designing this series was to write drafts and notes that look colorful yet not dazzling.
-
-The entire collection includes \verb|colorist.sty|, which is the main style shared by all of the following classes; \verb|colorart.cls| for typesetting articles and \verb|colorbook.cls| for typesetting books. They compile with any major \TeX{} engine, with native support to English, French, German, Italian, Portuguese (European and Brazilian) and Spanish typesetting via \lstinline|\UseLanguage| (see the instruction below for detail).
-
-You can also found \lebhart{} and \beaulivre{} on CTAN. They are the enhanced version of \colorart{} and \colorbook{} with unicode support. With this, they can access to more beautiful fonts, and additionally have native support for Chinese, Japanese and Russian typesetting. On the other hand, they need to be compiled with \hologo{XeLaTeX} or \hologo{LuaLaTeX} (not \hologo{pdfLaTeX}).
-
-With the help of the \ProjLib{} toolkit, also developed by the author, the classes provided here have multi-language support, preset theorem-like environments with clever reference support, and many other functionalities such as draft marks, enhanced author information block, mathematical symbols and shortcuts, etc. Notably, using these classes, one can organize the author information in the \AmS{} fashion, makes it easy to switch to journal classes later for publication. For more detailed information, you can refer to the documentation of \ProjLib{} by running \lstinline|texdoc projlib| in the command line.
-
-\LevelOneTitle{Usage and examples}
-
-\LevelTwoTitle{How to load it}
-You can directly use \colorart{} or \colorbook{} as your document class. In this way, you can directly begin writing your document, without having to worry about the configurations.
-
-\begin{code}
-\documentclass{colorart} (*{\normalfont or}*) \documentclass{colorbook}
-\end{code}
-
-\begin{tip}
- You may wish to use \lebhart{} or \beaulivre{} instead, which should produce better result. All the examples later using \colorart{} or \colorbook{} can be adopted to \lebhart{} and \beaulivre{} respectively, without further modification.
-\end{tip}
-
-You can also use the default classes \textsf{article} or \textsf{book}, and load the \colorist{} package. This way, only the basic styles are set, and you can thus use your preferred fonts and page layout. All the features mentioned in this article are provided.
-
-\begin{code}
-\documentclass{article} (*{\normalfont or}*) \documentclass{book}
-\usepackage{colorist}
-\end{code}
-
-\LevelTwoTitle{Example - \colorart}
-
-Let's first look at a complete example of \colorart{} (the same works for \lebhart{}).
-
-\begin{code*}
-\documentclass{colorart}
-\usepackage{ProjLib}
-
-\UseLanguage{French}
-
-\begin{document}
-
-\title{(*\meta{title}*)}
-\author{(*\meta{author}*)}
-\date{\TheDate{2022-04-01}}
-
-\maketitle
-
-\begin{abstract}
- Ceci est un résumé. \DNF<(*\meta{some hint}*)>
-\end{abstract}
-\begin{keyword}
- AAA, BBB, CCC, DDD, EEE
-\end{keyword}
-
-\section{Un théorème}
-
-\begin{theorem}\label{thm:abc}
- Ceci est un théorème.
-\end{theorem}
-Référence du théorème: \cref{thm:abc}
-
-\end{document}
-\end{code*}
-
-
-If you find this example a little complicated, don't worry. Let's now look at this example piece by piece.
-
-\LevelThreeTitle{Initialization}
-
-\begin{code}
-\documentclass{colorart}
-\usepackage{ProjLib}
-\end{code}
-
-Initialization is straightforward. The first line loads the document class \colorart{}, and the second line loads the \ProjLib{} toolkit to obtain some additional functionalities.
-
-\LevelThreeTitle{Set the language}
-
-\begin{code}
-\UseLanguage{French}
-\end{code}
-
-This line indicates that French will be used in the document (by the way, if only English appears in your article, then there is no need to set the language). You can also switch the language in the same way later in the middle of the text. Supported languages include Simplified Chinese, Traditional Chinese, Japanese, English, French, German, Spanish, Portuguese, Brazilian Portuguese and Russian%
-\footnote{The language Simplified Chinese, Traditional Chinese, Japanese and Russian requires Unicode support, thus the classes \lebhart{} or \beaulivre{}.}%
-.%
-
-For detailed description of this command and more related commands, please refer to the section on the multi-language support.
-
-\LevelThreeTitle{Title, author information, abstract and keywords}
-
-\begin{code}
-\title{(*\meta{title}*)}
-\author{(*\meta{author}*)}
-\date{\TheDate{2022-04-01}}
-\maketitle
-
-\begin{abstract}
- (*\meta{abstract}*)
-\end{abstract}
-\begin{keyword}
- (*\meta{keywords}*)
-\end{keyword}
-\end{code}
-
-This part begins with the title and author information block. The example shows the basic usage, but in fact, you can also write:
-
-\begin{code}
-\author{(*\meta{author 1}*)}
-\address{(*\meta{address 1}*)}
-\email{(*\meta{email 1}*)}
-\author{(*\meta{author 2}*)}
-\address{(*\meta{address 2}*)}
-\email{(*\meta{email 2}*)}
-...
-\end{code}
-
-In addition, you may also write in the \AmS{} fashion, i.e.:
-
-\begin{code}
-\title{(*\meta{title}*)}
-\author{(*\meta{author 1}*)}
-\address{(*\meta{address 1}*)}
-\email{(*\meta{email 1}*)}
-\author{(*\meta{author 2}*)}
-\address{(*\meta{address 2}*)}
-\email{(*\meta{email 2}*)}
-\date{\TheDate{2022-04-01}}
-\subjclass{*****}
-\keywords{(*\meta{keywords}*)}
-
-\begin{abstract}
- (*\meta{abstract}*)
-\end{abstract}
-
-\maketitle
-\end{code}
-
-\LevelThreeTitle{Draft marks}
-
-\begin{code}
-\DNF<(*\meta{some hint}*)>
-\end{code}
-
-When you have some places that have not yet been finished yet, you can mark them with this command, which is especially useful during the draft stage.
-
-\LevelThreeTitle{Theorem-like environments}
-
-\begin{code}
-\begin{theorem}\label{thm:abc}
- Ceci est un théorème.
-\end{theorem}
-Référence du théorème: \cref{thm:abc}
-\end{code}
-
-Commonly used theorem-like environments have been pre-defined. Also, when referencing a theorem-like environment, it is recommended to use \lstinline|\cref{|\meta{label}\texttt{\}} --- in this way, there is no need to explicitly write down the name of the corresponding environment every time.
-
-\begin{tip}
-If you wish to switch to the standard class later, just replace the first two lines with:
-
-\begin{code}
-\documentclass{article}
-\usepackage[a4paper,margin=1in]{geometry}
-\usepackage[hidelinks]{hyperref}
-\usepackage[palatino,amsfashion]{ProjLib}
-\end{code}
-
-or to use the \AmS{} class:
-
-\begin{code}
-\documentclass{amsart}
-\usepackage[a4paper,margin=1in]{geometry}
-\usepackage[hidelinks]{hyperref}
-\usepackage[palatino]{ProjLib}
-\end{code}
-
-\end{tip}
-
-
-\vspace{1.5\baselineskip}
-\LevelTwoTitle{Example - \colorbook}
-
-Now let's look at an example of \colorbook{} (the same works for \beaulivre{}).
-
-\begin{code*}
-\documentclass{colorbook}
-\usepackage{ProjLib}
-
-\UseLanguage{French}
-
-\begin{document}
-
-\frontmatter
-
-\begin{titlepage}
- (*\meta{code for titlepage}*)
-\end{titlepage}
-
-\tableofcontents
-
-\mainmatter
-
-\part{(*\meta{part title}*)}
-\parttext{(*\meta{text after part title}*)}
-
-\chapter{(*\meta{chapter title}*)}
-
-\section{(*\meta{section title}*)}
-
-...
-
-\backmatter
-
-...
-
-\end{document}
-\end{code*}
-
-There is no much differences with \colorart{}, only that the title and author information should be typeset within the \texttt{titlepage} environment. Currently no default titlepage style is given, since the design of the title page is a highly personalized thing, and it is difficult to achieve a result that satisfies everyone.
-
-\bigskip
-In the next section, we will go through the options available.
-
-
-% \clearpage
-\LevelOneTitle{The options}
-
-\colorist{} offers the following options:
-
-\begin{itemize}[label=,leftmargin=1.25em,itemindent=-1.25em]
- \item The language options \classoption{EN} / \classoption{english} / \classoption{English}, \classoption{FR} / \classoption{french} / \classoption{French}, etc.
- \begin{itemize}
- \item For the option names of a specific language, please refer to \meta{language name} in the next section. The first specified language will be used as the default language.
- \item The language options are optional, mainly for increasing the compilation speed. Without them the result would be the same, only slower.
- \end{itemize}
- \item \classoption{draft} or \classoption{fast}
- \begin{itemize}
- \item The option \verb|fast| enables a faster but slightly rougher style, main differences are:
- \begin{itemize}
- \item Use simpler math font configuration;
- \item Do not use \textsf{hyperref};
- \item Enable the fast mode of \ProjLib{} toolkit.
- \end{itemize}
- \end{itemize}
- \begin{tip}
- During the draft stage, it is recommended to use the \verb|fast| option to speed up compilation. When in \verb|fast| mode, there will be a watermark ``DRAFT'' to indicate that you are currently in the draft mode.
- \end{tip}
- \item \classoption{use boldface}
- \begin{itemize}
- \item Allow boldface. When this option is enabled, the main title, the titles of all levels and the names of theorem-like environments will be bolded.
- \end{itemize}
- \item \classoption{runin}
- \begin{itemize}
- \item Use the ``runin'' style for \lstinline|\subsubsection|
- \end{itemize}
- \item \classoption{nothms}
- \begin{itemize}
- \item Pure text mode. Do not load theorem-like environments.
- \end{itemize}
- \item \classoption{nothmnum}, \classoption{thmnum} or \classoption{thmnum=}\meta{counter}
- \begin{itemize}
- \item Theorem-like environments will not be numbered / numbered in order 1, 2, 3... / numbered within \meta{counter}. If no option is used, they will be numbered within \texttt{chapter} (book) or \texttt{section} (article).
- \end{itemize}
- \item \classoption{regionalref}, \classoption{originalref}
- \begin{itemize}
- \item When referencing, whether the name of the theorem-like environment changes with the current language. The default is \classoption{regionalref}, \emph{i.e.}, the name corresponding to the current language is used; for example, when referencing a theorem-like environment in English context, the names "Theorem, Definition..." will be used no matter which language context the original environment is in. If \classoption{originalref} is enabled, then the name will always remain the same as the original place; for example, when referencing a theorem written in the French context, even if one is currently in the English context, it will still be displayed as ``Théorème''.
- \item In \classoption{fast} mode, the option \classoption{originalref} will have no effect.
- \end{itemize}
-\end{itemize}
-
-Additionally, \colorart{} and \colorbook{} offers the following options:
-\begin{itemize}[label=,leftmargin=1.25em,itemindent=-1.25em]
- \item \classoption{a4paper} or \classoption{b5paper}
- \begin{itemize}
- \item Optional paper size. The default paper size is 8.5in $\times$ 11in.
- \end{itemize}
- \item \classoption{palatino}, \classoption{times}, \classoption{garamond}, \classoption{noto}, \classoption{biolinum} ~$|$~ \classoption{useosf}
- \begin{itemize}
- \item Font options. As the name suggest, font with corresponding name will be loaded.
- \item The \classoption{useosf} option is used to enable the old-style figures.
- \end{itemize}
-\end{itemize}
-
-\LevelOneTitle{Instructions by topic}
-
-\LevelTwoTitle{Language configuration}
-
-\colorart{} has multi-language support, including English, French, German, Italian, Portuguese (European and Brazilian) and Spanish. The language can be selected by the following macros:
-
-\begin{itemize}
- \item \lstinline|\UseLanguage{|\meta{language name}\lstinline|}| is used to specify the language. The corresponding setting of the language will be applied after it. It can be used either in the preamble or in the main body. When no language is specified, ``English'' is selected by default.
- \item \lstinline|\UseOtherLanguage{|\meta{language name}\lstinline|}{|\meta{content}\lstinline|}|, which uses the specified language settings to typeset \meta{content}. Compared with \lstinline|\UseLanguage|, it will not modify the line spacing, so line spacing would remain stable when CJK and Western texts are mixed.
-\end{itemize}
-
-\meta{language name} can be (it is not case sensitive, for example, \texttt{French} and \texttt{french} have the same effect):
-\begin{itemize}
- \item Simplified Chinese: \texttt{CN}, \texttt{Chinese}, \texttt{SChinese} or \texttt{SimplifiedChinese}
- \item Traditional Chinese: \texttt{TC}, \texttt{TChinese} or \texttt{TraditionalChinese}
- \item English: \texttt{EN} or \texttt{English}
- \item French: \texttt{FR} or \texttt{French}
- \item German: \texttt{DE}, \texttt{German} or \texttt{ngerman}
- \item Italian: \texttt{IT} or \texttt{Italian}
- \item Portuguese: \texttt{PT} or \texttt{Portuguese}
- \item Portuguese (Brazilian): \texttt{BR} or \texttt{Brazilian}
- \item Spanish: \texttt{ES} or \texttt{Spanish}
- \item Japanese: \texttt{JP} or \texttt{Japanese}
- \item Russian: \texttt{RU} or \texttt{Russian}
-\end{itemize}
-
-\medskip
-In addition, you can also add new settings to selected language:
-\begin{itemize}
- \item \lstinline|\AddLanguageSetting{|\meta{settings}\lstinline|}|
- \begin{itemize}
- \item Add \meta{settings} to all supported languages.
- \end{itemize}
- \item \lstinline|\AddLanguageSetting(|\meta{language name}\lstinline|){|\meta{settings}\lstinline|}|
- \begin{itemize}
- \item Add \meta{settings} to the selected language \meta{language name}.
- \end{itemize}
-\end{itemize}
-For example, \lstinline|\AddLanguageSetting(German){\color{orange}}| can make all German text displayed in orange (of course, one then need to add \lstinline|\AddLanguageSetting{\color{black}}| in order to correct the color of the text in other languages).
-
-\LevelTwoTitle{Theorems and how to reference them}
-
-Environments such as \texttt{definition} and \texttt{theorem} have been preset and can be used directly.
-
-More specifically, preset environments include:
-\texttt{assumption}, \texttt{axiom}, \texttt{conjecture}, \texttt{convention}, \texttt{corollary}, \texttt{definition}, \texttt{definition-proposition}, \texttt{definition-theorem}, \texttt{example}, \texttt{exercise}, \texttt{fact}, \texttt{hypothesis}, \texttt{lemma}, \texttt{notation}, \texttt{observation}, \texttt{problem}, \texttt{property}, \texttt{proposition}, \texttt{question}, \texttt{remark}, \texttt{theorem}, and the corresponding unnumbered version with an asterisk \lstinline|*| in the name. The titles will change with the current language. For example, \texttt{theorem} will be displayed as ``Theorem" in English mode and ``Théorème" in French mode.
-
-When referencing a theorem-like environment, it is recommended to use \lstinline|\cref{|\meta{label}\texttt{\}}. In this way, there is no need to explicitly write down the name of the corresponding environment every time.
-
-\begin{tip}[Example]
-\begin{code}
-\begin{definition}[Strange things] \label{def: strange} ...
-\end{code}
-
-will produce
-\begin{definition}[Strange things]\label{def: strange}
- This is the definition of some strange objects. There is approximately a one-line spacing before and after the theorem environment, and there will be a symbol to mark the end of the environment.
-\end{definition}
-
-\lstinline|\cref{def: strange}| will be displayed as: \cref{def: strange}.
-
-After using \lstinline|\UseLanguage{French}|, a theorem will be displayed as:
-
-\UseLanguage{French}
-\begin{theorem}[Inutile]\label{thm}
- Un théorème en français.
-\end{theorem}
-
-By default, when referenced, the name of the theorem matches the current context. For example, the definition above will be displayed in French in the current French context: \cref{def: strange,thm}. If you want the name of the theorem to always match the language of the context in which the theorem is located, you can add \texttt{originalref} to the global options.
-\end{tip}
-
-\UseLanguage{English}
-
-The following are the main styles of theorem-like environments:
-\begin{theorem}
- Theorem style: theorem, proposition, lemma, corollary, ...
-\end{theorem}
-
-\begin{proof}
- Proof style
-\end{proof}
-
-\begin{remark}
- Remark style
-\end{remark}
-
-\begin{conjecture}
- Conjecture style
-\end{conjecture}
-
-\begin{example*}
- Example style: example, fact, ...
-\end{example*}
-
-\begin{problem}
- Problem style: problem, question, ...
-\end{problem}
-
-\medskip
-For aesthetics, adjacent definitions will be connected together automatically:
-\begin{definition}
- First definition.
-\end{definition}
-
-\begin{definition}
- Second definition.
-\end{definition}
-
-\begin{tip}
- Please refer to the documentation of the package \textsf{create-theorem} to see how to declare new theorem-like environments.
-\end{tip}
-
-\LevelTwoTitle{Draft mark}
-
-You can use \lstinline|\DNF| to mark the unfinished part. For example:
-\begin{itemize}
- \item \lstinline|\DNF| or \lstinline|\DNF<...>|. The effect is: \DNF~ or \DNF<...>. \\The prompt text changes according to the current language. For example, it will be displayed as \UseOtherLanguage{French}{\DNF} in French mode.
-\end{itemize}
-
-\LevelTwoTitle{Title, abstract and keywords}
-
-\colorart{} has both the features of standard classes and that of the \AmS{} classes.
-
-Therefore, the title part can either be written in the usual way, in accordance with the standard class \textsf{article}:
-
-\begin{code}
-\title{(*\meta{title}*)}
-\author{(*\meta{author}*)\thanks{(*\meta{text}*)}}
-\date{(*\meta{date}*)}
-\maketitle
-\begin{abstract}
- (*\meta{abstract}*)
-\end{abstract}
-\begin{keyword}
- (*\meta{keywords}*)
-\end{keyword}
-\end{code}
-
-or written in the way of \AmS{} classes:
-
-\begin{code}
-\title{(*\meta{title}*)}
-\author{(*\meta{author}*)}
-\thanks{(*\meta{text}*)}
-\address{(*\meta{address}*)}
-\email{(*\meta{email}*)}
-\date{(*\meta{date}*)}
-\keywords{(*\meta{keywords}*)}
-\subjclass{(*\meta{subjclass}*)}
-\begin{abstract}
- (*\meta{abstract}*)
-\end{abstract}
-\maketitle
-\end{code}
-
-The author information can contain multiple groups, written as:
-
-\begin{code}
-\author{(*\meta{author 1}*)}
-\address{(*\meta{address 1}*)}
-\email{(*\meta{email 1}*)}
-\author{(*\meta{author 2}*)}
-\address{(*\meta{address 2}*)}
-\email{(*\meta{email 2}*)}
-...
-\end{code}
-
-Among them, the mutual order of \lstinline|\address|, \lstinline|\curraddr|, \lstinline|\email| is not important.
-
-\bigskip
-% \clearpage
-\LevelOneTitle{Known issues}
-
-\begin{itemize}
- \item The font settings are still not perfect.
- \item The TOC design does not look very nice.
- \item Since many features are based on the \ProjLib{} toolkit, \colorist{} (and hence \colorart{}, \lebhart{} and \colorbook{}, \beaulivre{}) inherits all its problems. For details, please refer to the ``Known Issues'' section of the \ProjLib{} documentation.
- \item The error handling mechanism is incomplete: there is no corresponding error prompt when some problems occur.
- \item There are still many things that can be optimized in the code.
-\end{itemize}
-
-
-\end{document}
-\endinput
-%%
-%% End of file `colorist/colorist-doc.tex'.
Deleted: trunk/Master/texmf-dist/doc/latex/einfart/einfart-doc-cn.pdf
===================================================================
(Binary files differ)
Deleted: trunk/Master/texmf-dist/doc/latex/einfart/einfart-doc-cn.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/einfart/einfart-doc-cn.tex 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/doc/latex/einfart/einfart-doc-cn.tex 2023-01-02 21:23:26 UTC (rev 65436)
@@ -1,563 +0,0 @@
-\documentclass[classical, simple name]{einfart}
-
-\linenumbers % Enable line numbers
-
-%%================================
-%% Import toolkit
-%%================================
-\usepackage{ProjLib}
-\usepackage{longtable} % breakable tables
-\usepackage{hologo} % more TeX logo
-
-\usepackage{blindtext}
-
-\UseLanguage{Chinese}
-
-%%================================
-%% For typesetting code
-%%================================
-\usepackage{listings}
-\usepackage{xcolor}
-\usepackage{setspace}
-\definecolor{code-main}{RGB}{70,130,180}
-\definecolor{code-expl3}{RGB}{240,50,60}
-\definecolor{code-option}{RGB}{40,110,20}
-\definecolor{code-keys}{RGB}{100,130,150}
-\definecolor{code-comment}{RGB}{20,120,80}
-\definecolor{code-background}{gray}{0.99}
-\lstset{
- language = [LaTeX]TeX,
- basicstyle = \ttfamily,
- keywordstyle = \color{code-main},
- commentstyle = \color{code-comment},
- showstringspaces = false,
- breaklines = true,
- frame = lines,
- backgroundcolor = \color{code-background},
- flexiblecolumns = true,
- escapeinside = {(*}{*)},
- alsoletter = {_,:},
- % numbers = left,
- % firstnumber = last,
- numberstyle = \scriptsize\ttfamily,
- stepnumber = 1,
- numbersep = 5pt,
-}
-\newcommand{\meta}[1]{$\langle${\normalfont\itshape#1}$\rangle$}
-\lstset{% LaTeX2 commands
- classoffset = 0,
- texcsstyle =* \color{code-main},
- moretexcs =
- {
- linenumbers,nolinenumbers,
- part,parttext,chapter,section,subsection,subsubsection,
- frontmatter,mainmatter,backmatter,
- tableofcontents,
- href,
- color,
- NameTheorem,CreateTheorem,
- cref,
- ProjLib,
- DNF,
- UseLanguage,UseOtherLanguage,AddLanguageSetting,
- maketitle,address,curraddr,email,keywords,subjclass,thanks,dedicatory,TheDate,
- qedhere,
- }
-}
-\lstset{% LaTeX3 commands
- classoffset = 1,
- texcsstyle =* \color{code-expl3},
- moretexcs =
- {
- }
-}
-\lstnewenvironment{code}{\setstretch{1.05}\LocallyStopLineNumbers}{\ResumeLineNumbers\vspace{-.3\baselineskip}\vspace{-.5\parskip}}
-\lstnewenvironment{code*}{\setstretch{1.05}\lstset{numbers=left}\LocallyStopLineNumbers}{\ResumeLineNumbers\vspace{-.3\baselineskip}\vspace{-.5\parskip}}
-
-\newcommand{\classoption}[1]{\texttt{\textcolor{code-option}{#1}}}
-\newcommand{\packageoption}[1]{\texttt{\textcolor{code-option}{#1}}}
-\newcommand{\commandoption}[1]{\texttt{\textcolor{code-keys}{#1}}}
-
-%%================================
-%% tip
-%%================================
-\usepackage[many]{tcolorbox}
-\newenvironment{tip}[1][提示]
- {%
- \LocallyStopLineNumbers%
- \begin{tcolorbox}[breakable,
- enhanced,
- width = \textwidth,
- colback = paper, colbacktitle = paper,
- colframe = gray!50, boxrule=0.2mm,
- coltitle = black,
- fonttitle = \sffamily,
- attach boxed title to top left = {yshift=-\tcboxedtitleheight/2, xshift=.5cm},
- boxed title style = {boxrule=0pt, colframe=paper},
- before skip = 3mm,
- after skip = 3mm,
- top = 2.5mm,
- bottom = 1.5mm,
- title={\scshape\sffamily #1}]%
- }
- {%
- \end{tcolorbox}%
- \ResumeLineNumbers%
- }
-
-%%================================
-%% Names
-%%================================
-\providecommand{\minimalist}{\textsf{minimalist}}
-\providecommand{\minimart}{\textsf{minimart}}
-\providecommand{\minimbook}{\textsf{minimbook}}
-\providecommand{\einfart}{\textsf{einfart}}
-\providecommand{\simplivre}{\textsf{simplivre}}
-
-%%================================
-%% Titles
-%%================================
-\let\LevelOneTitle\section
-\let\LevelTwoTitle\subsection
-\let\LevelThreeTitle\subsubsection
-
-%%================================
-%% Main text
-%%================================
-\begin{document}
-
-\def\PackageVersion{2022/09/03}
-
-\title{\einfart{},以极简主义风格排版你的文章}
-\author{许锦文}
-\thanks{对应版本. \texttt{\einfart{} \PackageVersion}}
-\email{\href{mailto:ProjLib at outlook.com}{ProjLib at outlook.com}}
-\date{\TheDate{\PackageVersion}[only-year-month],巴黎}
-
-\maketitle
-
-\begin{abstract}
- \einfart{} 是 \minimalist{} 文档类系列的成员之一,其名称取自于德文的 einfach (``简约''),并取了 artikel (``文章'') 的前三个字母组合而成。整个 \minimalist{} 系列包含用于排版文章的 \minimart{}、\einfart{} 以及用于排版书的 \minimbook{}、\simplivre{}。我设计这一系列的初衷是为了撰写草稿与笔记,使之看上去简朴而不简陋。
-
- \einfart{} 支持英语、法语、德语、意大利语、葡萄牙语、巴西葡萄牙语、西班牙语、简体中文、繁体中文、日文、俄文,并且同一篇文档中这些语言可以很好地协调。由于采用了自定义字体,需要用 \hologo{XeLaTeX} 或 \hologo{LuaLaTeX} 引擎进行编译。
-
- 这篇说明文档即是用 \einfart{} 排版的 (使用了参数 \classoption{classical}),你可以把它看作一份简短的说明与演示。
-\end{abstract}
-
-
-\setcounter{tocdepth}{2}
-{\setstretch{1.07}\tableofcontents}
-
-
-\medskip
-\LevelOneTitle*{开始之前}
-为了使用这篇文档中提到的文档类,你需要:
-\begin{itemize}
- \item 安装一个尽可能新版本的 TeX Live 或 MikTeX 套装,并确保 \texttt{minimalist} 和 \texttt{projlib} 被正确安装在你的 \TeX 封装中。
- \item 下载并安装所需的字体,参考“关于默认字体”这一节。
- \item 熟悉 \LaTeX{} 的基本使用方式,且会用 \hologo{pdfLaTeX}、\hologo{XeLaTeX} 或 \hologo{LuaLaTeX} 编译你的文档。
-\end{itemize}
-
-
-\LevelOneTitle{使用示例}
-
-\LevelTwoTitle{如何加载}
-
-只需要在第一行写:
-
-\begin{code}
-\documentclass{einfart}
-\end{code}
-
-即可使用 \einfart{} 文档类。请注意,要使用 \hologo{XeLaTeX} 或 \hologo{LuaLaTeX} 引擎才能编译。
-
-\LevelTwoTitle{一篇完整的文档示例}
-
-首先来看一段完整的示例。
-
-\begin{code*}
-\documentclass{einfart}
-\usepackage{ProjLib}
-
-\UseLanguage{French}
-
-\begin{document}
-
-\title{(*\meta{title}*)}
-\author{(*\meta{author}*)}
-\date{\TheDate{2022-04-01}}
-
-\maketitle
-
-\begin{abstract}
- Ceci est un résumé. \DNF<(*\meta{some hint}*)>
-\end{abstract}
-\begin{keyword}
- AAA, BBB, CCC, DDD, EEE
-\end{keyword}
-
-\section{Un théorème}
-
-\begin{theorem}\label{thm:abc}
- Ceci est un théorème.
-\end{theorem}
-Référence du théorème: \cref{thm:abc}
-
-\end{document}
-\end{code*}
-
-
-如果你觉得这个例子有些复杂,不要担心。现在我们来一点点地观察这个例子。
-
-\LevelThreeTitle{初始化部分}
-
-\medskip
-\begin{code}
-\documentclass{einfart}
-\usepackage{ProjLib}
-\end{code}
-
-初始化部分很简单:第一行加载文档类 \einfart{},第二行加载 \ProjLib{} 工具箱,以便使用一些附加功能。
-
-\LevelThreeTitle{设定语言}
-
-\medskip
-\begin{code}
-\UseLanguage{French}
-\end{code}
-
-这一行表明文档中将使用法语(如果你的文章中只出现英语,那么可以不需要设定语言)。你也可以在文章中间用同样的方式再次切换语言。支持的语言包括简体中文、繁体中文、日文、英语、法语、德语、西班牙语、葡萄牙语、巴西葡萄牙语、俄语。
-
-对于这一命令的详细说明以及更多相关命令,可以参考后面关于多语言支持的小节。
-
-\LevelThreeTitle{标题,作者信息,摘要与关键词}
-
-\medskip
-\begin{code}
-\title{(*\meta{title}*)}
-\author{(*\meta{author}*)}
-\date{\TheDate{2022-04-01}}
-\maketitle
-
-\begin{abstract}
- (*\meta{abstract}*)
-\end{abstract}
-\begin{keyword}
- (*\meta{keywords}*)
-\end{keyword}
-\end{code}
-
-开头部分是标题和作者信息块。这个例子中给出的是最基本的形式,事实上你还可以这样写:
-
-\begin{code}
-\author{(*\meta{author 1}*)}
-\address{(*\meta{address 1}*)}
-\email{(*\meta{email 1}*)}
-\author{(*\meta{author 2}*)}
-\address{(*\meta{address 2}*)}
-\email{(*\meta{email 2}*)}
-...
-\end{code}
-
-另外,你还可以采用 \AmS{} 文档类的写法:
-
-\begin{code}
-\title{(*\meta{title}*)}
-\author{(*\meta{author 1}*)}
-\address{(*\meta{address 1}*)}
-\email{(*\meta{email 1}*)}
-\author{(*\meta{author 2}*)}
-\address{(*\meta{address 2}*)}
-\email{(*\meta{email 2}*)}
-\date{\TheDate{2022-04-01}}
-\subjclass{*****}
-\keywords{(*\meta{keywords}*)}
-
-\begin{abstract}
- (*\meta{abstract}*)
-\end{abstract}
-
-\maketitle
-\end{code}
-
-\LevelThreeTitle{未完成标记}
-
-\medskip
-\begin{code}
-\DNF<(*\meta{some hint}*)>
-\end{code}
-当你有一些地方尚未完成的时候,可以用这条指令标记出来,它在草稿阶段格外有用。
-
-\LevelThreeTitle{定理类环境}
-
-\medskip
-\begin{code}
-\begin{theorem}\label{thm:abc}
- Ceci est un théorème.
-\end{theorem}
-Référence du théorème: \cref{thm:abc}
-\end{code}
-
-常见的定理类环境可以直接使用。在引用的时候,建议采用智能引用 \lstinline|\cref{|\meta{label}\lstinline|}|——这样就不必每次都写上相应环境的名称了。
-
-\begin{tip}
-如果你之后想要切换到标准文档类,只需要把前两行换为:
-
-\begin{code}
-\documentclass{article}
-\usepackage[a4paper,margin=1in]{geometry}
-\usepackage[hidelinks]{hyperref}
-\usepackage[palatino,amsfashion]{ProjLib}
-\end{code}
-
-或者使用 \AmS{} 文档类:
-
-\begin{code}
-\documentclass{amsart}
-\usepackage[a4paper,margin=1in]{geometry}
-\usepackage[hidelinks]{hyperref}
-\usepackage[palatino]{ProjLib}
-\end{code}
-
-\end{tip}
-
-
-
-\LevelOneTitle{关于默认字体}
-本文档类中默认使用 Palatino Linotype 作为英文主字体,思源宋体、思源黑体、思源等宽作为中文主字体、无衬线字体以及等宽字体,并部分使用了 Neo Euler 作为数学字体。这些字体需要用户自行下载安装。其中,思源字体系列可在 \url{https://github.com/adobe-fonts} 下载 (推荐下载 Super-OTC 版本,这样下载的体积较小)。Neo Euler可以在 \url{https://github.com/khaledhosny/euler-otf} 下载。在没有安装相应的字体时,将采用TeX Live中自带的字体来代替,效果可能会有所折扣。
-
-另外,还使用了 Source Code Pro 作为英文无衬线字体、New Computer Modern Mono 作为英文等宽字体,以及 Asana Math、Tex Gyre Pagella Math、Latin Modern Math 数学字体中的部分符号。这些字体在 TeX Live 或 MikTeX 中已经提供,无需自行下载安装。
-
-
-
-\LevelOneTitle{选项}
-
-\einfart{} 文档类有下面几个选项:
-
-\begin{itemize}[label=,leftmargin=1.25em,itemindent=-1.25em]
- \item 语言选项 \classoption{EN} / \classoption{english} / \classoption{English}、\classoption{FR} / \classoption{french} / \classoption{French},等等
- \begin{itemize}
- \item 具体选项名称可参见下一节的 \meta{language name}。第一个指定的语言将作为默认语言。
- \item 语言选项不是必需的,其主要用途是提高编译速度。不添加语言选项时效果是一样的,只是会更慢一些。
- \end{itemize}
- \item \classoption{draft} 或 \classoption{fast}
- \begin{itemize}
- \item 你可以使用选项 \verb|fast| 来启用快速但略微粗糙的样式,主要区别是:
- \begin{itemize}
- \item 使用较为简单的数学字体设置;
- \item 不启用超链接;
- \item 启用 \ProjLib{} 工具箱的快速模式。
- \end{itemize}
- \end{itemize}
- \begin{tip}
- 在文章的撰写阶段,建议使用 \verb|fast| 选项以加快编译速度,改善写作时的流畅度。使用 \verb|fast| 模式时会有“DRAFT”字样的水印,以提示目前处于草稿阶段。
- \end{tip}
- \item \classoption{a4paper} 或 \classoption{b5paper}
- \begin{itemize}
- \item 可选的纸张大小。默认的纸张大小为 7in $\times$ 10in。
- \end{itemize}
- \item \classoption{palatino}、\classoption{times}、\classoption{garamond}、\classoption{noto}、\classoption{biolinum} ~$|$~ \classoption{useosf}
- \begin{itemize}
- \item 字体选项。顾名思义,会加载相应名称的字体。
- \item \classoption{useosf} 选项用来启用“旧式”数字。
- \end{itemize}
- \item \classoption{use boldface}
- \begin{itemize}
- \item 允许加粗。启用这一选项时,题目、各级标题、定理类环境名称会被加粗。
- \end{itemize}
- \item \classoption{classical}
- \begin{itemize}
- \item 经典模式。使用这一选项时,将会启用较为古色古香的风格,如同当前的这篇说明文档一样。
- \end{itemize}
- \item \classoption{useindent}
- \begin{itemize}
- \item 采用段首缩进而不是段间间距。
- \end{itemize}
- \item \classoption{runin}
- \begin{itemize}
- \item \lstinline|\subsubsection| 采用 ``runin'' 风格。
- \end{itemize}
- \item \classoption{nothms}
- \begin{itemize}
- \item 纯文本模式,不加载定理类环境。
- \end{itemize}
- \item \classoption{nothmnum}、\classoption{thmnum} 或 \classoption{thmnum=}\meta{counter}
- \begin{itemize}
- \item 定理类环境均不编号 / 按照 1、2、3 顺序编号 / 在 \meta{counter} 内编号。在没有使用任何选项的情况下将按照 \texttt{chapter} (书) 或 \texttt{section} (文章) 编号。
- \end{itemize}
- \item \classoption{regionalref}、\classoption{originalref}
- \begin{itemize}
- \item 在智能引用时,定理类环境的名称是否随当前语言而变化。默认为 \classoption{regionalref},即引用时采用当前语言对应的名称;例如,在中文语境中引用定理类环境时,无论原环境处在什么语境中,都将使用名称“定理、定义……”。若启用 \classoption{originalref},则引用时会始终采用定理类环境所处语境下的名称;例如,在英文语境中书写的定理,即使稍后在中文语境下引用时,仍将显示为 Theorem。
- \item 在 \texttt{fast} 模式下,\classoption{originalref} 将不起作用。
- \end{itemize}
-\end{itemize}
-
-\LevelOneTitle{具体说明}
-
-\LevelTwoTitle{语言设置}
-
-\einfart{} 提供了多语言支持,包括英语、法语、德语、意大利语、葡萄牙语、巴西葡萄牙语、西班牙语、简体中文、繁体中文、日文、俄文。可以通过下列命令来选定语言:
-\begin{itemize}
- \item \lstinline|\UseLanguage{|\meta{language name}\lstinline|}|,用于指定语言,在其后将使用对应的语言设定。
- \begin{itemize}
- \item 既可以用于导言部分,也可以用于正文部分。在不指定语言时,默认选定 “English”。
- \end{itemize}
- \item \lstinline|\UseOtherLanguage{|\meta{language name}\lstinline|}{|\meta{content}\lstinline|}|,用指定的语言的设定排版 \meta{content}。
- \begin{itemize}
- \item 相比 \lstinline|\UseLanguage|,它不会对行距进行修改,因此中西文字混排时能保持行距稳定。
- \end{itemize}
-\end{itemize}
-
-\meta{language name} 有下列选择 (不区分大小写,如 \texttt{French} 或 \texttt{french} 均可):
-\begin{itemize}
- \item 简体中文:\texttt{CN}、\texttt{Chinese}、\texttt{SChinese} 或 \texttt{SimplifiedChinese}
- \item 繁体中文:\texttt{TC}、\texttt{TChinese} 或 \texttt{TraditionalChinese}
- \item 英文:\texttt{EN} 或 \texttt{English}
- \item 法文:\texttt{FR} 或 \texttt{French}
- \item 德文:\texttt{DE}、\texttt{German} 或 \texttt{ngerman}
- \item 意大利语:\texttt{IT} 或 \texttt{Italian}
- \item 葡萄牙语:\texttt{PT} 或 \texttt{Portuguese}
- \item 巴西葡萄牙语:\texttt{BR} 或 \texttt{Brazilian}
- \item 西班牙语:\texttt{ES} 或 \texttt{Spanish}
- \item 日文:\texttt{JP} 或 \texttt{Japanese}
- \item 俄文:\texttt{RU} 或 \texttt{Russian}
-\end{itemize}
-
-另外,还可以通过下面的方式来填加相应语言的设置:
-\begin{itemize}
- \item \lstinline|\AddLanguageSetting{|\meta{settings}\lstinline|}|
- \begin{itemize}
- \item 向所有支持的语言增加设置 \meta{settings}。
- \end{itemize}
- \item \lstinline|\AddLanguageSetting(|\meta{language name}\lstinline|){|\meta{settings}\lstinline|}|
- \begin{itemize}
- \item 向指定的语言 \meta{language name} 增加设置 \meta{settings}。
- \end{itemize}
-\end{itemize}
-例如,\lstinline|\AddLanguageSetting(German){\color{orange}}| 可以让所有德语以橙色显示(当然,还需要再加上 \lstinline|\AddLanguageSetting{\color{black}}| 来修正其他语言的颜色)。
-
-\LevelTwoTitle{定理类环境及其引用}
-
-定义、定理等环境已经被预定义,可以直接使用。
-
-具体来说,预设的定理类环境包括:
-\texttt{assumption}、\texttt{axiom}、\texttt{conjecture}、\texttt{convention}、\texttt{corollary}、\texttt{definition}、\texttt{definition-proposition}、\texttt{definition-theorem}、\texttt{example}、\texttt{exercise}、\texttt{fact}、\texttt{hypothesis}、\texttt{lemma}、\texttt{notation}、\texttt{observation}、\texttt{problem}、\texttt{property}、\texttt{proposition}、\texttt{question}、\texttt{remark}、\texttt{theorem},以及相应的带有星号 \lstinline|*| 的无编号版本。
-
-在引用定理类环境时,建议使用智能引用 \lstinline|\cref{|\meta{label}\lstinline|}|。这样就不必每次都写上相应环境的名称了。
-
-\medskip
-\begin{tip}[例子]
-\begin{code}
-\begin{definition}[奇异物品] \label{def: strange} ...
-\end{code}
-将会生成
-\begin{definition}[奇异物品]\label{def: strange}
- 这是奇异物品的定义。定理类环境的前后有一行左右的间距。在定义结束的时候会有一个符号来标记。
-\end{definition}
-
-\lstinline|\cref{def: strange}| 会显示为:\cref{def: strange}。
-
-\medskip
-使用 \lstinline|\UseLanguage{English}| 后,定理会显示为:
-
-\UseLanguage{English}
-\begin{theorem}[Useless]\label{thm}
- A theorem in English.
-\end{theorem}
-
-默认情况下,引用时,定理类环境的名称总是与当前语言相匹配,例如,上面的定义在现在的英文模式下将显示为英文:\cref{def: strange,thm}。如果在引用时想让定理的名称总是与原定理所在区域的语言匹配,即总是显示原始名称,可以在全局选项中加入 \texttt{originalref}。
-\end{tip}
-
-\UseLanguage{Chinese}
-
-\begin{tip}
- 请参阅 \textsf{create-theorem} 的说明文档以获知如何定义新的定理类环境。
-\end{tip}
-
-\LevelTwoTitle{未完成标记}
-
-你可以通过 \lstinline|\DNF| 来标记尚未完成的部分。例如:
-\begin{itemize}
- \item \lstinline|\DNF| 或 \lstinline|\DNF<...>|。效果为:\DNF~或 \DNF<...>。\\其提示文字与当前语言相对应,例如,在法语模式下将会显示为 \UseOtherLanguage{French}{\DNF}。
-\end{itemize}
-
-\LevelTwoTitle{文章标题、摘要与关键词}
-
-\einfart{} 同时具有标准文档类与\AmS{} 文档类的一些特性。
-
-因此,文章的标题部分既可以按照标准文档类 \textsf{article} 的写法来写:
-
-\begin{code}
-\title{(*\meta{title}*)}
-\author{(*\meta{author}*)\thanks{(*\meta{text}*)}}
-\date{(*\meta{date}*)}
-\maketitle
-\begin{abstract}
- (*\meta{abstract}*)
-\end{abstract}
-\begin{keyword}
- (*\meta{keywords}*)
-\end{keyword}
-\end{code}
-
-也可以按照 \AmS{} 文档类的方式来写:
-
-\begin{code}
-\title{(*\meta{title}*)}
-\author{(*\meta{author}*)}
-\thanks{(*\meta{text}*)}
-\address{(*\meta{address}*)}
-\email{(*\meta{email}*)}
-\date{(*\meta{date}*)}
-\keywords{(*\meta{keywords}*)}
-\subjclass{(*\meta{subjclass}*)}
-\begin{abstract}
- (*\meta{abstract}*)
-\end{abstract}
-\maketitle
-\end{code}
-
-作者信息可以包含多组,输入方式为:
-
-\begin{code}
-\author{(*\meta{author 1}*)}
-\address{(*\meta{address 1}*)}
-\email{(*\meta{email 1}*)}
-\author{(*\meta{author 2}*)}
-\address{(*\meta{address 2}*)}
-\email{(*\meta{email 2}*)}
-...
-\end{code}
-
-其中 \lstinline|\address|、\lstinline|\curraddr|、\lstinline|\email| 的相互顺序是不重要的。
-
-\LevelTwoTitle{其他}
-
-\LevelThreeTitle{关于行号}
-行号可以随时开启和关闭。\lstinline|\linenumbers| 用来开启行号,\lstinline|\nolinenumbers| 用来关闭行号。标题、目录、索引等位置为了美观,不进行编号。
-
-\LevelThreeTitle{关于标题中的脚注}
-在 \lstinline|\section| 或 \lstinline|\subsection| 中,如果想使用脚注,只能:
-\begin{itemize}
- \item 先写 \lstinline|\mbox{\protect\footnotemark}|,
- \item 再在后面用 \lstinline|\footnotetext{...}|。
-\end{itemize}
-这是标题使用下划线装饰之后带来的一个缺点。
-
-\LevelThreeTitle{关于QED符号}
-由于定理类环境中的字体和正文字体是一样的,为了方便看出定理类环境在哪里结束,在其结尾处放置了一个空心的QED符号。然而,如果你的定理是由公式或者列表结尾的,这个符号就无法自动地放在正确的位置。这时,你需要手动在公式或列表最后一个条目的后面加上 \lstinline|\qedhere|,以让QED符号显示到这一行的最后。
-
-\LevelOneTitle{目前存在的问题}
-
-\begin{itemize}[itemsep=.6em]
- \item 对于字体的设置仍然不够完善。
- \item 由于很多核心功能建立在 \ProjLib{} 工具箱的基础上,因此 \minimalist{} (进而 \minimart{}、\einfart{} 与 \minimbook{}、\simplivre{}) 自然继承了其所有问题。详情可以参阅 \ProjLib{} 用户文档的“目前存在的问题”这一小节。
- \item 错误处理功能不完善,在出现一些问题时没有相应的错误提示。
- \item 代码中仍有许多可优化之处。
-\end{itemize}
-
-
-\end{document}
-\endinput
-%%
-%% End of file `einfart/einfart-doc-cn.tex'.
Deleted: trunk/Master/texmf-dist/doc/latex/einfart/einfart-doc-en.pdf
===================================================================
(Binary files differ)
Deleted: trunk/Master/texmf-dist/doc/latex/einfart/einfart-doc-en.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/einfart/einfart-doc-en.tex 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/doc/latex/einfart/einfart-doc-en.tex 2023-01-02 21:23:26 UTC (rev 65436)
@@ -1,558 +0,0 @@
-\documentclass[classical, simple name]{einfart}
-
-\linenumbers % Enable line numbers
-
-%%================================
-%% Import toolkit
-%%================================
-\usepackage{ProjLib}
-\usepackage{longtable} % breakable tables
-\usepackage{hologo} % more TeX logo
-
-\usepackage{blindtext}
-
-\UseLanguage{English}
-
-%%================================
-%% For typesetting code
-%%================================
-\usepackage{listings}
-\usepackage{xcolor}
-\usepackage{setspace}
-\definecolor{code-main}{RGB}{70,130,180}
-\definecolor{code-expl3}{RGB}{240,50,60}
-\definecolor{code-option}{RGB}{40,110,20}
-\definecolor{code-keys}{RGB}{100,130,150}
-\definecolor{code-comment}{RGB}{20,120,80}
-\definecolor{code-background}{gray}{0.99}
-\lstset{
- language = [LaTeX]TeX,
- basicstyle = \ttfamily,
- keywordstyle = \color{code-main},
- commentstyle = \color{code-comment},
- showstringspaces = false,
- breaklines = true,
- frame = lines,
- backgroundcolor = \color{code-background},
- flexiblecolumns = true,
- escapeinside = {(*}{*)},
- alsoletter = {_,:},
- % numbers = left,
- % firstnumber = last,
- numberstyle = \scriptsize\ttfamily,
- stepnumber = 1,
- numbersep = 5pt,
-}
-\newcommand{\meta}[1]{$\langle${\normalfont\itshape#1}$\rangle$}
-\lstset{% LaTeX2 commands
- classoffset = 0,
- texcsstyle =* \color{code-main},
- moretexcs =
- {
- linenumbers,nolinenumbers,
- part,parttext,chapter,section,subsection,subsubsection,
- frontmatter,mainmatter,backmatter,
- tableofcontents,
- href,
- color,
- NameTheorem,CreateTheorem,
- cref,
- ProjLib,
- DNF,
- UseLanguage,UseOtherLanguage,AddLanguageSetting,
- maketitle,address,curraddr,email,keywords,subjclass,thanks,dedicatory,TheDate,
- qedhere,
- }
-}
-\lstset{% LaTeX3 commands
- classoffset = 1,
- texcsstyle =* \color{code-expl3},
- moretexcs =
- {
- }
-}
-\lstnewenvironment{code}{\setstretch{1.05}\LocallyStopLineNumbers}{\ResumeLineNumbers\vspace{-.3\baselineskip}\vspace{-.5\parskip}}
-\lstnewenvironment{code*}{\setstretch{1.05}\lstset{numbers=left}\LocallyStopLineNumbers}{\ResumeLineNumbers\vspace{-.3\baselineskip}\vspace{-.5\parskip}}
-
-\newcommand{\classoption}[1]{\texttt{\textcolor{code-option}{#1}}}
-\newcommand{\packageoption}[1]{\texttt{\textcolor{code-option}{#1}}}
-\newcommand{\commandoption}[1]{\texttt{\textcolor{code-keys}{#1}}}
-
-%%================================
-%% tip
-%%================================
-\usepackage[many]{tcolorbox}
-\newenvironment{tip}[1][Tip]
- {%
- \LocallyStopLineNumbers%
- \begin{tcolorbox}[breakable,
- enhanced,
- width = \textwidth,
- colback = paper, colbacktitle = paper,
- colframe = gray!50, boxrule=0.2mm,
- coltitle = black,
- fonttitle = \sffamily,
- attach boxed title to top left = {yshift=-\tcboxedtitleheight/2, xshift=.5cm},
- boxed title style = {boxrule=0pt, colframe=paper},
- before skip = 3mm,
- after skip = 3mm,
- top = 2.5mm,
- bottom = 1.5mm,
- title={\scshape\sffamily #1}]%
- }
- {%
- \end{tcolorbox}%
- \ResumeLineNumbers%
- }
-
-%%================================
-%% Names
-%%================================
-\providecommand{\minimalist}{\textsf{minimalist}}
-\providecommand{\minimart}{\textsf{minimart}}
-\providecommand{\minimbook}{\textsf{minimbook}}
-\providecommand{\einfart}{\textsf{einfart}}
-\providecommand{\simplivre}{\textsf{simplivre}}
-
-%%================================
-%% Titles
-%%================================
-\let\LevelOneTitle\section
-\let\LevelTwoTitle\subsection
-\let\LevelThreeTitle\subsubsection
-
-%%================================
-%% Main text
-%%================================
-\begin{document}
-
-\def\PackageVersion{2022/09/03}
-
-\title{\einfart{}, write your articles in a simple and clear way}
-\author{Jinwen XU}
-\thanks{Corresponding to: \texttt{\einfart{} \PackageVersion}}
-\email{\href{mailto:ProjLib at outlook.com}{ProjLib at outlook.com}}
-\date{\TheDate{\PackageVersion}[only-year-month], in Paris}
-
-\maketitle
-
-\begin{abstract}
- \einfart{} is part of the \minimalist{} class series, whose name is taken from German word ``einfach'' (``simple''), combined with the first three letters of ``artikel'' (``article''). The entire collection includes \minimart{} and \einfart{} for typesetting articles, and \minimbook{} and \simplivre{} for typesetting books. My original intention in designing them was to write drafts and notes that look simple yet not shabby.
-
- \einfart{} has multi-language support, including Chinese (simplified and traditional), English, French, German, Italian, Japanese, Portuguese (European and Brazilian), Russian and Spanish. These languages can be switched seamlessly in a single document. Due to the usage of custom fonts, \einfart{} requires \hologo{XeLaTeX} or \hologo{LuaLaTeX} to compile.
-
- This documentation is typeset using \einfart{} (with the option \classoption{classical}). You can think of it as a short introduction and demonstration.
-\end{abstract}
-
-
-\setcounter{tocdepth}{2}
-\tableofcontents
-
-
-\medskip
-\LevelOneTitle*{Before you start}
-\addcontentsline{toc}{section}{Before you start}
-In order to use the package or classes described here, you need to:
-\begin{itemize}
- \item install TeX Live or MikTeX of the latest possible version, and make sure that \texttt{minimalist} and \texttt{projlib} are correctly installed in your \TeX{} system.
- \item download and install the required fonts, see the section "On the default fonts".
- \item be familiar with the basic usage of \LaTeX{}, and know how to compile your document with \hologo{pdfLaTeX}, \hologo{XeLaTeX} or \hologo{LuaLaTeX}.
-\end{itemize}
-
-
-\LevelOneTitle{Usage and examples}
-
-\LevelTwoTitle{How to load it}
-
-One only needs to put
-
-\begin{code}
-\documentclass{einfart}
-\end{code}
-as the first line to use the \einfart{} class. Please note that you need to use either \hologo{XeLaTeX} or \hologo{LuaLaTeX} engine to compile.
-
-\LevelTwoTitle{Example - A complete document}
-
-Let's first look at a complete document.
-
-\begin{code*}
-\documentclass{einfart}
-\usepackage{ProjLib}
-
-\UseLanguage{French}
-
-\begin{document}
-
-\title{(*\meta{title}*)}
-\author{(*\meta{author}*)}
-\date{\TheDate{2022-04-01}}
-
-\maketitle
-
-\begin{abstract}
- Ceci est un résumé. \DNF<(*\meta{some hint}*)>
-\end{abstract}
-\begin{keyword}
- AAA, BBB, CCC, DDD, EEE
-\end{keyword}
-
-\section{Un théorème}
-
-\begin{theorem}\label{thm:abc}
- Ceci est un théorème.
-\end{theorem}
-Référence du théorème: \cref{thm:abc}
-
-\end{document}
-\end{code*}
-
-
-If you find this example a little complicated, don't worry. Let's now look at this example piece by piece.
-
-\LevelThreeTitle{Initialization}
-
-\medskip
-\begin{code}
-\documentclass{einfart}
-\usepackage{ProjLib}
-\end{code}
-
-Initialization is straightforward. The first line loads the document class \einfart{}, and the second line loads the \ProjLib{} toolkit to obtain some additional functionalities.
-
-\LevelThreeTitle{Set the language}
-
-\medskip
-\begin{code}
-\UseLanguage{French}
-\end{code}
-
-This line indicates that French will be used in the document (by the way, if only English appears in your article, then there is no need to set the language). You can also switch the language in the same way later in the middle of the text. Supported languages include Simplified Chinese, Traditional Chinese, Japanese, English, French, German, Spanish, Portuguese, Brazilian Portuguese and Russian%
-.%
-
-For detailed description of this command and more related commands, please refer to the section on the multi-language support.
-
-\LevelThreeTitle{Title, author information, abstract and keywords}
-
-\medskip
-\begin{code}
-\title{(*\meta{title}*)}
-\author{(*\meta{author}*)}
-\date{\TheDate{2022-04-01}}
-\maketitle
-
-\begin{abstract}
- (*\meta{abstract}*)
-\end{abstract}
-\begin{keyword}
- (*\meta{keywords}*)
-\end{keyword}
-\end{code}
-
-This part begins with the title and author information block. The example shows the basic usage, but in fact, you can also write:
-
-\begin{code}
-\author{(*\meta{author 1}*)}
-\address{(*\meta{address 1}*)}
-\email{(*\meta{email 1}*)}
-\author{(*\meta{author 2}*)}
-\address{(*\meta{address 2}*)}
-\email{(*\meta{email 2}*)}
-...
-\end{code}
-
-In addition, you may also write in the \AmS{} fashion, i.e.:
-
-\begin{code}
-\title{(*\meta{title}*)}
-\author{(*\meta{author 1}*)}
-\address{(*\meta{address 1}*)}
-\email{(*\meta{email 1}*)}
-\author{(*\meta{author 2}*)}
-\address{(*\meta{address 2}*)}
-\email{(*\meta{email 2}*)}
-\date{\TheDate{2022-04-01}}
-\subjclass{*****}
-\keywords{(*\meta{keywords}*)}
-
-\begin{abstract}
- (*\meta{abstract}*)
-\end{abstract}
-
-\maketitle
-\end{code}
-
-\LevelThreeTitle{Draft marks}
-
-\medskip
-\begin{code}
-\DNF<(*\meta{some hint}*)>
-\end{code}
-
-When you have some places that have not yet been finished yet, you can mark them with this command, which is especially useful during the draft stage.
-
-\LevelThreeTitle{Theorem-like environments}
-
-\medskip
-\begin{code}
-\begin{theorem}\label{thm:abc}
- Ceci est un théorème.
-\end{theorem}
-Référence du théorème: \cref{thm:abc}
-\end{code}
-
-Commonly used theorem-like environments have been pre-defined. Also, when referencing a theorem-like environment, it is recommended to use \lstinline|\cref{|\meta{label}\texttt{\}} --- in this way, there is no need to explicitly write down the name of the corresponding environment every time.
-
-\begin{tip}
-If you wish to switch to the standard class later, just replace the first two lines with:
-
-\begin{code}
-\documentclass{article}
-\usepackage[a4paper,margin=1in]{geometry}
-\usepackage[hidelinks]{hyperref}
-\usepackage[palatino,amsfashion]{ProjLib}
-\end{code}
-
-or to use the \AmS{} class:
-
-\begin{code}
-\documentclass{amsart}
-\usepackage[a4paper,margin=1in]{geometry}
-\usepackage[hidelinks]{hyperref}
-\usepackage[palatino]{ProjLib}
-\end{code}
-
-\end{tip}
-
-
-
-\LevelOneTitle{On the default fonts}
-By default, this document class uses Palatino Linotype as the English main font; Source Han Serif, Source Han Sans and Source Han Mono as the Chinese main font, sans serif font and typewriter font; and partially uses Neo Euler as the math font. You need to download and install these fonts by yourself. The Source Han font series can be downloaded at \url{https://github.com/adobe-fonts} (It is recommended to download the Super-OTC version, so that the download size is smaller). Neo Euler can be downloaded at \url{https://github.com/khaledhosny/euler-otf}. When the corresponding font is not installed, the font that comes with TeX Live will be used instead, and the effect may be discounted.
-
-In addition, Source Code Pro is used as the English sans serif font, New Computer Modern Mono as the English monospace font, as well as some symbols in the mathematical fonts of Asana Math, Tex Gyre Pagella Math, and Latin Modern Math. These fonts are already available in TeX Live or MikTeX, which means you don't need to install them yourself.
-
-
-\LevelOneTitle{The options}
-
-\einfart{} offers the following options:
-
-\begin{itemize}[label=,leftmargin=1.25em,itemindent=-1.25em]
- \item The language options \classoption{EN} / \classoption{english} / \classoption{English}, \classoption{FR} / \classoption{french} / \classoption{French}, etc.
- \begin{itemize}
- \item For the option names of a specific language, please refer to \meta{language name} in the next section. The first specified language will be used as the default language.
- \item The language options are optional, mainly for increasing the compilation speed. Without them the result would be the same, only slower.
- \end{itemize}
- \item \classoption{draft} or \classoption{fast}
- \begin{itemize}
- \item The option \verb|fast| enables a faster but slightly rougher style, main differences are:
- \begin{itemize}
- \item Use simpler math font configuration;
- \item Do not use \textsf{hyperref};
- \item Enable the fast mode of \ProjLib{} toolkit.
- \end{itemize}
- \end{itemize}
- \begin{tip}
- During the draft stage, it is recommended to use the \verb|fast| option to speed up compilation. When in \verb|fast| mode, there will be a watermark ``DRAFT'' to indicate that you are currently in the draft mode.
- \end{tip}
- \item \classoption{a4paper} or \classoption{b5paper}
- \begin{itemize}
- \item Paper size options. The default paper size is 7in $\times$ 10in.
- \end{itemize}
- \item \classoption{palatino}, \classoption{times}, \classoption{garamond}, \classoption{noto}, \classoption{biolinum} ~$|$~ \classoption{useosf}
- \begin{itemize}
- \item Font options. As the name suggest, font with corresponding name will be loaded.
- \item The \classoption{useosf} option is used to enable the old-style figures.
- \end{itemize}
- \item \classoption{use boldface}
- \begin{itemize}
- \item Allow boldface. When this option is enabled, the main title, the titles of all levels and the names of theorem-like environments will be bolded.
- \end{itemize}
- \item \classoption{classical}
- \begin{itemize}
- \item Classic mode. An antique-looking style will be used when this option is enabled, like in the current documentation.
- \end{itemize}
- \item \classoption{useindent}
- \begin{itemize}
- \item Use paragraph indentation instead of inter-paragraph spacing.
- \end{itemize}
- \item \classoption{runin}
- \begin{itemize}
- \item Use the ``runin'' style for \lstinline|\subsubsection|
- \end{itemize}
- \item \classoption{nothms}
- \begin{itemize}
- \item Pure text mode. Do not load theorem-like environments.
- \end{itemize}
- \item \classoption{nothmnum}, \classoption{thmnum} or \classoption{thmnum=}\meta{counter}
- \begin{itemize}
- \item Theorem-like environments will not be numbered / numbered in order 1, 2, 3... / numbered within \meta{counter}. If no option is used, they will be numbered within \texttt{chapter} (book) or \texttt{section} (article).
- \end{itemize}
- \item \classoption{regionalref}, \classoption{originalref}
- \begin{itemize}
- \item When referencing, whether the name of the theorem-like environment changes with the current language. The default is \classoption{regionalref}, \emph{i.e.}, the name corresponding to the current language is used; for example, when referencing a theorem-like environment in English context, the names "Theorem, Definition..." will be used no matter which language context the original environment is in. If \classoption{originalref} is enabled, then the name will always remain the same as the original place; for example, when referencing a theorem written in the French context, even if one is currently in the English context, it will still be displayed as ``Théorème''.
- \item In \texttt{fast} mode, the option \classoption{originalref} will have no effect.
- \end{itemize}
-\end{itemize}
-
-
-\LevelOneTitle{Instructions by topic}
-
-\LevelTwoTitle{Language configuration}
-
-\einfart{} has multi-language support, including Chinese (simplified and traditional), English, French, German, Italian, Japanese, Portuguese (European and Brazilian), Russian and Spanish. The language can be selected by the following macros:
-
-\begin{itemize}
- \item \lstinline|\UseLanguage{|\meta{language name}\lstinline|}| is used to specify the language. The corresponding setting of the language will be applied after it. It can be used either in the preamble or in the main body. When no language is specified, ``English'' is selected by default.
- \item \lstinline|\UseOtherLanguage{|\meta{language name}\lstinline|}{|\meta{content}\lstinline|}|, which uses the specified language settings to typeset \meta{content}. Compared with \lstinline|\UseLanguage|, it will not modify the line spacing, so line spacing would remain stable when CJK and Western texts are mixed.
-\end{itemize}
-
-\meta{language name} can be (it is not case sensitive, for example, \texttt{French} and \texttt{french} have the same effect):
-\begin{itemize}
- \item Simplified Chinese: \texttt{CN}, \texttt{Chinese}, \texttt{SChinese} or \texttt{SimplifiedChinese}
- \item Traditional Chinese: \texttt{TC}, \texttt{TChinese} or \texttt{TraditionalChinese}
- \item English: \texttt{EN} or \texttt{English}
- \item French: \texttt{FR} or \texttt{French}
- \item German: \texttt{DE}, \texttt{German} or \texttt{ngerman}
- \item Italian: \texttt{IT} or \texttt{Italian}
- \item Portuguese: \texttt{PT} or \texttt{Portuguese}
- \item Portuguese (Brazilian): \texttt{BR} or \texttt{Brazilian}
- \item Spanish: \texttt{ES} or \texttt{Spanish}
- \item Japanese: \texttt{JP} or \texttt{Japanese}
- \item Russian: \texttt{RU} or \texttt{Russian}
-\end{itemize}
-
-\medskip
-In addition, you can also add new settings to selected language:
-\begin{itemize}
- \item \lstinline|\AddLanguageSetting{|\meta{settings}\lstinline|}|
- \begin{itemize}
- \item Add \meta{settings} to all supported languages.
- \end{itemize}
- \item \lstinline|\AddLanguageSetting(|\meta{language name}\lstinline|){|\meta{settings}\lstinline|}|
- \begin{itemize}
- \item Add \meta{settings} to the selected language \meta{language name}.
- \end{itemize}
-\end{itemize}
-For example, \lstinline|\AddLanguageSetting(German){\color{orange}}| can make all German text displayed in orange (of course, one then need to add \lstinline|\AddLanguageSetting{\color{black}}| in order to correct the color of the text in other languages).
-
-\LevelTwoTitle{Theorems and how to reference them}
-
-Environments such as \texttt{definition} and \texttt{theorem} have been preset and can be used directly.
-
-More specifically, preset environments include:
-\texttt{assumption}, \texttt{axiom}, \texttt{conjecture}, \texttt{convention}, \texttt{corollary}, \texttt{definition}, \texttt{definition-proposition}, \texttt{definition-theorem}, \texttt{example}, \texttt{exercise}, \texttt{fact}, \texttt{hypothesis}, \texttt{lemma}, \texttt{notation}, \texttt{observation}, \texttt{problem}, \texttt{property}, \texttt{proposition}, \texttt{question}, \texttt{remark}, \texttt{theorem}, and the corresponding unnumbered version with an asterisk \lstinline|*| in the name. The titles will change with the current language. For example, \texttt{theorem} will be displayed as ``Theorem" in English mode and ``Théorème" in French mode.
-
-When referencing a theorem-like environment, it is recommended to use \lstinline|\cref{|\meta{label}\texttt{\}}. In this way, there is no need to explicitly write down the name of the corresponding environment every time.
-
-\begin{tip}[Example]
-\begin{code}
-\begin{definition}[Strange things] \label{def: strange} ...
-\end{code}
-
-will produce
-\begin{definition}[Strange things]\label{def: strange}
- This is the definition of some strange objects. There is approximately a one-line spacing before and after the theorem environment, and there will be a symbol to mark the end of the environment.
-\end{definition}
-
-\lstinline|\cref{def: strange}| will be displayed as: \cref{def: strange}.
-
-After using \lstinline|\UseLanguage{French}|, a theorem will be displayed as:
-
-\UseLanguage{French}
-\begin{theorem}[Inutile]\label{thm}
- Un théorème en français.
-\end{theorem}
-
-By default, when referenced, the name of the theorem matches the current context. For example, the definition above will be displayed in French in the current French context: \cref{def: strange,thm}. If you want the name of the theorem to always match the language of the context in which the theorem is located, you can add \texttt{originalref} to the global options.
-\end{tip}
-
-\UseLanguage{English}
-
-\begin{tip}
- Please refer to the documentation of the package \textsf{create-theorem} to see how to declare new theorem-like environments.
-\end{tip}
-
-\LevelTwoTitle{Draft mark}
-
-You can use \lstinline|\DNF| to mark the unfinished part. For example:
-\begin{itemize}
- \item \lstinline|\DNF| or \lstinline|\DNF<...>|. The effect is: \DNF~ or \DNF<...>. \\The prompt text changes according to the current language. For example, it will be displayed as \UseOtherLanguage{French}{\DNF} in French mode.
-\end{itemize}
-
-\LevelTwoTitle{Title, abstract and keywords}
-
-\einfart{} has both the features of standard classes and that of the \AmS{} classes.
-
-Therefore, the title part can either be written in the usual way, in accordance with the standard class \textsf{article}:
-
-\begin{code}
-\title{(*\meta{title}*)}
-\author{(*\meta{author}*)\thanks{(*\meta{text}*)}}
-\date{(*\meta{date}*)}
-\maketitle
-\begin{abstract}
- (*\meta{abstract}*)
-\end{abstract}
-\begin{keyword}
- (*\meta{keywords}*)
-\end{keyword}
-\end{code}
-
-or written in the way of \AmS{} classes:
-
-\begin{code}
-\title{(*\meta{title}*)}
-\author{(*\meta{author}*)}
-\thanks{(*\meta{text}*)}
-\address{(*\meta{address}*)}
-\email{(*\meta{email}*)}
-\date{(*\meta{date}*)}
-\keywords{(*\meta{keywords}*)}
-\subjclass{(*\meta{subjclass}*)}
-\begin{abstract}
- (*\meta{abstract}*)
-\end{abstract}
-\maketitle
-\end{code}
-
-The author information can contain multiple groups, written as:
-
-\begin{code}
-\author{(*\meta{author 1}*)}
-\address{(*\meta{address 1}*)}
-\email{(*\meta{email 1}*)}
-\author{(*\meta{author 2}*)}
-\address{(*\meta{address 2}*)}
-\email{(*\meta{email 2}*)}
-...
-\end{code}
-
-Among them, the mutual order of \lstinline|\address|, \lstinline|\curraddr|, \lstinline|\email| is not important.
-
-\LevelTwoTitle{Miscellaneous}
-
-\LevelThreeTitle{On the line numbers}
-Line numbers can be turned on and off at any time. \lstinline|\linenumbers| is used to enable the line numbers, and \lstinline|\nolinenumbers| is used to disable them. For the sake of beauty, the title, table of contents, index and some other elements are not numbered.
-
-\LevelThreeTitle{On the footnotes in the title}
-In \lstinline|\section| or \lstinline|\subsection| , if you wish to add footnotes, you can only:
-\begin{itemize}
- \item first write \lstinline|\mbox{\protect\footnotemark}|,
- \item then add \lstinline|\footnotetext{...}| afterwards.
-\end{itemize}
-This is a disadvantage brought about by the underline decoration of the title.
-
-
-\LevelOneTitle{Known issues}
-
-\begin{itemize}[itemsep=.6em]
- \item The font settings are still not perfect.
- \item Since many features are based on the \ProjLib{} toolkit, \minimalist{} (and hence \minimart{}, \einfart{} and \minimbook{}, \simplivre{}) inherits all its problems. For details, please refer to the ``Known Issues'' section of the \ProjLib{} documentation.
- \item The error handling mechanism is incomplete: there is no corresponding error prompt when some problems occur.
- \item There are still many things that can be optimized in the code.
-\end{itemize}
-
-
-\end{document}
-\endinput
-%%
-%% End of file `einfart/einfart-doc-en.tex'.
Deleted: trunk/Master/texmf-dist/doc/latex/einfart/einfart-doc-fr.pdf
===================================================================
(Binary files differ)
Deleted: trunk/Master/texmf-dist/doc/latex/einfart/einfart-doc-fr.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/einfart/einfart-doc-fr.tex 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/doc/latex/einfart/einfart-doc-fr.tex 2023-01-02 21:23:26 UTC (rev 65436)
@@ -1,555 +0,0 @@
-\documentclass[classical, simple name]{einfart}
-
-\linenumbers % Enable line numbers
-
-%%================================
-%% Import toolkit
-%%================================
-\usepackage{ProjLib}
-\usepackage{longtable} % breakable tables
-\usepackage{hologo} % more TeX logo
-
-\usepackage{blindtext}
-
-\UseLanguage{French}
-
-%%================================
-%% For typesetting code
-%%================================
-\usepackage{listings}
-\usepackage{xcolor}
-\usepackage{setspace}
-\definecolor{code-main}{RGB}{70,130,180}
-\definecolor{code-expl3}{RGB}{240,50,60}
-\definecolor{code-option}{RGB}{40,110,20}
-\definecolor{code-keys}{RGB}{100,130,150}
-\definecolor{code-comment}{RGB}{20,120,80}
-\definecolor{code-background}{gray}{0.99}
-\lstset{
- language = [LaTeX]TeX,
- basicstyle = \ttfamily,
- keywordstyle = \color{code-main},
- commentstyle = \color{code-comment},
- showstringspaces = false,
- breaklines = true,
- frame = lines,
- backgroundcolor = \color{code-background},
- flexiblecolumns = true,
- escapeinside = {(*}{*)},
- alsoletter = {_,:},
- % numbers = left,
- % firstnumber = last,
- numberstyle = \scriptsize\ttfamily,
- stepnumber = 1,
- numbersep = 5pt,
-}
-\newcommand{\meta}[1]{$\langle${\normalfont\itshape#1}$\rangle$}
-\lstset{% LaTeX2 commands
- classoffset = 0,
- texcsstyle =* \color{code-main},
- moretexcs =
- {
- linenumbers,nolinenumbers,
- part,parttext,chapter,section,subsection,subsubsection,
- frontmatter,mainmatter,backmatter,
- tableofcontents,
- href,
- color,
- NameTheorem,CreateTheorem,
- cref,
- ProjLib,
- DNF,
- UseLanguage,UseOtherLanguage,AddLanguageSetting,
- maketitle,address,curraddr,email,keywords,subjclass,thanks,dedicatory,TheDate,
- qedhere,
- }
-}
-\lstset{% LaTeX3 commands
- classoffset = 1,
- texcsstyle =* \color{code-expl3},
- moretexcs =
- {
- }
-}
-\lstnewenvironment{code}{\setstretch{1.05}\LocallyStopLineNumbers}{\ResumeLineNumbers\vspace{-.3\baselineskip}\vspace{-.5\parskip}}
-\lstnewenvironment{code*}{\setstretch{1.05}\lstset{numbers=left}\LocallyStopLineNumbers}{\ResumeLineNumbers\vspace{-.3\baselineskip}\vspace{-.5\parskip}}
-
-\newcommand{\classoption}[1]{\texttt{\textcolor{code-option}{#1}}}
-\newcommand{\packageoption}[1]{\texttt{\textcolor{code-option}{#1}}}
-\newcommand{\commandoption}[1]{\texttt{\textcolor{code-keys}{#1}}}
-
-%%================================
-%% tip
-%%================================
-\usepackage[many]{tcolorbox}
-\newenvironment{tip}[1][Astuce]
- {%
- \LocallyStopLineNumbers%
- \begin{tcolorbox}[breakable,
- enhanced,
- width = \textwidth,
- colback = paper, colbacktitle = paper,
- colframe = gray!50, boxrule=0.2mm,
- coltitle = black,
- fonttitle = \sffamily,
- attach boxed title to top left = {yshift=-\tcboxedtitleheight/2, xshift=.5cm},
- boxed title style = {boxrule=0pt, colframe=paper},
- before skip = 3mm,
- after skip = 3mm,
- top = 2.5mm,
- bottom = 1.5mm,
- title={\scshape\sffamily #1}]%
- }
- {%
- \end{tcolorbox}%
- \ResumeLineNumbers%
- }
-
-%%================================
-%% Names
-%%================================
-\providecommand{\minimalist}{\textsf{minimalist}}
-\providecommand{\minimart}{\textsf{minimart}}
-\providecommand{\minimbook}{\textsf{minimbook}}
-\providecommand{\einfart}{\textsf{einfart}}
-\providecommand{\simplivre}{\textsf{simplivre}}
-
-%%================================
-%% Titles
-%%================================
-\let\LevelOneTitle\section
-\let\LevelTwoTitle\subsection
-\let\LevelThreeTitle\subsubsection
-
-%%================================
-%% Main text
-%%================================
-\begin{document}
-
-\def\PackageVersion{2022/09/03}
-
-\title{\einfart{}, écrivez vos articles de manière simple et claire}
-\author{Jinwen XU}
-\thanks{Correspondant à : \texttt{\einfart{} \PackageVersion}}
-\email{\href{mailto:ProjLib at outlook.com}{ProjLib at outlook.com}}
-\date{\TheDate{\PackageVersion}[only-year-month], à Paris}
-
-\maketitle
-
-\begin{abstract}
- \einfart{} fait partie de la série de classes \minimalist{}, dont le nom est tiré du mot allemand «~einfach~» (simple), combiné avec les trois premières lettres de «~artikel~» (article) . L'ensemble de la collection comprend \minimart{} et \einfart{} pour la composition d'articles, et \minimbook{} et \simplivre{} pour celle des livres. Mon intention initiale en les concevant était d'écrire des brouillons et des notes qui semblent simples mais pas grossières.
-
- \einfart{} prend en charge plusieurs langues, notamment le chinois (simplifié et traditionnel), l'anglais, le français, l'allemand, l'italien, le japonais, le portugais (européen et brésilien), le russe et l'espagnol. Ces langues peuvent être commutées de manière transparente dans un seul document. En raison de l'utilisation de polices personnalisées, \einfart{} demande soit \hologo{XeLaTeX} soit \hologo{LuaLaTeX} pour la compilation.
-
- Cette documentation est composée à l'aide de \einfart{} (avec l'option \classoption{classical}). Vous pouvez le considérer comme une courte introduction et une démonstration.
-\end{abstract}
-
-
-\setcounter{tocdepth}{2}
-\tableofcontents
-
-
-\LevelOneTitle*{Avant de commencer}
-\addcontentsline{toc}{section}{Avant de commencer}
-
-Pour utiliser les classes de documents décrites ici, vous devez :
-\begin{itemize}
- \item installer TeX Live ou MikTeX de la dernière version possible, et vous assurer que \texttt{minimalist} et \texttt{projlib} sont correctement installés dans votre système \TeX{}.
- \item télécharger et installer les polices requises, voir «~À propos des polices par défaut~».
- \item être familiarisé avec l'utilisation de base de \LaTeX{}, et savoir comment compiler vos documents avec \hologo{pdfLaTeX}, \hologo{XeLaTeX} ou \hologo{LuaLaTeX}.
-\end{itemize}
-
-
-\LevelOneTitle{Utilisation et exemples}
-
-\LevelTwoTitle{Comment l'ajouter}
-
-Il suffit simplement de mettre
-
-\begin{code}
-\documentclass{einfart}
-\end{code}
-
-comme première ligne pour utiliser la classe \einfart{}. Veuillez noter que vous devez utiliser le moteur \hologo{XeLaTeX} ou \hologo{LuaLaTeX} pour compiler.
-
-\LevelTwoTitle{Exemple - Un document complet}
-
-Regardons d'abord un document complet.
-
-\begin{code*}
-\documentclass{einfart}
-\usepackage{ProjLib}
-
-\UseLanguage{French}
-
-\begin{document}
-
-\title{(*\meta{title}*)}
-\author{(*\meta{author}*)}
-\date{\TheDate{2022-04-01}}
-
-\maketitle
-
-\begin{abstract}
- Ceci est un résumé. \DNF<(*\meta{some hint}*)>
-\end{abstract}
-\begin{keyword}
- AAA, BBB, CCC, DDD, EEE
-\end{keyword}
-
-\section{Un théorème}
-
-\begin{theorem}\label{thm:abc}
- Ceci est un théorème.
-\end{theorem}
-Référence du théorème: \cref{thm:abc}
-
-\end{document}
-\end{code*}
-
-
-Si vous trouvez cela un peu compliqué, ne vous inquiétez pas. Examinons maintenant cet exemple pièce par pièce.
-
-\LevelThreeTitle{Initialisation}
-
-\medskip
-\begin{code}
-\documentclass{einfart}
-\usepackage{ProjLib}
-\end{code}
-
-L'initialisation est simple. La première ligne ajoute la classe de document \einfart{}, et la deuxième ligne ajoute la boîte à outils \ProjLib{} pour obtenir des fonctionnalités supplémentaires.
-
-\LevelThreeTitle{Choisir la langue}
-
-\medskip
-\begin{code}
-\UseLanguage{French}
-\end{code}
-
-Cette ligne indique que le français sera utilisé dans le document (d'ailleurs, si seul l'anglais apparaît dans votre article, alors il n'est pas nécessaire de choisir la langue). Vous pouvez également changer de langue de la même manière plus tard au milieu du texte. Les langues prises en charge sont les suivantes : chinois simplifié, chinois traditionnel, japonais, anglais, français, allemand, espagnol, portugais, portugais brésilien et russe.
-
-Pour une description détaillée de cette commande et d'autres commandes associées, veuillez vous référer à la section sur le support multilingue.
-
-\LevelThreeTitle{Titre, informations sur l'auteur, résumé et mots-clés}
-
-\medskip
-\begin{code}
-\title{(*\meta{title}*)}
-\author{(*\meta{author}*)}
-\date{\TheDate{2022-04-01}}
-\maketitle
-
-\begin{abstract}
- (*\meta{abstract}*)
-\end{abstract}
-\begin{keyword}
- (*\meta{keywords}*)
-\end{keyword}
-\end{code}
-
-Cette partie commence par le titre et le bloc d'informations sur l'auteur. L'exemple montre l'utilisation de base, mais en fait, vous pouvez également écrire comme :
-
-\begin{code}
-\author{(*\meta{author 1}*)}
-\address{(*\meta{address 1}*)}
-\email{(*\meta{email 1}*)}
-\author{(*\meta{author 2}*)}
-\address{(*\meta{address 2}*)}
-\email{(*\meta{email 2}*)}
-...
-\end{code}
-
-De plus, vous pouvez également écrire à la manière \AmS{}, c'est-à-dire :
-
-\begin{code}
-\title{(*\meta{title}*)}
-\author{(*\meta{author 1}*)}
-\address{(*\meta{address 1}*)}
-\email{(*\meta{email 1}*)}
-\author{(*\meta{author 2}*)}
-\address{(*\meta{address 2}*)}
-\email{(*\meta{email 2}*)}
-\date{\TheDate{2022-04-01}}
-\subjclass{*****}
-\keywords{(*\meta{keywords}*)}
-
-\begin{abstract}
- (*\meta{abstract}*)
-\end{abstract}
-
-\maketitle
-\end{code}
-
-\LevelThreeTitle{Marques de brouillon}
-
-\medskip
-\begin{code}
-\DNF<(*\meta{some hint}*)>
-\end{code}
-Lorsque vous avez des endroits qui ne sont pas encore finis, vous pouvez les marquer avec cette commande, ce qui est particulièrement utile lors de la phase de brouillon.
-
-\LevelThreeTitle{Environnements de type théorème}
-
-\medskip
-\begin{code}
-\begin{theorem}\label{thm:abc}
- Ceci est un théorème.
-\end{theorem}
-Référence du théorème: \cref{thm:abc}
-\end{code}
-
-Les environnements de type théorème couramment utilisés ont été prédéfinis. De plus, lors du référencement d'un environnement de type théorème, il est recommandé d'utiliser \lstinline|\cref{|\meta{label}\texttt{\}} --- de cette manière, il ne serait pas nécessaire d'écrire explicitement le nom de l'environnement correspondant à chaque fois.
-
-\begin{tip}
-Si vous souhaitez utiliser la classe standard à la place plus tard, remplacez simplement les deux premières lignes par :
-
-\begin{code}
-\documentclass{article}
-\usepackage[a4paper,margin=1in]{geometry}
-\usepackage[hidelinks]{hyperref}
-\usepackage[palatino,amsfashion]{ProjLib}
-\end{code}
-
-ou utilisez la classe \AmS{} :
-
-\begin{code}
-\documentclass{amsart}
-\usepackage[a4paper,margin=1in]{geometry}
-\usepackage[hidelinks]{hyperref}
-\usepackage[palatino]{ProjLib}
-\end{code}
-\vspace{-.5\baselineskip}
-\end{tip}
-
-
-
-\LevelOneTitle{À propos des polices par défaut}
-Par défaut, cette classe de document utilise Palatino Linotype comme police anglaise principale; Source Han Serif, Source Han Sans et Source Han Mono comme police chinoise principale, sans empattement et monospace; et utilise partiellement Neo Euler comme police mathématique. Vous devez télécharger et installer ces polices vous-même. La série de polices Source Han peut être téléchargée sur \url{https://github.com/adobe-fonts} (il est recommandé de télécharger la version Super-OTC, afin que la taille de téléchargement soit plus petite). Neo Euler peut être téléchargé sur \url{https://github.com/khaledhosny/euler-otf}. Lorsque la police correspondante n'est pas installée, la police fournie avec TeX Live sera utilisée à la place et l'effet peut être réduit.
-
-De plus, Source Code Pro est utilisé comme police anglaise sans empattement, New Computer Modern Mono comme police anglaise monospace, ainsi que certains symboles dans les polices mathématiques Asana Math, Tex Gyre Pagella Math et Latin Modern Math. Ces polices sont déjà disponibles dans TeX Live ou MikTeX, ce qui signifie que vous n'avez pas besoin de les installer vous-même.
-
-
-
-\LevelOneTitle{Les options}
-
-
-\begin{itemize}[label=,leftmargin=1.25em,itemindent=-1.25em]
- \item Les options de langue \classoption{EN} / \classoption{english} / \classoption{English}, \classoption{FR} / \classoption{french} / \classoption{French}, etc.
- \begin{itemize}
- \item Pour les noms d'options d'une langue spécifique, veuillez vous référer à \meta{language name} dans la section suivante. La première langue spécifiée sera considérée comme la langue par défaut.
- \item Les options de langue ne sont pas nécessaires, elles servent principalement à augmenter la vitesse de compilation. Sans eux, le résultat serait le même, justement plus lent.
- \end{itemize}
- \item \classoption{draft} ou \classoption{fast}
- \begin{itemize}
- \item L'option \verb|fast| permet un style plus rapide mais légèrement plus rugueux, les principales différences sont :
- \begin{itemize}
- \item Utilisez une configuration de police mathématique plus simple ;
- \item N'utilisez pas \textsf{hyperref} ;
- \item Activez le mode rapide de la boîte à outils \ProjLib{}.
- \end{itemize}
- \end{itemize}
- \begin{tip}
- Pendant la phase de brouillon, il est recommandé d'utiliser le \verb|fast| option pour accélérer la compilation. Quand dans \verb|fast| mode, il y aura un filigrane ``DRAFT'' pour indiquer que vous êtes actuellement en mode brouillon.
- \end{tip}
- \item \classoption{a4paper} ou \classoption{b5paper}
- \begin{itemize}
- \item Options de format de papier. Le format de papier par défaut est 7 pouces $\times$ 10 pouces.
- \end{itemize}
- \item \classoption{palatino}, \classoption{times}, \classoption{garamond}, \classoption{noto}, \classoption{biolinum} ~$|$~ \classoption{useosf}
- \begin{itemize}
- \item Options de police. Comme son nom l'indique, la police avec le nom correspondant sera utilisée.
- \item L'option \classoption{useosf} est pour activer les chiffres à l'ancienne.
- \end{itemize}
- \item \classoption{use boldface}
- \begin{itemize}
- \item Afficher les titres en gras. Lorsque cette option est utilisée, le titre principal, les titres de tous les niveaux et les noms des environnements de type théorème seront en gras.
- \end{itemize}
- \item \classoption{classical}
- \begin{itemize}
- \item Mode classique. Un style antique sera utilisé lorsque cette option est activée, comme dans la documentation actuelle.
- \end{itemize}
- \item \classoption{useindent}
- \begin{itemize}
- \item Utilisez l'indentation des paragraphes au lieu de l'espacement entre les paragraphes.
- \end{itemize}
- \item \classoption{runin}
- \begin{itemize}
- \item Utilisez le style «~runin~» pour \lstinline|\subsubsection|
- \end{itemize}
- \item \classoption{nothms}
- \begin{itemize}
- \item Mode texte pur. Ne pas définir les environnements de type théorème.
- \end{itemize}
- \item \classoption{nothmnum}, \classoption{thmnum} ou \classoption{thmnum=}\meta{counter}
- \begin{itemize}
- \item Les environnements de type théorème ne seront pas numérotés / numérotés dans l'ordre 1, 2, 3... / numérotés dans \meta{counter}. Si aucune option n'est utilisée, ils seront numérotés dans \texttt{chapter} (livre) ou \texttt{section} (article).
- \end{itemize}
- \item \classoption{regionalref}, \classoption{originalref}
- \begin{itemize}
- \item Lors du référencement, si le nom de l'environnement de type théorème change avec la langue actuelle. Par défaut \classoption{regionalref} est activé, c'est-à-dire que le nom correspondant à la langue courante est utilisé ; par exemple, lors du référencement d'un environnement de type théorème dans un contexte français, les noms «~Théorème, Définition ...~» seront utilisés quel que soit le contexte linguistique dans lequel se trouve l'environnement d'origine. Si \classoption{originalref} est activé, alors le nom restera toujours le même que l'environnement d'origine ; par exemple, lors du référencement d'un théorème écrit dans le contexte français, même si l'on est actuellement dans le contexte anglais, il sera toujours affiché comme «~Théorème~».
- \item En mode \texttt{fast}, l'option \classoption{originalref} n'aura aucun effet.
- \end{itemize}
-\end{itemize}
-
-\LevelOneTitle{Instructions par sujet}
-
-\LevelTwoTitle{Configurer la langue}
-
-\einfart{} prend en charge plusieurs langues, notamment le chinois (simplifié et traditionnel), l'anglais, le français, l'allemand, l'italien, le japonais, le portugais (européen et brésilien), le russe et l'espagnol. La langue peut être sélectionnée par les macros suivantes :
-
-\begin{itemize}
- \item \lstinline|\UseLanguage{|\meta{language name}\lstinline|}| est utilisé pour spécifier la langue. Le réglage correspondant de la langue sera appliqué après celui-ci. Il peut être utilisé soit dans le préambule ou dans le texte. Lorsqu'aucune langue n'est spécifiée, « English » est sélectionné par défaut.
- \item \lstinline|\UseOtherLanguage{|\meta{language name}\lstinline|}{|\meta{content}\lstinline|}|, qui utilise les paramètres de langue spécifiés pour composer \meta{content}. Par rapport à \lstinline|\UseLanguage|, il ne modifiera pas l'interligne, donc l'interligne restera stable lorsque le texte CJK et occidental sont mélangés.
-\end{itemize}
-
-\meta{language name} peut être (il n'est pas sensible à la casse, par exemple, \texttt{French} et \texttt{french} ont le même effet) :
-\begin{itemize}
- \item chinois simplifié : \texttt{CN}, \texttt{Chinese}, \texttt{SChinese} ou \texttt{SimplifiedChinese}
- \item chinois traditionnel : \texttt{TC}, \texttt{TChinese} ou \texttt{TraditionalChinese}
- \item anglais : \texttt{EN} ou \texttt{English}
- \item français : \texttt{FR} ou \texttt{French}
- \item allemand : \texttt{DE}, \texttt{German} ou \texttt{ngerman}
- \item italien : \texttt{IT} ou \texttt{Italian}
- \item portugais : \texttt{PT} ou \texttt{Portuguese}
- \item portugais (brésilien) : \texttt{BR} ou \texttt{Brazilian}
- \item espagnol : \texttt{ES} ou \texttt{Spanish}
- \item japonais : \texttt{JP} ou \texttt{Japanese}
- \item russe : \texttt{RU} ou \texttt{Russian}
-\end{itemize}
-
-\medskip
-De plus, vous pouvez également ajouter de nouveaux paramètres à la langue sélectionnée :
-\begin{itemize}
- \item \lstinline|\AddLanguageSetting{|\meta{settings}\lstinline|}|
- \begin{itemize}
- \item Ajoutez \meta{settings} à toutes les langues prises en charge.
- \end{itemize}
- \item \lstinline|\AddLanguageSetting(|\meta{language name}\lstinline|){|\meta{settings}\lstinline|}|
- \begin{itemize}
- \item Ajoutez \meta{settings} à la langue \meta{language name} sélectionnée.
- \end{itemize}
-\end{itemize}
-Par exemple, \lstinline|\AddLanguageSetting(German){\color{orange}}| peut rendre tout le texte allemand affiché en orange (bien sûr, il faut alors ajouter \lstinline|\AddLanguageSetting{\color{black}}| afin de corriger la couleur du texte dans d'autres langues).
-
-\LevelTwoTitle{Théorèmes et comment les référencer}
-
-Des environnements tels que \texttt{definition} et \texttt{theorem} ont été prédéfinis et peuvent être utilisés directement.
-
-Plus précisement, les environnements prédéfinis incluent : \texttt{assumption}, \texttt{axiom}, \texttt{conjecture}, \texttt{convention}, \texttt{corollary}, \texttt{definition}, \texttt{definition-proposition}, \texttt{definition-theorem}, \texttt{example}, \texttt{exercise}, \texttt{fact}, \texttt{hypothesis}, \texttt{lemma}, \texttt{notation}, \texttt{observation}, \texttt{problem}, \texttt{property}, \texttt{proposition}, \texttt{question}, \texttt{remark}, \texttt{theorem}, et la version non numérotée correspondante avec un astérisque \lstinline|*| dans le nom. Les titres changeront avec la langue actuelle. Par exemple, \texttt{theorem} sera affiché comme «~Theorem~» en mode anglais et «~Théorème~» en mode français.
-
-Lors du référencement d'un environnement de type théorème, il est recommandé d'utiliser \lstinline|\cref{|\meta{label}\texttt{\}}. De cette façon, il n'est pas nécessaire d'écrire explicitement le nom de l'environnement correspondant à chaque fois.
-
-\begin{tip}[Exemple]
-\begin{code}
-\begin{definition}[Des choses étranges] \label{def: strange} ...
-\end{code}
-
-will produce
-\begin{definition}[Des choses étranges]\label{def: strange}
- C'est la définition de certains objets étranges. Il y a approximativement un espace d'une ligne avant et après l'environnement de type théorème, et il y aura un symbole pour marquer la fin de l'environnement.
-\end{definition}
-
-\lstinline|\cref{def: strange}| s'affichera sous la forme : \cref{def: strange}.
-
-Après avoir utilisé \lstinline|\UseLanguage{French}|, un théorème s'affichera sous la forme :
-
-\UseLanguage{English}
-\begin{theorem}[Useless]\label{thm}
- A theorem in English.
-\end{theorem}
-
-Par défaut, lors du référencement, le nom du théorème correspond au contexte courant. Par exemple, le nom de la définition ci-dessus sera en français dans le contexte français courant : \cref{def: strange,thm}. Si vous voulez que le nom du théorème corresponde toujours à la langue du contexte dans lequel se trouve le théorème, vous pouvez ajouter \texttt{originalref} aux options globales.
-\end{tip}
-
-\UseLanguage{French}
-
-\begin{tip}
- Veuillez consulter la documentation du paquet \textsf{create-theorem} pour voir comment déclarer de nouveaux environnements de type théorème.
-\end{tip}
-
-\LevelTwoTitle{Draft mark}
-
-Vous pouvez utiliser \lstinline|\DNF| pour marquer la partie inachevée. Par example :
-\begin{itemize}
- \item \lstinline|\DNF| ou \lstinline|\DNF<...>|. L'effet est : \DNF~ ou \DNF<...>. \\Le texte à l'intérieur changera en fonction de la langue actuelle. Par exemple, il sera affiché sous la forme \UseOtherLanguage{English}{\DNF} en mode anglais.
-\end{itemize}
-
-\LevelTwoTitle{Titre, résumé et mots-clés}
-
-\einfart{} possède à la fois les caractéristiques des classes standard et celles des classes \AmS{}.
-
-Par conséquent, le titre et les informations sur l'auteur peuvent être soit écrits de la manière habituelle, conformément à la classe standard \textsf{article} :
-
-\begin{code}
-\title{(*\meta{title}*)}
-\author{(*\meta{author}*)\thanks{(*\meta{text}*)}}
-\date{(*\meta{date}*)}
-\maketitle
-\begin{abstract}
- (*\meta{abstract}*)
-\end{abstract}
-\begin{keyword}
- (*\meta{keywords}*)
-\end{keyword}
-\end{code}
-
-ou écrit à la manière des classes \AmS{} :
-
-\begin{code}
-\title{(*\meta{title}*)}
-\author{(*\meta{author}*)}
-\thanks{(*\meta{text}*)}
-\address{(*\meta{address}*)}
-\email{(*\meta{email}*)}
-\date{(*\meta{date}*)}
-\keywords{(*\meta{keywords}*)}
-\subjclass{(*\meta{subjclass}*)}
-\begin{abstract}
- (*\meta{abstract}*)
-\end{abstract}
-\maketitle
-\end{code}
-
-Les informations sur l'auteur peuvent contenir plusieurs groupes, écrits comme suit :
-
-\begin{code}
-\author{(*\meta{author 1}*)}
-\address{(*\meta{address 1}*)}
-\email{(*\meta{email 1}*)}
-\author{(*\meta{author 2}*)}
-\address{(*\meta{address 2}*)}
-\email{(*\meta{email 2}*)}
-...
-\end{code}
-
-Parmi eux, l'ordre mutuel de \lstinline|\address|, \lstinline|\curraddr|, \lstinline|\email| n'est pas important.
-
-\LevelTwoTitle{Divers}
-
-\LevelThreeTitle{Les numéros de ligne}
-Les numéros de ligne peuvent être activés et désactivés n'importe où dans votre texte. \lstinline|\linenumbers| est pour activer les numéros de ligne, et \lstinline|\nolinenumbers| est pour les désactiver. Par souci de beauté, le titre, la table des matières, l'index et certains autres éléments ne sont pas numérotés.
-
-\LevelThreeTitle{Les notes de bas de page dans le titre}
-Dans \lstinline|\section| ou \lstinline|\subsection| , si vous souhaitez ajouter des notes de bas de page, vous n'avez d'autre choix que :
-\begin{itemize}
- \item écrivez d'abord \lstinline|\mbox{\protect\footnotemark}|,
- \item puis ajoutez \lstinline|\footnotetext{...}| après le titre.
-\end{itemize}
-C'est un inconvénient provoqué par la décoration de soulignement du titre.
-
-
-\LevelOneTitle{Problèmes connus}
-
-\begin{itemize}[itemsep=.6em]
- \item Les paramètres de police ne sont pas encore parfaits.
- \item Comme de nombreuses fonctionnalités sont basées sur la boîte à outils \ProjLib{}, \minimalist{} (et donc \minimart{}, \einfart{} et \minimbook{}, \simplivre{}) hérite de tous ses problèmes. Pour plus de détails, veuillez vous référer à la section «~Problèmes connus~» de la documentation de \ProjLib{}.
- \item Le mécanisme de gestion des erreurs est incomplet : pas de messages correspondants lorsque certains problèmes surviennent.
- \item Il y a encore beaucoup de choses qui peuvent être optimisées dans le code.
-\end{itemize}
-
-
-\end{document}
-\endinput
-%%
-%% End of file `einfart/einfart-doc-fr.tex'.
Modified: trunk/Master/texmf-dist/doc/latex/lebhart/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/lebhart/README.md 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/doc/latex/lebhart/README.md 2023-01-02 21:23:26 UTC (rev 65436)
@@ -1,4 +1,4 @@
-<!-- Copyright (C) 2021-2022 by Jinwen XU -->
+<!-- Copyright (C) 2021-2023 by Jinwen XU -->
# `lebhart` : write you articles in a colorful way
Deleted: trunk/Master/texmf-dist/doc/latex/lebhart/lebhart-doc-cn.pdf
===================================================================
(Binary files differ)
Deleted: trunk/Master/texmf-dist/doc/latex/lebhart/lebhart-doc-cn.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/lebhart/lebhart-doc-cn.tex 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/doc/latex/lebhart/lebhart-doc-cn.tex 2023-01-02 21:23:26 UTC (rev 65436)
@@ -1,572 +0,0 @@
-\documentclass[title in boldface, title in scshape, simple name]{lebhart}
-
-%%================================
-%% Import toolkit
-%%================================
-\usepackage{ProjLib}
-\usepackage{longtable} % breakable tables
-\usepackage{hologo} % more TeX logo
-\usetikzlibrary{calc}
-
-\usepackage{blindtext}
-
-\UseLanguage{Chinese}
-
-%%================================
-%% For typesetting code
-%%================================
-\usepackage{listings}
-\usepackage{xcolor}
-\usepackage{setspace}
-\definecolor{code-main}{RGB}{70,130,180}
-\definecolor{code-expl3}{RGB}{240,50,60}
-\definecolor{code-option}{RGB}{40,110,20}
-\definecolor{code-keys}{RGB}{100,130,150}
-\definecolor{code-comment}{RGB}{20,120,80}
-\definecolor{code-background}{gray}{0.99}
-\lstset{
- language = [LaTeX]TeX,
- basicstyle = \ttfamily,
- keywordstyle = \color{code-main},
- commentstyle = \color{code-comment},
- showstringspaces = false,
- breaklines = true,
- frame = lines,
- backgroundcolor = \color{code-background},
- flexiblecolumns = true,
- escapeinside = {(*}{*)},
- alsoletter = {_,:},
- % numbers = left,
- % firstnumber = last,
- numberstyle = \scriptsize\ttfamily,
- stepnumber = 1,
- numbersep = 5pt,
-}
-\newcommand{\meta}[1]{$\langle${\normalfont\itshape#1}$\rangle$}
-\lstset{% LaTeX2 commands
- classoffset = 0,
- texcsstyle =* \color{code-main},
- moretexcs =
- {
- linenumbers,nolinenumbers,
- part,parttext,chapter,section,subsection,subsubsection,
- frontmatter,mainmatter,backmatter,
- tableofcontents,
- href,
- color,
- NameTheorem,CreateTheorem,
- cref,
- ProjLib,
- DNF,
- UseLanguage,UseOtherLanguage,AddLanguageSetting,
- maketitle,address,curraddr,email,keywords,subjclass,thanks,dedicatory,TheDate,
- qedhere,
- }
-}
-\lstset{% LaTeX3 commands
- classoffset = 1,
- texcsstyle =* \color{code-expl3},
- moretexcs =
- {
- }
-}
-\lstnewenvironment{code}{\setstretch{1.05}}{\vspace{-.3\baselineskip}\vspace{-.5\parskip}}
-\lstnewenvironment{code*}{\setstretch{1.05}\lstset{numbers=left}}{\vspace{-.3\baselineskip}\vspace{-.5\parskip}}
-
-\newcommand{\classoption}[1]{\texttt{\textcolor{code-option}{#1}}}
-\newcommand{\packageoption}[1]{\texttt{\textcolor{code-option}{#1}}}
-\newcommand{\commandoption}[1]{\texttt{\textcolor{code-keys}{#1}}}
-
-%%================================
-%% tip
-%%================================
-\usepackage[many]{tcolorbox}
-\newenvironment{tip}[1][提示]{%
- \begin{tcolorbox}[breakable,
- enhanced,
- width = \textwidth,
- colback = paper, colbacktitle = paper,
- colframe = gray!50, boxrule=0.2mm,
- coltitle = black,
- fonttitle = \sffamily,
- attach boxed title to top left = {yshift=-\tcboxedtitleheight/2, xshift=.5cm},
- boxed title style = {boxrule=0pt, colframe=paper},
- before skip = 0.3cm,
- after skip = 0.3cm,
- top = 3mm,
- bottom = 3mm,
- title={\scshape\sffamily #1}]%
-}{\end{tcolorbox}}
-
-%%================================
-%% Names
-%%================================
-\providecommand{\colorist}{\textsf{colorist}}
-\providecommand{\colorart}{\textsf{colorart}}
-\providecommand{\colorbook}{\textsf{colorbook}}
-\providecommand{\lebhart}{\textsf{lebhart}}
-\providecommand{\beaulivre}{\textsf{beaulivre}}
-
-%%================================
-%% Titles
-%%================================
-\let\LevelOneTitle\section
-\let\LevelTwoTitle\subsection
-\let\LevelThreeTitle\subsubsection
-
-%%================================
-%% Main text
-%%================================
-\begin{document}
-
-\def\PackageVersion{2022/09/03}
-
-\title{{\normalfont\bfseries\color{main-text}\lebhart{}}\\以多彩的方式排版你的文章}
-\author{许锦文}
-\thanks{对应版本. \texttt{\lebhart{} \PackageVersion}}
-\email{\href{mailto:ProjLib at outlook.com}{ProjLib at outlook.com}}
-\date{\TheDate{\PackageVersion}[only-year-month],巴黎}
-
-\maketitle
-
-\begin{abstract}
- \lebhart{} 是 \colorist{} 文档类系列的成员之一,其名称取自于德文的lebhaft (活泼),并取了artikel (文章)的前三个字母组合而成。整个 \colorist{} 系列包含用于排版文章的 \colorart{}、\lebhart{} 以及用于排版书的 \colorbook{}、\beaulivre{}。我设计这一系列的初衷是为了撰写草稿与笔记,使之多彩而不缭乱。
-
- \lebhart{} 支持英语、法语、德语、意大利语、葡萄牙语、巴西葡萄牙语、西班牙语、简体中文、繁体中文、日文、俄文,并且同一篇文档中这些语言可以很好地协调。由于采用了自定义字体,需要用 \hologo{XeLaTeX} 或 \hologo{LuaLaTeX} 引擎进行编译。
-
- 这篇说明文档即是用 \lebhart{} 排版的 (使用了参数 \classoption{use boldface}),你可以把它看作一份简短的说明与演示。
-\end{abstract}
-
-
-\begin{tip}
- This documentation has not been fully up-to-date with the new \texttt{expl3} version of this class series. Some options or commands introduced here might be obsolete.
-\end{tip}
-
-\setcounter{tocdepth}{2}
-\tableofcontents
-
-
-\medskip
-\LevelOneTitle*{开始之前}
-为了使用这篇文档中提到的文档类,你需要:
-\begin{itemize}
- \item 安装一个尽可能新版本的 TeX Live 或 MikTeX 套装,并确保 \texttt{colorist} 和 \texttt{projlib} 被正确安装在你的 \TeX 封装中。
- \item 下载并安装所需的字体,参考“关于默认字体”这一节。
- \item 熟悉 \LaTeX{} 的基本使用方式,并且知道如何用 \hologo{pdfLaTeX}、\hologo{XeLaTeX} 或 \hologo{LuaLaTeX} 编译你的文档。
-\end{itemize}
-
-
-\LevelOneTitle{使用示例}
-
-\LevelTwoTitle{如何加载}
-
-只需要在第一行写:
-
-\begin{code}
-\documentclass{lebhart}
-\end{code}
-
-即可使用 \lebhart{} 文档类。请注意,要使用 \hologo{XeLaTeX} 或 \hologo{LuaLaTeX} 引擎才能编译。
-
-\LevelTwoTitle{一篇完整的文档示例}
-
-首先来看一段完整的示例。
-
-\begin{code*}
-\documentclass{lebhart}
-\usepackage{ProjLib}
-
-\UseLanguage{French}
-
-\begin{document}
-
-\title{(*\meta{title}*)}
-\author{(*\meta{author}*)}
-\date{\TheDate{2022-04-01}}
-
-\maketitle
-
-\begin{abstract}
- Ceci est un résumé. \DNF<(*\meta{some hint}*)>
-\end{abstract}
-\begin{keyword}
- AAA, BBB, CCC, DDD, EEE
-\end{keyword}
-
-\section{Un théorème}
-
-\begin{theorem}\label{thm:abc}
- Ceci est un théorème.
-\end{theorem}
-Référence du théorème: \cref{thm:abc}
-
-\end{document}
-\end{code*}
-
-
-如果你觉得这个例子有些复杂,不要担心。现在我们来一点点地观察这个例子。
-
-\bigskip
-\LevelThreeTitle{初始化部分}
-
-\begin{code}
-\documentclass{lebhart}
-\usepackage{ProjLib}
-\end{code}
-
-初始化部分很简单:第一行加载文档类 \lebhart{},第二行加载 \ProjLib{} 工具箱,以便使用一些附加功能。
-
-\LevelThreeTitle{设定语言}
-
-\begin{code}
-\UseLanguage{French}
-\end{code}
-
-这一行表明文档中将使用法语(如果你的文章中只出现英语,那么可以不需要设定语言)。你也可以在文章中间用同样的方式再次切换语言。支持的语言包括简体中文、繁体中文、日文、英语、法语、德语、西班牙语、葡萄牙语、巴西葡萄牙语、俄语。
-
-对于这一命令的详细说明以及更多相关命令,可以参考后面关于多语言支持的小节。
-
-\LevelThreeTitle{标题,作者信息,摘要与关键词}
-
-\begin{code}
-\title{(*\meta{title}*)}
-\author{(*\meta{author}*)}
-\date{\TheDate{2022-04-01}}
-\maketitle
-
-\begin{abstract}
- (*\meta{abstract}*)
-\end{abstract}
-\begin{keyword}
- (*\meta{keywords}*)
-\end{keyword}
-\end{code}
-
-开头部分是标题和作者信息块。这个例子中给出的是最基本的形式,事实上你还可以这样写:
-
-\begin{code}
-\author{(*\meta{author 1}*)}
-\address{(*\meta{address 1}*)}
-\email{(*\meta{email 1}*)}
-\author{(*\meta{author 2}*)}
-\address{(*\meta{address 2}*)}
-\email{(*\meta{email 2}*)}
-...
-\end{code}
-
-另外,你还可以采用 \AmS{} 文档类的写法:
-
-\begin{code}
-\title{(*\meta{title}*)}
-\author{(*\meta{author 1}*)}
-\address{(*\meta{address 1}*)}
-\email{(*\meta{email 1}*)}
-\author{(*\meta{author 2}*)}
-\address{(*\meta{address 2}*)}
-\email{(*\meta{email 2}*)}
-\date{\TheDate{2022-04-01}}
-\subjclass{*****}
-\keywords{(*\meta{keywords}*)}
-
-\begin{abstract}
- (*\meta{abstract}*)
-\end{abstract}
-
-\maketitle
-\end{code}
-
-\LevelThreeTitle{未完成标记}
-
-\begin{code}
-\DNF<(*\meta{some hint}*)>
-\end{code}
-当你有一些地方尚未完成的时候,可以用这条指令标记出来,它在草稿阶段格外有用。
-
-\LevelThreeTitle{定理类环境}
-
-\begin{code}
-\begin{theorem}\label{thm:abc}
- Ceci est un théorème.
-\end{theorem}
-Référence du théorème: \cref{thm:abc}
-\end{code}
-
-常见的定理类环境可以直接使用。在引用的时候,建议采用智能引用 \lstinline|\cref{|\meta{label}\lstinline|}|——这样就不必每次都写上相应环境的名称了。
-
-\begin{tip}
-如果你之后想要切换到标准文档类,只需要把前两行换为:
-
-\begin{code}
-\documentclass{article}
-\usepackage[a4paper,margin=1in]{geometry}
-\usepackage[hidelinks]{hyperref}
-\usepackage[palatino,amsfashion]{ProjLib}
-\end{code}
-
-或者使用 \AmS{} 文档类:
-
-\begin{code}
-\documentclass{amsart}
-\usepackage[a4paper,margin=1in]{geometry}
-\usepackage[hidelinks]{hyperref}
-\usepackage[palatino]{ProjLib}
-\end{code}
-
-\end{tip}
-
-
-
-\bigskip
-\LevelOneTitle{关于默认字体}
-本文档类中默认使用 Palatino Linotype 作为英文主字体,思源宋体、思源黑体、思源等宽作为中文主字体、无衬线字体以及等宽字体,并部分使用了 Neo Euler 作为数学字体。这些字体需要用户自行下载安装。其中,思源字体系列可在 \url{https://github.com/adobe-fonts} 下载 (推荐下载 Super-OTC 版本,这样下载的体积较小)。Neo Euler可以在 \url{https://github.com/khaledhosny/euler-otf} 下载。在没有安装相应的字体时,将采用TeX Live中自带的字体来代替,效果可能会有所折扣。
-
-另外,还使用了 Source Code Pro 作为英文无衬线字体、New Computer Modern Mono 作为英文等宽字体,以及 Asana Math、Tex Gyre Pagella Math、Latin Modern Math 数学字体中的部分符号。这些字体在 TeX Live 或 MikTeX 中已经提供,无需自行下载安装。
-
-
-
-% \clearpage
-\LevelOneTitle{选项}
-
-\lebhart{} 文档类有下面几个选项:
-
-\begin{itemize}[label=,leftmargin=1.25em,itemindent=-1.25em]
- \item 语言选项 \classoption{EN} / \classoption{english} / \classoption{English}、\classoption{FR} / \classoption{french} / \classoption{French},等等
- \begin{itemize}
- \item 具体选项名称可参见下一节的 \meta{language name}。第一个指定的语言将作为默认语言。
- \item 语言选项不是必需的,其主要用途是提高编译速度。不添加语言选项时效果是一样的,只是会更慢一些。
- \end{itemize}
- \item \classoption{draft} 或 \classoption{fast}
- \begin{itemize}
- \item 你可以使用选项 \verb|fast| 来启用快速但略微粗糙的样式,主要区别是:
- \begin{itemize}
- \item 使用较为简单的数学字体设置;
- \item 不启用超链接;
- \item 启用 \ProjLib{} 工具箱的快速模式。
- \end{itemize}
- \end{itemize}
- \begin{tip}
- 在文章的撰写阶段,建议使用 \verb|fast| 选项以加快编译速度,改善写作时的流畅度。使用 \verb|fast| 模式时会有“DRAFT”字样的水印,以提示目前处于草稿阶段。
- \end{tip}
- \item \classoption{a4paper} 或 \classoption{b5paper}
- \begin{itemize}
- \item 可选的纸张大小。默认的纸张大小为 8.5in $\times$ 11in。
- \end{itemize}
- \item \classoption{palatino}、\classoption{times}、\classoption{garamond}、\classoption{noto}、\classoption{biolinum} ~$|$~ \classoption{useosf}
- \begin{itemize}
- \item 字体选项。顾名思义,会加载相应名称的字体。
- \item \classoption{useosf} 选项用来启用“旧式”数字。
- \end{itemize}
- \item \classoption{use boldface}
- \begin{itemize}
- \item 允许加粗。启用这一选项时,题目、各级标题、定理类环境名称会被加粗。
- \end{itemize}
- \item \classoption{runin}
- \begin{itemize}
- \item \lstinline|\subsubsection| 采用 ``runin'' 风格。
- \end{itemize}
- \item \classoption{nothms}
- \begin{itemize}
- \item 纯文本模式,不加载定理类环境。
- \end{itemize}
- \item \classoption{nothmnum}、\classoption{thmnum} 或 \classoption{thmnum=}\meta{counter}
- \begin{itemize}
- \item 定理类环境均不编号 / 按照 1、2、3 顺序编号 / 在 \meta{counter} 内编号。在没有使用任何选项的情况下将按照 \texttt{chapter} (书) 或 \texttt{section} (文章) 编号。
- \end{itemize}
- \item \classoption{regionalref}、\classoption{originalref}
- \begin{itemize}
- \item 在智能引用时,定理类环境的名称是否随当前语言而变化。默认为 \classoption{regionalref},即引用时采用当前语言对应的名称;例如,在中文语境中引用定理类环境时,无论原环境处在什么语境中,都将使用名称“定理、定义……”。若启用 \classoption{originalref},则引用时会始终采用定理类环境所处语境下的名称;例如,在英文语境中书写的定理,即使稍后在中文语境下引用时,仍将显示为 Theorem。
- \item 在 \classoption{fast} 模式下,\classoption{originalref} 将不起作用。
- \end{itemize}
-\end{itemize}
-
-% \clearpage
-\LevelOneTitle{具体说明}
-
-\LevelTwoTitle{语言设置}
-
-\lebhart{} 提供了多语言支持,包括英语、法语、德语、意大利语、葡萄牙语、巴西葡萄牙语、西班牙语、简体中文、繁体中文、日文、俄文。可以通过下列命令来选定语言:
-\begin{itemize}
- \item \lstinline|\UseLanguage{|\meta{language name}\lstinline|}|,用于指定语言,在其后将使用对应的语言设定。
- \begin{itemize}
- \item 既可以用于导言部分,也可以用于正文部分。在不指定语言时,默认选定 “English”。
- \end{itemize}
- \item \lstinline|\UseOtherLanguage{|\meta{language name}\lstinline|}{|\meta{content}\lstinline|}|,用指定的语言的设定排版 \meta{content}。
- \begin{itemize}
- \item 相比 \lstinline|\UseLanguage|,它不会对行距进行修改,因此中西文字混排时能保持行距稳定。
- \end{itemize}
-\end{itemize}
-
-\meta{language name} 有下列选择 (不区分大小写,如 \texttt{French} 或 \texttt{french} 均可):
-\begin{itemize}
- \item 简体中文:\texttt{CN}、\texttt{Chinese}、\texttt{SChinese} 或 \texttt{SimplifiedChinese}
- \item 繁体中文:\texttt{TC}、\texttt{TChinese} 或 \texttt{TraditionalChinese}
- \item 英文:\texttt{EN} 或 \texttt{English}
- \item 法文:\texttt{FR} 或 \texttt{French}
- \item 德文:\texttt{DE}、\texttt{German} 或 \texttt{ngerman}
- \item 意大利语:\texttt{IT} 或 \texttt{Italian}
- \item 葡萄牙语:\texttt{PT} 或 \texttt{Portuguese}
- \item 巴西葡萄牙语:\texttt{BR} 或 \texttt{Brazilian}
- \item 西班牙语:\texttt{ES} 或 \texttt{Spanish}
- \item 日文:\texttt{JP} 或 \texttt{Japanese}
- \item 俄文:\texttt{RU} 或 \texttt{Russian}
-\end{itemize}
-
-另外,还可以通过下面的方式来填加相应语言的设置:
-\begin{itemize}
- \item \lstinline|\AddLanguageSetting{|\meta{settings}\lstinline|}|
- \begin{itemize}
- \item 向所有支持的语言增加设置 \meta{settings}。
- \end{itemize}
- \item \lstinline|\AddLanguageSetting(|\meta{language name}\lstinline|){|\meta{settings}\lstinline|}|
- \begin{itemize}
- \item 向指定的语言 \meta{language name} 增加设置 \meta{settings}。
- \end{itemize}
-\end{itemize}
-例如,\lstinline|\AddLanguageSetting(German){\color{orange}}| 可以让所有德语以橙色显示(当然,还需要再加上 \lstinline|\AddLanguageSetting{\color{black}}| 来修正其他语言的颜色)。
-
-\LevelTwoTitle{定理类环境及其引用}
-
-定义、定理等环境已经被预定义,可以直接使用。
-
-具体来说,预设的定理类环境包括:
-\texttt{assumption}、\texttt{axiom}、\texttt{conjecture}、\texttt{convention}、\texttt{corollary}、\texttt{definition}、\texttt{definition-proposition}、\texttt{definition-theorem}、\texttt{example}、\texttt{exercise}、\texttt{fact}、\texttt{hypothesis}、\texttt{lemma}、\texttt{notation}、\texttt{observation}、\texttt{problem}、\texttt{property}、\texttt{proposition}、\texttt{question}、\texttt{remark}、\texttt{theorem},以及相应的带有星号 \lstinline|*| 的无编号版本。
-
-在引用定理类环境时,建议使用智能引用 \lstinline|\cref{|\meta{label}\lstinline|}|。这样就不必每次都写上相应环境的名称了。
-
-\medskip
-\begin{tip}[例子]
-\begin{code}
-\begin{definition}[奇异物品] \label{def: strange} ...
-\end{code}
-将会生成
-\begin{definition}[奇异物品]\label{def: strange}
- 这是奇异物品的定义。定理类环境的前后有一行左右的间距。在定义结束的时候会有一个符号来标记。
-\end{definition}
-
-\lstinline|\cref{def: strange}| 会显示为:\cref{def: strange}。
-
-\medskip
-使用 \lstinline|\UseLanguage{English}| 后,定理会显示为:
-
-\UseLanguage{English}
-\begin{theorem}[Useless]\label{thm}
- A theorem in English.
-\end{theorem}
-
-默认情况下,引用时,定理类环境的名称总是与当前语言相匹配,例如,上面的定义在现在的英文模式下将显示为英文:\cref{def: strange,thm}。如果在引用时想让定理的名称总是与原定理所在区域的语言匹配,即总是显示原始名称,可以在全局选项中加入 \texttt{originalref}。
-\end{tip}
-
-\UseLanguage{Chinese}
-
-\bigskip
-下面是定理类环境的几种主要样式:
-\begin{theorem}
- Theorem style: theorem, proposition, lemma, corollary, ...
-\end{theorem}
-
-\begin{proof}
- Proof style
-\end{proof}
-
-\begin{remark}
- Remark style
-\end{remark}
-
-\begin{conjecture}
- Conjecture style
-\end{conjecture}
-
-\begin{example*}
- Example style: example, fact, ...
-\end{example*}
-
-\begin{problem}
- Problem style: problem, question, ...
-\end{problem}
-
-\medskip
-为了美观,相邻的定义环境会自动连在一起:
-\begin{definition}
- First definition.
-\end{definition}
-
-\begin{definition}
- Second definition.
-\end{definition}
-
-\begin{tip}
- 请参阅 \textsf{create-theorem} 的说明文档以获知如何定义新的定理类环境。
-\end{tip}
-
-\LevelTwoTitle{未完成标记}
-
-你可以通过 \lstinline|\DNF| 来标记尚未完成的部分。例如:
-\begin{itemize}
- \item \lstinline|\DNF| 或 \lstinline|\DNF<...>|。效果为:\DNF~或 \DNF<...>。\\其提示文字与当前语言相对应,例如,在法语模式下将会显示为 \UseOtherLanguage{French}{\DNF}。
-\end{itemize}
-
-\LevelTwoTitle{文章标题、摘要与关键词}
-
-\lebhart{} 同时具有标准文档类与\AmS{} 文档类的一些特性。
-
-因此,文章的标题部分既可以按照标准文档类 \textsf{article} 的写法来写:
-
-\begin{code}
-\title{(*\meta{title}*)}
-\author{(*\meta{author}*)\thanks{(*\meta{text}*)}}
-\date{(*\meta{date}*)}
-\maketitle
-\begin{abstract}
- (*\meta{abstract}*)
-\end{abstract}
-\begin{keyword}
- (*\meta{keywords}*)
-\end{keyword}
-\end{code}
-
-也可以按照 \AmS{} 文档类的方式来写:
-
-\begin{code}
-\title{(*\meta{title}*)}
-\author{(*\meta{author}*)}
-\thanks{(*\meta{text}*)}
-\address{(*\meta{address}*)}
-\email{(*\meta{email}*)}
-\date{(*\meta{date}*)}
-\keywords{(*\meta{keywords}*)}
-\subjclass{(*\meta{subjclass}*)}
-\begin{abstract}
- (*\meta{abstract}*)
-\end{abstract}
-\maketitle
-\end{code}
-
-作者信息可以包含多组,输入方式为:
-
-\begin{code}
-\author{(*\meta{author 1}*)}
-\address{(*\meta{address 1}*)}
-\email{(*\meta{email 1}*)}
-\author{(*\meta{author 2}*)}
-\address{(*\meta{address 2}*)}
-\email{(*\meta{email 2}*)}
-...
-\end{code}
-
-其中 \lstinline|\address|、\lstinline|\curraddr|、\lstinline|\email| 的相互顺序是不重要的。
-
-\bigskip
-\LevelOneTitle{目前存在的问题}
-\begin{itemize}
- \item 对于字体的设置仍然不够完善。
- \item 目录的设计还不够美观。
- \item 由于很多核心功能建立在 \ProjLib{} 工具箱的基础上,因此 \colorist{} (进而 \colorart{}、\lebhart{} 与 \colorbook{}、\beaulivre{}) 自然继承了其所有问题。详情可以参阅 \ProjLib{} 用户文档的“目前存在的问题”这一小节。
- \item 错误处理功能不完善,在出现一些问题时没有相应的错误提示。
- \item 代码中仍有许多可优化之处。
-\end{itemize}
-
-
-\end{document}
-\endinput
-%%
-%% End of file `lebhart/lebhart-doc-cn.tex'.
Deleted: trunk/Master/texmf-dist/doc/latex/lebhart/lebhart-doc-en.pdf
===================================================================
(Binary files differ)
Deleted: trunk/Master/texmf-dist/doc/latex/lebhart/lebhart-doc-en.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/lebhart/lebhart-doc-en.tex 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/doc/latex/lebhart/lebhart-doc-en.tex 2023-01-02 21:23:26 UTC (rev 65436)
@@ -1,568 +0,0 @@
-\documentclass[title in boldface, title in scshape, simple name]{lebhart}
-
-%%================================
-%% Import toolkit
-%%================================
-\usepackage{ProjLib}
-\usepackage{longtable} % breakable tables
-\usepackage{hologo} % more TeX logo
-\usetikzlibrary{calc}
-
-\usepackage{blindtext}
-
-\UseLanguage{English}
-
-%%================================
-%% For typesetting code
-%%================================
-\usepackage{listings}
-\usepackage{xcolor}
-\usepackage{setspace}
-\definecolor{code-main}{RGB}{70,130,180}
-\definecolor{code-expl3}{RGB}{240,50,60}
-\definecolor{code-option}{RGB}{40,110,20}
-\definecolor{code-keys}{RGB}{100,130,150}
-\definecolor{code-comment}{RGB}{20,120,80}
-\definecolor{code-background}{gray}{0.99}
-\lstset{
- language = [LaTeX]TeX,
- basicstyle = \ttfamily,
- keywordstyle = \color{code-main},
- commentstyle = \color{code-comment},
- showstringspaces = false,
- breaklines = true,
- frame = lines,
- backgroundcolor = \color{code-background},
- flexiblecolumns = true,
- escapeinside = {(*}{*)},
- alsoletter = {_,:},
- % numbers = left,
- % firstnumber = last,
- numberstyle = \scriptsize\ttfamily,
- stepnumber = 1,
- numbersep = 5pt,
-}
-\newcommand{\meta}[1]{$\langle${\normalfont\itshape#1}$\rangle$}
-\lstset{% LaTeX2 commands
- classoffset = 0,
- texcsstyle =* \color{code-main},
- moretexcs =
- {
- linenumbers,nolinenumbers,
- part,parttext,chapter,section,subsection,subsubsection,
- frontmatter,mainmatter,backmatter,
- tableofcontents,
- href,
- color,
- NameTheorem,CreateTheorem,
- cref,
- ProjLib,
- DNF,
- UseLanguage,UseOtherLanguage,AddLanguageSetting,
- maketitle,address,curraddr,email,keywords,subjclass,thanks,dedicatory,TheDate,
- qedhere,
- }
-}
-\lstset{% LaTeX3 commands
- classoffset = 1,
- texcsstyle =* \color{code-expl3},
- moretexcs =
- {
- }
-}
-\lstnewenvironment{code}{\setstretch{1.05}}{\vspace{-.3\baselineskip}\vspace{-.5\parskip}}
-\lstnewenvironment{code*}{\setstretch{1.05}\lstset{numbers=left}}{\vspace{-.3\baselineskip}\vspace{-.5\parskip}}
-
-\newcommand{\classoption}[1]{\texttt{\textcolor{code-option}{#1}}}
-\newcommand{\packageoption}[1]{\texttt{\textcolor{code-option}{#1}}}
-\newcommand{\commandoption}[1]{\texttt{\textcolor{code-keys}{#1}}}
-
-%%================================
-%% tip
-%%================================
-\usepackage[many]{tcolorbox}
-\newenvironment{tip}[1][Tip]{%
- \begin{tcolorbox}[breakable,
- enhanced,
- width = \textwidth,
- colback = paper, colbacktitle = paper,
- colframe = gray!50, boxrule=0.2mm,
- coltitle = black,
- fonttitle = \sffamily,
- attach boxed title to top left = {yshift=-\tcboxedtitleheight/2, xshift=.5cm},
- boxed title style = {boxrule=0pt, colframe=paper},
- before skip = 0.3cm,
- after skip = 0.3cm,
- top = 3mm,
- bottom = 3mm,
- title={\scshape\sffamily #1}]%
-}{\end{tcolorbox}}
-
-%%================================
-%% Names
-%%================================
-\providecommand{\colorist}{\textsf{colorist}}
-\providecommand{\colorart}{\textsf{colorart}}
-\providecommand{\colorbook}{\textsf{colorbook}}
-\providecommand{\lebhart}{\textsf{lebhart}}
-\providecommand{\beaulivre}{\textsf{beaulivre}}
-
-%%================================
-%% Titles
-%%================================
-\let\LevelOneTitle\section
-\let\LevelTwoTitle\subsection
-\let\LevelThreeTitle\subsubsection
-
-%%================================
-%% Main text
-%%================================
-\begin{document}
-
-\def\PackageVersion{2022/09/03}
-
-\title{{\normalfont\bfseries\color{main-text}\lebhart{}}\\write your articles in a colorful way}
-\author{Jinwen XU}
-\thanks{Corresponding to: \texttt{\lebhart{} \PackageVersion}}
-\email{\href{mailto:ProjLib at outlook.com}{ProjLib at outlook.com}}
-\date{\TheDate{\PackageVersion}[only-year-month], in Paris}
-
-\maketitle
-
-\begin{abstract}
- \lebhart{} is a member of the \colorist{} class series. Its name is taken from German word ``lebhaft'' (``vividly''), combined with the first three letters of ``artikel'' (``article''). The entire collection includes \colorart{} and \lebhart{} for typesetting articles and \colorbook{} and \beaulivre{} for typesetting books. My original intention in designing this series was to write drafts and notes that look colorful yet not dazzling.
-
- \lebhart{} has multi-language support, including Chinese (simplified and traditional), English, French, German, Italian, Japanese, Portuguese (European and Brazilian), Russian and Spanish. These languages can be switched seamlessly in a single document. Due to the usage of custom fonts, \lebhart{} requires \hologo{XeLaTeX} or \hologo{LuaLaTeX} to compile.
-
- This documentation is typeset using \lebhart{} (with the option \classoption{use boldface}). You can think of it as a short introduction and demonstration.
-\end{abstract}
-
-
-\begin{tip}
- This documentation has not been fully up-to-date with the new \texttt{expl3} version of this class series. Some options or commands introduced here might be obsolete.
-\end{tip}
-
-\setcounter{tocdepth}{2}
-\tableofcontents
-
-
-\medskip
-\LevelOneTitle*{Before you start}
-\addcontentsline{toc}{section}{Before you start}
-In order to use the package or classes described here, you need to:
-\begin{itemize}
- \item install TeX Live or MikTeX of the latest possible version, and make sure that \texttt{colorist} and \texttt{projlib} are correctly installed in your \TeX{} system.
- \item download and install the required fonts, see the section "On the default fonts".
- \item be familiar with the basic usage of \LaTeX{}, and know how to compile your document with \hologo{pdfLaTeX}, \hologo{XeLaTeX} or \hologo{LuaLaTeX}.
-\end{itemize}
-
-
-\LevelOneTitle{Usage and examples}
-
-\LevelTwoTitle{How to load it}
-
-One only needs to put
-
-\begin{code}
-\documentclass{lebhart}
-\end{code}
-as the first line to use the \lebhart{} class. Please note that you need to use either \hologo{XeLaTeX} or \hologo{LuaLaTeX} engine to compile.
-
-\LevelTwoTitle{Example - A complete document}
-
-Let's first look at a complete document.
-
-\begin{code*}
-\documentclass{lebhart}
-\usepackage{ProjLib}
-
-\UseLanguage{French}
-
-\begin{document}
-
-\title{(*\meta{title}*)}
-\author{(*\meta{author}*)}
-\date{\TheDate{2022-04-01}}
-
-\maketitle
-
-\begin{abstract}
- Ceci est un résumé. \DNF<(*\meta{some hint}*)>
-\end{abstract}
-\begin{keyword}
- AAA, BBB, CCC, DDD, EEE
-\end{keyword}
-
-\section{Un théorème}
-
-\begin{theorem}\label{thm:abc}
- Ceci est un théorème.
-\end{theorem}
-Référence du théorème: \cref{thm:abc}
-
-\end{document}
-\end{code*}
-
-
-If you find this example a little complicated, don't worry. Let's now look at this example piece by piece.
-
-\LevelThreeTitle{Initialization}
-
-\begin{code}
-\documentclass{lebhart}
-\usepackage{ProjLib}
-\end{code}
-
-Initialization is straightforward. The first line loads the document class \lebhart{}, and the second line loads the \ProjLib{} toolkit to obtain some additional functionalities.
-
-\LevelThreeTitle{Set the language}
-
-\begin{code}
-\UseLanguage{French}
-\end{code}
-
-This line indicates that French will be used in the document (by the way, if only English appears in your article, then there is no need to set the language). You can also switch the language in the same way later in the middle of the text. Supported languages include Simplified Chinese, Traditional Chinese, Japanese, English, French, German, Spanish, Portuguese, Brazilian Portuguese and Russian%
-.%
-
-For detailed description of this command and more related commands, please refer to the section on the multi-language support.
-
-\LevelThreeTitle{Title, author information, abstract and keywords}
-
-\begin{code}
-\title{(*\meta{title}*)}
-\author{(*\meta{author}*)}
-\date{\TheDate{2022-04-01}}
-\maketitle
-
-\begin{abstract}
- (*\meta{abstract}*)
-\end{abstract}
-\begin{keyword}
- (*\meta{keywords}*)
-\end{keyword}
-\end{code}
-
-This part begins with the title and author information block. The example shows the basic usage, but in fact, you can also write:
-
-\begin{code}
-\author{(*\meta{author 1}*)}
-\address{(*\meta{address 1}*)}
-\email{(*\meta{email 1}*)}
-\author{(*\meta{author 2}*)}
-\address{(*\meta{address 2}*)}
-\email{(*\meta{email 2}*)}
-...
-\end{code}
-
-In addition, you may also write in the \AmS{} fashion, i.e.:
-
-\begin{code}
-\title{(*\meta{title}*)}
-\author{(*\meta{author 1}*)}
-\address{(*\meta{address 1}*)}
-\email{(*\meta{email 1}*)}
-\author{(*\meta{author 2}*)}
-\address{(*\meta{address 2}*)}
-\email{(*\meta{email 2}*)}
-\date{\TheDate{2022-04-01}}
-\subjclass{*****}
-\keywords{(*\meta{keywords}*)}
-
-\begin{abstract}
- (*\meta{abstract}*)
-\end{abstract}
-
-\maketitle
-\end{code}
-
-\LevelThreeTitle{Draft marks}
-
-\begin{code}
-\DNF<(*\meta{some hint}*)>
-\end{code}
-
-When you have some places that have not yet been finished yet, you can mark them with this command, which is especially useful during the draft stage.
-
-\LevelThreeTitle{Theorem-like environments}
-
-\begin{code}
-\begin{theorem}\label{thm:abc}
- Ceci est un théorème.
-\end{theorem}
-Référence du théorème: \cref{thm:abc}
-\end{code}
-
-Commonly used theorem-like environments have been pre-defined. Also, when referencing a theorem-like environment, it is recommended to use \lstinline|\cref{|\meta{label}\texttt{\}} --- in this way, there is no need to explicitly write down the name of the corresponding environment every time.
-
-\begin{tip}
-If you wish to switch to the standard class later, just replace the first two lines with:
-
-\begin{code}
-\documentclass{article}
-\usepackage[a4paper,margin=1in]{geometry}
-\usepackage[hidelinks]{hyperref}
-\usepackage[palatino,amsfashion]{ProjLib}
-\end{code}
-
-or to use the \AmS{} class:
-
-\begin{code}
-\documentclass{amsart}
-\usepackage[a4paper,margin=1in]{geometry}
-\usepackage[hidelinks]{hyperref}
-\usepackage[palatino]{ProjLib}
-\end{code}
-
-\end{tip}
-
-
-
-% \clearpage
-\LevelOneTitle{On the default fonts}
-By default, this document class uses Palatino Linotype as the English main font; Source Han Serif, Source Han Sans and Source Han Mono as the Chinese main font, sans serif font and typewriter font; and partially uses Neo Euler as the math font. You need to download and install these fonts by yourself. The Source Han font series can be downloaded at \url{https://github.com/adobe-fonts} (It is recommended to download the Super-OTC version, so that the download size is smaller). Neo Euler can be downloaded at \url{https://github.com/khaledhosny/euler-otf}. When the corresponding font is not installed, the font that comes with TeX Live will be used instead, and the effect may be discounted.
-
-In addition, Source Code Pro is used as the English sans serif font, New Computer Modern Mono as the English monospace font, as well as some symbols in the mathematical fonts of Asana Math, Tex Gyre Pagella Math, and Latin Modern Math. These fonts are already available in TeX Live or MikTeX, which means you don't need to install them yourself.
-
-
-\LevelOneTitle{The options}
-
-\lebhart{} offers the following options:
-
-\begin{itemize}[label=,leftmargin=1.25em,itemindent=-1.25em]
- \item The language options \classoption{EN} / \classoption{english} / \classoption{English}, \classoption{FR} / \classoption{french} / \classoption{French}, etc.
- \begin{itemize}
- \item For the option names of a specific language, please refer to \meta{language name} in the next section. The first specified language will be used as the default language.
- \item The language options are optional, mainly for increasing the compilation speed. Without them the result would be the same, only slower.
- \end{itemize}
- \item \classoption{draft} or \classoption{fast}
- \begin{itemize}
- \item The option \verb|fast| enables a faster but slightly rougher style, main differences are:
- \begin{itemize}
- \item Use simpler math font configuration;
- \item Do not use \textsf{hyperref};
- \item Enable the fast mode of \ProjLib{} toolkit.
- \end{itemize}
- \end{itemize}
- \begin{tip}
- During the draft stage, it is recommended to use the \verb|fast| option to speed up compilation. When in \verb|fast| mode, there will be a watermark ``DRAFT'' to indicate that you are currently in the draft mode.
- \end{tip}
- \item \classoption{a4paper} or \classoption{b5paper}
- \begin{itemize}
- \item Paper size options. The default paper size is 8.5in $\times$ 11in.
- \end{itemize}
- \item \classoption{palatino}, \classoption{times}, \classoption{garamond}, \classoption{noto}, \classoption{biolinum} ~$|$~ \classoption{useosf}
- \begin{itemize}
- \item Font options. As the name suggest, font with corresponding name will be loaded.
- \item The \classoption{useosf} option is used to enable the old-style figures.
- \end{itemize}
- \item \classoption{use boldface}
- \begin{itemize}
- \item Allow boldface. When this option is enabled, the main title, the titles of all levels and the names of theorem-like environments will be bolded.
- \end{itemize}
- \item \classoption{runin}
- \begin{itemize}
- \item Use the ``runin'' style for \lstinline|\subsubsection|
- \end{itemize}
- \item \classoption{nothms}
- \begin{itemize}
- \item Pure text mode. Do not load theorem-like environments.
- \end{itemize}
-% \clearpage
- \item \classoption{nothmnum}, \classoption{thmnum} or \classoption{thmnum=}\meta{counter}
- \begin{itemize}
- \item Theorem-like environments will not be numbered / numbered in order 1, 2, 3... / numbered within \meta{counter}. If no option is used, they will be numbered within \texttt{chapter} (book) or \texttt{section} (article).
- \end{itemize}
- \item \classoption{regionalref}, \classoption{originalref}
- \begin{itemize}
- \item When referencing, whether the name of the theorem-like environment changes with the current language. The default is \classoption{regionalref}, \emph{i.e.}, the name corresponding to the current language is used; for example, when referencing a theorem-like environment in English context, the names "Theorem, Definition..." will be used no matter which language context the original environment is in. If \classoption{originalref} is enabled, then the name will always remain the same as the original place; for example, when referencing a theorem written in the French context, even if one is currently in the English context, it will still be displayed as ``Théorème''.
- \item In \classoption{fast} mode, the option \classoption{originalref} will have no effect.
- \end{itemize}
-\end{itemize}
-
-
-\LevelOneTitle{Instructions by topic}
-
-\LevelTwoTitle{Language configuration}
-
-\lebhart{} has multi-language support, including Chinese (simplified and traditional), English, French, German, Italian, Japanese, Portuguese (European and Brazilian), Russian and Spanish. The language can be selected by the following macros:
-
-\begin{itemize}
- \item \lstinline|\UseLanguage{|\meta{language name}\lstinline|}| is used to specify the language. The corresponding setting of the language will be applied after it. It can be used either in the preamble or in the main body. When no language is specified, ``English'' is selected by default.
- \item \lstinline|\UseOtherLanguage{|\meta{language name}\lstinline|}{|\meta{content}\lstinline|}|, which uses the specified language settings to typeset \meta{content}. Compared with \lstinline|\UseLanguage|, it will not modify the line spacing, so line spacing would remain stable when CJK and Western texts are mixed.
-\end{itemize}
-
-\meta{language name} can be (it is not case sensitive, for example, \texttt{French} and \texttt{french} have the same effect):
-\begin{itemize}
- \item Simplified Chinese: \texttt{CN}, \texttt{Chinese}, \texttt{SChinese} or \texttt{SimplifiedChinese}
- \item Traditional Chinese: \texttt{TC}, \texttt{TChinese} or \texttt{TraditionalChinese}
- \item English: \texttt{EN} or \texttt{English}
- \item French: \texttt{FR} or \texttt{French}
- \item German: \texttt{DE}, \texttt{German} or \texttt{ngerman}
- \item Italian: \texttt{IT} or \texttt{Italian}
- \item Portuguese: \texttt{PT} or \texttt{Portuguese}
- \item Portuguese (Brazilian): \texttt{BR} or \texttt{Brazilian}
- \item Spanish: \texttt{ES} or \texttt{Spanish}
- \item Japanese: \texttt{JP} or \texttt{Japanese}
- \item Russian: \texttt{RU} or \texttt{Russian}
-\end{itemize}
-
-\medskip
-In addition, you can also add new settings to selected language:
-\begin{itemize}
- \item \lstinline|\AddLanguageSetting{|\meta{settings}\lstinline|}|
- \begin{itemize}
- \item Add \meta{settings} to all supported languages.
- \end{itemize}
- \item \lstinline|\AddLanguageSetting(|\meta{language name}\lstinline|){|\meta{settings}\lstinline|}|
- \begin{itemize}
- \item Add \meta{settings} to the selected language \meta{language name}.
- \end{itemize}
-\end{itemize}
-For example, \lstinline|\AddLanguageSetting(German){\color{orange}}| can make all German text displayed in orange (of course, one then need to add \lstinline|\AddLanguageSetting{\color{black}}| in order to correct the color of the text in other languages).
-
-\LevelTwoTitle{Theorems and how to reference them}
-
-Environments such as \texttt{definition} and \texttt{theorem} have been preset and can be used directly.
-
-More specifically, preset environments include:
-\texttt{assumption}, \texttt{axiom}, \texttt{conjecture}, \texttt{convention}, \texttt{corollary}, \texttt{definition}, \texttt{definition-proposition}, \texttt{definition-theorem}, \texttt{example}, \texttt{exercise}, \texttt{fact}, \texttt{hypothesis}, \texttt{lemma}, \texttt{notation}, \texttt{observation}, \texttt{problem}, \texttt{property}, \texttt{proposition}, \texttt{question}, \texttt{remark}, \texttt{theorem}, and the corresponding unnumbered version with an asterisk \lstinline|*| in the name. The titles will change with the current language. For example, \texttt{theorem} will be displayed as ``Theorem" in English mode and ``Théorème" in French mode.
-
-When referencing a theorem-like environment, it is recommended to use \lstinline|\cref{|\meta{label}\texttt{\}}. In this way, there is no need to explicitly write down the name of the corresponding environment every time.
-
-\begin{tip}[Example]
-\begin{code}
-\begin{definition}[Strange things] \label{def: strange} ...
-\end{code}
-
-will produce
-\begin{definition}[Strange things]\label{def: strange}
- This is the definition of some strange objects. There is approximately a one-line spacing before and after the theorem environment, and there will be a symbol to mark the end of the environment.
-\end{definition}
-
-\lstinline|\cref{def: strange}| will be displayed as: \cref{def: strange}.
-
-After using \lstinline|\UseLanguage{French}|, a theorem will be displayed as:
-
-\UseLanguage{French}
-\begin{theorem}[Inutile]\label{thm}
- Un théorème en français.
-\end{theorem}
-
-By default, when referenced, the name of the theorem matches the current context. For example, the definition above will be displayed in French in the current French context: \cref{def: strange,thm}. If you want the name of the theorem to always match the language of the context in which the theorem is located, you can add \texttt{originalref} to the global options.
-\end{tip}
-
-\UseLanguage{English}
-
-The following are the main styles of theorem-like environments:
-\begin{theorem}
- Theorem style: theorem, proposition, lemma, corollary, ...
-\end{theorem}
-
-\begin{proof}
- Proof style
-\end{proof}
-
-\begin{remark}
- Remark style
-\end{remark}
-
-\begin{conjecture}
- Conjecture style
-\end{conjecture}
-
-\begin{example*}
- Example style: example, fact, ...
-\end{example*}
-
-\begin{problem}
- Problem style: problem, question, ...
-\end{problem}
-
-\medskip
-For aesthetics, adjacent definitions will be connected together automatically:
-\begin{definition}
- First definition.
-\end{definition}
-
-\begin{definition}
- Second definition.
-\end{definition}
-
-\begin{tip}
- Please refer to the documentation of the package \textsf{create-theorem} to see how to declare new theorem-like environments.
-\end{tip}
-
-\LevelTwoTitle{Draft mark}
-
-You can use \lstinline|\DNF| to mark the unfinished part. For example:
-\begin{itemize}
- \item \lstinline|\DNF| or \lstinline|\DNF<...>|. The effect is: \DNF~ or \DNF<...>. \\The prompt text changes according to the current language. For example, it will be displayed as \UseOtherLanguage{French}{\DNF} in French mode.
-\end{itemize}
-
-\LevelTwoTitle{Title, abstract and keywords}
-
-\lebhart{} has both the features of standard classes and that of the \AmS{} classes.
-
-Therefore, the title part can either be written in the usual way, in accordance with the standard class \textsf{article}:
-
-\begin{code}
-\title{(*\meta{title}*)}
-\author{(*\meta{author}*)\thanks{(*\meta{text}*)}}
-\date{(*\meta{date}*)}
-\maketitle
-\begin{abstract}
- (*\meta{abstract}*)
-\end{abstract}
-\begin{keyword}
- (*\meta{keywords}*)
-\end{keyword}
-\end{code}
-
-or written in the way of \AmS{} classes:
-
-\begin{code}
-\title{(*\meta{title}*)}
-\author{(*\meta{author}*)}
-\thanks{(*\meta{text}*)}
-\address{(*\meta{address}*)}
-\email{(*\meta{email}*)}
-\date{(*\meta{date}*)}
-\keywords{(*\meta{keywords}*)}
-\subjclass{(*\meta{subjclass}*)}
-\begin{abstract}
- (*\meta{abstract}*)
-\end{abstract}
-\maketitle
-\end{code}
-
-% \clearpage
-The author information can contain multiple groups, written as:
-
-\begin{code}
-\author{(*\meta{author 1}*)}
-\address{(*\meta{address 1}*)}
-\email{(*\meta{email 1}*)}
-\author{(*\meta{author 2}*)}
-\address{(*\meta{address 2}*)}
-\email{(*\meta{email 2}*)}
-...
-\end{code}
-
-Among them, the mutual order of \lstinline|\address|, \lstinline|\curraddr|, \lstinline|\email| is not important.
-
-\bigskip
-\LevelOneTitle{Known issues}
-
-\begin{itemize}
- \item The font settings are still not perfect.
- \item The TOC design does not look very nice.
- \item Since many features are based on the \ProjLib{} toolkit, \colorist{} (and hence \colorart{}, \lebhart{} and \colorbook{}, \beaulivre{}) inherits all its problems. For details, please refer to the ``Known Issues'' section of the \ProjLib{} documentation.
- \item The error handling mechanism is incomplete: there is no corresponding error prompt when some problems occur.
- \item There are still many things that can be optimized in the code.
-\end{itemize}
-
-
-\end{document}
-\endinput
-%%
-%% End of file `lebhart/lebhart-doc-en.tex'.
Deleted: trunk/Master/texmf-dist/doc/latex/lebhart/lebhart-doc-fr.pdf
===================================================================
(Binary files differ)
Deleted: trunk/Master/texmf-dist/doc/latex/lebhart/lebhart-doc-fr.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/lebhart/lebhart-doc-fr.tex 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/doc/latex/lebhart/lebhart-doc-fr.tex 2023-01-02 21:23:26 UTC (rev 65436)
@@ -1,566 +0,0 @@
-\documentclass[title in boldface, title in scshape, simple name]{lebhart}
-
-%%================================
-%% Import toolkit
-%%================================
-\usepackage{ProjLib}
-\usepackage{longtable} % breakable tables
-\usepackage{hologo} % more TeX logo
-\usetikzlibrary{calc}
-
-\usepackage{blindtext}
-
-\UseLanguage{French}
-
-%%================================
-%% For typesetting code
-%%================================
-\usepackage{listings}
-\usepackage{xcolor}
-\usepackage{setspace}
-\definecolor{code-main}{RGB}{70,130,180}
-\definecolor{code-expl3}{RGB}{240,50,60}
-\definecolor{code-option}{RGB}{40,110,20}
-\definecolor{code-keys}{RGB}{100,130,150}
-\definecolor{code-comment}{RGB}{20,120,80}
-\definecolor{code-background}{gray}{0.99}
-\lstset{
- language = [LaTeX]TeX,
- basicstyle = \ttfamily,
- keywordstyle = \color{code-main},
- commentstyle = \color{code-comment},
- showstringspaces = false,
- breaklines = true,
- frame = lines,
- backgroundcolor = \color{code-background},
- flexiblecolumns = true,
- escapeinside = {(*}{*)},
- alsoletter = {_,:},
- % numbers = left,
- % firstnumber = last,
- numberstyle = \scriptsize\ttfamily,
- stepnumber = 1,
- numbersep = 5pt,
-}
-\newcommand{\meta}[1]{$\langle${\normalfont\itshape#1}$\rangle$}
-\lstset{% LaTeX2 commands
- classoffset = 0,
- texcsstyle =* \color{code-main},
- moretexcs =
- {
- linenumbers,nolinenumbers,
- part,parttext,chapter,section,subsection,subsubsection,
- frontmatter,mainmatter,backmatter,
- tableofcontents,
- href,
- color,
- NameTheorem,CreateTheorem,
- cref,
- ProjLib,
- DNF,
- UseLanguage,UseOtherLanguage,AddLanguageSetting,
- maketitle,address,curraddr,email,keywords,subjclass,thanks,dedicatory,TheDate,
- qedhere,
- }
-}
-\lstset{% LaTeX3 commands
- classoffset = 1,
- texcsstyle =* \color{code-expl3},
- moretexcs =
- {
- }
-}
-\lstnewenvironment{code}{\setstretch{1.05}}{\vspace{-.3\baselineskip}\vspace{-.5\parskip}}
-\lstnewenvironment{code*}{\setstretch{1.05}\lstset{numbers=left}}{\vspace{-.3\baselineskip}\vspace{-.5\parskip}}
-
-\newcommand{\classoption}[1]{\texttt{\textcolor{code-option}{#1}}}
-\newcommand{\packageoption}[1]{\texttt{\textcolor{code-option}{#1}}}
-\newcommand{\commandoption}[1]{\texttt{\textcolor{code-keys}{#1}}}
-
-%%================================
-%% tip
-%%================================
-\usepackage[many]{tcolorbox}
-\newenvironment{tip}[1][Astuce]{%
- \begin{tcolorbox}[breakable,
- enhanced,
- width = \textwidth,
- colback = paper, colbacktitle = paper,
- colframe = gray!50, boxrule=0.2mm,
- coltitle = black,
- fonttitle = \sffamily,
- attach boxed title to top left = {yshift=-\tcboxedtitleheight/2, xshift=.5cm},
- boxed title style = {boxrule=0pt, colframe=paper},
- before skip = 0.3cm,
- after skip = 0.3cm,
- top = 3mm,
- bottom = 3mm,
- title={\scshape\sffamily #1}]%
-}{\end{tcolorbox}}
-
-%%================================
-%% Names
-%%================================
-\providecommand{\colorist}{\textsf{colorist}}
-\providecommand{\colorart}{\textsf{colorart}}
-\providecommand{\colorbook}{\textsf{colorbook}}
-\providecommand{\lebhart}{\textsf{lebhart}}
-\providecommand{\beaulivre}{\textsf{beaulivre}}
-
-%%================================
-%% Titles
-%%================================
-\let\LevelOneTitle\section
-\let\LevelTwoTitle\subsection
-\let\LevelThreeTitle\subsubsection
-
-%%================================
-%% Main text
-%%================================
-\begin{document}
-
-\def\PackageVersion{2022/09/03}
-
-\title{{\normalfont\bfseries\color{main-text}\lebhart{}}\\écrivez vos articles de manière colorée}
-\author{Jinwen XU}
-\thanks{Correspondant à : \texttt{\lebhart{} \PackageVersion}}
-\email{\href{mailto:ProjLib at outlook.com}{ProjLib at outlook.com}}
-\date{\TheDate{\PackageVersion}[only-year-month], à Paris}
-
-\maketitle
-
-\begin{abstract}
- \lebhart{} fait partie de la série de classes \colorist{}, dont le nom est tiré du mot allemand «~lebhaft~» (animé), combiné avec les trois premières lettres de «~artikel~» (article) . L'ensemble de la collection comprend \colorart{} et \lebhart{} pour la composition d'articles, et \colorbook{} et \beaulivre{} pour celle des livres. Mon intention initiale en les concevant était d'écrire des brouillons et des notes qui ont l'air coloré mais pas éblouissant.
-
- \lebhart{} prend en charge plusieurs langues, notamment le chinois (simplifié et traditionnel), l'anglais, le français, l'allemand, l'italien, le japonais, le portugais (européen et brésilien), le russe et l'espagnol. Ces langues peuvent être commutées de manière transparente dans un seul document. En raison de l'utilisation de polices personnalisées, \lebhart{} demande soit \hologo{XeLaTeX} soit \hologo{LuaLaTeX} pour la compilation.
-
- Cette documentation est composée à l'aide de \lebhart{} (avec l'option \classoption{use boldface}). Vous pouvez le considérer comme une courte introduction et une démonstration.
-\end{abstract}
-
-
-\begin{tip}
- This documentation has not been fully up-to-date with the new \texttt{expl3} version of this class series. Some options or commands introduced here might be obsolete.
-\end{tip}
-
-\setcounter{tocdepth}{2}
-\tableofcontents
-
-
-\LevelOneTitle*{Avant de commencer}
-\addcontentsline{toc}{section}{Avant de commencer}
-
-Pour utiliser les classes de documents décrites ici, vous devez :
-\begin{itemize}
- \item installer TeX Live ou MikTeX de la dernière version possible, et vous assurer que \texttt{colorist} et \texttt{projlib} sont correctement installés dans votre système \TeX{}.
- \item télécharger et installer les polices requises, voir «~À propos des polices par défaut~».
- \item être familiarisé avec l'utilisation de base de \LaTeX{}, et savoir comment compiler vos documents avec \hologo{pdfLaTeX}, \hologo{XeLaTeX} ou \hologo{LuaLaTeX}.
-\end{itemize}
-
-
-\LevelOneTitle{Utilisation et exemples}
-
-\LevelTwoTitle{Comment l'ajouter}
-
-Il suffit simplement de mettre
-
-\begin{code}
-\documentclass{lebhart}
-\end{code}
-
-comme première ligne pour utiliser la classe \lebhart{}. Veuillez noter que vous devez utiliser le moteur \hologo{XeLaTeX} ou \hologo{LuaLaTeX} pour compiler.
-
-\LevelTwoTitle{Exemple - Un document complet}
-
-Regardons d'abord un document complet.
-
-\begin{code*}
-\documentclass{lebhart}
-\usepackage{ProjLib}
-
-\UseLanguage{French}
-
-\begin{document}
-
-\title{(*\meta{title}*)}
-\author{(*\meta{author}*)}
-\date{\TheDate{2022-04-01}}
-
-\maketitle
-
-\begin{abstract}
- Ceci est un résumé. \DNF<(*\meta{some hint}*)>
-\end{abstract}
-\begin{keyword}
- AAA, BBB, CCC, DDD, EEE
-\end{keyword}
-
-\section{Un théorème}
-
-\begin{theorem}\label{thm:abc}
- Ceci est un théorème.
-\end{theorem}
-Référence du théorème: \cref{thm:abc}
-
-\end{document}
-\end{code*}
-
-
-Si vous trouvez cela un peu compliqué, ne vous inquiétez pas. Examinons maintenant cet exemple pièce par pièce.
-
-\bigskip
-\LevelThreeTitle{Initialisation}
-
-\begin{code}
-\documentclass{lebhart}
-\usepackage{ProjLib}
-\end{code}
-
-L'initialisation est simple. La première ligne ajoute la classe de document \lebhart{}, et la deuxième ligne ajoute la boîte à outils \ProjLib{} pour obtenir des fonctionnalités supplémentaires.
-
-\LevelThreeTitle{Choisir la langue}
-
-\begin{code}
-\UseLanguage{French}
-\end{code}
-
-Cette ligne indique que le français sera utilisé dans le document (d'ailleurs, si seul l'anglais apparaît dans votre article, alors il n'est pas nécessaire de choisir la langue). Vous pouvez également changer de langue de la même manière plus tard au milieu du texte. Les langues prises en charge sont les suivantes : chinois simplifié, chinois traditionnel, japonais, anglais, français, allemand, espagnol, portugais, portugais brésilien et russe.
-
-Pour une description détaillée de cette commande et d'autres commandes associées, veuillez vous référer à la section sur le support multilingue.
-
-\LevelThreeTitle{Titre, informations sur l'auteur, résumé et mots-clés}
-
-\begin{code}
-\title{(*\meta{title}*)}
-\author{(*\meta{author}*)}
-\date{\TheDate{2022-04-01}}
-\maketitle
-
-\begin{abstract}
- (*\meta{abstract}*)
-\end{abstract}
-\begin{keyword}
- (*\meta{keywords}*)
-\end{keyword}
-\end{code}
-
-Cette partie commence par le titre et le bloc d'informations sur l'auteur. L'exemple montre l'utilisation de base, mais en fait, vous pouvez également écrire comme :
-
-\begin{code}
-\author{(*\meta{author 1}*)}
-\address{(*\meta{address 1}*)}
-\email{(*\meta{email 1}*)}
-\author{(*\meta{author 2}*)}
-\address{(*\meta{address 2}*)}
-\email{(*\meta{email 2}*)}
-...
-\end{code}
-
-De plus, vous pouvez également écrire à la manière \AmS{}, c'est-à-dire :
-
-\begin{code}
-\title{(*\meta{title}*)}
-\author{(*\meta{author 1}*)}
-\address{(*\meta{address 1}*)}
-\email{(*\meta{email 1}*)}
-\author{(*\meta{author 2}*)}
-\address{(*\meta{address 2}*)}
-\email{(*\meta{email 2}*)}
-\date{\TheDate{2022-04-01}}
-\subjclass{*****}
-\keywords{(*\meta{keywords}*)}
-
-\begin{abstract}
- (*\meta{abstract}*)
-\end{abstract}
-
-\maketitle
-\end{code}
-
-\LevelThreeTitle{Marques de brouillon}
-
-\begin{code}
-\DNF<(*\meta{some hint}*)>
-\end{code}
-Lorsque vous avez des endroits qui ne sont pas encore finis, vous pouvez les marquer avec cette commande, ce qui est particulièrement utile lors de la phase de brouillon.
-
-\LevelThreeTitle{Environnements de type théorème}
-
-\begin{code}
-\begin{theorem}\label{thm:abc}
- Ceci est un théorème.
-\end{theorem}
-Référence du théorème: \cref{thm:abc}
-\end{code}
-
-Les environnements de type théorème couramment utilisés ont été prédéfinis. De plus, lors du référencement d'un environnement de type théorème, il est recommandé d'utiliser \lstinline|\cref{|\meta{label}\texttt{\}} --- de cette manière, il ne serait pas nécessaire d'écrire explicitement le nom de l'environnement correspondant à chaque fois.
-
-\begin{tip}
-Si vous souhaitez utiliser la classe standard à la place plus tard, remplacez simplement les deux premières lignes par :
-
-\begin{code}
-\documentclass{article}
-\usepackage[a4paper,margin=1in]{geometry}
-\usepackage[hidelinks]{hyperref}
-\usepackage[palatino,amsfashion]{ProjLib}
-\end{code}
-
-ou utilisez la classe \AmS{} :
-
-\begin{code}
-\documentclass{amsart}
-\usepackage[a4paper,margin=1in]{geometry}
-\usepackage[hidelinks]{hyperref}
-\usepackage[palatino]{ProjLib}
-\end{code}
-\vspace{-.5\baselineskip}
-\end{tip}
-
-
-
-\LevelOneTitle{À propos des polices par défaut}
-Par défaut, cette classe de document utilise Palatino Linotype comme police anglaise principale; Source Han Serif, Source Han Sans et Source Han Mono comme police chinoise principale, sans empattement et monospace; et utilise partiellement Neo Euler comme police mathématique. Vous devez télécharger et installer ces polices vous-même. La série de polices Source Han peut être téléchargée sur \url{https://github.com/adobe-fonts} (il est recommandé de télécharger la version Super-OTC, afin que la taille de téléchargement soit plus petite). Neo Euler peut être téléchargé sur \url{https://github.com/khaledhosny/euler-otf}. Lorsque la police correspondante n'est pas installée, la police fournie avec TeX Live sera utilisée à la place et l'effet peut être réduit.
-
-De plus, Source Code Pro est utilisé comme police anglaise sans empattement, New Computer Modern Mono comme police anglaise monospace, ainsi que certains symboles dans les polices mathématiques Asana Math, Tex Gyre Pagella Math et Latin Modern Math. Ces polices sont déjà disponibles dans TeX Live ou MikTeX, ce qui signifie que vous n'avez pas besoin de les installer vous-même.
-
-
-
-\LevelOneTitle{Les options}
-
-\lebhart{} propose les options suivantes :
-
-\begin{itemize}[label=,leftmargin=1.25em,itemindent=-1.25em]
- \item Les options de langue \classoption{EN} / \classoption{english} / \classoption{English}, \classoption{FR} / \classoption{french} / \classoption{French}, etc.
- \begin{itemize}
- \item Pour les noms d'options d'une langue spécifique, veuillez vous référer à \meta{language name} dans la section suivante. La première langue spécifiée sera considérée comme la langue par défaut.
- \item Les options de langue ne sont pas nécessaires, elles servent principalement à augmenter la vitesse de compilation. Sans eux, le résultat serait le même, justement plus lent.
- \end{itemize}
- \item \classoption{draft} ou \classoption{fast}
- \begin{itemize}
- \item L'option \verb|fast| permet un style plus rapide mais légèrement plus rugueux, les principales différences sont :
- \begin{itemize}
- \item Utilisez une configuration de police mathématique plus simple ;
- \item N'utilisez pas \textsf{hyperref} ;
- \item Activez le mode rapide de la boîte à outils \ProjLib{}.
- \end{itemize}
- \end{itemize}
- \begin{tip}
- Pendant la phase de brouillon, il est recommandé d'utiliser le \verb|fast| option pour accélérer la compilation. Quand dans \verb|fast| mode, il y aura un filigrane ``DRAFT'' pour indiquer que vous êtes actuellement en mode brouillon.
- \end{tip}
- \item \classoption{a4paper} ou \classoption{b5paper}
- \begin{itemize}
- \item Options de format de papier. Le format de papier par défaut est 8.5 pouces $\times$ 11 pouces.
- \end{itemize}
- \item \classoption{palatino}, \classoption{times}, \classoption{garamond}, \classoption{noto}, \classoption{biolinum} ~$|$~ \classoption{useosf}
- \begin{itemize}
- \item Options de police. Comme son nom l'indique, la police avec le nom correspondant sera utilisée.
- \item L'option \classoption{useosf} est pour activer les chiffres à l'ancienne.
- \end{itemize}
- \item \classoption{use boldface}
- \begin{itemize}
- \item Afficher les titres en gras. Lorsque cette option est utilisée, le titre principal, les titres de tous les niveaux et les noms des environnements de type théorème seront en gras.
- \end{itemize}
- \item \classoption{runin}
- \begin{itemize}
- \item Utilisez le style «~runin~» pour \lstinline|\subsubsection|
- \end{itemize}
- \item \classoption{nothms}
- \begin{itemize}
- \item Mode texte pur. Ne pas définir les environnements de type théorème.
- \end{itemize}
- \item \classoption{nothmnum}, \classoption{thmnum} ou \classoption{thmnum=}\meta{counter}
- \begin{itemize}
- \item Les environnements de type théorème ne seront pas numérotés / numérotés dans l'ordre 1, 2, 3... / numérotés dans \meta{counter}. Si aucune option n'est utilisée, ils seront numérotés dans \texttt{chapter} (livre) ou \texttt{section} (article).
- \end{itemize}
- \item \classoption{regionalref}, \classoption{originalref}
- \begin{itemize}
- \item Lors du référencement, si le nom de l'environnement de type théorème change avec la langue actuelle. Par défaut \classoption{regionalref} est activé, c'est-à-dire que le nom correspondant à la langue courante est utilisé ; par exemple, lors du référencement d'un environnement de type théorème dans un contexte français, les noms «~Théorème, Définition ...~» seront utilisés quel que soit le contexte linguistique dans lequel se trouve l'environnement d'origine. Si \classoption{originalref} est activé, alors le nom restera toujours le même que l'environnement d'origine ; par exemple, lors du référencement d'un théorème écrit dans le contexte français, même si l'on est actuellement dans le contexte anglais, il sera toujours affiché comme «~Théorème~».
- \item En mode \classoption{fast}, l'option \classoption{originalref} n'aura aucun effet.
- \end{itemize}
-\end{itemize}
-
-\LevelOneTitle{Instructions par sujet}
-
-\LevelTwoTitle{Configurer la langue}
-
-\lebhart{} prend en charge plusieurs langues, notamment le chinois (simplifié et traditionnel), l'anglais, le français, l'allemand, l'italien, le japonais, le portugais (européen et brésilien), le russe et l'espagnol. La langue peut être sélectionnée par les macros suivantes :
-
-\begin{itemize}
- \item \lstinline|\UseLanguage{|\meta{language name}\lstinline|}| est utilisé pour spécifier la langue. Le réglage correspondant de la langue sera appliqué après celui-ci. Il peut être utilisé soit dans le préambule ou dans le texte. Lorsqu'aucune langue n'est spécifiée, « English » est sélectionné par défaut.
- \item \lstinline|\UseOtherLanguage{|\meta{language name}\lstinline|}{|\meta{content}\lstinline|}|, qui utilise les paramètres de langue spécifiés pour composer \meta{content}. Par rapport à \lstinline|\UseLanguage|, il ne modifiera pas l'interligne, donc l'interligne restera stable lorsque le texte CJK et occidental sont mélangés.
-\end{itemize}
-
-
-\meta{language name} peut être (il n'est pas sensible à la casse, par exemple, \texttt{French} et \texttt{french} ont le même effet) :
-\begin{itemize}
- \item chinois simplifié : \texttt{CN}, \texttt{Chinese}, \texttt{SChinese} ou \texttt{SimplifiedChinese}
- \item chinois traditionnel : \texttt{TC}, \texttt{TChinese} ou \texttt{TraditionalChinese}
- \item anglais : \texttt{EN} ou \texttt{English}
- \item français : \texttt{FR} ou \texttt{French}
- \item allemand : \texttt{DE}, \texttt{German} ou \texttt{ngerman}
- \item italien : \texttt{IT} ou \texttt{Italian}
- \item portugais : \texttt{PT} ou \texttt{Portuguese}
- \item portugais (brésilien) : \texttt{BR} ou \texttt{Brazilian}
- \item espagnol : \texttt{ES} ou \texttt{Spanish}
- \item japonais : \texttt{JP} ou \texttt{Japanese}
- \item russe : \texttt{RU} ou \texttt{Russian}
-\end{itemize}
-
-\medskip
-De plus, vous pouvez également ajouter de nouveaux paramètres à la langue sélectionnée :
-\begin{itemize}
- \item \lstinline|\AddLanguageSetting{|\meta{settings}\lstinline|}|
- \begin{itemize}
- \item Ajoutez \meta{settings} à toutes les langues prises en charge.
- \end{itemize}
- \item \lstinline|\AddLanguageSetting(|\meta{language name}\lstinline|){|\meta{settings}\lstinline|}|
- \begin{itemize}
- \item Ajoutez \meta{settings} à la langue \meta{language name} sélectionnée.
- \end{itemize}
-\end{itemize}
-Par exemple, \lstinline|\AddLanguageSetting(German){\color{orange}}| peut rendre tout le texte allemand affiché en orange (bien sûr, il faut alors ajouter \lstinline|\AddLanguageSetting{\color{black}}| afin de corriger la couleur du texte dans d'autres langues).
-
-\LevelTwoTitle{Théorèmes et comment les référencer}
-
-Des environnements tels que \texttt{definition} et \texttt{theorem} ont été prédéfinis et peuvent être utilisés directement.
-
-Plus précisement, les environnements prédéfinis incluent : \texttt{assumption}, \texttt{axiom}, \texttt{conjecture}, \texttt{convention}, \texttt{corollary}, \texttt{definition}, \texttt{definition-proposition}, \texttt{definition-theorem}, \texttt{example}, \texttt{exercise}, \texttt{fact}, \texttt{hypothesis}, \texttt{lemma}, \texttt{notation}, \texttt{observation}, \texttt{problem}, \texttt{property}, \texttt{proposition}, \texttt{question}, \texttt{remark}, \texttt{theorem}, et la version non numérotée correspondante avec un astérisque \lstinline|*| dans le nom. Les titres changeront avec la langue actuelle. Par exemple, \texttt{theorem} sera affiché comme «~Theorem~» en mode anglais et «~Théorème~» en mode français.
-
-Lors du référencement d'un environnement de type théorème, il est recommandé d'utiliser \lstinline|\cref{|\meta{label}\texttt{\}}. De cette façon, il n'est pas nécessaire d'écrire explicitement le nom de l'environnement correspondant à chaque fois.
-
-\begin{tip}[Exemple]
-\begin{code}
-\begin{definition}[Des choses étranges] \label{def: strange} ...
-\end{code}
-
-will produce
-\begin{definition}[Des choses étranges]\label{def: strange}
- C'est la définition de certains objets étranges. Il y a approximativement un espace d'une ligne avant et après l'environnement de type théorème, et il y aura un symbole pour marquer la fin de l'environnement.
-\end{definition}
-
-\lstinline|\cref{def: strange}| s'affichera sous la forme : \cref{def: strange}.
-
-Après avoir utilisé \lstinline|\UseLanguage{French}|, un théorème s'affichera sous la forme :
-
-\UseLanguage{English}
-\begin{theorem}[Useless]\label{thm}
- A theorem in English.
-\end{theorem}
-
-Par défaut, lors du référencement, le nom du théorème correspond au contexte courant. Par exemple, le nom de la définition ci-dessus sera en français dans le contexte français courant : \cref{def: strange,thm}. Si vous voulez que le nom du théorème corresponde toujours à la langue du contexte dans lequel se trouve le théorème, vous pouvez ajouter \texttt{originalref} aux options globales.
-\end{tip}
-
-\UseLanguage{French}
-
-Voici les principaux styles d'environnements de type théorème :
-\begin{theorem}
- Style de théorème : theorem, proposition, lemma, corollary, ...
-\end{theorem}
-
-\begin{proof}
- Style d'épreuve
-\end{proof}
-
-\begin{remark}
- Style de remarque
-\end{remark}
-
-\begin{conjecture}
- Style de conjecture
-\end{conjecture}
-
-\begin{example*}
- Style d'exemple : example, fact, ...
-\end{example*}
-
-\begin{problem}
- Style de problème : problem, question, ...
-\end{problem}
-
-\medskip
-Pour l'esthétique, les définitions adjacentes seront reliées entre elles automatiquement :
-\begin{definition}
- Première définition.
-\end{definition}
-
-\begin{definition}
- Deuxième définition.
-\end{definition}
-
-\begin{tip}
- Veuillez consulter la documentation du paquet \textsf{create-theorem} pour voir comment déclarer de nouveaux environnements de type théorème.
-\end{tip}
-
-\LevelTwoTitle{Draft mark}
-
-Vous pouvez utiliser \lstinline|\DNF| pour marquer la partie inachevée. Par example :
-\begin{itemize}
- \item \lstinline|\DNF| ou \lstinline|\DNF<...>|. L'effet est : \DNF~ ou \DNF<...>. \\Le texte à l'intérieur changera en fonction de la langue actuelle. Par exemple, il sera affiché sous la forme \UseOtherLanguage{English}{\DNF} en mode anglais.
-\end{itemize}
-
-\LevelTwoTitle{Titre, résumé et mots-clés}
-
-\lebhart{} possède à la fois les caractéristiques des classes standard et celles des classes \AmS{}.
-
-Par conséquent, le titre et les informations sur l'auteur peuvent être soit écrits de la manière habituelle, conformément à la classe standard \textsf{article} :
-
-\begin{code}
-\title{(*\meta{title}*)}
-\author{(*\meta{author}*)\thanks{(*\meta{text}*)}}
-\date{(*\meta{date}*)}
-\maketitle
-\begin{abstract}
- (*\meta{abstract}*)
-\end{abstract}
-\begin{keyword}
- (*\meta{keywords}*)
-\end{keyword}
-\end{code}
-
-ou écrit à la manière des classes \AmS{} :
-
-\begin{code}
-\title{(*\meta{title}*)}
-\author{(*\meta{author}*)}
-\thanks{(*\meta{text}*)}
-\address{(*\meta{address}*)}
-\email{(*\meta{email}*)}
-\date{(*\meta{date}*)}
-\keywords{(*\meta{keywords}*)}
-\subjclass{(*\meta{subjclass}*)}
-\begin{abstract}
- (*\meta{abstract}*)
-\end{abstract}
-\maketitle
-\end{code}
-
-% \clearpage
-Les informations sur l'auteur peuvent contenir plusieurs groupes, écrits comme suit :
-
-\begin{code}
-\author{(*\meta{author 1}*)}
-\address{(*\meta{address 1}*)}
-\email{(*\meta{email 1}*)}
-\author{(*\meta{author 2}*)}
-\address{(*\meta{address 2}*)}
-\email{(*\meta{email 2}*)}
-...
-\end{code}
-
-Parmi eux, l'ordre mutuel de \lstinline|\address|, \lstinline|\curraddr|, \lstinline|\email| n'est pas important.
-
-\bigskip
-\LevelOneTitle{Problèmes connus}
-
-\begin{itemize}
- \item Les paramètres de police ne sont pas encore parfaits.
- \item La conception de la table des matières est pas si belle.
- \item Comme de nombreuses fonctionnalités sont basées sur la boîte à outils \ProjLib{}, \colorist{} (et donc \colorart{}, \lebhart{} et \colorbook{}, \beaulivre{}) hérite de tous ses problèmes. Pour plus de détails, veuillez vous référer à la section «~Problèmes connus~» de la documentation de \ProjLib{}.
- \item Le mécanisme de gestion des erreurs est incomplet : pas de messages correspondants lorsque certains problèmes surviennent.
- \item Il y a encore beaucoup de choses qui peuvent être optimisées dans le code.
-\end{itemize}
-
-
-\end{document}
-\endinput
-%%
-%% End of file `lebhart/lebhart-doc-fr.tex'.
Modified: trunk/Master/texmf-dist/doc/latex/minimalist/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/minimalist/README.md 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/doc/latex/minimalist/README.md 2023-01-02 21:23:26 UTC (rev 65436)
@@ -1,9 +1,9 @@
<!-- Copyright (C) 2021-2022 by Jinwen XU -->
# `minimalist` bundle: write you documents in a simple and clear way
+<!--
+**The whole series have been rewritten with `expl3`. Please note that the documentations are not yet up-to-date. The syntax of some commands have been changed since the last version, especially the declaration of theorem-like environments by `\CreateTheorem`. For the moment, you can refer to the documentation of the package `create-theorem`.** -->
-**The whole series have been rewritten with `expl3`. Please note that the documentations are not yet up-to-date. The syntax of some commands have been changed since the last version, especially the declaration of theorem-like environments by `\CreateTheorem`. For the moment, you can refer to the documentation of the package `create-theorem`.**
-
## Introduction
`minimalist` is a collection of styles and classes that helps you typesetting articles and books
@@ -13,6 +13,8 @@
- `minimalist.sty` : interface of the main style
- `minimalist-plain.sty` : the plain style
- `minimalist-classical.sty` : the classical style
+ - `minimalist-stream.sty` : the stream style
+ - `minimalist-flow.sty` : the flow style
- `minimart.cls` : class for typesetting articles
- `minimbook.cls` : class for typesetting books
@@ -31,7 +33,7 @@
Italian, Japanese, Portuguese (European and Brazilian), Russian and Spanish
typesetting, and also use more beautiful fonts.
-### How to get these files
+<!-- ### How to get these files
You can get the `.sty` and `.cls` files mentioned above simply by compiling
`minimalist.ins`:
```
@@ -41,7 +43,7 @@
`minimalist-doc.ins`:
```
latex minimalist-doc.ins
-```
+``` -->
## Features
Deleted: trunk/Master/texmf-dist/doc/latex/minimalist/minimalist-doc.pdf
===================================================================
(Binary files differ)
Deleted: trunk/Master/texmf-dist/doc/latex/minimalist/minimalist-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/minimalist/minimalist-doc.tex 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/doc/latex/minimalist/minimalist-doc.tex 2023-01-02 21:23:26 UTC (rev 65436)
@@ -1,619 +0,0 @@
-\documentclass[classical, simple name]{minimart}
-
-\linenumbers % Enable line numbers
-
-%%================================
-%% Import toolkit
-%%================================
-\usepackage{ProjLib}
-\usepackage{longtable} % breakable tables
-\usepackage{hologo} % more TeX logo
-
-\usepackage{blindtext}
-
-\UseLanguage{English}
-
-%%================================
-%% For typesetting code
-%%================================
-\usepackage{listings}
-\usepackage{xcolor}
-\usepackage{setspace}
-\definecolor{code-main}{RGB}{70,130,180}
-\definecolor{code-expl3}{RGB}{240,50,60}
-\definecolor{code-option}{RGB}{40,110,20}
-\definecolor{code-keys}{RGB}{100,130,150}
-\definecolor{code-comment}{RGB}{20,120,80}
-\definecolor{code-background}{gray}{0.99}
-\lstset{
- language = [LaTeX]TeX,
- basicstyle = \ttfamily,
- keywordstyle = \color{code-main},
- commentstyle = \color{code-comment},
- showstringspaces = false,
- breaklines = true,
- frame = lines,
- backgroundcolor = \color{code-background},
- flexiblecolumns = true,
- escapeinside = {(*}{*)},
- alsoletter = {_,:},
- % numbers = left,
- % firstnumber = last,
- numberstyle = \scriptsize\ttfamily,
- stepnumber = 1,
- numbersep = 5pt,
-}
-\newcommand{\meta}[1]{$\langle${\normalfont\itshape#1}$\rangle$}
-\lstset{% LaTeX2 commands
- classoffset = 0,
- texcsstyle =* \color{code-main},
- moretexcs =
- {
- linenumbers,nolinenumbers,
- part,parttext,chapter,section,subsection,subsubsection,
- frontmatter,mainmatter,backmatter,
- tableofcontents,
- href,
- color,
- NameTheorem,CreateTheorem,
- cref,
- ProjLib,
- DNF,
- UseLanguage,UseOtherLanguage,AddLanguageSetting,
- maketitle,address,curraddr,email,keywords,subjclass,thanks,dedicatory,TheDate,
- qedhere,
- }
-}
-\lstset{% LaTeX3 commands
- classoffset = 1,
- texcsstyle =* \color{code-expl3},
- moretexcs =
- {
- }
-}
-\lstnewenvironment{code}{\setstretch{1.05}\LocallyStopLineNumbers}{\ResumeLineNumbers\vspace{-.3\baselineskip}\vspace{-.5\parskip}}
-\lstnewenvironment{code*}{\setstretch{1.05}\lstset{numbers=left}\LocallyStopLineNumbers}{\ResumeLineNumbers\vspace{-.3\baselineskip}\vspace{-.5\parskip}}
-
-\newcommand{\classoption}[1]{\texttt{\textcolor{code-option}{#1}}}
-\newcommand{\packageoption}[1]{\texttt{\textcolor{code-option}{#1}}}
-\newcommand{\commandoption}[1]{\texttt{\textcolor{code-keys}{#1}}}
-
-%%================================
-%% tip
-%%================================
-\usepackage[many]{tcolorbox}
-\newenvironment{tip}[1][Tip]
- {%
- \LocallyStopLineNumbers%
- \begin{tcolorbox}[breakable,
- enhanced,
- width = \textwidth,
- colback = paper, colbacktitle = paper,
- colframe = gray!50, boxrule=0.2mm,
- coltitle = black,
- fonttitle = \sffamily,
- attach boxed title to top left = {yshift=-\tcboxedtitleheight/2, xshift=.5cm},
- boxed title style = {boxrule=0pt, colframe=paper},
- before skip = 3mm,
- after skip = 3mm,
- top = 2.5mm,
- bottom = 1.5mm,
- title={\scshape\sffamily #1}]%
- }
- {%
- \end{tcolorbox}%
- \ResumeLineNumbers%
- }
-
-%%================================
-%% Names
-%%================================
-\providecommand{\minimalist}{\textsf{minimalist}}
-\providecommand{\minimart}{\textsf{minimart}}
-\providecommand{\minimbook}{\textsf{minimbook}}
-\providecommand{\einfart}{\textsf{einfart}}
-\providecommand{\simplivre}{\textsf{simplivre}}
-
-%%================================
-%% Titles
-%%================================
-\let\LevelOneTitle\section
-\let\LevelTwoTitle\subsection
-\let\LevelThreeTitle\subsubsection
-
-%%================================
-%% Main text
-%%================================
-\begin{document}
-
-\def\PackageVersion{2022/09/03}
-
-\title{\minimalist{}, write your articles or books in a simple and clear way}
-\author{Jinwen XU}
-\thanks{Corresponding to: \texttt{\minimalist{} \PackageVersion}}
-\email{\href{mailto:ProjLib at outlook.com}{ProjLib at outlook.com}}
-\date{\TheDate{\PackageVersion}[only-year-month], in Paris}
-
-\maketitle
-
-\begin{abstract}
- \minimalist{} is a series of styles and classes for you to typeset your articles or books in a simple and clear manner. The original intention in designing this series was to write drafts and notes that look simple yet not shabby. With the help of the \ProjLib{} toolkit, also developed by the author, the classes provided here have multi-language support, preset theorem-like environments with clever reference support, and many other functionalities. Notably, using these classes, one can organize the author information in the \AmS{} fashion, makes it easy to switch to journal classes later for publication.
-
- Finally, this documentation is typeset using the \minimart{} class (with the option \classoption{classical}). You can think of it as a short introduction and demonstration.
-\end{abstract}
-
-
-\setcounter{tocdepth}{2}
-\tableofcontents
-
-
-\medskip
-\LevelOneTitle*{Before you start}
-\addcontentsline{toc}{section}{Before you start}
-In order to use the package or classes described here, you need to:
-\begin{itemize}
- \item install TeX Live or MikTeX of the latest possible version, and make sure that \texttt{minimalist} and \texttt{projlib} are correctly installed in your \TeX{} system.
- \item download and install the required fonts if needed.
- \item be familiar with the basic usage of \LaTeX{}, and know how to compile your document with \hologo{pdfLaTeX}, \hologo{XeLaTeX} or \hologo{LuaLaTeX}.
-\end{itemize}
-
-\LevelOneTitle{Introduction}
-
-\minimalist{} is a series of styles and classes for you to typeset your articles or books in a simple and clear manner. The original intention in designing this series was to write drafts and notes that look simple yet not shabby.
-
-The entire collection includes \verb|minimalist.sty|, which is the main style shared by all of the following classes; \verb|minimart.cls| for typesetting articles and \verb|minimbook.cls| for typesetting books. They compile with any major \TeX{} engine, with native support to English, French, German, Italian, Portuguese (European and Brazilian) and Spanish typesetting via \lstinline|\UseLanguage| (see the instruction below for detail).
-
-You can also found \einfart{} and \simplivre{} on CTAN. They are the enhanced version of \minimart{} and \minimbook{} with unicode support. With this, they can access to more beautiful fonts, and additionally have native support for Chinese, Japanese and Russian typesetting. On the other hand, they need to be compiled with \hologo{XeLaTeX} or \hologo{LuaLaTeX} (not \hologo{pdfLaTeX}).
-
-With the help of the \ProjLib{} toolkit, also developed by the author, the classes provided here have multi-language support, preset theorem-like environments with clever reference support, and many other functionalities such as draft marks, enhanced author information block, mathematical symbols and shortcuts, etc. Notably, using these classes, one can organize the author information in the \AmS{} fashion, makes it easy to switch to journal classes later for publication. For more detailed information, you can refer to the documentation of \ProjLib{} by running \lstinline|texdoc projlib| in the command line.
-
-\LevelOneTitle{Usage and examples}
-
-\LevelTwoTitle{How to load it}
-You can directly use \minimart{} or \minimbook{} as your document class. In this way, you can directly begin writing your document, without having to worry about the configurations.
-
-\begin{code}
-\documentclass{minimart} (*{\normalfont or}*) \documentclass{minimbook}
-\end{code}
-
-\begin{tip}
- You may wish to use \einfart{} or \simplivre{} instead, which should produce better result. All the examples later using \minimart{} or \minimbook{} can be adopted to \einfart{} and \simplivre{} respectively, without further modification.
-\end{tip}
-
-You can also use the default classes \textsf{article} or \textsf{book}, and load the \minimalist{} package. This way, only the basic styles are set, and you can thus use your preferred fonts and page layout. All the features mentioned in this article are provided.
-
-\begin{code}
-\documentclass{article} (*{\normalfont or}*) \documentclass{book}
-\usepackage{minimalist}
-\end{code}
-
-\LevelTwoTitle{Example - \minimart}
-
-Let's first look at a complete example of \minimart{} (the same works for \einfart{}).
-
-\begin{code*}
-\documentclass{minimart}
-\usepackage{ProjLib}
-
-\UseLanguage{French}
-
-\begin{document}
-
-\title{(*\meta{title}*)}
-\author{(*\meta{author}*)}
-\date{\TheDate{2022-04-01}}
-
-\maketitle
-
-\begin{abstract}
- Ceci est un résumé. \DNF<(*\meta{some hint}*)>
-\end{abstract}
-\begin{keyword}
- AAA, BBB, CCC, DDD, EEE
-\end{keyword}
-
-\section{Un théorème}
-
-\begin{theorem}\label{thm:abc}
- Ceci est un théorème.
-\end{theorem}
-Référence du théorème: \cref{thm:abc}
-
-\end{document}
-\end{code*}
-
-
-If you find this example a little complicated, don't worry. Let's now look at this example piece by piece.
-
-\medskip
-\LevelThreeTitle{Initialization}
-
-\medskip
-\begin{code}
-\documentclass{minimart}
-\usepackage{ProjLib}
-\end{code}
-
-Initialization is straightforward. The first line loads the document class \minimart{}, and the second line loads the \ProjLib{} toolkit to obtain some additional functionalities.
-
-\LevelThreeTitle{Set the language}
-
-\medskip
-\begin{code}
-\UseLanguage{French}
-\end{code}
-
-This line indicates that French will be used in the document (by the way, if only English appears in your article, then there is no need to set the language). You can also switch the language in the same way later in the middle of the text. Supported languages include Simplified Chinese, Traditional Chinese, Japanese, English, French, German, Spanish, Portuguese, Brazilian Portuguese and Russian%
-\footnote{The language Simplified Chinese, Traditional Chinese, Japanese and Russian requires Unicode support, thus the classes \einfart{} or \simplivre{}.}%
-.%
-
-For detailed description of this command and more related commands, please refer to the section on the multi-language support.
-
-\LevelThreeTitle{Title, author information, abstract and keywords}
-
-\medskip
-\begin{code}
-\title{(*\meta{title}*)}
-\author{(*\meta{author}*)}
-\date{\TheDate{2022-04-01}}
-\maketitle
-
-\begin{abstract}
- (*\meta{abstract}*)
-\end{abstract}
-\begin{keyword}
- (*\meta{keywords}*)
-\end{keyword}
-\end{code}
-
-This part begins with the title and author information block. The example shows the basic usage, but in fact, you can also write:
-
-\begin{code}
-\author{(*\meta{author 1}*)}
-\address{(*\meta{address 1}*)}
-\email{(*\meta{email 1}*)}
-\author{(*\meta{author 2}*)}
-\address{(*\meta{address 2}*)}
-\email{(*\meta{email 2}*)}
-...
-\end{code}
-
-In addition, you may also write in the \AmS{} fashion, i.e.:
-
-\begin{code}
-\title{(*\meta{title}*)}
-\author{(*\meta{author 1}*)}
-\address{(*\meta{address 1}*)}
-\email{(*\meta{email 1}*)}
-\author{(*\meta{author 2}*)}
-\address{(*\meta{address 2}*)}
-\email{(*\meta{email 2}*)}
-\date{\TheDate{2022-04-01}}
-\subjclass{*****}
-\keywords{(*\meta{keywords}*)}
-
-\begin{abstract}
- (*\meta{abstract}*)
-\end{abstract}
-
-\maketitle
-\end{code}
-
-\LevelThreeTitle{Draft marks}
-
-\medskip
-\begin{code}
-\DNF<(*\meta{some hint}*)>
-\end{code}
-
-When you have some places that have not yet been finished yet, you can mark them with this command, which is especially useful during the draft stage.
-
-\LevelThreeTitle{Theorem-like environments}
-
-\medskip
-\begin{code}
-\begin{theorem}\label{thm:abc}
- Ceci est un théorème.
-\end{theorem}
-Référence du théorème: \cref{thm:abc}
-\end{code}
-
-Commonly used theorem-like environments have been pre-defined. Also, when referencing a theorem-like environment, it is recommended to use \lstinline|\cref{|\meta{label}\texttt{\}} --- in this way, there is no need to explicitly write down the name of the corresponding environment every time.
-
-\begin{tip}
-If you wish to switch to the standard class later, just replace the first two lines with:
-
-\begin{code}
-\documentclass{article}
-\usepackage[a4paper,margin=1in]{geometry}
-\usepackage[hidelinks]{hyperref}
-\usepackage[palatino,amsfashion]{ProjLib}
-\end{code}
-
-or to use the \AmS{} class:
-
-\begin{code}
-\documentclass{amsart}
-\usepackage[a4paper,margin=1in]{geometry}
-\usepackage[hidelinks]{hyperref}
-\usepackage[palatino]{ProjLib}
-\end{code}
-
-\end{tip}
-
-
-\LevelTwoTitle{Example - \minimbook}
-
-Now let's look at an example of \minimbook{} (the same works for \simplivre{}).
-
-\begin{code*}
-\documentclass{minimbook}
-\usepackage{ProjLib}
-
-\UseLanguage{French}
-
-\begin{document}
-
-\frontmatter
-
-\begin{titlepage}
- (*\meta{code for titlepage}*)
-\end{titlepage}
-
-\tableofcontents
-
-\mainmatter
-
-\part{(*\meta{part title}*)}
-\parttext{(*\meta{text after part title}*)}
-
-\chapter{(*\meta{chapter title}*)}
-
-\section{(*\meta{section title}*)}
-
-...
-
-\backmatter
-
-...
-
-\end{document}
-\end{code*}
-
-There is no much differences with \minimart{}, only that the title and author information should be typeset within the \texttt{titlepage} environment. Currently no default titlepage style is given, since the design of the title page is a highly personalized thing, and it is difficult to achieve a result that satisfies everyone.
-
-\bigskip
-In the next section, we will go through the options available.
-
-
-\LevelOneTitle{The options}
-
-\minimalist{} offers the following options:
-
-\begin{itemize}[label=,leftmargin=1.25em,itemindent=-1.25em]
- \item The language options \classoption{EN} / \classoption{english} / \classoption{English}, \classoption{FR} / \classoption{french} / \classoption{French}, etc.
- \begin{itemize}
- \item For the option names of a specific language, please refer to \meta{language name} in the next section. The first specified language will be used as the default language.
- \item The language options are optional, mainly for increasing the compilation speed. Without them the result would be the same, only slower.
- \end{itemize}
- \item \classoption{draft} or \classoption{fast}
- \begin{itemize}
- \item The option \verb|fast| enables a faster but slightly rougher style, main differences are:
- \begin{itemize}
- \item Use simpler math font configuration;
- \item Do not use \textsf{hyperref};
- \item Enable the fast mode of \ProjLib{} toolkit.
- \end{itemize}
- \end{itemize}
- \begin{tip}
- During the draft stage, it is recommended to use the \verb|fast| option to speed up compilation. When in \verb|fast| mode, there will be a watermark ``DRAFT'' to indicate that you are currently in the draft mode.
- \end{tip}
- \item \classoption{use boldface}
- \begin{itemize}
- \item Allow boldface. When this option is enabled, the main title, the titles of all levels and the names of theorem-like environments will be bolded.
- \end{itemize}
- \item \classoption{classical}
- \begin{itemize}
- \item Classic mode. An antique-looking style will be used when this option is enabled, like in the current documentation.
- \end{itemize}
- \item \classoption{runin}
- \begin{itemize}
- \item Use the ``runin'' style for \lstinline|\subsubsection|
- \end{itemize}
- \item \classoption{nothms}
- \begin{itemize}
- \item Pure text mode. Do not load theorem-like environments.
- \end{itemize}
- \item \classoption{nothmnum}, \classoption{thmnum} or \classoption{thmnum=}\meta{counter}
- \begin{itemize}
- \item Theorem-like environments will not be numbered / numbered in order 1, 2, 3... / numbered within \meta{counter}. If no option is used, they will be numbered within \texttt{chapter} (book) or \texttt{section} (article).
- \end{itemize}
- \item \classoption{regionalref}, \classoption{originalref}
- \begin{itemize}
- \item When referencing, whether the name of the theorem-like environment changes with the current language. The default is \classoption{regionalref}, \emph{i.e.}, the name corresponding to the current language is used; for example, when referencing a theorem-like environment in English context, the names "Theorem, Definition..." will be used no matter which language context the original environment is in. If \classoption{originalref} is enabled, then the name will always remain the same as the original place; for example, when referencing a theorem written in the French context, even if one is currently in the English context, it will still be displayed as ``Théorème''.
- \item In \texttt{fast} mode, the option \classoption{originalref} will have no effect.
- \end{itemize}
-\end{itemize}
-
-\bigskip
-Additionally, \minimart{} and \minimbook{} offers the following options:
-\begin{itemize}
- \item \classoption{a4paper} or \classoption{b5paper}
- \begin{itemize}
- \item Optional paper size. The default paper size is 7in $\times$ 10in.
- \end{itemize}
- \item \classoption{palatino}, \classoption{times}, \classoption{garamond}, \classoption{noto}, \classoption{biolinum} ~$|$~ \classoption{useosf}
- \begin{itemize}
- \item Font options. As the name suggest, font with corresponding name will be loaded.
- \item The \classoption{useosf} option is used to enable the old-style figures.
- \end{itemize}
- \item \classoption{useindent}
- \begin{itemize}
- \item Use paragraph indentation instead of inter-paragraph spacing.
- \end{itemize}
-\end{itemize}
-
-% \clearpage
-\LevelOneTitle{Instructions by topic}
-
-\LevelTwoTitle{Language configuration}
-
-\minimart{} has multi-language support, including English, French, German, Italian, Portuguese (European and Brazilian) and Spanish. The language can be selected by the following macros:
-
-\begin{itemize}
- \item \lstinline|\UseLanguage{|\meta{language name}\lstinline|}| is used to specify the language. The corresponding setting of the language will be applied after it. It can be used either in the preamble or in the main body. When no language is specified, ``English'' is selected by default.
- \item \lstinline|\UseOtherLanguage{|\meta{language name}\lstinline|}{|\meta{content}\lstinline|}|, which uses the specified language settings to typeset \meta{content}. Compared with \lstinline|\UseLanguage|, it will not modify the line spacing, so line spacing would remain stable when CJK and Western texts are mixed.
-\end{itemize}
-
-\meta{language name} can be (it is not case sensitive, for example, \texttt{French} and \texttt{french} have the same effect):
-\begin{itemize}
- \item Simplified Chinese: \texttt{CN}, \texttt{Chinese}, \texttt{SChinese} or \texttt{SimplifiedChinese}
- \item Traditional Chinese: \texttt{TC}, \texttt{TChinese} or \texttt{TraditionalChinese}
- \item English: \texttt{EN} or \texttt{English}
- \item French: \texttt{FR} or \texttt{French}
- \item German: \texttt{DE}, \texttt{German} or \texttt{ngerman}
- \item Italian: \texttt{IT} or \texttt{Italian}
- \item Portuguese: \texttt{PT} or \texttt{Portuguese}
- \item Portuguese (Brazilian): \texttt{BR} or \texttt{Brazilian}
- \item Spanish: \texttt{ES} or \texttt{Spanish}
- \item Japanese: \texttt{JP} or \texttt{Japanese}
- \item Russian: \texttt{RU} or \texttt{Russian}
-\end{itemize}
-
-\medskip
-In addition, you can also add new settings to selected language:
-\begin{itemize}
- \item \lstinline|\AddLanguageSetting{|\meta{settings}\lstinline|}|
- \begin{itemize}
- \item Add \meta{settings} to all supported languages.
- \end{itemize}
- \item \lstinline|\AddLanguageSetting(|\meta{language name}\lstinline|){|\meta{settings}\lstinline|}|
- \begin{itemize}
- \item Add \meta{settings} to the selected language \meta{language name}.
- \end{itemize}
-\end{itemize}
-For example, \lstinline|\AddLanguageSetting(German){\color{orange}}| can make all German text displayed in orange (of course, one then need to add \lstinline|\AddLanguageSetting{\color{black}}| in order to correct the color of the text in other languages).
-
-\LevelTwoTitle{Theorems and how to reference them}
-
-Environments such as \texttt{definition} and \texttt{theorem} have been preset and can be used directly.
-
-More specifically, preset environments include:
-\texttt{assumption}, \texttt{axiom}, \texttt{conjecture}, \texttt{convention}, \texttt{corollary}, \texttt{definition}, \texttt{definition-proposition}, \texttt{definition-theorem}, \texttt{example}, \texttt{exercise}, \texttt{fact}, \texttt{hypothesis}, \texttt{lemma}, \texttt{notation}, \texttt{observation}, \texttt{problem}, \texttt{property}, \texttt{proposition}, \texttt{question}, \texttt{remark}, \texttt{theorem}, and the corresponding unnumbered version with an asterisk \lstinline|*| in the name. The titles will change with the current language. For example, \texttt{theorem} will be displayed as ``Theorem" in English mode and ``Théorème" in French mode.
-
-When referencing a theorem-like environment, it is recommended to use \lstinline|\cref{|\meta{label}\texttt{\}}. In this way, there is no need to explicitly write down the name of the corresponding environment every time.
-
-\begin{tip}[Example]
-\begin{code}
-\begin{definition}[Strange things] \label{def: strange} ...
-\end{code}
-
-will produce
-\begin{definition}[Strange things]\label{def: strange}
- This is the definition of some strange objects. There is approximately a one-line spacing before and after the theorem environment, and there will be a symbol to mark the end of the environment.
-\end{definition}
-
-\lstinline|\cref{def: strange}| will be displayed as: \cref{def: strange}.
-
-After using \lstinline|\UseLanguage{French}|, a theorem will be displayed as:
-
-\UseLanguage{French}
-\begin{theorem}[Inutile]\label{thm}
- Un théorème en français.
-\end{theorem}
-
-By default, when referenced, the name of the theorem matches the current context. For example, the definition above will be displayed in French in the current French context: \cref{def: strange,thm}. If you want the name of the theorem to always match the language of the context in which the theorem is located, you can add \texttt{originalref} to the global options.
-\end{tip}
-
-\UseLanguage{English}
-
-\begin{tip}
- Please refer to the documentation of the package \textsf{create-theorem} to see how to declare new theorem-like environments.
-\end{tip}
-
-\LevelTwoTitle{Draft mark}
-
-You can use \lstinline|\DNF| to mark the unfinished part. For example:
-\begin{itemize}
- \item \lstinline|\DNF| or \lstinline|\DNF<...>|. The effect is: \DNF~ or \DNF<...>. \\The prompt text changes according to the current language. For example, it will be displayed as \UseOtherLanguage{French}{\DNF} in French mode.
-\end{itemize}
-
-\LevelTwoTitle{Title, abstract and keywords}
-
-\minimart{} has both the features of standard classes and that of the \AmS{} classes.
-
-Therefore, the title part can either be written in the usual way, in accordance with the standard class \textsf{article}:
-
-\begin{code}
-\title{(*\meta{title}*)}
-\author{(*\meta{author}*)\thanks{(*\meta{text}*)}}
-\date{(*\meta{date}*)}
-\maketitle
-\begin{abstract}
- (*\meta{abstract}*)
-\end{abstract}
-\begin{keyword}
- (*\meta{keywords}*)
-\end{keyword}
-\end{code}
-
-or written in the way of \AmS{} classes:
-
-\begin{code}
-\title{(*\meta{title}*)}
-\author{(*\meta{author}*)}
-\thanks{(*\meta{text}*)}
-\address{(*\meta{address}*)}
-\email{(*\meta{email}*)}
-\date{(*\meta{date}*)}
-\keywords{(*\meta{keywords}*)}
-\subjclass{(*\meta{subjclass}*)}
-\begin{abstract}
- (*\meta{abstract}*)
-\end{abstract}
-\maketitle
-\end{code}
-
-The author information can contain multiple groups, written as:
-
-\begin{code}
-\author{(*\meta{author 1}*)}
-\address{(*\meta{address 1}*)}
-\email{(*\meta{email 1}*)}
-\author{(*\meta{author 2}*)}
-\address{(*\meta{address 2}*)}
-\email{(*\meta{email 2}*)}
-...
-\end{code}
-
-Among them, the mutual order of \lstinline|\address|, \lstinline|\curraddr|, \lstinline|\email| is not important.
-
-% \clearpage
-\LevelTwoTitle{Miscellaneous}
-
-\LevelThreeTitle{On the line numbers}
-Line numbers can be turned on and off at any time. \lstinline|\linenumbers| is used to enable the line numbers, and \lstinline|\nolinenumbers| is used to disable them. For the sake of beauty, the title, table of contents, index and some other elements are not numbered.
-
-\LevelThreeTitle{On the footnotes in the title}
-In \lstinline|\section| or \lstinline|\subsection| , if you wish to add footnotes, you can only:
-\begin{itemize}
- \item first write \lstinline|\mbox{\protect\footnotemark}|,
- \item then add \lstinline|\footnotetext{...}| afterwards.
-\end{itemize}
-This is a disadvantage brought about by the underline decoration of the title.
-
-
-\LevelOneTitle{Known issues}
-
-\begin{itemize}[itemsep=.6em]
- \item The font settings are still not perfect.
- \item Since many features are based on the \ProjLib{} toolkit, \minimalist{} (and hence \minimart{}, \einfart{} and \minimbook{}, \simplivre{}) inherits all its problems. For details, please refer to the ``Known Issues'' section of the \ProjLib{} documentation.
- \item The error handling mechanism is incomplete: there is no corresponding error prompt when some problems occur.
- \item There are still many things that can be optimized in the code.
-\end{itemize}
-
-
-\end{document}
-\endinput
-%%
-%% End of file `minimalist/minimalist-doc.tex'.
Modified: trunk/Master/texmf-dist/doc/latex/projlib/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/projlib/README.md 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/doc/latex/projlib/README.md 2023-01-02 21:23:26 UTC (rev 65436)
@@ -6,7 +6,7 @@
> **ProjLib** can be interpreted as "***Proj**ect **Lib**rary*" (in English), or as "***Proj**et **Lib**re*" (in French, meaning "*Free Project*").
-> **This bundle is dated 2022/11/15. Please note that the documentations are not yet up-to-date.**
+> **This bundle is dated 2022/11/20. Please note that the documentations are not yet up-to-date.**
## Introduction
Deleted: trunk/Master/texmf-dist/doc/latex/simplivre/simplivre-doc-cn.pdf
===================================================================
(Binary files differ)
Deleted: trunk/Master/texmf-dist/doc/latex/simplivre/simplivre-doc-cn.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/simplivre/simplivre-doc-cn.tex 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/doc/latex/simplivre/simplivre-doc-cn.tex 2023-01-02 21:23:26 UTC (rev 65436)
@@ -1,484 +0,0 @@
-\documentclass[use boldface, simple name]{simplivre}
-
-\linenumbers % Enable line numbers
-
-%%================================
-%% Import toolkit
-%%================================
-\usepackage{ProjLib}
-\usepackage{longtable} % breakable tables
-\usepackage{hologo} % more TeX logo
-
-\usepackage{blindtext}
-
-\UseLanguage{Chinese}
-
-%%================================
-%% For typesetting code
-%%================================
-\usepackage{listings}
-\usepackage{xcolor}
-\usepackage{setspace}
-\definecolor{code-main}{RGB}{70,130,180}
-\definecolor{code-expl3}{RGB}{240,50,60}
-\definecolor{code-option}{RGB}{40,110,20}
-\definecolor{code-keys}{RGB}{100,130,150}
-\definecolor{code-comment}{RGB}{20,120,80}
-\definecolor{code-background}{gray}{0.99}
-\lstset{
- language = [LaTeX]TeX,
- basicstyle = \ttfamily,
- keywordstyle = \color{code-main},
- commentstyle = \color{code-comment},
- showstringspaces = false,
- breaklines = true,
- frame = lines,
- backgroundcolor = \color{code-background},
- flexiblecolumns = true,
- escapeinside = {(*}{*)},
- alsoletter = {_,:},
- % numbers = left,
- % firstnumber = last,
- numberstyle = \scriptsize\ttfamily,
- stepnumber = 1,
- numbersep = 5pt,
-}
-\newcommand{\meta}[1]{$\langle${\normalfont\itshape#1}$\rangle$}
-\lstset{% LaTeX2 commands
- classoffset = 0,
- texcsstyle =* \color{code-main},
- moretexcs =
- {
- linenumbers,nolinenumbers,
- part,parttext,chapter,section,subsection,subsubsection,
- frontmatter,mainmatter,backmatter,
- tableofcontents,
- href,
- color,
- NameTheorem,CreateTheorem,
- cref,
- ProjLib,
- DNF,
- UseLanguage,UseOtherLanguage,AddLanguageSetting,
- maketitle,address,curraddr,email,keywords,subjclass,thanks,dedicatory,TheDate,
- qedhere,
- }
-}
-\lstset{% LaTeX3 commands
- classoffset = 1,
- texcsstyle =* \color{code-expl3},
- moretexcs =
- {
- }
-}
-\lstnewenvironment{code}{\setstretch{1.05}\LocallyStopLineNumbers}{\ResumeLineNumbers\vspace{-.3\baselineskip}\vspace{-.5\parskip}}
-\lstnewenvironment{code*}{\setstretch{1.05}\lstset{numbers=left}\LocallyStopLineNumbers}{\ResumeLineNumbers\vspace{-.3\baselineskip}\vspace{-.5\parskip}}
-
-\newcommand{\classoption}[1]{\texttt{\textcolor{code-option}{#1}}}
-\newcommand{\packageoption}[1]{\texttt{\textcolor{code-option}{#1}}}
-\newcommand{\commandoption}[1]{\texttt{\textcolor{code-keys}{#1}}}
-
-%%================================
-%% tip
-%%================================
-\usepackage[many]{tcolorbox}
-\newenvironment{tip}[1][提示]
- {%
- \LocallyStopLineNumbers%
- \begin{tcolorbox}[breakable,
- enhanced,
- width = \textwidth,
- colback = paper, colbacktitle = paper,
- colframe = gray!50, boxrule=0.2mm,
- coltitle = black,
- fonttitle = \sffamily,
- attach boxed title to top left = {yshift=-\tcboxedtitleheight/2, xshift=.5cm},
- boxed title style = {boxrule=0pt, colframe=paper},
- before skip = 3mm,
- after skip = 3mm,
- top = 2.5mm,
- bottom = 1.5mm,
- title={\scshape\sffamily #1}]%
- }
- {%
- \end{tcolorbox}%
- \ResumeLineNumbers%
- }
-
-%%================================
-%% Names
-%%================================
-\providecommand{\minimalist}{\textsf{minimalist}}
-\providecommand{\minimart}{\textsf{minimart}}
-\providecommand{\minimbook}{\textsf{minimbook}}
-\providecommand{\einfart}{\textsf{einfart}}
-\providecommand{\simplivre}{\textsf{simplivre}}
-
-%%================================
-%% Titles
-%%================================
-\let\LevelOneTitle\chapter
-\let\LevelTwoTitle\section
-\let\LevelThreeTitle\subsection
-
-%%================================
-%% Main text
-%%================================
-\begin{document}
-
-\def\PackageVersion{2022/09/03}
-
-\frontmatter
-\LocallyStopLineNumbers
-
-\TitlePage [ style = simple ]
- {
- , title = \simplivre{}
- , subtitle = {
- \textsc{以极简主义风格排版你的图书}\\[20pt]
- \smaller[3] 对应版本. \texttt{\simplivre{} \PackageVersion}
- }
- , author = 许锦文
- , date = {\TheDate{\PackageVersion}[only-year-month],巴黎}
- }
-
-\ResumeLineNumbers
-
-
-\chapter{前言}
-
-\simplivre{} 是 \minimalist{} 文档类系列的成员之一,其名称取自于法文的 simple (“简约”),以及 livre (“书”),由二者组合而成。整个 \minimalist{} 系列包含用于排版文章的 \minimart{}、\einfart{} 以及用于排版书的 \minimbook{}、\simplivre{}。我设计这一系列的初衷是为了撰写草稿与笔记,使之看上去简朴而不简陋。
-
-\simplivre{} 支持英语、法语、德语、意大利语、葡萄牙语、巴西葡萄牙语、西班牙语、简体中文、繁体中文、日文、俄文,并且同一篇文档中这些语言可以很好地协调。由于采用了自定义字体,需要用 \hologo{XeLaTeX} 或 \hologo{LuaLaTeX} 引擎进行编译。
-
-这篇说明文档即是用 \simplivre{} 排版的 (使用了参数 \classoption{use boldface}),你可以把它看作一份简短的说明与演示。
-
-\bigskip
-\begin{tip}
- 多语言支持、定理类环境、未完成标记等功能是由 \ProjLib{} 工具箱提供的,这里只给出了将其与本文档类搭配使用的要点。如需获取更详细的信息,可以参阅 \ProjLib{} 的说明文档。
-\end{tip}
-
-\tableofcontents
-
-\mainmatter
-
-\part{说明}
-\parttext{可以通过 \lstinline|\\parttext|\meta{text} 在这里添加一些说明}
-
-\medskip
-\LevelOneTitle*{开始之前}
-为了使用这篇文档中提到的文档类,你需要:
-\begin{itemize}
- \item 安装一个尽可能新版本的 TeX Live 或 MikTeX 套装,并确保 \texttt{minimalist} 和 \texttt{projlib} 被正确安装在你的 \TeX 封装中。
- \item 下载并安装所需的字体,参考“关于默认字体”这一节。
- \item 熟悉 \LaTeX{} 的基本使用方式,且会用 \hologo{pdfLaTeX}、\hologo{XeLaTeX} 或 \hologo{LuaLaTeX} 编译你的文档。
-\end{itemize}
-
-
-\LevelOneTitle{使用示例}
-
-\LevelTwoTitle{如何加载}
-
-只需要在第一行写:
-
-\begin{code}
-\documentclass{simplivre}
-\end{code}
-
-即可使用 \simplivre{} 文档类。
-
-\begin{tip}[请注意]
- 要使用 \hologo{XeLaTeX} 或 \hologo{LuaLaTeX} 引擎才能编译。
-\end{tip}
-
-\LevelTwoTitle{一篇完整的文档示例}
-
-首先来看一段完整的示例。
-
-
-\begin{code*}
-\documentclass{simplivre}
-\usepackage{ProjLib}
-
-\UseLanguage{French}
-
-\begin{document}
-
-\frontmatter
-
-\begin{titlepage}
- (*\meta{code for titlepage}*)
-\end{titlepage}
-
-\tableofcontents
-
-\mainmatter
-
-\part{(*\meta{part title}*)}
-\parttext{(*\meta{text after part title}*)}
-
-\chapter{(*\meta{chapter title}*)}
-
-\section{(*\meta{section title}*)}
-
-\DNF<(*\meta{some hint}*)>
-
-\begin{theorem}\label{thm:abc}
- Ceci est un théorème.
-\end{theorem}
-Référence du théorème: \cref{thm:abc}
-
-\backmatter
-
-...
-
-\end{document}
-\end{code*}
-
-如果你觉得这个例子有些复杂,不要担心。现在我们来一点点地观察这个例子。
-
-\LevelThreeTitle{初始化部分}
-
-\medskip
-\begin{code}
-\documentclass{simplivre}
-\usepackage{ProjLib}
-\end{code}
-
-初始化部分很简单:第一行加载文档类 \simplivre{},第二行加载 \ProjLib{} 工具箱,以便使用一些附加功能。
-
-\LevelThreeTitle{设定语言}
-
-\medskip
-\begin{code}
-\UseLanguage{French}
-\end{code}
-
-这一行表明文档中将使用法语(如果你的文章中只出现英语,那么可以不需要设定语言)。你也可以在文章中间用同样的方式再次切换语言。支持的语言包括简体中文、繁体中文、日文、英语、法语、德语、西班牙语、葡萄牙语、巴西葡萄牙语、俄语。
-
-对于这一命令的详细说明以及更多相关命令,可以参考后面关于多语言支持的小节。
-
-
-\LevelThreeTitle{未完成标记}
-
-\medskip
-\begin{code}
-\DNF<(*\meta{some hint}*)>
-\end{code}
-当你有一些地方尚未完成的时候,可以用这条指令标记出来,它在草稿阶段格外有用。
-
-\LevelThreeTitle{定理类环境}
-
-\medskip
-\begin{code}
-\begin{theorem}\label{thm:abc}
- Ceci est un théorème.
-\end{theorem}
-Référence du théorème: \cref{thm:abc}
-\end{code}
-
-常见的定理类环境可以直接使用。在引用的时候,建议采用智能引用 \lstinline|\cref{|\meta{label}\lstinline|}|——这样就不必每次都写上相应环境的名称了。
-
-
-
-
-\LevelOneTitle{关于默认字体}
-本文档类中默认使用 Palatino Linotype 作为英文主字体,思源宋体、思源黑体、思源等宽作为中文主字体、无衬线字体以及等宽字体,并部分使用了 Neo Euler 作为数学字体。这些字体需要用户自行下载安装。其中,思源字体系列可在 \url{https://github.com/adobe-fonts} 下载 (推荐下载 Super-OTC 版本,这样下载的体积较小)。Neo Euler可以在 \url{https://github.com/khaledhosny/euler-otf} 下载。在没有安装相应的字体时,将采用TeX Live中自带的字体来代替,效果可能会有所折扣。
-
-另外,还使用了 Source Code Pro 作为英文无衬线字体、New Computer Modern Mono 作为英文等宽字体,以及 Asana Math、Tex Gyre Pagella Math、Latin Modern Math 数学字体中的部分符号。这些字体在 TeX Live 或 MikTeX 中已经提供,无需自行下载安装。
-
-\begin{itemize}
- \item English main font. \textsf{English sans serif font}. \texttt{English typewriter font}.
- \item 简体中文主要字体,\textsf{简体中文无衬线字体},\texttt{简体中文等宽字体}
- \item \UseOtherLanguage{TC}{繁體中文主要字體,\textsf{繁體中文無襯線字體},\texttt{繁體中文等寬字體}}
- \item \UseOtherLanguage{JP}{日本語のメインフォント、\textsf{日本語のサンセリフフォント}、\texttt{日本語の等幅フォント}}
- \item 数学示例: \( \alpha, \beta, \gamma, \delta, 1,2,3,4, a,b,c,d \), \[\mathrm{li}(x)\coloneqq \int_2^{\infty} \frac{1}{\log t}\,\mathrm{d}t \]
-\end{itemize}
-
-
-\LevelOneTitle{选项}
-
-\simplivre{} 文档类有下面几个选项:
-
-\begin{itemize}[label=,leftmargin=1.25em,itemindent=-1.25em]
- \item 语言选项 \classoption{EN} / \classoption{english} / \classoption{English}、\classoption{FR} / \classoption{french} / \classoption{French},等等
- \begin{itemize}
- \item 具体选项名称可参见下一节的 \meta{language name}。第一个指定的语言将作为默认语言。
- \item 语言选项不是必需的,其主要用途是提高编译速度。不添加语言选项时效果是一样的,只是会更慢一些。
- \end{itemize}
- \item \classoption{draft} 或 \classoption{fast}
- \begin{itemize}
- \item 你可以使用选项 \verb|fast| 来启用快速但略微粗糙的样式,主要区别是:
- \begin{itemize}
- \item 使用较为简单的数学字体设置;
- \item 不启用超链接;
- \item 启用 \ProjLib{} 工具箱的快速模式。
- \end{itemize}
- \end{itemize}
- \begin{tip}
- 在文章的撰写阶段,建议使用 \verb|fast| 选项以加快编译速度,改善写作时的流畅度。使用 \verb|fast| 模式时会有“DRAFT”字样的水印,以提示目前处于草稿阶段。
- \end{tip}
- \item \classoption{a4paper} 或 \classoption{b5paper}
- \begin{itemize}
- \item 可选的纸张大小。默认的纸张大小为 7in $\times$ 10in。
- \end{itemize}
- \item \classoption{palatino}、\classoption{times}、\classoption{garamond}、\classoption{noto}、\classoption{biolinum} ~$|$~ \classoption{useosf}
- \begin{itemize}
- \item 字体选项。顾名思义,会加载相应名称的字体。
- \item \classoption{useosf} 选项用来启用“旧式”数字。
- \end{itemize}
- \item \classoption{use boldface}
- \begin{itemize}
- \item 允许加粗。启用这一选项时,题目、各级标题、定理类环境名称会被加粗。
- \end{itemize}
- \item \classoption{classical}
- \begin{itemize}
- \item 经典模式。使用这一选项时,将会启用较为古色古香的风格,如同当前的这篇说明文档一样。
- \end{itemize}
- \item \classoption{useindent}
- \begin{itemize}
- \item 采用段首缩进而不是段间间距。
- \end{itemize}
- \item \classoption{runin}
- \begin{itemize}
- \item \lstinline|\subsubsection| 采用 ``runin'' 风格。
- \end{itemize}
- \item \classoption{nothms}
- \begin{itemize}
- \item 纯文本模式,不加载定理类环境。
- \end{itemize}
- \item \classoption{nothmnum}、\classoption{thmnum} 或 \classoption{thmnum=}\meta{counter}
- \begin{itemize}
- \item 定理类环境均不编号 / 按照 1、2、3 顺序编号 / 在 \meta{counter} 内编号。在没有使用任何选项的情况下将按照 \texttt{chapter} (书) 或 \texttt{section} (文章) 编号。
- \end{itemize}
- \item \classoption{regionalref}、\classoption{originalref}
- \begin{itemize}
- \item 在智能引用时,定理类环境的名称是否随当前语言而变化。默认为 \classoption{regionalref},即引用时采用当前语言对应的名称;例如,在中文语境中引用定理类环境时,无论原环境处在什么语境中,都将使用名称“定理、定义……”。若启用 \classoption{originalref},则引用时会始终采用定理类环境所处语境下的名称;例如,在英文语境中书写的定理,即使稍后在中文语境下引用时,仍将显示为 Theorem。
- \item 在 \texttt{fast} 模式下,\classoption{originalref} 将不起作用。
- \end{itemize}
-\end{itemize}
-\bigskip
-另外,排版图书时常用的 \classoption{oneside}、\classoption{twoside} 选项也是可以使用的。默认采用双页排版。
-
-\LevelOneTitle{具体说明}
-
-\LevelTwoTitle{语言设置}
-
-\simplivre{} 提供了多语言支持,包括英语、法语、德语、意大利语、葡萄牙语、巴西葡萄牙语、西班牙语、简体中文、繁体中文、日文、俄文。可以通过下列命令来选定语言:
-\begin{itemize}
- \item \lstinline|\UseLanguage{|\meta{language name}\lstinline|}|,用于指定语言,在其后将使用对应的语言设定。
- \begin{itemize}
- \item 既可以用于导言部分,也可以用于正文部分。在不指定语言时,默认选定 “English”。
- \end{itemize}
- \item \lstinline|\UseOtherLanguage{|\meta{language name}\lstinline|}{|\meta{content}\lstinline|}|,用指定的语言的设定排版 \meta{content}。
- \begin{itemize}
- \item 相比 \lstinline|\UseLanguage|,它不会对行距进行修改,因此中西文字混排时能保持行距稳定。
- \end{itemize}
-\end{itemize}
-
-\meta{language name} 有下列选择 (不区分大小写,如 \texttt{French} 或 \texttt{french} 均可):
-\begin{itemize}
- \item 简体中文:\texttt{CN}、\texttt{Chinese}、\texttt{SChinese} 或 \texttt{SimplifiedChinese}
- \item 繁体中文:\texttt{TC}、\texttt{TChinese} 或 \texttt{TraditionalChinese}
- \item 英文:\texttt{EN} 或 \texttt{English}
- \item 法文:\texttt{FR} 或 \texttt{French}
- \item 德文:\texttt{DE}、\texttt{German} 或 \texttt{ngerman}
- \item 意大利语:\texttt{IT} 或 \texttt{Italian}
- \item 葡萄牙语:\texttt{PT} 或 \texttt{Portuguese}
- \item 巴西葡萄牙语:\texttt{BR} 或 \texttt{Brazilian}
- \item 西班牙语:\texttt{ES} 或 \texttt{Spanish}
- \item 日文:\texttt{JP} 或 \texttt{Japanese}
- \item 俄文:\texttt{RU} 或 \texttt{Russian}
-\end{itemize}
-
-另外,还可以通过下面的方式来填加相应语言的设置:
-\begin{itemize}
- \item \lstinline|\AddLanguageSetting{|\meta{settings}\lstinline|}|
- \begin{itemize}
- \item 向所有支持的语言增加设置 \meta{settings}。
- \end{itemize}
- \item \lstinline|\AddLanguageSetting(|\meta{language name}\lstinline|){|\meta{settings}\lstinline|}|
- \begin{itemize}
- \item 向指定的语言 \meta{language name} 增加设置 \meta{settings}。
- \end{itemize}
-\end{itemize}
-例如,\lstinline|\AddLanguageSetting(German){\color{orange}}| 可以让所有德语以橙色显示(当然,还需要再加上 \lstinline|\AddLanguageSetting{\color{black}}| 来修正其他语言的颜色)。
-
-\LevelTwoTitle{定理类环境及其引用}
-
-定义、定理等环境已经被预定义,可以直接使用。
-
-具体来说,预设的定理类环境包括:
-\texttt{assumption}、\texttt{axiom}、\texttt{conjecture}、\texttt{convention}、\texttt{corollary}、\texttt{definition}、\texttt{definition-proposition}、\texttt{definition-theorem}、\texttt{example}、\texttt{exercise}、\texttt{fact}、\texttt{hypothesis}、\texttt{lemma}、\texttt{notation}、\texttt{observation}、\texttt{problem}、\texttt{property}、\texttt{proposition}、\texttt{question}、\texttt{remark}、\texttt{theorem},以及相应的带有星号 \lstinline|*| 的无编号版本。
-
-在引用定理类环境时,建议使用智能引用 \lstinline|\cref{|\meta{label}\lstinline|}|。这样就不必每次都写上相应环境的名称了。
-
-\medskip
-\begin{tip}[例子]
-\begin{code}
-\begin{definition}[奇异物品] \label{def: strange} ...
-\end{code}
-将会生成
-\begin{definition}[奇异物品]\label{def: strange}
- 这是奇异物品的定义。定理类环境的前后有一行左右的间距。在定义结束的时候会有一个符号来标记。
-\end{definition}
-
-\lstinline|\cref{def: strange}| 会显示为:\cref{def: strange}。
-
-\medskip
-使用 \lstinline|\UseLanguage{English}| 后,定理会显示为:
-
-\UseLanguage{English}
-\begin{theorem}[Useless]\label{thm}
- A theorem in English.
-\end{theorem}
-
-默认情况下,引用时,定理类环境的名称总是与当前语言相匹配,例如,上面的定义在现在的英文模式下将显示为英文:\cref{def: strange,thm}。如果在引用时想让定理的名称总是与原定理所在区域的语言匹配,即总是显示原始名称,可以在全局选项中加入 \texttt{originalref}。
-\end{tip}
-
-\UseLanguage{Chinese}
-
-\begin{tip}
- 请参阅 \textsf{create-theorem} 的说明文档以获知如何定义新的定理类环境。
-\end{tip}
-
-\LevelTwoTitle{未完成标记}
-
-你可以通过 \lstinline|\DNF| 来标记尚未完成的部分。例如:
-\begin{itemize}
- \item \lstinline|\DNF| 或 \lstinline|\DNF<...>|。效果为:\DNF~或 \DNF<...>。\\其提示文字与当前语言相对应,例如,在法语模式下将会显示为 \UseOtherLanguage{French}{\DNF}。
-\end{itemize}
-
-
-\LevelTwoTitle{其他}
-
-\LevelThreeTitle{关于行号}
-行号可以随时开启和关闭。\lstinline|\linenumbers| 用来开启行号,\lstinline|\nolinenumbers| 用来关闭行号。标题、目录、索引等位置为了美观,不进行编号。
-
-\LevelThreeTitle{关于标题中的脚注}
-在 \lstinline|\section| 或 \lstinline|\subsection| 中,如果想使用脚注,只能:
-\begin{itemize}
- \item 先写 \lstinline|\mbox{\protect\footnotemark}|,
- \item 再在后面用 \lstinline|\footnotetext{...}|。
-\end{itemize}
-这是标题使用下划线装饰之后带来的一个缺点。
-
-\LevelThreeTitle{关于QED符号}
-由于定理类环境中的字体和正文字体是一样的,为了方便看出定理类环境在哪里结束,在其结尾处放置了一个空心的QED符号。然而,如果你的定理是由公式或者列表结尾的,这个符号就无法自动地放在正确的位置。这时,你需要手动在公式或列表最后一个条目的后面加上 \lstinline|\qedhere|,以让QED符号显示到这一行的最后。
-
-\LevelOneTitle{目前存在的问题}
-
-\begin{itemize}[itemsep=.6em]
- \item 对于字体的设置仍然不够完善。
- \item 由于很多核心功能建立在 \ProjLib{} 工具箱的基础上,因此 \minimalist{} (进而 \minimart{}、\einfart{} 与 \minimbook{}、\simplivre{}) 自然继承了其所有问题。详情可以参阅 \ProjLib{} 用户文档的“目前存在的问题”这一小节。
- \item 错误处理功能不完善,在出现一些问题时没有相应的错误提示。
- \item 代码中仍有许多可优化之处。
-\end{itemize}
-
-\part{演示}
-\blinddocument
-
-\end{document}
-\endinput
-%%
-%% End of file `simplivre/simplivre-doc-cn.tex'.
Deleted: trunk/Master/texmf-dist/doc/latex/simplivre/simplivre-doc-en.pdf
===================================================================
(Binary files differ)
Deleted: trunk/Master/texmf-dist/doc/latex/simplivre/simplivre-doc-en.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/simplivre/simplivre-doc-en.tex 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/doc/latex/simplivre/simplivre-doc-en.tex 2023-01-02 21:23:26 UTC (rev 65436)
@@ -1,480 +0,0 @@
-\documentclass[use boldface, simple name]{simplivre}
-
-\linenumbers % Enable line numbers
-
-%%================================
-%% Import toolkit
-%%================================
-\usepackage{ProjLib}
-\usepackage{longtable} % breakable tables
-\usepackage{hologo} % more TeX logo
-
-\usepackage{blindtext}
-
-\UseLanguage{English}
-
-%%================================
-%% For typesetting code
-%%================================
-\usepackage{listings}
-\usepackage{xcolor}
-\usepackage{setspace}
-\definecolor{code-main}{RGB}{70,130,180}
-\definecolor{code-expl3}{RGB}{240,50,60}
-\definecolor{code-option}{RGB}{40,110,20}
-\definecolor{code-keys}{RGB}{100,130,150}
-\definecolor{code-comment}{RGB}{20,120,80}
-\definecolor{code-background}{gray}{0.99}
-\lstset{
- language = [LaTeX]TeX,
- basicstyle = \ttfamily,
- keywordstyle = \color{code-main},
- commentstyle = \color{code-comment},
- showstringspaces = false,
- breaklines = true,
- frame = lines,
- backgroundcolor = \color{code-background},
- flexiblecolumns = true,
- escapeinside = {(*}{*)},
- alsoletter = {_,:},
- % numbers = left,
- % firstnumber = last,
- numberstyle = \scriptsize\ttfamily,
- stepnumber = 1,
- numbersep = 5pt,
-}
-\newcommand{\meta}[1]{$\langle${\normalfont\itshape#1}$\rangle$}
-\lstset{% LaTeX2 commands
- classoffset = 0,
- texcsstyle =* \color{code-main},
- moretexcs =
- {
- linenumbers,nolinenumbers,
- part,parttext,chapter,section,subsection,subsubsection,
- frontmatter,mainmatter,backmatter,
- tableofcontents,
- href,
- color,
- NameTheorem,CreateTheorem,
- cref,
- ProjLib,
- DNF,
- UseLanguage,UseOtherLanguage,AddLanguageSetting,
- maketitle,address,curraddr,email,keywords,subjclass,thanks,dedicatory,TheDate,
- qedhere,
- }
-}
-\lstset{% LaTeX3 commands
- classoffset = 1,
- texcsstyle =* \color{code-expl3},
- moretexcs =
- {
- }
-}
-\lstnewenvironment{code}{\setstretch{1.05}\LocallyStopLineNumbers}{\ResumeLineNumbers\vspace{-.3\baselineskip}\vspace{-.5\parskip}}
-\lstnewenvironment{code*}{\setstretch{1.05}\lstset{numbers=left}\LocallyStopLineNumbers}{\ResumeLineNumbers\vspace{-.3\baselineskip}\vspace{-.5\parskip}}
-
-\newcommand{\classoption}[1]{\texttt{\textcolor{code-option}{#1}}}
-\newcommand{\packageoption}[1]{\texttt{\textcolor{code-option}{#1}}}
-\newcommand{\commandoption}[1]{\texttt{\textcolor{code-keys}{#1}}}
-
-%%================================
-%% tip
-%%================================
-\usepackage[many]{tcolorbox}
-\newenvironment{tip}[1][Tip]
- {%
- \LocallyStopLineNumbers%
- \begin{tcolorbox}[breakable,
- enhanced,
- width = \textwidth,
- colback = paper, colbacktitle = paper,
- colframe = gray!50, boxrule=0.2mm,
- coltitle = black,
- fonttitle = \sffamily,
- attach boxed title to top left = {yshift=-\tcboxedtitleheight/2, xshift=.5cm},
- boxed title style = {boxrule=0pt, colframe=paper},
- before skip = 3mm,
- after skip = 3mm,
- top = 2.5mm,
- bottom = 1.5mm,
- title={\scshape\sffamily #1}]%
- }
- {%
- \end{tcolorbox}%
- \ResumeLineNumbers%
- }
-
-%%================================
-%% Names
-%%================================
-\providecommand{\minimalist}{\textsf{minimalist}}
-\providecommand{\minimart}{\textsf{minimart}}
-\providecommand{\minimbook}{\textsf{minimbook}}
-\providecommand{\einfart}{\textsf{einfart}}
-\providecommand{\simplivre}{\textsf{simplivre}}
-
-%%================================
-%% Titles
-%%================================
-\let\LevelOneTitle\chapter
-\let\LevelTwoTitle\section
-\let\LevelThreeTitle\subsection
-
-%%================================
-%% Main text
-%%================================
-\begin{document}
-
-\def\PackageVersion{2022/09/03}
-
-\LocallyStopLineNumbers
-
-\frontmatter
-
-\TitlePage [ style = simple ]
- {
- , title = \simplivre{}
- , subtitle = {
- \textsc{Write your books in \\a simple and clear way}\\[20pt]
- \smaller[3] Corresponding to: \texttt{\simplivre{} \PackageVersion}
- }
- , author = Jinwen XU
- , date = {\TheDate{\PackageVersion}[only-year-month], in Paris}
- }
-
-\ResumeLineNumbers
-
-
-\chapter{Preface}
-
-\simplivre{} is part of the \minimalist{} class series. Its name is taken from French words ``simple'' and ``livre'' (for ``book''). The entire collection includes \minimart{} and \einfart{} for typesetting articles, and \minimbook{} and \simplivre{} for typesetting books. My original intention in designing them was to write drafts and notes that look simple yet not shabby.
-
-\simplivre{} has multi-language support, including Chinese (simplified and traditional), English, French, German, Italian, Japanese, Portuguese (European and Brazilian), Russian and Spanish. These languages can be switched seamlessly in a single document. Due to the usage of custom fonts, \einfart{} requires \hologo{XeLaTeX} or \hologo{LuaLaTeX} to compile.
-
-This documentation is typeset using \simplivre{} (with the option \classoption{use boldface}). You can think of it as a short introduction and demonstration.
-
-\bigskip
-\begin{tip}
- Multi-language support, theorem-like environments, draft marks and some other features are provided by the \ProjLib{} toolkit. Here we only briefly discuss how to use it with this document class. For more detailed information, you can refer to the documentation of \ProjLib{}.
-\end{tip}
-
-\tableofcontents
-
-\mainmatter
-
-\part{Instruction}
-\parttext{You can add some introductory text here via \lstinline|\\parttext|\meta{text}.}
-
-\medskip
-\LevelOneTitle*{Before you start}
-\addcontentsline{toc}{chapter}{Before you start}
-In order to use the package or classes described here, you need to:
-\begin{itemize}
- \item install TeX Live or MikTeX of the latest possible version, and make sure that \texttt{minimalist} and \texttt{projlib} are correctly installed in your \TeX{} system.
- \item download and install the required fonts, see the section "On the default fonts".
- \item be familiar with the basic usage of \LaTeX{}, and know how to compile your document with \hologo{pdfLaTeX}, \hologo{XeLaTeX} or \hologo{LuaLaTeX}.
-\end{itemize}
-
-
-\LevelOneTitle{Usage and examples}
-
-\LevelTwoTitle{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]
- You need to use either \hologo{XeLaTeX} or \hologo{LuaLaTeX} engine to compile.
-\end{tip}
-
-\LevelTwoTitle{Example - A complete document}
-
-Let's first look at a complete document.
-
-
-\begin{code*}
-\documentclass{simplivre}
-\usepackage{ProjLib}
-
-\UseLanguage{French}
-
-\begin{document}
-
-\frontmatter
-
-\begin{titlepage}
- (*\meta{code for titlepage}*)
-\end{titlepage}
-
-\tableofcontents
-
-\mainmatter
-
-\part{(*\meta{part title}*)}
-\parttext{(*\meta{text after part title}*)}
-
-\chapter{(*\meta{chapter title}*)}
-
-\section{(*\meta{section title}*)}
-
-\DNF<(*\meta{some hint}*)>
-
-\begin{theorem}\label{thm:abc}
- Ceci est un théorème.
-\end{theorem}
-Référence du théorème: \cref{thm:abc}
-
-\backmatter
-
-...
-
-\end{document}
-\end{code*}
-
-If you find this example a little complicated, don't worry. Let's now look at this example piece by piece.
-
-\LevelThreeTitle{Initialization}
-
-\medskip
-\begin{code}
-\documentclass{simplivre}
-\usepackage{ProjLib}
-\end{code}
-
-Initialization is straightforward. The first line loads the document class \simplivre{}, and the second line loads the \ProjLib{} toolkit to obtain some additional functionalities.
-
-\LevelThreeTitle{Set the language}
-
-\medskip
-\begin{code}
-\UseLanguage{French}
-\end{code}
-
-This line indicates that French will be used in the document (by the way, if only English appears in your article, then there is no need to set the language). You can also switch the language in the same way later in the middle of the text. Supported languages include Simplified Chinese, Traditional Chinese, Japanese, English, French, German, Spanish, Portuguese, Brazilian Portuguese and Russian%
-.%
-
-For detailed description of this command and more related commands, please refer to the section on the multi-language support.
-
-
-\LevelThreeTitle{Draft marks}
-
-\medskip
-\begin{code}
-\DNF<(*\meta{some hint}*)>
-\end{code}
-
-When you have some places that have not yet been finished yet, you can mark them with this command, which is especially useful during the draft stage.
-
-\LevelThreeTitle{Theorem-like environments}
-
-\medskip
-\begin{code}
-\begin{theorem}\label{thm:abc}
- Ceci est un théorème.
-\end{theorem}
-Référence du théorème: \cref{thm:abc}
-\end{code}
-
-Commonly used theorem-like environments have been pre-defined. Also, when referencing a theorem-like environment, it is recommended to use \lstinline|\cref{|\meta{label}\texttt{\}} --- in this way, there is no need to explicitly write down the name of the corresponding environment every time.
-
-
-
-
-\LevelOneTitle{On the default fonts}
-By default, this document class uses Palatino Linotype as the English main font; Source Han Serif, Source Han Sans and Source Han Mono as the Chinese main font, sans serif font and typewriter font; and partially uses Neo Euler as the math font. You need to download and install these fonts by yourself. The Source Han font series can be downloaded at \url{https://github.com/adobe-fonts} (It is recommended to download the Super-OTC version, so that the download size is smaller). Neo Euler can be downloaded at \url{https://github.com/khaledhosny/euler-otf}. When the corresponding font is not installed, the font that comes with TeX Live will be used instead, and the effect may be discounted.
-
-In addition, Source Code Pro is used as the English sans serif font, New Computer Modern Mono as the English monospace font, as well as some symbols in the mathematical fonts of Asana Math, Tex Gyre Pagella Math, and Latin Modern Math. These fonts are already available in TeX Live or MikTeX, which means you don't need to install them yourself.
-
-\begin{itemize}
- \item English main font. \textsf{English sans serif font}. \texttt{English typewriter font}.
- \item 简体中文主要字体,\textsf{简体中文无衬线字体},\texttt{简体中文等宽字体}
- \item \UseOtherLanguage{TC}{繁體中文主要字體,\textsf{繁體中文無襯線字體},\texttt{繁體中文等寬字體}}
- \item \UseOtherLanguage{JP}{日本語のメインフォント、\textsf{日本語のサンセリフフォント}、\texttt{日本語の等幅フォント}}
- \item Math demonstration: \( \alpha, \beta, \gamma, \delta, 1,2,3,4, a,b,c,d \), \[\mathrm{li}(x)\coloneqq \int_2^{\infty} \frac{1}{\log t}\,\mathrm{d}t \]
-\end{itemize}
-
-\LevelOneTitle{The options}
-
-\simplivre{} offers the following options:
-
-\begin{itemize}[label=,leftmargin=1.25em,itemindent=-1.25em]
- \item The language options \classoption{EN} / \classoption{english} / \classoption{English}, \classoption{FR} / \classoption{french} / \classoption{French}, etc.
- \begin{itemize}
- \item For the option names of a specific language, please refer to \meta{language name} in the next section. The first specified language will be used as the default language.
- \item The language options are optional, mainly for increasing the compilation speed. Without them the result would be the same, only slower.
- \end{itemize}
- \item \classoption{draft} or \classoption{fast}
- \begin{itemize}
- \item The option \verb|fast| enables a faster but slightly rougher style, main differences are:
- \begin{itemize}
- \item Use simpler math font configuration;
- \item Do not use \textsf{hyperref};
- \item Enable the fast mode of \ProjLib{} toolkit.
- \end{itemize}
- \end{itemize}
- \begin{tip}
- During the draft stage, it is recommended to use the \verb|fast| option to speed up compilation. When in \verb|fast| mode, there will be a watermark ``DRAFT'' to indicate that you are currently in the draft mode.
- \end{tip}
- \item \classoption{a4paper} or \classoption{b5paper}
- \begin{itemize}
- \item Paper size options. The default paper size is 7in $\times$ 10in.
- \end{itemize}
- \item \classoption{palatino}, \classoption{times}, \classoption{garamond}, \classoption{noto}, \classoption{biolinum} ~$|$~ \classoption{useosf}
- \begin{itemize}
- \item Font options. As the name suggest, font with corresponding name will be loaded.
- \item The \classoption{useosf} option is used to enable the old-style figures.
- \end{itemize}
- \item \classoption{use boldface}
- \begin{itemize}
- \item Allow boldface. When this option is enabled, the main title, the titles of all levels and the names of theorem-like environments will be bolded.
- \end{itemize}
- \item \classoption{classical}
- \begin{itemize}
- \item Classic mode. An antique-looking style will be used when this option is enabled, like in the current documentation.
- \end{itemize}
- \item \classoption{useindent}
- \begin{itemize}
- \item Use paragraph indentation instead of inter-paragraph spacing.
- \end{itemize}
- \item \classoption{runin}
- \begin{itemize}
- \item Use the ``runin'' style for \lstinline|\subsubsection|
- \end{itemize}
- \item \classoption{nothms}
- \begin{itemize}
- \item Pure text mode. Do not load theorem-like environments.
- \end{itemize}
- \item \classoption{nothmnum}, \classoption{thmnum} or \classoption{thmnum=}\meta{counter}
- \begin{itemize}
- \item Theorem-like environments will not be numbered / numbered in order 1, 2, 3... / numbered within \meta{counter}. If no option is used, they will be numbered within \texttt{chapter} (book) or \texttt{section} (article).
- \end{itemize}
- \item \classoption{regionalref}, \classoption{originalref}
- \begin{itemize}
- \item When referencing, whether the name of the theorem-like environment changes with the current language. The default is \classoption{regionalref}, \emph{i.e.}, the name corresponding to the current language is used; for example, when referencing a theorem-like environment in English context, the names "Theorem, Definition..." will be used no matter which language context the original environment is in. If \classoption{originalref} is enabled, then the name will always remain the same as the original place; for example, when referencing a theorem written in the French context, even if one is currently in the English context, it will still be displayed as ``Théorème''.
- \item In \texttt{fast} mode, the option \classoption{originalref} will have no effect.
- \end{itemize}
-\end{itemize}
-
-\bigskip
-In addition, the commonly used \classoption{oneside} and \classoption{twoside} options are also available. Two-page layout is used by default.
-
-\LevelOneTitle{Instructions by topic}
-
-\LevelTwoTitle{Language configuration}
-
-\simplivre{} has multi-language support, including Chinese (simplified and traditional), English, French, German, Italian, Japanese, Portuguese (European and Brazilian), Russian and Spanish. The language can be selected by the following macros:
-
-\begin{itemize}
- \item \lstinline|\UseLanguage{|\meta{language name}\lstinline|}| is used to specify the language. The corresponding setting of the language will be applied after it. It can be used either in the preamble or in the main body. When no language is specified, ``English'' is selected by default.
- \item \lstinline|\UseOtherLanguage{|\meta{language name}\lstinline|}{|\meta{content}\lstinline|}|, which uses the specified language settings to typeset \meta{content}. Compared with \lstinline|\UseLanguage|, it will not modify the line spacing, so line spacing would remain stable when CJK and Western texts are mixed.
-\end{itemize}
-
-\meta{language name} can be (it is not case sensitive, for example, \texttt{French} and \texttt{french} have the same effect):
-\begin{itemize}
- \item Simplified Chinese: \texttt{CN}, \texttt{Chinese}, \texttt{SChinese} or \texttt{SimplifiedChinese}
- \item Traditional Chinese: \texttt{TC}, \texttt{TChinese} or \texttt{TraditionalChinese}
- \item English: \texttt{EN} or \texttt{English}
- \item French: \texttt{FR} or \texttt{French}
- \item German: \texttt{DE}, \texttt{German} or \texttt{ngerman}
- \item Italian: \texttt{IT} or \texttt{Italian}
- \item Portuguese: \texttt{PT} or \texttt{Portuguese}
- \item Portuguese (Brazilian): \texttt{BR} or \texttt{Brazilian}
- \item Spanish: \texttt{ES} or \texttt{Spanish}
- \item Japanese: \texttt{JP} or \texttt{Japanese}
- \item Russian: \texttt{RU} or \texttt{Russian}
-\end{itemize}
-
-\medskip
-In addition, you can also add new settings to selected language:
-\begin{itemize}
- \item \lstinline|\AddLanguageSetting{|\meta{settings}\lstinline|}|
- \begin{itemize}
- \item Add \meta{settings} to all supported languages.
- \end{itemize}
- \item \lstinline|\AddLanguageSetting(|\meta{language name}\lstinline|){|\meta{settings}\lstinline|}|
- \begin{itemize}
- \item Add \meta{settings} to the selected language \meta{language name}.
- \end{itemize}
-\end{itemize}
-For example, \lstinline|\AddLanguageSetting(German){\color{orange}}| can make all German text displayed in orange (of course, one then need to add \lstinline|\AddLanguageSetting{\color{black}}| in order to correct the color of the text in other languages).
-
-\LevelTwoTitle{Theorems and how to reference them}
-
-Environments such as \texttt{definition} and \texttt{theorem} have been preset and can be used directly.
-
-More specifically, preset environments include:
-\texttt{assumption}, \texttt{axiom}, \texttt{conjecture}, \texttt{convention}, \texttt{corollary}, \texttt{definition}, \texttt{definition-proposition}, \texttt{definition-theorem}, \texttt{example}, \texttt{exercise}, \texttt{fact}, \texttt{hypothesis}, \texttt{lemma}, \texttt{notation}, \texttt{observation}, \texttt{problem}, \texttt{property}, \texttt{proposition}, \texttt{question}, \texttt{remark}, \texttt{theorem}, and the corresponding unnumbered version with an asterisk \lstinline|*| in the name. The titles will change with the current language. For example, \texttt{theorem} will be displayed as ``Theorem" in English mode and ``Théorème" in French mode.
-
-When referencing a theorem-like environment, it is recommended to use \lstinline|\cref{|\meta{label}\texttt{\}}. In this way, there is no need to explicitly write down the name of the corresponding environment every time.
-
-\begin{tip}[Example]
-\begin{code}
-\begin{definition}[Strange things] \label{def: strange} ...
-\end{code}
-
-will produce
-\begin{definition}[Strange things]\label{def: strange}
- This is the definition of some strange objects. There is approximately a one-line spacing before and after the theorem environment, and there will be a symbol to mark the end of the environment.
-\end{definition}
-
-\lstinline|\cref{def: strange}| will be displayed as: \cref{def: strange}.
-
-After using \lstinline|\UseLanguage{French}|, a theorem will be displayed as:
-
-\UseLanguage{French}
-\begin{theorem}[Inutile]\label{thm}
- Un théorème en français.
-\end{theorem}
-
-By default, when referenced, the name of the theorem matches the current context. For example, the definition above will be displayed in French in the current French context: \cref{def: strange,thm}. If you want the name of the theorem to always match the language of the context in which the theorem is located, you can add \texttt{originalref} to the global options.
-\end{tip}
-
-\UseLanguage{English}
-
-\begin{tip}
- Please refer to the documentation of the package \textsf{create-theorem} to see how to declare new theorem-like environments.
-\end{tip}
-
-\LevelTwoTitle{Draft mark}
-
-You can use \lstinline|\DNF| to mark the unfinished part. For example:
-\begin{itemize}
- \item \lstinline|\DNF| or \lstinline|\DNF<...>|. The effect is: \DNF~ or \DNF<...>. \\The prompt text changes according to the current language. For example, it will be displayed as \UseOtherLanguage{French}{\DNF} in French mode.
-\end{itemize}
-
-
-\LevelTwoTitle{Miscellaneous}
-
-\LevelThreeTitle{On the line numbers}
-Line numbers can be turned on and off at any time. \lstinline|\linenumbers| is used to enable the line numbers, and \lstinline|\nolinenumbers| is used to disable them. For the sake of beauty, the title, table of contents, index and some other elements are not numbered.
-
-\LevelThreeTitle{On the footnotes in the title}
-In \lstinline|\section| or \lstinline|\subsection| , if you wish to add footnotes, you can only:
-\begin{itemize}
- \item first write \lstinline|\mbox{\protect\footnotemark}|,
- \item then add \lstinline|\footnotetext{...}| afterwards.
-\end{itemize}
-This is a disadvantage brought about by the underline decoration of the title.
-
-
-\LevelOneTitle{Known issues}
-
-\begin{itemize}[itemsep=.6em]
- \item The font settings are still not perfect.
- \item Since many features are based on the \ProjLib{} toolkit, \minimalist{} (and hence \minimart{}, \einfart{} and \minimbook{}, \simplivre{}) inherits all its problems. For details, please refer to the ``Known Issues'' section of the \ProjLib{} documentation.
- \item The error handling mechanism is incomplete: there is no corresponding error prompt when some problems occur.
- \item There are still many things that can be optimized in the code.
-\end{itemize}
-
-\part{Demonstration}
-\blinddocument
-
-\end{document}
-\endinput
-%%
-%% End of file `simplivre/simplivre-doc-en.tex'.
Deleted: trunk/Master/texmf-dist/doc/latex/simplivre/simplivre-doc-fr.pdf
===================================================================
(Binary files differ)
Deleted: trunk/Master/texmf-dist/doc/latex/simplivre/simplivre-doc-fr.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/simplivre/simplivre-doc-fr.tex 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/doc/latex/simplivre/simplivre-doc-fr.tex 2023-01-02 21:23:26 UTC (rev 65436)
@@ -1,476 +0,0 @@
-\documentclass[use boldface, simple name]{simplivre}
-
-\linenumbers % Enable line numbers
-
-%%================================
-%% Import toolkit
-%%================================
-\usepackage{ProjLib}
-\usepackage{longtable} % breakable tables
-\usepackage{hologo} % more TeX logo
-
-\usepackage{blindtext}
-
-\UseLanguage{French}
-
-%%================================
-%% For typesetting code
-%%================================
-\usepackage{listings}
-\usepackage{xcolor}
-\usepackage{setspace}
-\definecolor{code-main}{RGB}{70,130,180}
-\definecolor{code-expl3}{RGB}{240,50,60}
-\definecolor{code-option}{RGB}{40,110,20}
-\definecolor{code-keys}{RGB}{100,130,150}
-\definecolor{code-comment}{RGB}{20,120,80}
-\definecolor{code-background}{gray}{0.99}
-\lstset{
- language = [LaTeX]TeX,
- basicstyle = \ttfamily,
- keywordstyle = \color{code-main},
- commentstyle = \color{code-comment},
- showstringspaces = false,
- breaklines = true,
- frame = lines,
- backgroundcolor = \color{code-background},
- flexiblecolumns = true,
- escapeinside = {(*}{*)},
- alsoletter = {_,:},
- % numbers = left,
- % firstnumber = last,
- numberstyle = \scriptsize\ttfamily,
- stepnumber = 1,
- numbersep = 5pt,
-}
-\newcommand{\meta}[1]{$\langle${\normalfont\itshape#1}$\rangle$}
-\lstset{% LaTeX2 commands
- classoffset = 0,
- texcsstyle =* \color{code-main},
- moretexcs =
- {
- linenumbers,nolinenumbers,
- part,parttext,chapter,section,subsection,subsubsection,
- frontmatter,mainmatter,backmatter,
- tableofcontents,
- href,
- color,
- NameTheorem,CreateTheorem,
- cref,
- ProjLib,
- DNF,
- UseLanguage,UseOtherLanguage,AddLanguageSetting,
- maketitle,address,curraddr,email,keywords,subjclass,thanks,dedicatory,TheDate,
- qedhere,
- }
-}
-\lstset{% LaTeX3 commands
- classoffset = 1,
- texcsstyle =* \color{code-expl3},
- moretexcs =
- {
- }
-}
-\lstnewenvironment{code}{\setstretch{1.05}\LocallyStopLineNumbers}{\ResumeLineNumbers\vspace{-.3\baselineskip}\vspace{-.5\parskip}}
-\lstnewenvironment{code*}{\setstretch{1.05}\lstset{numbers=left}\LocallyStopLineNumbers}{\ResumeLineNumbers\vspace{-.3\baselineskip}\vspace{-.5\parskip}}
-
-\newcommand{\classoption}[1]{\texttt{\textcolor{code-option}{#1}}}
-\newcommand{\packageoption}[1]{\texttt{\textcolor{code-option}{#1}}}
-\newcommand{\commandoption}[1]{\texttt{\textcolor{code-keys}{#1}}}
-
-%%================================
-%% tip
-%%================================
-\usepackage[many]{tcolorbox}
-\newenvironment{tip}[1][Astuce]
- {%
- \LocallyStopLineNumbers%
- \begin{tcolorbox}[breakable,
- enhanced,
- width = \textwidth,
- colback = paper, colbacktitle = paper,
- colframe = gray!50, boxrule=0.2mm,
- coltitle = black,
- fonttitle = \sffamily,
- attach boxed title to top left = {yshift=-\tcboxedtitleheight/2, xshift=.5cm},
- boxed title style = {boxrule=0pt, colframe=paper},
- before skip = 3mm,
- after skip = 3mm,
- top = 2.5mm,
- bottom = 1.5mm,
- title={\scshape\sffamily #1}]%
- }
- {%
- \end{tcolorbox}%
- \ResumeLineNumbers%
- }
-
-%%================================
-%% Names
-%%================================
-\providecommand{\minimalist}{\textsf{minimalist}}
-\providecommand{\minimart}{\textsf{minimart}}
-\providecommand{\minimbook}{\textsf{minimbook}}
-\providecommand{\einfart}{\textsf{einfart}}
-\providecommand{\simplivre}{\textsf{simplivre}}
-
-%%================================
-%% Titles
-%%================================
-\let\LevelOneTitle\chapter
-\let\LevelTwoTitle\section
-\let\LevelThreeTitle\subsection
-
-%%================================
-%% Main text
-%%================================
-\begin{document}
-
-\def\PackageVersion{2022/09/03}
-
-\frontmatter
-\LocallyStopLineNumbers
-
-\TitlePage [ style = simple ]
- {
- , title = \simplivre{}
- , subtitle = {
- \textsc{Écrivez vos livres \\de manière simple et claire}\\[20pt]
- \smaller[3] Correspondant à : \texttt{\simplivre{} \PackageVersion}
- }
- , author = Jinwen XU
- , date = {\TheDate{\PackageVersion}[only-year-month], à Paris}
- }
-
-\ResumeLineNumbers
-
-
-\chapter{Préface}
-
-\simplivre{} fait partie de la série de classes \minimalist{}, dont le nom est tiré des mots «~simple~» et «~livre~». L'ensemble de la collection comprend \minimart{} et \einfart{} pour la composition d'articles, et \minimbook{} et \simplivre{} pour celle des livres. Mon intention initiale en les concevant était d'écrire des brouillons et des notes qui semblent simples mais pas grossières.
-
-\simplivre{} prend en charge plusieurs langues, notamment le chinois (simplifié et traditionnel), l'anglais, le français, l'allemand, l'italien, le japonais, le portugais (européen et brésilien), le russe et l'espagnol. Ces langues peuvent être commutées de manière transparente dans un seul document. En raison de l'utilisation de polices personnalisées, \simplivre{} demande soit \hologo{XeLaTeX} soit \hologo{LuaLaTeX} pour la compilation.
-
-Cette documentation est composée à l'aide de \simplivre{} (avec l'option \classoption{use boldface}). Vous pouvez le considérer comme une courte introduction et une démonstration.
-
-\bigskip
-\begin{tip}
- La prise en charge multilingue, les environnements de type théorème, les marques de brouillon et quelques autres fonctionnalités sont fournis par la boîte à outils \ProjLib{}. Ici, nous ne discutons que brièvement de la façon de l'utiliser avec cette classe de document. Pour plus d'informations, veuillez vous référer à la documentation de \ProjLib{}.
-\end{tip}
-
-\tableofcontents
-
-\mainmatter
-
-\part{Instruction}
-\parttext{Vous pouvez ajouter quelque texte d'introduction ici via \lstinline|\\parttext|\meta{text}.}
-
-\LevelOneTitle*{Avant de commencer}
-\addcontentsline{toc}{chapter}{Avant de commencer}
-
-Pour utiliser les classes de documents décrites ici, vous devez :
-\begin{itemize}
- \item installer TeX Live ou MikTeX de la dernière version possible, et vous assurer que \texttt{minimalist} et \texttt{projlib} sont correctement installés dans votre système \TeX{}.
- \item télécharger et installer les polices requises, voir «~À propos des polices par défaut~».
- \item être familiarisé avec l'utilisation de base de \LaTeX{}, et savoir comment compiler vos documents avec \hologo{pdfLaTeX}, \hologo{XeLaTeX} ou \hologo{LuaLaTeX}.
-\end{itemize}
-
-
-\LevelOneTitle{Utilisation et exemples}
-
-\LevelTwoTitle{Comment l'ajouter}
-
-Il suffit simplement de mettre
-
-\begin{code}
-\documentclass{simplivre}
-\end{code}
-
-comme première ligne pour utiliser la classe \simplivre{}.
-
-\begin{tip}[Attention]
- Vous devez utiliser le moteur \hologo{XeLaTeX} ou \hologo{LuaLaTeX} pour compiler.
-\end{tip}
-
-\LevelTwoTitle{Exemple - Un document complet}
-
-Regardons d'abord un document complet.
-
-
-\begin{code*}
-\documentclass{simplivre}
-\usepackage{ProjLib}
-
-\UseLanguage{French}
-
-\begin{document}
-
-\frontmatter
-
-\begin{titlepage}
- (*\meta{code for titlepage}*)
-\end{titlepage}
-
-\tableofcontents
-
-\mainmatter
-
-\part{(*\meta{part title}*)}
-\parttext{(*\meta{text after part title}*)}
-
-\chapter{(*\meta{chapter title}*)}
-
-\section{(*\meta{section title}*)}
-
-\DNF<(*\meta{some hint}*)>
-
-\begin{theorem}\label{thm:abc}
- Ceci est un théorème.
-\end{theorem}
-Référence du théorème: \cref{thm:abc}
-
-\backmatter
-
-...
-
-\end{document}
-\end{code*}
-
-Si vous trouvez cela un peu compliqué, ne vous inquiétez pas. Examinons maintenant cet exemple pièce par pièce.
-
-\LevelThreeTitle{Initialisation}
-
-\medskip
-\begin{code}
-\documentclass{simplivre}
-\usepackage{ProjLib}
-\end{code}
-
-L'initialisation est simple. La première ligne ajoute la classe de document \simplivre{}, et la deuxième ligne ajoute la boîte à outils \ProjLib{} pour obtenir des fonctionnalités supplémentaires.
-
-\LevelThreeTitle{Choisir la langue}
-
-\medskip
-\begin{code}
-\UseLanguage{French}
-\end{code}
-
-Cette ligne indique que le français sera utilisé dans le document (d'ailleurs, si seul l'anglais apparaît dans votre article, alors il n'est pas nécessaire de choisir la langue). Vous pouvez également changer de langue de la même manière plus tard au milieu du texte. Les langues prises en charge sont les suivantes : chinois simplifié, chinois traditionnel, japonais, anglais, français, allemand, espagnol, portugais, portugais brésilien et russe.
-
-Pour une description détaillée de cette commande et d'autres commandes associées, veuillez vous référer à la section sur le support multilingue.
-
-
-\LevelThreeTitle{Marques de brouillon}
-
-\medskip
-\begin{code}
-\DNF<(*\meta{some hint}*)>
-\end{code}
-Lorsque vous avez des endroits qui ne sont pas encore finis, vous pouvez les marquer avec cette commande, ce qui est particulièrement utile lors de la phase de brouillon.
-
-\LevelThreeTitle{Environnements de type théorème}
-
-\medskip
-\begin{code}
-\begin{theorem}\label{thm:abc}
- Ceci est un théorème.
-\end{theorem}
-Référence du théorème: \cref{thm:abc}
-\end{code}
-
-Les environnements de type théorème couramment utilisés ont été prédéfinis. De plus, lors du référencement d'un environnement de type théorème, il est recommandé d'utiliser \lstinline|\cref{|\meta{label}\texttt{\}} --- de cette manière, il ne serait pas nécessaire d'écrire explicitement le nom de l'environnement correspondant à chaque fois.
-
-
-
-
-\LevelOneTitle{À propos des polices par défaut}
-Par défaut, cette classe de document utilise Palatino Linotype comme police anglaise principale; Source Han Serif, Source Han Sans et Source Han Mono comme police chinoise principale, sans empattement et monospace; et utilise partiellement Neo Euler comme police mathématique. Vous devez télécharger et installer ces polices vous-même. La série de polices Source Han peut être téléchargée sur \url{https://github.com/adobe-fonts} (il est recommandé de télécharger la version Super-OTC, afin que la taille de téléchargement soit plus petite). Neo Euler peut être téléchargé sur \url{https://github.com/khaledhosny/euler-otf}. Lorsque la police correspondante n'est pas installée, la police fournie avec TeX Live sera utilisée à la place et l'effet peut être réduit.
-
-De plus, Source Code Pro est utilisé comme police anglaise sans empattement, New Computer Modern Mono comme police anglaise monospace, ainsi que certains symboles dans les polices mathématiques Asana Math, Tex Gyre Pagella Math et Latin Modern Math. Ces polices sont déjà disponibles dans TeX Live ou MikTeX, ce qui signifie que vous n'avez pas besoin de les installer vous-même.
-
-\begin{itemize}
- \item English main font. \textsf{English sans serif font}. \texttt{English typewriter font}.
- \item 简体中文主要字体,\textsf{简体中文无衬线字体},\texttt{简体中文等宽字体}
- \item \UseOtherLanguage{TC}{繁體中文主要字體,\textsf{繁體中文無襯線字體},\texttt{繁體中文等寬字體}}
- \item \UseOtherLanguage{JP}{日本語のメインフォント、\textsf{日本語のサンセリフフォント}、\texttt{日本語の等幅フォント}}
- \item Démonstration de maths : \( \alpha, \beta, \gamma, \delta, 1,2,3,4, a,b,c,d \), \[\mathrm{li}(x)\coloneqq \int_2^{\infty} \frac{1}{\log t}\,\mathrm{d}t \]
-\end{itemize}
-
-
-\LevelOneTitle{Les options}
-
-
-\begin{itemize}[label=,leftmargin=1.25em,itemindent=-1.25em]
- \item Les options de langue \classoption{EN} / \classoption{english} / \classoption{English}, \classoption{FR} / \classoption{french} / \classoption{French}, etc.
- \begin{itemize}
- \item Pour les noms d'options d'une langue spécifique, veuillez vous référer à \meta{language name} dans la section suivante. La première langue spécifiée sera considérée comme la langue par défaut.
- \item Les options de langue ne sont pas nécessaires, elles servent principalement à augmenter la vitesse de compilation. Sans eux, le résultat serait le même, justement plus lent.
- \end{itemize}
- \item \classoption{draft} ou \classoption{fast}
- \begin{itemize}
- \item L'option \verb|fast| permet un style plus rapide mais légèrement plus rugueux, les principales différences sont :
- \begin{itemize}
- \item Utilisez une configuration de police mathématique plus simple ;
- \item N'utilisez pas \textsf{hyperref} ;
- \item Activez le mode rapide de la boîte à outils \ProjLib{}.
- \end{itemize}
- \end{itemize}
- \begin{tip}
- Pendant la phase de brouillon, il est recommandé d'utiliser le \verb|fast| option pour accélérer la compilation. Quand dans \verb|fast| mode, il y aura un filigrane ``DRAFT'' pour indiquer que vous êtes actuellement en mode brouillon.
- \end{tip}
- \item \classoption{a4paper} ou \classoption{b5paper}
- \begin{itemize}
- \item Options de format de papier. Le format de papier par défaut est 7 pouces $\times$ 10 pouces.
- \end{itemize}
- \item \classoption{palatino}, \classoption{times}, \classoption{garamond}, \classoption{noto}, \classoption{biolinum} ~$|$~ \classoption{useosf}
- \begin{itemize}
- \item Options de police. Comme son nom l'indique, la police avec le nom correspondant sera utilisée.
- \item L'option \classoption{useosf} est pour activer les chiffres à l'ancienne.
- \end{itemize}
- \item \classoption{use boldface}
- \begin{itemize}
- \item Afficher les titres en gras. Lorsque cette option est utilisée, le titre principal, les titres de tous les niveaux et les noms des environnements de type théorème seront en gras.
- \end{itemize}
- \item \classoption{classical}
- \begin{itemize}
- \item Mode classique. Un style antique sera utilisé lorsque cette option est activée, comme dans la documentation actuelle.
- \end{itemize}
- \item \classoption{useindent}
- \begin{itemize}
- \item Utilisez l'indentation des paragraphes au lieu de l'espacement entre les paragraphes.
- \end{itemize}
- \item \classoption{runin}
- \begin{itemize}
- \item Utilisez le style «~runin~» pour \lstinline|\subsubsection|
- \end{itemize}
- \item \classoption{nothms}
- \begin{itemize}
- \item Mode texte pur. Ne pas définir les environnements de type théorème.
- \end{itemize}
- \item \classoption{nothmnum}, \classoption{thmnum} ou \classoption{thmnum=}\meta{counter}
- \begin{itemize}
- \item Les environnements de type théorème ne seront pas numérotés / numérotés dans l'ordre 1, 2, 3... / numérotés dans \meta{counter}. Si aucune option n'est utilisée, ils seront numérotés dans \texttt{chapter} (livre) ou \texttt{section} (article).
- \end{itemize}
- \item \classoption{regionalref}, \classoption{originalref}
- \begin{itemize}
- \item Lors du référencement, si le nom de l'environnement de type théorème change avec la langue actuelle. Par défaut \classoption{regionalref} est activé, c'est-à-dire que le nom correspondant à la langue courante est utilisé ; par exemple, lors du référencement d'un environnement de type théorème dans un contexte français, les noms «~Théorème, Définition ...~» seront utilisés quel que soit le contexte linguistique dans lequel se trouve l'environnement d'origine. Si \classoption{originalref} est activé, alors le nom restera toujours le même que l'environnement d'origine ; par exemple, lors du référencement d'un théorème écrit dans le contexte français, même si l'on est actuellement dans le contexte anglais, il sera toujours affiché comme «~Théorème~».
- \item En mode \texttt{fast}, l'option \classoption{originalref} n'aura aucun effet.
- \end{itemize}
-\end{itemize}
-\bigskip
-De plus, les options \classoption{oneside} et \classoption{twoside} couramment utilisées lors de la composition de livres sont également disponibles. La disposition recto-verso est utilisée par défaut.
-
-\LevelOneTitle{Instructions par sujet}
-
-\LevelTwoTitle{Configurer la langue}
-
-\simplivre{} prend en charge plusieurs langues, notamment le chinois (simplifié et traditionnel), l'anglais, le français, l'allemand, l'italien, le japonais, le portugais (européen et brésilien), le russe et l'espagnol. La langue peut être sélectionnée par les macros suivantes :
-
-\begin{itemize}
- \item \lstinline|\UseLanguage{|\meta{language name}\lstinline|}| est utilisé pour spécifier la langue. Le réglage correspondant de la langue sera appliqué après celui-ci. Il peut être utilisé soit dans le préambule ou dans le texte. Lorsqu'aucune langue n'est spécifiée, « English » est sélectionné par défaut.
- \item \lstinline|\UseOtherLanguage{|\meta{language name}\lstinline|}{|\meta{content}\lstinline|}|, qui utilise les paramètres de langue spécifiés pour composer \meta{content}. Par rapport à \lstinline|\UseLanguage|, il ne modifiera pas l'interligne, donc l'interligne restera stable lorsque le texte CJK et occidental sont mélangés.
-\end{itemize}
-
-\meta{language name} peut être (il n'est pas sensible à la casse, par exemple, \texttt{French} et \texttt{french} ont le même effet) :
-\begin{itemize}
- \item chinois simplifié : \texttt{CN}, \texttt{Chinese}, \texttt{SChinese} ou \texttt{SimplifiedChinese}
- \item chinois traditionnel : \texttt{TC}, \texttt{TChinese} ou \texttt{TraditionalChinese}
- \item anglais : \texttt{EN} ou \texttt{English}
- \item français : \texttt{FR} ou \texttt{French}
- \item allemand : \texttt{DE}, \texttt{German} ou \texttt{ngerman}
- \item italien : \texttt{IT} ou \texttt{Italian}
- \item portugais : \texttt{PT} ou \texttt{Portuguese}
- \item portugais (brésilien) : \texttt{BR} ou \texttt{Brazilian}
- \item espagnol : \texttt{ES} ou \texttt{Spanish}
- \item japonais : \texttt{JP} ou \texttt{Japanese}
- \item russe : \texttt{RU} ou \texttt{Russian}
-\end{itemize}
-
-\medskip
-De plus, vous pouvez également ajouter de nouveaux paramètres à la langue sélectionnée :
-\begin{itemize}
- \item \lstinline|\AddLanguageSetting{|\meta{settings}\lstinline|}|
- \begin{itemize}
- \item Ajoutez \meta{settings} à toutes les langues prises en charge.
- \end{itemize}
- \item \lstinline|\AddLanguageSetting(|\meta{language name}\lstinline|){|\meta{settings}\lstinline|}|
- \begin{itemize}
- \item Ajoutez \meta{settings} à la langue \meta{language name} sélectionnée.
- \end{itemize}
-\end{itemize}
-Par exemple, \lstinline|\AddLanguageSetting(German){\color{orange}}| peut rendre tout le texte allemand affiché en orange (bien sûr, il faut alors ajouter \lstinline|\AddLanguageSetting{\color{black}}| afin de corriger la couleur du texte dans d'autres langues).
-
-\LevelTwoTitle{Théorèmes et comment les référencer}
-
-Des environnements tels que \texttt{definition} et \texttt{theorem} ont été prédéfinis et peuvent être utilisés directement.
-
-Plus précisement, les environnements prédéfinis incluent : \texttt{assumption}, \texttt{axiom}, \texttt{conjecture}, \texttt{convention}, \texttt{corollary}, \texttt{definition}, \texttt{definition-proposition}, \texttt{definition-theorem}, \texttt{example}, \texttt{exercise}, \texttt{fact}, \texttt{hypothesis}, \texttt{lemma}, \texttt{notation}, \texttt{observation}, \texttt{problem}, \texttt{property}, \texttt{proposition}, \texttt{question}, \texttt{remark}, \texttt{theorem}, et la version non numérotée correspondante avec un astérisque \lstinline|*| dans le nom. Les titres changeront avec la langue actuelle. Par exemple, \texttt{theorem} sera affiché comme «~Theorem~» en mode anglais et «~Théorème~» en mode français.
-
-Lors du référencement d'un environnement de type théorème, il est recommandé d'utiliser \lstinline|\cref{|\meta{label}\texttt{\}}. De cette façon, il n'est pas nécessaire d'écrire explicitement le nom de l'environnement correspondant à chaque fois.
-
-\begin{tip}[Exemple]
-\begin{code}
-\begin{definition}[Des choses étranges] \label{def: strange} ...
-\end{code}
-
-will produce
-\begin{definition}[Des choses étranges]\label{def: strange}
- C'est la définition de certains objets étranges. Il y a approximativement un espace d'une ligne avant et après l'environnement de type théorème, et il y aura un symbole pour marquer la fin de l'environnement.
-\end{definition}
-
-\lstinline|\cref{def: strange}| s'affichera sous la forme : \cref{def: strange}.
-
-Après avoir utilisé \lstinline|\UseLanguage{French}|, un théorème s'affichera sous la forme :
-
-\UseLanguage{English}
-\begin{theorem}[Useless]\label{thm}
- A theorem in English.
-\end{theorem}
-
-Par défaut, lors du référencement, le nom du théorème correspond au contexte courant. Par exemple, le nom de la définition ci-dessus sera en français dans le contexte français courant : \cref{def: strange,thm}. Si vous voulez que le nom du théorème corresponde toujours à la langue du contexte dans lequel se trouve le théorème, vous pouvez ajouter \texttt{originalref} aux options globales.
-\end{tip}
-
-\UseLanguage{French}
-
-\begin{tip}
- Veuillez consulter la documentation du paquet \textsf{create-theorem} pour voir comment déclarer de nouveaux environnements de type théorème.
-\end{tip}
-
-\LevelTwoTitle{Draft mark}
-
-Vous pouvez utiliser \lstinline|\DNF| pour marquer la partie inachevée. Par example :
-\begin{itemize}
- \item \lstinline|\DNF| ou \lstinline|\DNF<...>|. L'effet est : \DNF~ ou \DNF<...>. \\Le texte à l'intérieur changera en fonction de la langue actuelle. Par exemple, il sera affiché sous la forme \UseOtherLanguage{English}{\DNF} en mode anglais.
-\end{itemize}
-
-
-\LevelTwoTitle{Divers}
-
-\LevelThreeTitle{Les numéros de ligne}
-Les numéros de ligne peuvent être activés et désactivés n'importe où dans votre texte. \lstinline|\linenumbers| est pour activer les numéros de ligne, et \lstinline|\nolinenumbers| est pour les désactiver. Par souci de beauté, le titre, la table des matières, l'index et certains autres éléments ne sont pas numérotés.
-
-\LevelThreeTitle{Les notes de bas de page dans le titre}
-Dans \lstinline|\section| ou \lstinline|\subsection| , si vous souhaitez ajouter des notes de bas de page, vous n'avez d'autre choix que :
-\begin{itemize}
- \item écrivez d'abord \lstinline|\mbox{\protect\footnotemark}|,
- \item puis ajoutez \lstinline|\footnotetext{...}| après le titre.
-\end{itemize}
-C'est un inconvénient provoqué par la décoration de soulignement du titre.
-
-
-\LevelOneTitle{Problèmes connus}
-
-\begin{itemize}[itemsep=.6em]
- \item Les paramètres de police ne sont pas encore parfaits.
- \item Comme de nombreuses fonctionnalités sont basées sur la boîte à outils \ProjLib{}, \minimalist{} (et donc \minimart{}, \einfart{} et \minimbook{}, \simplivre{}) hérite de tous ses problèmes. Pour plus de détails, veuillez vous référer à la section «~Problèmes connus~» de la documentation de \ProjLib{}.
- \item Le mécanisme de gestion des erreurs est incomplet : pas de messages correspondants lorsque certains problèmes surviennent.
- \item Il y a encore beaucoup de choses qui peuvent être optimisées dans le code.
-\end{itemize}
-
-\part{Démonstration}
-\blinddocument
-
-\end{document}
-\endinput
-%%
-%% End of file `simplivre/simplivre-doc-fr.tex'.
Modified: trunk/Master/texmf-dist/source/latex/projlib/ProjLib.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/projlib/ProjLib.dtx 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/source/latex/projlib/ProjLib.dtx 2023-01-02 21:23:26 UTC (rev 65436)
@@ -19,7 +19,7 @@
%<*ProjLib>
\ProvidesExplPackage
{ProjLib}
- {2022/11/15} {}
+ {2023/01/01} {}
{Collective interface of the ProjLib toolkit}
%</ProjLib>
%
@@ -26,7 +26,7 @@
%<*projlib-author>
\ProvidesExplPackage
{projlib-author}
- {2022/11/15} {}
+ {2023/01/01} {}
{Enhanced author information block}
%</projlib-author>
%
@@ -33,7 +33,7 @@
%<*projlib-datetime>
\ProvidesExplPackage
{projlib-datetime}
- {2022/11/15} {}
+ {2023/01/01} {}
{Convert numeric date-time string to natural language}
%</projlib-datetime>
%
@@ -40,7 +40,7 @@
%<*projlib-draft>
\ProvidesExplPackage
{projlib-draft}
- {2022/11/15} {}
+ {2023/01/01} {}
{Useful commands during draft stage}
%</projlib-draft>
%
@@ -47,7 +47,7 @@
%<*projlib-font>
\ProvidesExplPackage
{projlib-font}
- {2022/11/15} {}
+ {2023/01/01} {}
{Font selection and configuration}
%</projlib-font>
%
@@ -54,7 +54,7 @@
%<*projlib-language>
\ProvidesExplPackage
{projlib-language}
- {2022/11/15} {}
+ {2023/01/01} {}
{Multi-language configuration}
%</projlib-language>
%
@@ -61,7 +61,7 @@
%<*projlib-logo>
\ProvidesExplPackage
{projlib-logo}
- {2022/11/15} {}
+ {2023/01/01} {}
{The ProjLib logo}
%</projlib-logo>
%
@@ -68,7 +68,7 @@
%<*projlib-math>
\ProvidesExplPackage
{projlib-math}
- {2022/11/15} {}
+ {2023/01/01} {}
{Efficient math setup}
%</projlib-math>
%
@@ -75,7 +75,7 @@
%<*projlib-paper>
\ProvidesExplPackage
{projlib-paper}
- {2022/11/15} {}
+ {2023/01/01} {}
{Configuration of the paper style}
%</projlib-paper>
%
@@ -82,7 +82,7 @@
%<*projlib-text>
\ProvidesExplPackage
{projlib-text}
- {2022/11/15} {}
+ {2023/01/01} {}
{Text-related commands}
%</projlib-text>
%
@@ -89,7 +89,7 @@
%<*projlib-theorem>
\ProvidesExplPackage
{projlib-theorem}
- {2022/11/15} {}
+ {2023/01/01} {}
{Configuration of theorem-like environments}
%</projlib-theorem>
%
@@ -96,7 +96,7 @@
%<*projlib-titlepage>
\ProvidesExplPackage
{projlib-titlepage}
- {2022/11/15} {}
+ {2023/01/01} {}
{Commands for rendering the title page}
%</projlib-titlepage>
@@ -2514,6 +2514,35 @@
\RequirePackage { ebgaramond-maths }
\RequirePackage { ebgaramond }
\cs_undefine:c { Bbbk }
+ \cs_undefine:c { Top }
+ % https://tex.stackexchange.com/a/215272
+ \DeclareSymbolFont{ntxletters}{OML}{ntxmi}{m}{it}
+ \SetSymbolFont{ntxletters}{bold}{OML}{ntxmi}{b}{it}
+ \re at DeclareMathSymbol{\leftharpoonup}{\mathrel}{ntxletters}{"28}
+ \re at DeclareMathSymbol{\leftharpoondown}{\mathrel}{ntxletters}{"29}
+ \re at DeclareMathSymbol{\rightharpoonup}{\mathrel}{ntxletters}{"2A}
+ \re at DeclareMathSymbol{\rightharpoondown}{\mathrel}{ntxletters}{"2B}
+ \re at DeclareMathSymbol{\triangleleft}{\mathbin}{ntxletters}{"2F}
+ \re at DeclareMathSymbol{\triangleright}{\mathbin}{ntxletters}{"2E}
+ \re at DeclareMathSymbol{\partial}{\mathord}{ntxletters}{"40}
+ \re at DeclareMathSymbol{\flat}{\mathord}{ntxletters}{"5B}
+ \re at DeclareMathSymbol{\natural}{\mathord}{ntxletters}{"5C}
+ \re at DeclareMathSymbol{\star}{\mathbin}{ntxletters}{"3F}
+ \re at DeclareMathSymbol{\smile}{\mathrel}{ntxletters}{"5E}
+ \re at DeclareMathSymbol{\frown}{\mathrel}{ntxletters}{"5F}
+ \re at DeclareMathSymbol{\sharp}{\mathord}{ntxletters}{"5D}
+ \re at DeclareMathAccent{\vec}{\mathord}{ntxletters}{"7E}
+ \sys_if_engine_pdftex:F
+ {
+ \setsansfont { texgyreheros }
+ [
+ Scale = MatchUppercase ,
+ UprightFont = *-regular ,
+ BoldFont = *-bold ,
+ ItalicFont = *-italic ,
+ BoldItalicFont = *-bolditalic ,
+ ]
+ }
\projlib_font_set_linespacing_latin:n { \setstretch { 1.00 } }
\bool_gset_true:N \g_projlib_font_already_set_bool
}
@@ -2570,6 +2599,14 @@
\bool_gset_true:N \g_projlib_font_already_set_bool
}
+% \bool_if:NF \l__projlib_font_lmodern_bool
+% {
+% \hook_gput_code:nnn { package/tikz-cd/after } { projlib-font }
+% {
+% \tikzcdset{arrow~style={math~font}}
+% }
+% }
+
\PassOptionsToPackage { verbose = silent } { microtype }
\RequirePackage { microtype }
%</projlib-font>
@@ -5275,7 +5312,7 @@
\keys_define:nn { projlib-titlepage-config }
{
, logo .code:n = { \tl_set:Nn \l_projlib_titlepage_logo_tl { \tl_trim_spaces:n { #1 } } }
- , logo .initial:n = { \scalebox { 2 } { \ProjLib } }
+ , logo .initial:n = { * }
, title .code:n = { \tl_set:Nn \l_projlib_titlepage_title_tl { \tl_trim_spaces:n { #1 } } }
, subtitle .code:n = { \tl_set:Nn \l_projlib_titlepage_subtitle_tl { \tl_trim_spaces:n { #1 } } }
, author .code:n = { \tl_set:Nn \l_projlib_titlepage_author_tl { \tl_trim_spaces:n { #1 } } }
@@ -5304,6 +5341,17 @@
\colorlet { titlepage-main } { blue!50!cyan!50!black }
\colorlet { titlepage-back } { blue!50!cyan!15!yellow!25 }
+\cs_new_protected:Nn \projlib_titlepage_show_logo:n
+ {
+ \tl_if_eq:NnTF \l_projlib_titlepage_logo_tl { \tl_trim_spaces:n { * } }
+ {
+ #1
+ }
+ {
+ \tl_use:N \l_projlib_titlepage_logo_tl
+ }
+ }
+
\cs_new_protected:Nn \projlib_titlepage_render:n
{
\keys_set:nn { projlib-titlepage-config } { #1 }
@@ -5333,7 +5381,7 @@
\node[text~width=.3\paperwidth, text~height=.2\paperheight, align=flush~left]
at ($(current~page.north~west)+(.32\paperwidth,-.17\paperheight)$)
{
- \l_projlib_titlepage_logo_tl
+ \projlib_titlepage_show_logo:n { \scalebox { 2 } { \ProjLib } }
};
\node[text~width=.8\paperwidth, text~height=.5\paperheight, align=flush~left]
at ($(current~page.north~west)+(.57\paperwidth,-.28\paperheight)$)
@@ -5367,7 +5415,7 @@
\node[text~width=.3\paperwidth, text~height=.2\paperheight, align=flush~left]
at ($(current~page.north~west)+(.27\paperwidth,-.15\paperheight)$)
{
- \l_projlib_titlepage_logo_tl
+ \projlib_titlepage_show_logo:n { \scalebox { 2 } { \ProjLib } }
};
\node[text~width=.8\paperwidth, text~height=.5\paperheight, align=flush~left]
at ($(current~page.north~west)+(.52\paperwidth,-.28\paperheight)$)
@@ -5392,6 +5440,72 @@
};
\end{tikzpicture}
}
+
+\cs_new_protected:Nn \projlib_titlepage_render_with_style_academic:
+ {
+ \begin{tikzpicture}[overlay,remember~picture]
+ \fill[color=titlepage-main] ($(current~page.south~west)$) rectangle ($(current~page.north~east)$);
+ \fill[color=white] ($(current~page.south~west)+(0,.3\paperheight)$) rectangle ($(current~page.north~east)+(0,-.3\paperheight)$);
+ \node[text~width=.3\paperwidth, text~height=.2\paperheight, align=flush~center]
+ at ($(current~page.north)+(0pt,-.15\paperheight)$)
+ {
+ \projlib_titlepage_show_logo:n { \color{white} \scalebox { 2 } { \ProjLibText } }
+ };
+ \node[text~width=.8\paperwidth, text~height=.5\paperheight, align=flush~center]
+ at ($(current~page.north)+(0pt,-.25\paperheight)$)
+ {
+ \color{titlepage-main}
+ \sffamily
+ \fontsize{24pt}{36pt}\selectfont
+ \textsc{ \l_projlib_titlepage_title_tl }\\[1.5em]
+ \fontsize{18pt}{27pt}\selectfont
+ \l_projlib_titlepage_subtitle_tl
+ };
+ \node[text~width=.5\paperwidth, text~height=.4\paperheight, align=flush~center]
+ at ($(current~page.south)+(0pt,.36\paperheight)$)
+ {
+ \color{white}
+ \fontsize{16pt}{24pt}\selectfont
+ \textsc{ \l_projlib_titlepage_author_tl }\\[1em]
+ \fontsize{12pt}{18pt}\selectfont
+ \l_projlib_titlepage_date_tl
+ };
+ \end{tikzpicture}
+ }
+
+\cs_new_protected:Nn \projlib_titlepage_render_with_style_minimalist:
+ {
+ \begin{tikzpicture}[overlay,remember~picture]
+ % \fill[color=white] ($(current~page.south~west)$) rectangle ($(current~page.north~east)$);
+ \node[text~width=.3\paperwidth, text~height=.2\paperheight, align=flush~left]
+ at ($(current~page.north~west)+(.32\paperwidth,-.2\paperheight)$)
+ {
+ \projlib_titlepage_show_logo:n { \scalebox { 2 } { \ProjLib } }
+ };
+ \node[text~width=.8\paperwidth, text~height=.5\paperheight, align=flush~left]
+ at ($(current~page.north~west)+(.57\paperwidth,-.22\paperheight)$)
+ {
+ \sffamily
+ \fontsize{24pt}{36pt}\selectfont
+ \textsc{ \l_projlib_titlepage_title_tl }\\[1.5em]
+ \fontsize{18pt}{27pt}\selectfont
+ \l_projlib_titlepage_subtitle_tl
+ };
+ % \node[text~width=.5\paperwidth, text~height=.4\paperheight, align=flush~left]
+ % at ($(current~page.south)+(.135\paperwidth,.35\paperheight)$)
+ \node[text~width=.8\paperwidth, text~height=.4\paperheight, align=flush~left]
+ at ($(current~page.south~west)+(.57\paperwidth,.45\paperheight)$)
+ {
+ \color{.!50}
+ % \begin{flushright}
+ \fontsize{16pt}{24pt}\selectfont
+ \textsc{ \l_projlib_titlepage_author_tl }\\[1em]
+ \fontsize{12pt}{18pt}\selectfont
+ \l_projlib_titlepage_date_tl
+ % \end{flushright}
+ };
+ \end{tikzpicture}
+ }
%</projlib-titlepage>
\endinput
\ No newline at end of file
Modified: trunk/Master/texmf-dist/tex/latex/beaulivre/beaulivre.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/beaulivre/beaulivre.cls 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/tex/latex/beaulivre/beaulivre.cls 2023-01-02 21:23:26 UTC (rev 65436)
@@ -2,7 +2,7 @@
%% This is file `beaulivre/beaulivre.cls',
%% generated with the docstrip utility.
%%
-%% Copyright (C) 2021-2022 by Jinwen XU
+%% Copyright (C) 2021-2023 by Jinwen XU
%%
%% This is part of the colorist class series.
%%
@@ -18,7 +18,7 @@
\NeedsTeXFormat{LaTeX2e}[2022-06-01]
\ProvidesExplClass
{beaulivre}
- {2022/09/03} {}
+ {2023/01/02} {}
{A colorful book style}
\tl_const:Nn \l__colorclass_base_class_tl { book }
@@ -42,7 +42,16 @@
, draft .initial:n = { false }
, fast .bool_set:N = \l__colorclass_fast_bool
+ , print .bool_set:N = \l__colorclass_print_mode_bool
+ , print .initial:n = { false }
+ , print mode .bool_set:N = \l__colorclass_print_mode_bool
+ , print~mode .bool_set:N = \l__colorclass_print_mode_bool
+ , print-mode .bool_set:N = \l__colorclass_print_mode_bool
+ , print version .bool_set:N = \l__colorclass_print_mode_bool
+ , print~version .bool_set:N = \l__colorclass_print_mode_bool
+ , print-version .bool_set:N = \l__colorclass_print_mode_bool
+
, load custom font file .code:n = {
\bool_set_true:N \l__colorclass_load_custom_font_file_bool
\str_set:Nn \l__colorclass_custom_font_file_str { #1 }
@@ -54,15 +63,9 @@
\str_set:Nn \l__colorclass_custom_font_file_math_str { colorist.font.math }
}
, load custom font file .default:n = { colorist.font }
- , load~custom~font~file .code:n = {
- \bool_set_true:N \l__colorclass_load_custom_font_file_bool
- \str_set:Nn \l__colorclass_custom_font_file_str { #1 }
- }
+ , load~custom~font~file .meta:n = { load custom font file = { #1 } }
, load~custom~font~file .default:n = { colorist.font }
- , load-custom-font-file .code:n = {
- \bool_set_true:N \l__colorclass_load_custom_font_file_bool
- \str_set:Nn \l__colorclass_custom_font_file_str { #1 }
- }
+ , load-custom-font-file .meta:n = { load custom font file = { #1 } }
, load-custom-font-file .default:n = { colorist.font }
, load custom latin font file .code:n = {
@@ -70,15 +73,9 @@
\str_set:Nn \l__colorclass_custom_font_file_latin_str { #1 }
}
, load custom latin font file .default:n = { colorist.font.latin }
- , load~custom~latin~font~file .code:n = {
- \bool_set_true:N \l__colorclass_load_custom_font_file_latin_bool
- \str_set:Nn \l__colorclass_custom_font_file_latin_str { #1 }
- }
+ , load~custom~latin~font~file .meta:n = { load custom latin font file = { #1 } }
, load~custom~latin~font~file .default:n = { colorist.font.latin }
- , load-custom-latin-font-file .code:n = {
- \bool_set_true:N \l__colorclass_load_custom_font_file_latin_bool
- \str_set:Nn \l__colorclass_custom_font_file_latin_str { #1 }
- }
+ , load-custom-latin-font-file .meta:n = { load custom latin font file = { #1 } }
, load-custom-latin-font-file .default:n = { colorist.font.latin }
, load custom cjk font file .code:n = {
@@ -86,15 +83,9 @@
\str_set:Nn \l__colorclass_custom_font_file_cjk_str { #1 }
}
, load custom cjk font file .default:n = { colorist.font.cjk }
- , load~custom~cjk~font~file .code:n = {
- \bool_set_true:N \l__colorclass_load_custom_font_file_cjk_bool
- \str_set:Nn \l__colorclass_custom_font_file_cjk_str { #1 }
- }
+ , load~custom~cjk~font~file .meta:n = { load custom cjk font file = { #1 } }
, load~custom~cjk~font~file .default:n = { colorist.font.cjk }
- , load-custom-cjk-font-file .code:n = {
- \bool_set_true:N \l__colorclass_load_custom_font_file_cjk_bool
- \str_set:Nn \l__colorclass_custom_font_file_cjk_str { #1 }
- }
+ , load-custom-cjk-font-file .meta:n = { load custom cjk font file = { #1 } }
, load-custom-cjk-font-file .default:n = { colorist.font.cjk }
, load custom math font file .code:n = {
@@ -102,15 +93,9 @@
\str_set:Nn \l__colorclass_custom_font_file_math_str { #1 }
}
, load custom math font file .default:n = { colorist.font.math }
- , load~custom~math~font~file .code:n = {
- \bool_set_true:N \l__colorclass_load_custom_font_file_math_bool
- \str_set:Nn \l__colorclass_custom_font_file_math_str { #1 }
- }
+ , load~custom~math~font~file .meta:n = { load custom math font file = { #1 } }
, load~custom~math~font~file .default:n = { colorist.font.math }
- , load-custom-math-font-file .code:n = {
- \bool_set_true:N \l__colorclass_load_custom_font_file_math_bool
- \str_set:Nn \l__colorclass_custom_font_file_math_str { #1 }
- }
+ , load-custom-math-font-file .meta:n = { load custom math font file = { #1 } }
, load-custom-math-font-file .default:n = { colorist.font.math }
, a4paper .bool_set:N = \l__colorclass_a_four_paper_bool
@@ -129,6 +114,19 @@
\LoadClass{\l__colorclass_base_class_tl}
+\NewDocumentCommand \IfPrintModeTF { m m }
+ {
+ \bool_if:NTF \l__colorclass_print_mode_bool { #1 } { #2 }
+ }
+\NewDocumentCommand \IfPrintModeT { m }
+ {
+ \bool_if:NT \l__colorclass_print_mode_bool { #1 }
+ }
+\NewDocumentCommand \IfPrintModeF { m }
+ {
+ \bool_if:NF \l__colorclass_print_mode_bool { #1 }
+ }
+
%%================================
%% Page layout
%%================================
@@ -607,14 +605,9 @@
]
\setmathfont { latinmodern-math.otf }
[
- range = { \ast } ,
+ range = { frak, bffrak, \mitvarpi, \mupvarpi, \ast } ,
Scale = 1.10
]
- \setmathfont { latinmodern-math.otf }
- [
- range = { frak, bffrak }
- ]
- \DeclareMathAlphabet{\mathcal}{OMS}{cmsy}{m}{n}
\setmathfont { texgyrepagella-math.otf }
[
range = { `(, `) } ,
@@ -622,9 +615,14 @@
]
\setmathfont { texgyrepagella-math.otf }
[
+ range = { \mathcomma, \mathsemicolon } ,
+ ]
+ \setmathfont { texgyrepagella-math.otf }
+ [
range = { it / { Latin, latin }, bfit / { Latin, latin }, up / num, bfup / num }
]
- \setmathfont { KpMath-Regular.otf } [ range = {} ]
+ \setmathfont { KpMath-Regular.otf } [ range = { cal, bfcal }, RawFeature=+ss01 ]
+ % \setmathfont { KpMath-Regular.otf } [ range = {} ]
\sys_if_engine_luatex:T
{
@@ -704,15 +702,27 @@
{
\colorclass_xarrows_generic:nnnn { #1 } { #2 } {} { edge [ commutative~diagrams/equal ] }
}
+ \NewDocumentCommand \xtwoheadrightarrow { O{} m }
+ {
+ \colorclass_xarrows_generic:nnnn { #1 } { #2 } {} { edge [ commutative~diagrams/twoheadrightarrow ] }
+ }
+ \NewDocumentCommand \xtwoheadleftarrow { O{} m }
+ {
+ \colorclass_xarrows_generic:nnnn { #1 } { #2 } {} { edge [ commutative~diagrams/twoheadleftarrow ] }
+ }
\hook_gput_code:nnn { begindocument/end } { colorclass }
{
\RenewDocumentCommand \twoheadrightarrow {}
{
- \colorclass_xarrows_generic:nnnn { \,\, } {} {} { edge [ commutative~diagrams/twoheadrightarrow ] }
+ \colorclass_xarrows_generic:nnnn {
+ \mathchoice { \,\, } { \, } { } { }
+ } {} {} { edge [ commutative~diagrams/twoheadrightarrow ] }
}
\RenewDocumentCommand \twoheadleftarrow {}
{
- \colorclass_xarrows_generic:nnnn { \,\, } {} {} { edge [ commutative~diagrams/twoheadleftarrow ] }
+ \colorclass_xarrows_generic:nnnn {
+ \mathchoice { \,\, } { \, } { } { }
+ } {} {} { edge [ commutative~diagrams/twoheadleftarrow ] }
}
}
}
Modified: trunk/Master/texmf-dist/tex/latex/colorist/colorart.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/colorist/colorart.cls 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/tex/latex/colorist/colorart.cls 2023-01-02 21:23:26 UTC (rev 65436)
@@ -2,7 +2,7 @@
%% This is file `colorist/colorart.cls',
%% generated with the docstrip utility.
%%
-%% Copyright (C) 2021-2022 by Jinwen XU
+%% Copyright (C) 2021-2023 by Jinwen XU
%%
%% This is part of the colorist class series.
%%
@@ -18,7 +18,7 @@
\NeedsTeXFormat{LaTeX2e}[2022-06-01]
\ProvidesExplClass
{colorart}
- {2022/09/03} {}
+ {2023/01/02} {}
{A colorful article style}
\tl_const:Nn \l__colorclass_base_class_tl { article }
@@ -34,21 +34,24 @@
, draft .initial:n = { false }
, fast .bool_set:N = \l__colorclass_fast_bool
+ , print .bool_set:N = \l__colorclass_print_mode_bool
+ , print .initial:n = { false }
+ , print mode .bool_set:N = \l__colorclass_print_mode_bool
+ , print~mode .bool_set:N = \l__colorclass_print_mode_bool
+ , print-mode .bool_set:N = \l__colorclass_print_mode_bool
+ , print version .bool_set:N = \l__colorclass_print_mode_bool
+ , print~version .bool_set:N = \l__colorclass_print_mode_bool
+ , print-version .bool_set:N = \l__colorclass_print_mode_bool
+
, load custom font file .code:n = {
\bool_set_true:N \l__colorclass_load_custom_font_file_bool
\str_set:Nn \l__colorclass_custom_font_file_str { #1 }
}
, load custom font file .default:n = { colorist.font }
- , load~custom~font~file .code:n = {
- \bool_set_true:N \l__colorclass_load_custom_font_file_bool
- \str_set:Nn \l__colorclass_custom_font_file_str { #1 }
- }
+ , load~custom~font~file .meta:n = { load custom font file = { #1 } }
, load~custom~font~file .default:n = { colorist.font }
- , load-custom-font-file .code:n = {
- \bool_set_true:N \l__colorclass_load_custom_font_file_bool
- \str_set:Nn \l__colorclass_custom_font_file_str { #1 }
- }
+ , load-custom-font-file .meta:n = { load custom font file = { #1 } }
, load-custom-font-file .default:n = { colorist.font }
@@ -68,6 +71,19 @@
\LoadClass{\l__colorclass_base_class_tl}
+\NewDocumentCommand \IfPrintModeTF { m m }
+ {
+ \bool_if:NTF \l__colorclass_print_mode_bool { #1 } { #2 }
+ }
+\NewDocumentCommand \IfPrintModeT { m }
+ {
+ \bool_if:NT \l__colorclass_print_mode_bool { #1 }
+ }
+\NewDocumentCommand \IfPrintModeF { m }
+ {
+ \bool_if:NF \l__colorclass_print_mode_bool { #1 }
+ }
+
%%================================
%% Page layout
%%================================
@@ -165,6 +181,7 @@
{
\setsansfont { texgyreheros }
[
+ Extension = .otf ,
Scale = MatchUppercase ,
UprightFont = *-regular ,
BoldFont = *-bold ,
Modified: trunk/Master/texmf-dist/tex/latex/colorist/colorbook.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/colorist/colorbook.cls 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/tex/latex/colorist/colorbook.cls 2023-01-02 21:23:26 UTC (rev 65436)
@@ -2,7 +2,7 @@
%% This is file `colorist/colorbook.cls',
%% generated with the docstrip utility.
%%
-%% Copyright (C) 2021-2022 by Jinwen XU
+%% Copyright (C) 2021-2023 by Jinwen XU
%%
%% This is part of the colorist class series.
%%
@@ -18,7 +18,7 @@
\NeedsTeXFormat{LaTeX2e}[2022-06-01]
\ProvidesExplClass
{colorbook}
- {2022/09/03} {}
+ {2023/01/02} {}
{A colorful book style}
\tl_const:Nn \l__colorclass_base_class_tl { book }
@@ -34,21 +34,24 @@
, draft .initial:n = { false }
, fast .bool_set:N = \l__colorclass_fast_bool
+ , print .bool_set:N = \l__colorclass_print_mode_bool
+ , print .initial:n = { false }
+ , print mode .bool_set:N = \l__colorclass_print_mode_bool
+ , print~mode .bool_set:N = \l__colorclass_print_mode_bool
+ , print-mode .bool_set:N = \l__colorclass_print_mode_bool
+ , print version .bool_set:N = \l__colorclass_print_mode_bool
+ , print~version .bool_set:N = \l__colorclass_print_mode_bool
+ , print-version .bool_set:N = \l__colorclass_print_mode_bool
+
, load custom font file .code:n = {
\bool_set_true:N \l__colorclass_load_custom_font_file_bool
\str_set:Nn \l__colorclass_custom_font_file_str { #1 }
}
, load custom font file .default:n = { colorist.font }
- , load~custom~font~file .code:n = {
- \bool_set_true:N \l__colorclass_load_custom_font_file_bool
- \str_set:Nn \l__colorclass_custom_font_file_str { #1 }
- }
+ , load~custom~font~file .meta:n = { load custom font file = { #1 } }
, load~custom~font~file .default:n = { colorist.font }
- , load-custom-font-file .code:n = {
- \bool_set_true:N \l__colorclass_load_custom_font_file_bool
- \str_set:Nn \l__colorclass_custom_font_file_str { #1 }
- }
+ , load-custom-font-file .meta:n = { load custom font file = { #1 } }
, load-custom-font-file .default:n = { colorist.font }
@@ -68,6 +71,19 @@
\LoadClass{\l__colorclass_base_class_tl}
+\NewDocumentCommand \IfPrintModeTF { m m }
+ {
+ \bool_if:NTF \l__colorclass_print_mode_bool { #1 } { #2 }
+ }
+\NewDocumentCommand \IfPrintModeT { m }
+ {
+ \bool_if:NT \l__colorclass_print_mode_bool { #1 }
+ }
+\NewDocumentCommand \IfPrintModeF { m }
+ {
+ \bool_if:NF \l__colorclass_print_mode_bool { #1 }
+ }
+
%%================================
%% Page layout
%%================================
@@ -165,6 +181,7 @@
{
\setsansfont { texgyreheros }
[
+ Extension = .otf ,
Scale = MatchUppercase ,
UprightFont = *-regular ,
BoldFont = *-bold ,
Modified: trunk/Master/texmf-dist/tex/latex/colorist/colorist-fancy.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/colorist/colorist-fancy.sty 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/tex/latex/colorist/colorist-fancy.sty 2023-01-02 21:23:26 UTC (rev 65436)
@@ -2,7 +2,7 @@
%% This is file `colorist/colorist-fancy.sty',
%% generated with the docstrip utility.
%%
-%% Copyright (C) 2021-2022 by Jinwen XU
+%% Copyright (C) 2021-2023 by Jinwen XU
%%
%% This is part of the colorist class series.
%%
@@ -18,7 +18,7 @@
\NeedsTeXFormat{LaTeX2e}[2022-06-01]
\ProvidesExplPackage
{colorist-fancy}
- {2022/09/03} {}
+ {2023/01/02} {}
{The fancy style of colorist}
\IfPackageLoadedTF { colorist } {}
@@ -216,6 +216,21 @@
\fi
}
+\renewcommand*{\thefootnote}{\textcolor{main-text!45!paper}{\arabic{footnote}}}
+
+\bool_if:NT \l__colorist_is_book_bool
+ {
+ \hook_gput_code:nnn { cmd/frontmatter/before } { colorist }
+ {
+ \renewcommand*{\thefootnote}{\textcolor{main-text!45!paper}{\fnsymbol{footnote}}}
+ }
+ \hook_gput_code:nnn { cmd/mainmatter/before } { colorist }
+ {
+ \setcounter{footnote}{0}
+ \renewcommand*{\thefootnote}{\textcolor{main-text!45!paper}{\arabic{footnote}}}
+ }
+ }
+
%%================================
%% Title format
%%================================
@@ -503,7 +518,7 @@
\projlib_langauge_define_multilingual_text:Nn \bl at nkpagetext
{
, EN = This~page~is~intentionally~left~blank
- , FR = Cette~page~a~été~intentionellement~laissée~vide
+ , FR = Cette~page~est~intentionnellement~laissée~vide
, DE = Diese~Seite~wurde~absichtlich~leer~gelassen
, IT = Questa~pagina~è~stata~lasciata~vuota~intenzionalmente
, PT = Esta~página~foi~intencionalmente~deixada~em~branco
@@ -616,6 +631,14 @@
\hspace*{20\p@}
}
+\hook_gput_code:nnn { begindocument/before } { colorist }
+ {
+ \bool_if:NF \l__colorist_fast_bool
+ {
+ \hook_gput_code:nnn { cmd/printindex/before } { colorist } { \bookmarksetup{startatroot} }
+ }
+ }
+
%%================================
%% Draft mark
%%================================
@@ -697,7 +720,7 @@
}
\newcommand{\customqedsymbol}{
- \makebox[1em]{\color{main-text!27!paper}\rule[-0.1em]{.95em}{.95em}}}
+ \makebox[1em]{\color{.!27!paper}\rule[-0.1em]{.95em}{.95em}}}
\let\qedsymbol\customqedsymbol
\bool_if:NTF \l__colorist_theorem_in_new_line_bool
@@ -742,10 +765,8 @@
\bool_if:NTF \l__colorist_fast_bool
{
- \providecommand{\phantomsection}{}
- \RequirePackage { url }
- \providecommand{\href}[2]{#2}
- \providecommand{\texorpdfstring}[2]{#1}
+ \RequirePackage { hyperref }
+ \hypersetup { draft }
}
{
\RequirePackage { hyperref }
Modified: trunk/Master/texmf-dist/tex/latex/colorist/colorist.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/colorist/colorist.sty 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/tex/latex/colorist/colorist.sty 2023-01-02 21:23:26 UTC (rev 65436)
@@ -2,7 +2,7 @@
%% This is file `colorist/colorist.sty',
%% generated with the docstrip utility.
%%
-%% Copyright (C) 2021-2022 by Jinwen XU
+%% Copyright (C) 2021-2023 by Jinwen XU
%%
%% This is part of the colorist class series.
%%
@@ -18,7 +18,7 @@
\NeedsTeXFormat{LaTeX2e}[2022-06-01]
\ProvidesExplPackage
{colorist}
- {2022/09/03} {}
+ {2023/01/02} {}
{A colorful style for articles and books}
\keys_define:nn { colorist }
Modified: trunk/Master/texmf-dist/tex/latex/einfart/einfart.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/einfart/einfart.cls 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/tex/latex/einfart/einfart.cls 2023-01-02 21:23:26 UTC (rev 65436)
@@ -18,7 +18,7 @@
\NeedsTeXFormat{LaTeX2e}[2022-06-01]
\ProvidesExplClass
{einfart}
- {2022/09/03} {}
+ {2023/01/02} {}
{A simple and clear article style}
\tl_const:Nn \l__minimclass_base_class_tl { article }
@@ -42,6 +42,15 @@
, draft .initial:n = { false }
, fast .bool_set:N = \l__minimclass_fast_bool
+ , print .bool_set:N = \l__minimclass_print_mode_bool
+ , print .initial:n = { false }
+ , print mode .bool_set:N = \l__minimclass_print_mode_bool
+ , print~mode .bool_set:N = \l__minimclass_print_mode_bool
+ , print-mode .bool_set:N = \l__minimclass_print_mode_bool
+ , print version .bool_set:N = \l__minimclass_print_mode_bool
+ , print~version .bool_set:N = \l__minimclass_print_mode_bool
+ , print-version .bool_set:N = \l__minimclass_print_mode_bool
+
, classical .bool_set:N = \l__minimclass_classical_bool
, classical .initial:n = { false }
@@ -61,15 +70,9 @@
\str_set:Nn \l__minimclass_custom_font_file_math_str { minimalist.font.math }
}
, load custom font file .default:n = { minimalist.font }
- , load~custom~font~file .code:n = {
- \bool_set_true:N \l__minimclass_load_custom_font_file_bool
- \str_set:Nn \l__minimclass_custom_font_file_str { #1 }
- }
+ , load~custom~font~file .meta:n = { load custom font file = { #1 } }
, load~custom~font~file .default:n = { minimalist.font }
- , load-custom-font-file .code:n = {
- \bool_set_true:N \l__minimclass_load_custom_font_file_bool
- \str_set:Nn \l__minimclass_custom_font_file_str { #1 }
- }
+ , load-custom-font-file .meta:n = { load custom font file = { #1 } }
, load-custom-font-file .default:n = { minimalist.font }
, load custom latin font file .code:n = {
@@ -77,15 +80,9 @@
\str_set:Nn \l__minimclass_custom_font_file_latin_str { #1 }
}
, load custom latin font file .default:n = { minimalist.font.latin }
- , load~custom~latin~font~file .code:n = {
- \bool_set_true:N \l__minimclass_load_custom_font_file_latin_bool
- \str_set:Nn \l__minimclass_custom_font_file_latin_str { #1 }
- }
+ , load~custom~latin~font~file .meta:n = { load custom latin font file = { #1 } }
, load~custom~latin~font~file .default:n = { minimalist.font.latin }
- , load-custom-latin-font-file .code:n = {
- \bool_set_true:N \l__minimclass_load_custom_font_file_latin_bool
- \str_set:Nn \l__minimclass_custom_font_file_latin_str { #1 }
- }
+ , load-custom-latin-font-file .meta:n = { load custom latin font file = { #1 } }
, load-custom-latin-font-file .default:n = { minimalist.font.latin }
, load custom cjk font file .code:n = {
@@ -93,15 +90,9 @@
\str_set:Nn \l__minimclass_custom_font_file_cjk_str { #1 }
}
, load custom cjk font file .default:n = { minimalist.font.cjk }
- , load~custom~cjk~font~file .code:n = {
- \bool_set_true:N \l__minimclass_load_custom_font_file_cjk_bool
- \str_set:Nn \l__minimclass_custom_font_file_cjk_str { #1 }
- }
+ , load~custom~cjk~font~file .meta:n = { load custom cjk font file = { #1 } }
, load~custom~cjk~font~file .default:n = { minimalist.font.cjk }
- , load-custom-cjk-font-file .code:n = {
- \bool_set_true:N \l__minimclass_load_custom_font_file_cjk_bool
- \str_set:Nn \l__minimclass_custom_font_file_cjk_str { #1 }
- }
+ , load-custom-cjk-font-file .meta:n = { load custom cjk font file = { #1 } }
, load-custom-cjk-font-file .default:n = { minimalist.font.cjk }
, load custom math font file .code:n = {
@@ -109,15 +100,9 @@
\str_set:Nn \l__minimclass_custom_font_file_math_str { #1 }
}
, load custom math font file .default:n = { minimalist.font.math }
- , load~custom~math~font~file .code:n = {
- \bool_set_true:N \l__minimclass_load_custom_font_file_math_bool
- \str_set:Nn \l__minimclass_custom_font_file_math_str { #1 }
- }
+ , load~custom~math~font~file .meta:n = { load custom math font file = { #1 } }
, load~custom~math~font~file .default:n = { minimalist.font.math }
- , load-custom-math-font-file .code:n = {
- \bool_set_true:N \l__minimclass_load_custom_font_file_math_bool
- \str_set:Nn \l__minimclass_custom_font_file_math_str { #1 }
- }
+ , load-custom-math-font-file .meta:n = { load custom math font file = { #1 } }
, load-custom-math-font-file .default:n = { minimalist.font.math }
, a4paper .bool_set:N = \l__minimclass_a_four_paper_bool
@@ -141,6 +126,19 @@
\bool_set_false:N \l__minimclass_useindent_bool
}
+\NewDocumentCommand \IfPrintModeTF { m m }
+ {
+ \bool_if:NTF \l__minimclass_print_mode_bool { #1 } { #2 }
+ }
+\NewDocumentCommand \IfPrintModeT { m }
+ {
+ \bool_if:NT \l__minimclass_print_mode_bool { #1 }
+ }
+\NewDocumentCommand \IfPrintModeF { m }
+ {
+ \bool_if:NF \l__minimclass_print_mode_bool { #1 }
+ }
+
%%================================
%% Page layout
%%================================
@@ -630,14 +628,9 @@
]
\setmathfont { latinmodern-math.otf }
[
- range = { \ast } ,
+ range = { frak, bffrak, \mitvarpi, \mupvarpi, \ast } ,
Scale = 1.10
]
- \setmathfont { latinmodern-math.otf }
- [
- range = { frak, bffrak }
- ]
- \DeclareMathAlphabet{\mathcal}{OMS}{cmsy}{m}{n}
\setmathfont { texgyrepagella-math.otf }
[
range = { `(, `) } ,
@@ -645,9 +638,14 @@
]
\setmathfont { texgyrepagella-math.otf }
[
+ range = { \mathcomma, \mathsemicolon } ,
+ ]
+ \setmathfont { texgyrepagella-math.otf }
+ [
range = { it / { Latin, latin }, bfit / { Latin, latin }, up / num, bfup / num }
]
- \setmathfont { KpMath-Regular.otf } [ range = {} ]
+ \setmathfont { KpMath-Regular.otf } [ range = { cal, bfcal }, RawFeature=+ss01 ]
+ % \setmathfont { KpMath-Regular.otf } [ range = {} ]
\sys_if_engine_luatex:T
{
@@ -727,15 +725,27 @@
{
\minimclass_xarrows_generic:nnnn { #1 } { #2 } {} { edge [ commutative~diagrams/equal ] }
}
+ \NewDocumentCommand \xtwoheadrightarrow { O{} m }
+ {
+ \minimclass_xarrows_generic:nnnn { #1 } { #2 } {} { edge [ commutative~diagrams/twoheadrightarrow ] }
+ }
+ \NewDocumentCommand \xtwoheadleftarrow { O{} m }
+ {
+ \minimclass_xarrows_generic:nnnn { #1 } { #2 } {} { edge [ commutative~diagrams/twoheadleftarrow ] }
+ }
\hook_gput_code:nnn { begindocument/end } { minimclass }
{
\RenewDocumentCommand \twoheadrightarrow {}
{
- \minimclass_xarrows_generic:nnnn { \,\, } {} {} { edge [ commutative~diagrams/twoheadrightarrow ] }
+ \minimclass_xarrows_generic:nnnn {
+ \mathchoice { \,\, } { \, } { } { }
+ } {} {} { edge [ commutative~diagrams/twoheadrightarrow ] }
}
\RenewDocumentCommand \twoheadleftarrow {}
{
- \minimclass_xarrows_generic:nnnn { \,\, } {} {} { edge [ commutative~diagrams/twoheadleftarrow ] }
+ \minimclass_xarrows_generic:nnnn {
+ \mathchoice { \,\, } { \, } { } { }
+ } {} {} { edge [ commutative~diagrams/twoheadleftarrow ] }
}
}
}
Modified: trunk/Master/texmf-dist/tex/latex/lebhart/lebhart.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/lebhart/lebhart.cls 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/tex/latex/lebhart/lebhart.cls 2023-01-02 21:23:26 UTC (rev 65436)
@@ -2,7 +2,7 @@
%% This is file `lebhart/lebhart.cls',
%% generated with the docstrip utility.
%%
-%% Copyright (C) 2021-2022 by Jinwen XU
+%% Copyright (C) 2021-2023 by Jinwen XU
%%
%% This is part of the colorist class series.
%%
@@ -18,7 +18,7 @@
\NeedsTeXFormat{LaTeX2e}[2022-06-01]
\ProvidesExplClass
{lebhart}
- {2022/09/03} {}
+ {2023/01/02} {}
{A colorful article style}
\tl_const:Nn \l__colorclass_base_class_tl { article }
@@ -42,7 +42,16 @@
, draft .initial:n = { false }
, fast .bool_set:N = \l__colorclass_fast_bool
+ , print .bool_set:N = \l__colorclass_print_mode_bool
+ , print .initial:n = { false }
+ , print mode .bool_set:N = \l__colorclass_print_mode_bool
+ , print~mode .bool_set:N = \l__colorclass_print_mode_bool
+ , print-mode .bool_set:N = \l__colorclass_print_mode_bool
+ , print version .bool_set:N = \l__colorclass_print_mode_bool
+ , print~version .bool_set:N = \l__colorclass_print_mode_bool
+ , print-version .bool_set:N = \l__colorclass_print_mode_bool
+
, load custom font file .code:n = {
\bool_set_true:N \l__colorclass_load_custom_font_file_bool
\str_set:Nn \l__colorclass_custom_font_file_str { #1 }
@@ -54,15 +63,9 @@
\str_set:Nn \l__colorclass_custom_font_file_math_str { colorist.font.math }
}
, load custom font file .default:n = { colorist.font }
- , load~custom~font~file .code:n = {
- \bool_set_true:N \l__colorclass_load_custom_font_file_bool
- \str_set:Nn \l__colorclass_custom_font_file_str { #1 }
- }
+ , load~custom~font~file .meta:n = { load custom font file = { #1 } }
, load~custom~font~file .default:n = { colorist.font }
- , load-custom-font-file .code:n = {
- \bool_set_true:N \l__colorclass_load_custom_font_file_bool
- \str_set:Nn \l__colorclass_custom_font_file_str { #1 }
- }
+ , load-custom-font-file .meta:n = { load custom font file = { #1 } }
, load-custom-font-file .default:n = { colorist.font }
, load custom latin font file .code:n = {
@@ -70,15 +73,9 @@
\str_set:Nn \l__colorclass_custom_font_file_latin_str { #1 }
}
, load custom latin font file .default:n = { colorist.font.latin }
- , load~custom~latin~font~file .code:n = {
- \bool_set_true:N \l__colorclass_load_custom_font_file_latin_bool
- \str_set:Nn \l__colorclass_custom_font_file_latin_str { #1 }
- }
+ , load~custom~latin~font~file .meta:n = { load custom latin font file = { #1 } }
, load~custom~latin~font~file .default:n = { colorist.font.latin }
- , load-custom-latin-font-file .code:n = {
- \bool_set_true:N \l__colorclass_load_custom_font_file_latin_bool
- \str_set:Nn \l__colorclass_custom_font_file_latin_str { #1 }
- }
+ , load-custom-latin-font-file .meta:n = { load custom latin font file = { #1 } }
, load-custom-latin-font-file .default:n = { colorist.font.latin }
, load custom cjk font file .code:n = {
@@ -86,15 +83,9 @@
\str_set:Nn \l__colorclass_custom_font_file_cjk_str { #1 }
}
, load custom cjk font file .default:n = { colorist.font.cjk }
- , load~custom~cjk~font~file .code:n = {
- \bool_set_true:N \l__colorclass_load_custom_font_file_cjk_bool
- \str_set:Nn \l__colorclass_custom_font_file_cjk_str { #1 }
- }
+ , load~custom~cjk~font~file .meta:n = { load custom cjk font file = { #1 } }
, load~custom~cjk~font~file .default:n = { colorist.font.cjk }
- , load-custom-cjk-font-file .code:n = {
- \bool_set_true:N \l__colorclass_load_custom_font_file_cjk_bool
- \str_set:Nn \l__colorclass_custom_font_file_cjk_str { #1 }
- }
+ , load-custom-cjk-font-file .meta:n = { load custom cjk font file = { #1 } }
, load-custom-cjk-font-file .default:n = { colorist.font.cjk }
, load custom math font file .code:n = {
@@ -102,15 +93,9 @@
\str_set:Nn \l__colorclass_custom_font_file_math_str { #1 }
}
, load custom math font file .default:n = { colorist.font.math }
- , load~custom~math~font~file .code:n = {
- \bool_set_true:N \l__colorclass_load_custom_font_file_math_bool
- \str_set:Nn \l__colorclass_custom_font_file_math_str { #1 }
- }
+ , load~custom~math~font~file .meta:n = { load custom math font file = { #1 } }
, load~custom~math~font~file .default:n = { colorist.font.math }
- , load-custom-math-font-file .code:n = {
- \bool_set_true:N \l__colorclass_load_custom_font_file_math_bool
- \str_set:Nn \l__colorclass_custom_font_file_math_str { #1 }
- }
+ , load-custom-math-font-file .meta:n = { load custom math font file = { #1 } }
, load-custom-math-font-file .default:n = { colorist.font.math }
, a4paper .bool_set:N = \l__colorclass_a_four_paper_bool
@@ -129,6 +114,19 @@
\LoadClass{\l__colorclass_base_class_tl}
+\NewDocumentCommand \IfPrintModeTF { m m }
+ {
+ \bool_if:NTF \l__colorclass_print_mode_bool { #1 } { #2 }
+ }
+\NewDocumentCommand \IfPrintModeT { m }
+ {
+ \bool_if:NT \l__colorclass_print_mode_bool { #1 }
+ }
+\NewDocumentCommand \IfPrintModeF { m }
+ {
+ \bool_if:NF \l__colorclass_print_mode_bool { #1 }
+ }
+
%%================================
%% Page layout
%%================================
@@ -607,14 +605,9 @@
]
\setmathfont { latinmodern-math.otf }
[
- range = { \ast } ,
+ range = { frak, bffrak, \mitvarpi, \mupvarpi, \ast } ,
Scale = 1.10
]
- \setmathfont { latinmodern-math.otf }
- [
- range = { frak, bffrak }
- ]
- \DeclareMathAlphabet{\mathcal}{OMS}{cmsy}{m}{n}
\setmathfont { texgyrepagella-math.otf }
[
range = { `(, `) } ,
@@ -622,9 +615,14 @@
]
\setmathfont { texgyrepagella-math.otf }
[
+ range = { \mathcomma, \mathsemicolon } ,
+ ]
+ \setmathfont { texgyrepagella-math.otf }
+ [
range = { it / { Latin, latin }, bfit / { Latin, latin }, up / num, bfup / num }
]
- \setmathfont { KpMath-Regular.otf } [ range = {} ]
+ \setmathfont { KpMath-Regular.otf } [ range = { cal, bfcal }, RawFeature=+ss01 ]
+ % \setmathfont { KpMath-Regular.otf } [ range = {} ]
\sys_if_engine_luatex:T
{
@@ -704,15 +702,27 @@
{
\colorclass_xarrows_generic:nnnn { #1 } { #2 } {} { edge [ commutative~diagrams/equal ] }
}
+ \NewDocumentCommand \xtwoheadrightarrow { O{} m }
+ {
+ \colorclass_xarrows_generic:nnnn { #1 } { #2 } {} { edge [ commutative~diagrams/twoheadrightarrow ] }
+ }
+ \NewDocumentCommand \xtwoheadleftarrow { O{} m }
+ {
+ \colorclass_xarrows_generic:nnnn { #1 } { #2 } {} { edge [ commutative~diagrams/twoheadleftarrow ] }
+ }
\hook_gput_code:nnn { begindocument/end } { colorclass }
{
\RenewDocumentCommand \twoheadrightarrow {}
{
- \colorclass_xarrows_generic:nnnn { \,\, } {} {} { edge [ commutative~diagrams/twoheadrightarrow ] }
+ \colorclass_xarrows_generic:nnnn {
+ \mathchoice { \,\, } { \, } { } { }
+ } {} {} { edge [ commutative~diagrams/twoheadrightarrow ] }
}
\RenewDocumentCommand \twoheadleftarrow {}
{
- \colorclass_xarrows_generic:nnnn { \,\, } {} {} { edge [ commutative~diagrams/twoheadleftarrow ] }
+ \colorclass_xarrows_generic:nnnn {
+ \mathchoice { \,\, } { \, } { } { }
+ } {} {} { edge [ commutative~diagrams/twoheadleftarrow ] }
}
}
}
Modified: trunk/Master/texmf-dist/tex/latex/minimalist/minimalist-classical.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/minimalist/minimalist-classical.sty 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/tex/latex/minimalist/minimalist-classical.sty 2023-01-02 21:23:26 UTC (rev 65436)
@@ -18,7 +18,7 @@
\NeedsTeXFormat{LaTeX2e}[2022-06-01]
\ProvidesExplPackage
{minimalist-classical}
- {2022/09/03} {}
+ {2023/01/02} {}
{The classical style of minimalist}
\IfPackageLoadedTF { minimalist } {}
@@ -269,6 +269,21 @@
\fi
}
+\renewcommand*{\thefootnote}{\textcolor{main-text!45!paper}{\arabic{footnote}}}
+
+\bool_if:NT \l__minimalist_is_book_bool
+ {
+ \hook_gput_code:nnn { cmd/frontmatter/before } { minimalist }
+ {
+ \renewcommand*{\thefootnote}{\textcolor{main-text!45!paper}{\fnsymbol{footnote}}}
+ }
+ \hook_gput_code:nnn { cmd/mainmatter/before } { minimalist }
+ {
+ \setcounter{footnote}{0}
+ \renewcommand*{\thefootnote}{\textcolor{main-text!45!paper}{\arabic{footnote}}}
+ }
+ }
+
%%================================
%% Title format
%%================================
@@ -276,28 +291,13 @@
\PassOptionsToPackage { normalem } { ulem }
\RequirePackage { ulem }
+\cs_new:Nn \minimalist_title_numbering_apply_font:n { { \usefont{U}{zeur}{b}{n} #1 } }
+
\cs_new_protected:Nn \minimalist_apply_title_numbering_style_static:n
{
#1
}
-\cs_new_protected:Nn \minimalist_apply_title_numbering_style:n
- {
- \group_begin:
- \tl_set:Nx \l_tmpa_tl { #1 }
- \regex_replace_all:nnN { (\w) } { \c{minimalist_original_bfseries:}{\1} } \l_tmpa_tl
- \regex_replace_all:nnN { (\d) } { {\c{usefont}{U}{zeur}{b}{n}\1} } \l_tmpa_tl
- \exp_args:Nnx \regex_count:nnN { \. } {#1} \l_tmpa_int
- \int_case:nn { \l_tmpa_int }
- {
- { 0 } { \textcolor { main-text!24!paper } }
- { 1 } { \textcolor { main-text!39!paper } }
- { 2 } { \textcolor { main-text!39!paper } }
- { 3 } { \smaller[2] \textcolor { main-text!24!paper } }
- }
- \l_tmpa_tl
- \group_end:
- }
\newcommand{\partstring}{\MakeUppercase{{\partname\nobreakspace\protect\thepart}}}
@@ -572,7 +572,7 @@
\projlib_langauge_define_multilingual_text:Nn \bl at nkpagetext
{
, EN = This~page~is~intentionally~left~blank
- , FR = Cette~page~a~été~intentionellement~laissée~vide
+ , FR = Cette~page~est~intentionnellement~laissée~vide
, DE = Diese~Seite~wurde~absichtlich~leer~gelassen
, IT = Questa~pagina~è~stata~lasciata~vuota~intenzionalmente
, PT = Esta~página~foi~intencionalmente~deixada~em~branco
@@ -636,9 +636,9 @@
}
\newcommand*{\IndexLinebreak}
{
- \nobreakspace\textcolor{main-text!50!paper}{\raisebox{.25ex}{.}\raisebox{.05ex}{.}}
+ \nobreakspace\textcolor{main-text!45!paper}{\raisebox{.4ex}{.}\raisebox{.2ex}{.}}
\item\hspace*{\hangindent}
- \textcolor{main-text!50!paper}{\raisebox{.35ex}{.}\raisebox{.15ex}{.}}\,
+ \textcolor{main-text!45!paper}{\raisebox{.45ex}{.}\raisebox{.25ex}{.}}\:
\unskip
}
@@ -678,6 +678,10 @@
\hook_gput_code:nnn { begindocument/before } { minimalist }
{
+ \bool_if:NF \l__minimalist_fast_bool
+ {
+ \hook_gput_code:nnn { cmd/printindex/before } { minimalist } { \bookmarksetup{startatroot} }
+ }
\hook_gput_code:nnn { cmd/printindex/before } { minimalist } { \LocallyStopLineNumbers }
\hook_gput_code:nnn { cmd/printindex/after } { minimalist } { \ResumeLineNumbers }
}
@@ -734,15 +738,13 @@
\theoremstyle{simple}
\newcommand{\customqedsymbol}{
- \makebox[1em]{\color{main-text!27!paper}\rule[-0.1em]{.95em}{.95em}}}
+ \makebox[1em]{\color{.!27!paper}\rule[-0.1em]{.95em}{.95em}}}
\let\qedsymbol\customqedsymbol
\bool_if:NTF \l__minimalist_fast_bool
{
- \providecommand{\phantomsection}{}
- \RequirePackage { url }
- \providecommand{\href}[2]{#2}
- \providecommand{\texorpdfstring}[2]{#1}
+ \RequirePackage { hyperref }
+ \hypersetup { draft }
}
{
\RequirePackage { hyperref }
@@ -1029,13 +1031,13 @@
%%================================
%% Special adjustment
%%================================
-\crefformat { chapter } { #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
+\crefformat { chapter } { \nobreak \crefthemark { \crefthe_retrieve_space: } \nobreak #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
\labelcrefformat { chapter } { #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
-\crefformat { section } { #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
+\crefformat { section } { \nobreak \crefthemark { \crefthe_retrieve_space: } \nobreak #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
\labelcrefformat { section } { #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
-\crefformat { subsection } { #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
+\crefformat { subsection } { \nobreak \crefthemark { \crefthe_retrieve_space: } \nobreak #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
\labelcrefformat { subsection } { #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
-\crefformat { subsubsection } { #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
+\crefformat { subsubsection } { \nobreak \crefthemark { \crefthe_retrieve_space: } \nobreak #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
\labelcrefformat { subsubsection } { #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
\endinput
Added: trunk/Master/texmf-dist/tex/latex/minimalist/minimalist-flow.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/minimalist/minimalist-flow.sty (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/minimalist/minimalist-flow.sty 2023-01-02 21:23:26 UTC (rev 65436)
@@ -0,0 +1,1042 @@
+%%
+%% This is file `minimalist/minimalist-flow.sty',
+%% generated with the docstrip utility.
+%%
+%% Copyright (C) 2021-2022 by Jinwen XU
+%%
+%% This is part of the minimalist class series.
+%%
+%% This work may be distributed and/or modified under the conditions of the
+%% LaTeX Project Public License, either version 1.3c of this license or (at
+%% your option) any later version. The latest version of this license is in
+%%
+%% http://www.latex-project.org/lppl.txt
+%%
+%% and version 1.3c or later is part of all distributions of LaTeX version
+%% 2005/12/01 or later.
+%%
+\NeedsTeXFormat{LaTeX2e}[2022-06-01]
+\ProvidesExplPackage
+ {minimalist-flow}
+ {2023/01/02} {}
+ {The flow style of minimalist}
+
+\IfPackageLoadedTF { minimalist } {}
+ {
+ \msg_new:nnn { \@currname }
+ { minimalist-not-loaded }
+ { "#1"~is~an~internal~style~of~"minimalist".~To~use~it,~you~must~load~the~package~"minimalist"~first. }
+ \msg_warning:nnx { \@currname } { minimalist-not-loaded } { \@currname }
+ \endinput
+ }
+
+%%================================
+%% Title fonts
+%%================================
+\RequirePackage { relsize }
+\RequirePackage { anyfontsize }
+
+\NewCommandCopy \minimalist_original_bfseries: \bfseries
+\bool_new:N \l_minimalist_is_under_bfseries_bool
+\bool_set_false:N \l_minimalist_is_under_bfseries_bool
+\RenewDocumentCommand \bfseries { }
+ {
+ \bool_if:NF \l_minimalist_is_under_bfseries_bool
+ {
+ \colorlet{minimalist-temp-color}{.}
+ \color{minimalist-temp-color!70!paper}
+ }
+ \minimalist_original_bfseries:
+ \bool_set_true:N \l_minimalist_is_under_bfseries_bool
+ }
+\bool_if:NTF \l__minimalist_use_boldface_bool
+ {
+ \cs_new:Nn \minimalist_bfseries: { \bfseries }
+ }
+ {
+ \cs_new:Nn \minimalist_bfseries: {}
+ }
+
+\bool_if:NTF \l__minimalist_use_scshape_bool
+ {
+ \cs_new:Nn \minimalist_scshape: { \scshape }
+ }
+ {
+ \cs_new:Nn \minimalist_scshape: {}
+ }
+
+\tl_new:N \g_minimalist_title_font_common_tl
+
+\tl_new:N \g_minimalist_title_font_part_tl
+\tl_new:N \g_minimalist_title_font_chapter_tl
+\tl_new:N \g_minimalist_title_font_section_tl
+\tl_new:N \g_minimalist_title_font_subsection_tl
+\tl_new:N \g_minimalist_title_font_subsubsection_tl
+\tl_new:N \g_minimalist_title_font_paragraph_tl
+
+\tl_gset:Nn \g_minimalist_title_font_part_tl { \minimalist_bfseries: \g_minimalist_title_font_common_tl }
+\tl_gset:Nn \g_minimalist_title_font_chapter_tl { \minimalist_bfseries: \g_minimalist_title_font_common_tl \minimalist_scshape: }
+\tl_gset:Nn \g_minimalist_title_font_section_tl { \minimalist_bfseries: \g_minimalist_title_font_common_tl \minimalist_scshape: }
+\tl_gset:Nn \g_minimalist_title_font_subsection_tl { \minimalist_bfseries: \g_minimalist_title_font_common_tl \minimalist_scshape: }
+% \bool_if:NTF \l__minimalist_runin_bool
+% {
+ \tl_gset:Nn \g_minimalist_title_font_subsubsection_tl { \itshape \g_minimalist_title_font_common_tl }
+% }
+% {
+% \tl_gset:Nn \g_minimalist_title_font_subsubsection_tl { \minimalist_bfseries: \g_minimalist_title_font_common_tl }
+% }
+\tl_gset:Nn \g_minimalist_title_font_paragraph_tl { \minimalist_bfseries: \g_minimalist_title_font_common_tl \minimalist_scshape: }
+
+\bool_if:NF \l__minimalist_fast_bool
+ {
+ \RequirePackage { tikz }
+ \ExplSyntaxOff
+ \usetikzlibrary{calc,shadings}
+ \ExplSyntaxOn
+ \RequirePackage { tikzpagenodes } % For `current page text area`
+ }
+
+\bool_if:NTF \l__minimalist_fast_bool
+ {
+ \tl_const:Nn \l_minimalist_sep_bar { $|$ }
+ }
+ {
+ \tl_const:Nn \l_minimalist_sep_bar
+ {
+ \skip_horizontal:n { .1em }
+ \tikz[baseline=.125em] \draw[line~width=.9pt] (0,0) -- (0,.9em);
+ \skip_horizontal:n { .1em }
+ }
+ }
+
+%%================================
+%% Footer
+%%================================
+\RequirePackage { geometry }
+\RequirePackage { fancyhdr }
+\RequirePackage { extramarks }
+
+\hook_gput_code:nnn { begindocument/before } { minimalist }
+ {
+ \fancyhfoffset { 0pt }
+ }
+
+\tl_new:N \l_minimalist_leftmark_tl
+\tl_new:N \l_minimalist_rightmark_tl
+
+\tl_set:Nn \l_minimalist_leftmark_tl
+ {
+ \begin{minipage}[t]{.833\textwidth}
+ \lastleftmark
+ \end{minipage}
+ }
+\tl_set:Nn \l_minimalist_rightmark_tl
+ {
+ \begin{minipage}[t]{.833\textwidth}
+ \filleft
+ \lastrightmark
+ \end{minipage}
+ }
+
+\fancypagestyle { fancy }
+ {
+ \fancyhf { }
+ \if at twoside
+ \fancyfoot[RO]
+ {
+ \textcolor { main-text!30!paper } { \small \l_minimalist_rightmark_tl }
+ \rlap
+ {
+ \nobreakspace \nobreakspace \nobreakspace \nobreakspace
+ \textcolor { main-text!75!paper } { \thepage }
+ }
+ }
+ \fancyfoot[LE]
+ {
+ \leavevmode
+ \llap
+ {
+ \textcolor { main-text!75!paper } { \thepage }
+ \nobreakspace \nobreakspace \nobreakspace \nobreakspace
+ }
+ \textcolor { main-text!30!paper } { \small \l_minimalist_leftmark_tl }
+ }
+ \else
+ \fancyfoot[R]
+ {
+ \textcolor { main-text!30!paper } { \small \l_minimalist_rightmark_tl }
+ \rlap
+ {
+ \nobreakspace \nobreakspace \nobreakspace \nobreakspace
+ \textcolor { main-text!75!paper } { \thepage }
+ }
+ }
+ \fi
+ \renewcommand { \headrulewidth } { 0pt }
+ }
+\pagestyle { fancy }
+
+\fancypagestyle { plain }
+ {
+ \fancyhf { }
+ \if at twoside
+ \fancyfoot[RO]
+ {
+ \nobreakspace
+ \rlap
+ {
+ \nobreakspace \nobreakspace \nobreakspace \nobreakspace
+ \textcolor { main-text!75!paper } { \thepage }
+ }
+ }
+ \fancyfoot[LE]
+ {
+ \leavevmode
+ \llap
+ {
+ \textcolor { main-text!75!paper } { \thepage }
+ \nobreakspace \nobreakspace \nobreakspace \nobreakspace
+ }
+ \nobreakspace
+ }
+ \else
+ \fancyfoot[R]
+ {
+ \nobreakspace
+ \rlap
+ {
+ \nobreakspace \nobreakspace \nobreakspace \nobreakspace
+ \textcolor { main-text!75!paper } { \thepage }
+ }
+ }
+ \fi
+ \renewcommand { \headrulewidth } { 0pt }
+ }
+
+\bool_if:NTF \l__minimalist_is_book_bool
+ {
+ \bool_if:NTF \l__minimalist_fast_bool
+ {
+ \newcommand{ \minimalist_draw_help_line: }{}
+ }
+ {
+ \newcommand{ \minimalist_draw_help_line: }
+ {
+ \begin{tikzpicture}[remember~picture,overlay]
+ \foreach\i in {0,1,...,5}{
+ \fill[opacity=0.12-0.02*\i]
+ ($(current~page~text~area.north~east)+(-\i*0.5em-.025em,-10pt+\i*1.1pt)$)
+ rectangle ($(current~page~text~area.south~east)+(-\i*0.5em+.025em,10pt-\i*1.1pt)$);
+ \shade[top~color=paper,bottom~color=main-text,opacity=0.12-0.02*\i]
+ ($(current~page~text~area.north~east)+(-\i*0.5em-.025em,2pt)$)
+ rectangle ($(current~page~text~area.north~east)+(-\i*0.5em+.025em,-10pt+\i*1.1pt)$);
+ \shade[top~color=main-text,bottom~color=paper,opacity=0.12-0.02*\i]
+ ($(current~page~text~area.south~east)+(-\i*0.5em-.025em,-2pt)$)
+ rectangle ($(current~page~text~area.south~east)+(-\i*0.5em+.025em,10pt-\i*1.1pt)$);
+ }
+ \end{tikzpicture}
+ }
+ }
+ \fancypagestyle { part }
+ {
+ \fancyhf { }
+ \renewcommand { \headrulewidth } { 0pt }
+ \fancyhead[C] { \minimalist_draw_help_line: }
+ }
+ \addtolength { \headheight } { 20pt }
+ \addtolength { \topmargin } { -20pt }
+ \if at twoside
+ \renewcommand{\chaptermark}[1]{\markboth{\textsc{#1}}{}}
+ \else
+ \renewcommand{\chaptermark}[1]{\markboth{\textsc{#1}}{\textsc{#1}}}
+ \fi
+ \renewcommand*{\sectionmark}[1]{
+ \markright{\protect\g_minimalist_section_decoration_char_tl\nobreakspace\thesection\nobreakspace\protect\g_minimalist_section_decoration_char_tl\nobreakspace\nobreakspace\nobreakspace#1}}
+ }
+ {
+ \if at twoside
+ \renewcommand*{\sectionmark}[1]{\markboth{\textsc{#1}}{}}
+ \else
+ \renewcommand*{\sectionmark}[1]{\markboth{\textsc{#1}}{\textsc{#1}}}
+ \fi
+ }
+
+\renewcommand*{\thefootnote}{\textcolor{main-text!45!paper}{\arabic{footnote}}}
+
+\bool_if:NT \l__minimalist_is_book_bool
+ {
+ \hook_gput_code:nnn { cmd/frontmatter/before } { minimalist }
+ {
+ \renewcommand*{\thefootnote}{\textcolor{main-text!45!paper}{\fnsymbol{footnote}}}
+ }
+ \hook_gput_code:nnn { cmd/mainmatter/before } { minimalist }
+ {
+ \setcounter{footnote}{0}
+ \renewcommand*{\thefootnote}{\textcolor{main-text!45!paper}{\arabic{footnote}}}
+ }
+ }
+
+%%================================
+%% Title format
+%%================================
+\RequirePackage [ explicit, newparttoc ] { titlesec }
+\PassOptionsToPackage { normalem } { ulem }
+\RequirePackage { ulem }
+
+\cs_new:Nn \minimalist_title_numbering_apply_font:n { { \usefont{U}{zeur}{b}{n} #1 } }
+
+\cs_new_protected:Nn \minimalist_apply_title_numbering_style_static:n
+ {
+ \tl_set:Nx \l_tmpa_tl { #1 }
+ \regex_replace_all:nnN { (\w) } { \c{minimalist_original_bfseries:}{\1} } \l_tmpa_tl
+ % \regex_replace_all:nnN { (\d) } { {\c{usefont}{U}{zeur}{b}{n}\1} } \l_tmpa_tl
+ \regex_replace_all:nnN { (\d) } { {\c{minimalist_title_numbering_apply_font:n}{\1}} } \l_tmpa_tl
+ \textcolor { .!39!paper } { \normalfont \l_tmpa_tl }
+ }
+
+\cs_new_protected:Nn \minimalist_apply_title_numbering_style:n
+ {
+ \group_begin:
+ \tl_set:Nx \l_tmpa_tl { #1 }
+ \regex_replace_all:nnN { (\w) } { \c{minimalist_original_bfseries:}{\1} } \l_tmpa_tl
+ % \regex_replace_all:nnN { (\d) } { {\c{usefont}{U}{zeur}{b}{n}\1} } \l_tmpa_tl
+ \regex_replace_all:nnN { (\d) } { {\c{minimalist_title_numbering_apply_font:n}{\1}} } \l_tmpa_tl
+ \exp_args:Nnx \regex_count:nnN { \. } {#1} \l_tmpa_int
+ \int_case:nn { \l_tmpa_int }
+ {
+ { 0 } { \textcolor { .!24!paper } }
+ { 1 } { \textcolor { .!39!paper } }
+ { 2 } { \textcolor { .!39!paper } }
+ { 3 } { \smaller[.5] \textcolor { .!39!paper } }
+ }
+ \l_tmpa_tl
+ \group_end:
+ }
+
+\newcommand{\partstring}{\MakeUppercase{{\partname\nobreakspace\protect\thepart}}}
+
+\AddLanguageSetting
+ {
+ \renewcommand{\partstring}{\MakeUppercase{{\partname\nobreakspace\protect\thepart}}}
+ }
+\AddLanguageSetting [ schinese ]
+ {
+ \renewcommand{\partstring}{第 \zhnumber{\arabic{part}} 部分}
+ }
+\AddLanguageSetting [ tchinese ]
+ {
+ \renewcommand{\partstring}{第 \zhnumber{\arabic{part}} 部分}
+ }
+\AddLanguageSetting [ japanese ]
+ {
+ \renewcommand{\partstring}{第 \nobreakspace\thepart\nobreakspace 部}
+ }
+
+\bool_if:NTF \l__minimalist_is_book_bool
+ {
+ \setcounter{secnumdepth}{3}
+
+ %% Part
+ \titleclass{\part}{top} % make part like a chapter
+ \titleformat{\part}[display]
+ {\thispagestyle{part}
+ \LocallyStopLineNumbers
+ \g_minimalist_title_font_part_tl\filleft}
+ {\partstring}
+ {1em}
+ {\fontsize{20}{24}\selectfont\MakeUppercase{#1}}
+ [\ResumeLineNumbers]
+ \titleformat{name=\part,numberless}[display]
+ {\thispagestyle{part}
+ \LocallyStopLineNumbers
+ % \phantomsection\addcontentsline{toc}{part}{#1}
+ \g_minimalist_title_font_part_tl\filleft}
+ {\phantom{\MakeUppercase{\partname}}}
+ {1em}
+ {\fontsize{20}{24}\selectfont\MakeUppercase{#1}}
+ [\ResumeLineNumbers]
+ \titlespacing*{\part}{0pt}{5em}{6em}
+ %% Text after part
+ \newcommand{\parttext}[1]{
+ \vfill
+ \LocallyStopLineNumbers
+ \begin{flushright}
+ \begin{minipage}{0.833\textwidth}
+ \color{main-text!80!paper}\raggedleft#1
+ \end{minipage}
+ \end{flushright}
+ \ResumeLineNumbers
+ \vfill\vfill
+ \cleardoublepage
+ }
+
+ %% Chapter
+ \titleformat{\chapter}
+ {\thispagestyle{fancy}
+ \LocallyStopLineNumbers
+ \color{main-text!80!paper}\g_minimalist_title_font_chapter_tl\fontsize{16}{0}\selectfont}{}{0em}
+ {
+ \rlap
+ {
+ \hspace*{-.5em}
+ \color{main-text!10!paper}
+ \fontsize{90}{0}\selectfont\raisebox{-10pt}{ \minimalist_title_numbering_apply_font:n { \thechapter } }
+ }
+ #1
+ }
+ [\ResumeLineNumbers]
+ \titleformat{name=\chapter,numberless}
+ {\thispagestyle{fancy}
+ \LocallyStopLineNumbers
+ % \phantomsection\addcontentsline{toc}{chapter}{#1}
+ \color{main-text!90!paper}\g_minimalist_title_font_chapter_tl\fontsize{16}{0}\selectfont}{}{0em}
+ {
+ \rlap
+ {
+ \hspace*{-.5em}
+ \fontsize{80}{0}\selectfont\raisebox{-10pt}{ \phantom{*} }
+ }
+ #1
+ }
+ [\ResumeLineNumbers]
+ }
+ {
+ %% Part
+ \titleformat{\part}[display]
+ {\LocallyStopLineNumbers
+ \g_minimalist_title_font_part_tl\filleft}
+ {\partstring}
+ {.3em}
+ {\fontsize{16}{0}\selectfont\MakeUppercase{#1}}
+ [\ResumeLineNumbers]
+ \titleformat{name=\part,numberless}[display]
+ {\LocallyStopLineNumbers
+ % \phantomsection\addcontentsline{toc}{part}{#1}
+ \g_minimalist_title_font_part_tl\filleft}
+ {\phantom{\MakeUppercase{\partname}}}
+ {.3em}
+ {\fontsize{16}{0}\selectfont\MakeUppercase{#1}}
+ [\ResumeLineNumbers]
+ %% Text after part
+ \newcommand{\parttext}[1]{
+ \LocallyStopLineNumbers
+ \begin{flushright}
+ \begin{minipage}{0.833\textwidth}
+ \color{main-text!80!paper}\raggedleft#1
+ \end{minipage}
+ \end{flushright}
+ \ResumeLineNumbers
+ }
+ }
+
+%% Section
+\tl_gset:Nn \g_minimalist_section_decoration_char_tl {}
+\titleformat{\section}
+ {\LocallyStopLineNumbers
+ \centering}
+ {\raisebox{-.02\baselineskip}{\large \minimalist_apply_title_numbering_style:n { \thesection } }}{1em}
+ {\g_minimalist_title_font_section_tl #1}
+ [\ResumeLineNumbers]
+
+%% Subsection
+\titleformat{\subsection}
+ {\LocallyStopLineNumbers}
+ { \minimalist_apply_title_numbering_style:n { \thesubsection } }{.75em}
+ {\g_minimalist_title_font_subsection_tl #1}
+ [\ResumeLineNumbers]
+
+%% Subsubsection
+\bool_if:NTF \l__minimalist_runin_bool
+ {
+ \titleformat{\subsubsection}[runin]
+ {}
+ {
+ \minimalist_apply_title_numbering_style:n { \thesubsubsection }
+ \tl_if_blank:nT { #1 }
+ {
+ \hspace* { .5em }
+ }
+ }
+ {.5em}
+ {
+ \tl_if_blank:nF { #1 }
+ {
+ \g_minimalist_title_font_subsubsection_tl
+ #1. \hspace* { .5em }
+ }
+ }
+ }
+ {
+ \titleformat{\subsubsection}
+ {\LocallyStopLineNumbers}
+ { \minimalist_apply_title_numbering_style:n { \thesubsubsection } }{.75em}
+ {\g_minimalist_title_font_subsubsection_tl #1}
+ [\ResumeLineNumbers]
+ }
+
+%% Paragraph
+\titleformat{\paragraph}[runin]
+ { \g_minimalist_title_font_paragraph_tl }{\theparagraph}{1em}{#1}
+
+\titlespacing{\section}{0pt}{1\baselineskip plus .5\baselineskip minus .2\baselineskip}{.6\baselineskip plus .3\baselineskip minus .2\baselineskip}
+\titlespacing{\subsection}{0pt}{.75\baselineskip plus .3\baselineskip minus .2\baselineskip}{.4\baselineskip plus .2\baselineskip minus .1\baselineskip}
+\bool_if:NTF \l__minimalist_runin_bool
+ {
+ \titlespacing{\subsubsection}{0pt}{.5\baselineskip plus .2\baselineskip minus .1\baselineskip}{0pt}
+ }
+ {
+ \titlespacing{\subsubsection}{0pt}{.5\baselineskip plus .2\baselineskip minus .1\baselineskip}{.3\baselineskip plus .2\baselineskip minus .1\baselineskip}
+ }
+
+%%================================
+%% ToC format
+%%================================
+\RequirePackage { titletoc }
+\titlecontents{part}
+ [0em]
+ {\addvspace{1.5pc}\filcenter\normalfont}
+ { \minimalist_apply_title_numbering_style_static:n { \thecontentslabel } \nopagebreak\\\nopagebreak\uppercase}
+ {}
+ {} % without page number
+ [\addvspace{.5pc}]
+
+\bool_if:NTF \l__minimalist_is_book_bool
+ {
+ \titlecontents{chapter}
+ [2em] % i.e., 0em (part) + 2em
+ {\addvspace{.5pc}\normalfont}
+ {\contentslabel[ \minimalist_apply_title_numbering_style_static:n { \thecontentslabel } ]{2em}}
+ {\hspace*{-2em}}
+ {\titlerule*[1em]{\textcolor{main-text!15!paper}{.}}\contentspage}
+ \titlecontents{section}
+ [5em] % i.e., 2em (chapter) + 3em
+ {\normalfont}
+ {\contentslabel[ \minimalist_apply_title_numbering_style_static:n { \thecontentslabel } ]{2.75em}}
+ {\hspace*{-2.75em}}
+ {\titlerule*[1em]{\textcolor{main-text!15!paper}{.}}\contentspage}
+ \titlecontents{subsection}
+ [9em] % i.e., 5em (section) + 4em
+ {\normalfont}
+ {\contentslabel[ \minimalist_apply_title_numbering_style_static:n { \thecontentslabel } ]{3.75em}}
+ {\hspace*{-3.75em}}
+ {\titlerule*[1em]{\textcolor{main-text!15!paper}{.}}\contentspage}
+ \titlecontents{subsubsection}
+ [13.5em] % i.e., 9em (subsection) + 4.5em
+ {\normalfont}
+ {\contentslabel[ \minimalist_apply_title_numbering_style_static:n { \thecontentslabel } ]{4.25em}}
+ {\hspace*{-4.25em}}
+ {\titlerule*[1em]{\textcolor{main-text!15!paper}{.}}\contentspage}
+ }
+ {
+ \titlecontents{section}
+ [2em] % i.e., 0em (part) + 2em
+ {\normalfont}
+ {\contentslabel[ \minimalist_apply_title_numbering_style_static:n { \thecontentslabel } ]{1.75em}}
+ {\hspace*{-1.75em}}
+ {\titlerule*[1em]{\textcolor{main-text!15!paper}{.}}\contentspage}
+ \titlecontents{subsection}
+ [5em] % i.e., 2em (section) + 3em
+ {\normalfont}
+ {\contentslabel[ \minimalist_apply_title_numbering_style_static:n { \thecontentslabel } ]{2.75em}}
+ {\hspace*{-2.75em}}
+ {\titlerule*[1em]{\textcolor{main-text!15!paper}{.}}\contentspage}
+ \titlecontents{subsubsection}
+ [9em] % i.e., 5em (subsection) + 4em
+ {\normalfont}
+ {\contentslabel[ \minimalist_apply_title_numbering_style_static:n { \thecontentslabel } ]{3.75em}}
+ {\hspace*{-3.75em}}
+ {\titlerule*[1em]{\textcolor{main-text!15!paper}{.}}\contentspage}
+ }
+
+%%================================
+%% Lists
+%%================================
+\RequirePackage { enumitem }
+\setlistdepth{10}
+\setlist{noitemsep, topsep=.33\topsep-.5\parskip}
+\setlist[enumerate]{labelsep=*, leftmargin=*}
+\setlist[enumerate,1]{label = \normalfont\arabic*$\mskip-.5mu\big)$,
+ ref = \normalfont\color{.!45!paper}\arabic*$\mskip-.5mu\big)$}
+\setlist[enumerate,2]{label = \normalfont\emph{\roman*}$\mskip-.5mu\big)$,
+ ref = \normalfont\color{.!45!paper}\arabic{enumi}.\emph{\roman*}$\mskip-.5mu\big)$}
+\setlist[enumerate,3]{label = \normalfont\emph{\alph*}$\mskip-.5mu\big)$,
+ ref = \normalfont\color{.!45!paper}\arabic{enumi}.\emph{\roman{enumii}}.\emph{\alph*}$\mskip-.5mu\big)$}
+\setlist[description]{font=\normalfont\minimalist_bfseries:}
+
+\renewlist{itemize}{itemize}{10}
+\setlist[itemize]{leftmargin=*,label=\textcolor{.!27!paper}{$\cdot$}}
+\AddLanguageSetting { \setlist[itemize,1]{label=\textcolor{.!27!paper}{$\bullet$},leftmargin=\maxof{\parindent}{1.5em}} }
+\AddLanguageSetting [french] { \setlist[itemize,1]{label=\textcolor{.!39!paper}{\rule[.2\baselineskip]{.8em}{.75pt}},leftmargin=\maxof{\parindent}{1.5em}} }
+\setlist[itemize,2]{label=\textcolor{.!27!paper}{\rule[.2\baselineskip]{.55em}{.75pt}}}
+\setlist[itemize,3]{label=\textcolor{.!27!paper}{$\circ$}}
+\setlist[itemize,4]{label=\textcolor{.!27!paper}{$\ast$}}
+
+%%================================
+%% Blank page
+%%================================
+\projlib_langauge_define_multilingual_text:Nn \bl at nkpagetext
+ {
+ , EN = This~page~is~intentionally~left~blank
+ , FR = Cette~page~est~intentionnellement~laissée~vide
+ , DE = Diese~Seite~wurde~absichtlich~leer~gelassen
+ , IT = Questa~pagina~è~stata~lasciata~vuota~intenzionalmente
+ , PT = Esta~página~foi~intencionalmente~deixada~em~branco
+ , BR = Esta~página~foi~intencionalmente~deixada~em~branco
+ , ES = Esta~página~se~ha~dejado~intencionadamente~en~blanco
+ , CN = \ziju{0.2} 此页为有意留为空白
+ , TC = \ziju{0.2} 此頁為有意留為空白
+ , JP = このページは意図的に空白にしてあります
+ , RU = Эта~страница~намеренно~оставлена~пустой
+ }
+\renewcommand{\cleardoublepage}{
+ \relax
+ \clearpage
+ \if at twoside\ifodd\c at page\relax\else
+ \thispagestyle{empty}
+ \hook_gput_next_code:nn { shipout/background }
+ {
+ \put(0.5\paperwidth,-0.5\paperheight){
+ \makebox[0pt]{\large\color{main-text!10!paper}\g_minimalist_title_font_common_tl\bl at nkpagetext}}
+ }
+ \null\newpage\fi\fi
+}
+
+%%================================
+%% Index
+%%================================
+\RequirePackage { imakeidx }
+\makeindex[intoc]
+
+\RequirePackage { silence }
+\ExplSyntaxOff
+\WarningFilter{latex}{Writing or overwriting file}
+\begin{filecontents*}[overwrite]{\jobname.mst}
+delim_0 "\\IndexDotfill " % Filler between section heading and page number
+delim_1 "\\IndexDotfill " % Filler between subsection heading and page number
+headings_flag 1
+heading_prefix "\\IndexHeading{"
+heading_suffix "}\n"
+\end{filecontents*}
+\ExplSyntaxOn
+
+\projlib_langauge_define_multilingual_text:Nn \index_symbols_name
+ {
+ , EN = Symbols
+ , FR = Symboles
+ , DE = Symbole
+ , IT = Simboli
+ , PT = Símbolos
+ , BR = Símbolos
+ , ES = Símbolos
+ , CN = 符号
+ , TC = 符號
+ , JP = 記号
+ , RU = Символы
+ }
+
+\newcommand*{\IndexDotfill}
+ {
+ \null\nobreak
+ \leaders \hbox to .67em {\hss \textcolor{main-text!15!paper}{.} \hss} \hskip1em plus1fill
+ }
+\newcommand*{\IndexLinebreak}
+ {
+ \nobreakspace\textcolor{main-text!45!paper}{\raisebox{.4ex}{.}\raisebox{.2ex}{.}}
+ \item\hspace*{\hangindent}
+ \textcolor{main-text!45!paper}{\raisebox{.45ex}{.}\raisebox{.25ex}{.}}\:
+ \unskip
+ }
+
+\newcommand*{\IndexHeading}[1]
+ {
+ \str_if_eq:nnTF { #1 } { Symbols }
+ { \tl_set:Nn \l_tmpa_tl { \index_symbols_name } }
+ { \tl_set:Nn \l_tmpa_tl { #1 } }
+ \centerline{ \g_minimalist_title_font_common_tl \minimalist_apply_title_numbering_style_static:n { \l_tmpa_tl } }
+ \nopagebreak
+ \par
+ \vspace{.3\baselineskip}
+ }
+
+\renewcommand*{\indexspace}
+ {
+ \par
+ \vspace{2pc plus .5pc minus .3pc}
+ }
+
+\bool_new:N \l__minimalist_if_first_subitem_bool
+\renewcommand*{\@idxitem}
+ {
+ \par\hangindent40\p@
+ \bool_set_true:N \l__minimalist_if_first_subitem_bool
+ }
+\renewcommand*{\subitem}
+ {
+ \par\hangindent40\p@
+ \bool_if:NT \l__minimalist_if_first_subitem_bool
+ {
+ \nobreak
+ \bool_set_false:N \l__minimalist_if_first_subitem_bool
+ }
+ \hspace*{20\p@}
+ }
+
+\hook_gput_code:nnn { begindocument/before } { minimalist }
+ {
+ \bool_if:NF \l__minimalist_fast_bool
+ {
+ \hook_gput_code:nnn { cmd/printindex/before } { minimalist } { \bookmarksetup{startatroot} }
+ }
+ \hook_gput_code:nnn { cmd/printindex/before } { minimalist } { \LocallyStopLineNumbers }
+ \hook_gput_code:nnn { cmd/printindex/after } { minimalist } { \ResumeLineNumbers }
+ }
+
+%%================================
+%% Draft mark
+%%================================
+\RequirePackage { projlib-draft }
+
+%%================================
+%% Theorems
+%%================================
+\RequirePackage { mathtools }
+\RequirePackage { amsthm }
+
+\def\tagform@#1{\maketag@@@{\textcolor{main-text!39!paper}{(\ignorespaces#1\unskip\@@italiccorr)}}}
+
+\PassOptionsToPackage { nopatch = eqnum } { microtype }
+
+\bool_if:NTF \l__minimalist_theorem_in_new_line_bool
+ {
+ \newtheoremstyle{simple}
+ {.75\baselineskip}{}
+ {
+ \normalfont
+ \parindent=0pt
+ \parskip=.3333\baselineskip plus .0667\baselineskip minus .0833\baselineskip
+ }{}
+ {\normalfont}{}
+ {0pt}
+ {
+ \rlap{\vbox{\hbox{\parbox{\linewidth}{
+ {\thmnumber{ \minimalist_apply_title_numbering_style:n { #2 } \hspace{.75em} }\thmname{#1}}
+ {\color{main-text!50!paper}\thmnote{\hspace{.4em}$($#3$)$}}
+ }}\hbox{\strut}\vspace{0pt}}}
+ }
+ }
+ {
+ \newtheoremstyle{simple}
+ {}{}
+ {
+ \normalfont
+ \parindent=0pt
+ \parskip=.3333\baselineskip plus .0667\baselineskip minus .0833\baselineskip
+ }{}
+ {\normalfont}{}
+ {0pt}
+ {{\thmnumber{ \minimalist_apply_title_numbering_style:n { #2 } \hspace{.75em} }\thmname{#1}}
+ {\color{main-text!50!paper}\thmnote{\hspace{.4em}$($#3$)$}}\nobreakspace\nobreakspace{\normalfont\textcolor{main-text!27!paper}{---}}\nobreakspace\nobreakspace}
+ }
+
+\theoremstyle{simple}
+
+\newcommand{\customqedsymbol}{
+ \makebox[1em]{\color{.!27!paper}\rule[-0.1em]{.95em}{.95em}}}
+\let\qedsymbol\customqedsymbol
+
+\bool_if:NTF \l__minimalist_fast_bool
+ {
+ \RequirePackage { hyperref }
+ \hypersetup { draft }
+ }
+ {
+ \RequirePackage { hyperref }
+ \RequirePackage { bookmark }
+ \hypersetup{ hidelinks, linktoc = all }
+ \bookmarksetup{ numbered }
+ \renewcommand\Hy at numberline[1]{#1.~}
+ % https://tex.stackexchange.com/a/1821
+ % Add the bookmark of ToC
+ \hook_gput_code:nnn { cmd/tableofcontents/before } { minimalist }
+ {
+ \if at openright\cleardoublepage\else\clearpage\fi
+ \pdfbookmark[0]{\contentsname}{toc}
+ }
+ }
+
+\RequirePackage { projlib-theorem }
+
+\SetTheorem { proof, proof* } { qed-symbol = { \customqedsymbol } }
+
+\AddToHook{env/proof/begin}{\Hy at SaveLastskip\color{blue!50!cyan!55!main-text}\Hy at RestoreLastskip}
+
+\exp_args:No \SetTheorem { \c_projlib_theorem_supported_clist, theorem-with-name, proof } { shared counter = subsection }
+
+\exp_args:No \SetTheorem { \c_projlib_theorem_supported_clist, theorem-with-name }
+ {
+ name style = {
+ , heading style = {
+ , english = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , french = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , ngerman = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , italian = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , portuguese = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , brazilian = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , spanish = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , schinese = \minimalist_bfseries:\g_minimalist_title_font_common_tl
+ , tchinese = \minimalist_bfseries:\g_minimalist_title_font_common_tl
+ , japanese = \minimalist_bfseries:\g_minimalist_title_font_common_tl
+ , russian = \minimalist_bfseries:\g_minimalist_title_font_common_tl
+ }
+ , numbering style = { \minimalist_apply_title_numbering_style_static:n }
+ }
+ }
+
+\SetTheorem { remark }
+ {
+ name style = {
+ , heading style = {
+ , english = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textit
+ , french = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textit
+ , ngerman = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textit
+ , italian = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textit
+ , portuguese = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textit
+ , brazilian = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textit
+ , spanish = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textit
+ , russian = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textit
+ , schinese = \minimalist_bfseries:\g_minimalist_title_font_common_tl
+ , tchinese = \minimalist_bfseries:\g_minimalist_title_font_common_tl
+ , japanese = \minimalist_bfseries:\g_minimalist_title_font_common_tl
+ , russian = \minimalist_bfseries:\g_minimalist_title_font_common_tl
+ }
+ , numbering style = { \minimalist_apply_title_numbering_style_static:n }
+ }
+ }
+
+\bool_if:NF \l__projlib_theorem_complexname_bool
+ {
+ \exp_args:No \SetTheorem { \c_projlib_theorem_supported_clist, theorem-with-name }
+ {
+ name style = {
+ , crefname style = {
+ , english = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , french = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , ngerman = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , italian = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , portuguese = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , brazilian = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , spanish = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , schinese = \minimalist_bfseries:\g_minimalist_title_font_common_tl
+ , tchinese = \minimalist_bfseries:\g_minimalist_title_font_common_tl
+ , japanese = \minimalist_bfseries:\g_minimalist_title_font_common_tl
+ , russian = \minimalist_bfseries:\g_minimalist_title_font_common_tl
+ }
+ , Crefname style = {
+ , english = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , french = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , ngerman = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , italian = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , portuguese = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , brazilian = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , spanish = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , schinese = \minimalist_bfseries:\g_minimalist_title_font_common_tl
+ , tchinese = \minimalist_bfseries:\g_minimalist_title_font_common_tl
+ , japanese = \minimalist_bfseries:\g_minimalist_title_font_common_tl
+ , russian = \minimalist_bfseries:\g_minimalist_title_font_common_tl
+ }
+ , numbering style = { \minimalist_apply_title_numbering_style_static:n }
+ }
+ }
+
+ \SetTheorem { remark }
+ {
+ name style = {
+ , crefname style = {
+ , english = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textit
+ , french = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textit
+ , ngerman = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textit
+ , italian = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textit
+ , portuguese = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textit
+ , brazilian = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textit
+ , spanish = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textit
+ , russian = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textit
+ , schinese = \minimalist_bfseries:\g_minimalist_title_font_common_tl
+ , tchinese = \minimalist_bfseries:\g_minimalist_title_font_common_tl
+ , japanese = \minimalist_bfseries:\g_minimalist_title_font_common_tl
+ , russian = \minimalist_bfseries:\g_minimalist_title_font_common_tl
+ }
+ , Crefname style = {
+ , english = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textit
+ , french = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textit
+ , ngerman = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textit
+ , italian = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textit
+ , portuguese = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textit
+ , brazilian = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textit
+ , spanish = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textit
+ , russian = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textit
+ , schinese = \minimalist_bfseries:\g_minimalist_title_font_common_tl
+ , tchinese = \minimalist_bfseries:\g_minimalist_title_font_common_tl
+ , japanese = \minimalist_bfseries:\g_minimalist_title_font_common_tl
+ , russian = \minimalist_bfseries:\g_minimalist_title_font_common_tl
+ }
+ , numbering style = { \minimalist_apply_title_numbering_style_static:n }
+ }
+ }
+ }
+
+\PassOptionsToPackage { many } { tcolorbox }
+\RequirePackage { tcolorbox }
+\bool_if:NT \l__minimalist_fast_bool { \tcbstartdraftmode }
+
+
+\NewDocumentEnvironment { emphasis } { }
+ {
+ \LocallyStopLineNumbers
+ \enlargethispage{2mm}
+ \begin{tcolorbox}
+ [
+ enhanced ~ jigsaw, breakable, oversize,
+ % nobeforeafter,
+ left = .5em, right=0mm, top=0.5mm, bottom=0mm, boxrule=0pt,
+ colback=main-text!2!paper, frame ~ hidden,
+ borderline ~ west = {.3em} {0mm} {main-text!25!paper},
+ arc = 0.2mm,
+ ]
+ }
+ {
+ \end{tcolorbox}
+ \ResumeLineNumbers
+ }
+
+\hook_gput_code:nnn { env/quote/begin } { minimalist } { \small }
+
+%%================================
+%% Title block style
+%%================================
+\bool_if:NTF \l__minimalist_is_book_bool
+ {
+ \hook_gput_code:nnn { package/projlib-author/after } { minimalist }
+ {
+ \tl_gset:Nn \g__projlib_author_font_author_tl { \normalfont \minimalist_scshape: }
+ \tl_gset:Nn \g__projlib_author_font_institute_tl { \large \normalfont }
+ \tl_gset:Nn \g__projlib_author_font_address_tl { \large \normalfont \itshape }
+ \tl_gset:Nn \g__projlib_author_font_curraddr_tl { \large \normalfont \itshape }
+ \tl_gset:Nn \g__projlib_author_font_email_tl { \large \normalfont \ttfamily }
+ }
+
+ \RequirePackage { projlib-titlepage }
+ \renewcommand{\maketitle}{
+ \LocallyStopLineNumbers
+ \ProjLibTitlePage [ style = simple ]
+ {
+ , title = \@title
+ , author = \@author
+ , date = \@date
+ }
+ \ResumeLineNumbers
+ }
+ }
+ {
+ \renewcommand{\@maketitle}
+ {
+ \LocallyStopLineNumbers
+ \begin{center}
+ \let\footnote\thanks
+ {\minimalist_bfseries:\sffamily\minimalist_scshape:\Large\@title}\\\bigskip
+ \color{main-text!80!paper}
+ {\small\minimalist_scshape:\@author}
+ \par\smallskip\vspace{-\parskip}
+ {\small\@date}
+ \end{center}
+ \projlib_author_if_content_empty:nT { \@date } { \medskip }
+ \medskip\par
+ \ResumeLineNumbers
+ }
+
+ \hook_gput_code:nnn { cmd/maketitle/after } { minimalist } { \thispagestyle{fancy} }
+
+%%================================
+%% Abstract style
+%%================================
+ \renewenvironment{abstract}
+ {
+ \LocallyStopLineNumbers
+ \vspace{-.5\baselineskip}
+ \begin{center}
+ { \g_minimalist_title_font_section_tl \minimalist_scshape: \small\abstractname}\\
+ \vspace{-.3\baselineskip}
+ \begin{minipage}[t]{.833\textwidth}
+ \vspace{0pt}
+ \color{main-text!80!paper}
+ \footnotesize
+ \parindent=2em
+ }
+ {
+ \end{minipage}
+ \end{center}
+ \medskip
+ \ResumeLineNumbers
+ }
+
+%%================================
+%% Keyword environment
+%%================================
+ \DefineMultilingualText { \keywordname }
+ {
+ EN = Keywords ,
+ FR = Mots~clés ,
+ DE = Schlüsselwörter ,
+ IT = Parole~chiave ,
+ PT = Palavras~chave ,
+ BR = Palavras~chave ,
+ ES = Palabras~clave ,
+ CN = 关键词 ,
+ TC = 關鍵詞 ,
+ JP = キーワード ,
+ RU = Ключевые~слова ,
+ }
+
+ \newenvironment{keyword}{
+ \LocallyStopLineNumbers
+ \vspace{-.75\baselineskip}
+ \begin{center}
+ {\minimalist_bfseries:\minimalist_scshape:\small\keywordname}\\
+ \vspace{-.3\baselineskip}
+ \begin{minipage}[t]{.833\textwidth}
+ \vspace{0pt}
+ \color{main-text!80!paper}
+ \footnotesize
+ \parindent=2em
+ \begin{center}
+ }{
+ \end{center}
+ \end{minipage}
+ \end{center}
+ \medskip
+ \ResumeLineNumbers
+ }
+ } % end of \bool_if:NTF \l__minimalist_is_book_bool
+
+%%================================
+%% Simulate features of amsart
+%%================================
+\PassOptionsToPackage { amsfashion } { projlib-author }
+\RequirePackage { projlib-author }
+
+%%================================
+%% Special adjustment
+%%================================
+\setcounter{tocdepth}{1}
+
+\crefformat { chapter } { \nobreak \crefthemark { \crefthe_retrieve_space: } \nobreak #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
+\labelcrefformat { chapter } { #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
+\crefformat { section } { \nobreak \crefthemark { \crefthe_retrieve_space: } \nobreak #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
+\labelcrefformat { section } { #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
+\crefformat { subsection } { \nobreak \crefthemark { \crefthe_retrieve_space: } \nobreak #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
+\labelcrefformat { subsection } { #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
+\crefformat { subsubsection } { \nobreak \crefthemark { \crefthe_retrieve_space: } \nobreak #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
+\labelcrefformat { subsubsection } { #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
+
+\endinput
+%%
+%% End of file `minimalist/minimalist-flow.sty'.
Property changes on: trunk/Master/texmf-dist/tex/latex/minimalist/minimalist-flow.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/tex/latex/minimalist/minimalist-plain.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/minimalist/minimalist-plain.sty 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/tex/latex/minimalist/minimalist-plain.sty 2023-01-02 21:23:26 UTC (rev 65436)
@@ -18,7 +18,7 @@
\NeedsTeXFormat{LaTeX2e}[2022-06-01]
\ProvidesExplPackage
{minimalist-plain}
- {2022/09/03} {}
+ {2023/01/02} {}
{The plain style of minimalist}
\IfPackageLoadedTF { minimalist } {}
@@ -255,6 +255,21 @@
\fi
}
+\renewcommand*{\thefootnote}{\textcolor{main-text!45!paper}{\arabic{footnote}}}
+
+\bool_if:NT \l__minimalist_is_book_bool
+ {
+ \hook_gput_code:nnn { cmd/frontmatter/before } { minimalist }
+ {
+ \renewcommand*{\thefootnote}{\textcolor{main-text!45!paper}{\fnsymbol{footnote}}}
+ }
+ \hook_gput_code:nnn { cmd/mainmatter/before } { minimalist }
+ {
+ \setcounter{footnote}{0}
+ \renewcommand*{\thefootnote}{\textcolor{main-text!45!paper}{\arabic{footnote}}}
+ }
+ }
+
%%================================
%% Title format
%%================================
@@ -262,11 +277,13 @@
\PassOptionsToPackage { normalem } { ulem }
\RequirePackage { ulem }
+\cs_new:Nn \minimalist_title_numbering_apply_font:n { { \usefont{U}{zeur}{b}{n} #1 } }
+
\cs_new_protected:Nn \minimalist_apply_title_numbering_style_static:n
{
\tl_set:Nx \l_tmpa_tl { #1 }
\regex_replace_all:nnN { (\w) } { \c{minimalist_original_bfseries:}{\1} } \l_tmpa_tl
- \regex_replace_all:nnN { (\d) } { {\c{usefont}{U}{zeur}{b}{n}\1} } \l_tmpa_tl
+ \regex_replace_all:nnN { (\d) } { {\c{minimalist_title_numbering_apply_font:n}{\1}} } \l_tmpa_tl
\textcolor { main-text!39!paper } { \normalfont \l_tmpa_tl }
}
@@ -275,7 +292,7 @@
\group_begin:
\tl_set:Nx \l_tmpa_tl { #1 }
\regex_replace_all:nnN { (\w) } { \c{minimalist_original_bfseries:}{\1} } \l_tmpa_tl
- \regex_replace_all:nnN { (\d) } { {\c{usefont}{U}{zeur}{b}{n}\1} } \l_tmpa_tl
+ \regex_replace_all:nnN { (\d) } { {\c{minimalist_title_numbering_apply_font:n}{\1}} } \l_tmpa_tl
\exp_args:Nnx \regex_count:nnN { \. } {#1} \l_tmpa_int
\int_case:nn { \l_tmpa_int }
{
@@ -355,7 +372,7 @@
{
\hspace*{-.5em}
\color{main-text!10!paper}
- \fontsize{90}{0}\selectfont\raisebox{-10pt}{ \usefont{U}{zeur}{b}{n} \thechapter }
+ \fontsize{90}{0}\selectfont\raisebox{-10pt}{ \minimalist_title_numbering_apply_font:n { \thechapter } }
}
#1
}
@@ -541,7 +558,7 @@
\projlib_langauge_define_multilingual_text:Nn \bl at nkpagetext
{
, EN = This~page~is~intentionally~left~blank
- , FR = Cette~page~a~été~intentionellement~laissée~vide
+ , FR = Cette~page~est~intentionnellement~laissée~vide
, DE = Diese~Seite~wurde~absichtlich~leer~gelassen
, IT = Questa~pagina~è~stata~lasciata~vuota~intenzionalmente
, PT = Esta~página~foi~intencionalmente~deixada~em~branco
@@ -605,9 +622,9 @@
}
\newcommand*{\IndexLinebreak}
{
- \nobreakspace\textcolor{main-text!50!paper}{\raisebox{.25ex}{.}\raisebox{.05ex}{.}}
+ \nobreakspace\textcolor{main-text!45!paper}{\raisebox{.4ex}{.}\raisebox{.2ex}{.}}
\item\hspace*{\hangindent}
- \textcolor{main-text!50!paper}{\raisebox{.35ex}{.}\raisebox{.15ex}{.}}\,
+ \textcolor{main-text!45!paper}{\raisebox{.45ex}{.}\raisebox{.25ex}{.}}\:
\unskip
}
@@ -647,6 +664,10 @@
\hook_gput_code:nnn { begindocument/before } { minimalist }
{
+ \bool_if:NF \l__minimalist_fast_bool
+ {
+ \hook_gput_code:nnn { cmd/printindex/before } { minimalist } { \bookmarksetup{startatroot} }
+ }
\hook_gput_code:nnn { cmd/printindex/before } { minimalist } { \LocallyStopLineNumbers }
\hook_gput_code:nnn { cmd/printindex/after } { minimalist } { \ResumeLineNumbers }
}
@@ -701,15 +722,13 @@
\theoremstyle{simple}
\newcommand{\customqedsymbol}{
- \makebox[1em]{\color{main-text!27!paper}\rule[-0.1em]{.95em}{.95em}}}
+ \makebox[1em]{\color{.!27!paper}\rule[-0.1em]{.95em}{.95em}}}
\let\qedsymbol\customqedsymbol
\bool_if:NTF \l__minimalist_fast_bool
{
- \providecommand{\phantomsection}{}
- \RequirePackage { url }
- \providecommand{\href}[2]{#2}
- \providecommand{\texorpdfstring}[2]{#1}
+ \RequirePackage { hyperref }
+ \hypersetup { draft }
}
{
\RequirePackage { hyperref }
@@ -986,13 +1005,13 @@
%%================================
%% Special adjustment
%%================================
-\crefformat { chapter } { #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
+\crefformat { chapter } { \nobreak \crefthemark { \crefthe_retrieve_space: } \nobreak #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
\labelcrefformat { chapter } { #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
-\crefformat { section } { #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
+\crefformat { section } { \nobreak \crefthemark { \crefthe_retrieve_space: } \nobreak #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
\labelcrefformat { section } { #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
-\crefformat { subsection } { #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
+\crefformat { subsection } { \nobreak \crefthemark { \crefthe_retrieve_space: } \nobreak #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
\labelcrefformat { subsection } { #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
-\crefformat { subsubsection } { #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
+\crefformat { subsubsection } { \nobreak \crefthemark { \crefthe_retrieve_space: } \nobreak #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
\labelcrefformat { subsubsection } { #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
\endinput
Added: trunk/Master/texmf-dist/tex/latex/minimalist/minimalist-stream.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/minimalist/minimalist-stream.sty (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/minimalist/minimalist-stream.sty 2023-01-02 21:23:26 UTC (rev 65436)
@@ -0,0 +1,1101 @@
+%%
+%% This is file `minimalist/minimalist-stream.sty',
+%% generated with the docstrip utility.
+%%
+%% Copyright (C) 2021-2022 by Jinwen XU
+%%
+%% This is part of the minimalist class series.
+%%
+%% This work may be distributed and/or modified under the conditions of the
+%% LaTeX Project Public License, either version 1.3c of this license or (at
+%% your option) any later version. The latest version of this license is in
+%%
+%% http://www.latex-project.org/lppl.txt
+%%
+%% and version 1.3c or later is part of all distributions of LaTeX version
+%% 2005/12/01 or later.
+%%
+\NeedsTeXFormat{LaTeX2e}[2022-06-01]
+\ProvidesExplPackage
+ {minimalist-stream}
+ {2023/01/02} {}
+ {The stream style of minimalist}
+
+\IfPackageLoadedTF { minimalist } {}
+ {
+ \msg_new:nnn { \@currname }
+ { minimalist-not-loaded }
+ { "#1"~is~an~internal~style~of~"minimalist".~To~use~it,~you~must~load~the~package~"minimalist"~first. }
+ \msg_warning:nnx { \@currname } { minimalist-not-loaded } { \@currname }
+ \endinput
+ }
+
+%%================================
+%% Title fonts
+%%================================
+\RequirePackage { relsize }
+\RequirePackage { anyfontsize }
+
+\NewCommandCopy \minimalist_original_bfseries: \bfseries
+\bool_new:N \l_minimalist_is_under_bfseries_bool
+\bool_set_false:N \l_minimalist_is_under_bfseries_bool
+\RenewDocumentCommand \bfseries { }
+ {
+ \bool_if:NF \l_minimalist_is_under_bfseries_bool
+ {
+ \colorlet{minimalist-temp-color}{.}
+ \color{minimalist-temp-color!70!paper}
+ }
+ \minimalist_original_bfseries:
+ \bool_set_true:N \l_minimalist_is_under_bfseries_bool
+ }
+\bool_if:NTF \l__minimalist_use_boldface_bool
+ {
+ \cs_new:Nn \minimalist_bfseries: { \bfseries }
+ }
+ {
+ \cs_new:Nn \minimalist_bfseries: {}
+ }
+
+\bool_if:NTF \l__minimalist_use_scshape_bool
+ {
+ \cs_new:Nn \minimalist_scshape: { \scshape }
+ }
+ {
+ \cs_new:Nn \minimalist_scshape: {}
+ }
+
+\tl_new:N \g_minimalist_title_font_common_tl
+
+\tl_new:N \g_minimalist_title_font_part_tl
+\tl_new:N \g_minimalist_title_font_chapter_tl
+\tl_new:N \g_minimalist_title_font_section_tl
+\tl_new:N \g_minimalist_title_font_subsection_tl
+\tl_new:N \g_minimalist_title_font_subsubsection_tl
+\tl_new:N \g_minimalist_title_font_paragraph_tl
+
+\tl_gset:Nn \g_minimalist_title_font_part_tl { \minimalist_bfseries: \g_minimalist_title_font_common_tl }
+\tl_gset:Nn \g_minimalist_title_font_chapter_tl { \minimalist_bfseries: \g_minimalist_title_font_common_tl \minimalist_scshape: }
+\tl_gset:Nn \g_minimalist_title_font_section_tl { \minimalist_bfseries: \g_minimalist_title_font_common_tl \minimalist_scshape: }
+\tl_gset:Nn \g_minimalist_title_font_subsection_tl { \minimalist_bfseries: \g_minimalist_title_font_common_tl \minimalist_scshape: }
+\tl_gset:Nn \g_minimalist_title_font_subsubsection_tl { \itshape \g_minimalist_title_font_common_tl }
+\tl_gset:Nn \g_minimalist_title_font_paragraph_tl { \minimalist_bfseries: \g_minimalist_title_font_common_tl \minimalist_scshape: }
+
+\bool_if:NF \l__minimalist_fast_bool
+ {
+ \RequirePackage { tikz }
+ \ExplSyntaxOff
+ \usetikzlibrary{calc,shadings}
+ \ExplSyntaxOn
+ \RequirePackage { tikzpagenodes } % For `current page text area`
+ }
+
+%%================================
+%% Footer
+%%================================
+\RequirePackage { geometry }
+\RequirePackage { fancyhdr }
+\RequirePackage { extramarks }
+
+\hook_gput_code:nnn { begindocument/before } { minimalist }
+ {
+ \fancyhfoffset { 0pt }
+ }
+
+\tl_new:N \l_minimalist_leftmark_tl
+\tl_new:N \l_minimalist_rightmark_tl
+
+\tl_set:Nn \l_minimalist_leftmark_tl
+ {
+ \begin{minipage}[t]{.833\textwidth}
+ \lastleftmark
+ \end{minipage}
+ }
+\tl_set:Nn \l_minimalist_rightmark_tl
+ {
+ \begin{minipage}[t]{.833\textwidth}
+ \filleft
+ \lastrightmark
+ \end{minipage}
+ }
+
+\fancypagestyle { fancy }
+ {
+ \fancyhf { }
+ \if at twoside
+ \fancyfoot[RO]
+ {
+ \textcolor { main-text!30!paper } { \small \l_minimalist_rightmark_tl }
+ \rlap
+ {
+ \nobreakspace \nobreakspace \nobreakspace \nobreakspace
+ \textcolor { main-text!75!paper } { \thepage }
+ }
+ }
+ \fancyfoot[LE]
+ {
+ \leavevmode
+ \llap
+ {
+ \textcolor { main-text!75!paper } { \thepage }
+ \nobreakspace \nobreakspace \nobreakspace \nobreakspace
+ }
+ \textcolor { main-text!30!paper } { \small \l_minimalist_leftmark_tl }
+ }
+ \else
+ \fancyfoot[R]
+ {
+ \textcolor { main-text!30!paper } { \small \l_minimalist_rightmark_tl }
+ \rlap
+ {
+ \nobreakspace \nobreakspace \nobreakspace \nobreakspace
+ \textcolor { main-text!75!paper } { \thepage }
+ }
+ }
+ \fi
+ \renewcommand { \headrulewidth } { 0pt }
+ }
+\pagestyle { fancy }
+
+\fancypagestyle { plain }
+ {
+ \fancyhf { }
+ \if at twoside
+ \fancyfoot[RO]
+ {
+ \nobreakspace
+ \rlap
+ {
+ \nobreakspace \nobreakspace \nobreakspace \nobreakspace
+ \textcolor { main-text!75!paper } { \thepage }
+ }
+ }
+ \fancyfoot[LE]
+ {
+ \leavevmode
+ \llap
+ {
+ \textcolor { main-text!75!paper } { \thepage }
+ \nobreakspace \nobreakspace \nobreakspace \nobreakspace
+ }
+ \nobreakspace
+ }
+ \else
+ \fancyfoot[R]
+ {
+ \nobreakspace
+ \rlap
+ {
+ \nobreakspace \nobreakspace \nobreakspace \nobreakspace
+ \textcolor { main-text!75!paper } { \thepage }
+ }
+ }
+ \fi
+ \renewcommand { \headrulewidth } { 0pt }
+ }
+
+\bool_if:NTF \l__minimalist_is_book_bool
+ {
+ \bool_if:NTF \l__minimalist_fast_bool
+ {
+ \newcommand{ \minimalist_draw_help_line: }{}
+ }
+ {
+ \newcommand{ \minimalist_draw_help_line: }
+ {
+ \begin{tikzpicture}[remember~picture,overlay]
+ \foreach\i in {0,1,...,5}{
+ \fill[opacity=0.12-0.02*\i]
+ ($(current~page~text~area.north~east)+(-\i*0.5em-.025em,-10pt+\i*1.1pt)$)
+ rectangle ($(current~page~text~area.south~east)+(-\i*0.5em+.025em,10pt-\i*1.1pt)$);
+ \shade[top~color=paper,bottom~color=main-text,opacity=0.12-0.02*\i]
+ ($(current~page~text~area.north~east)+(-\i*0.5em-.025em,2pt)$)
+ rectangle ($(current~page~text~area.north~east)+(-\i*0.5em+.025em,-10pt+\i*1.1pt)$);
+ \shade[top~color=main-text,bottom~color=paper,opacity=0.12-0.02*\i]
+ ($(current~page~text~area.south~east)+(-\i*0.5em-.025em,-2pt)$)
+ rectangle ($(current~page~text~area.south~east)+(-\i*0.5em+.025em,10pt-\i*1.1pt)$);
+ }
+ \end{tikzpicture}
+ }
+ }
+ \fancypagestyle { part }
+ {
+ \fancyhf { }
+ \renewcommand { \headrulewidth } { 0pt }
+ \fancyhead[C] { \minimalist_draw_help_line: }
+ }
+ \addtolength { \headheight } { 20pt }
+ \addtolength { \topmargin } { -20pt }
+ \if at twoside
+ \renewcommand{\chaptermark}[1]{\markboth{\textsc{#1}}{}}
+ \else
+ \renewcommand{\chaptermark}[1]{\markboth{\textsc{#1}}{\textsc{#1}}}
+ \fi
+ \renewcommand*{\sectionmark}[1]{
+ \markright{\protect\g_minimalist_section_decoration_char_tl\nobreakspace\thesection\nobreakspace\protect\g_minimalist_section_decoration_char_tl\nobreakspace\nobreakspace\nobreakspace#1}}
+ }
+ {
+ \if at twoside
+ \renewcommand*{\sectionmark}[1]{\markboth{\textsc{#1}}{}}
+ \else
+ \renewcommand*{\sectionmark}[1]{\markboth{\textsc{#1}}{\textsc{#1}}}
+ \fi
+ }
+
+\renewcommand*{\thefootnote}{\textcolor{main-text!45!paper}{\arabic{footnote}}}
+
+\bool_if:NT \l__minimalist_is_book_bool
+ {
+ \hook_gput_code:nnn { cmd/frontmatter/before } { minimalist }
+ {
+ \renewcommand*{\thefootnote}{\textcolor{main-text!45!paper}{\fnsymbol{footnote}}}
+ }
+ \hook_gput_code:nnn { cmd/mainmatter/before } { minimalist }
+ {
+ \setcounter{footnote}{0}
+ \renewcommand*{\thefootnote}{\textcolor{main-text!45!paper}{\arabic{footnote}}}
+ }
+ }
+
+%%================================
+%% Title format
+%%================================
+\RequirePackage [ explicit, newparttoc ] { titlesec }
+% \renewcommand{\bottomtitlespace}{.1\textheight}
+% \RequirePackage { needspace }
+\PassOptionsToPackage { normalem } { ulem }
+\RequirePackage { ulem }
+
+\cs_new:Nn \minimalist_title_numbering_apply_font:n { { \usefont{U}{zeur}{b}{n} #1 } }
+
+\cs_new_protected:Nn \minimalist_apply_title_numbering_style_static:n
+ {
+ \tl_set:Nx \l_tmpa_tl { #1 }
+ \regex_replace_all:nnN { (\w) } { \c{minimalist_original_bfseries:}{\1} } \l_tmpa_tl
+ % \regex_replace_all:nnN { (\d) } { {\c{usefont}{U}{zeur}{b}{n}\1} } \l_tmpa_tl
+ \regex_replace_all:nnN { (\d) } { {\c{minimalist_title_numbering_apply_font:n}{\1}} } \l_tmpa_tl
+ \textcolor { main-text!39!paper } { \normalfont \l_tmpa_tl }
+ }
+
+\cs_new_protected:Nn \minimalist_apply_title_numbering_style:n
+ {
+ \group_begin:
+ \tl_set:Nx \l_tmpa_tl { #1 }
+ \regex_replace_all:nnN { (\w) } { \c{minimalist_original_bfseries:}{\1} } \l_tmpa_tl
+ % \regex_replace_all:nnN { (\d) } { {\c{usefont}{U}{zeur}{b}{n}\1} } \l_tmpa_tl
+ \regex_replace_all:nnN { (\d) } { {\c{minimalist_title_numbering_apply_font:n}{\1}} } \l_tmpa_tl
+ \exp_args:Nnx \regex_count:nnN { \. } {#1} \l_tmpa_int
+ \int_case:nn { \l_tmpa_int }
+ {
+ { 0 } { \textcolor { main-text!39!paper } }
+ { 1 } { \textcolor { main-text!39!paper } }
+ { 2 } { \textcolor { main-text!39!paper } }
+ { 3 } { \smaller[2] \textcolor { main-text!24!paper } }
+ }
+ \l_tmpa_tl
+ \group_end:
+ }
+
+\newcommand{\partstring}{\MakeUppercase{{\partname\nobreakspace\protect\thepart}}}
+
+\AddLanguageSetting
+ {
+ \renewcommand{\partstring}{\MakeUppercase{{\partname\nobreakspace\protect\thepart}}}
+ }
+\AddLanguageSetting [ schinese ]
+ {
+ \renewcommand{\partstring}{第 \zhnumber{\arabic{part}} 部分}
+ }
+\AddLanguageSetting [ tchinese ]
+ {
+ \renewcommand{\partstring}{第 \zhnumber{\arabic{part}} 部分}
+ }
+\AddLanguageSetting [ japanese ]
+ {
+ \renewcommand{\partstring}{第 \nobreakspace\thepart\nobreakspace 部}
+ }
+
+
+\dim_new:N \l_minimalist_title_sep_dim
+\dim_set:Nn \l_minimalist_title_sep_dim { 1em }
+
+\bool_if:NTF \l__minimalist_is_book_bool
+ {
+ \setcounter{secnumdepth}{4}
+
+ %% Part
+ \titleclass{\part}{top} % make part like a chapter
+ \titleformat{\part}[display]
+ {\thispagestyle{part}
+ \LocallyStopLineNumbers
+ \g_minimalist_title_font_part_tl\filleft}
+ {\partstring}
+ {1em}
+ {\fontsize{20}{24}\selectfont\MakeUppercase{#1}}
+ [\ResumeLineNumbers]
+ \titleformat{name=\part,numberless}[display]
+ {\thispagestyle{part}
+ \LocallyStopLineNumbers
+ % \phantomsection\addcontentsline{toc}{part}{#1}
+ \g_minimalist_title_font_part_tl\filleft}
+ {\phantom{\MakeUppercase{\partname}}}
+ {1em}
+ {\fontsize{20}{24}\selectfont\MakeUppercase{#1}}
+ [\ResumeLineNumbers]
+ \titlespacing*{\part}{0pt}{5em}{6em}
+ %% Text after part
+ \newcommand{\parttext}[1]{
+ \vfill
+ \LocallyStopLineNumbers
+ \begin{flushright}
+ \begin{minipage}{0.833\textwidth}
+ \color{main-text!80!paper}\raggedleft#1
+ \end{minipage}
+ \end{flushright}
+ \ResumeLineNumbers
+ \vfill\vfill
+ \cleardoublepage
+ }
+
+ %% Chapter
+ \titleformat{\chapter}
+ {\thispagestyle{fancy}
+ \LocallyStopLineNumbers
+ \color{main-text!90!paper}
+ \g_minimalist_title_font_chapter_tl\fontsize{16}{0}\selectfont}{}{0em}
+ {
+ \llap{
+ {
+ \color{main-text!24!paper}
+ \fontsize{40}{0}\selectfont
+ \raisebox{-5pt}{ \minimalist_title_numbering_apply_font:n { \thechapter } }
+ }
+ \skip_horizontal:n { .75 \l_minimalist_title_sep_dim }
+ }
+ #1
+ }
+ [\ResumeLineNumbers]
+ \titleformat{name=\chapter,numberless}
+ {\thispagestyle{fancy}
+ \LocallyStopLineNumbers
+ % \phantomsection\addcontentsline{toc}{chapter}{#1}
+ \color{main-text!90!paper}
+ \g_minimalist_title_font_chapter_tl\fontsize{16}{0}\selectfont}{}{0em}
+ {
+ #1
+ }
+ [\ResumeLineNumbers]
+ }
+ {
+ %% Part
+ \titleformat{\part}[display]
+ {\LocallyStopLineNumbers
+ \g_minimalist_title_font_part_tl\filleft}
+ {\partstring}
+ {.3em}
+ {\fontsize{16}{0}\selectfont\MakeUppercase{#1}}
+ [\ResumeLineNumbers]
+ \titleformat{name=\part,numberless}[display]
+ {\LocallyStopLineNumbers
+ % \phantomsection\addcontentsline{toc}{part}{#1}
+ \g_minimalist_title_font_part_tl\filleft}
+ {\phantom{\MakeUppercase{\partname}}}
+ {.3em}
+ {\fontsize{16}{0}\selectfont\MakeUppercase{#1}}
+ [\ResumeLineNumbers]
+ %% Text after part
+ \newcommand{\parttext}[1]{
+ \LocallyStopLineNumbers
+ \begin{flushright}
+ \begin{minipage}{0.833\textwidth}
+ \color{main-text!80!paper}\raggedleft#1
+ \end{minipage}
+ \end{flushright}
+ \ResumeLineNumbers
+ }
+ }
+
+%% Section
+\tl_gset:Nn \g_minimalist_section_decoration_char_tl {}
+\titleformat{\section}
+ {\LocallyStopLineNumbers
+ % \needspace{2\baselineskip}
+ \larger \g_minimalist_title_font_section_tl}
+ {
+ \llap{
+ {\minimalist_apply_title_numbering_style:n { \thesection }}
+ \skip_horizontal:n { \l_minimalist_title_sep_dim }
+ }
+ }
+ {0pt}
+ {#1}
+ [\ResumeLineNumbers]
+
+\titleformat{name=\section,numberless}
+ {\LocallyStopLineNumbers
+ % \needspace{2\baselineskip}
+ \larger \g_minimalist_title_font_section_tl}
+ {}
+ {0pt}
+ {#1}
+ [\ResumeLineNumbers]
+
+%% Subsection
+\titleformat{\subsection}[runin]
+ {\g_minimalist_title_font_subsection_tl}
+ {
+ \llap{
+ \minimalist_apply_title_numbering_style:n { \thesubsection }
+ \skip_horizontal:n { \l_minimalist_title_sep_dim }
+ }
+ \tl_if_blank:nT { #1 }
+ {
+ \hspace* { \parindent }
+ }
+ }
+ {0pt}
+ {
+ \tl_if_blank:nF { #1 }
+ {
+ #1. \hspace* { .75em }
+ }
+ }
+
+%% Subsubsection
+\titleformat{\subsubsection}[runin]
+ {\g_minimalist_title_font_subsubsection_tl}
+ {
+ \llap{
+ { \minimalist_apply_title_numbering_style:n { \thesubsubsection } }
+ \skip_horizontal:n { \l_minimalist_title_sep_dim }
+ }
+ \tl_if_blank:nT { #1 }
+ {
+ \hspace* { \parindent }
+ }
+ }
+ {0pt}
+ {
+ \tl_if_blank:nF { #1 }
+ {
+ #1. \hspace* { .5em }
+ }
+ }
+
+%% Paragraph
+\titleformat{\paragraph}[runin]
+ { \g_minimalist_title_font_paragraph_tl }{\theparagraph}{1em}{#1}
+
+\titlespacing{\section}{0pt}{1\baselineskip plus .5\baselineskip minus .2\baselineskip}{.6\baselineskip plus .3\baselineskip minus .2\baselineskip}
+\titlespacing{\subsection}{0pt}{.6\baselineskip plus .2\baselineskip minus .1\baselineskip}{0pt}
+\titlespacing{\subsubsection}{0pt}{.5\baselineskip plus .1\baselineskip minus .1\baselineskip}{0pt}
+
+\hook_gput_code:nnn { package/bookmark/after } { minimalist }
+ {
+ \tl_gset:NV \toclevel at sectionsub \toclevel at subsection
+ }
+
+%% \sectionsub
+\titleclass{\sectionsub}{straight}[\section]
+\newcounter{sectionsub}
+\renewcommand{\thesectionsub}{\Alph{sectionsub}}
+
+\titleformat{\sectionsub}
+ {\LocallyStopLineNumbers
+ % \needspace{2\baselineskip}
+ \relscale{1.08} \g_minimalist_title_font_section_tl}
+ {
+ \llap{
+ {\minimalist_apply_title_numbering_style:n { \thesectionsub }}
+ \skip_horizontal:n { \l_minimalist_title_sep_dim }
+ }
+ }
+ {0pt}
+ {#1}
+ [\ResumeLineNumbers]
+
+\titleformat{name=\sectionsub,numberless}
+ {\LocallyStopLineNumbers
+ \phantomsection\addcontentsline{toc}{sectionsub}{#1}
+ % \needspace{2\baselineskip}
+ \relscale{1.08} \g_minimalist_title_font_section_tl}
+ {}
+ {0pt}
+ {#1}
+ [\ResumeLineNumbers]
+
+\titlespacing{\sectionsub}{0pt}{.8\baselineskip plus .4\baselineskip minus .2\baselineskip}{.6\baselineskip plus .2\baselineskip minus .1\baselineskip}
+
+%%================================
+%% ToC format
+%%================================
+\RequirePackage { titletoc }
+\titlecontents{part}
+ [0em]
+ {\addvspace{1.5pc}\filcenter\normalfont}
+ { \minimalist_apply_title_numbering_style_static:n { \thecontentslabel } \nopagebreak\\\nopagebreak\uppercase}
+ {}
+ {} % without page number
+ [\addvspace{.5pc}]
+
+\bool_if:NTF \l__minimalist_is_book_bool
+ {
+ \titlecontents{chapter}
+ [2em] % i.e., 0em (part) + 2em
+ {\addvspace{.5pc}\normalfont}
+ {\contentslabel[ \minimalist_apply_title_numbering_style_static:n { \thecontentslabel } ]{2em}}
+ {\hspace*{-2em}}
+ {\titlerule*[1em]{\textcolor{main-text!15!paper}{.}}\contentspage}
+ \titlecontents{section}
+ [5em] % i.e., 2em (chapter) + 3em
+ {\normalfont}
+ {\contentslabel[ \minimalist_apply_title_numbering_style_static:n { \thecontentslabel } ]{2.5em}}
+ {\hspace*{-2.5em}}
+ {\titlerule*[1em]{\textcolor{main-text!15!paper}{.}}\contentspage}
+ \titlecontents{sectionsub}
+ [9em] % i.e., 5em (section) + 4em
+ {\normalfont}
+ {\contentslabel[ \minimalist_apply_title_numbering_style_static:n { \thecontentslabel } ]{3.5em}}
+ {\hspace*{-3.5em}}
+ {\titlerule*[1em]{\textcolor{main-text!15!paper}{.}}\contentspage}
+ \titlecontents{subsection}
+ [9em] % i.e., 5em (section) + 4em
+ {\normalfont}
+ {\contentslabel[ \minimalist_apply_title_numbering_style_static:n { \thecontentslabel } ]{3.5em}}
+ {\hspace*{-3.5em}}
+ {\titlerule*[1em]{\textcolor{main-text!15!paper}{.}}\contentspage}
+ \titlecontents{subsubsection}
+ [13.5em] % i.e., 9em (subsection) + 4.5em
+ {\normalfont}
+ {\contentslabel[ \minimalist_apply_title_numbering_style_static:n { \thecontentslabel } ]{4.0em}}
+ {\hspace*{-4.0em}}
+ {\titlerule*[1em]{\textcolor{main-text!15!paper}{.}}\contentspage}
+ }
+ {
+ \titlecontents{section}
+ [2em] % i.e., 0em (part) + 2em
+ {\normalfont}
+ {\contentslabel[ \minimalist_apply_title_numbering_style_static:n { \thecontentslabel } ]{1.5em}}
+ {\hspace*{-1.5em}}
+ {\titlerule*[1em]{\textcolor{main-text!15!paper}{.}}\contentspage}
+ \titlecontents{subsection}
+ [5em] % i.e., 2em (section) + 3em
+ {\normalfont}
+ {\contentslabel[ \minimalist_apply_title_numbering_style_static:n { \thecontentslabel } ]{2.5em}}
+ {\hspace*{-2.5em}}
+ {\titlerule*[1em]{\textcolor{main-text!15!paper}{.}}\contentspage}
+ \titlecontents{subsubsection}
+ [9em] % i.e., 5em (subsection) + 4em
+ {\normalfont}
+ {\contentslabel[ \minimalist_apply_title_numbering_style_static:n { \thecontentslabel } ]{3.5em}}
+ {\hspace*{-3.5em}}
+ {\titlerule*[1em]{\textcolor{main-text!15!paper}{.}}\contentspage}
+ }
+
+%%================================
+%% Lists
+%%================================
+\RequirePackage { enumitem }
+\setlistdepth{10}
+\setlist{noitemsep, topsep=.33\topsep-.5\parskip}
+\setlist[enumerate]{labelsep=*, leftmargin=*}
+\setlist[enumerate,1]{label = \normalfont\arabic*$\mskip-.5mu\big)$,
+ ref = \normalfont\color{.!45!paper}\arabic*$\mskip-.5mu\big)$}
+\setlist[enumerate,2]{label = \normalfont\emph{\roman*}$\mskip-.5mu\big)$,
+ ref = \normalfont\color{.!45!paper}\arabic{enumi}.\emph{\roman*}$\mskip-.5mu\big)$}
+\setlist[enumerate,3]{label = \normalfont\emph{\alph*}$\mskip-.5mu\big)$,
+ ref = \normalfont\color{.!45!paper}\arabic{enumi}.\emph{\roman{enumii}}.\emph{\alph*}$\mskip-.5mu\big)$}
+\setlist[description]{font=\normalfont\minimalist_bfseries:}
+
+\renewlist{itemize}{itemize}{10}
+\setlist[itemize]{leftmargin=*,label=\textcolor{.!27!paper}{$\cdot$}}
+\AddLanguageSetting { \setlist[itemize,1]{label=\textcolor{.!27!paper}{$\bullet$},leftmargin=\maxof{\parindent}{1.5em}} }
+\AddLanguageSetting [french] { \setlist[itemize,1]{label=\textcolor{.!39!paper}{\rule[.2\baselineskip]{.8em}{.75pt}},leftmargin=\maxof{\parindent}{1.5em}} }
+\setlist[itemize,2]{label=\textcolor{.!27!paper}{\rule[.2\baselineskip]{.55em}{.75pt}}}
+\setlist[itemize,3]{label=\textcolor{.!27!paper}{$\circ$}}
+\setlist[itemize,4]{label=\textcolor{.!27!paper}{$\ast$}}
+
+%%================================
+%% Blank page
+%%================================
+\projlib_langauge_define_multilingual_text:Nn \bl at nkpagetext
+ {
+ , EN = This~page~is~intentionally~left~blank
+ , FR = Cette~page~est~intentionnellement~laissée~vide
+ , DE = Diese~Seite~wurde~absichtlich~leer~gelassen
+ , IT = Questa~pagina~è~stata~lasciata~vuota~intenzionalmente
+ , PT = Esta~página~foi~intencionalmente~deixada~em~branco
+ , BR = Esta~página~foi~intencionalmente~deixada~em~branco
+ , ES = Esta~página~se~ha~dejado~intencionadamente~en~blanco
+ , CN = \ziju{0.2} 此页为有意留为空白
+ , TC = \ziju{0.2} 此頁為有意留為空白
+ , JP = このページは意図的に空白にしてあります
+ , RU = Эта~страница~намеренно~оставлена~пустой
+ }
+\renewcommand{\cleardoublepage}{
+ \relax
+ \clearpage
+ \if at twoside\ifodd\c at page\relax\else
+ \thispagestyle{empty}
+ \hook_gput_next_code:nn { shipout/background }
+ {
+ \put(0.5\paperwidth,-0.5\paperheight){
+ \makebox[0pt]{\large\color{main-text!10!paper}\g_minimalist_title_font_common_tl\bl at nkpagetext}}
+ }
+ \null\newpage\fi\fi
+}
+
+%%================================
+%% Index
+%%================================
+\RequirePackage { imakeidx }
+\makeindex[intoc]
+
+\RequirePackage { silence }
+\ExplSyntaxOff
+\WarningFilter{latex}{Writing or overwriting file}
+\begin{filecontents*}[overwrite]{\jobname.mst}
+delim_0 "\\IndexDotfill " % Filler between section heading and page number
+delim_1 "\\IndexDotfill " % Filler between subsection heading and page number
+headings_flag 1
+heading_prefix "\\IndexHeading{"
+heading_suffix "}\n"
+\end{filecontents*}
+\ExplSyntaxOn
+
+\projlib_langauge_define_multilingual_text:Nn \index_symbols_name
+ {
+ , EN = Symbols
+ , FR = Symboles
+ , DE = Symbole
+ , IT = Simboli
+ , PT = Símbolos
+ , BR = Símbolos
+ , ES = Símbolos
+ , CN = 符号
+ , TC = 符號
+ , JP = 記号
+ , RU = Символы
+ }
+
+\newcommand*{\IndexDotfill}
+ {
+ \null\nobreak
+ \leaders \hbox to .67em {\hss \textcolor{main-text!15!paper}{.} \hss} \hskip1em plus1fill
+ }
+\newcommand*{\IndexLinebreak}
+ {
+ \nobreakspace\textcolor{main-text!45!paper}{\raisebox{.4ex}{.}\raisebox{.2ex}{.}}
+ \item\hspace*{\hangindent}
+ \textcolor{main-text!45!paper}{\raisebox{.45ex}{.}\raisebox{.25ex}{.}}\:
+ \unskip
+ }
+
+\newcommand*{\IndexHeading}[1]
+ {
+ \str_if_eq:nnTF { #1 } { Symbols }
+ { \tl_set:Nn \l_tmpa_tl { \index_symbols_name } }
+ { \tl_set:Nn \l_tmpa_tl { #1 } }
+ \centerline{ \g_minimalist_title_font_common_tl \minimalist_apply_title_numbering_style_static:n { \l_tmpa_tl } }
+ \nopagebreak
+ \par
+ \vspace{.3\baselineskip}
+ }
+
+\renewcommand*{\indexspace}
+ {
+ \par
+ \vspace{2pc plus .5pc minus .3pc}
+ }
+
+\bool_new:N \l__minimalist_if_first_subitem_bool
+\renewcommand*{\@idxitem}
+ {
+ \par\hangindent40\p@
+ \bool_set_true:N \l__minimalist_if_first_subitem_bool
+ }
+\renewcommand*{\subitem}
+ {
+ \par\hangindent40\p@
+ \bool_if:NT \l__minimalist_if_first_subitem_bool
+ {
+ \nobreak
+ \bool_set_false:N \l__minimalist_if_first_subitem_bool
+ }
+ \hspace*{20\p@}
+ }
+
+\hook_gput_code:nnn { begindocument/before } { minimalist }
+ {
+ \bool_if:NF \l__minimalist_fast_bool
+ {
+ \hook_gput_code:nnn { cmd/printindex/before } { minimalist } { \bookmarksetup{startatroot} }
+ }
+ \hook_gput_code:nnn { cmd/printindex/before } { minimalist } { \LocallyStopLineNumbers }
+ \hook_gput_code:nnn { cmd/printindex/after } { minimalist } { \ResumeLineNumbers }
+ }
+
+%%================================
+%% Draft mark
+%%================================
+\RequirePackage { projlib-draft }
+
+%%================================
+%% Theorems
+%%================================
+\RequirePackage { mathtools }
+\RequirePackage { amsthm }
+
+\def\tagform@#1{\maketag@@@{\textcolor{main-text!39!paper}{(\ignorespaces#1\unskip\@@italiccorr)}}}
+
+\PassOptionsToPackage { nopatch = eqnum } { microtype }
+
+\newtheoremstyle{simple-newline}
+ {-.2\baselineskip plus 2pt minus .1\baselineskip}{.3\baselineskip plus 2pt minus .1\baselineskip}
+ {\normalfont}{}
+ {\normalfont}{}
+ {0pt}
+ {
+ \rlap{\vbox{\hbox{\parbox{\linewidth}{
+ \llap{
+ \phantom{\rule{0pt}{\baselineskip}}
+ \minimalist_apply_title_numbering_style:n { \thmnumber{#2} }
+ \skip_horizontal:n { \l_minimalist_title_sep_dim }
+ }
+ \vspace*{-\baselineskip}
+ {\thmname{#1}}
+ {\color{main-text!50!paper}\thmnote{\hspace{.4em}$($#3$)$}}
+ \phantom{q} % To provide something below the baseline
+ }}\hbox{\strut}\vspace{0pt}}}
+ }
+
+\dim_new:N \l_minimalist_space_before_inline_theorem_dim
+\AtBeginDocument
+ {
+ \dim_set:Nn \l_minimalist_space_before_inline_theorem_dim
+ {
+ \dim_eval:n { .3\baselineskip - .6\parskip }
+ }
+ }
+
+\newtheoremstyle{simple-inline}
+ % {.3\baselineskip plus 2pt minus .1\baselineskip}{.3\baselineskip plus 2pt minus .1\baselineskip}
+ {\l_minimalist_space_before_inline_theorem_dim}{\l_minimalist_space_before_inline_theorem_dim}
+ {\normalfont}{}
+ {\normalfont}{}
+ {0pt}
+ {
+ \llap{
+ \minimalist_apply_title_numbering_style:n { \thmnumber{#2} }
+ \skip_horizontal:n { \l_minimalist_title_sep_dim }
+ }
+ % \minimalist_bfseries:
+ {\thmname{#1}}
+ {\color{main-text!50!paper}\thmnote{\hspace{.4em}$($#3$)$}}
+ . \hspace{.5em}
+ }
+
+\bool_if:NTF \l__minimalist_theorem_in_new_line_bool
+ {
+ \theoremstyle{simple-newline}
+ }
+ {
+ \theoremstyle{simple-inline}
+ }
+
+\newtheoremstyle{proof}
+ {3\p@\@plus3\p@}{.3\baselineskip}
+ {\normalfont}{}
+ {\itshape}{}
+ {0pt}
+ {
+ \llap{
+ \minimalist_apply_title_numbering_style:n { \thmnumber{#2} }
+ \skip_horizontal:n { \l_minimalist_title_sep_dim }
+ }
+ {\thmname{#1}}
+ . \hspace{.5em}
+ }
+
+% \RequirePackage { regexpatch }
+% \xpatchcmd{\proof}{\topsep6\p@\@plus6\p@\relax}{\topsep3\p@\@plus3\p@\relax}{}{}
+
+\newcommand{\customqedsymbol}{
+ \makebox[1em]{\color{.!27!paper}\rule[-0.1em]{.95em}{.95em}}}
+\let\qedsymbol\customqedsymbol
+
+\def\simpleqedsymbol{
+ \makebox[1em]{\rlap{\textcolor{main-text!12!paper}{\rule[-0.1em]{.95em}{.95em}}}{\kern.07em\raisebox{.07em}{\textcolor{paper}{\rule[-0.1em]{.81em}{.81em}}}\kern.07em}}}
+\DeclareRobustCommand{\simpleqed}{%
+ \ifmmode \quad\hbox{\simpleqedsymbol}
+ \else
+ \leavevmode\unskip\penalty9999 \hbox{}\nobreak\hfill
+ \quad\hbox{\simpleqedsymbol}%
+ \fi
+}
+
+\def\@endtheorem{\popQED\endtrivlist\@endpefalse}
+
+\bool_if:NTF \l__minimalist_fast_bool
+ {
+ \RequirePackage { hyperref }
+ \hypersetup { draft }
+ }
+ {
+ \RequirePackage { hyperref }
+ \RequirePackage { bookmark }
+ \hypersetup{ hidelinks, linktoc = all }
+ \bookmarksetup{ numbered }
+ \renewcommand\Hy at numberline[1]{#1.~}
+ % https://tex.stackexchange.com/a/1821
+ % Add the bookmark of ToC
+ \hook_gput_code:nnn { cmd/tableofcontents/before } { minimalist }
+ {
+ \if at openright\cleardoublepage\else\clearpage\fi
+ \pdfbookmark[0]{\contentsname}{toc}
+ }
+ }
+
+\PassOptionsToPackage { theorem-style = { remark = simple-inline, proof = proof } } { projlib-theorem }
+
+\RequirePackage { projlib-theorem }
+
+\SetTheorem { proof, proof* } { qed-symbol = { \customqedsymbol } }
+
+\exp_args:No \SetTheorem { \c_projlib_theorem_supported_clist, theorem-with-name, proof } { shared counter = subsection }
+
+\exp_args:No \SetTheorem { \c_projlib_theorem_supported_clist, theorem-with-name }
+ {
+ name style = {
+ , heading style = {
+ , english = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , french = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , ngerman = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , italian = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , portuguese = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , brazilian = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , spanish = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , schinese = \minimalist_bfseries:\g_minimalist_title_font_common_tl
+ , tchinese = \minimalist_bfseries:\g_minimalist_title_font_common_tl
+ , japanese = \minimalist_bfseries:\g_minimalist_title_font_common_tl
+ , russian = \minimalist_bfseries:\g_minimalist_title_font_common_tl
+ }
+ , numbering style = { \minimalist_apply_title_numbering_style_static:n }
+ }
+ }
+
+\SetTheorem { remark }
+ {
+ name style = {
+ , heading style = {
+ \g_minimalist_title_font_common_tl \textit
+ }
+ , numbering style = { \minimalist_apply_title_numbering_style_static:n }
+ }
+ }
+
+\bool_if:NF \l__projlib_theorem_complexname_bool
+ {
+ \exp_args:No \SetTheorem { \c_projlib_theorem_supported_clist, theorem-with-name }
+ {
+ name style = {
+ , crefname style = {
+ , english = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , french = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , ngerman = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , italian = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , portuguese = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , brazilian = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , spanish = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , schinese = \minimalist_bfseries:\g_minimalist_title_font_common_tl
+ , tchinese = \minimalist_bfseries:\g_minimalist_title_font_common_tl
+ , japanese = \minimalist_bfseries:\g_minimalist_title_font_common_tl
+ , russian = \minimalist_bfseries:\g_minimalist_title_font_common_tl
+ }
+ , Crefname style = {
+ , english = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , french = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , ngerman = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , italian = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , portuguese = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , brazilian = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , spanish = \minimalist_bfseries:\g_minimalist_title_font_common_tl\textsc
+ , schinese = \minimalist_bfseries:\g_minimalist_title_font_common_tl
+ , tchinese = \minimalist_bfseries:\g_minimalist_title_font_common_tl
+ , japanese = \minimalist_bfseries:\g_minimalist_title_font_common_tl
+ , russian = \minimalist_bfseries:\g_minimalist_title_font_common_tl
+ }
+ , numbering style = { \minimalist_apply_title_numbering_style_static:n }
+ }
+ }
+
+ \SetTheorem { remark }
+ {
+ name style = {
+ , crefname style = {
+ \g_minimalist_title_font_common_tl \textit
+ }
+ , Crefname style = {
+ \g_minimalist_title_font_common_tl \textit
+ }
+ , numbering style = { \minimalist_apply_title_numbering_style_static:n }
+ }
+ }
+ }
+
+\PassOptionsToPackage { many } { tcolorbox }
+\RequirePackage { tcolorbox }
+\bool_if:NT \l__minimalist_fast_bool { \tcbstartdraftmode }
+
+
+\NewDocumentEnvironment { emphasis } { }
+ {
+ \LocallyStopLineNumbers
+ \enlargethispage{2mm}
+ \begin{tcolorbox}
+ [
+ enhanced ~ jigsaw, breakable, oversize,
+ % nobeforeafter,
+ left = .5em, right=0mm, top=0.5mm, bottom=0mm, boxrule=0pt,
+ colback=main-text!2!paper, frame ~ hidden,
+ borderline ~ west = {.3em} {0mm} {main-text!25!paper},
+ arc = 0.2mm,
+ ]
+ }
+ {
+ \end{tcolorbox}
+ \ResumeLineNumbers
+ }
+
+\hook_gput_code:nnn { env/quote/begin } { minimalist } { \small }
+
+%%================================
+%% Title block style
+%%================================
+\bool_if:NTF \l__minimalist_is_book_bool
+ {
+ \hook_gput_code:nnn { package/projlib-author/after } { minimalist }
+ {
+ \tl_gset:Nn \g__projlib_author_font_author_tl { \normalfont \minimalist_scshape: }
+ \tl_gset:Nn \g__projlib_author_font_institute_tl { \large \normalfont }
+ \tl_gset:Nn \g__projlib_author_font_address_tl { \large \normalfont \itshape }
+ \tl_gset:Nn \g__projlib_author_font_curraddr_tl { \large \normalfont \itshape }
+ \tl_gset:Nn \g__projlib_author_font_email_tl { \large \normalfont \ttfamily }
+ }
+
+ \RequirePackage { projlib-titlepage }
+ \renewcommand{\maketitle}{
+ \LocallyStopLineNumbers
+ \ProjLibTitlePage [ style = simple ]
+ {
+ , title = \@title
+ , author = \@author
+ , date = \@date
+ }
+ \ResumeLineNumbers
+ }
+ }
+ {
+ \renewcommand{\@maketitle}
+ {
+ \LocallyStopLineNumbers
+ \begin{center}
+ \let\footnote\thanks
+ {\minimalist_bfseries:\sffamily\minimalist_scshape:\Large\@title}\\\bigskip
+ \color{main-text!80!paper}
+ {\small\minimalist_scshape:\@author}
+ \par\smallskip\vspace{-\parskip}
+ {\small\@date}
+ \end{center}
+ \projlib_author_if_content_empty:nT { \@date } { \medskip }
+ \medskip\par
+ \ResumeLineNumbers
+ }
+
+ \hook_gput_code:nnn { cmd/maketitle/after } { minimalist } { \thispagestyle{fancy} }
+
+%%================================
+%% Abstract style
+%%================================
+ \renewenvironment{abstract}
+ {
+ \LocallyStopLineNumbers
+ \vspace{-.5\baselineskip}
+ \begin{center}
+ { \g_minimalist_title_font_section_tl \minimalist_scshape: \small\abstractname}\\
+ \vspace{-.3\baselineskip}
+ \begin{minipage}[t]{.833\textwidth}
+ \vspace{0pt}
+ \color{main-text!80!paper}
+ \footnotesize
+ \parindent=2em
+ }
+ {
+ \end{minipage}
+ \end{center}
+ \medskip
+ \ResumeLineNumbers
+ }
+
+%%================================
+%% Keyword environment
+%%================================
+ \DefineMultilingualText { \keywordname }
+ {
+ EN = Keywords ,
+ FR = Mots~clés ,
+ DE = Schlüsselwörter ,
+ IT = Parole~chiave ,
+ PT = Palavras~chave ,
+ BR = Palavras~chave ,
+ ES = Palabras~clave ,
+ CN = 关键词 ,
+ TC = 關鍵詞 ,
+ JP = キーワード ,
+ RU = Ключевые~слова ,
+ }
+
+ \newenvironment{keyword}{
+ \LocallyStopLineNumbers
+ \vspace{-.75\baselineskip}
+ \begin{center}
+ {\minimalist_bfseries:\minimalist_scshape:\small\keywordname}\\
+ \vspace{-.3\baselineskip}
+ \begin{minipage}[t]{.833\textwidth}
+ \vspace{0pt}
+ \color{main-text!80!paper}
+ \footnotesize
+ \parindent=2em
+ \begin{center}
+ }{
+ \end{center}
+ \end{minipage}
+ \end{center}
+ \medskip
+ \ResumeLineNumbers
+ }
+ } % end of \bool_if:NTF \l__minimalist_is_book_bool
+
+%%================================
+%% Simulate features of amsart
+%%================================
+\PassOptionsToPackage { amsfashion } { projlib-author }
+\RequirePackage { projlib-author }
+
+%%================================
+%% Special adjustment
+%%================================
+\setcounter{tocdepth}{1}
+
+\crefformat { chapter } { \nobreak \crefthemark { \crefthe_retrieve_space: } \nobreak #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
+\labelcrefformat { chapter } { #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
+\crefformat { section } { \nobreak \crefthemark { \crefthe_retrieve_space: } \nobreak #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
+\labelcrefformat { section } { #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
+\crefformat { subsection } { \nobreak \crefthemark { \crefthe_retrieve_space: } \nobreak #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
+\labelcrefformat { subsection } { #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
+\crefformat { subsubsection } { \nobreak \crefthemark { \crefthe_retrieve_space: } \nobreak #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
+\labelcrefformat { subsubsection } { #2 \minimalist_apply_title_numbering_style_static:n {#1} #3 }
+
+\endinput
+%%
+%% End of file `minimalist/minimalist-stream.sty'.
Property changes on: trunk/Master/texmf-dist/tex/latex/minimalist/minimalist-stream.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/tex/latex/minimalist/minimalist.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/minimalist/minimalist.sty 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/tex/latex/minimalist/minimalist.sty 2023-01-02 21:23:26 UTC (rev 65436)
@@ -18,7 +18,7 @@
\NeedsTeXFormat{LaTeX2e}[2022-06-01]
\ProvidesExplPackage
{minimalist}
- {2022/09/03} {}
+ {2023/01/02} {}
{A simple and clear style for articles and books}
\keys_define:nn { minimalist }
@@ -88,7 +88,8 @@
%% Line numbers
%%================================
\PassOptionsToPackage { pagewise,mathlines } { lineno }
-\RequirePackage { linenoamsmath }
+\RequirePackage { amsmath }
+\RequirePackage { lineno }
\renewcommand{\linenumberfont}{\ttfamily\color{main-text!7!paper}\footnotesize}
\setlength{\linenumbersep}{1em}
Modified: trunk/Master/texmf-dist/tex/latex/minimalist/minimart.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/minimalist/minimart.cls 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/tex/latex/minimalist/minimart.cls 2023-01-02 21:23:26 UTC (rev 65436)
@@ -18,7 +18,7 @@
\NeedsTeXFormat{LaTeX2e}[2022-06-01]
\ProvidesExplClass
{minimart}
- {2022/09/03} {}
+ {2023/01/02} {}
{A simple and clear article style}
\tl_const:Nn \l__minimclass_base_class_tl { article }
@@ -34,6 +34,15 @@
, draft .initial:n = { false }
, fast .bool_set:N = \l__minimclass_fast_bool
+ , print .bool_set:N = \l__minimclass_print_mode_bool
+ , print .initial:n = { false }
+ , print mode .bool_set:N = \l__minimclass_print_mode_bool
+ , print~mode .bool_set:N = \l__minimclass_print_mode_bool
+ , print-mode .bool_set:N = \l__minimclass_print_mode_bool
+ , print version .bool_set:N = \l__minimclass_print_mode_bool
+ , print~version .bool_set:N = \l__minimclass_print_mode_bool
+ , print-version .bool_set:N = \l__minimclass_print_mode_bool
+
, classical .bool_set:N = \l__minimclass_classical_bool
, classical .initial:n = { false }
@@ -47,15 +56,9 @@
\str_set:Nn \l__minimclass_custom_font_file_str { #1 }
}
, load custom font file .default:n = { minimalist.font }
- , load~custom~font~file .code:n = {
- \bool_set_true:N \l__minimclass_load_custom_font_file_bool
- \str_set:Nn \l__minimclass_custom_font_file_str { #1 }
- }
+ , load~custom~font~file .meta:n = { load custom font file = { #1 } }
, load~custom~font~file .default:n = { minimalist.font }
- , load-custom-font-file .code:n = {
- \bool_set_true:N \l__minimclass_load_custom_font_file_bool
- \str_set:Nn \l__minimclass_custom_font_file_str { #1 }
- }
+ , load-custom-font-file .meta:n = { load custom font file = { #1 } }
, load-custom-font-file .default:n = { minimalist.font }
@@ -80,6 +83,19 @@
\bool_set_false:N \l__minimclass_useindent_bool
}
+\NewDocumentCommand \IfPrintModeTF { m m }
+ {
+ \bool_if:NTF \l__minimclass_print_mode_bool { #1 } { #2 }
+ }
+\NewDocumentCommand \IfPrintModeT { m }
+ {
+ \bool_if:NT \l__minimclass_print_mode_bool { #1 }
+ }
+\NewDocumentCommand \IfPrintModeF { m }
+ {
+ \bool_if:NF \l__minimclass_print_mode_bool { #1 }
+ }
+
%%================================
%% Page layout
%%================================
@@ -186,6 +202,7 @@
{
\setsansfont { texgyreheros }
[
+ Extension = .otf ,
Scale = MatchUppercase ,
UprightFont = *-regular ,
BoldFont = *-bold ,
Modified: trunk/Master/texmf-dist/tex/latex/minimalist/minimbook.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/minimalist/minimbook.cls 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/tex/latex/minimalist/minimbook.cls 2023-01-02 21:23:26 UTC (rev 65436)
@@ -18,7 +18,7 @@
\NeedsTeXFormat{LaTeX2e}[2022-06-01]
\ProvidesExplClass
{minimbook}
- {2022/09/03} {}
+ {2023/01/02} {}
{A simple and clear book style}
\tl_const:Nn \l__minimclass_base_class_tl { book }
@@ -34,6 +34,15 @@
, draft .initial:n = { false }
, fast .bool_set:N = \l__minimclass_fast_bool
+ , print .bool_set:N = \l__minimclass_print_mode_bool
+ , print .initial:n = { false }
+ , print mode .bool_set:N = \l__minimclass_print_mode_bool
+ , print~mode .bool_set:N = \l__minimclass_print_mode_bool
+ , print-mode .bool_set:N = \l__minimclass_print_mode_bool
+ , print version .bool_set:N = \l__minimclass_print_mode_bool
+ , print~version .bool_set:N = \l__minimclass_print_mode_bool
+ , print-version .bool_set:N = \l__minimclass_print_mode_bool
+
, classical .bool_set:N = \l__minimclass_classical_bool
, classical .initial:n = { false }
@@ -47,15 +56,9 @@
\str_set:Nn \l__minimclass_custom_font_file_str { #1 }
}
, load custom font file .default:n = { minimalist.font }
- , load~custom~font~file .code:n = {
- \bool_set_true:N \l__minimclass_load_custom_font_file_bool
- \str_set:Nn \l__minimclass_custom_font_file_str { #1 }
- }
+ , load~custom~font~file .meta:n = { load custom font file = { #1 } }
, load~custom~font~file .default:n = { minimalist.font }
- , load-custom-font-file .code:n = {
- \bool_set_true:N \l__minimclass_load_custom_font_file_bool
- \str_set:Nn \l__minimclass_custom_font_file_str { #1 }
- }
+ , load-custom-font-file .meta:n = { load custom font file = { #1 } }
, load-custom-font-file .default:n = { minimalist.font }
@@ -80,6 +83,19 @@
\bool_set_false:N \l__minimclass_useindent_bool
}
+\NewDocumentCommand \IfPrintModeTF { m m }
+ {
+ \bool_if:NTF \l__minimclass_print_mode_bool { #1 } { #2 }
+ }
+\NewDocumentCommand \IfPrintModeT { m }
+ {
+ \bool_if:NT \l__minimclass_print_mode_bool { #1 }
+ }
+\NewDocumentCommand \IfPrintModeF { m }
+ {
+ \bool_if:NF \l__minimclass_print_mode_bool { #1 }
+ }
+
%%================================
%% Page layout
%%================================
@@ -186,6 +202,7 @@
{
\setsansfont { texgyreheros }
[
+ Extension = .otf ,
Scale = MatchUppercase ,
UprightFont = *-regular ,
BoldFont = *-bold ,
Modified: trunk/Master/texmf-dist/tex/latex/projlib/ProjLib.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/projlib/ProjLib.sty 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/tex/latex/projlib/ProjLib.sty 2023-01-02 21:23:26 UTC (rev 65436)
@@ -18,7 +18,7 @@
\NeedsTeXFormat{LaTeX2e}[2022-06-01]
\ProvidesExplPackage
{ProjLib}
- {2022/11/15} {}
+ {2023/01/01} {}
{Collective interface of the ProjLib toolkit}
\keys_define:nn { ProjLib }
Modified: trunk/Master/texmf-dist/tex/latex/projlib/projlib-author.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/projlib/projlib-author.sty 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/tex/latex/projlib/projlib-author.sty 2023-01-02 21:23:26 UTC (rev 65436)
@@ -18,7 +18,7 @@
\NeedsTeXFormat{LaTeX2e}[2022-06-01]
\ProvidesExplPackage
{projlib-author}
- {2022/11/15} {}
+ {2023/01/01} {}
{Enhanced author information block}
\keys_define:nn { projlib-author }
Modified: trunk/Master/texmf-dist/tex/latex/projlib/projlib-datetime.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/projlib/projlib-datetime.sty 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/tex/latex/projlib/projlib-datetime.sty 2023-01-02 21:23:26 UTC (rev 65436)
@@ -18,7 +18,7 @@
\NeedsTeXFormat{LaTeX2e}[2022-06-01]
\ProvidesExplPackage
{projlib-datetime}
- {2022/11/15} {}
+ {2023/01/01} {}
{Convert numeric date-time string to natural language}
\tl_new:N \g__projlib_datetime_input_format_tl
Modified: trunk/Master/texmf-dist/tex/latex/projlib/projlib-draft.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/projlib/projlib-draft.sty 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/tex/latex/projlib/projlib-draft.sty 2023-01-02 21:23:26 UTC (rev 65436)
@@ -18,7 +18,7 @@
\NeedsTeXFormat{LaTeX2e}[2022-06-01]
\ProvidesExplPackage
{projlib-draft}
- {2022/11/15} {}
+ {2023/01/01} {}
{Useful commands during draft stage}
\keys_define:nn { projlib-draft }
Modified: trunk/Master/texmf-dist/tex/latex/projlib/projlib-font.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/projlib/projlib-font.sty 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/tex/latex/projlib/projlib-font.sty 2023-01-02 21:23:26 UTC (rev 65436)
@@ -18,7 +18,7 @@
\NeedsTeXFormat{LaTeX2e}[2022-06-01]
\ProvidesExplPackage
{projlib-font}
- {2022/11/15} {}
+ {2023/01/01} {}
{Font selection and configuration}
\keys_define:nn { projlib-font }
@@ -133,6 +133,35 @@
\RequirePackage { ebgaramond-maths }
\RequirePackage { ebgaramond }
\cs_undefine:c { Bbbk }
+ \cs_undefine:c { Top }
+ % https://tex.stackexchange.com/a/215272
+ \DeclareSymbolFont{ntxletters}{OML}{ntxmi}{m}{it}
+ \SetSymbolFont{ntxletters}{bold}{OML}{ntxmi}{b}{it}
+ \re at DeclareMathSymbol{\leftharpoonup}{\mathrel}{ntxletters}{"28}
+ \re at DeclareMathSymbol{\leftharpoondown}{\mathrel}{ntxletters}{"29}
+ \re at DeclareMathSymbol{\rightharpoonup}{\mathrel}{ntxletters}{"2A}
+ \re at DeclareMathSymbol{\rightharpoondown}{\mathrel}{ntxletters}{"2B}
+ \re at DeclareMathSymbol{\triangleleft}{\mathbin}{ntxletters}{"2F}
+ \re at DeclareMathSymbol{\triangleright}{\mathbin}{ntxletters}{"2E}
+ \re at DeclareMathSymbol{\partial}{\mathord}{ntxletters}{"40}
+ \re at DeclareMathSymbol{\flat}{\mathord}{ntxletters}{"5B}
+ \re at DeclareMathSymbol{\natural}{\mathord}{ntxletters}{"5C}
+ \re at DeclareMathSymbol{\star}{\mathbin}{ntxletters}{"3F}
+ \re at DeclareMathSymbol{\smile}{\mathrel}{ntxletters}{"5E}
+ \re at DeclareMathSymbol{\frown}{\mathrel}{ntxletters}{"5F}
+ \re at DeclareMathSymbol{\sharp}{\mathord}{ntxletters}{"5D}
+ \re at DeclareMathAccent{\vec}{\mathord}{ntxletters}{"7E}
+ \sys_if_engine_pdftex:F
+ {
+ \setsansfont { texgyreheros }
+ [
+ Scale = MatchUppercase ,
+ UprightFont = *-regular ,
+ BoldFont = *-bold ,
+ ItalicFont = *-italic ,
+ BoldItalicFont = *-bolditalic ,
+ ]
+ }
\projlib_font_set_linespacing_latin:n { \setstretch { 1.00 } }
\bool_gset_true:N \g_projlib_font_already_set_bool
}
@@ -189,6 +218,7 @@
\bool_gset_true:N \g_projlib_font_already_set_bool
}
+
\PassOptionsToPackage { verbose = silent } { microtype }
\RequirePackage { microtype }
Modified: trunk/Master/texmf-dist/tex/latex/projlib/projlib-language.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/projlib/projlib-language.sty 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/tex/latex/projlib/projlib-language.sty 2023-01-02 21:23:26 UTC (rev 65436)
@@ -18,7 +18,7 @@
\NeedsTeXFormat{LaTeX2e}[2022-06-01]
\ProvidesExplPackage
{projlib-language}
- {2022/11/15} {}
+ {2023/01/01} {}
{Multi-language configuration}
\clist_const:Nn \c__projlib_language_supported_clist
Modified: trunk/Master/texmf-dist/tex/latex/projlib/projlib-logo.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/projlib/projlib-logo.sty 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/tex/latex/projlib/projlib-logo.sty 2023-01-02 21:23:26 UTC (rev 65436)
@@ -18,7 +18,7 @@
\NeedsTeXFormat{LaTeX2e}[2022-06-01]
\ProvidesExplPackage
{projlib-logo}
- {2022/11/15} {}
+ {2023/01/01} {}
{The ProjLib logo}
\keys_define:nn { projlib-logo }
Modified: trunk/Master/texmf-dist/tex/latex/projlib/projlib-math.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/projlib/projlib-math.sty 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/tex/latex/projlib/projlib-math.sty 2023-01-02 21:23:26 UTC (rev 65436)
@@ -18,7 +18,7 @@
\NeedsTeXFormat{LaTeX2e}[2022-06-01]
\ProvidesExplPackage
{projlib-math}
- {2022/11/15} {}
+ {2023/01/01} {}
{Efficient math setup}
\keys_define:nn { projlib-math }
Modified: trunk/Master/texmf-dist/tex/latex/projlib/projlib-paper.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/projlib/projlib-paper.sty 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/tex/latex/projlib/projlib-paper.sty 2023-01-02 21:23:26 UTC (rev 65436)
@@ -18,7 +18,7 @@
\NeedsTeXFormat{LaTeX2e}[2022-06-01]
\ProvidesExplPackage
{projlib-paper}
- {2022/11/15} {}
+ {2023/01/01} {}
{Configuration of the paper style}
\keys_define:nn { projlib-paper }
Modified: trunk/Master/texmf-dist/tex/latex/projlib/projlib-text.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/projlib/projlib-text.sty 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/tex/latex/projlib/projlib-text.sty 2023-01-02 21:23:26 UTC (rev 65436)
@@ -18,7 +18,7 @@
\NeedsTeXFormat{LaTeX2e}[2022-06-01]
\ProvidesExplPackage
{projlib-text}
- {2022/11/15} {}
+ {2023/01/01} {}
{Text-related commands}
\keys_define:nn { projlib-text }
Modified: trunk/Master/texmf-dist/tex/latex/projlib/projlib-theorem.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/projlib/projlib-theorem.sty 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/tex/latex/projlib/projlib-theorem.sty 2023-01-02 21:23:26 UTC (rev 65436)
@@ -18,7 +18,7 @@
\NeedsTeXFormat{LaTeX2e}[2022-06-01]
\ProvidesExplPackage
{projlib-theorem}
- {2022/11/15} {}
+ {2023/01/01} {}
{Configuration of theorem-like environments}
\keys_define:nn { projlib-theorem }
Modified: trunk/Master/texmf-dist/tex/latex/projlib/projlib-titlepage.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/projlib/projlib-titlepage.sty 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/tex/latex/projlib/projlib-titlepage.sty 2023-01-02 21:23:26 UTC (rev 65436)
@@ -18,7 +18,7 @@
\NeedsTeXFormat{LaTeX2e}[2022-06-01]
\ProvidesExplPackage
{projlib-titlepage}
- {2022/11/15} {}
+ {2023/01/01} {}
{Commands for rendering the title page}
\keys_define:nn { projlib-titlepage }
@@ -67,7 +67,7 @@
\keys_define:nn { projlib-titlepage-config }
{
, logo .code:n = { \tl_set:Nn \l_projlib_titlepage_logo_tl { \tl_trim_spaces:n { #1 } } }
- , logo .initial:n = { \scalebox { 2 } { \ProjLib } }
+ , logo .initial:n = { * }
, title .code:n = { \tl_set:Nn \l_projlib_titlepage_title_tl { \tl_trim_spaces:n { #1 } } }
, subtitle .code:n = { \tl_set:Nn \l_projlib_titlepage_subtitle_tl { \tl_trim_spaces:n { #1 } } }
, author .code:n = { \tl_set:Nn \l_projlib_titlepage_author_tl { \tl_trim_spaces:n { #1 } } }
@@ -96,6 +96,17 @@
\colorlet { titlepage-main } { blue!50!cyan!50!black }
\colorlet { titlepage-back } { blue!50!cyan!15!yellow!25 }
+\cs_new_protected:Nn \projlib_titlepage_show_logo:n
+ {
+ \tl_if_eq:NnTF \l_projlib_titlepage_logo_tl { \tl_trim_spaces:n { * } }
+ {
+ #1
+ }
+ {
+ \tl_use:N \l_projlib_titlepage_logo_tl
+ }
+ }
+
\cs_new_protected:Nn \projlib_titlepage_render:n
{
\keys_set:nn { projlib-titlepage-config } { #1 }
@@ -125,7 +136,7 @@
\node[text~width=.3\paperwidth, text~height=.2\paperheight, align=flush~left]
at ($(current~page.north~west)+(.32\paperwidth,-.17\paperheight)$)
{
- \l_projlib_titlepage_logo_tl
+ \projlib_titlepage_show_logo:n { \scalebox { 2 } { \ProjLib } }
};
\node[text~width=.8\paperwidth, text~height=.5\paperheight, align=flush~left]
at ($(current~page.north~west)+(.57\paperwidth,-.28\paperheight)$)
@@ -159,7 +170,7 @@
\node[text~width=.3\paperwidth, text~height=.2\paperheight, align=flush~left]
at ($(current~page.north~west)+(.27\paperwidth,-.15\paperheight)$)
{
- \l_projlib_titlepage_logo_tl
+ \projlib_titlepage_show_logo:n { \scalebox { 2 } { \ProjLib } }
};
\node[text~width=.8\paperwidth, text~height=.5\paperheight, align=flush~left]
at ($(current~page.north~west)+(.52\paperwidth,-.28\paperheight)$)
@@ -185,6 +196,72 @@
\end{tikzpicture}
}
+\cs_new_protected:Nn \projlib_titlepage_render_with_style_academic:
+ {
+ \begin{tikzpicture}[overlay,remember~picture]
+ \fill[color=titlepage-main] ($(current~page.south~west)$) rectangle ($(current~page.north~east)$);
+ \fill[color=white] ($(current~page.south~west)+(0,.3\paperheight)$) rectangle ($(current~page.north~east)+(0,-.3\paperheight)$);
+ \node[text~width=.3\paperwidth, text~height=.2\paperheight, align=flush~center]
+ at ($(current~page.north)+(0pt,-.15\paperheight)$)
+ {
+ \projlib_titlepage_show_logo:n { \color{white} \scalebox { 2 } { \ProjLibText } }
+ };
+ \node[text~width=.8\paperwidth, text~height=.5\paperheight, align=flush~center]
+ at ($(current~page.north)+(0pt,-.25\paperheight)$)
+ {
+ \color{titlepage-main}
+ \sffamily
+ \fontsize{24pt}{36pt}\selectfont
+ \textsc{ \l_projlib_titlepage_title_tl }\\[1.5em]
+ \fontsize{18pt}{27pt}\selectfont
+ \l_projlib_titlepage_subtitle_tl
+ };
+ \node[text~width=.5\paperwidth, text~height=.4\paperheight, align=flush~center]
+ at ($(current~page.south)+(0pt,.36\paperheight)$)
+ {
+ \color{white}
+ \fontsize{16pt}{24pt}\selectfont
+ \textsc{ \l_projlib_titlepage_author_tl }\\[1em]
+ \fontsize{12pt}{18pt}\selectfont
+ \l_projlib_titlepage_date_tl
+ };
+ \end{tikzpicture}
+ }
+
+\cs_new_protected:Nn \projlib_titlepage_render_with_style_minimalist:
+ {
+ \begin{tikzpicture}[overlay,remember~picture]
+ % \fill[color=white] ($(current~page.south~west)$) rectangle ($(current~page.north~east)$);
+ \node[text~width=.3\paperwidth, text~height=.2\paperheight, align=flush~left]
+ at ($(current~page.north~west)+(.32\paperwidth,-.2\paperheight)$)
+ {
+ \projlib_titlepage_show_logo:n { \scalebox { 2 } { \ProjLib } }
+ };
+ \node[text~width=.8\paperwidth, text~height=.5\paperheight, align=flush~left]
+ at ($(current~page.north~west)+(.57\paperwidth,-.22\paperheight)$)
+ {
+ \sffamily
+ \fontsize{24pt}{36pt}\selectfont
+ \textsc{ \l_projlib_titlepage_title_tl }\\[1.5em]
+ \fontsize{18pt}{27pt}\selectfont
+ \l_projlib_titlepage_subtitle_tl
+ };
+ % \node[text~width=.5\paperwidth, text~height=.4\paperheight, align=flush~left]
+ % at ($(current~page.south)+(.135\paperwidth,.35\paperheight)$)
+ \node[text~width=.8\paperwidth, text~height=.4\paperheight, align=flush~left]
+ at ($(current~page.south~west)+(.57\paperwidth,.45\paperheight)$)
+ {
+ \color{.!50}
+ % \begin{flushright}
+ \fontsize{16pt}{24pt}\selectfont
+ \textsc{ \l_projlib_titlepage_author_tl }\\[1em]
+ \fontsize{12pt}{18pt}\selectfont
+ \l_projlib_titlepage_date_tl
+ % \end{flushright}
+ };
+ \end{tikzpicture}
+ }
+
\endinput
%%
%% End of file `projlib-titlepage.sty'.
Modified: trunk/Master/texmf-dist/tex/latex/simplivre/simplivre.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/simplivre/simplivre.cls 2023-01-02 21:20:51 UTC (rev 65435)
+++ trunk/Master/texmf-dist/tex/latex/simplivre/simplivre.cls 2023-01-02 21:23:26 UTC (rev 65436)
@@ -18,7 +18,7 @@
\NeedsTeXFormat{LaTeX2e}[2022-06-01]
\ProvidesExplClass
{simplivre}
- {2022/09/03} {}
+ {2023/01/02} {}
{A simple and clear book style}
\tl_const:Nn \l__minimclass_base_class_tl { book }
@@ -42,6 +42,15 @@
, draft .initial:n = { false }
, fast .bool_set:N = \l__minimclass_fast_bool
+ , print .bool_set:N = \l__minimclass_print_mode_bool
+ , print .initial:n = { false }
+ , print mode .bool_set:N = \l__minimclass_print_mode_bool
+ , print~mode .bool_set:N = \l__minimclass_print_mode_bool
+ , print-mode .bool_set:N = \l__minimclass_print_mode_bool
+ , print version .bool_set:N = \l__minimclass_print_mode_bool
+ , print~version .bool_set:N = \l__minimclass_print_mode_bool
+ , print-version .bool_set:N = \l__minimclass_print_mode_bool
+
, classical .bool_set:N = \l__minimclass_classical_bool
, classical .initial:n = { false }
@@ -61,15 +70,9 @@
\str_set:Nn \l__minimclass_custom_font_file_math_str { minimalist.font.math }
}
, load custom font file .default:n = { minimalist.font }
- , load~custom~font~file .code:n = {
- \bool_set_true:N \l__minimclass_load_custom_font_file_bool
- \str_set:Nn \l__minimclass_custom_font_file_str { #1 }
- }
+ , load~custom~font~file .meta:n = { load custom font file = { #1 } }
, load~custom~font~file .default:n = { minimalist.font }
- , load-custom-font-file .code:n = {
- \bool_set_true:N \l__minimclass_load_custom_font_file_bool
- \str_set:Nn \l__minimclass_custom_font_file_str { #1 }
- }
+ , load-custom-font-file .meta:n = { load custom font file = { #1 } }
, load-custom-font-file .default:n = { minimalist.font }
, load custom latin font file .code:n = {
@@ -77,15 +80,9 @@
\str_set:Nn \l__minimclass_custom_font_file_latin_str { #1 }
}
, load custom latin font file .default:n = { minimalist.font.latin }
- , load~custom~latin~font~file .code:n = {
- \bool_set_true:N \l__minimclass_load_custom_font_file_latin_bool
- \str_set:Nn \l__minimclass_custom_font_file_latin_str { #1 }
- }
+ , load~custom~latin~font~file .meta:n = { load custom latin font file = { #1 } }
, load~custom~latin~font~file .default:n = { minimalist.font.latin }
- , load-custom-latin-font-file .code:n = {
- \bool_set_true:N \l__minimclass_load_custom_font_file_latin_bool
- \str_set:Nn \l__minimclass_custom_font_file_latin_str { #1 }
- }
+ , load-custom-latin-font-file .meta:n = { load custom latin font file = { #1 } }
, load-custom-latin-font-file .default:n = { minimalist.font.latin }
, load custom cjk font file .code:n = {
@@ -93,15 +90,9 @@
\str_set:Nn \l__minimclass_custom_font_file_cjk_str { #1 }
}
, load custom cjk font file .default:n = { minimalist.font.cjk }
- , load~custom~cjk~font~file .code:n = {
- \bool_set_true:N \l__minimclass_load_custom_font_file_cjk_bool
- \str_set:Nn \l__minimclass_custom_font_file_cjk_str { #1 }
- }
+ , load~custom~cjk~font~file .meta:n = { load custom cjk font file = { #1 } }
, load~custom~cjk~font~file .default:n = { minimalist.font.cjk }
- , load-custom-cjk-font-file .code:n = {
- \bool_set_true:N \l__minimclass_load_custom_font_file_cjk_bool
- \str_set:Nn \l__minimclass_custom_font_file_cjk_str { #1 }
- }
+ , load-custom-cjk-font-file .meta:n = { load custom cjk font file = { #1 } }
, load-custom-cjk-font-file .default:n = { minimalist.font.cjk }
, load custom math font file .code:n = {
@@ -109,15 +100,9 @@
\str_set:Nn \l__minimclass_custom_font_file_math_str { #1 }
}
, load custom math font file .default:n = { minimalist.font.math }
- , load~custom~math~font~file .code:n = {
- \bool_set_true:N \l__minimclass_load_custom_font_file_math_bool
- \str_set:Nn \l__minimclass_custom_font_file_math_str { #1 }
- }
+ , load~custom~math~font~file .meta:n = { load custom math font file = { #1 } }
, load~custom~math~font~file .default:n = { minimalist.font.math }
- , load-custom-math-font-file .code:n = {
- \bool_set_true:N \l__minimclass_load_custom_font_file_math_bool
- \str_set:Nn \l__minimclass_custom_font_file_math_str { #1 }
- }
+ , load-custom-math-font-file .meta:n = { load custom math font file = { #1 } }
, load-custom-math-font-file .default:n = { minimalist.font.math }
, a4paper .bool_set:N = \l__minimclass_a_four_paper_bool
@@ -141,6 +126,19 @@
\bool_set_false:N \l__minimclass_useindent_bool
}
+\NewDocumentCommand \IfPrintModeTF { m m }
+ {
+ \bool_if:NTF \l__minimclass_print_mode_bool { #1 } { #2 }
+ }
+\NewDocumentCommand \IfPrintModeT { m }
+ {
+ \bool_if:NT \l__minimclass_print_mode_bool { #1 }
+ }
+\NewDocumentCommand \IfPrintModeF { m }
+ {
+ \bool_if:NF \l__minimclass_print_mode_bool { #1 }
+ }
+
%%================================
%% Page layout
%%================================
@@ -630,14 +628,9 @@
]
\setmathfont { latinmodern-math.otf }
[
- range = { \ast } ,
+ range = { frak, bffrak, \mitvarpi, \mupvarpi, \ast } ,
Scale = 1.10
]
- \setmathfont { latinmodern-math.otf }
- [
- range = { frak, bffrak }
- ]
- \DeclareMathAlphabet{\mathcal}{OMS}{cmsy}{m}{n}
\setmathfont { texgyrepagella-math.otf }
[
range = { `(, `) } ,
@@ -645,9 +638,14 @@
]
\setmathfont { texgyrepagella-math.otf }
[
+ range = { \mathcomma, \mathsemicolon } ,
+ ]
+ \setmathfont { texgyrepagella-math.otf }
+ [
range = { it / { Latin, latin }, bfit / { Latin, latin }, up / num, bfup / num }
]
- \setmathfont { KpMath-Regular.otf } [ range = {} ]
+ \setmathfont { KpMath-Regular.otf } [ range = { cal, bfcal }, RawFeature=+ss01 ]
+ % \setmathfont { KpMath-Regular.otf } [ range = {} ]
\sys_if_engine_luatex:T
{
@@ -727,15 +725,27 @@
{
\minimclass_xarrows_generic:nnnn { #1 } { #2 } {} { edge [ commutative~diagrams/equal ] }
}
+ \NewDocumentCommand \xtwoheadrightarrow { O{} m }
+ {
+ \minimclass_xarrows_generic:nnnn { #1 } { #2 } {} { edge [ commutative~diagrams/twoheadrightarrow ] }
+ }
+ \NewDocumentCommand \xtwoheadleftarrow { O{} m }
+ {
+ \minimclass_xarrows_generic:nnnn { #1 } { #2 } {} { edge [ commutative~diagrams/twoheadleftarrow ] }
+ }
\hook_gput_code:nnn { begindocument/end } { minimclass }
{
\RenewDocumentCommand \twoheadrightarrow {}
{
- \minimclass_xarrows_generic:nnnn { \,\, } {} {} { edge [ commutative~diagrams/twoheadrightarrow ] }
+ \minimclass_xarrows_generic:nnnn {
+ \mathchoice { \,\, } { \, } { } { }
+ } {} {} { edge [ commutative~diagrams/twoheadrightarrow ] }
}
\RenewDocumentCommand \twoheadleftarrow {}
{
- \minimclass_xarrows_generic:nnnn { \,\, } {} {} { edge [ commutative~diagrams/twoheadleftarrow ] }
+ \minimclass_xarrows_generic:nnnn {
+ \mathchoice { \,\, } { \, } { } { }
+ } {} {} { edge [ commutative~diagrams/twoheadleftarrow ] }
}
}
}
More information about the tex-live-commits
mailing list.