# Tag Info

0

I think the simplest (least complicated) solution is to use \phantom, as follows: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation*}\begin{array}{c} \phantom{\times99}384\\ \underline{\times\phantom{999}56}\\ \phantom{\times9}2304\\ \underline{\phantom\times1920\phantom9}\\ \phantom\times21504 \end{array}\end{equation*} ...

3

Since you specifically mention designing symbols using other techniques, here is an alternative. I import Karl's accepted solution just to show the comparison of the two. In the present solution, I use stacks to overlay glyphs, and I use the scalerel package to allow things to scale to the different math styles. \documentclass{article} ...

5

If you want to use only those two symbols from pxfonts without loading it, add the following lines in your preamble: \DeclareSymbolFont{symbolsC}{U}{pxsyc}{m}{n} \SetSymbolFont{symbolsC}{bold}{U}{pxsyc}{bx}{n} \DeclareFontSubstitution{U}{pxsyc}{m}{n} \DeclareMathSymbol{\medcirc}{\mathbin}{symbolsC}{7} \DeclareSymbolFont{symbolsZ}{OMS}{pxsy}{m}{n} ...

3

In this case, I finally succeeded in resolving the problem through a redefinition of \overline{}, so that an auxiliary macro is not needed. After several false starts, the approach that worked was to place an \overline atop the phantom of the 1st argument, and stack that in a left-aligned manner over a zero width item. I then followed that with #1, which ...

6

The basic syntax in math mode for subscripts and superscripts is <symbol>_{<subscript>}^{<superscript>} The order is immaterial, so also <symbol>^{<superscript>}_{<subscript>} is legal and the output would be the same. Note that this must go in math mode, either inline or display. So \eta_{p}^{2} is your friend. ...

3

Write \newcommand{\F}[1]{$\mathrm{F}_{#1}$}. This defines a macro which takes a single argument. You can then write \F1, which will expand to $\mathrm{F}_{1}$, \F2 which will expand to $\mathrm{F}_{2}$, etc. This form will work for any one letter argument, but you can also write \F{i,j} as short hand for $\mathrm{F}_{i,j}$.

9

This answer is initially motivated from David's answer. But to address the issues I raised in the comments a different perspective is needed. I have not thoroughly tested the code does in all circumstances what is hoped for. The aim is to use as few parentheses as possible. Update: the sentence about a different perspective is not quite exact. I started ...

19

Probably I don't have the precedence rules exactly as you need, but something like \def\p{0} \def\power#1#2{% \ifnum\p>20(\fi {\def\p{20}#1}^{\def\p{0}#2}% \ifnum\p>20)\fi} \def\product#1#2{% \ifnum\p>20(\fi {\def\p{20}#1#2}% \ifnum\p>20)\fi} \def\add#1#2{% \ifnum\p>10(\fi {\def\p{10}#1+#2}% \ifnum\p>10)\fi} \def\subtract#1#2{% ...

6


4

here's a possibility. admittedly, it will work only with computer modern and amsfonts, and i haven't tested it except at "normal" (text and display style) size. \documentclass{article} \usepackage{amsmath,amssymb} \newcommand{\Subseteq}{% \mathrel{% \lower.32ex\hbox{$\begin{matrix} \Subset\\[-1.78ex] \smash{-} \end{matrix}$} }} ...

3

Is this more what you are looking for? I have used the stackengine package for setting things vertically relative. The thicker square operators were created by laying two copies in close proximity (.2pt vertical and horizontal offset). The underlined subset placed a \rule under the \Subset. \documentclass{article} \usepackage[T1]{fontenc} ...

4

Long unbreakable objects are always a problem for good typesetting. I'd personally go with short names. You can bend LaTeX to break the names, though. I'd do it only in otherwise unsolvable situations; rewording paragraphs is usually the best way to solve bad line breaks. \documentclass{article} \sbox0{$\mathbf{\xdef\mybffam{\the\fam}}$} ...

0

I post a partial answer to my problem: I actually get the bar of the radicand as a densely sequence of dashes, but I also need to tell TeX how it has to raise this bar (see below). \newsymbol\trattino 1039 %to get dashes over the argument of the root (amssym.tex needed) \newbox\radicandobox \newbox\trattinobox \def\radice#1#2{% ...

4

In this case using directly \mathchoice seems preferable: \documentclass{article} \usepackage{fix-cm} % make font arbitrarily scalable \usepackage{amsmath} \newcommand{\malcev}{\mathbin{ \mathchoice {\mbox{\normalsize\textcircled{\scriptsize M}}} {\mbox{\normalsize\textcircled{\scriptsize M}}} {\mbox{\scriptsize\textcircled{\tiny M}}} ...

Top 50 recent answers are included