New answers tagged

2

\documentclass[tikz,border=3mm]{standalone} \usetikzlibrary[arrows.meta] \begin{document} \begin{tikzpicture}[ line/.style = {draw,thick, shorten >=-2pt, shorten <=-2pt} ] \draw (-3,0) -- (7,0); \foreach \i in {-3,-2,...,7} % numbers on line \draw (\i,0.15) -- ++ (0,-0.3) node[below] {$\i$}; % tick and their ...


2

Looking at your code, I had mixed impressions: the useful lines are buried among many unuseful ones (maybe for this reason) the connection between math and tikz has been lost from sight. Anyway, after cleaning up your code, I changed the definition of the TP function into the correct one, added the dashed line, and added the label making the connection ...


1

This is a mix between Zarko's Addendum and my answer to Add arrow between two tcolorboxes The example is built into a beamer document. As overlay and remember picture are used, the arrow between boxes will appear after second compilation. \documentclass{beamer} \usepackage{amsmath} \usepackage[most]{tcolorbox} \usetikzlibrary{arrows.meta, ...


0

With se of the calc and chains libraries for positioning of diagram nodes is possible to make code for control diagram significant shorter: \documentclass[tikz, margin=3mm]{standalone} \usetikzlibrary{arrows.meta, calc, chains, positioning, quotes} \usepackage{amsmath} \begin{document} \begin{tikzpicture}[ ...


1

You load the positioning package, but don't use its facilities. Instead of right of=xxx, write right=of xxx, and likewise the rest. Instead of right=of sum, write right=of input. Now the boxes are equally and symmetrically spaced. For additional adjustements, change node distance for global changes. use right=15mm of xxx for individual changes. If ...


3

You not provide any code what you tray so far, so, we can only guess and eventually retype your equations. Usually such service is not provided here, so the following proposition not directly addresses all your problems. In case that you like to have tcolorboxes, the following may be a solution: \usepackage[most]{tcolorbox} \tcbset{on line, ...


2

I cleaned up your code a bit and labeled the arrows, however, I'm currently not sure how to reference the arrows in the text. I'll see if I can come up with a solution to this problem. Until then, here's a cleaned-up version of your graphic. Please note that I have changed your coordinates to something smaller than they currently are as TikZ generally uses ...


2

I think it's not so simple. Try \[a \to b c_{x\to y_{z \to 0}}\] My proposal is to use the picture mode arrow as suggested by @LSGQ but using \matchoice to adapt the size, and using \mathop to obtain the correct spacing; clearly if you prefer TikZ arrows you can adapt @Zarko's solution as well. \documentclass{article} \usepackage{pict2e} \usepackage{...


1

If you only need horizontal arrows, you don't need to load any packages, base LaTeX is enough: \renewcommand{\to}{\raisebox{.5ex}{\ \vector(1,0){.5cm}\ }} (in fact, is good old pict package). You can adjust length and math spacing. Works in math mode.


4

\documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows} \let\oldto\to \renewcommand\to[1][1.4em]{\tikz[baseline=-0.5ex, shorten <=2pt, shorten >=2pt] \draw[-latex] (0,0) -- (#1,0);} \begin{document} $a\to b$ $a \oldto b$ \end{document}


1

Like this? \documentclass[12pt, a4paper]{article} \usepackage[russian]{babel} \usepackage{listings} \usepackage{tikz} \usetikzlibrary{arrows.meta, chains, % new positioning, % new quotes, % new shapes.geometric, shapes.multipart, babel ...


1

Ok, since you are new here ... and for exercise and fun: \documentclass[tikz, margin=3mm]{standalone} \usetikzlibrary{arrows.meta, chains, positioning} \begin{document} \begin{tikzpicture}[ node distance = 5mm and 3mm, start chain = going right, box/.style = {draw, thick, text width=8em, minimum ...


1

Since you define explicitely the length of the \arrow markings. You could use a decoration tranform, see pgfmanual §24.4.1. In the present case I shifted the arrows by their half-length. Here is the output, with in blue your plot and the sifted one in seli-transparent red. % arara: lwpdflatex \documentclass{scrbook} \usepackage{tikz} \usepackage{pgfplots} \...


3

A small variation.mostly off-topic of nice @ BambOo answer (+1), for fun and exercise. Main differences are in defined styles, which enable to write shorter and more clear code: \documentclass[margin=3mm]{standalone} \usepackage{newtxtext} % provide also bold small caps fonts \usepackage{tikzlings} \usetikzlibrary{arrows.meta, fit} \begin{...


4

At the moment, based on your code, I obtain the following picture: Based on your intent to use an image clipped by a path, I propose you an alternative based on the path picture syntax presented in section §15.6 of the pgfmanual. This alternative gives the figure at the bottom of this answer. \documentclass[tikz]{standalone} \usetikzlibrary{fit} \usepackage{...


2

\documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.17} \begin{document} With pure \verb+tikz+: \bigskip \begin{tikzpicture} % draw x , y lines \draw[thick,->] (0,0) -- node[below=3ex] {$x$ axis} (5.9,0) ; \draw[thick,->] (0,0) -- node[left=3em,rotate=90] {$y$ axis} (0,5.9) ; % draw x ,y points (Values) \foreach \i [count=\j from ...


1

I was the developer of EXPRESS-G and wrote the expressg package for easy creation of EXPRESS-G, and other BLA (BoX Line Annotation) diagrams. Unfortunatly, for some reason doing texdoc expressg returns expeg.pdf which shows samples of the package's output. For some reason the package is not in my computer's copy of TexLive but is available from https://ctan....


5

With arrows.meta you can actually add drawing instructions to the arrow tip, so you could define a new arrow tip with circ/.tip={Circle[/tikz/thin, open, width=5pt, length=5pt]} and use -circ. \documentclass[tikz,border=5mm]{standalone} \usetikzlibrary{arrows,arrows.meta,positioning} \begin{document} \begin{tikzpicture}[ every node/.style={draw}, ...


0

Like this? \documentclass[tikz, border=3mm]{standalone} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture}[%smooth,scale=0.8 > = Straight Barb, dot/.style = {circle, draw, thick, fill=blue, inner sep=2pt, label={[fill=white, inner sep=1pt, font=\small]60:#1}, node contents={},} ...


Top 50 recent answers are included