7

I would like to use the command, $\sideset{_\sigma}{_f}\times$ without an error message. This command renders the way I want it to, (a times with a left subscript of \sigma, and a right subscript of f).

My issue however is that I would like to compile through this error without have to skip it. So my question is can I put a command on that line that will compile though just that line, while being able to troubleshoot around it. In particular I would like to skip a particular error. If not this, is their some other way I might be able to typeset this.

EDIT

Here is the code:

\documentclass[12pt]{article}
%\usepackage{MnSymbol}
\usepackage{amsmath,amssymb,amsfonts, xypic, mathrsfs, graphicx}
\usepackage[all]{xy}

\begin{document}
$\sideset{_g}{_f}\times$
\end{document}

Here is the error message:

./test2.tex:7:Limit controlsmust follow a math operator.

< argument > \times \nolimits

                                 _f
1.7 
$\sideset{_\sigma}{_f}\times

                             $
?
percusse
  • 157,807

2 Answers2

8

\sideset wants as its third argument an operator such as \sum; you get what you want by

\mathbin{_\sigma\times_f}
egreg
  • 1,121,712
  • See also this summary of solutions Left and right subscript – Andrew Swann Aug 19 '12 at 07:09
  • @AndrewSwann Here the "binary operation" nature of \times must be preserved, which isn't with \prescript. – egreg Aug 19 '12 at 10:30
  • I was thinking of two things: (1) the different range of possible commands listed there; (2) the vertical placing in the presence of a superscript on one side but not the other. It is good to note that any of them can be put inside \mathbin to make them into a binary operator, so e.g. one can write \( a \mathbin{\prescript{}{f}{\times}^N_f} b \) – Andrew Swann Aug 19 '12 at 17:43
  • @AndrewSwann The problem is that \prescript assumes the presence of a superscript, even if empty; so to get the symbol at the same height on both sides you have to supply an empty superscript: \prescript{}{\sigma}{\times}^{}_f. I'd prefer not using \prescript. – egreg Aug 19 '12 at 21:13
0

I didn't understand wat you want well but the sideset command should be in this format:

\sideset{_{left below} ^{left top}} {_{right below} ^{right top}} {a math operator like \sum}

Be successful.

Stefan Pinnow
  • 29,535
Hadi
  • 1