Text FormattingRenewcommand problem for \cdot

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
nifty
Posts: 16
Joined: Sat Oct 09, 2010 4:24 pm

Renewcommand problem for \cdot

Post by nifty »

I'm working on a book and the author wants the \cdot in the equations larger. I just can't seem to figure out how to redefine it. I tried redefining it using \renewcommand{\cdot}{\ensuremath{\bullet}} to see what it would look like. The dot is now too large. The author would like it somewhere in between the two. Any help would be appreciated.
Last edited by nifty on Sun Oct 10, 2010 5:52 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Renewcommand problem for \cdot

Post by gmedina »

Hi,

you could use a definition like the following:

Code: Select all

\documentclass{article}
\usepackage{amsmath}
\usepackage{graphicx}

\newcommand\bcdot{\ensuremath{%
  \mathchoice%
   {\mskip\thinmuskip\lower0.2ex\hbox{\scalebox{1.5}{$\cdot$}}\mskip\thinmuskip}}%
   {\mskip\thinmuskip\lower0.2ex\hbox{\scalebox{1.5}{$\cdot$}}\mskip\thinmuskip}%        
   {\lower0.3ex\hbox{\scalebox{1.2}{$\cdot$}}}%  
   {\lower0.3ex\hbox{\scalebox{1.2}{$\cdot$}}}%
}

\begin{document}

$a\cdot b$

$a\bcdot b$

\[ 2^{a\cdot b}  \]

\[ 2^{a{\bcdot} b}  \]

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
nifty
Posts: 16
Joined: Sat Oct 09, 2010 4:24 pm

Re: Renewcommand problem for \cdot

Post by nifty »

Thanks for the help. It didn't seem to change the size of the cdot, though. I changed the \cdot to \bullet and made it smaller and this worked. Thanks for the help.
praths
Posts: 1
Joined: Wed Jun 29, 2011 1:40 pm

Re: Renewcommand problem for \cdot

Post by praths »

To gmedina,
Hi - I was fishing google for a solution about getting a dot the size between \cdot and \bullet and found your answer very helpful. Thanks a lot :) and keep posting....
Post Reply