Tag Info

New answers tagged

2

Use \graphicspath in the preamble as in: \documentclass{article} \usepackage{graphicx} \graphicspath{{./img/},{./pictures/}} \begin{document} \includegraphics{one} %picture named one in directory img \includegraphics{two} %picture named two in directory img \includegraphics{three} %picture named three in directory pictures \end{document} ...


4

There's no need to define a new shape; the shapes.geometric library already offers you the trapezium shape; with this, you can simply define a style; the already existing anchors for the trapezium can now be easily used for the in and out parts: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes.geometric} \tikzset{ multiplexer/.style={ ...


4

You can use a pic for this. \documentclass[tikz,border=7mm]{standalone} \usetikzlibrary{calc,quotes} \tikzset{ multiplexer/.pic ={ \coordinate (-out) at (.8,0); \coordinate (-in-up) at (-0.8,.5); \coordinate (-in-down) at (-0.8,-.5); \draw[pic actions] (-.5,1.25) -- ++(1,-.5) -- ++(0,-1.5) -- ++(-1,-.5) --cycle; \draw[pic actions] ...


4

Here is one idea that don't work very well (because of the precision problems). Take the length of the path set the coil segment length ot 1/n of this length and decorate ... Here is one experimentation. \documentclass[varwidth,border=7mm]{standalone} \usepackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{decorations.markings,decorations.pathmorphing} ...



Top 50 recent answers are included