Wednesday, May 12, 2010
正體的積分號
在網上找到一個 package,它能夠把原本的 integral 換成直立的────國內出版的數學書籍常用的一種。
詳細安裝可在網上找到,package 為 mathabx。
它所修改的符號不是十全十美的,我們需要自己另外再作定義,我的是如此:
\usepackage{mathabx}
\DeclareMathSymbol{\sum}{\mathop}{largesymbols}{"50}
\DeclareMathSymbol{\supseteq}{\mathrel}{symbols}{"13}
\DeclareMathSymbol{\subseteq}{\mathrel}{symbols}{"12}
\DeclareMathSymbol{\subset}{\mathrel}{symbols}{"1A}
\DeclareMathSymbol{\supset}{\mathrel}{symbols}{"1B}
\DeclareMathSymbol{\cap}{\mathbin}{symbols}{"5C}
\DeclareMathSymbol{\cup}{\mathbin}{symbols}{"5B}
\DeclareMathSymbol{\complement} {\mathord}{AMSa}{"7B}
\DeclareMathDelimiter{\langle}{\mathopen}{symbols}{"68}{largesymbols}{"0A}
\DeclareMathDelimiter{\rangle}{\mathclose}{symbols}{"69}{largesymbols}{"0B}
\DeclareMathSymbol{\infty}{\mathord}{symbols}{"31}
\makeatletter
\DeclareRobustCommand\sqrt{\@ifnextchar[\@sqrt\sqrtsign}
\def\@sqrt[#1]{\root #1\of}
\makeatother
另一種方法,直接在 preamble 內加上
% upright integrals
%% \int will be upright (display mode)
%% \smallint will be upright (text mode)
%% \oldint will be slanted (display/text mode)
%% (\oldsmallint available, but not necessary)
\let\oldintop\intop
\def\oldint{\oldintop\nolimits}
\let\oldsmallint\smallint
\DeclareSymbolFont{EUEX}{U}{euex}{m}{n}
\DeclareSymbolFont{euexlargesymbols}{U}{euex}{m}{n}
\DeclareMathSymbol{\intop}{\mathop}{euexlargesymbols}{"52}
\def\int{\intop\nolimits}
\DeclareSymbolFont{euexsymbols} {U}{euex}{m}{n}
\DeclareMathSymbol{\smallint}{\mathop}{euexsymbols}{"52}
即能得到垂直的積分號。
好一段時間沒有用 $latex \LaTeX$ 打 project (語文功課),原來我總是忘記在 \setmainfont 後加上 [Mapping=tex-text],在 xeCJK package 下 \setCJKmainfont 同樣可使用這個 option。
詳細安裝可在網上找到,package 為 mathabx。
它所修改的符號不是十全十美的,我們需要自己另外再作定義,我的是如此:
\usepackage{mathabx}
\DeclareMathSymbol{\sum}{\mathop}{largesymbols}{"50}
\DeclareMathSymbol{\supseteq}{\mathrel}{symbols}{"13}
\DeclareMathSymbol{\subseteq}{\mathrel}{symbols}{"12}
\DeclareMathSymbol{\subset}{\mathrel}{symbols}{"1A}
\DeclareMathSymbol{\supset}{\mathrel}{symbols}{"1B}
\DeclareMathSymbol{\cap}{\mathbin}{symbols}{"5C}
\DeclareMathSymbol{\cup}{\mathbin}{symbols}{"5B}
\DeclareMathSymbol{\complement} {\mathord}{AMSa}{"7B}
\DeclareMathDelimiter{\langle}{\mathopen}{symbols}{"68}{largesymbols}{"0A}
\DeclareMathDelimiter{\rangle}{\mathclose}{symbols}{"69}{largesymbols}{"0B}
\DeclareMathSymbol{\infty}{\mathord}{symbols}{"31}
\makeatletter
\DeclareRobustCommand\sqrt{\@ifnextchar[\@sqrt\sqrtsign}
\def\@sqrt[#1]{\root #1\of}
\makeatother
另一種方法,直接在 preamble 內加上
% upright integrals
%% \int will be upright (display mode)
%% \smallint will be upright (text mode)
%% \oldint will be slanted (display/text mode)
%% (\oldsmallint available, but not necessary)
\let\oldintop\intop
\def\oldint{\oldintop\nolimits}
\let\oldsmallint\smallint
\DeclareSymbolFont{EUEX}{U}{euex}{m}{n}
\DeclareSymbolFont{euexlargesymbols}{U}{euex}{m}{n}
\DeclareMathSymbol{\intop}{\mathop}{euexlargesymbols}{"52}
\def\int{\intop\nolimits}
\DeclareSymbolFont{euexsymbols} {U}{euex}{m}{n}
\DeclareMathSymbol{\smallint}{\mathop}{euexsymbols}{"52}
即能得到垂直的積分號。
好一段時間沒有用 $latex \LaTeX$ 打 project (語文功課),原來我總是忘記在 \setmainfont 後加上 [Mapping=tex-text],在 xeCJK package 下 \setCJKmainfont 同樣可使用這個 option。
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment