Hot answers tagged

3

You can \boldmath but apply \unboldmath to \z: \documentclass{article} \usepackage{amsmath} \usepackage{booktabs} \newcommand{\z}{\mbox{\unboldmath$0$}} \begin{document} \[ \mbox{\boldmath $ \begin{pmatrix} \dot{\mathit{vx}} & \dot{\mathit{vy}} & \dot{x} & \dot{y} & F \\ \cmidrule(lr){1-5} \z & \z & -1 & \z & \\ \z & ...


2

\documentclass{article} \usepackage{xcolor} \begin{document} \colorbox{pink}{highlight}\\ \colorbox{green}{highlight}\\ \colorbox{yellow}{highlight}\\ \bfseries\colorbox{pink}{highlight + boldface}\\ \colorbox{green}{highlight + boldface}\\ \colorbox{yellow}{highlight + boldface}\\ \color{red}\colorbox{pink}{highlight + boldface + colored text}\\ \colorbox{...


1

Hmmm... several ideas (to be surrounded by \mathop, or \mathord — really do not know). You can change easily the thickness and proportion of the tikz symbol changing the line width, x and y keys, and align it with the baseline option. \documentclass{article} \usepackage{bm} \usepackage{tikz} \newcommand{\Exists}{\bm{\exists}\kern-0.6em\bm{\exists}} \...


1

Since we know \z expands to 0, we can collect every cell and compare its contents to 0 (using a string comparison - \pdfstrcmp): \documentclass{article} \usepackage{amsmath,collcell} \newcommand{\z}{0} % Zero entry \newcommand{\nonzero}[1]{\ifnum\pdfstrcmp{\z}{#1}=0 \z\else\mathbf{#1}\fi} \newcommand{\hdr}{\multicolumn{1}{c}} \newcolumntype{B}{>{\...


1

Note that I assume here that you are using TeX or pdfTeX as your engine (e.g. pdflatex or latex) rather than XeTeX or LuaTeX (e.g. lualatex or xelatex) as the framework you are using presumes a traditional font scenario (TeX fonts, virtual fonts etc.). Hyphenation and fonts in general are a different matter with the newer engines. This cannot be done for ...



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