# Tag Info

3

This is a good example why I usually discourage using \left and \right indiscriminately. With \DeclarePairedDelimiter\norm{\lVert}{\rVert} you are defining the macro \norm that can be used in the following ways: \norm{x} \norm[\big]{x} \norm[\Big]{x} \norm[\bigg]{x} \norm[\Bigg]{x} \norm*{x} The simple call does nothing to the size of the delimiters, the ...

0

Finally with a lot of fine tuning, and clearly abusing of LaTeX capabilities, I managed a result I'm almost happy with. It only works for the specified variables I was using, but I'm posting it here because someone with somewhat the same problem might find it useful. \documentclass{article} \usepackage{amsmath} \usepackage{graphicx} \makeatletter ...

2

You have some trailing spaces in your code. However, I suppose you are looking for something like this: \documentclass{article} \usepackage{fancyvrb} \usepackage{xcolor} \newenvironment{code} {\VerbatimEnvironment \begin{SaveVerbatim}{VerbEnv}} {\end{SaveVerbatim}% \fboxsep=1pt \fcolorbox{black}{gray!30}{\BUseVerbatim{VerbEnv}}} ...

Top 50 recent answers are included