Hot answers tagged


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


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{ ...


\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.


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


\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}


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 ...


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} ...


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 } ...


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

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