This is ChlorophyII's LaTeX package.
It takes five minutes to set up and another five minutes to know the way to use it. Hope it can save you a lot more time.
\usepackage{ChlorophyII}
-
Zenburn mode: Add
\zenburn
somewhere before\begin{document}
. Compile. Protect your eyes. -
Auto-brackets: Try
\abrr{\abrr{\abrr{1+1}^{p+1}}+\frac{/pi^2}{6}}
. The round brackets will automatically increase their size depending on contents.
However,\abrr{\abrr{1+1}+1}
does not look good, for the outer ones are as small as the inner ones. In this case, use\abrr[big]{\abrr{1+1}+1}
instead. big can be replaced by normal, Big, bigg and Bigg.
\abrs
,\abrc
and\abra
work exactly the same way as\abrr
, except that they give()
,{}
and<>
respectively. -
Finite-series:
\series
generates the expanded form of the finite sum of a series from its expression of the nth-term. It liberates you from repeatedly typing awkward LaTeX expressions. Look!Instead of
\frac{1^{-p}}{2^{-1}}+\frac{2^{-p}}{2^{-2}}+\cdots+\frac{j^{-p}}{2^{-j}}
, you just need\series[j]{\frac{\n^{-p}}{2^{-\n}}}
. Fewer characters are good, but the real power of\series
unfolds when you want to change the term a little bit. Say, if you want to associatep
with an index, you can simply replacep
byp_\n
. See examples for more information.
If you don't have git, run the following in Terminal.app.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install git
After you have installed git, copy, past and run:
cd ~/Library
mkdir -p texmf/tex/latex
cd texmf/tex/latex
git clone https://github.com/ChlorophyII/LaTeX-ChlorophyII.git
cd ../..
texhash
Look at this question on TeX exchange.
-
\NN, \ZZ, \QQ, \RR, \CC
-
\Re{z}, \Im{z}
-
\abs{x-y},\norm{f-g}
-
apmatrix
andabmatrix
are augmented pmatrix and bmatrix. The arguments are the number of columns before and after the vertical bar.DF= \begin{apmatrix}{3}{3} \dfrac{\partial F_1}{\partial x_1} & \cdots & \dfrac{\partial F_1}{\partial x_n} & \dfrac{\partial F_1}{\partial y_1} & \cdots & \dfrac{\partial F_1}{\partial y_m}\\ \vdots & \ddots & \vdots\ & \vdots & \ddots & \vdots\\ \dfrac{\partial F_m}{\partial x_1} & \cdots & \dfrac{\partial F_m}{\partial x_n} & \dfrac{\partial F_m}{\partial y_1} & \cdots & \dfrac{\partial F_m}{\partial x_n} \end{apmatrix} = \begin{apmatrix}{1}{1} D_{\mathbf{x}}F&D_{\mathbf{y}}F \end{apmatrix}
-
Auto-brackets:
It is convenient to use\abrr
,\abrs
,\abrc
and\abra
in a lot of situations. It has three major benifits:- It helps you easily adjust the size of brackets, for your don't need to repeatedly typing
\bigl
,\Bigr
... - It gives your code better structure. For example, if you do
(x+1)^2
, TeX will think the square is associated to)
rather than(x+1)
.\abrr{x+1}^2
avoids this issue and is better semantically. - It eliminates the possibility of a dangling left bracket or a right bracket. LaTeX will not think there is an error if you write
(3+((x+1)+(x+2))^2
. However,\abrr{3+\abrr{\abrr{x+1}+\abrr{x+2}}^2
does not compile and it forces you to check your code.
\abrr{\abrr{\abrr{1+1}^{p+1}}+\frac{\pi^2}{6}}
\abrr{\abrr{1+1}+1}
produces bad typesetting\abrr
can take one argument like\abrr[big]{\abrr{1+1}+1}
big can be replaced by normal, Big, bigg or Bigg.
\abrs
,\abrc
and\abra
work exactly the same way as\abrr
, except that they give()
,{}
and<>
respectively. ("r": round, "s": square, "c": curly, "a": angle)\abrc[Big]{a\in\RR:\abrs{\sin\abrr[normal]{x+x^2}}_0^a\ge0}
- It helps you easily adjust the size of brackets, for your don't need to repeatedly typing
-
Finite-series:
It takes three optional and one required arguments. The syntax is
\series[index][starting index][delimiter]{general term}
.
By default, index is n, starting index is 1, and delimiter is +. Optional arguments must be input in order. If you want to change the delimiter, you must type in index and starting index. starting index can be either 1 or 0. In general term,\n
is used as a placeholder for the index.
\series{a_\n}
\series[j]{\frac{\n^{-p}}{2^{-\n}}}
\series[m][0]{x_\n}
a=\series[k][0][<]{c_\n}=b
\series[n][1][,]{\n}
-
Theorems, definitions and remarks: This section is not loaded by default. To use it, use
\usepackage[theorem]{ChlorophyII}
in the preamble.definition, lemma, proposition, theorem, corollary, conjecture, example, remark, note and fact are environments, and they are used in the same way. You may or may not give a name to the theorem or definition or...
\begin{theorem}[Fermat's Last Theorem] No three positive integers $a$, $b$, and $c$ satisfy the equation $a^n+b^n=c^n$ for any integer value of $n$ greater than $2$. \end{theorem}