TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible without creating a new font to define a new math symbol (e.g. with \newcommand) and then use it with such commands as \limits, _ and ^ (up and down limits)?

For example, I define it like this:

\usepackage{graphicx}
\newcommand{\bigrint}{\scalebox{1.2}[1] {\rotatebox[origin=c]{15}{$\displaystyle\int$}}}
\newcommand{\rint}[2]{ \substack{\hspace{-4pt} #2 \\ \hspace{-5pt} \bigrint \hspace{-3pt}\\ #1}\hspace{-1pt} }

And I want to use it like \rint_1^2.

share|improve this question
    
related: tex.stackexchange.com/questions/671/… – Grigory M May 4 '11 at 20:56
    
up vote 8 down vote accepted
\documentclass[a4paper]{article}
\usepackage{graphicx,amsmath}
\newcommand{\bigrint}{%
  \hbox to .2em{\hss\scalebox{1.2}[1] {\rotatebox[origin=c]{15}{$\displaystyle\int$}}\hss}}
\newcommand{\rint}{\mathop{\bigrint}\displaylimits}

\begin{document}
\[\rint_a^b\]
\end{document}
share|improve this answer
    
Thank you, works and looks great! – gexahedron May 4 '11 at 22:53

Here is an alternative way which works I believe the same as you want:

\DeclareMathOperator{\di}{d\!}

\[
    \int\limits_a^b\! x\di x = \tfrac{1}{2}x^2\Big|_a^b
\]
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.