Tag Info

Hot answers tagged

10

Magic of \ooalign: \documentclass{article} \usepackage{graphicx} \newcommand{\trinum}[1]{\mathpalette\dotrinum{#1}} \newcommand{\dotrinum}[2]{{% \vphantom{\triangle}% \ooalign{% $#1\triangle$\cr\hidewidth\scaleraise{$#1#2$}\hidewidth\cr }% }} \newcommand{\scaleraise}[1]{% \raisebox{.2\height}{\scalebox{0.5}{#1}}% } \begin{document} Works fine ...


10

A TikZ solution with works in different sized for both math and text mode. \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes.geometric} \makeatletter \newcommand*{\trinum}{} \DeclareRobustCommand*{\trinum}[1]{% \ensuremath{% \mathpalette\@trinum{#1}% }% } \newdimen\trinum@sep \newdimen\trinum@rule \newcommand*{\@trinum}[2]{% % #1: ...


8

If you use the amsmath package, you could employ its \nobreakdash macro to insert a dash or en-dash after which no line break is allowed. Three examples (all from the user guide of the amsmath package): $p$\nobreakdash-adic $n$\nobreakdash-dimensional pages 1\nobreakdash--9 Basically, where you'd normally write - ("dash") in the input file, you would ...


3

Try: \documentclass{article} \usepackage{amsmath} \begin{document} Short version: \AmS-\LaTeX\par Manual version: \makeatletter {\AmSfont A\kern -.1667em\lower .5ex\hbox {M}\kern -.125emS}-L\kern -.36em{\sbox \z@ T\vbox to\ht \z@ {\hbox {\check@mathfonts \fontsize \sf@size \z@ \math@fontsfalse \selectfont A}\vss }}\kern -.15emT\kern -.1667em\lower ...


2

\documentclass{article} \usepackage{amsmath} \begin{document} \AmS-\LaTeX \end{document}


2

Or the Heiko Oberdiek version... contains a lot of logos you might need. % arara: pdflatex \documentclass{article} \usepackage{hologo} \begin{document} \hologo{AmSLaTeX} \end{document} Or you just type: \documentclass{article} \usepackage{lmodern} \begin{document} $\cal A$\kern-.1667em\lower.5ex\hbox{$\cal M$}\kern-.125em$\cal S$-\TeX \end{document} ...


2

With the babel package loaded there is \babelhyphen{nobreak} available (alongside \babelhyphen{soft}, \babelhyphen{hard} and a few others). While it prohibits a break after the dash the following word may still be hyphenated: $n$\babelhyphen{nobreak}dimensional The language ngerman (maybe others, too) defines a shorthand for a non-breaking hyphen: "~. ...



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