# Tag Info

11

With an optional argument \documentclass[preview,border=12pt]{standalone} \usepackage{mathtools} \newcommand\ph[2][1em]{% \raisebox{-.5\height}{\rule{.5pt}{3pt}\rule{#1}{.5pt}\rule{.5pt}{3pt}}% \hspace{-.5\dimexpr#1+1pt\relax}\clap{#2}\hspace{.5\dimexpr#1+1pt\relax}} \begin{document} $1+\ph{}=3$, find $\ph[2em]{}$. Answer $\ph[3em]{2}$. ...

10

As already mentioned in comments, the nag package does its best to pick up not only use of TeX rather than LaTeX syntax but also deprecated LaTeX stuff. That is the best you can do with LaTeX2e because of the way the kernel itself and packages are written: they use TeX constructs without 'LaTeX wrappers'. One of the aims of the LaTeX3 Project is to develop ...

9

\documentclass{article} \begin{document} $$\mu_{A}(x)\in [0,1]$$ \end{document} If you change the expression to the one in your question then you get the error message ! LaTeX Error: Bad math environment delimiter. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... ...

8

Where did you "learn" that using $as a switch to initiate and terminate inline math mode is incorrect for LaTeX users? I'd go even further than @egreg does in his comment and state that not only is using$ to start and end inline math mode not wrong, it has certain advantages over $$and$$. Consider the following MWE: \documentclass{article} ...

8

A regular align (from amsmath) will do here: \documentclass{article} \usepackage{amsmath}% http://ctan.org/pkg/amsmath \begin{document} \begin{subequations} \begin{align} \omega_c &= \sqrt{\omega_{0}^{2} - \mu^{2}}, & \mu &< \omega_{0}, &\text{Underdamped} \\ \omega_c &= \sqrt{\mu^{2} - \omega_{0}^{2}}, & \mu &> ...

8

(very) light-weight method: \documentclass{article} \newcommand{\ph}{\texttt{\char32 }} \begin{document} $1+\ph=3$, find $\ph$. \end{document} I felt bad about not having used \textvisiblespace. And here comes something funny, in OT1 encoding, \textvisiblespace is actually done using rules: \OT1\textvisiblespace ->\mbox {\kern .06em\vrule ...

8

This is a TikZ based solution working for math and text. Usage Use \fib{<text/math>} to create a fill in box. Use the starred version to show the solution of a single box or \fibhideanswerfalse to show all solutions. With \tikzset{fill in/.style={<box style>}} or \tikzset{<underline/bracket> style/.style={<drawing style>}} the ...

8

You're not doing anything wrong, you're just wanting something that is not the default. The reason for the different \sqrts is because \rho and b (and l) have different height and depth, which \sqrt accommodates. Here are some alternatives (non-exhaustive) that tried to show you what is possible: \documentclass{article} \usepackage{mathtools}% ...

7

Never use align for a single equation. But it's not the cause for your problems. One is that you don't load amssymb, so \mathbb isn't defined. The second is that \limits doesn't make sense. \documentclass{article} \usepackage{amsmath,amssymb} \begin{document} \label{eq:time_marginal_condition} x \lVert x \rVert_{L^{2}(\mathbb{R})}^{2} ...

6

You have to declare the symbol as \mathord rather than \mathalpha. \documentclass{article} \usepackage{sansmath} \DeclareSymbolFont{extraup}{U}{zavm}{m}{n} \DeclareMathSymbol{\varheart}{\mathord}{extraup}{86} \begin{document} \sansmath{Is the following a filled heart? $\varheart a+b$} \end{document}

4

You are probably expecting iterated integral, not double integral. Hence \documentclass{article} \begin{document} \newcommand{\Int}{\int\limits} $$\Int_{-\infty}^{+\infty} \Int_{-\infty}^{+\infty}f(x,y) \,dxdy$$ \end{document}

4

Don't use flalign for left aligning displays; this is a job for the fleqn option. The problem is that a lonely \sqrt{\rho} shouldn't have too much space between the bar and the rho, but this obviously gives asymmetric results when square roots appear together like in $\sqrt{a}+\sqrt{b}$ There are several tricks for equalizing square root symbols, each ...

3

How's this? \documentclass[12pt]{article} \usepackage{ifthen} \newcommand{\exponent}[2] {% \ifthenelse{\equal{#1}{^}}% {a^{#2}b^{#2}c^{#2}}% {\ifthenelse{\equal{#1}{_}}% {a_{#2}b_{#2}c_{#2}}% {\message{## Warning: exponent command misused ##}#1#2}% }} \begin{document} Here is the exponent command: ...

3

One could define a macro called, say, \supsub, that takes two arguments -- the repeated material that goes in the superscripts and subscripts, resp. One or the other argument or even both arguments may be empty. \documentclass{article} % exploit the fact that \null is defined as '{}' \newcommand{\supsub}[2]{ a \if#1\null\else^{#1}\fi ...

3

Limit controls must be applied to a math operator. Try this: x \mathop{\left\| x \right\|}\limits_{L^{2}(\mathbb{R})}^{2} PS: You forgot the amssymb package in your MWE.

3

The following approach is directly adapted from David Carlisle's answer to Maintainable typesetting of placeholders in code snippets: \documentclass{article} \usepackage[usenames,dvipsnames]{xcolor} \usepackage{listings} \def\beginlstdelim#1#2#3% {% \def\endlstdelim{#2\egroup}% \ttfamily#1\bgroup\color{#3}\aftergroup\endlstdelim% } \lstset {% ...

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