Download User's Guide to CLShanCommands

Transcript
Definition
\newcommand{\conti}
{& \hspace{-1.3ex} ~
& \hspace{-1.3ex}}
where the “conti” stands for “continue”. As an example I give you the commands for the last two lines of the
above equation here:
Example
\=
\left(......\right)
\non\\
\conti ~~~~~~ \times
\left[1-x^2 ......\right]
Furthermore, for the case in which you want to put something else instead of a normal binary relation in the
eqnarray or eqnarray* environments, I defined also a \newcommand here:
Definition
\newcommand{\eqnBinary}
[1]
{& \hspace{-1.3ex} #1
& \hspace{-1.3ex}}
Then we can rewrite the three commands which I used as examples above as following:
Examples
\=
\eqnBinary{=}
\eqnapprox
\eqnBinary{\approx}
\conti
\eqnBinary{~}
1.4
Changing equation numbers
Sometimes we want to label the equation number of two equations as following:
sin x =
x3
x5
eix − e−ix
=x−
+
− +···
2i
6
120
(4a)
cos x =
eix + e−ix
x2
x4
=1−
+
− +···
2
2
24
(4b)
Formally, for such cases, we use a command \renewcommand{\theequation}{\arabic{equation}a} at first, and
then commands \addtocounter{equation}{-1} and \renewcommand{\theequation}{\arabic{equation}b}
between these two equations, finally, we use \renewcommand{\theequation}{\arabic{equation}} to change
the label of the equation number back. Such a combination is almost fixed and we need it maybe pretty frequently.
For sure we can just copy them every time. But I think it is better to define some short \newcommands.
Definitions
\newcommand{\cheqn}
\newcommand{\cheqnx}
{\renewcommand{\theequation}{\arabic{equation}}}
[1]
{\renewcommand{\theequation}{\arabic{equation}#1}}
5