Tag Info

Hot answers tagged

13

Here is a solution (it doesn't use, but I hope it will be compatible with enumitem) Note: I don't understand what the OP want to do with display math Limitation: blank lines not supported (this code will not work) \begin{mathitem} \item E=mc^2 \item e^{i\pi}+1=0 \item \text{ducks} + \text{caffeine} = \text{\url{http://i.stack.imgur.com/GVksc.gif}} ...


8

Know this: I do not know what I am doing... Caveat emptor... This uses the bm package to manage bold fonts for Times and the varbm package to manage bold fonts for Garamond. varbm.sty is just like bm.sty except that it works with the varbold maths version rather than the bold version. It does not, however, include anything corresponding to the support for ...


6

\if@display is a single token, not \if @display it is defined and documented as follows in amsmath: % The straightforward \cs{ifinner} test to see if the current math % context is non-display, fails if, for instance, we are typesetting % a multiline display within an \cs{halign}, with the pieces going % into constructions like % ...


6

(Answer modified to (i) add a "MathDescription" environment and (ii) demonstrate compatibility with the enumitem package.) Here's a LuaLaTeX-based solution. It defines three new environments called MathItemize, MathEnumerate, and MathDescription. The environments work just like the "ordinary" itemize, enumerate, and description environments, except that all ...


5

Quick and dirty: \documentclass{article} \makeatletter \newif\if@mathitemize \newif\if@closemathitem \let\orig@item=\item \renewcommand{\item}{\if@closemathitem$\fi\orig@item\if@mathitemize\@closemathitemtrue$\fi} \newenvironment{mathitemize}{\@mathitemizetrue\itemize\@closemathitemfalse}{$\enditemize} \makeatother \begin{document} \begin{itemize} \item ...


5

The 'showonlyrefs' option of mathtools makes the equation labels disappear. Cancel it out and you have the equation number back, as you requested: \documentclass{memoir} \usepackage{amssymb,amsmath} \usepackage[fixamsmath]{mathtools} \mathtoolsset{showmanualtags,mathic,centercolon} \newcommand{\uvec}{\mathbf{u}} \newcommand{\vvec}{\mathbf{v}} ...


3

Your code is ok. With a small modification (as suggested in comments of Ruben and Mico) and with assumption, that in your preamble is nothing what prevent shoving the equation number, the result is: Code: \documentclass[12pt,border=1mm,preview]{standalone} \usepackage{amssymb,amsmath} \renewcommand\u{\mathbf{u}} \renewcommand\v{\mathbf{v}} ...


3

If you declare a heavy math version you need to define some fonts for it, here I just make them the same as the bold ones (which just means that you are more or less bound to run out of 16 math fam, but you get bold brackets) \documentclass{article} \DeclareMathVersion{heavy} \renewcommand\rmdefault{mdugm} \newcommand\heavymath{\mathversion{heavy}} ...


2

This is probably a `feature' of the problematic equation environment (see various posts on this site). It disappears in the following example. \documentclass{minimal} \usepackage{mathtools} \mathtoolsset{showonlyrefs} \begin{document} \begin{gather} \label{eq} a=b \end{gather} This is an equation %\refeq{eq} \end{document}


1

use align instead of equation \begin{align}\label{eq} a &= b \end{align} This is an equation \refeq{eq}


1

The autonum package seems to be better at it: \documentclass{article} \usepackage{amsmath} \usepackage{autonum} \usepackage{lipsum} % for mock text \begin{document} \lipsum*[2] \begin{equation} \label{eq1} a=b \end{equation} This is an equation \eqref{eq1}. \lipsum*[2] \begin{equation} \label{eq2} a=b \end{equation} \lipsum[2] \end{document}


1

The curly braces are needed for arguments longer than 1 character, e.g. \frac{10}{17}. If you write \frac1017, this will be interpreted as \frac{1}{0}17.


1

The problem is not with the forest package itself, but rather lies the decision tree style (which can be, admittedly, found in the manual), which gets two oppurtunities to expand \nicefrac or \underset. edge label is used with the .expanded handler, in order to expand \forestoption{elo}. Solution: protect the content of the edge node, #3, by \unexpanded. ...



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