Tag Info

Hot answers tagged

8

Switch to the newer TikZ library arrows.meta. Then the bounding box calculation includes the arrow head: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture} \draw (0,0) circle [radius=1cm]; \draw [dashed] (-2.1,0) circle [radius=1cm] ; \draw [<-,thick] (-2.1,-1.4)--(0,-1.4) ; \draw (-1,-1.2) node ...


6

My first choice would be pgfplots and tikz. It lets you draw right in Latex. You can try something like this: \documentclass[a4paper]{article} \usepackage{pgfplots} \usepackage{tikz} \tikzset{>=stealth} % arrowheads \begin{document} \begin{tikzpicture} \draw [->] (12,4)node[above]{24} -- (8,0)node[below]{42}; \draw [->] ...


6

I also suggest Tikz, but more specifically the Tikz trees. Probably you could automatise this but I can't think of a way so the solution is manual. I was going to provide a small sample for you to complete, but I had already finished it on my own, so here it is. Basically the level distance is 2cm but the middle child is shifted down of 1cm so it's midway ...


5

Here's a solution in asymptote using recursion. Just change the first five lines of the code to modify the output. Make sure the number of initial values is a power of 2 or it will probably throw an error. unitsize(1inch); real xspacing = 0.5; real yspacing = 0.5; pair[] values = { (1,1), (7,9), (2,8), (8,6) }; string[] labels = { "$y_i$", "$d_2$", ...


5

You can do two things (apart from loading the TikZ library for arrows). You can add a border to the standalone by passing it through the \documentclass[border=10pt]... or you can enlarge the bounding box for the figure by adding something like \path (current bounding box.south) -- ++ (0,-10pt); as the last line in the environment. Additional comments ...


4

pre length is already added, therefore the left arrow looks fine, post length fixes the right arrow head. The following example also centers the arrow around the math axis: \documentclass{article} \usepackage{tikz} \usetikzlibrary{ calc, decorations.pathmorphing, shapes, arrows.meta } \newcommand\xlrsquigarrow{% \mathrel{% \vcenter{% ...


4

Starting with Ben's tikzpicture module, and turning it into a macro \blivet[supress top #]{top-left #}{top-right #}{width} has allowed me a start on it. More automation remains to be done. The height of the blivets are defined with \def\blivetheight{3}. \documentclass[a4paper]{article} \usepackage{pgfplots,stackengine} ...


4

Simple solution using \newcommand{\foo}{\phantom{+\Delta V \%}} \newcommand{\equalarrow}{% $\vphantom{\xrightarrow{=}}% \smash{\xrightarrow[\foo]{=‌​}}% $} Note that \equalarrow already contains $ $ in its definition. Also, I added the @Heiko's suggestion to adjust the vertical space created by the invisible content.


3

% arara: pdflatex \documentclass{article} \usepackage{tikz-cd} \usepackage{mathtools} \newcommand*{\statement}[1]{\text{STATEMENT}\ #1} \begin{document} \begin{tikzcd}[every arrow/.append style={Rightarrow}] \statement{1} \arrow{r} & \statement{2} \arrow[out=0, in=0]{d} \\ \statement{3} \arrow[out=180, in=180]{d} & \statement{4}\arrow{l} \\ ...


2

Here you go. I could not replicate the font other than using a Sans Serif family (it appears bold in mine). Output Code \documentclass[margin=10pt]{standalone} \usepackage{tikz} \usetikzlibrary{arrows.meta,calc,positioning} \tikzset{ every node/.style={draw=gray, rounded corners, text centered,text width=3cm}, } \begin{document} ...


2

Done here with stacks, in lieu of arrays. \documentclass{arlticle} \usepackage{amsmath,stackengine} \setstackEOL{\cr} \stackMath \def\Xrightarrow#1{\xrightarrow{\makebox[3ex]{$\scriptstyle#1$}}} \begin{document} \[ \overbrace{\Longstack{% P \Xrightarrow{0.1} P\cr T_1 \Xrightarrow{0} P\cr T_2 \Xrightarrow{0.2} P\cr C \Xrightarrow{0.4} P}}^P ...


1

I'll let someone else post an answer involving \tikzmark. Regarding how the TikZ manual suggests to do this. At the points that you want to connect, you'll use the following code \tikz[remember picture] \node (<node name>) {}; where <node name> is a name of your choice. You should use different names for each such node. To connect the two ...


1

Here is a way, though it has drawbacks. It does not support over- or under-text, since the OP indicated no need. But more importantly, it uses the \uwave macro from the ulem package, which is only output in periodic intervals. If the space allowed (optional argument) is not just the precise amount, the spacing on the left side of the arrow (between the ...


1

I fear, this is not possible. Please see here dotted or colored arc in \xymatrix (not a great reference as I was the only to answer and did not score impressive points with that... :-) ) However, I recommend switching to tikz-cd here. Please see my MWE: % arara: pdflatex \documentclass[a4paper]{report} \usepackage{tikz-cd} \begin{document} \[ ...


1

Easy fix 1 An alternate solution sticking to xypic is the following: \documentclass[a4paper]{report} \usepackage{amsmath,amssymb,amsfonts} \usepackage[all]{xy} \begin{document} \[\xymatrix{ & & M(\omega)\ar@{-}@/_.1pc/[ddr]\ar@{-}@/_.1pc/[dl] & \\ & M \ar@{-}@/_.1pc/[ddr] & & \\ & & & K(\omega)\ar@{-}@/_.1pc/[dl] ...


1

You can add reverse path to the edge options. By the way, I suggest you start using the standalone class, which is very handy for typesetting single tikzpictures. It even has the options tikz (loads the package) and preview. See the link to the manual for more details (class is on page 7). Edit: As A.Ellett rightfully pointed out, ex measurement is usually ...



Only top voted, non community-wiki answers of a minimum length are eligible