Skip to main content

New answers tagged

0 votes

Creating operator with arguments above and below

You probably want a bigger Omega similar to a big Sigma (for summations). \documentclass{article} \usepackage{amsmath} \usepackage{graphicx} % https://tex.stackexchange.com/a/573852/4427 \...
egreg's user avatar
  • 1.1m
4 votes

Subscripting a custom \mathbin operator

You could define \foo to take an optional argument which, if non-empty, is to be placed in the right-subscript position next to \bullet. (Incidentally, \bullet has type mathbin by default.) \...
Mico's user avatar
  • 515k
4 votes
Accepted

Subscripting a custom \mathbin operator

Use the embellishment argument type for \NewDocumentCommand. \documentclass{article} \usepackage{amsmath} \NewDocumentCommand{\foo}{e{_}}{\mathbin{\bullet^{*}\IfValueT{#1}{_{#1}}}} \begin{document} ...
egreg's user avatar
  • 1.1m
2 votes

Subscripting a custom \mathbin operator

\documentclass{article} \def\fooA_#1{\bullet^*_{#1}} \def\fooB{\bullet^*} \makeatletter \def\foo{\@ifnextchar_{\fooA}{\fooB}} \makeatother \begin{document} $a\foo b$ $a\foo_p b$ \end{document}
hair-splitter's user avatar
5 votes

Subscripts in fractions on an exponent look terrible

Bad notation, I'd say. Your readers won't be very happy. \RequirePackage{fix-cm} \documentclass[11pt]{article} \usepackage{amsmath} %\DeclareMathSizes{5}{5}{4}{3}% for 10pt \DeclareMathSizes{6}{6}{5}{...
egreg's user avatar
  • 1.1m
8 votes

Subscripts in fractions on an exponent look terrible

In order for $Q^{\frac{1}{n_K}}$ to have a chance to look decent, TeX would have to provide not just two but, in fact, three subscript depth layers. TeX's two basic subscript and superscript depth ...
Mico's user avatar
  • 515k
3 votes

How to compact an expression in subscript vertically?

Some suggestions, in no particular order: When the amsmath package is loaded, the precise position of the 6 term can be adjusted via \uproot and \leftroot directives. I'd also decrease the space ...
Mico's user avatar
  • 515k
1 vote

How to compact an expression in subscript vertically?

I'm not sure why you're considering bad the output of that formula. Anyway, you can shift down the radical symbol by pretending that the radicand is deeper than it actually is. \documentclass{article} ...
egreg's user avatar
  • 1.1m
1 vote
Accepted

Locally delete ^ and _ in braces

One option is to do a little bit of catcode play that locally turns ^ and _ into active characters, and define the corresponding actions to be \@gobble. This way superscripts and subscripts will be ...
Willie Wong's user avatar
  • 25.7k

Top 50 recent answers are included