# Tag Info

1

Even you are new to TikZ, but in fact your question is already answered in some answers of your previous questions. For the manual and a minimal introduction to TikZ, see this. Here is a way that you can control numbers a, b via [declare function]. \documentclass[tikz,border=5mm]{standalone} \begin{document} \begin{tikzpicture}[nodes={midway,magenta},join=...

1

With use of the quotes library: \documentclass[border=3.141592]{standalone} \usepackage{tikz} \usetikzlibrary{quotes} \begin{document} \begin{tikzpicture}[scale=0.50] \draw (0,0) to ["$c$"] (3,10) -- (13,7) -- (10,-3) -- cycle ; \draw (3,7) -- (13,7) ; \draw (3,7) -- (3,10) ; \draw (10,7) -- (10,-3); \draw (0,0) to ["$b$"] (3,0) -- (...

2

\documentclass[12pt]{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} [scale=0.50] \draw (0,0) -- node[left](){c}(3,10) -- (13,7) -- (10,-3) -- cycle ; \draw (3,7) -- (13,7) ; \draw (3,7) -- (3,10) ; \draw (10,7) -- (10,-3) ; \draw (0,0) -- node[above, pos=0.2](){b}(10,0) ; \draw (3,0) -- node[right](){a}(3,10) ; \end{...

0

Check the next links below: Stata module/package to generate a publication-quality subject disposition flow diagram in LaTeX using the PGF/TikZ package directly within Stata using texdoc: https://github.com/IsaacDodd/flowchart A collection of common examples for scientific papers especially for Deep Learning: https://github.com/lingkangjie/LaTex_Figures

1

An attempt using the TikZ calendar library. Work only with lualatex (too many nodes for pdflatex). Some further detail in the code comments. % !TEX program = lualatex \documentclass[border=3mm]{standalone} \usepackage{fontspec}% for LuaLaTeX only \setsansfont{Roboto}% for LuaLaTeX only %\usepackage{txfonts} \usepackage{tikz} \usetikzlibrary{calendar,...

3

With the help of quotes and angles libraries, it's not difficult to get it. \documentclass[tikz,border=3mm]{standalone} \usetikzlibrary{calc, angles, quotes, backgrounds} \begin{document} \begin{tikzpicture} \draw (0,0) node[below left] {$C$} coordinate (C) -- (0,3) node[above left] {$A$} coordinate (A) -- (5,0) node[below right] {$B$} coordinate (B)--...

3

Whithout lua \documentclass[tikz,border=3mm]{standalone} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture} \draw[-Latex] (0,0) -- ++(90:3.5); \draw[-Latex] (0,0) -- ++(0:12.5); \begin{scope} \path[clip] (0,0) rectangle (12,3.5); \foreach \i/\j [count=\ni] in {0/orange,1/green,2/blue,3/red,4/brown} \draw[\j, xshift=-3cm] (3cm*\i,0)--...

5

Just for fun, an animated (beamer) version. \documentclass {beamer} \usepackage {tikz} \usetikzlibrary{calc} % beamer configuration \setbeamertemplate{navigation symbols}{} \usefonttheme {serif} \def\n{20} % transitions (half) \def\a{1.5} \def\b{3} \pgfmathsetmacro\l{\a+\b} % square lenght \definecolor{color1}{HTML}{1F78B4} \definecolor{color2}{...

0

Updated answer: How's this? I don't know what \x is for, so I just ignored it. The shade balls are now no longer wider than the small pipe. Is that on the right track? MWE \documentclass[tikz,border=5]{standalone} \usetikzlibrary{decorations.markings,decorations.pathreplacing,calc} \makeatletter \usetikzlibrary{spy, backgrounds} \usetikzlibrary{calc,fadings,...

8

You can use \usetikzlibrary{snakes} \documentclass[border=1cm]{standalone} \usepackage{tikz} \usetikzlibrary{snakes} \begin{document} \begin{tikzpicture}[->,>= stealth] \draw[snake=snake,red] (0,0) -- (3,0) node[below,xshift=-1.5cm,yshift=-0.25cm] {$\Delta E=hv$}; \end{tikzpicture} \end{document} You can achieve the same by using \...

3

Welcome to TeX.SE! Just add nodes above given coordinates: \documentclass[border=3.141593]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0,0) node[above] {A} -- (2,1) node[above] {B}; \end{tikzpicture} \end{document} [![enter image description here][1]][1] Addendum: You are quite demanding: full service for two equal problems....

2

With support of Lua I figured something like this out: \documentclass{standalone} \usepackage{tikz} \usepackage{luacode} \begin{document} \begin{tikzpicture}[ x = 2cm, y = 2cm, plot label/.style = {above right}, xticklabel/.style = {below} ] \begin{luacode} xmin, xmax, denom, step = 0, 40, 8, 8 n = xmax - xmin ...

5

I propose this solution withe pst-eucl module of pstricks, which can mimick constructions of plane geometry: \documentclass[border=6pt]{standalone} \usepackage[x11names,svgnames]{xcolor}% \usepackage{pst-eucl} \begin{document} \begin{pspicture}(-1,-1)(7,5) \psset{PointSymbol=none, linejoin=1,CodeFigStyle=solid, CodeFigColor=black} \pstTriangle[PosAngle={...

2


2

Your tex file complies fine in my TeX Live 2021 and generates the following picture:

2

Welcome to TeX.SX! If you just want to make this work with plain expressions such as a_b or the like, that don't contain any additional macros, you could make use of the xstring package to replace the underscore in the node text by its equivalent macro, such as follows: \documentclass[tikz, border=2mm]{standalone} \usepackage{xstring} \newcommand\block[1][ ...

Top 50 recent answers are included