2022 Developer Survey is open! Take survey.

New answers tagged

0 votes

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{...
user avatar
  • 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 \...
user avatar
  • 1,893
0 votes

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 ...
user avatar
  • 4,853
5 votes
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 , ...
user avatar
  • 5,044
2 votes

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 \...
user avatar
  • 1,651
0 votes
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 ...
user avatar
  • 3,092
0 votes

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 \...
user avatar
  • 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, ...
user avatar
  • 251k
0 votes
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(...
user avatar
  • 3,489
2 votes
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 ...
user avatar
  • 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} \...
user avatar
2 votes

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, ...
user avatar
8 votes
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$}% ...
user avatar
  • 20.7k
3 votes

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 ...
user avatar
4 votes

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, ...
user avatar
  • 251k
4 votes

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....
user avatar
  • 127k
5 votes

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 ...
user avatar
  • 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{...
user avatar
  • 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 ...
user avatar
  • 362
5 votes

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 "...
user avatar
2 votes
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 ...
user avatar
  • 50.9k
6 votes

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 ...
user avatar
  • 824
2 votes
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=...
user avatar
  • 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} \...
user avatar
  • 251k
3 votes
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). \...
user avatar
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 ...
user avatar
  • 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....
user avatar
  • 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{...
user avatar
  • 965
4 votes
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} ...
user avatar
  • 965
2 votes

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 ...
user avatar
  • 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=...
user avatar
2 votes
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 ...
user avatar
1 vote

TikZ - Node with multiple text fields

TikZ is not required here. Your "node" is a simple tabular. \documentclass[border=1mm]{standalone} \usepackage{pgffor} \newcommand\fieldWidth{1.3cm} \newcommand\makecard[1]{% \foreach \...
user avatar
  • 362
3 votes

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 ...
user avatar
  • 31
3 votes
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} \...
user avatar
  • 1,893
4 votes
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, ...
user avatar
  • 20.2k
2 votes

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 ...
user avatar
  • 20.2k
5 votes

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=...
user avatar
  • 251k
3 votes

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] \...
user avatar
  • 1,893
3 votes
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. ...
user avatar
  • 1,893
3 votes

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} \...
user avatar
  • 1,893
6 votes
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 ...
user avatar
  • 20.2k
2 votes

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} \...
user avatar
  • 13.6k
10 votes
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 ...
user avatar
  • 20.2k
4 votes
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{...
user avatar
  • 985k
4 votes

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(------)---)--...
user avatar
  • 3,774
7 votes

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=...
user avatar
  • 985k
3 votes
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] ...
user avatar
6 votes

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] & ...
user avatar
  • 46.2k
9 votes
Accepted

Subgroup diagram of $S_3$

Like this? \documentclass[12pt]{article} \usepackage{tikz} \usetikzlibrary{arrows.meta, calc, chains } \begin{document} \begin{figure} \centering \begin{...
user avatar
  • 251k

Top 50 recent answers are included