# Tag Info

13

One option using TikZ; the fit library was used just to draw the outer frame; depending on the actual requirements, this can be done without the library (see second example code below): \documentclass{article} \usepackage{tikz} \usetikzlibrary{fit} \begin{document} \begin{tikzpicture}[ mytext/.style={ draw, text width=#1, align=center, minimum ...

12

One approach; the image below was produced simply by \noindent\MyFigure{sarrow,mrounded,sarrow,mchamfer}{sarrow,mrounded,sarrow,mchamfer,sarrow,mrounded}\qquad \MyFigure{mchamfer,sarrow,mrounded,sarrow,mrounded}{mchamfer,mrounded,sarrow,sarrow} The complete code: \documentclass{article} \usepackage{tikz} ...

10

This should get you started. \documentclass[tikz,border=10pt]{standalone} \usepackage{amssymb} \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture} \foreach \x/\y/\z in {1/1/9,3.2/1/10,2/1.5/8,1.5/2/6, 2.5/2/7,1.2/2.5/2,2/2.5/4,3.1/2.5/5,2/3/1,2.9/2.9/3}{ \node[circle,fill,inner sep=2pt,outer ...

10

The problem stems from the ... part in the argument of the \foreach macro; note that it disappears if you delete ..., from your code. Although you can of course recognise a pattern in 7/0, 8/10, ..., 10/30 the \foreach macro cannot. I refer you to section 56 of the tikz manual and to using computations with \foreach in tikz for more details about how ...

10

The problem is that the syntax of atan2, the two-argument variant of arctangent, changed between TikZ 2.10 and TikZ 3.0. The effect of this change of syntax on Toscho's code makes the trajectory of the orbiting body (an asteroid?) become completely unstable very quickly: the asteroid quickly "shoots off the page". As as a result, the dimension of the ...

8

One option using TikZ: \documentclass{article} \usepackage{tikz} \usepackage{amsmath} \definecolor{mygreen}{RGB}{117,167,117} \definecolor{myred}{RGB}{255,1,1} \newcommand\myent[3]{% \footnotesize% $\begin{array}{@{}r@{}} #1 \\ #2 \\#3 \end{array}$% } \begin{document} \begin{tikzpicture}[x=1.5cm] \draw[mygreen,->,thick,>=latex] (0,0) -- (5,0) ...

8

First you clean up the bitmap in even Paint and remove the unnecessary bits and save your file as a .bmp. Such as Tracing with POTrace Then download potrace and in the command window simply type potrace <filename>.bmp And that would give you a vector file format .eps, (I optionally convert it to PDF for ease). The quality of the trace is ...

7

You need to place the \foreach loop inside the frame and use overlay specifications for the \draw command (this will produce several slides inside a single frame, which then will give you the animation effect); something along these lines: \documentclass{beamer} \usepackage{tikz} \tikzset{ invisible/.style={opacity=0,text opacity=0}, visible ...

7

I am no graph theory guy but if I kind of understand the algorithm here you need more than one layer to be able to detect crossings. Also notice that minimization is not equal to removing all. So adding more layers looks like working. \documentclass{article} \usepackage{tikz} \usetikzlibrary{graphs, graphdrawing} \usegdlibrary{layered} \begin{document} ...

7

Here's a bare-bones approach, with no gradient in the top square, and manually placed black dots. \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} % Main shapes \draw (0,0) rectangle (3,3); \foreach \x\y in {0/0,3/0,0/3,3/3}{ \draw (\x,\y)--($(\x,\y)+(1,4)$); } \draw[fill=gray,fill opacity=.2] (1,4) ...

6

Doesn't generalize very well, but... \documentclass[tikz,border=5]{standalone} \begin{document} \begin{tikzpicture}[x=4cm,y=.5cm, >=stealth] \foreach \i [evaluate={% \x=\i<4 ? \i : (\i<16 ? 1 : (\i<22 ? 2 : 3)); \y=\i<4 ? 1 : (\i<16 ? 2-\i : (\i<22 ? 11-\i : 15-\i)); }] in {1,...,23} \node (text-\i) at (\x,\y) {Text \i}; ...

6

I suppose what you want to do is find a line starting at the tip of the cone that is tangential to the ellipse. So let's do the math. Let r1 be the horizontal radius of the ellipse, and let r2 be the vertical radius. Let z be the distance from the tip of the cone to the midpoint of the ellipse. We have the following situation: Here, O is the origin, P ...

6

\documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc}% \usepackage{lmodern} \usepackage[nomarginpar, textwidth = 16cm]{geometry} \usepackage[svgnames,x11names]{pstricks}%%, pdf \usepackage{pstricks-add} \usepackage{multido} \usepackage{mathtools} \pagestyle{empty} \begin{document} \psset{nodesep=2pt} ...

6

It's better to use alpha-numeric names. The following inserts two extra nodes at a distance of 15pt (nodesep=15pt) to the right of node F (horizontally), one on the same level as node B and the other at the same level as node F (vertically). Then, the two arrows are drawn, followed by the placement of the labels using a [l]eft reference point. ...

6

You could give the xticks directly. The manual reveals that one can use the 1,3,...,19 writing style (as it is used in a foreach statement). A minimal example without data would be \documentclass{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{loglogaxis}[ log basis x = {2}, xtickten = {5,7,...,19}, ] ...

6

If you put both on the outside, one with partially overwrite the other, won't it? \documentclass{standalone} \usepackage{tikz} \usepackage{pgf} \usepackage{pgfplots} \usetikzlibrary{calc, through} \tikzstyle{vertex}=[circle, draw, inner sep=1pt, minimum size=6pt, fill=black!20] \begin{document} \begin{tikzpicture} \foreach \i in {0,1,2}{\node[vertex] (\i) ...

6

The problem comes at the end of the list of cases in your \foreach loops \foreach \a/\b/\c in { 0/x1/0, 2/x2/1, 4/x3/2, 6/x4/3 } When it reads 6/x4/3, there’s no comma or closing brace afterwards, so it includes the whitespace in the definition of \c. This means you get a node called brz3 (+ some other stuff). Somebody who understands TikZ better ...

6

This is an attempt, hoping it will help. b style means horizontal box, c style is for vertical box, ar is line style, and myarrow style is for the two-colored arrow. Code \documentclass[border=10pt]{standalone} %\usepackage[margin=1cm]{geometry} \usepackage{tikz,xcolor} \usetikzlibrary{shapes.geometric,arrows,positioning,fit,calc,} \tikzset{ ...

6

Error messages in (La)TeX can be cryptic, and even misleading, but this one is pretty explicit: Unknown option symbols' for package circuitikz' A quick look at the circuitikz manual (section 2: Options) will give you confirmation that the circtuitkz package indeed does not provide any option called symbols; at least, the latest version (0.3.0) does not. ...

6

May I suggest you the powerful forest package? It is built upon PGF/TikZ, so you can still use the power of TikZ if required, and offers a lot of interesting features to build trees. Compare the economy in the code: \documentclass{article} \usepackage{forest} \begin{document} \begin{forest} where n children=0{font=\sffamily}{}, for tree={ edge path={ ...

6

For example: \documentclass{standalone} \usepackage[inference]{semantic} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \begin{document} \setpremisesend{0pt} \setpremisesspace{1pt} \setnamespace{0pt} \inference{% \inference{% \inference{\mbox{La}}{Det} & \inference{\mbox{novela}}{N/Sust} & \inference{% ...

5

Here’s a solution that uses the excellent forest package. \documentclass[tikz,border=5pt]{standalone} \usepackage{forest} % Node shape adapted from http://www.texample.net/tikz/examples/data-flow-diagram/ \makeatletter \pgfdeclareshape{myunderline}{ \inheritsavedanchors[from=rectangle] \inheritanchorborder[from=rectangle] \foreach \from in ...

5

Use a node to add the label \draw (0,0) circle [radius=0.3] node {$T_1$}; or use a \node with circle shape: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (-2,-2) grid (3,3); \draw (0,0) circle [radius=0.3] node {$T_1$}; \node[draw,circle,minimum size=1cm,inner sep=0pt] at (2,0) {$T_1$}; \end{tikzpicture} ...

5

You can disable this behavior by the option scaled y ticks = false. % arara: pdflatex \documentclass[12pt]{standalone} \usepackage{tikz} \usetikzlibrary{patterns} \usepackage{pgfplots} \pgfplotsset{compat=1.10} \begin{document} \begin{tikzpicture} \begin{axis}[% ybar=1.2pt, % configures `bar shift' width=0.80*\textwidth, height=7cm, ...

5

You can add varwidth option to the standalone class. Add some border if you like. \documentclass[varwidth,border=5pt]{standalone} \usepackage{tikz} \usepackage{tikz-3dplot} \usetikzlibrary{decorations.pathmorphing} \usetikzlibrary{arrows} \usetikzlibrary{3d} \tikzset{>=latex} \begin{document} \tdplotsetmaincoords{60}{60} ...

5

If full ellipse is good enough you can just rotate it. If you need an ellipse with break you can draw it using \pgfpatharcaxes (or similar command). \documentclass[tikz, border=15mm]{standalone} \usepackage{xcolor} \usetikzlibrary{arrows,calc, decorations.markings, intersections} \begin{document} \begin{tikzpicture}[scale=.8] \draw (0,0,0) -- (xyz cs:x=6); ...

5

5

If you don't require PGF/TikZ 3.0, you can use this trick to emulate an affine transformation. I define a command whose input is a “Cartesian” coordinate in the range (0, 0) to (3, 2), and whose output is a coordinate in the barycentric system¹ defined by the four corners (called hf, hb, lf, and lb) of the trapezoid. \def\V(#1,#2){barycentric ...

4

Your example is huge, so I cut down the code significantly and I focused on the positioning of the colors in 3D. In this example I am getting color specification by the \extractcolorspec command from the xcolor package, we are getting e.g. gold -> {rgb}{1,0.84314,0} -> x=5*1=5, y=3*0.84314=2.52942, z=10*0=0 as I limited quadrant from (0,0,0) to (5,3,10). ...

4

I REVISED my solution to use the approach of What are the ways to position things absolutely on the page? to place an object by specifying the absolute paper coordinates. I placed the object as a "watermark", but it is not clear to me if that is or is not what you want, or whether it could be adapted to your needs. \documentclass{article} ...

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