Math & Science ⇒ Command for custom Symbol
-
- Posts: 29
- Joined: Wed Jul 18, 2012 4:55 pm
Command for custom Symbol
Does anyone know the command for the symbol in the attached picture?
- Attachments
-
- Capture.PNG (3.28 KiB) Viewed 6970 times
Learning LaTeX for Finance and Actuarial Studies.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Command for custom Symbol
why don't you define a new command to insert the symbol using includegraphics?
Code: Select all
\newcommand{\ai}{
{\mathchoice
{ \includegraphics[height = 1.6ex]{yoursymbol}}
{ \includegraphics[height = 1.6ex]{yoursymbol}}
{ \includegraphics[height = 1.2ex]{yoursymbol}}
{ \includegraphics[height = 0.9ex]{yoursymbol}}
}}
- Attachments
-
- symbol.png (26.79 KiB) Viewed 6948 times
-
- YourSymbol.pdf
- (67.09 KiB) Downloaded 474 times
-
- YourSymbol.tex
- (566 Bytes) Downloaded 445 times
- Stefan Kottwitz
- Site Admin
- Posts: 10359
- Joined: Mon Mar 10, 2008 9:44 pm
Command for custom Symbol
\includegraphics
is a good idea if the a symbol is in pdf or eps format. A bitmap could be blurry.When I need such special things, I use TikZ, since I know how to draw with it, also inline. Here, I would define an operator for example like this:
Code: Select all
\documentclass{article}
\usepackage{tikz}
\DeclareRobustCommand{\newop}[2]{%
\vcenter{\hbox{\tikz[node distance=2.5ex]{%
\node (nominator) {\scriptsize $#1$};
\node[below of=nominator] {\scriptsize $#2$};
\draw[shorten <=0.5ex, shorten >=0.5ex, yshift=0.5ex]
(current bounding box.west) -| (current bounding box.south east);
}}}}
\begin{document}
\[
a\newop{i}{4} \qquad b\newop{i+j}{10}
\]
\end{document}
Change some dimensions if you like. I already used dimensions relative to the font size for automatic fitting.
Stefan
Re: Command for custom Symbol
I sometimes use this WYSIWYG-tool to optimize my drawings:
http://www.tikzedt.org/index.html
greez, tommy