Take the 2-minute tour ×
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.

How can i write my own math operator with limits? I want it to look like: \sum\limits_{e=1}^{m} but with a capital A (if possible bigger than the normal text) instead of the sum. Thanks for the help!

share|improve this question
    
Thanks for all the answers! really quick, really precise!! –  user6776 Jul 19 '11 at 8:35
add comment

migrated from stackoverflow.com Jul 18 '11 at 20:57

This question came from our site for professional and enthusiast programmers.

4 Answers

Use \mathop to turn A into a "math operator", and then use \limits to do sum-style limits:

 $$\mathop{A}\limits_{e=1}^{m}$$

Do you really want A, or do you want \bigwedge?

share|improve this answer
add comment

Use the \DeclareMathOperator* command provided by the amsmath package. Example:

\documentclass{article}
\usepackage{amsmath}
\DeclareMathOperator*{\Aop}{A}
\begin{document}
\[ \Aop^a_b \]
\end{document}
share|improve this answer
add comment
\newcommand{\opA}{\mathop{\vphantom{\sum}\mathchoice
  {\vcenter{\hbox{\huge A}}}
  {\vcenter{\hbox{\Large A}}}{\mathrm{A}}{\mathrm{A}}}\displaylimits}

In this way the "A" will be as large as the \sum symbol.

enter image description here

share|improve this answer
add comment
\documentclass{article}
\usepackage{amsmath}
\def\Aop{\operatornamewithlimits{%
  \mathchoice{\vcenter{\hbox{\huge A}}}
             {\vcenter{\hbox{\Large A}}}
             {\mathrm{A}}
             {\mathrm{A}}}}
\begin{document}

\[ \Aop^a_b \sum_a^b \]

$ \Aop^a_b \sum_a^b $

\end{document}

enter image description here

share|improve this answer
add comment

Your Answer

 
discard

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