LaTeX forum ⇒ Math & ScienceSmaller \odot for a symbol index Topic is solved

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
User avatar
Cham
Posts: 816
Joined: Sat Apr 02, 2011 4:06 pm

Smaller \odot for a symbol index  Topic is solved

Postby Cham » Sat Aug 27, 2016 10:18 pm

I'm looking for a smaller version of the \odot symbol, to be used as an index to another symbol. Here's a MWE of the current \odot :

  1. \documentclass[12pt,letterpaper,twoside]{book}
  2. \usepackage{lmodern}
  3. \usepackage{amsmath}
  4.  
  5. \begin{document}
  6.  
  7. \begin{equation}
  8. t_{\odot} = t_{\star} = t_{\circ} = t_0 = t_{\bullet} = t_{\ast}.
  9. \end{equation}
  10.  
  11. \end{document}


The index shown on the left is a bit too large, compared with the \star index on the right. The variation t_{\circ} is nice, but I would prefer to have a small dot in the middle of the circle, since it's a bit looking like the "0" index. The \bullet index is too strong (it feels heavy !).

Is there a simple way in doing a smaller \odot, or a smaller \bullet ?

Tags:

User avatar
Stefan Kottwitz
Site Admin
Posts: 8529
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Sat Aug 27, 2016 10:32 pm

Quick idea: \mathrel of relsize.

  1. \usepackage{relsize}
  2. \newcommand*{\mydot}{\mathrel{\mathsmaller{\mathsmaller{\odot}}}}


I used \mathrel two times, even if it's hardly noticeable. But here it makes a difference:

  1. \[ x\odot x\mydot x\mathsmaller{\odot}x \]


Stefan
Site admin

User avatar
Cham
Posts: 816
Joined: Sat Apr 02, 2011 4:06 pm

Postby Cham » Sat Aug 27, 2016 10:35 pm

Interesting ! Is there another command to make it a bit smaller ? \mathsmaller isn't enough, I think.

User avatar
Stefan Kottwitz
Site Admin
Posts: 8529
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Sat Aug 27, 2016 10:45 pm

\scalebox of the graphicx package is another way. So you can resize as you want. One may not like to resize fonts this way, but a circle with a dot is so easy in shape.

  1. \usepackage{graphicx}
  2. \newcommand*{\mydot}{\mathrel{\scalebox{0.4}{$\odot$}}


Stefan
Site admin

User avatar
Cham
Posts: 816
Joined: Sat Apr 02, 2011 4:06 pm

Postby Cham » Sat Aug 27, 2016 10:51 pm

That one appears to be good ! Thanks a lot Stefan ! :)

User avatar
Cham
Posts: 816
Joined: Sat Apr 02, 2011 4:06 pm

Postby Cham » Sun Aug 28, 2016 4:54 pm

Just to say that I've found a nice alternative to my problem : use the pifont package for a good choice of dingbats :

  1. \documentclass[12pt,letterpaper,twoside]{book}
  2. \usepackage{lmodern}
  3. \usepackage{amsmath}
  4. \usepackage{tensor}
  5. \usepackage{pifont}
  6.  
  7. \begin{document}
  8.  
  9. \begin{equation}
  10. \tensor{t}{_{\circ}} = \tensor{t}{_{\text{\tiny{\ding{70}}}}} = \tensor{t}{_{\text{\tiny{\ding{89}}}}} = \tensor{t}{_{\text{\tiny{\ding{106}}}}} = \tensor{t}{_{\bullet}} = \tensor{t}{_0} = \tensor{t}{_{\star}}.
  11. \end{equation}
  12.  
  13. \end{document}
  14.  

User avatar
Cham
Posts: 816
Joined: Sat Apr 02, 2011 4:06 pm

Postby Cham » Sun Aug 28, 2016 6:02 pm

I just found that we can reduce the math symbol using a simple trick, without calling a new package :

  1. \tensor{t}{_{\text{\tiny{$\bullet$}}}}


or for the \odot :

  1. \tensor{t}{_{\text{\tiny{$\odot$}}}}

User avatar
Stefan Kottwitz
Site Admin
Posts: 8529
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Sun Aug 28, 2016 6:20 pm

This works at that place, but at an index position it's smaller as at a normal position and bigger than at an index of an index. That's why I started with the relative \mathsmaller.

But it's fine if it works for you. I just would make it to a macro via \newcommand, so you can adjust it at any time. Such constructs should not be repeated but used as macro definition.

Stefan
Site admin


Return to “Math & Science”

Who is online

Users browsing this forum: No registered users and 3 guests