2022 Developer Survey is open! Take survey.

# Tag Info

### move footcite lower on slide in beamer

With small changes in definitions of the nodes styles and node distance your image with use of the \small font size can nicely fin on slide: \documentclass{beamer} \usepackage{pifont} \usepackage{...
• 251k
1 vote

### move footcite lower on slide in beamer

The footnote was already at the bottom of the margin. Some suggestions for you: Using \centering instead of \begin{center}...\end{center} will remove some extra space before the tikz. You could use \...
• 1,893

### How to create Bärnighausen Trees?

Fig. 2: Full Bärnighausen Tree with a Branch using TikZ Matrix I have added in red a small change to the original tree to emphasise the Wyckoff changes for the second branch as well: I added the first ...
• 4,853
Accepted

### Drawing a Pyramid within a Rectangular with Arrows and Text

Doing this for entertainment :) \documentclass[tikz,border=15pt]{standalone} \usepackage{fontspec} \usepackage{newtxtext} \setsansfont {texgyreheros} [ Scale = MatchUppercase , ...
• 5,044

### How to draw a path alternating in background and foreground?

Just an addition to @Tom's very nice answer. With these definitions, it is possible to parameterize the decorations using amplitude and segmengt length. Their result is stored in the TeX-dimensions \...
• 1,651
Accepted

### Classification of index in Phase Portaits

I added mark=between positions #1 and 0.99 step 1.5em with {\arrow{>} [scale=0.5]} to your decoration, so the original source code works as previously, I also created your index = -2 design at ...
• 3,092

### How to create Bärnighausen Trees?

Fig. 1: Linear, Full Bärnighausen Trees using TikZ Matrix One descent with coordinate transformation \documentclass[tikz,border=0.2cm]{standalone} \usepackage{gu} % for German fraction abbreviations \...
• 4,853
1 vote
Accepted

### multiple bar in horizontal bar chart in latex

As starting point: \documentclass[border=5pt]{standalone} \usepackage{pgfplots, pgfplotstable} \pgfplotsset{compat=1.18} \pgfplotstableread[col sep=comma]{ X, Y1, Y2, Y3 LSTM, 60, 10, 30 GRU, 20, ...
• 251k
Accepted

### How to fill a region between lines and a curve in tikz?

Here is a possible solution. \documentclass{report} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \coordinate (I) at (0,2); \coordinate(II) at (2,2); \coordinate(...
• 3,489
Accepted

### How to draw a path alternating in background and foreground?

This might not be an elegant way. But seems worked. You could declare two decoration: one for right slanted spring , one for left slanted spring. Then put one before the bar, the other one after the ...
• 1,893
1 vote

### Add label function to graph

Try this code: \documentclass[preview, border=10 pt, convert={size=800x800,outext=.png}]{standalone} \usepackage{pgfplots,tikz} \pgfplotsset{ticks=none} \begin{document} \begin{center} \...
• 2,554

### How to draw a circle in 3D such that the plane containing the circle is orthogonal to a given vector?

You can calculate the vector spherical coordinates and then rotate the canvas using TikZ 3d library. I made a simple macro just to show the idea, but you can add more parameters as needed (center, ...
• 18.2k
Accepted

### Small position discrepancy in tikz

It's caused by the default setting on grid=false. You can read its doc (https://tikz.dev/tikz-shapes#pgf./tikz/on:grid) for more info. In \path (7) ++(170:2) node (b) {$\mathbb{N}^3$}% ...
• 20.7k

### How to draw a circle in 3D such that the plane containing the circle is orthogonal to a given vector?

There are infinite circles as you say. In 3D, a circle is defined by a plane and a sphere. In this code, suppose you want to draw a circle with center at (a, b, c), radius rcircle, normal vector of ...
• 8,657

### Make tikz matrix of nodes uniform

Diference between letters and numbers height are defined by fonts design, so this has nothing with their use for example in tikz pictures. However, if you would write your matrix in more usual way, ...
• 251k

### Make tikz matrix of nodes uniform

I think that a problem could be nodes alignment. A matrix of nodes uses a base alignment by default which is different for letters and numbers and looks like letters nodes are larger thant number ones....
• 127k

### Make tikz matrix of nodes uniform

I think this is nothing related to the node. This is how they will be type depends on the font. If you really want ro make them in same height. You can manfully scale the number a little bit. However ...
• 1,893
1 vote

### Hierarchical tick-labels in PGF plot

To get the right xticks, you can combine xtick and xticklabels. After that, nodes can be used to position the group titles A, B and C. For this, clipping must be switched off. \documentclass{...
• 362
1 vote

### pgfplot x-axis with constant positions

You can use symbolic x coords to solve your problem. \documentclass{article} \usepackage[margin=0.25in]{geometry} \usepackage{pgfplots} \pgfplotsset{width=10cm,compat=1.18} % SI units: celsius and ...
• 362

### Most common command to compile a LaTeX document?

If the user has tex at all they will (almost certainly) have pdflatex. The form with the document in a string on the command line is highly non portable though. pdflatex "...
• 665k
Accepted

### A finite number of arrows in an ODE solution

This solves the first issue of the question, getting a finite number of arrows. The command \pstODEsolve can be called with an empty initial conditions argument. Then, it uses the last computed state ...
• 50.9k

### Most common command to compile a LaTeX document?

LaTeX is the generic name of the typesetting system, and the name of the format. Then you have several compilers. I'll just mention a few of them: pdflatex is the historical compiler (although not ...
• 824
Accepted

### Nonlinear transformation applied on decorations along path with a custom pic

I propose the following solution to your problem: I have positioned the image of the endothelial cell along a path. Play with the positions if the chain is not placed correctly. \documentclass[margin=...
• 362
1 vote
Accepted

### How to place braces below a tree in tikz using relative coordinates (as opposed to hard-coded lengths)?

Like this? In comparison to your MWE, I add calligraphy library (for more fancy braces) and rename nodes. For position of brace anchors are used perpendicular coordinate. \documentclass{scrartcl} \...
• 251k
Accepted

### TikZ: Why is a scalebox-ed picture not exactly centered even with the centering option?

I believe the issue is one purely of extra stray spaces introduced at line ends. Adding % to those line ends resolves it in the article class (I could not compile in the OP's document class). \...
1 vote
Accepted

### 3D Matrix as Mark To market Cube for finance in TikzPicture

In my opinion, pseudo 3D with plain TikZ is enough. Even I don't use different layers, just use the natural order of drawing command to make some scopes: draw first, appear first! Three scopes are 3 ...
• 13.6k
1 vote
Accepted

### Unspected behaviour using Shape geometric library inside axis environment

I am not a pgfplots user. I created an abscissa axis function domain between -6 and -4, pos=[0.5] gives the middle to place the triangle. \documentclass{standalone} %https://tex.stackexchange....
• 553
1 vote
Accepted

### tikz visualization of matrix vector multiplication

Here is a visualization using tikz: You can play around with the values to get bigger or smaller vactors, etc. Here is the code: \documentclass{article} \usepackage{mathtools,amssymb} \usepackage{...
• 965
Accepted

### Positioning of math in Tikz-Feynman

I made an invisible vertex k and invisible lines to this vertex. Here is the result: Here is the code: \documentclass{article} \usepackage[compat=1.1.0]{tikz-feynman} \usepackage{mathtools,amssymb} ...
• 965

### Marking angles in a 3D trigonometric diagram

SOLVING RIGHT TETRAHEDRONS Tetrahedron is 3D, so keep drawing in 3D with Asymptote. I see a great tool for teaching with Asymptote via the online compiler asymptote.ualberta.ca: free using mouse to ...
• 13.6k
1 vote

### Marking angles in a 3D trigonometric diagram

Little corrections to Juan Castano answer: \documentclass[tikz,border=2mm]{standalone} \usepackage{siunitx} \usetikzlibrary{3d,perspective} \begin{document} \begin{tikzpicture}[scale=2,line cap=...
• 2,554
Accepted

### Marking angles in a 3D trigonometric diagram

A possibility is to use TikZ 3d library and canvas is... options. That and a clip. In my example I did a little cleaning too. You had some points defined twice and some lines drawn twice too. An I did ...
• 18.2k
1 vote

### TikZ - Node with multiple text fields

• 362

### Subgroup diagram of $S_3$

The TikZ graphs and graphdrawing libraries are nice for this as well (see also "Part IV Graph Drawing" of the pgfmanual). One caveat is the requirement of LuaLaTeX for graphdrawing, since ...
• 31
Accepted

### Node in three dimensions with pgfplots

If I understand you question correctly. This can be achieved by: \documentclass[tikz]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \begin{document} \begin{tikzpicture} \...
• 1,893
Accepted

### How can I draw Circular sector with three empty fraction?

Modify the code from the solution about rectangles but use circular sectors: The code for the above image is \fraccirc{9}{12}\qquad\fraccirc[fill=blue!30]{3}{4}. The default fill color is orange!70, ...
• 20.2k

### TikZ - Node with multiple text fields

You can use \newcommand with just a single argument, but that argument consists of all 10 fields separated by /s (forward slashes). Then \foreach (which doesn't actually loop since there's only one ...
• 20.2k

### How can I draw a box around a picture plus text?

If I understood your question correctly, you are after the following: \documentclass{article} \usepackage{lipsum} \usepackage[skins]{tcolorbox} \tcbset{boxrule=1pt, colframe=red, colback=...
• 251k

### How can I draw a box around a picture plus text?

This may be what you want: \documentclass{article} \usepackage{graphicx} \usepackage{wrapfig} \usepackage{tcolorbox} \begin{document} \begin{tcolorbox}[standard jigsaw,opacityback=0,colframe=red] \...
• 1,893
Accepted

### Positioning and Aligning Nodes in TikZ

Because you didn't provide the logo PDF file, I use this one as example for the logo: However, it should be working whatever the size of the PDF figure. I draw the box for each part of your contents. ...
• 1,893

### How can I draw rectangle with empty fraction?

Add another solution using rectangle nodes and put everything in a single tikzpicture which can be drawn by a command (e.g. \fracrect{3}{7}{6}{14}). \documentclass{article} \usepackage{tikz} \...
• 1,893
Accepted

### How can I draw rectangle with empty fraction?

We can define a macro \fracrect that draws the rectangle. The command is \fracrect[tikz options]{numerator}{denominator} For example, \fracrect[xscale=4]{9}{12} will be similar to your second divided ...
• 20.2k

### How can I draw rectangle with empty fraction?

There are several ways to draw. Here I use grid with relevant xstep and yscale for the left part of the figure; and put some pics for the right part. \documentclass[tikz,border=5mm]{standalone} \...
• 13.6k
Accepted

### How to draw a point at a given arclength along a curve in Tikz?

This can be done (approximately) with decorations.markings, which accepts lengths (as well as percentages) for its position. All markings in the image are at 1cm. Define a style arclen that takes a ...
• 20.2k
Accepted

### TikZ calculation accuracy problem

Because pgfmath is not accurate. Use xfp instead. I left \rArea with all the computed digits and rounded \all to seven decimal places just to show how it works. \documentclass{article} \usepackage{...
• 985k

### Writing mathematical expressions with chemical formulae

with chemfig \documentclass{article} \usepackage{amsmath} \usepackage{chemfig} \setchemfig{atom sep=1em, angle increment=30} \begin{document} \[ P\chemleft(\chemfig{*6(--*6(--*6(---*6(------)---)--...
• 3,774

### Subgroup diagram of $S_3$

You get a more symmetric diagram if you change the order of the subgroups: \documentclass[12pt]{article} \usepackage{tikz-cd} \begin{document} \begin{figure} \centering \begin{tikzcd}[ row sep=...
• 985k
Accepted

### Writing mathematical expressions with chemical formulae

You can create your custom symbols using TikZ for example: \documentclass{article} \usepackage{amsmath} \usepackage{tikz} \newcommand{\moleculeA}{% \begin{tikzpicture}[x=.5em, y=.5em, baseline] ...
• 17.7k

### Subgroup diagram of $S_3$

Or using tikz-cd: \documentclass[12pt]{article} \usepackage{tikz-cd} \title{Subgroup Diagram of $S_3$} \begin{document} \begin{figure} \centering \begin{tikzcd}[row sep= 1em,column sep=1em] & ...
• 46.2k