Please see the below code:  \begin{small} \[\begin{array}{l} Some math that should be displayed in small font  \begin{tiny} some math that should be displayed in tiny font \end{tiny}  some more math in small font  \begin{tiny} some more math that should be displayed in tiny font \end{tiny}  \end{array}\]  \end{small}   My code only shows the math code in small. Your help is appreciated.
4094
Which book (free or otherwise) was the most useful to you when you started learning LaTeX?  I am frequently asked this question by friends who want to learn LaTeX, and I recommend the book which got me started, , but I feel that there might be better options around.  Also see .
121356
I am wondering how can I ensure that an argument gets placed underneath \min when I use an align environment.   When I use math mode and write   \[ min_{x_1,\dots x_T}  \]   the {x_1,\dots x_T} is placed directly underneath min.  However when I use an align environment and write  \begin{align*}   min_{x_1\dots x_T}  \end{align*}   the {x_1,\dots x_T} is placed to the bottom left of \min.
89140
Calculate this:  $$\bigl(\begin{smallmatrix} 80 \\0 \end {smallmatrix}\bigr)-\bigl(\begin{smallmatrix} 80 \\1 \end {smallmatrix}\bigr)+\bigl(\begin{smallmatrix} 80 \\2 \end {smallmatrix}\bigr)-\bigl(\begin{smallmatrix} 80 \\3 \end {smallmatrix}\bigr)+...-\bigl(\begin{smallmatrix} 80 \\79 \end {smallmatrix}\bigr)+\bigl(\begin{smallmatrix} 80 \\80 \end {smallmatrix}\bigr)$$  Can I get hints/suggestions for this?  All I know is that: $\bigl(\begin{smallmatrix} 80 \\0 \end {smallmatrix}\bigr)$ and $\bigl(\begin{smallmatrix} 80 \\80 \end {smallmatrix}\bigr)$ must be equal to 1, right?  I know there must be some kind of trick but I just can't find it.  Thanks
124241
I like how there is a gap between the subscript and the superscript when I write ${w_i}^T$. However, if I try to put a hat on the vector, like $\hat{w}_i^T$, this space goes away. Any ideas?  I tried putting in an extra set of braces, as suggested for a similar question , but it didn't work.
30263
I just read a book "Linear Algebra and Its Applications 4E" by David C. Lay. The book is (should be) LaTeX typeset. The matrix and equations are so nice, please see the following 3 examples:        It's so beautiful, so I want get the same effect inside my paper. Here is my code:   \usepackage{amsmath} \usepackage{colortbl} \newcommand\y{\cellcolor{clight2}} \definecolor{clight2}{RGB}{212, 237, 244}%  %%% \[A=\left[ \begin{array}{ccccc} \y 0 &amp; -3 &amp; -6 &amp; 4 &amp; 9 \\    -1 &amp; \y -2 &amp; -1 &amp; 3 &amp; 1 \\ -2 &amp; -3 &amp; 0 &amp; \y 3 &amp; -1 \\ 1 &amp; 4 &amp; 5 &amp; -9 &amp; -7      \end{array} \right]\]  \[A=\left[\begin{array}{cccccc} \rowcolor{clight2} 3 &amp; -9 &amp; 12 &amp; -9 &amp; 6 &amp; 15\\ 0 &amp; 2 &amp; -4 &amp; 4 &amp; 2 &amp; -6 \\ 0 &amp; 3 &amp; -6 &amp; 6 &amp; 4 &amp; -5 \end{array} \right]\]   And the result:     But how to add these arrows??
33306
Hey! I was looking at this code at   I noticed that in some situations they used hex numbers, like in line 134:  for (j = 1; val &amp;&amp; j &lt;= 0x80; j &lt;&lt;= 1, q++)   Now why would they use the 0x80? I am not that good with hex but I found an online hex to decimal and it gave me 128 for 0x80.  Also before line 134, on line 114 they have this:  small_n = (n &amp; 0xffff0000) == 0;   The hex to decimal gave me 4294901760 for that hex number. So here in this line they are making a bit AND and comparing the result to 0??  Why not just use the number? Can anyone please explain and please do give examples of other situations.  Also I have seen large lines of code where it's just hex numbers and never really understood why :(
91407
Ii am writing a short code, so I doubt anything else in the code is causing the problem. This is the problematic line of code:  \[ M_R := \max {|f(z)|: |z - z_0| = R }\le M\]   It doesn't show the curly braces. I've tried using \left{ and \right} but to no avail.  What should I do?  Thank you
101922
Is there any way to use a small font size in questions or answers? That is, for the purpose of minor and possibly irrelevant information?  I've checked the Markdown syntax but couldn't find anything. However I feel I've seen it on the site somewhere...
15486
I'm trying to this:  \newcommand{\code}[1] {\begin{lstlisting} {#1} \end{lstlisting} }   But I keep getting this error:  Package Listings Warning: Text dropped after begin of listing   I'm calling \usepackage and all so, do any of you knows how to solve this?
35886
Code is supposed to be exact and "as-is". Sometimes, showing two spaces is important. In a comment, it is not possible to show code with  multiple   spaces. This became apparent in  (see comments).  EDIT: apparently this bug is larger then I thought: multiple    spaces   here are neither preserved in normal question text. Pity (though I couldn't find this reported before, I'd assume it is).  Workaround: use Alt+0160 (windows), or U+00A0 (Unicode NBSP), as I did in the example above.
120809
So, I'm writing a mathematics paper, and let's say I have the following:  \begin{equation*} 2+2=4 \end{equation*}   Is this the proper way to do an unnumbered equation, or is it preferred to do the following:  \[ 2+2=4 \]   My question really is: what's the difference between doing \begin{equation*} and \begin{equation*} versus doing \[ \]? Is there a setting in which one may be preferred over the other?  Thanks in advance.
45212
I use the following mystic TeX so as to display the Landau's notations for big and small O.  There is one partial solution to improve the scriptscriptstyle so as to not use a small o : see the secund answer below. The problemen with \smallOBis is the wrong spacing, contrary to \smallO. How can I do this ?  % Sources : %     1) http://forum.mathematex.net/latex-f6/bonnes-commandes-de-base-t12278.html %     2) http://tex.stackexchange.com/questions/30944/mathcalo-and-font-size  \documentclass{article}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}      \usepackage{graphicx}      \newcommand{\bigO}[1]{\ensuremath{\mathop{}\mathopen{}\mathcal{O}\mathopen{}\left(#1\right)}}      \newcommand\smallO[1]{         \mathchoice             {% \displaystyle                 \ensuremath{\mathop{}\mathopen{}{\scriptstyle\mathcal{O}}\mathopen{}\left(#1\right)}             }             {% \textstyle                 \ensuremath{\mathop{}\mathopen{}{\scriptstyle\mathcal{O}}\mathopen{}\left(#1\right)}             }             {% \scriptstyle                 \ensuremath{\mathop{}\mathopen{}{\scriptscriptstyle\mathcal{O}}\mathopen{}\left(#1\right)}             }             {% \scriptscriptstyle                   \ensuremath{\mathop{}\mathopen{}{o}\mathopen{}\left(#1\right)}             }     }      \newcommand\smallOBis[1]{         \mathchoice         {% \displaystyle             \scriptstyle\mathcal{O}\left(#1\right)         }         {% \textstyle         \scriptstyle\mathcal{O}\left(#1\right)         }         {% \scriptstyle         \scriptscriptstyle\mathcal{O}\left(#1\right)         }         {% \scriptscriptstyle         \scalebox{0.8}{$\scriptscriptstyle\mathcal{O}$}\left(#1\right)         }     }   \begin{document}  \[     \renewcommand{\arraystretch}{1.2}%     \begin{array}{llll}          \textbf{Style}            &amp; \verb!\bigO!         &amp; \verb!\smallO!                          &amp; \verb!\smallOBis!         \\ \hline         \verb!\displaystyle!      &amp; \displaystyle      \bigO{\frac{1}{n}}         &amp; \displaystyle      1 + \smallO{\frac{1}{n}} - 2 &amp; \displaystyle      1 + \smallOBis{\frac{1}{n}} - 2         \\         \verb!\textstyle!         &amp; \textstyle         \bigO{\frac{1}{n}}         &amp; \textstyle         1 + \smallO{\frac{1}{n}} - 2 &amp; \textstyle         1 + \smallOBis{\frac{1}{n}} - 2         \\         \verb!\scriptstyle!       &amp; \scriptstyle       \bigO{\frac{1}{n}}         &amp; \scriptstyle       1 + \smallO{\frac{1}{n}} - 2 &amp; \scriptstyle       1 + \smallOBis{\frac{1}{n}} - 2         \\         \verb!\scriptscriptstyle! &amp; \scriptscriptstyle \bigO{\frac{1}{n}}         &amp; \scriptscriptstyle 1 + \smallO{\frac{1}{n}} - 2 &amp; \scriptscriptstyle 1 + \smallOBis{\frac{1}{n}} - 2     \end{array} \]  \end{document}
79221
I'm busy answering a question by constructing a new math operator that uses the sum symbol and some TikZ placed on top. My answer as it stands can be found . It looks (I think) pretty good in display style, but too large when shown inline. Even if it automatically set the sum symbol into inline size, the placement of the TikZ would be off.  Is there a way to define different code for when the operator is used in display mathematics environments, and when it's inline? Alternatively, is there a way to detect when you are in display or inline mode?  From the aforementioned example, here is the code I constructed:  \documentclass{minimal} \usepackage{amsmath} \usepackage{tikz}  % Modify the coordinate (-0.3ex,0) to adjust alignment, and (0.1) to adjust the size. \DeclareMathOperator*{\osum}{\ensuremath{     \begin{tikzpicture}[baseline=(char.base), inner sep=0, outer sep=0]         \draw (-0.3ex,0) circle (0.1);          \node (char) at (0,0) {$\displaystyle\sum$};  % Want to define a second symbol for inline...     \end{tikzpicture}}% }  \begin{document}  \[ G=\osum_a^b H \]  And now in inline mode the equation $G=\osum_a^b H$ is obviously too big.  \end{document}
107780
\documentclass [12pt]{article} \oddsidemargin=0pt \topmargin=0pt \textwidth=6.5in \textheight=8.5in \begin{document} \begin{center} {\large\bf\LaTeX\ Example 8} \end{center} Sometimes we have to typeset a sequence of calculations: \begin{align} \sum_{r=1}^k\left( l(r)-l(r-1)\right)  &amp;= \sum_{r=1}^k\left(N-2r+1\right) \\  &amp;= k(N+1)-2\sum_{r=1}^kr \\  &amp;= k(N+1)-k(k+1) \\  &amp;= k(N-k)  \end{align} \begin{quote} \begin{verbatim} \begin{align} \sum_{r=1}^k\left( l(r)-l(r-1)\right)  &amp;= \sum_{r=1}^k\left(N-2r+1\right) \\  &amp;= k(N+1)-2\sum_{r=1}^kr \\  &amp;= k(N+1)-k(k+1) \\  &amp;= k(N-k)  \end{align} \end{verbatim} \end{quote} Here is another way: \begin{eqnarray*}  \sum_{r=1}^k\left(l(r)-l(r-1)\right)  &amp;=&amp; \sum_{r=1}^k\left(N-2r+1\right) \\  &amp;=&amp; k(N+1)-2\sum_{r=1}^kr \\  &amp;=&amp; k(N+1)-k(k+1) \\ &amp;=&amp; k(N-k)  \end{eqnarray*} \begin{quote} \begin{verbatim} \begin{eqnarray*}  \sum_{r=1}^k\left(l(r)-l(r-1)\right)  &amp;=&amp; \sum_{r=1}^k\left(N-2r+1\right) \\  &amp;=&amp; k(N+1)-2\sum_{r=1}^kr \\  &amp;=&amp; k(N+1)-k(k+1) \\ &amp;=&amp; k(N-k)  \end{eqnarray*} Observations: \begin{itemize} \item The eqnarray environment is a displayed array with three columns.  It is aligned on the center column. \item The \verb+*+ supresses the generation of equation numbers. \end {itemize} ---Britney Wiggins \end{document}
55952
As can be seen in above picture, there are lots of fonts or font styles that can be used in math mode.  What are all the fonts or font styles I can use in math mode, and which packages are required in order to use them?  Let's assume I'm using standard Computer Modern or Latin Modern (lmodern) fonts.  Edit: It'd be great to see examples of what the different styles look like, probably via images.    I'm not interested in a reproduction of the picture, which can be found at ; the picture is for illustration purposes only. Furthermore, this is supposed to become a one-catches-all question for questions like the beforementioned. If I actually were looking for these fonts, I wouldn't just lazily ask here but look e.g. at  , tables 3.14 and 6.4 first.)
28788
The following code gives me an error:  \documentclass[12pt]{article} \usepackage[margin=2cm]{geometry} \usepackage [english]{babel} \usepackage{amsmath, amssymb} \usepackage{enumitem, array} \begin{document} {\begin{minipage}[t]{\textwidth} \begin{enumerate}[label=(\roman*)] {\setlength\itemindent{10pt}\item  \begin{equation*} \begin{array}{&gt;{\centering\arraybackslash}m{1.5cm}&gt;{\centering\arraybackslash}m{1.5cm}&gt;{\centering\arraybackslash}m{1.5cm}&gt;{\centering\arraybackslash}m{1.5cm}&gt;{\centering\arraybackslash}m{1.5cm}}  \hline x &amp; l_{[x]} &amp; d_{[x]} &amp; l_{x+1} &amp; \mathring{e}_{[x]} \\ \hline \end{array} \end{equation*}} \end{enumerate} \end{minipage}} \end{document}   Note: for various reasons, I have to keep minipage there. For some reason, this code gives me an error when it compiles. It gives the following output:     The errors either say there is a } missing or a $ missing. My eyes don't see such a thing!
114561
Could I get an example as to how these three elements (are these called metacharacters?) differ?  I know that * means all or nothing, but I am not sure if it's the right way to think about it. On the other hand . and ? seem the same. They match one character, right?