I'm new to LaTeX and I'm using TeX Writer for iOS and I want to insert a new command "\dotplus" (symbolically: $\dotplus$) on my .text to .pdf. All I did was:
And I got three errors:
I have also saved the symbol's picture to PDF..
I'm new to LaTeX and I'm using TeX Writer for iOS and I want to insert a new command "\dotplus" (symbolically: $\dotplus$) on my .text to .pdf. All I did was:
And I got three errors:
I have also saved the symbol's picture to PDF..
In order to use \includegraphics you need to add \usepackage{graphicx} in your preamble (at the beginning of your document).
And fix the \newcommand{} statement like this:
\documentclass{article}
\usepackage{graphicx}
\newcommand{\dotplus}{\includegraphics[width=0.2in]{/dotplus.jpg}}
\title{}
\author{}
\date{}
\begin{document}
\dotplus
\end{document}
\includegraphics you want to use. Otherwise the engine won't know what to do with the command \includegraphics.
– Ichixgo
Apr 19 '16 at 15:56
there is a \dotplus symbol in the amsfonts collection. insert
\usepackage{amssymb}
in your preamble. then you can use \dotplus (in math) in the body
of your document. amssymb loads amsfonts automatically, so you
get access to a lot of other math symbols as well.
actually, this question should be considered a duplicate of How to look up a symbol or identify a math alphabet? but since you're coming from a totally non-tex site, i've given a detailed answer.
\dotplussymbol command defined if you\usepackage{amssymb}(the symbol is included inamsfonts, which is loaded automatically byamssymb). – barbara beeton Apr 20 '16 at 01:45\usepackage{amssymb}goes in the preamble. then you can use\dotplus(in math) in the body of your document. (a lot of other symbols become available too,) – barbara beeton Apr 20 '16 at 02:01