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.

I use $\Diamond$ as a product sign and want to have something like $\bigDiamond_{i=1}^{n}$ to note multiple $\Diamond$-products. Similar to $\wedge$ and $\bigwedge$ or $\vee$ and $\bigvee$. Is there a package for this problem?

share|improve this question
2  
this need is addressed in Define strange operators and How are big operators defined? also, welcome to the forum. –  barbara beeton Jun 22 at 20:09
1  
While the related questions are relevant, the answers don't really cover this particular case. –  egreg Jun 22 at 20:29

1 Answer 1

up vote 7 down vote accepted

For such a simple geometric symbol, scaling it seems the easiest road. You might want a larger factor than 1.2 for text style, adjust at will. However, 2 is the right scaling factor for display style.

\documentclass{article}
\usepackage{amssymb,graphicx}

\newcommand{\bDiamond}{\mathbin{\Diamond}}

\makeatletter
\newcommand\bigDiamond{\mathop{\mathpalette\bigDi@mond\relax}}
\newcommand\bigDi@mond[2]{%
  \vcenter{\hbox{\m@th
    \scalebox{\ifx#1\displaystyle 2\else1.2\fi}{$#1\Diamond$}%
  }}%
}
\makeatother

\begin{document}
\[
\bigoplus_{i=1}^n % just for comparison
\bigDiamond_{i=1}^n (a_i\bDiamond b_i)\quad
\textstyle\bigDiamond_{i=1}^n a_i\quad
\scriptstyle\bigDiamond_{i=1}^n a_i\quad
\scriptscriptstyle\bigDiamond_{i=1}^n a_i
\]
\end{document}

enter image description here

Don't use \Diamond for a binary operation or the spacing would be wrong; you need to use \mathbin{\Diamond}, which is what \bDiamond does.

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.