# Tag Info

1

I can not say, what the best way is to do it, from a design point of view. -but I can show what I did in a similar case. -using colors and marks. \documentclass{standalone} \usepackage{siunitx} \usepackage{pgfplots} \pgfplotsset{compat=newest} \begin{document} \begin{tikzpicture} \begin{semilogxaxis} [ width=\figwidth, height=0.75*\figwidth, ...

1

You need to tell pgfplots that you are plotting an expression, and give it a domain: \addplot expression[domain=0:1]{1}; % arara: pdflatex \documentclass[tikz]{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[ xmin=0, xmax=.1, ymin=0, ymax=2] \addplot expression[domain=0:1]{1}; \end{axis} ...

4

Change all those accidentally copied HTML codes &lt; and &gt; to < and >, respectively. Then the code becomes (completed): \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture}[line/.style={>=latex}] \coordinate (V1) at (1, 1.3); \coordinate (V2) at (-1.6, 0.4); ...

1

Since the release of pgf/TikZ 3.0 it's easier to label edges, using the quotes syntax. If you already got an edge, it could be as simple as adding "text" to the edge option. Here, let's make it after the tree is drawn: \path (P) edge["M"'] (Q); Your bend line looks like an angle. With the also new angles library, you could add pic[draw,angle ...

5

This alternative provides Cartesian coordinates, serving as a complement to Perter Grill's solution. Code \documentclass[tikz,border=1cm]{standalone} \usepackage{tikz-3dplot} \begin{document} \tdplotsetmaincoords{60}{120} \begin{tikzpicture} [scale=3, tdplot_main_coords, axis/.style={->,blue,thick}, vector/.style={-stealth,red,very thick}, ...

8

I think the lines in black (or magenta) are the ones you are looking for: To compute the Cartesian coordinates I use \pgfmathsetmacro. Notes: I don't know if one can easily extract the x, y, and z coordinates directly from setting of \tdplotsetcoord so I had to resort to defining them separately. Code: \documentclass[tikz]{standalone} ...

7

A couple of styles and you're good to go: \documentclass{article} \usepackage{enumitem} \usepackage{tikz} \usetikzlibrary{positioning} \newlist{tikzitem}{itemize}{1} \setlist[tikzitem,1]{label=$\bullet$,nolistsep,leftmargin=*} \begin{document} \begin{tikzpicture}[ mynode/.style={ circle, draw, fill=yellow, minimum size=1cm, align=center }, ...

2

You said "in a circle layout". Here is an example. You can place the nodes around node (1) using at (<angle:distance>) macro. \documentclass{article} \usepackage[spanish]{babel} \usepackage{tikz} \usetikzlibrary{shapes.geometric, arrows} \tikzstyle{io} = [ellipse, minimum width=3cm, minimum height=1cm, text centered, draw=black, fill=blue!30] ...

3

Here's a manual implementation using pstricks. As such, compile with either LaTeX or XeLaTeX: \documentclass{article} \usepackage{pstricks}% http://tug.org/PSTricks/main.cgi/ \usepackage{multido,xcolor}% http://ctan.org/pkg/{multido,xcolor} \newcommand{\proppoly}[6][]{ \pspolygon[fillstyle=solid,fillcolor=cyan,opacity=0.8,#1]% ...

3

Here is something that should get you started using the to syntax and specify the anchors and teh in=, out= angles for the arrows. Code: \documentclass{article} \usepackage[spanish]{babel} \usepackage{tikz} \usetikzlibrary{shapes.geometric, arrows} \tikzstyle{io} = [ellipse, minimum width=3cm, minimum height=1cm, text centered, draw=black, ...

4

When you put something inside a scope, literally the scope is limited to within the scope ;). The main idea of using a scope is to separate the contents from rest of the world. This is useful in many cases where (say) we would like to clip a certain part alone (there are other useful cases too). Same thing happens when you name a path inside the scope. The ...

2

You can use positioning library of tikz and control the distance between each node pair individually. \documentclass[12pt,draft]{article} \usepackage{tikz-er2} \usetikzlibrary{positioning} \begin{document} \tikzstyle{every entity} = [draw=blue,fill=blue!20,text=red] \tikzstyle{every attribute} = [fill=yellow!20] \tikzstyle{every relationship} = ...

3

Gonzalo's idea with stacking plots is clever. And now there's a new way, with pgfplots 1.10 and its fillbetween library: draw the polygon function and give it a name draw the line (or any other function) and name it too add a fill between plot The essence: \usepgfplotslibrary{fillbetween} ... \addplot[name ...

5

TikZ v3.0.0 is introducing a library babel for the purpose. It is documented on page 526 of the pgfmanual (42 Babel Library). With its help \Med[draw]{A}{B}{1}{1} ; can now work: \documentclass[french,a4paper]{article} \RequirePackage{etex} \RequirePackage[utf8]{inputenc} \RequirePackage[T1]{fontenc} \RequirePackage{fourier} \RequirePackage{tikz} ...

4

I think the following will work for any type of colorblindness as it uses only one color: \documentclass[varwidth=true, border=2pt]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.9} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \pgfplotsset{ colormap={whitered}{ color(0cm)=(white); ...

4

Two appaoches are studied. The left one is done without using intersection package whilst the second one on the right is with help from intersection to find the insersecion of the tooth bases Code \documentclass[border=10pt]{standalone} \usepackage{tikz} \usetikzlibrary{positioning,intersections,calc} \begin{document} % -- Do not use intersection ...

7

TikZ tries to play nice with packages such as babel which change catcodes of certain characters. The problem is that TikZ needs to parse various expressions such as ($(a)!.5!(b)$) which contain special characters like ! and $. To our human eye, these look fairly easy to spot. But TikZ has to work in TeX's world and so has to take account of catcodes as ... 3 We can't use numbers in LaTeX macros- see Defining commands/abbreviations that contain numbers and the links within for details. We can achieve close to your desired approach using a pgfplots-based approach by using styles: \pgfplotsset{ mystyle/.style={ solid, red, every mark/.append style={solid, fill=red}, mark=o}, ... 3 As others have said, you cannot use beamerarticle with the beamer class. Compile interactively or look at the log/output to see the errors this produces. You can ignore these and get a PDF but things are going to go awry in subtle, and not so subtle, ways if you do that. Besides, there are better options: Handout Mode Here is the effect of using beamer's ... 4 Instead of \multirow I used a box of zero height and depth (through \raisebox) and added the baseline=(current bounding box.center) option to tikzpicture: \documentclass[12pt, a4paper, bibliography=totoc, listof=totoc, parskip=half, numbers=noenddot]{scrreprt} \usepackage[utf8]{inputenc} \usepackage{textcomp} \usepackage[english, ngerman]{babel} ... 6 Since filling the path is required here, this is not an exact duplicate of Highlight elements in the matrix, but we can use some of the ideas there. In the code below I show two options; the first one using a simple \draw and the other one using the fit library; since, in both cases, a filling color is added, the filling overwrites the nodes and they must be ... 0 Here is a MetaPost attempt—mostly copied-pasted from Thruston's program with his permission— which aims at managing the labels more easily. The main change is its use of the latexmp package. I think it makes labels easier to implement, firstly because latexmp, as its name hints at, uses LaTeX to typeset them. For that purpose it introduces the textext ... 2 A plain Metapost solution, showing how to mark an angle and position a label neatly. prologues := 3; outputtemplate := "%j%c.eps"; am_size := 1cm; vardef angle_arc_path(expr a,b,c) = fullcircle scaled 2am_size rotated angle (a-b) shifted b cutafter (b--c) enddef; vardef angle_label_pos(expr a,b,c) = % unitvector helps avoid rounding errors ... 5 In the TikZ 2.10 manual, after documenting on page 616 \pgfsetarrowsend{⟨start arrow kind⟩} it is stated: Warning: If the compatibility mode is active (which is the default), there also exist old commands called \pgfsetstartarrow and \pgfsetendarrow, which are incompatible with the meta-arrow management. The TikZ 3.0.0 manual does not cite ... 3 Don't load beamerarticle with beamer, but load it with an article-class (article, scrartcl, etc.). beamerarticle is used to "convert" a presentation into a normal article. To do that it declares the same commands as beamer, that's why all commands are already declared and why you can't use both together. 3 A solution using PSTricks: \documentclass{article} \usepackage[ figureposition = bottom ]{caption} \usepackage{ pstricks, multido } \psset{ dimen = middel, fillstyle = solid } \def\stickHori(#1,#2){% \rput[lb](#1,#2){% \begin{pspicture}(1.8,0.15) \psline[linecolor = black!50, linewidth = 2\pslinewidth](0.2,0)(1.8,0)(1.8,0.15) ... 1 There is no ptional argument group peaks, there are only group peaks width and group peaks height. And the environment requires two mandatory arguments: \begin{ganttchart}[vgrid,x unit=0.122699cm, group left shift=0, group right shift=0, group peaks width=.4]{1}{163} 4 It looks like an anchor problem, but tkz-euclide seems to use a different abstraction from tikz's, and does not let you access the anchor easily. As a workaround, separating the node from its display, and deferring the display until after the angle is drawn, I get this: You might want, for consistency, to do the same with all nodes. There is probably a ... 0 Just for the record. You need to define the style for the node because by default, it is a square. With the defined shape=circle, the top right picture shows some precision problems, but this can be improved (gradually as shown below) by increasing the increment of angle so that miscalculation of anchor is prevented. Here the increment of angle is (top ... 4 I would call that a bug. The documentation states, that the anchors are somehow determined on the angle given (and other aspects), but that the user can change them if needed. Alas, giving another anchor explicitely, doesn't change anything: \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \foreach \x in ... 3 The conflict between smooth and decorations has already appeared here; the most recent example is Add arrows to a smooth tikz function. In your concrete case, a work-around to prevent the "Dimension too large" error allowing you to still use smooth, is to use pre length=1pt, post length=1pt in the decoration. For the example below I changed to a style with ... 9 Adapting Qrrbrbirlbels answer from here: http://tex.stackexchange.com/a/131325/10995 You will want to use it like \draw plot ... [arrow inside={end=stealth,opt={scale=2}}{0.25,0.5,0.75}]; It is important, to place it after the plot part, because else you will get Dimension too large errors, which emerge from an incompatibility between smooth and ... 2 I'm sure TikZ is a good solution to this one, but by way of an instructive contrast here is a version in Metapost using the boxes library. You can see managing the text nicely requires some extra work in MP compared to TikZ, but it's not that hard. And personally I think the way that MP deals with paths and labels separately is a bit simpler to use, but ... 2 Judging by the console message, it seems that this new version of tikz-cd requires pgf v. 3.0, and it appears you still have version 2.10 installed. Maybe you should update the whole pgf package to version 3.0 and see what happens. 3 You need to install pgf 3.0, which is available on CTAN since some days. The quotes library belongs to it. 3 Version 1.10 of pgfplots has been released just recently, and it comes with a new solution for the problem to fill the area between plots. Note that the old solution is still possible and still valid; this here is merely an update which might simplify the task. In order to keep the knowledge base of this site up-to-date, I present a solution based on the ... 0 Version 1.10 of pgfplots has been released just recently, and it comes with a new solution for the problem to fill the area between plots. Note that the old solution is still possible and still valid; this here is merely an update which might simplify the task. In order to keep the knowledge base of this site up-to-date, I present a solution based on the ... 0 Version 1.10 of pgfplots has been released just recently, and it comes with a new solution for the problem to fill the area between plots. Note that the old solution is still possible and still valid; this here is merely an update which might simplify the task. In order to keep the knowledge base of this site up-to-date, I present a solution based on the ... 3 Version 1.10 of pgfplots has been released just recently, and it comes with a new solution for the problem to fill the area between plots. Note that the old solution is still possible and still valid; this here is merely an update which might simplify the task. In order to keep the knowledge base of this site up-to-date, I present a solution based on the ... 3 Version 1.10 of pgfplots has been released just recently, and it comes with a new solution for the problem to fill the area between plots. Note that the old solution is still possible and still valid; this here is merely an update which might simplify the task. In order to keep the knowledge base of this site up-to-date, I present a solution based on the ... 3 Version 1.10 of pgfplots has been released just recently, and it comes with a new solution for the problem to fill the area between plots. Note that the old solution is still possible and still valid; this here is merely an update which might simplify the task. In order to keep the knowledge base of this site up-to-date, I present a solution based on the ... 2 Something strange happens on import to LyX. If you look at the source code generated by LyX, the start of the tikzpicture is \begin{tikzpicture}{[}remember picture,overlay{]} while it should be \begin{tikzpicture}[remember picture,overlay] Note that on import, \begin{tikzpicture} is in an ERT, while [remember picture,overlay] is not. Move the latter ... 2 If the table floats, the boxes will end in a different page; to prevent this, draw the boxes inside the corresponding table environment: \documentclass{article} \usepackage{booktabs} \usepackage{tikz} \usetikzlibrary{tikzmark} \usepackage[english]{babel} \usepackage{blindtext} \newcommand\FramedBox[3][]{% \draw[red!80!black,rounded corners,#1] ... 2 You need an extra coordinates for each addplot, since ybar interval=0.8 is used; therefore 8 coordinates only generates 7 ybar because an interval is defined by two coordinates. The last coordinate will only be used to determine the interval width; its y value doesn't change the bar appearance. Here (65536,0.1) is appended as a dummy coordinate to serve as ... 3 Tested with TikZ 3.0: load the arrows.meta library instead of arrows add draw opacity=0 as option to \draw, but not to the arrow, such as >={LaTeX[]} The tail will be completely opaque, i.e. will not be shown, only the head will be visible. \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture} ... 2 Turning: already loading the bending library turns the arrow in the right direction. Resizing: You can change the size via an arrow keys option, such as >={LaTeX[length=4pt]}. Bending: You could bend the arrow to better fit the circle shape. All requires at least TikZ 3.0. To compare: \documentclass{article} \usepackage{tikz} ... 4 You can use adjustbox \documentclass{scrreprt} \usepackage[export]{adjustbox} %% export option makes adjustbox -- %% -- goodies available inside includegraphics command \usepackage{graphicx} \begin{document} X\hrulefill X \begin{figure}[htp] \includegraphics[width=1.1\textwidth,center]{example-image-a} \end{figure} ... 7 The \centerline command should never be used in a LaTeX document (unless you know precisely what you're doing, and probably only in the preamble for some definition). Use \begin{figure}[htp] \centering <whatever> \end{figure} and <whatever> (a graphic, a TikZ picture or anything) will be centered. 2 (This answers only the TikZ question. For the other, I'd recommend reducing your code to a minimal working example (MWE) and asking a new question about that.) Your problem is that you have a matrix of math nodes, but you're using \node {} in the cells. By default, when you have a matrix of (math) nodes TikZ prepends something like \node [name=A-1-2] { to ... 1 I did something similar for styles in graph theory. Assuming you're on a UNIX-based system (or on Windows with Cygwin/MinGW installed), you can use the install tool coupled with a lesser-known use of kpsewhich: SONI_DIR=kpsewhich -var-value TEXMFHOME/tex/latex/soni/ install -m 755 -d$SONI_DIR install -m 644 soni-er.sty \$SONI_DIR Just stick all of ...

Top 50 recent answers are included