Tag Info

5

\documentclass[tikz, border=1cm]{standalone} \usetikzlibrary{hobby, decorations.markings, arrows.meta} \begin{document} \begin{tikzpicture}[use Hobby shortcut] \newcommand{\curve}{(-2,-1) .. (1,-2) .. (2,2) .. (0,1)} \draw[ closed, decoration={ markings, mark=at position 0.2 with {\draw[red, thick, -Stealth] (0,0) -- (0.6,0); \draw[thick, -Stealth] (0,0) ...

7

This won't work. However, you can save the inner tree into a box and then put the box contents into the node of the outer tree, as shown below. (I also changed the baseline of the inner tree to its center, so that the inner tree fits nicely within the brackets.) \documentclass{article} \usepackage{forest} \newbox\mybox \begin{document} \setbox\mybox=\...

2

If you consider a plain TikZ solution, this is a possibility. I give you three alternatives: drawing a double line, a polygon with rounded corners or using the fit library (also with rounded corners). Something like this: \documentclass[tikz,border=2mm]{standalone} \usetikzlibrary{fit} \begin{document} \begin{tikzpicture}[y=2cm,line cap=round,line join=...

0

This makes the circles slightly opaque. \documentclass[tikz]{standalone} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture}[scale=2 ,>=stealth] \draw[dashed] (0,-2)--(0,0);% bottom \filldraw[] (0,-1.5)circle(0.025) node[left] {$P$}; \draw[<->] (0.5, 0)--(0.5,-1.5) node[right, midway] {$b$}; \fill[white, opacity=0....

2

It's maybe not optimal in term of for loops, but I think it does what you asked \documentclass[tikz,border=2mm]{standalone} \newcommand{\myGrid}[3]{ \begin{scope}[shift={(#1, #2)}] \foreach \i in {0,...,#3}{ \draw (\i,0) rectangle (1, -1); } \end{scope} } \begin{document} \begin{tikzpicture}[font=\large,thick,>=stealth] %%% % T ...

2

A simple fix is to place the verbatim environment inside a minipage Also, \tiny command doesn't take as argument the text that you want to scale but no argument at all... See the changed command. \documentclass{report} \usepackage{tikz} \usetikzlibrary{arrows,positioning} \usetikzlibrary{arrows.meta,chains,shapes.geometric} \begin{document} \begin{figure} \...

6

Why don't you start a new year with a plain TikZ answer for the without-MWE question? Technically, this TikZ figure using relevant combinations of node and pic. Some curves are drawn using to[bend left] or to[bend right] options. The operation |- means going first vertically, then horizontally. Arrow is a different issue; here I choose >=stealth. PS: TikZ ...

7

Another attempt, looking for a function as simple as possible that fits with the original drawing. For example: \documentclass[tikz,border=2mm]{standalone} \usetikzlibrary{3d,perspective} \begin{document} \begin{tikzpicture}[isometric view,blue] \foreach\i in {-0.5,0.5} \draw[canvas is xy plane at z=\i] (0,0) circle ({sqrt(4-\i*\i)}); \draw[red] plot[...

3

A tikz only suggestion by simply drawing it: \documentclass[border=0.5cm]{standalone} \usepackage{tikz} \usetikzlibrary{decorations.pathmorphing} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \draw (3,0) circle (2cm); \draw (1.21,0.91) .. controls (2,0.33) and (4,0.30) .. (4.84,0.80); \draw (1,0.07) .. controls (2,-0....

1

If you know the functions of your plots your best option would be pgfplots: \documentclass[border=1cm]{standalone} \usepackage{tikz,pgfplots} \pgfplotsset{compat=1.12} \usepackage{upgreek} \begin{document} \begin{tikzpicture} \begin{axis}[ axis lines=middle, xlabel=$\uptau 1$, every axis x label/.style={at={(current axis.right of origin)},...

0

If you want to color the background of a TikZ image you can use backgrounds library by specifying [background rectangle/.style={fill=yellow}, show background rectangle] as picture style, for example. \documentclass[tikz, border=7mm]{standalone} \usepackage{tikz} \usetikzlibrary{calc, backgrounds} \begin{document} \begin{tikzpicture}[background rectangle/....

0

This is an illustration of the complex solutions of $z^{n}=1$ from a book I'm writing... not sure if I should add the angles themselves, but I'm happy with how it looks so far: Code for generating the solutions as a function of n (needs to be inside an axis environment in tikz, and the axis settings are pretty standard so I won't repeat them here): \...

0

It doesn't work because tikzpicture is not a float. If you wrap your tikzpicture in a \begin{figure}...\end{figure} float, and add the \makeatletter code, it works as your prior example. \documentclass{article} \usepackage{tikz} \makeatletter \def\foo#1\normalcolor\vbox\bgroup#2!!{% \def\@xfloat ##1[##2]{#1% \normalcolor \hbox\bgroup{\color{yellow}\...

3

Here is a possible solution, partly with trial and error. However, I think it would be easier with the \psDefBoxNodes command from pst-node. \documentclass[svgnames]{article} \usepackage{tikz-cd, amsmath, amssymb} \usepackage{nccmath} \usepackage{geometry} \newcommand{\FS}{\text{fuzzy soft }} \begin{document} \begin{fleqn} \tikzcdset{column sep/normal=2....

3

As I mentioned in comment, it seems that use of the tikz-cd package is promising way to go. As starting point can serve the following example: \documentclass[margin=3.14159]{standalone} \usepackage{amsmath} \usepackage{tikz-cd} \begin{document} \begin{tikzcd} \text{text} \ar[r] & \text{text} \ar[r] & \text{text} \ar[dr] ...

4

You can do something like the following. I created a couple of styles to allow easy visual modifications, and then I made a scope with a change of origin and a rotation. The new origin will be at the cross point of the gray/green lines, and the x-axis will be the same than the green line. This way it will be simple to find the coordinates of all elements ...

1

This can be done with Tikz. If you want to learn Tikz, I suggest you read the manual. It contains a lot of good examples. \documentclass[tikz,border=2pt]{standalone} \begin{document} \begin{tikzpicture}[->] \node (a) at (90:2cm) {Democrat}; \node (b) at (-30:2cm) {Republician}; \node (c) at (210:2cm) {Third}; ...

2

diagrams is a domain-specific language for creating vector graphics using Haskell. It has several backends that allow for direct embedding into LaTeX files. As an example, take a look at the diagrams in Brent Yorgey's PhD thesis, that are all done with this library (you can see the examples in the pdf... jump to the diagrams linked in the List of Figures (...

0

diagrams is a domain-specific language for creating vector graphics using Haskell. It has several backends that allow for direct embedding into LaTeX files. As an example, take a look at the diagrams in Brent Yorgey's PhD thesis, that are all done with this library (you can see the examples in the pdf... jump to the diagrams linked in the List of Figures (...

0

Since wordle seems to be hard to find, here is another (non LaTeX) tool to create nice images that you can download. It's quite customizable (you can define multiple orientations for the text, and choose the font, the size dynamics, the shape of the spiral, the number of words...) It is based on the open source d3-cloud algorithm. The principle is explained ...

1

To shown three images side by side inside of a beamer frame, use three \includegraphics commands in a row. Make sure, the combined width of all three images is smaller than the current textwidth in order to ensure all images are shown side by side. To evenly space the images apart, add \hfill between adjacent \includegraphics commands. In order to ...

2

Shift of some path as you like to do, is not possible. However you can at shift consider coordinate of this node. For example, if node is positioned right from (0,0), that you shift path which draw your loudspeaker for example by \draw[scale=0.25, xshift=-40mm] ... Your image can be drawn on more consistent and concise way. By use of the chain library the ...

4

Here is a short code with pstricks: \documentclass[border=6pt, pstricks, svgnames]{standalone} \usepackage{pst-plot} \begin{document} \begin{pspicture*}(-2.95,-2.95)(3,3) \psset{arrowinset=0.15,showorigin=false, labelFontSize=\scriptstyle, linejoin=1} \psaxes[linecolor=LightSteelBlue, ticksize=-2pt 2pt]{->}(0,0)(-2.95,-2.95)(3,3)[$x$,-120][$y$, -120] \...

6

I am not good at tikz, node atc. But I'v tried to help and here is my variant: \documentclass[a4paper,14pt]{extreport} \usepackage[left=1.5cm,right=1.5cm, top=1.5cm,bottom=2cm,bindingoffset=0cm]{geometry} \usepackage{amsmath} \usepackage{tikz} \usetikzlibrary{shapes.geometric} \begin{document} \begin{minipage}[m]{0.5\linewidth} \begin{...

10

A plain TikZ solution. \documentclass[tikz,border=5mm]{standalone} \usepackage{amsmath} \begin{document} \begin{tikzpicture} \def\a{2} \def\b{2.5} \draw[cyan,thick,c/.style={fill=cyan,circle,inner sep=1.6pt}] (-\a,0) node[c]{} node[black,left] (x) {$x$}-- (0,-\b) node[c]{} node[black,below] (t) {$t$} node[midway,black,below left]{$\dfrac{dx}{dt}$}-- (\a,0) ...

3

You can use the Tikz package. This code can be a start point for you: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} [nodePath/.style={circle,fill=yellow!40}] \node[nodePath] (n1) at (0,4) {1}; \node[nodePath] (n2) at (4,4) {2}; \node[nodePath] (n3) at (4,0) {3}; \node[nodePath] (n4) at (0,0) {4}; \...

1

Is it what You want? \documentclass{article} \begin{document} \newcommand{\Int}{\int\limits} $$\Int_{0}^{1} \Int_{1-x}^{1-x^2}f(x,y) \,dx\,dy$$ \end{document}

1

No special packages are needed for this table. \documentclass{article} \begin{document} \[\begin{array}{ccccc} & u_{1,5} & u_{2,5} & u_{3,5} & \\ & \ast & \ast & \ast & \\ C_{0,4} & u_{1,4} & u_{2,4} & u_{3,4} & C_{4,4} \\ \ast & \circ & \circ & \circ &...

4

Values of angles written by quotes (on usual way) does not given very pleasant result. In this particular case seems to be more appropriate add them separately outside of pic macro. For example, as is done in the following MWE: \documentclass[tikz,border=5mm]{standalone} \usetikzlibrary{angles, arrows.meta, quotes} \usepackage{siunitx} \...

Top 50 recent answers are included