# Tag Info

41

You can load the image into inkscape, choose Path | Trace Bitmap to obtain an svg file (using only 8 colors), and then use svg2tikz to convert the svg file to a tex file using tikz. The result is the image below. The tex source is too big to post here; it looks like this. \documentclass{standalone} \usepackage[utf8]{inputenc} \usepackage{tikz} \begin{...

39

One rose...drawing with Mathcha.... \documentclass[a4paper,12pt]{article} \usepackage{tikz} \begin{document} \tikzset{every picture/.style={line width=0.75pt}} %set default line width to 0.75pt \begin{tikzpicture}[x=0.75pt,y=0.75pt,yscale=-1,xscale=1] %uncomment if require: \path (0,439); %set diagram left start at 0, and has height of 439 %Shape: ...

27

Using TikZ and its calc library you can use the ( $(<name1>)!<value>!(<name1>)$ ) syntax to find a point along the segment passing through (<name1>) and (<name2>). In the example below, ( $(a)!0.66666!(b)$ ) means a point that is two thirds away from (a) in the segment joining (a) and (b): \documentclass{article} \...

25

I think that the key here is to put more samples. This is your code, with 100 samples. I changed the domain too, from 0 to 2pi, because yours draws everything twice. I also added a view more alike to the plot in WA that you linked. \documentclass[border=2mm]{standalone} \usepackage {pgfplots} \pgfplotsset{compat=1.17} \begin{document} \begin{tikzpicture} \...

25

This is basic Asymptote code: // // trefoil.asy // // to get trefoil.png, run // asy -f png -render=4 trefoil.asy // // to view it in internal Asymptote 3d-viewer, run // asy -V trefoil.asy // // or, to get an interactive 3D vector WebGL graphics, // embedded within HTML file trefoil.html, run // asy -f html trefoil.asy // import graph3; import tube; ...

21

From the phase plot, your transfer function has: 1 integrator, 1 pole (at w=100), and 2 zeros (at w=0.1 and w=10). It can be written as follows: Here is my attempt using bodegraph package. You can also check this tutorial: The Easiest Way to Draw a BODE Plot in LaTeX!). \documentclass{standalone} \usepackage{bodegraph} \begin{document} \begin{...

20

\documentclass[border=5pt,tikz]{standalone} \begin{document} \begin{tikzpicture}[xscale=1,yscale=1] \fill[blue!20] (0,-2.5) --+ (0,2.5) arc (0:180:1.5) -- (-3,-2.5) arc (180:235:3) --+ (0,-.25) --+ (.45,-.25) --+ (.45,.015) (0,-2.5) arc (0:-55:3); \fill[white] (0,0) arc(0:180:1.5) --+ (0,-2) -| cycle; \fill[blue!10] (-1.5,-2) circle ({1....

18

You don't need to connect nodes. First draw background lines. All starting from (0,0). \foreach \angle in {0,1,...,359} \draw[cyan!50!black] (0,0)--++(\angle:4); Second, draw a circular node white filled: \node[circle, fill=white, text=cyan!50!black, text width=15mm, align=center]{Orion\\2000}; And third (although it's the first command), define the ...

17

\documentclass[a4paper]{article} \pdfpageheight\paperheight \pdfpagewidth\paperwidth \makeatletter \dimen4=.996264\paperheight \dimen6=.996264\paperwidth \pdfliteral page{% q n 0 0 m \strip@pt\dimen6 \space \strip@pt\dimen4 \space l s Q} \begin{document} zzzz \end{document}

17

Note sure if it is more efficient, but it is a lot easier to work with if you define the coordinates first, and then draw them. BTW: +1 for a nice usable MWE \documentclass[border=5pt,tikz]{standalone} \usetikzlibrary{backgrounds,calc} \definecolor{hellblau}{RGB}{18,158,181} \definecolor{dunkelblau}{RGB}{22,141,163} \newcommand{\changefont}[3]{\...

17

So I tried to reproduce the graphics you posted but removing the circle around the Earth and using it to make the equator. Yes, it's a shaded sphere but its position is accurate, trust me. If there is something unclear about the code, please feel free to ask so that it might help you if you decide to do more in TikZ. You can replace the shaded sphere in the ...

16


15

Welcome to TeX.SE! Here is a simple prototype of what you need. Hopefully, you may apply your desired customizations to it. \documentclass[border=1pt]{standalone} \usepackage{tikz} %TikZ central library is called. \usetikzlibrary{automata,positioning} % automata and positioning libraries are required to use nodes and coordinates in addition to placement ...

15

For complicated figures with graphics, I think there is some consensus that tikz is the way to go. It is probably worth learning. It is amazing, but can be intimidating for the beginner. For very simple pictures (lines, arrows, text, ovals) the picture environment has easy-to-learn tools. The \put command together with \line and \vector commands can recreate ...

15

Here is a solution that automates the process with the command \contour: Each circle must be given a name. For convenience, I also used the \coordinate command for each of the poles. Then you must choose, for each pole, a coordinate outside the main shape. The contours will be drawn parallel to the line from the external point to the corresponding pole. For ...

14

To connect the edges of the circle you can use the border anchors of nodes (A.120) and the to Operator to connect it to the outer square. \documentclass[tikz, border=5mm]{standalone} \begin{document} \begin{tikzpicture} \draw[clip] (-2,-2) rectangle +(3,3); \node[minimum size=5cm](A){}; \node[circle, draw, minimum size=1cm](B) at (A.center) {}; \foreach \...

14

\documentclass[border=3pt,tikz]{standalone} \usetikzlibrary{decorations.pathreplacing} \begin{document} \begin{tikzpicture} \draw[very thick,-{latex}] (0,0) -- (6,0) node[below]{$x$}; \foreach \x/\l in {1/-r,3/{},5/+r} \draw (\x,3pt) -- (\x,-3pt) node[below]{$x_0\l$}; \draw [decorate,decoration={brace,amplitude=5pt,mirror,raise=4ex}] (1,0) -- (5,0) ...

13

There is no every draw available. One possible way is to style every path. \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[every path/.style={->,red,thick}] \draw(0,0)node[left]{$A$}--(5,0)node[right]{$B$}; \end{tikzpicture} \end{document} An alternative solution is to globally set draw for every picture. ...

13

Like this? \documentclass[border=10pt,multi,tikz]{standalone} \begin{document} \begin{tikzpicture} \foreach \m in {0,1,2}{ % draws shaded regions \draw [fill=gray!50!white, rounded corners] ({ 15+120*\m}:2.25) arc ({15+120*\m}:{129+120*\m}:2.25) -- ({129+120*\m}:1.75) arc ({129+120*\m}:{15+120*\m}:1.75) -- cycle; } % draws non shaded regions \...

13

\documentclass[border=2mm, tikz]{standalone} \usetikzlibrary{matrix, positioning} \tikzset{ trafficlight/.style = {% matrix of nodes, nodes in empty cells, rounded corners, draw = blue!70, fill = blue!30, nodes = {circle, minimum size=5mm, anchor=center, draw=black}, row 1/.style={nodes={fill=red}}...

13

Here's how to do it with pstricks. I also suggest a line with arms: \documentclass[svgnames]{article} \usepackage{pst-node} % \usepackage{auto-pst-pdf} to compile with pdflatex --enable-write18 (MiKTeX) % or pdflatex --shell-escape (TeXLive, MacTeX) \begin{document} This is a very long\Rnode{st}{ \underline{sentence that}} appears in this very \Rnode{ss}{\...

12

With tkz-euclide you can use a barycentric coordinate, which can be used to place points between other points. A point p lying on the line between the points A and B can be written as (a1 + a2)p = a1A + a2B, and (a1, a2) will be the barycentric coordinate of p. A point that is 2/3 along the way between A and B can be found by the vector sum A + (2/3)(B - A) ...

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