How can I draw like this picture in TeX?
Thank you so much. I found a solution in How to draw/fill half-open intervals on a ray of numbers? (tikz; incl. minimal ex.) However I can not make /////////////// in line.
How can I draw like this picture in TeX?
Thank you so much. I found a solution in How to draw/fill half-open intervals on a ray of numbers? (tikz; incl. minimal ex.) However I can not make /////////////// in line.
You can use this as a template for decoration
\documentclass[tikz]{standalone}
\usetikzlibrary{decorations.markings}
\begin{document}
\begin{tikzpicture}[mystyle/.style={decoration={
markings,% switch on markings
mark=% actually add a mark
between positions 0 and 1 step 1mm with {\draw (-1pt,-3pt) -- (1pt,3pt);},
pre length=3mm,post length=3mm}
}
]
\draw[postaction=decorate,mystyle,] (0,0) -- (3,0);
\end{tikzpicture}
\end{document}
Well, you really don't need to draw it, though you certainly could, using TikZ. However, I assumed that wasn't necessary, and created a simple solution. Since you have the image you want, I uploaded it, and used it in the document.
My code is
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\centering
\includegraphics{AWCME}
\end{document}
For a quick explanation, at the top, it says that we want a specific class of document, an article. This is the standard document class. The next line says we want to use a specific package, the graphicx package. This package allows us to include images. The next line begins the document. The line after that centers the image, and the next line includes the image. Finally, the document is ended.
I personally use sharelatex, and to upload an image in sharelatex, you click the button that has an up arrow, in the menu shown below
This code produces the result
just like you wanted.
Hope this helps!
pictureenvironment, even, if you really wanted. But if you're not comfortable enough with TikZ and you've already got the picture, I don't understand why you wouldn't just include it as an image, or draw it in a program like inkscape if it must be a vector image. Also I edited your post a bit "Help me!" comes across as a bit demanding towards a volunteer community and does not fit so well with the tone of this particular site :) – Au101 Aug 16 '16 at 18:53