I could create a page like this:  using the following code:  \documentclass{article}   \usepackage{tikz} \usetikzlibrary{fit, calc}  \usepackage{fontspec} \newfontfamily{\myfont}{Arial} \usepackage{marginnote} \newcommand\commentary[2]{% \tikz[remember picture, baseline={(here.base)}] \node (here) {#1};% \marginpar{ \begin{tikzpicture}[remember picture, overlay]  \begin{scope}[rotate=(rand*10),shift={(1.8,0)}]     \node [text width=3cm, align=center, transform shape] (text) at (0, 0)   {\footnotesize \myfont #2};     \draw [transform shape, thick] plot [smooth, tension=0.8] coordinates {       ($(text.south) + (-10pt, -5pt) + (rand * 2pt, rand * 2pt)$)        ($(text.south east) + (-5pt, 5pt)$)       ($(text.north east) + (rand * 2pt - 5pt, rand * 2pt)$)       ($(text.north west) + (rand * 2pt + 5pt, rand * 2pt)$)       ($(text.south west) + (rand * 2pt + 5pt, rand * 2pt)$)       ($(text.south) + (10pt, -3pt) + (rand * 2pt, rand * 2pt)$)     }; \end{scope} \draw[-&gt;, thick] ($(text.south west) - (-10pt, 5pt)$)  to [bend left=20] ($(here.south east) - (3pt, 2pt)$); \end{tikzpicture}  }  }  \begin{document}  The equation of a plane through $(x_0,y_0,z_0)$ \commentary{is:}{The tangent   plane: $\nabla f(\mathbf{x})\cdot (\mathbf{x}-\mathbf{x}_0)=0$.} $$a(x-x_0)+b(y-y_0)+c(z-z_0)=0$$  The vector $(a,b,c)$ is normal to the plane.     \end{document}   1) How can put the head of the arrow to the equation (for example to + sign in the display question) instead of a word in the text (intead of "is :" in this example)?  (2) How can I move the text bubble 1 cm to up or down?
30263
I just read a book "Linear Algebra and Its Applications 4E" by David C. Lay. The book is (should be) LaTeX typeset. The matrix and equations are so nice, please see the following 3 examples:        It's so beautiful, so I want get the same effect inside my paper. Here is my code:   \usepackage{amsmath} \usepackage{colortbl} \newcommand\y{\cellcolor{clight2}} \definecolor{clight2}{RGB}{212, 237, 244}%  %%% \[A=\left[ \begin{array}{ccccc} \y 0 &amp; -3 &amp; -6 &amp; 4 &amp; 9 \\    -1 &amp; \y -2 &amp; -1 &amp; 3 &amp; 1 \\ -2 &amp; -3 &amp; 0 &amp; \y 3 &amp; -1 \\ 1 &amp; 4 &amp; 5 &amp; -9 &amp; -7      \end{array} \right]\]  \[A=\left[\begin{array}{cccccc} \rowcolor{clight2} 3 &amp; -9 &amp; 12 &amp; -9 &amp; 6 &amp; 15\\ 0 &amp; 2 &amp; -4 &amp; 4 &amp; 2 &amp; -6 \\ 0 &amp; 3 &amp; -6 &amp; 6 &amp; 4 &amp; -5 \end{array} \right]\]   And the result:     But how to add these arrows??
43938
The folowing code works correctly inside Texlipse together with Miktex 2.9 x64. The tikzexternalize option is used to speed up the compilation process, just make sure the  mode is enables exclicitly passing the -shell-escape argument to the compiler.  \documentclass{article}  \usepackage{tikz} \usetikzlibrary{external} \tikzexternalize[prefix=figures/]  \begin{document}  \begin{tikzpicture} \node[draw, circle, minimum width=1cm] {}; \end{tikzpicture}     \end{document}   Now, when the article class is replaced by the abntex2 class as the following code, the pdf file is not generated inside figures folder any longer.  \documentclass[     % -- opções da classe memoir --     12pt,               % tamanho da fonte     openright,          % capítulos começam em pág ímpar (insere página vazia caso     % preciso)     twoside,            % para impressão em verso e anverso. Oposto a oneside     a4paper,            % tamanho do papel.     % -- opções da classe abntex2 --     %chapter=TITLE,     % títulos de capítulos convertidos em letras maiúsculas     %section=TITLE,     % títulos de seções convertidos em letras maiúsculas     %subsection=TITLE,  % títulos de subseções convertidos em letras maiúsculas     %subsubsection=TITLE,% títulos de subsubseções convertidos em letras maiúsculas     % -- opções do pacote babel --     english,            % idioma adicional para hifenização     french,             % idioma adicional para hifenização     spanish,            % idioma adicional para hifenização     brazil              % o último idioma é o principal do documento     ]{abntex2}  \usepackage{tikz} \usetikzlibrary{external} \tikzexternalize[prefix=figures/]  \begin{document}  \begin{tikzpicture} \node[draw, circle, minimum width=1cm] {}; \end{tikzpicture}  \end{document}   Then the console shows the following information where the main tex file name is DissDaniel.tex:  pdflatex.exe&gt; ===== 'mode=convert with system call': Invoking 'pdflatex -shell-escape -halt-o pdflatex.exe&gt; n-error -interaction=batchmode -jobname "figures/DissDaniel-figure0" "\def\tikz pdflatex.exe&gt; externalrealjob{DissDaniel}\input{DissDaniel}"' ======== pdflatex.exe&gt;  pdflatex.exe&gt; ! Package tikz Error: Sorry, the system call 'pdflatex -shell-escape -halt-on-e pdflatex.exe&gt; rror -interaction=batchmode -jobname "figures/DissDaniel-figure0" "\def\tikzext pdflatex.exe&gt; ernalrealjob{DissDaniel}\input{DissDaniel}"' did NOT result in a usable output  pdflatex.exe&gt; file 'figures/DissDaniel-figure0' (expected one of .pdf:.jpg:.jpeg:.png:). Plea pdflatex.exe&gt; se verify that you have enabled system calls. For pdflatex, this is 'pdflatex - pdflatex.exe&gt; shell-escape'. Sometimes it is also named 'write 18' or something like that. Or pdflatex.exe&gt;  maybe the command simply failed? Error messages can be found in 'figures/DissD pdflatex.exe&gt; aniel-figure0.log'. If you continue now, I'll try to typeset the picture. pdflatex.exe&gt;  pdflatex.exe&gt; See the tikz package documentation for explanation. pdflatex.exe&gt; Type  H &lt;return&gt;  for immediate help. pdflatex.exe&gt;  ...                                               pdflatex.exe&gt;                                                    pdflatex.exe&gt; l.32 \end{tikzpicture}
123344
\documentclass{standalone} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=1.15}  \begin{document}     \newcommand{\xmax}{14}     \newcommand{\fmin}{(pi/3)}     \newcommand{\fmax}{(2*pi)} \begin{tikzpicture}[domain=0:\xmax, samples=500]  \draw[ultra thick, red] plot (\x, {sin(deg(exp(ln(\fmin)+\x/\xmax*(ln(\fmax)-ln(\fmin)))*\x))} );  \end{tikzpicture} \end{document}   I would understand if LaTeX repeat the code below this statement many times.
77380
Consider the following code:   \begin{document}    \begin{figure} \begin{tikzpicture}[&gt;=stealth',shorten &gt;=1pt,auto,node distance=5 cm, scale = 1, transform shape]   \node[initial,state] (A)                                    {$s_0$}; \node[state]         (B) [right of=A]                       {$s_2$}; \node[state]         (C) [above of=B]                       {$s_1$}; \node[state]         (D) [below of=B]                       {$s_3$};  \path[-&gt;] (A) edge [left]       node [align=center]  {$ c = c + 1 $} (C)       (A) edge [above]      node [align=center]  {$ c = c + 5 $} (B)       (A) edge [left]       node [align=center]  {$ c = c - 1 $} (D)       (B) edge [right]      node [align=center]  {$ c = c - 1 $} (D)       (C) edge [loop above] node [align=center]  {$ c = c + 1 $} (C)       (D) edge [loop below] node [align=center]  {$ c = c - 2 $} (D);  \end{tikzpicture} \caption{An example of SST} \end{figure}  \end{document}   I get the following automaton :    How can I draw S2 and S4 as final states (double circle)?
94465
I have the following Beamer slide:  \documentclass{beamer}  \usepackage{tikz} \usetikzlibrary{shapes,arrows}  \tikzstyle{decision} = [diamond, draw, fill=blue!20, text width=4.5em, text badly centered, node distance=3cm, inner sep=0pt] \tikzstyle{block} = [rectangle, draw, fill=blue!20, text width=5em, text centered, rounded corners, minimum height=4em] \tikzstyle{line} = [draw, -latex    ] \tikzstyle{cloud} = [draw, ellipse,fill=red!20, node distance=3cm, minimum height=2em]  \begin{document}  \begin{frame}{Simulated Annealing (SA)}     \begin{center}         \begin{tikzpicture}[node distance = 2cm, auto]             \node[block]                  (init){Init $n=0$, $T_0$, and $S_0$};             \node[block, below of=init]   (nbrh){$S_{n+1}=N(S_n)$};             \node[decision, below of=nbrh](ovgt){$f(S_{n+1}) \le f(S_n)$};             \node[block, below of=ovgt]   (accp){Accept $S_{n+1}$};             \node[decision, right of=ovgt](rand){$e^{-\frac{\Delta f}{t_n}}$};             \node[block, right of=nbrh]   (rejj){Reject $S_{n+1}$};             \node[block, below of=accp]   (incr){$T_{n+1} = K(T_n)$ and $n++$};             \node[block, below of=incr]   (stop){Stop};             \node[decision, left of=stop] (stcd){Stop?};              \path[line] (init) --          (nbrh);             \path[line] (nbrh) --          (ovgt);             \path[line] (ovgt) -- node{yes}(accp);             \path[line] (ovgt) -- node{no} (rand);             \path[line] (rand) -- node{no} (rejj);             \path[line] (rejj) --          (nbrh);             \path[line] (rand) |- node{yes}(accp);             \path[line] (accp) -|          (stcd);             \path[line] (stcd) -- node{yes}(stop);             \path[line] (stcd) |- node{no} (nbrh);         \end{tikzpicture}     \end{center} \end{frame}  \end{document}   and I got the code mostly from .  The only problem is that it doesn't fit in the beamer slide. It isn't auto scaled, and it runs way off the bottom.  I have tried adding scale = 0.25 to the \begin{tikzpicture}[] but that didn't do anything at all.  Is there any way to auto-fit the whole tikzpicture into the available space in my frame?    Bonus question: Why is Reject S_{n+1} not horizontally aligned with the exponential decision underneath, and as such - why is the arrow connecting them at an angle? (i.e., how is this fixed?)
84002
I'm writing a manual for a class, and I never liked add images as files in my tex, so I'm drawning the logo with this code:   \documentclass{article} \usepackage{tikz} \begin{document} \definecolor{xdxdff}{rgb}{0.5,0.5,1.} \definecolor{qqqqff}{rgb}{0.,0.,1.} \definecolor{cqcqcq}{rgb}{0.75,0.75,0.75} \begin{tikzpicture} \clip(-4.42,-1.90) rectangle (8.03,4.69); \draw [color=red,fill=red,fill opacity=1.0] (-0.67,1.06) circle (2.41cm); \draw [color=white,fill=white,fill opacity=1.0] (-0.66,1.71) circle (1.92cm); \draw [shift={(-0.05,2.21)},color=red]  plot[domain=2.01:4.03,variable=\t]({1.*1.40*cos(\t r)+0.*1.40*sin(\t r)},{0.*1.40*cos(\t r)+1.*1.40*sin(\t r)}); \draw [shift={(-1.60,0.27)},color=red]  plot[domain=-0.48:0.92,variable=\t]({1.*1.08*cos(\t r)+0.*1.08*sin(\t r)},{0.*1.08*cos(\t r)+1.*1.08*sin(\t r)}); \draw [shift={(-1.26,1.06)},color=red]  plot[domain=-1.12:0.68,variable=\t]({1.*1.43*cos(\t r)+0.*1.43*sin(\t r)},{0.*1.43*cos(\t r)+1.*1.43*sin(\t r)}); \draw [shift={(0.42,3.0)},color=red] plot[domain=2.72:4.22,variable=\t]({1.*1.18*cos(\t r)+0.*1.18*sin(\t r)},{0.*1.18*cos(\t r)+1.*1.18*sin(\t r)}); \end{tikzpicture} \end{document}   which gives me this image   How can I color red the thing in middle?
16899
Do you know an elegant way to align multiline nodes according to first line, e.g. for use in a legend?  Compare this example:  \documentclass{article} \usepackage[%   paperwidth=7.5cm,%   paperheight=5.5cm,%   margin=0.25cm,%   marginparwidth=0cm,%   centering,% ]{geometry} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{xcolor} \usepackage{tikz} \usetikzlibrary{positioning} \pagestyle{empty} %%%%%%%%%%%%%%%% \begin{document} \sffamily %--------------------------------------% \newlength{\tikztwo} \settowidth{\tikztwo}{\,two (2) lines\,} \newlength{\tikzthree} \settowidth{\tikzthree}{\ three (3)\,} %--------------------------------------% \begin{tikzpicture}[very thick,every node/.style={node distance=0.2cm}]   % The grid:   \draw[step=0.1cm,very thin, lightgray] (0,0) grid (6,4.5);   \draw[step=0.5cm,thin, gray] (0,0) grid (6,4.5);   %------------------------------------------------%   % Only for comparison:     \draw[blue,text=black] (0.25,3.5) -- (1,3.5)       node[anchor=west]{one line entry};   %------------------------------------------------%     % No positioning at all, "anchor=north west" is even worse:     \draw[magenta,text=black] (3.25,3.5) -- (4,3.5)       node[anchor=west,text width=\tikztwo]{two lines entry 0};   %------------------------------------------------%     % First attempt, node (A) only for positioning:     \draw[green] (0.25,2.5) -- (1,2.5) node[anchor=west](A){two};     \draw (2.12,2.285) node[text width=\tikztwo]{two (2) lines entry 1};     % Second attempt, node (posA) only for positioning:     \draw[green] (3.25,2.5) -- (4,2.5) node[anchor=west](nodeA){} node[anchor=west](posA){two}       node[below right=-0.439cm and -0.276cm of nodeA,text=black,text width=\tikztwo]       {two (2) lines entry 2};   %------------------------------------------------%     % First attempt, node (B) only for positioning:     \draw[red] (0.25,1.5) -- (1,1.5) node[anchor=west](B){three};     \draw (1.88,1.048) node[text width=\tikzthree] {three (3) lines entry 1};     % Second attempt, node (posB) only for positioning:     \draw[red] (3.25,1.5) -- (4,1.5) node[anchor=west](nodeB){} node[anchor=west](posB){three}       node[below right=-0.411cm and -0.276cm of nodeB,text=black,text width=\tikzthree]       {three (3) lines entry 2}; \end{tikzpicture} \end{document}   You can see first a two line node without positioning. After that I show the two attempts to manage what I want. Both have drawbacks, though: With both the positioning is done manually. With he first one you have to change the coordinates of the nodes, if you change the coordinates of the path. With the second this one does not happen, but you have to change the coordinates, if you change the text, exactly if a sign with uppercase length is added or removed (remove the number with the brackets for a test). Also it is not intuitive, that there I have to change the second coordinate to have an effect in the x-axis and vice versa.  BTW: The nodes that I marked “only for positioning” can be removed or commented out after the work is done.
102369
Well I "can" do this using the koma options.. However it results in a warning and the effect isn't completelly what I like it to be.  First the way I do it is:   \clearpage \KOMAoptions{paper=A3,paper=portrait} \recalctypearea  \chapter{Chosen airfoil and wing shape} \label{app:cad-airfoil}    \clearpage \KOMAoptions{paper=A4,paper=portrait} \recalctypearea   Now this results in a warning as follow:     /appendixAirfoil.tex: Package typearea Warning: Bad type area   settings! (typearea) The detected line width is about 55% (typearea)   larger than the heuristically detected line width. (typearea) You   should e.g. decrease DIV, increase fontsize (typearea) or change   papersize.   Another problem I have with above is that the margins are still relative to the paper size. Making the margins ridiculously large, and the actually area where I can put the cad drawing very small. (Ok I could put the cad at an offset from the margin, however then the accompanying text looks weird staring at a random position).  So How can I fix this problem with the margins (or problems, though I think it is the same one?). - Preferably just keep the same margins as A4 sheets, and if that's not easily possible manually set them?
9436
I want to put my tikzpicture nicely between paragraphs. How do I do that? I do not want  to put it in a picture environment because than there is extra space underneath.  \documentclass[11pt,a4paper,addpoints]{exam} \unframedsolutions %\printanswers \usepackage{tikz} \usepackage{graphicx} \usepackage{geometry} \usepackage{calc}  \newgeometry{left=2cm,top=2cm,right=2cm,bottom=2cm}  \begin{document} \begin{questions}   Line above tikzpicture.  \begin{tikzpicture}[rounded corners=5mm] \path node[rectangle,draw=green,fill=green!8,inner sep=.70cm] {\parbox{\textwidth-1.4cm-\fboxrule}{  \question[2] What is the first question? \begin{solutionorlines}[4cm] This box is smaller than when the solutions are not printed. How do I make this the same dimension as when answers are not printed? \end{solutionorlines} }}; \end{tikzpicture}  Line under tikzpicture. I don't want this. I want the tikzpicture between paragraphs.  \end{questions} \end{document}
74499
In order to improve readability of some texts, I'd like to put a kind of "eyeliner" around my letters (actually, that's how memes manage to get readable texts on any picture).  Here is an exemple of what I have:    And what I want:    You can use if needed some lua code, as I'll use it with lualatex (and custom fonts).  Thank you!  MWE:  \documentclass{article} \usepackage{tikz} \begin{document} \tikz\node[fill=red,circle]{\color{white}\textbf{Hello} world}; \end{document}   --EDIT--  As stated in the comments, the contour package works great, except with custom fonts. Any idea for  (compile with lualatex and put the font .ttf file in the font/ folder):  \documentclass{article} % Special font \usepackage{fontspec} \setmainfont[Path=fonts/]{Heartbeat_in_Christmas.ttf}  \usepackage{tikz} \usepackage[outline]{contour} \begin{document} \tikz\node[fill=red,circle]{\contour{black}{\protect\color{white}\textbf{Hello} world}}; \end{document}   -- EDIT 2 --  I found the solution when I use lualatex: I just need to use \usepackage{contour} instead of \usepackage[outline]{contour}!  -- EDIT 3 -- The solution of using with pdfrender + tikz to superpose texts works also great, except for a few chars with sharp angles:    Here is the text:      \begin{tikzpicture} \node at (0,0) {%         \textpdfrender{           TextRenderingMode=FillStrokeClip,           LineWidth=.8mm,           FillColor=white,           StrokeColor=black,         }{mmmnnn}%       };       \node at (0,0) {mmmnnn};     \end{tikzpicture}   -- EDIT 5 -- Adding MiterLimit=1 avoid these strange shark edges, now it's better, there is just a minor hole in the letters m and n, in my font, but it's not important:    Thank you!
101373
If I have a document like this:  \documentclass[landscape, 12pt]{report}  \usepackage[landscape]{geometry}  \usepackage[utf8x]{inputenc} \usepackage[T1]{fontenc}  \usepackage{amsmath, amssymb, graphics, setspace} \newcommand{\mathsym}[1]{{}} \newcommand{\unicode}[1]{{}} \newcounter{mathematicapage}  \begin{document}    \begin{equation}\label{Equation:Naive_Bayes_Classifier}     P\left(H_h|E_1,E_2,\ldots ,E_e,\ldots    E_{\mathbb{E}}\right)=\frac{P\left(H_h\right) P\left(E_1|H_h\right)    P\left(E_2|H_h,E_1\right) \text{$\ldots $P}     \left(E_e|H_h,E_1,E_2,\ldots ,E_{e-1},E_{e+1} \ldots, E_{\mathbb{E}}\right) \text{$\ldots    $P}     \left(E_{\mathbb{E}}|H_h,E_1,E_2,\ldots ,E_{\mathbb{E}-1}\right)}{ P\left(E_1,E_2,\ldots,E_e, \ldots    ,E_{\mathbb{E}}\right)} \end{equation} \end{document}   How can I auto adjust this equation to appear in the entire page, using all horizontal space? (Without badboxes or smaller than the width of the page?)  If is there a kind of scale to use in equations, giving explicity how greater the equation should become, this solver my problem too.
51164
I'm trying to write the following matrices.    I used the following code (given by )  \documentclass{article} % Load TikZ \usepackage{tikz} \usetikzlibrary{matrix,decorations.pathreplacing,calc} % Set various styles for the matrices and braces. It might pay off to fiddle around     with the values a little bit  \pgfkeys{tikz/mymatrixenv/.style={decoration=brace,every left delimiter/.style=    {xshift=3pt},every right delimiter/.style={xshift=-3pt}}}  \pgfkeys{tikz/mymatrix/.style={matrix of math nodes,left delimiter=[,right delimiter=    {]},inner sep=2pt,column sep=1em,row sep=0.5em,nodes={inner sep=0pt}}}  \pgfkeys{tikz/mymatrixbrace/.style={decorate,thick}}  \newcommand\mymatrixbraceoffseth{0.5em}  \newcommand\mymatrixbraceoffsetv{0.2em}  % Now the commands to produce the braces. (I'll explain below how to use them.) \newcommand*\mymatrixbraceright[4][m]{ \draw[mymatrixbrace] ($(#1.north west)!(#1-#3-1.south west)!(#1.south west)-    (\mymatrixbraceoffseth,0)$)     -- node[left=2pt] {#4}      ($(#1.north west)!(#1-#2-1.north west)!(#1.south west)-(\mymatrixbraceoffseth,0)$); }  \newcommand*\mymatrixbraceleft[4][m]{  \draw[mymatrixbrace] ($(#1.north east)!(#1-#2-1.north east)!(#1.south east)+    (\mymatrixbraceoffseth,0)$)     -- node[right=2pt] {#4}       ($(#1.north east)!(#1-#3-1.south east)!(#1.south east)+    (\mymatrixbraceoffseth,0)$); } \newcommand*\mymatrixbracetop[4][m]{ \draw[mymatrixbrace] ($(#1.north west)!(#1-1-#2.north west)!(#1.north east)+(0,\mymatrixbraceoffsetv)$)     -- node[above=2pt] {#4}      ($(#1.north west)!(#1-1-#3.north east)!(#1.north east)+(0,\mymatrixbraceoffsetv)$); } \newcommand*\mymatrixbracebottom[4][m]{ \draw[mymatrixbrace] ($(#1.south west)!(#1-1-#3.south east)!(#1.south east)-(0,\mymatrixbraceoffsetv)$)     -- node[below=2pt] {#4}      ($(#1.south west)!(#1-1-#2.south west)!(#1.south east)-(0,\mymatrixbraceoffsetv)$); }  \usepackage{tikz} \usetikzlibrary{matrix,decorations.pathreplacing}  \begin{document}    \[  \begin{tikzpicture}[mymatrixenv]  \matrix[mymatrix] (m)  {     a &amp; b &amp; c &amp; d &amp; e &amp; f \\     g &amp; h &amp; i &amp; j &amp; k &amp; l\\     l &amp; m &amp; n &amp; o &amp; p &amp; o \\     \hline \\     q &amp; r &amp; s &amp; t &amp; u &amp; v \\     w &amp; x &amp; y &amp; z &amp; a &amp; b \\     c &amp; d &amp; e &amp; f &amp; g &amp; h \\   };   \mymatrixbraceright{1}{3}{$E_1$}   \mymatrixbraceright{5}{7}{$E_2$}   \mymatrixbracetop{1}{3}{$E_1$}   \mymatrixbracetop{4}{6}{$E_2$} \end{tikzpicture} \]  \end{document}     It's really nice but still it doesn't serve my purpose. Any help in this regard will be highly appreciated. Thanks
90669
I have used the next code to get a commutative diagram:  \documentclass[10pt,a4paper]{article}  \usepackage[spanish]{babel} \usepackage{amsmath} \usepackage{tikz-cd}% diagramas  \begin{document}  %-----Diagrama------- \deactivatequoting \[ \begin{tikzpicture} \matrix(m)[matrix of math nodes, row sep=4em, column sep=3em, text height=1.5ex, text depth=0.25ex] { M   &amp;   TN \\     &amp;    N \\ }; \path[-&gt;] (m-1-1) edge node[auto] {$\psi\circ Y$} (m-1-2); \path[-&gt;] (m-1-1) edge node[left] {$\psi$} (m-2-2); \path[-&gt;] (m-1-2) edge node[right] {$\pi$} (m-2-2); \path[-&gt;] (m-2-2) edge node[left] {$Y$} (m-1-2); \end{tikzpicture} \] \activatequoting %-------------------  \end{document}   However, I would like two vertical parallel arrows and not a "leftrightarrow".  What is the solution?
118609
In the code below, building off solutions found , I am trying to use the \node and \subnode options to draw the arrow, but I cannot get the file to compile.  Can you help me to fix the code to get the arrow to point to the text and the highlighted cell like this  Here is the code:  \documentclass{article} \usepackage{tikz} \usepackage{blkarray} \usetikzlibrary{fit,calc,arrows,shapes,decorations.pathreplacing,pgfplots.groupplots, matrix} \tikzset{%   highlight/.style={rectangle,rounded corners,fill=red!15,draw,     fill opacity=0.5,thick,inner sep=0pt} } \newcommand{\tikzmark}[2]{\tikz[overlay,remember picture,   baseline=(#1.base)] \node (#1) {#2};} % \newcommand{\Highlight}[1][submatrix]{%     \tikz[overlay,remember picture]{     \node[highlight,fit=(left.north west) (right.south east)] (#1) {};} } \begin{document} \[   M = \left(\begin{array}{*5{c}}     \tikzmark{left}{1} &amp; 2 &amp; 3 &amp; 4 &amp; 5 \\     6 &amp; 7 &amp; 8 &amp; 9 &amp; 10 \\     11 &amp; 12 &amp; \tikzmark{right}{13} &amp; 14 &amp; 15 \\     16 &amp; 17 &amp; 18 &amp; 19 &amp; 20   \end{array}\right)   \Highlight[first]   \qquad   M^T = \left(\begin{array}{*5{c}}     \tikzmark{left}{1} &amp; 6 &amp; 11 &amp; 16 \\     2 &amp; 7 &amp; 12 &amp; 17 \\     3 &amp; 8 &amp; \tikzmark{right}{13} &amp; 18 \\     4 &amp; 9 &amp; 14 &amp; 19 \\     5 &amp; 10 &amp; 15 &amp; 20   \end{array}\right) \] \Highlight[second] % \tikz[overlay,remember picture] {   \draw[-&gt;,thick,red,dashed] (first) -- (second) node [pos=0.66,above] {Transpose};   \node[above of=first] {$N$};   \node[above of=second] {$N^T$}; }  \[ \begin{blockarray}{ccccc} x_{1} &amp; x_{2} &amp; x_{3} &amp; x_{4} &amp;  \\ \begin{block}{[cccc|c]}   1 &amp; 0 &amp; \tikzmark{left}{-1} &amp; 0 &amp; 0 \\   0 &amp; 1 &amp; 2 &amp; 0 &amp; 0 \\   0 &amp; 0 &amp; \tikz{\node{\subnode{d1}\tikzmark{right}{0}};} &amp; 1 &amp; 0 \\ \end{block} \end{blockarray} \Highlight[new1] \]  %\begin{tikzpicture}[remember picture,overlay] %    \node [shift={(3.0em,-4.0ex)}, anchor=west] at ({pic cs:starta}) (X) {Tip measurement}; %    \draw [mybluei, thick, -latex] (X.west) -| ($({pic cs:starta})!0.5!({pic cs:enda})+(0,-0.5ex)$); %\end{tikzpicture}  \end{document}
6517
I have a graph. This is my code.    \documentclass[10pt]{article}     \usepackage{pgf,tikz}     \usetikzlibrary{arrows,patterns}     \pagestyle{empty}      \definecolor{ttqqcc}{rgb}{0.2,0,0.8}     \definecolor{ffqqtt}{rgb}{1,0,0.2}     \definecolor{ttqqff}{rgb}{0.2,0,1}     \definecolor{uququq}{rgb}{0.25,0.25,0.25}      \begin{document}      \begin{tikzpicture}[line cap=round,line join=round,&gt;=triangle 45,x=1.0cm,y=1.0cm]      \draw[-&gt;] (-3.63,0) -- (3.67,0);     \foreach \x in {-3,-2,-1,1,2,3}       \draw[shift={(\x,0)}] (0pt,2pt) -- (0pt,-2pt)          node[below] {\footnotesize $\x$};     \draw[color=black] (3.48,0.07) node [anchor=south west] { $x$};      \draw[-&gt;] (0,-1.93) -- (0,5.57);     \foreach \y in {-1,1,2,3,4,5}       \draw[shift={(0,\y)}] (2pt,0pt) -- (-2pt,0pt)          node[left] {\footnotesize $\y$};     \draw[color=black] (0.06,5.19) node [anchor=west] { $y$};      \draw (0pt,-10pt) node[right] {\footnotesize $0$};      \clip(-3.63,-1.93) rectangle (3.67,5.57);     \draw[pattern color=ffqqtt,pattern=north east lines,fill opacity=0.1, smooth,samples=50,domain=0:1.0]      plot(\x,{\x^4-4*\x^2+3}) -- (1,0) -- (0,0) -- cycle;     \draw[pattern color=ttqqcc,pattern=crosshatch,fill opacity=0.1, smooth,samples=50,domain=1.0:1.7320508075688772]      plot(\x,{\x^4-4*\x^2+3}) -- (1.73,0) -- (1,0) -- cycle;      \begin{scope}[xscale=-1]     \draw[pattern color=ffqqtt,pattern=north east lines,fill opacity=0.1, smooth,samples=50,domain=0:1.0]        plot(\x,{\x^4-4*\x^2+3}) -- (1,0) -- (0,0) -- cycle;     \draw[pattern color=ttqqcc,pattern=crosshatch,fill opacity=0.1, smooth,samples=50,domain=1.0:1.7320508075688772]        plot(\x,{\x^4-4*\x^2+3}) -- (1.73,0) -- (1,0) -- cycle;     \end{scope}      \draw[smooth,samples=100,domain=-3.6342419080068153:3.665758091993186] plot(\x,{(\x)^4-4*(\x)^2+3});      \fill [color=uququq] (-1.73,0) circle (1.5pt);      \fill [color=uququq] (-1,0) circle (1.5pt);      \fill [color=uququq] (1,0) circle (1.5pt);      \fill [color=uququq] (1.73,0) circle (1.5pt);      \end{tikzpicture}     \end{document}   When I see the DVI output DVI, I have    And if I look at the PDF file, I have
2218
I know that there is tikz, but also eso-pic and textpos.  I'd like to see a list of possible ways (not necessarily packages) for absolute positioning of things (which I believe amounts to "boxes") on the page, together with their advantages and disadvantages (for instance: tikz's current page node is very easy to use, but usually requires two LaTeX runs, and overhead from loading tikz if you don't need it for any other things is considerable).  Both LaTeX and ConTeXt solutions are welcome
63680
I am interested in outputting  this graph in  latex using tikz:    So far I got this:    and my tikz code is   \begin{tikzpicture}     \node[shape=circle,draw=black] (A) at (0,0) {A};     \node[shape=circle,draw=black] (B) at (0,3) {B};     \node[shape=circle,draw=black] (C) at (2.5,4) {C};     \node[shape=circle,draw=black] (D) at (2.5,1) {D};     \node[shape=circle,draw=black] (E) at (2.5,-3) {E};     \node[shape=circle,draw=black] (F) at (5,3) {F} ;      \path [-&gt;] (A) edge node[left] {$5$} (B);     \path [-&gt;](B) edge node[left] {$3$} (C);     \path [-&gt;](A) edge node[left] {$4$} (D);     \path [-&gt;](D) edge node[left] {$3$} (C);     \path [-&gt;](A) edge node[right] {$3$} (E);     \path [-&gt;](D) edge node[left] {$3$} (E);     \path [-&gt;](D) edge node[top] {$3$} (F);     \path [-&gt;](C) edge node[top] {$5$} (F);     \path [-&gt;](E) edge node[right] {$8$} (F);    \end{tikzpicture}   I want to know how to draw the arc between nodes B and E and also thicker  arcs with their lengths in center. Any help is appreciated