编辑: 5天午托 2019-07-05

69 \def\COOL@decide@indicies@placement%

70 {\csname COOL@notation@#1Indicies\endcsname}%

71 \ifthenelse{\equal{\COOL@decide@indicies@placement}{local}}%

72 {%

73 \ifthenelse{\equal{#2}{u}}%

74 {^{#3}}%

75 {_{#3}}%

76 }%

77 % Else

78 {%

79 \ifthenelse{\equal{\COOL@decide@indicies@placement}{up}}%

80 {%

81 {^{#3}}%

82 }%

83 % Else

84 {%

85 \ifthenelse{\equal{\COOL@decide@indicies@placement}{down}}%

86 {%

87 {_{#3}}%

88 }%

89 % else

90 {%

91 \PackageError{cool}{Invalid Option Sent}%

92 {#1Indices can only be '

up'

, '

down'

, or '

local'

}%

93 }%

94 }%

95 }%

96 } 1.3 COntent Oriented LaTeX (COOL) \Style \Style{ options } sets the style of the output (how to notate particular func- tions). options is a comma delimited list of the form key = value , where key is the long form of the command name without the preceeding backslash (i.e. Integrate and not Int or \Int). The list can be in any order and need only contain the styles that the user desires to set. There can be multiple \Style commands within any document―the styled output of the command depends on the last \Style command to have speci?ed its style. For a list of styling options for a command, see the code where the command is de?ned

97 \newcommand{\Style}[1]{%

3 98 \COOL@keyeater#1,\COOL@keystop\COOL@keyend%

99 }

100 \newcommand{\COOL@keystop}{@@@}%

101 \def\COOL@keyeater#1=#2,#3\COOL@keyend{%

102 \ifx#3\COOL@keystop%

103 \expandafter\gdef\csname COOL@notation@#1\endcsname{#2}%

104 \else%

105 \expandafter\gdef\csname COOL@notation@#1\endcsname{#2}%

106 \COOL@keyeater#3\COOL@keyend%

107 \fi%

108 } \UseStyleFile Since notational style should be kept consistent and will likely need to span several documents, use this command to input a notation style ?le that has previously been prepared. (to be implemented in a future release)

109 \newcommand{\UseStyleFile}[1]{} 1.3.1 Fundamental Constants see http://functions.wolfram.com/ for the de?nitions \I The square root of minus 1, i = √ ?1. \Style{ISymb=\mathbbm{i}} , \I gives i.

110 \newcommand{\COOL@notation@ISymb}{i}

111 \newcommand{\I}{\COOL@notation@ISymb} \E Euler'

s constant and the base of the natural logarithm, e. \Style{ESymb=\mathbbm{e}} , \E gives e.

112 \newcommand{\COOL@notation@ESymb}{e}

113 \newcommand{\E}{\COOL@notation@ESymb} \PI Pi―the ratio of the circumference of a circle to its diameter, π. \Style{PISymb=\bbpi}

1 , \PI gives .

114 \newcommand{\COOL@notation@PISymb}{\pi}

115 \newcommand{\PI}{\COOL@notation@PISymb} \GoldenRatio The Golden Ratio, ?

116 \newcommand{\GoldenRatio}{\varphi} \EulerGamma Euler'

s Gamma constant, γ. \Style{EulerGammaSymb=\gamma_E} , \EulerGamma gives γE

117 \newcommand{\COOL@notation@EulerGammaSymb}{\gamma}

118 \newcommand{\EulerGamma}{\COOL@notation@EulerGammaSymb} \Catalan Catalan constant, C

119 \newcommand{\Catalan}{C} \Glaisher Glaisher constant, Glaisher

120 \newcommand{\Glaisher}{\mathord{\operatorname{Glaisher}}} \Khinchin Khinchin constant, Khinchin

121 \newcommand{\Khinchin}{\mathord{\operatorname{Khinchin}}} 1to get the '

bbpi'

symbol , you will need to use the package mathbbol and pass the bbgreekl option

4 1.3.2 Symbols \Infinity In?nity, ∞

122 \newcommand{\Infinity}{\infty} \Indeterminant An indeterminant quantity

123 \newcommand{\Indeterminant}{%

下载(注:源文件不在本站服务器,都将跳转到源网站下载)
备用下载
发帖评论
相关话题
发布一个新话题