# Tag Info

2

Edit: Alternatively, with your last wish: \documentclass[tikz, border=3mm]{standalone} \usetikzlibrary{arrows.meta, positioning} \begin{document} \begin{tikzpicture} \tikzset{ node distance = 9em and 4em, sloped, box/.style = {% shape=rectangle, rounded corners, draw=blue!40, fill=blue!15, align=center, font=\fontsize{12}{...

2

You can obtain curved arrow with to[out=alpha,in=beta]. where alpha is the angle at which the curve leaves the start coordinate, and beta is the angle at which the curve reaches the target coordinate. Code \documentclass{article} \usepackage{color, colortbl} \usepackage{tikz} \usetikzlibrary{arrows,positioning,shapes,backgrounds,fit} \begin{document}...

3

It is most unwise to next tikzpicture environments. Since a forest environment is simply a wrapper for a tikzpicture, it is therefore most unwise to put forest environments inside \node{} within tikzpictures. It is, however, possible to put everything within a single forest environment. First, though, a variation on Bordaigorl's alternative solution, which ...

1

Another solution that allows fine grained tweaking of spacing, while allowing easy use of \scalebox if needed. The idea is that the forest environment already gives you a box, you can put the three boxes one after the other on the same line and adjust the baseline as needed. Since the two forests have different width some extra space (a \quad) after the ...

4

One approach is to avoid minipages and simply wrap everything in a tikzpicture environment. Although this works just fine in this case, you should be careful in using this technique in other instances since nesting tikz pictures is generally discouraged and may cause strange errors. In the cases where it works though, it offers a very simple and intuitive ...

7

Instead of using minipage use the adjustbox package, which gives you much simpler control over the spacing. Also, you can save yourself a lot of typing by defining a global style for your trees: \documentclass{article} \usepackage{forest, color} \usepackage{adjustbox} \begin{document} % Globally set style for your trees \forestset{circles/.style={for tree={...

0

I'm hoping someone will post a better answer, but for now, I've found replacing \begin{minipage}[c]{0.32\hsize}\centering $$\longrightarrow$$ \end{minipage} with \begin{minipage}[c]{0.05\hsize}\centering $$\longrightarrow$$ \end{minipage} However, this is really just a hack, and also doesn't handle scaling, so while it worked in this case, it won't ...

1

Another solution with TikZ chains \documentclass{article} \usepackage{tikz} \usetikzlibrary{chains} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[spanish]{babel} \usepackage{lmodern} \begin{document} \begin{enumerate} \item \begin{tikzpicture}[start chain, every node/.style={on chain}, bloc/.style={fill=red!80!blue!70, ...

3

I introduce \cbox[<width>]{<box-color>}[<text-color>]{<content>} (note there are two optional arguments) along with \bigeq, \bigplus, and \bigminus. I do some \cbox nesting (plus shenanigans with \bxht and \fboxsep in order to handle the large blue box). \documentclass{article} \usepackage[margin=1cm]{geometry} \usepackage{xcolor} \...

1

An alternative with using paths.ortho library developed by Qrrbrbirlbel for tikz and can be found in paths.ortho-hvvh.tex and paths.ortho-udlr.tex. By it the solution is very simple: \documentclass[tikz,border=5pt]{standalone} \usetikzlibrary{paths.ortho} \usetikzlibrary{positioning} \begin{document} \tikzstyle{node}=[rectangle,draw=black,text width=3cm,...

1

The Tikz operator |- is not a unique symbol for all these cases of orthogonal lines. It's very specific actually, and it describes a line that goes first vertical | and then horizontal -. For this reason, this particular operator does not apply to your case, because the angle you're looking for is first horizontal, and then vertical. Therefore you should ...

2

Possible solution with tikz-cd as been suggested in the comments. \documentclass[tikz]{standalone} \usepackage{tikz-cd} \usepackage{amsmath} \begin{document} \begin{tikzcd} y \ar{r}{(E)} & v(y) \ar{r}{(T)} & T_{s}(v(y)) \ar{r} & \min\limits_{s \in S} T_{s}(v(y))\\ y^{*} \ar[equal]{d} \ar{r}{(E)} & v(y) \ar{r}{(T)} & T_{s}(v(y^{*})) \...

1

I use my answer at What are the ways to position things absolutely on the page? to put something anywhere on the page. Then, I go to the web and find a nice transparent ruler, for example, at https://pixabay.com/static/uploads/photo/2013/07/12/12/52/ruler-146428_960_720.png. Then I crop it to 30.5 virtual centimeters width. Finally, I \includegraphics[...

3

Instead of a ruler you could put a grid behind the text with eso-pic package: \documentclass{article} \usepackage[grid, gridcolor=red!20, subgridcolor=green!20, gridunit=in]{eso-pic} \usepackage{lipsum} \begin{document} \lipsum \end{document}

5

Just to provide a basis for solving this. Since I don't read French, I've not tried to figure out the correct style of arrow etc. Just substitute appropriately for Stealth and drop arrows.meta if you don't need it. \documentclass[tikz,border=10pt,multi]{standalone} \usepackage{schemabloc} \usetikzlibrary{quotes,arrows.meta} \tikzset{% node distance=5cm, ...

9

Maybe package layout will help. It provides the command \layout which inserts one (onesided document) or two (twosided documents) pages that show the relevant sizes of the current page layout. \documentclass{book} \usepackage{geometry}% needed if the format of the document differs from the settings of your TeX system \usepackage{layout} \begin{document} \...

0

Here's an approach in Metapost for comparison. prologues := 3; outputtemplate := "%j%c.eps"; beginfig(1); path shape; shape = buildcycle(halfcircle shifted 1/2 left, halfcircle scaled 3/4, halfcircle shifted 1/2 right) scaled 3cm; fill shape withcolor 3/4 white; draw subpath(0,1) of shape dashed evenly; draw ...

5

See, if the following solution is acceptable to you: \documentclass[border=3mm,tikz]{standalone} \usetikzlibrary{calc,positioning, quotes} \makeatletter \def\tikzsavelastnodename#1{\let#1=\tikz@last@fig@name} \makeatother \newcommand\ppbb{path picture bounding box} \tikzset{% node distance=9mm and 12mm, shorten <>/.style = {% shorten ...

1

Simplest solution is probably just to draw over it: Note: I had to stretch the line by 0.18em for some reason. Made the line width slightly larger to hide the slight discrepancy cause but this stretch. As you know the code better you can remove the shorten <=-0.18em] and line width=0.57pt options and adjust the drawing. Code: \documentclass[tikz,...

1

Adding to Paul's brilliant answer, I recommend using lilyglyphs. I've created some commands (with the help of the creator of lilyglyphs) making it less cumbersome entering chord symbols. \documentclass{article} \usepackage{fontspec} \usepackage{tikz} \usepackage{lilyglyphs} \usepackage{xspace} \newcommand{\tinysharpx}[1][0.10ex]{\hspace*{#1}\sharp[scale=...

12

Edit: Here is a better \drawukulelechord macro using TikZ. The \drawukulelechord macro draws a ukulele chord. Its mandatory argument is a list of four numbers (for four strings) : -1 (string is not played), 0 (opened string), 1 and above (finger position for this string). The optional argument may be used to change scale (default: x=2ex and y=2ex). The \...

1

A PSTricks solution. \documentclass{article} \usepackage{pst-plot} \usepackage{multido} \begin{document} \begin{pspicture}(-0.2,-0.2)(2.2,4.5) \psaxes[ labels = none, ticks = none ]{->}(0,0)(-0.2,-0.2)(2.2,4.5) \psplot[ linecolor = red ]{0}{2.1}{x dup mul} \multido{\r = 0.4+0.4}{10}{\psline{->}(0,\r)(!\r\space sqrt \r\space)} \...

2

In plain Metapost there are two macros, called cutbefore and cutafter, that help with this type of drawing. This is produced from: prologues := 3; outputtemplate := "%j%c.eps"; beginfig(1); numeric u; u = 1cm; path xx, yy, ff; xx = (left--3 right) scaled u; yy = (origin--4 up) scaled u; ff = origin .. {up} (2.5u,4u); draw ff withcolor .67 red; for ...

9

As starting point: \documentclass[tikz, border=3mm, ]{standalone} \usetikzlibrary{arrows.meta, intersections, } \begin{document} \begin{tikzpicture} \draw[->] (-0.1, 0) -- (3,0) node[below left] {$x$}; \draw[->] (0, -0.1) -- (0,4) node[below left] {$y$}; % \draw[name path=A, ...

4

You are placing the nodes badly into the matrix. Just add text within nodes by adding {<text>} into the proper matrix cell. \begin{tikzpicture}[plain/.style={draw=none,fill=none}, net/.style={matrix of nodes, nodes={draw,circle,inner sep=10pt}, nodes in empty cells, ...

4

TikZ requires no special treatment; this gives squares with a 2cm side. \documentclass{article} \usepackage{tikz,xcolor} \begin{document} \begin{tikzpicture} \fill[black!30] (0,0)--(0,2)--(2,0)--cycle ; % the filled triangle \draw (0,0)--(0,2)--(2,2)--(2,0)--cycle ; % the square \draw (0,2)--(2,0) ; % the diagonal \node at (0.5,...

3

Just a simple way, easy to adapt, (but the lines or not dashed). \documentclass{article} \usepackage{tkz-euclide} \begin{document} \begin{tikzpicture} \tkzInit[xmin=-5,xmax=5,ymin=-5,ymax=5] \tkzGrid[sub,color=gray, subxstep=.5,subystep=.5] \tkzAxeXY[very thick] \tkzGrid \end{tikzpicture} \end{document}

4

Here is a short solution with pstricks. Loading auto-pst-pdf, you can compile with pdflatex, if you use the --enable-write18' switch for MiKTeX,shell-escapefor TeX Live or MacTeX. Alternatively you can compile directly withxelatex`: \documentclass[a4paper, 11pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc}% \usepackage{lmodern} \usepackage[...

0

With some colour (and names): \documentclass[x11names, border=3pt]{standalone} \usepackage{pstricks-add} \usepackage{auto-pst-pdf} \begin{document} \begin{pspicture*}(-2.5,-2)(5,4) \psset{algebraic, arrowinset=0.125, arrowsize=3pt, linejoin=1} \psaxes[linecolor=OrangeRed2!80, ticks=none, labels=none, arrows=-](0,0)(-2.5,-2)(5,4) [$x$,-135] [$y$,-135] \...

0

\documentclass{article} \usepackage{pst-plot} \begin{document} \begin{pspicture}(-2,-2)(6,5) \psaxes[labels=none,ticks=none]{->}(0,0)(-2,-2)(6,5) \psplot[linewidth=1.5pt,algebraic,yMaxValue=4.5]{0.1}{5.5}{1/x} \end{pspicture} \end{document}

4

This isn't hugely difficult, and the pictures use nothing that isn't obviously in the manual: \documentclass[varwidth,border=5]{standalone} \usepackage{tikz} \tikzset{ball/.style={shape=circle, shading=ball, ball color=blue!50!cyan!50, minimum size=0.375cm}} \begin{document} \centering \begin{tikzpicture} \draw circle [radius=1]; \foreach \i in {0,...,7} ...

3

Let convert comments to an answer: Logic for positioning nodes, labels is the same as it is at naming of horizon's sides. For example: always we say south west (synonym for below left) and newer west south (= left below) ... Regarding your MWE: see if the following more concise code of your MWE is useful to you: \documentclass{article} \usepackage{amsmath,...

2

You can use groupplots library for pgfplots to form a grid of subplots. Then you can use the options area style to fill the area under a graph and const plot to draw the zigzag line easier. \documentclass{beamer} \usepackage{pgfplots} \usepgfplotslibrary{groupplots} \usepackage[tightpage,active]{preview} \PreviewEnvironment{tikzpicture} \begin{document} \...

Top 50 recent answers are included