New answers tagged


\v(C) only works outside maths mode. For inside maths mode, use \check{C}. Thus (providing you are using the amsmath or mathtools packages), create your operator using: \DeclareMathOperator{\Cech}{\check{C}} and you can then do $\Cech_r(S)$ to get what you want.


Load \usepackage{mathabx} and then $L: \mathcal{V} \righttoleftarrow$ For more symbols, check here.


If you are typing in Spanish, load \usepackage[spanish]{babel} and you will have it available.


All you need to do is write \DeclareMathOperator{\tg}{tg}; this defines the command \tg to use the normal math font. Then, you can define \tgx to just be \tg x: \documentclass{article} \usepackage{amsmath} \DeclareMathOperator{\tg}{tg} \newcommand{\tgx}{\tg x} \begin{document} In a paragraph of normal text, $\sin x$, $\cos x$, $\tg x$, and $\tgx$. \textbf{ ...


When you declare a math operator, you should do so without specifying it as being formatted as \text. There is no mention of this requirement in the amsmath user guide (section 5.1 Defining new operator names): To define a math function \xxx to work like \sin, you write \DeclareMathOperator{\xxx}{xxx} whereupon ensuing uses of \xxx will produce ...


If you are sure that \grad will be followed by a fixed (but easily extendable) set of binary operators, this should work: \documentclass{article} \usepackage{amsmath} \usepackage{xparse} \DeclareMathOperator{\gradop}{grad} \ExplSyntaxOn % the list of admissible binary operators \tl_const:Nn \c_denis_grad_ops_tl { \cdot \wedge } ...


\DeclareMathOperator makes a \mathop atom, which are designed for use as prefix functions. In contexts where they are not being used as a prefix application, such as the higher order composition here you can always make a \mathord atom by surrounding with braces, {\grad} which will have the same spacing as \mathrm{grad}


You could use $m{\times}n$ so that you get mathord spacing (i.e. no extra space) rather than the default mathbin spacing,


\documentclass[]{article} \begin{document} $\lim_{a\to b}$ In Textmode $\lim\limits_{a\to b} \frac{a}{b}$ or \\ in Displaymode $\displaystyle \lim_{a\to b} \frac{a}{b}% \end{document}


It's a bug in breqn, which I always recommend not using. Workaround: use \hiderel whenever breqn has different ideas from the usual typesetting rules. You need to do similarly for every relation symbol you want in places like that. Note that amsmath is not required, but recommended anyway. \documentclass{article} \usepackage{amsmath} \usepackage{breqn} ...

Top 50 recent answers are included