Skip to content

Commit

Permalink
Merge pull request #6 from AlphaZTX/AlphaZTX-dev
Browse files Browse the repository at this point in the history
Version 2.1
  • Loading branch information
AlphaZTX authored Mar 20, 2023
2 parents 6887ce6 + 85767ad commit 04fab1a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 21 deletions.
2 changes: 1 addition & 1 deletion fixdif-zh-cn.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
\documentclass[letterpaper,11pt]{article}
\usepackage{fixdif}
\date{2023/02/21\quad Version 2.0b%
\date{2023/03/20\quad Version 2.1%
\thanks{源代码见~\hyperref{https://github.com/AlphaZTX/fixdif}{}{}{GitHub}
或~\hyperref{https://www.ctan.org/pkg/fixdif}{}{}{CTAN}。}
}
Expand Down
28 changes: 8 additions & 20 deletions fixdif.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -131,27 +131,22 @@ Copyright (C) 2022-2023 by Zhang Tingxuan <alphaztx@163.com>.
%</internal>
%
%<*driver>
\ProvidesFile{fixdif.dtx}[2023/02/21 (c) Copyright 2022-2023 by Zhang Tingxuan]
\ProvidesFile{fixdif.dtx}[2023/03/20 (c) Copyright 2022-2023 by Zhang Tingxuan]
\documentclass{ltxdoc}

\usepackage{xcolor}
\definecolor{titlecolor}{RGB}{0,12,160}
\usepackage{doc}
\usepackage{fancyvrb}
\fvset{xleftmargin=2.5em,fontsize=\small,gobble=2}
\MakeShortVerb|

\usepackage{hologo}
\def\XeTeX{\hologo{XeTeX}}
\def\LuaTeX{\hologo{LuaTeX}}

\def\pkg{\textsf}
\def\opt{\texttt}

\title{The \pkg{fixdif} Package}
\author{Zhang Tingxuan}
\date{2023/02/21\quad Version 2.0b\thanks{\url{https://github.com/AlphaZTX/fixdif}}}

\date{2023/03/20\quad Version 2.1\thanks{\url{https://github.com/AlphaZTX/fixdif}}}
\usepackage{hyperref}
\hypersetup{
pdftitle = {The fixdif Package},
Expand All @@ -161,7 +156,6 @@ Copyright (C) 2022-2023 by Zhang Tingxuan <alphaztx@163.com>.
urlcolor = titlecolor!80!black,
}
\def\pkg{\textsf}

\makeatletter
\renewcommand\section{\@startsection{section}{1}{\z@}%
{-2.5ex plus -1ex minus -.2ex}%
Expand Down Expand Up @@ -190,13 +184,10 @@ Copyright (C) 2022-2023 by Zhang Tingxuan <alphaztx@163.com>.
\usepackage{unicode-math}
\fi
\makeatother

\usepackage{fixdif}

\linespread{1.05}
\parskip6pt plus 2pt minus 1pt
\parindent2.5em

\begin{document}
\DocInput{\jobname.dtx}
\end{document}
Expand Down Expand Up @@ -444,7 +435,7 @@ Copyright (C) 2022-2023 by Zhang Tingxuan <alphaztx@163.com>.
% Check the \TeX{} format and provides the package name.
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{fixdif}[2023/02/21 Interface for defining differential operators.]
\ProvidesPackage{fixdif}[2023/03/20 Interface for defining differential operators.]
% \end{macrocode}
%
% \subsection{Control the skip between slashes and differential operator}
Expand All @@ -460,14 +451,11 @@ Copyright (C) 2022-2023 by Zhang Tingxuan <alphaztx@163.com>.
\ifcsname symbf\endcsname%
\csname bool_if:cF\endcsname{g__um_main_font_defined_bool}%
{\csname __um_load_lm:\endcsname}%
\Umathcode`\/="4 \symoperators "002F%
\Umathcode"2044="4 \symoperators "2044%
\Umathcode"2215="4 \symoperators "2215%
\Umathcode"2F98="4 \symoperators "2F98%
\Umathcode`\\="4 \symoperators "005C%
\Umathcode"2216="4 \symoperators "2216%
\Umathcode"29F5="4 \symoperators "29F5%
\Umathcode"29F9="4 \symoperators "29F9%
\def\fd@patchUmathcode#1{% 16777216 = 16^6
\@tempcnta=\numexpr(\the\Umathcodenum#1-#1)/16777216\relax
\Umathcode #1 = "4 \@tempcnta #1}%
\fd@patchUmathcode{"2F}%
\fd@patchUmathcode{"5C}%
\else\ifcsname fontspec\endcsname
\csname bool_if:cT\endcsname{g__fontspec_math_bool}%
{%
Expand Down

0 comments on commit 04fab1a

Please sign in to comment.