How do I add the TikZ symbol to a document? Examples of others are \TeX and \LaTeX.
121327
I know I can use the macros \TeX and \LaTeX for typesetting the names of TeX and LaTeX (including the necessary vertical alignment trick).  But how am I supposed to typeset "TikZ"? (I am asking because I'd like to mention TikZ in the Colophon of a book).
111710
I have to add .tif graphic in my LaTeX file, but it is not working.  \usepackage{graphicx}  \begin{figure}[h]     \begin{center}        \includegraphics[width=15mm]{myGraphic.tif}     \end{center} \end{figure}   After some research, .tif files won't work in pdfLaTeX or something. But I need to have my figure with .tif extension (not .jpg or others). How can I add .tif figure in my .tex file?
5853
I have problem to draw graphic with LaTeX (especially TikZ)?  Like this:
55849
I am trying to build a custom calendar using some features of TikZ. My starting point was a piece of code available in a comment of texample.net.   I would like to know if it is possible to mark some days with symbols different than circles. If you compile the code below, you will see that circles can be easily inserted in the calendar. Now I would like to know if someone could show me how to insert diamonds or triangles or squares and if possible filled with some color.  Thank you in advance for your help.  \documentclass[12pt]{article} \usepackage{lscape,tikz} \usepackage[brazil]{babel} \usepackage[latin1]{inputenc} \usepackage[margin=1in, paperwidth=15.8in, paperheight=8.5in]{geometry} \usepackage{geometry} \usepackage{amsmath,color,graphicx} \usepackage{amsfonts} \usepackage{amssymb} \definecolor{Red}{cmyk}{0,1,1,0} \def\red{\color{Red}} \definecolor{Blue}{cmyk}{1,1,0,0} \def\blue{\color{Blue}}  %%in preamble: % \Huge \usetikzlibrary{arrows,shapes} \usetikzlibrary{positioning,calendar,er} \usetikzlibrary{decorations.markings} \usetikzlibrary{shapes.geometric}  \newcommand{\calrow}[1]{\node[anchor=base east](seg){S}; \node[base right=of seg](ter){T}; \node[base right=of ter](qua){Q}; \node[base right=of qua](qui){Q}; \node[base right=of qui](sex){\ \!S}; \node[base right=of sex](sab){\ \!S}; \node[base right=of sab](dom){D}; \node[black,above=of qui]{\textbf{#1}};} \newcommand{\calperiod}[1]{\calendar[dates=\the\year-#1-01 to \the\year-#1-last] if(Sunday) [red] \holidays;} \newcommand{\holidays}{% holidays in Italy if (equals=01-15) {\draw (-0.348,0.135) circle (9.0pt);}% if (equals=01-06) [black!50]% if (equals=04-04) [black!50]% if (equals=04-05) [black!50]% if (equals=04-25) [black!50]% if (equals=05-01) [black!50]% if (equals=05-01) [black!50]% if (equals=06-02) {\draw (-0.25,0.135) circle (9.0pt);}% if (equals=08-15) [black!50]% if (equals=11-01) [black!50]% if (equals=12-08) [black!50]% if (equals=12-25) [black!50]% if (equals=12-26) [black!50]% } \colorlet{darkgreen}{green!50!black}   \begin{document}  \begin{tikzpicture} [every calendar/.style={week list}] %\node[star,draw,minimum size=.4cm,star point ratio=1.0,thick] at (calendar-\the\year-08-29){}; \sffamily \matrix[% row 1/.style={black,node distance=.3ex},% row 3/.style={black,node distance=.3ex}, column sep=1ex,% draw=black,thick,rounded corners=30pt,% postaction={decorate,decoration={markings,mark=at position 0.51 with {\node[fill=white,text=black,font={\bfseries\Large}] (year) {\the\year};}}} % year on frame: decorations.markings library ]{% % first row: week day and month \calrow{Janeiro} &amp; \calrow{Fevereiro} &amp; \calrow{Março} &amp; \calrow{Abril} &amp; \calrow{Maio} &amp; \calrow{Junho} \\ % second row: calendar \calperiod{01} &amp; \calperiod{02} &amp; \calperiod{03} &amp; \calperiod{04} &amp; \calperiod{05} &amp; \calperiod{06} \\[0.4cm] % third row: week day and month \calrow{Julho} &amp; \calrow{Agosto} &amp; \calrow{Setembro} &amp; \calrow{Outubro} &amp; \calrow{Novembro} &amp; \calrow{Dezembro} \\ % forth row: calendar \calperiod{07} &amp; \calperiod{08} &amp; \calperiod{09} &amp; \calperiod{10} &amp; \calperiod{11} &amp; \calperiod{12} \\ }; \end{tikzpicture} \end{document}    Edition.  To clean up the code, I remove the repetitions  pointed out by Ulrike Fischer as well some useless comments.
77389
could not figure out an answer to this one.  I have a tikz diagram using tikz/matrix, and I want to have a legend next to it, also using tikz/matrix. But I do not know how to refer to one particular matrix in the style definitons.  Let me visually show the problem:  \documentclass{article}  \usepackage{tikz} \usetikzlibrary{     positioning,     shapes.geometric,     matrix}  \begin{document}  \begin{tikzpicture} \tikzset{     status/.style={rectangle, draw=black, text centered, anchor=north, text=black, minimum width=2em, minimum height=2em},     mstyle/.style={column sep=10em, row sep=3em,nodes={status},font=\bfseries},     line/.style={draw,thick,-latex},     row 1 column 1/.style={nodes={fill=green}},     row 1 column 2/.style={nodes={fill=red}},     row 1 column 3/.style={nodes={fill=yellow}},     row 2 column 3/.style={nodes={fill=gray}},     row 2 column 2/.style={nodes={diamond}}, } \matrix(m)[matrix of nodes,ampersand replacement=\&amp;,mstyle]{     H \&amp; A1 \&amp; A2 \\       \&amp; {} \&amp; D \\ }; \tikzset{     status/.style={rectangle, draw=black, text centered, anchor=north, text=black, minimum width=2em, minimum height=2em},     m2style/.style={column sep=1em, row sep=1em,nodes={status},font=\bfseries}, } \matrix(m2)[right=of m, draw=black, matrix of nodes,ampersand replacement=\&amp;,m2style]{     H  \&amp; Healthy \\     A1 \&amp; Infected  \\     A2 \&amp; Infected  \\     D \&amp; Death  \\ }; \draw[line] (m-1-1) -- (m-1-2) node[pos=0.5,above,align=left] {$\#\mathrm{A1} \geq 1$ or\\$\#\mathrm{A2} \geq R$}; \draw[line] (m-1-2) -- (m-1-3) node[pos=0.5,above] {wait $\tau$ ticks}; \draw[line] (m-1-3) -- (m-2-3) node[pos=0.5,right] {wait 1 tick}; \draw[line] (m-2-3) -- (m-2-2) node[pos=0.5,above] {$p_\mathrm{replenished}$}; \draw[line] (m-2-2) -| (m-1-1) node[pos=0.2,above] {$1-p_\mathrm{infected}$}; \draw[line] (m-2-2) -- (m-1-2) node[pos=0.5,left] {$p_\mathrm{infected}$}; \end{tikzpicture}  \end{document}   I want tikzset to be limited to the scope of the first matrix m ....
20624
I apologize if this has already been covered in some other posts, but I couldn't find it anywhere and I'm not even sure if "brace diagram" is the correct name in English.  I have found some examples of probability trees, and some others that are close (like this: ), but while playing with them I couldn't get the correct output (The part of the first "text here" when out of boundaries into the brace).  What I'm trying to do is something like this with TikZ:    I know there are some ways to do this with mathmode, but I'm really interested in learning a little more about TikZ and how it works for diagrams like this.
80082
I want to draw something similar to this in latex. How can I do it? I want it to be a directed graph and want to be able to label the vertices.
28838
I'm using LaTeX with TikZ to create a (right-angle) triangle. Now I would like to label each angle by adding a half circle and a text label.  Unfortunately I only managed to create a label for the gamma angle. What do I need to do in order to put such a label into the remaining corners?  \begin{tikzpicture}[thick] \draw(0,0) -- (90:2cm) node[midway,left]{$opposite leg$} -- (0:4cm) node[midway,above right]{$hypotenuse$} -- (0,0) node[midway,below]{$adjacent leg$}; \draw[fill=lightgray, thick] (0,0) -- (0:0.8cm) arc (0:90:0.8cm) node at (45:0.5cm) {$\gamma$} -- cycle; \end{tikzpicture}
92535
I am creating multiple TikZ pictures within one document and would like to set the default style of arrow heads for all the pictures to the latex style, i.e. like -latex does, so that I don't have to do this every time I draw an arrow.  I'm new to TikZ, but have searched and must not be choosing the correct terms.
52691
I have a sentence like this "पठ् + अ + ति" and I want to add some notes like shown in the attached image. Is there a package for such things or I need to work with Tikz.   Any reference material or help would be appreciated.     ============Edited question based on Solution given by Gonzolo =========== Here is MWE and the output I am getting.   \documentclass{article} \usepackage{fontspec,xltxtra,xunicode} \usepackage{tikz} \usetikzlibrary{shapes.callouts} \setmainfont[Script=Devanagari,AutoFakeBold=3.5]{Sanskrit 2003} \definecolor{myblue}{RGB}{122,175,234}  \newcommand\tikzmark[1]{%   \tikz[remember picture,overlay]\node (#1) {};} \newcommand\MyNote[3][]{% \begin{tikzpicture}[remember picture,overlay] \node[rectangle callout, fill=myblue,text width=2cm,align=center,font=\sffamily\bfseries\color{white},#1] at #2 {#3};  \end{tikzpicture}% }  \begin{document}  पठ् \tikzmark{a}\qquad + अ + \tikzmark{b} ति ।  \MyNote[callout relative pointer={(0,1)}]{([yshift=-1.5cm]a)}{क्रिया को धारण करता है वह धातु है ।} \MyNote[callout relative pointer={(0,1)}]{([yshift=-1.5cm]b)}{"अ \&amp; ति" का कर्ता अर्थ को कह रहा है}  \end{document}
48373
I am trying to recreate this image in LaTeX:    So far, I have the following:   \documentclass[a4paper,12pt]{article}  \usepackage{tikz} \begin{document}  \begin{center}     \begin{tikzpicture}      \draw (2,3) circle (1.5cm);      \draw (4.5,3) circle (1.5cm);       \draw[red] (2,3)--(4.5,3)--(3.25,3.85)--cycle;      \filldraw[red] (2, 3) circle (1pt) node[left] {$c_{1}$};         \filldraw[red] (4.5, 3) circle (1pt)node[right] {$c_{2}$};        \end{tikzpicture} \end{center}  \end{document}
55592
Sorry if this question sounds too elementary. I am new to TikZ, although I have experience with LaTeX.  Say I have multiple TikZ statements in a LaTeX document like the following:  \tikz\draw[line width=2mm] (0,0.1) -- (4,0.1);\hfill\textsc{\Large This is a block}%  \hfill \tikz\draw[line width=2mm] (0,0.1) -- (4,0.1);   I would like to define variables (e.g. line_thickness and line_width:  line_thickness = 2mm line_width = 4   that I could use in all such statements so that, if I want to change the parameters of my drawings in my LaTeX document, I could just change the value of my variables where I define them.  Is it possible to do this in TikZ?  I am interested in a relatively general solution, e.g. some of these variables may specify color, length, relative coordinates, etc. although a solution to addresses my particular problem above would already help a lot.  I have read the solutions in these threads:        but I don't know how to apply the answers to my problem.
50804
Can you create diagrams of chemical structures in LaTeX?   Example(s) of "chemical structure diagrams":
93835
I want to use a custom symbol in my document that is treated like any other letter or math symbol by LaTeX. I do not want to  in order to create a new one but rather create one from scratch.  Is there a way to just create the symbol using, say, Inkscape and tell LaTeX to print that when I call a specific macro? There is of course the possibility of using \includegraphics[height=1em], but I imagine that that is not a very effective approach. Can I let LaTeX use my symbol like any other math symbol?  Do I have to  (consisting of only one character) or is it possible to this in a simpler manner?
25120
I was wondering if anyone had managed exporting .svg files to TikZ code. I do not mean include an .svg file into a latex document, but rather to obtain the code of an image so you can then edit it with TikZ.   I know that this has been done here:  using inkscape and the svg converter svg2tikz () but I cannot reproduce it after installing inkscape.   When I run inkscape, I get the following message on the console (I run it from the console):     (inkscape:8700): Gtk-CRITICAL **: gtk_misc_set_alignment: assertion `GTK_IS_MISC (misc)' failed   I can still import an image and export to TikZ path but I get the following error message in a pop-up window:     Inkscape encountered an internal error and will close now.   Automatic backups of unsaved documents were done to the following locations:   /home/squeeze/New document 1.2012_06_19_18_10_24.0.svg   and the exported .tex file shows the following code which does not reproduce the image and compiles to a blank page:  \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz}  \begin{document}  \begin{tikzpicture}[y=0.80pt,x=0.80pt,yscale=-1, inner sep=0pt, outer sep=0pt]   \begin{scope}[cm={{2.4087301,0.0,0.0,3.1036527,(-508.27381,-1163.9469)}}]     \begin{scope}[cm={{1.25,0.0,0.0,-1.25,(213.2835,636.20725)}}]       \begin{scope}[scale=0.100]         \begin{scope}[cm={{2304.0,0.0,0.0,1195.2,(141.732,141.732)}}]         \end{scope}       \end{scope}     \end{scope}   \end{scope}  \end{tikzpicture} \end{document}   Has anyone done it?  I run Debian Squeeze; Inkscape is 0.47 and the forum on the inkscape-svg converter is not really active so I thought someone may have done it here.  I do not wish to specifically use .svg; I use GIMP usually, so if there is such a way to do it in GIMP, I am happy to do it (even better).  Here is an example of an .svg image that fails the above procedure:
21033
I wish I knew how to draw the this commutative diagram with the TikZ package.    I would also like to know how to put subtitles in the diagram.
113168
If I compile the following code I get no error:  \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage{tikz}  \begin{document} \begin{tikzpicture} \draw [help lines] (-2,-2) grid (2,2); \draw plot [mark=*, samples at=    {22.5,67.5,112.5,157.5,202.5,247.5,292.5,337.5,22.5}] (\x:1); \draw[shift={(0 cm, 2*sin(67.5) cm)}] plot [mark=*, samples at={22.5,67.5,112.5,157.5,202.5,247.5,292.5,337.5,22.5}] (\x:1); \end{tikzpicture} \end{document}   Notice that I translate the second octagon using the vector (0,2*sin(67.5)) and the compiler seems to interpreter correctly the second component. On the other side, when I try to compile the following:  \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage{tikz}  \begin{document} \begin{tikzpicture} \draw [help lines] (-2,-2) grid (2,2); \draw plot [mark=*, samples at={22.5,67.5,112.5,157.5,202.5,247.5,292.5,337.5,22.5}] (\x:1); \draw[shift={(2*cos(67.5) cm, 0 cm)}] plot [mark=*, samples at={22.5,67.5,112.5,157.5,202.5,247.5,292.5,337.5,22.5}] (\x:1); \end{tikzpicture} \end{document}   I get an error message:  ! Package pgf Error: No shape named 2*cos(67 is known. See the pgf package documentation for explanation. Type H &lt;return&gt; for immediate help. ... l.11 \draw[shift={(2*cos(67.5) cm, 0 cm)}] plot [mark=*, samples at={22.5,67...   It seems that it doesn't recognize the vector (2*cos(67.5), 0), in particular the 2*cos(67.5) component... Can someone tell me why?   Thanks in advance.