Tag Info

Hot answers tagged

9

An empty line in TeX should never be used just to arrange the source. It is an instruction exactly the same as the command \par which ends a paragraph and starts TeX's line breaking algorithm to split a paragraph into lines. So it is not allowed in display math and it should never be used on the line before display math either, in that position it does not ...


9

The .log excerpt of the updated question shows that the underscore is an active character, which is expanded, when the graphics package with driver pdftex.def looks for the file. Here you can deactivate the underscore token with \string: \includegraphics{normalization\string_analysis-002} The .log file shows that the underscore is made active by package ...


5

Use an extra pair of braces for the argument with scripts: $\diffp{V}{{c_{i}}}$ A complete example: \documentclass[12pt,letterpaper]{article} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{amsmath} \usepackage{esdiff} \begin{document} $\diffp{V}{{c_{i}}}$ \end{document} The extra pair of braces forms a group thus c_{i} is seen as ...


5

TeX uses macro replacement as its fundamental concept. When you say \newcommand{\foo}{<whatever>} you're instructing the program to replace every occurrence of \foo with <whatever>. In order for that \newcommand to work, the command \foo must be undefined at the moment \newcommand is performed. So with \newcommand{\mr}{\mathrm} you are ...


4

Not a serious answer but just for your information, there is physics package providing this and many other goodies. For details, refer to its documentation. \documentclass[12pt,letterpaper]{article} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{physics} \begin{document} \[\pdv{V}{c_{i}} \quad \pderivative{x} \quad \pdv{x} ...


3

Using the rgb option as package option to xcolor: \usepackage[rgb]{xcolor} or, passing it as a global option, to be picked up by xcolor, as in \documentclass[rgb]{article} \usepackage{xcolor} seem to work both in beamer and in article. A little example: \documentclass{article} \usepackage[rgb]{xcolor} \usepackage{tikz} ...


3

Define \olok within the document preamble, not inside the document where you'll have other content-related information: \documentclass{article} \usepackage{amssymb,graphicx} \usepackage[turkish]{babel} % Document-related definitions \newcommand{\olok}{\rotatebox[origin=c]{135}{$\twoheadrightarrow$}} \begin{document} \olok \end{document} The above ...


2

Your code was lacking a } to close the preamble of the first blockarray environment. Also, it appears the text on the right of the braces (\Right{\}}{some text}}: has 0-width in the blockarray environment. A work around to achieve centring of this environment consists in adding after \end{blockarray} an \hphantom{some text}. Though not perfect, it seems to ...


2

The first column is already declared in math mode with >{$} and <{$}, so what you have in the last row is, after all substitutions $ $\sigma$\textsubscript{f} $ which causes \sigma to be outside of math mode. So just omit $. You shouldn't use \textsubscript. Here's a better version that avoids specifying \hspace{0.5cm} every time. ...


1

I had this error for quite a while this morning. The only way to handle this is to wait some time. The problem is lying on the server side as changes of IP or election of another mirror did not do the trick here. In case, you get this error again, you may want to report that to the maintainer.



Only top voted, non community-wiki answers of a minimum length are eligible