Skip to content

Commit 461d3b0

Browse files
committed
fix: use \providecommand to avoid conflict
1 parent b164d0f commit 461d3b0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

setup.tex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,10 @@
162162
% \usepackage{physics}
163163

164164
% 直立体数学符号
165-
\newcommand{\dd}{\mathop{}\!\mathrm{d}}
166-
\newcommand{\ee}{\mathrm{e}}
167-
\newcommand{\ii}{\mathrm{i}}
168-
\newcommand{\jj}{\mathrm{j}}
165+
\providecommand{\dd}{\mathop{}\!\mathrm{d}}
166+
\providecommand{\ee}{\mathrm{e}}
167+
\providecommand{\ii}{\mathrm{i}}
168+
\providecommand{\jj}{\mathrm{j}}
169169

170170
% 国际单位制宏包
171171
\usepackage{siunitx}[=v2]
@@ -180,8 +180,8 @@
180180

181181
% 一些文档中用到的 logo
182182
\usepackage{hologo}
183-
\newcommand{\XeTeX}{\hologo{XeTeX}}
184-
\newcommand{\BibLaTeX}{\textsc{Bib}\LaTeX}
183+
\providecommand{\XeTeX}{\hologo{XeTeX}}
184+
\providecommand{\BibLaTeX}{\textsc{Bib}\LaTeX}
185185

186186
% 借用 ltxdoc 里面的几个命令方便写文档
187187
\DeclareRobustCommand\cs[1]{\texttt{\char`\\#1}}

0 commit comments

Comments
 (0)