# Tag Info

## New answers tagged technical-drawing

0

Just for comparison, in Metapost you can either draw the path directly using halfcircles or use the rboxes library to make rounded boxes. prologues:=3;outputtemplate:="%j%c.eps"; % A macro that returns the path of a rectangle with rounded ends vardef vessel(expr width, height) = halfcircle rotated -90 scaled height shifted (+1/2 width,0) -- ...

4

Is this what you want? Problem 1: Adding the pictures, like database Display Database Instance Relationship with TikZ, for example in the cells (stack-5-6) (stack-6-6) with the name to make an arrow in future. Cells (stack-5-6) (stack-6-6) doesn't exist because you declared option nodes in empty cells=false and no nodes are created in empty cells. But ...

0

Simplified and cleaned up version to produce what i assume you try to achieve. It's partly taken from Jesse's solution and tries to simplify the code for a better understanding. \documentclass[tikz, border=5mm]{standalone} \begin{document} \begin{tikzpicture}[scale=.5] \draw (0,0) -- ++(12,0); \foreach \l [count=\x from 0] in {A,...,L} { \draw ...

2

Would this be what you tried to achieve? When I run your case and added more rectangles into the code, it seems that the rectangle got confused with the coordinates. So this solution uses relative coordinate \draw (A) rectangle ++(x,y) and the problem seems gone. This solution also simplies your code into foreach loop coding. Note: Thanks to @Ignasi's ...

4

We can use the pic environment from PGF 3.0 to define any pattern and just use it as a node wherever we want. Here is an example of a line break of the last pattern as per the OP: \documentclass[tikz,border=2mm]{standalone} \tikzset{ext/.pic={ \path [fill=white] (-0.2,0)to[bend left](0,0.1)to[bend right](0.2,0.2)to(0.2,0)to[bend left](0,-0.1)to[bend ...

5

\documentclass[tikz,border=5mm]{standalone} \usepackage{amssymb} \begin{document} \begin{tikzpicture} \draw (4,0.2) -- node[fill=white,rotate=90,inner sep=-1.25pt,outer sep=0,anchor=center]{$\approx$} (8,0.2); \draw (4,1.8) -- node[fill=white,rotate=0,inner sep=-2.5pt,outer sep=0]{//} (8,1.8); \end{tikzpicture} \end{document}

3

It is a combination of broken path joins and viewer rendering quality. You can draw it at one shot or put a node instead. \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \draw[blue,fill=blue!30] (0,0.4) arc (90:270:0.4cm)-- (2,-0.4) arc (-90:90:0.4cm)--cycle; \node[draw=red,fill=red!30,rounded corners=0.4cm,minimum ...

3

A solution with PSTricks just for fun. \documentclass[pstricks,border=12pt]{standalone} \begin{document} \begin{pspicture}(10,4) \pscustom[dimen=m,fillstyle=solid,fillcolor=orange,linewidth=2pt] { \psarc(2,2){2}{90}{-90} \psarc(8,2){2}{-90}{90} \closepath } \end{pspicture} \end{document}

5

And just for comparison, with Metapost. Not a sine or a cosine in sight! prologues := 3; outputtemplate := "%j%c.eps"; beginfig(1); a = 1.414cm; % this controls the scale of the whole figure pi = 3.14159265359; % define the cycloid path c; c = origin rotatedabout((0,a),100) shifted (a*-100/180*pi,0) for t=-99 upto 460: -- origin ...

8

Here is one attempt using hobby. \documentclass[tikz]{standalone} \usetikzlibrary{hobby,patterns} \begin{document} \begin{tikzpicture} \draw[thick,->] (52,0) -- (60,0) node[anchor=north west] {$x'$}; \draw[thick,->] (56,-04) -- (56,04) node[anchor=south east] {$x_N$}; \node[draw=red,dashed,thick,circle,minimum width=4cm] (n) at (56,0) {}; ...

3

Thanks for questioning. Just for fun with PSTricks. \documentclass[pstricks,border=15pt,12pt]{standalone} \usepackage{fp} \FPeval\XMin{0-1} \FPeval\XMax{2*pi+1} \usepackage{pst-plot,pst-node} \psset { algebraic, linejoin=1, labels=none, ticks=none, dimen=m, linecolor=lightgray, linewidth=2\pslinewidth, } \def\x{(t-sin(t))} ...

8

Since you are getting experienced with TikZ, here is the curve, the rest is up to you \begin{tikzpicture} \draw[->] (0,0) -- (0,3); \draw[->] (0,0) -- (2.6*pi,0); \draw[red,domain=-0.5*pi:2.5*pi,samples=50] plot ({\x - sin(\x r)},{1 - cos(\x r)}); \end{tikzpicture}

1

A direct translation from TikZ (with 374 characters) to PSTricks (with 362 characters). \documentclass[pstricks,border=3mm]{standalone} \usepackage{pst-node} \begin{document} \begin{pspicture}(-1.5,-1.5)(3,3) \psline{->}(-1.5,0)(3,0) \psline{->}(0,-1.5)(0,3) \pspolygon[linestyle=dashed](-1,0)(0,1)(1,0)(0,-1) \uput[-135](0,0){$x$} ...

5

Here is a quick and dirty solution for your problem. All the information you need can also be taken easily from the pgfmanual as stated above. The solution is based on using coordinates for the interesting points. This way the code can be reused easily with other values. \documentclass[border=5mm, tikz]{standalone} \usepackage{xifthen} ...

1

Here is one way to do arc symbols \documentclass{standalone} \usepackage{mathtools} \usepackage{graphics} \newlength{\tempa} \newcommand{\arc}[1]% #1=symbols, as in \arc{AB} {\begingroup% preserve \tempa \settowidth{\tempa}{$#1$}% \overset{\mbox{\hspace{.1em}\resizebox{\tempa}{1ex}{$\frown$}}}{#1} \endgroup} \begin{document} $\arc{AB}$, $\arc{ABC}$ and ...

Top 50 recent answers are included