Skip to content

Commit

Permalink
update 2.1.0.0402
Browse files Browse the repository at this point in the history
  • Loading branch information
polossk committed Apr 2, 2019
1 parent 9d841e8 commit b33ee66
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 122 deletions.
82 changes: 3 additions & 79 deletions article-setting.tex
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
\usepackage{xcolor}
\usepackage{tikz}
\usepackage{layouts}
\usepackage[numbers,sort&compress]{natbib}
\usepackage{clrscode}
%------------------------------------------------------------------------------%

Expand Down Expand Up @@ -38,63 +37,9 @@
%------------------------------------------------------------------------------%


%---------------------------------设置字体大小---------------------------------%
\usepackage{type1cm}
% 字号与行距,统一前缀s(a.k.a size)
\newcommand{\sChuhao}{\fontsize{42pt}{63pt}\selectfont} % 初号, 1.5倍
\newcommand{\sYihao}{\fontsize{26pt}{36pt}\selectfont} % 一号, 1.4倍
\newcommand{\sErhao}{\fontsize{22pt}{28pt}\selectfont} % 二号, 1.25倍
\newcommand{\sXiaoer}{\fontsize{18pt}{18pt}\selectfont} % 小二, 单倍
\newcommand{\sSanhao}{\fontsize{16pt}{24pt}\selectfont} % 三号, 1.5倍
\newcommand{\sXiaosan}{\fontsize{15pt}{22pt}\selectfont} % 小三, 1.5倍
\newcommand{\sSihao}{\fontsize{14pt}{21pt}\selectfont} % 四号, 1.5倍
\newcommand{\sHalfXiaosi}{\fontsize{13pt}{19.5pt}\selectfont} % 半小四, 1.5倍
\newcommand{\sXiaosi}{\fontsize{12pt}{14.4pt}\selectfont} % 小四, 1.25倍
\newcommand{\sLargeWuhao}{\fontsize{11pt}{11pt}\selectfont} % 大五, 单倍
\newcommand{\sWuhao}{\fontsize{10.5pt}{10.5pt}\selectfont} % 五号, 单倍
\newcommand{\sXiaowu}{\fontsize{9pt}{9pt}\selectfont} % 小五, 单倍
%------------------------------------------------------------------------------%


%---------------------------------设置中文字体---------------------------------%
\usepackage{fontspec}
\usepackage[SlantFont,BoldFont,CJKchecksingle]{xeCJK}
\usepackage{CJKnumb}

% 使用 Adobe 字体
\newcommand\adobeSog{Adobe Song Std}
\newcommand\adobeHei{Adobe Heiti Std}
\newcommand\adobeKai{Adobe Kaiti Std}
\newcommand\adobeFag{Adobe Fangsong Std}
\newcommand\codeFont{Consolas}
% 设置字体
\defaultfontfeatures{Mapping=tex-text}
\setCJKmainfont[ItalicFont=\adobeKai, BoldFont=\adobeHei]{\adobeSog}
\setCJKsansfont[ItalicFont=\adobeKai, BoldFont=\adobeHei]{\adobeSog}
\setCJKmonofont{\codeFont}
\setmonofont{\codeFont}
% 设置字体族
\setCJKfamilyfont{song}{\adobeSog} % 宋体
\setCJKfamilyfont{hei}{\adobeHei} % 黑体
\setCJKfamilyfont{kai}{\adobeKai} % 楷体
\setCJKfamilyfont{fang}{\adobeFag} % 仿宋体
% 用于页眉学校名,特殊字体,powerby https://github.com/ecomfe/fonteditor
\setCJKfamilyfont{nwpu}{nwpuname}
% 新建字体命令,统一前缀f(a.k.a font)
\newcommand{\fSong}{\CJKfamily{song}}
\newcommand{\fHei}{\CJKfamily{hei}}
\newcommand{\fFang}{\CJKfamily{fang}}
\newcommand{\fKai}{\CJKfamily{kai}}
\newcommand{\fNWPU}{\CJKfamily{nwpu}}
%------------------------------------------------------------------------------%


%------------------------------添加插图与表格控制------------------------------%
\usepackage{graphicx}
\usepackage[font=small,labelsep=quad]{caption}
\usepackage{wrapfig}
\usepackage{multirow,makecell}
\usepackage{longtable}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{setspace}
Expand All @@ -107,28 +52,14 @@
%------------------------------------------------------------------------------%


%---------------------------------设置引用格式---------------------------------%
\renewcommand\figureautorefname{图}
\renewcommand\tableautorefname{表}
\renewcommand\equationautorefname{式}
\newcommand\myreference[1]{[\ref{#1}]}
\newcommand\eqrefe[1]{式(\ref{#1})}
\renewcommand\theequation{\thechapter.\arabic{equation}}
% 增加 \ucite 命令使显示的引用为上标形式
\newcommand{\ucite}[1]{$^{\mbox{\scriptsize \cite{#1}}}$}
%------------------------------------------------------------------------------%


%--------------------------设置中文段落缩进与正文版式--------------------------%
\XeTeXlinebreaklocale "zh" %使用中文的换行风格
\XeTeXlinebreakskip = 0pt plus 1pt %调整换行逻辑的弹性大小
%------------------------------------------------------------------------------%

%---------------------------------设置页眉页脚---------------------------------%
\usepackage{fancyhdr}
\usepackage{fancyref}
\pagestyle{fancy}
% \chead{{\fNWPU 西北工业大学} \fSong {\title}}
\lhead{}
\rhead{}
\chead{}
\lfoot{Version: v\artversion}
\cfoot{\thepage}
\rfoot{by \href{https://github.com/polossk}{polossk}}
Expand All @@ -143,13 +74,6 @@
%------------------------------------------------------------------------------%


%---------------------------------添加列表控制---------------------------------%
\usepackage{enumerate}
\numberwithin{equation}{section}
\renewcommand\theequation{\thesection.\arabic{equation}}
%------------------------------------------------------------------------------%


%---------------------------------添加代码控制---------------------------------%
\colorlet{lightgray}{gray!40}
\colorlet{darkred}{red!70!black}
Expand Down
75 changes: 43 additions & 32 deletions math-symbols.sty
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
% math-symbols.sty
% by polossk, version 2.0
% last update 2018-5-15
% by polossk, version 2.1.0.0402
% last update 2019-04-02
% github.com/polossk/Math-Symbols-in-LaTeX
\ProvidesPackage{math-symbols}[2018/5/15 v2.0 Math-Symbols-in-LaTeX]
\ProvidesPackage{math-symbols}[2019/04/02 v2.1.0.0402 Math-Symbols-in-LaTeX]
%------------------------------------------------------------------------------%
%-Requare-Packages-------------------------------------------------------------%
%------------------------------------------------------------------------------%
Expand Down Expand Up @@ -133,6 +133,46 @@
\newcommand\mmpsi{{\bm \Psi}} % matrix Psi
\newcommand\mmomega{{\bm \Omega}} % matrix Omega
%------------------------------------------------------------------------------%
%-[M]ath-[T]ensor-Defination---------------------------------------------------%
%------------------------------------------------------------------------------%
\newcommand\mta{{\mathbf A}} % tensor A
\newcommand\mtb{{\mathbf B}} % tensor B
\newcommand\mtc{{\mathbf C}} % tensor C
\newcommand\mtd{{\mathbf D}} % tensor D
\newcommand\mte{{\mathbf E}} % tensor E
\newcommand\mtf{{\mathbf F}} % tensor F
\newcommand\mtg{{\mathbf G}} % tensor G
\newcommand\mth{{\mathbf H}} % tensor H
\newcommand\mti{{\mathbf I}} % tensor I
\newcommand\mtj{{\mathbf J}} % tensor J
\newcommand\mtk{{\mathbf K}} % tensor K
\newcommand\mtl{{\mathbf L}} % tensor L
\newcommand\mtm{{\mathbf M}} % tensor M
\newcommand\mtn{{\mathbf N}} % tensor N
\newcommand\mto{{\mathbf O}} % tensor O
\newcommand\mtp{{\mathbf P}} % tensor P
\newcommand\mtq{{\mathbf Q}} % tensor Q
\newcommand\mtr{{\mathbf R}} % tensor R
\newcommand\mts{{\mathbf S}} % tensor S
\newcommand\mtt{{\mathbf T}} % tensor T
\newcommand\mtu{{\mathbf U}} % tensor U
\newcommand\mtv{{\mathbf V}} % tensor V
\newcommand\mtw{{\mathbf W}} % tensor W
\newcommand\mtx{{\mathbf X}} % tensor X
\newcommand\mty{{\mathbf Y}} % tensor Y
\newcommand\mtz{{\mathbf Z}} % tensor Z
\newcommand\mtgamma{{\bm \Gamma}} % tensor Gamma
\newcommand\mtdelta{{\bm \Delta}} % tensor Delta
\newcommand\mttheta{{\bm \Theta}} % tensor Theta
\newcommand\mtlambda{{\bm \Lambda}} % tensor Lambda
\newcommand\mtxi{{\bm \Xi}} % tensor Xi
\newcommand\mtpi{{\bm \Pi}} % tensor Pi
\newcommand\mtsigma{{\bm \Sigma}} % tensor Sigma
\newcommand\mtupsilon{{\bm \Upsilon}} % tensor Upsilon
\newcommand\mtphi{{\bm \Phi}} % tensor Phi
\newcommand\mtpsi{{\bm \Psi}} % tensor Psi
\newcommand\mtomega{{\bm \Omega}} % tensor Omega
%------------------------------------------------------------------------------%
%-[M]ath-[V]ector-Defination-[T]ransposed--------------------------------------%
%------------------------------------------------------------------------------%
\newcommand\mmat{{{\mathbf A}^T}} % matrix A^T
Expand Down Expand Up @@ -173,35 +213,6 @@
\newcommand\mmpsit{{{\bm \Psi}^T}} % matrix Psi^T
\newcommand\mmomegat{{{\bm \Omega}^T}} % matrix Omega^T
%------------------------------------------------------------------------------%
%-[M]ath-[T]ensor-Defination---------------------------------------------------%
%------------------------------------------------------------------------------%
\newcommand\mta{{\mathsf A}} % tensor A
\newcommand\mtb{{\mathsf B}} % tensor B
\newcommand\mtc{{\mathsf C}} % tensor C
\newcommand\mtd{{\mathsf D}} % tensor D
\newcommand\mte{{\mathsf E}} % tensor E
\newcommand\mtf{{\mathsf F}} % tensor F
\newcommand\mtg{{\mathsf G}} % tensor G
\newcommand\mth{{\mathsf H}} % tensor H
\newcommand\mti{{\mathsf I}} % tensor I
\newcommand\mtj{{\mathsf J}} % tensor J
\newcommand\mtk{{\mathsf K}} % tensor K
\newcommand\mtl{{\mathsf L}} % tensor L
\newcommand\mtm{{\mathsf M}} % tensor M
\newcommand\mtn{{\mathsf N}} % tensor N
\newcommand\mto{{\mathsf O}} % tensor O
\newcommand\mtp{{\mathsf P}} % tensor P
\newcommand\mtq{{\mathsf Q}} % tensor Q
\newcommand\mtr{{\mathsf R}} % tensor R
\newcommand\mts{{\mathsf S}} % tensor S
\newcommand\mtt{{\mathsf T}} % tensor T
\newcommand\mtu{{\mathsf U}} % tensor U
\newcommand\mtv{{\mathsf V}} % tensor V
\newcommand\mtw{{\mathsf W}} % tensor W
\newcommand\mtx{{\mathsf X}} % tensor X
\newcommand\mty{{\mathsf Y}} % tensor Y
\newcommand\mtz{{\mathsf Z}} % tensor Z
%------------------------------------------------------------------------------%
\newcommand\mvzero{{\bm 0}} % vector 0
\newcommand\mvone{{\bm 1}} % vector 1
\newcommand\mmzero{{\mathbf 0}} % matrix 0
Expand Down
Binary file modified readme.pdf
Binary file not shown.
17 changes: 6 additions & 11 deletions readme.tex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
\documentclass{article}
\input{article-setting}
%------------------------------------------------------------------------------%
\newcommand\artversion{2.0}
\newcommand\artversion{2.1.0.0402}
\title{Math-Symbols-in-\LaTeX{}-Manual}
\author{polossk}
\date{Version: v\artversion, Last Update: \today}
Expand All @@ -16,7 +16,6 @@
\tableofcontents
\thispagestyle{fancy}
\renewcommand{\baselinestretch}{1.25}
\sWuhao\fSong
%------------------------------------------------------------------------------%
\section{Constants and Useful Symbols}
\begin{tabular}{*{10}{l}}
Expand All @@ -40,7 +39,10 @@ \subsection{Vector Notations}
$\mvi$ & \lstinline`\mvi` & $\mvr$ & \lstinline`\mvr` & & & $\mviota$ & \lstinline`\mviota` & $\mvtau$ & \lstinline`\mvtau` & \\
\end{tabular}

\subsection{Matrix Notations}
\subsection{Matrix/Tensor Notations}

Use \lstinline`\mm<name>` or \lstinline`\mt<name>` as the abbr of \underline{M}atrix/\underline{T}ensor.

\begin{tabular}{*{14}{l}}
$\mma$ & \lstinline`\mma` & $\mmg$ & \lstinline`\mmg` & $\mmm$ & \lstinline`\mmm` & $\mms$ & \lstinline`\mms` & $\mmy$ & \lstinline`\mmy` & $\mmgamma$ & \lstinline`\mmgamma` & $\mmsigma$ & \lstinline`\mmsigma`\\
$\mmb$ & \lstinline`\mmb` & $\mmh$ & \lstinline`\mmh` & $\mmn$ & \lstinline`\mmn` & $\mmt$ & \lstinline`\mmt` & $\mmz$ & \lstinline`\mmz` & $\mmdelta$ & \lstinline`\mmdelta` & $\mmupsilon$ & \lstinline`\mmupsilon`\\
Expand All @@ -61,13 +63,6 @@ \subsection{Transposed Matrix Notations}
$\mmgt$ & \lstinline`\mmgt` & $\mmnt$ & \lstinline`\mmnt` & $\mmut$ & \lstinline`\mmut` & & & $\mmsigmat$ & \lstinline`\mmsigmat` & \\
\end{tabular}

\subsection{Tensor Notations}
\begin{tabular}{*{14}{l}}
$\mta$ & \lstinline`\mta` & $\mtb$ & \lstinline`\mtb` & $\mtc$ & \lstinline`\mtc` & $\mtd$ & \lstinline`\mtd` & $\mte$ & \lstinline`\mte` & $\mtf$ & \lstinline`\mtf` & $\mtg$ & \lstinline`\mtg`\\
$\mth$ & \lstinline`\mth` & $\mti$ & \lstinline`\mti` & $\mtj$ & \lstinline`\mtj` & $\mtk$ & \lstinline`\mtk` & $\mtl$ & \lstinline`\mtl` & $\mtm$ & \lstinline`\mtm` & $\mtn$ & \lstinline`\mtn`\\
$\mto$ & \lstinline`\mto` & $\mtp$ & \lstinline`\mtp` & $\mtq$ & \lstinline`\mtq` & $\mtr$ & \lstinline`\mtr` & $\mts$ & \lstinline`\mts` & $\mtt$ & \lstinline`\mtt`\\
$\mtu$ & \lstinline`\mtu` & $\mtv$ & \lstinline`\mtv` & $\mtw$ & \lstinline`\mtw` & $\mtx$ & \lstinline`\mtx` & $\mty$ & \lstinline`\mty` & $\mtz$ & \lstinline`\mtz`\\
\end{tabular}

\subsection{Special Vector and Matrix Notations}
\begin{tabular}{*{8}{l}}
Expand Down Expand Up @@ -102,7 +97,7 @@ \section{Useful Aliases and Generators}

\item \lstinline`\mvctt{}{}`, \lstinline`\mvctzt{}{}`: column vector creator, eg \lstinline`\mvctt{a}{n}` gets $\mvctt{a}{n}$, \lstinline`\mvctzt{a}{n}` gets $\mvctzt{a}{n}$

\item \lstinline`\mequlist{}`: provided a list of equations, eg \lstinline`\mequlist{x + y \&= 10 \\ 4x + 2y \&= 30}` gets $\mequlist{x + y &= 10 \\ 4x + 2y &= 30}$, also provide environment \lstinline`equlist`, which is similar with the \lstinline`cases` environment
\item \lstinline`\mequlist{}`: provided a list of equations, eg \lstinline`\mequlist{x + y &= 10 \\ 4x + 2y &= 30}` gets $\mequlist{x + y &= 10 \\ 4x + 2y &= 30}$, also provide environment \lstinline`equlist`, which is similar with the \lstinline`cases` environment
\end{itemize}

%------------------------------------------------------------------------------%
Expand Down

0 comments on commit b33ee66

Please sign in to comment.