New answers tagged tikz-pgf
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{...
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 \...
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 ...
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 ,
...
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 \...
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 ...
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 \...
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, ...
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(...
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 ...
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
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, ...
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$}%
...
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 ...
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, ...
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....
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 ...
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{...
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 ...
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 "...
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 ...
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 ...
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=...
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}
\...
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).
\...
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 ...
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....
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{...
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}
...
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 ...
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
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 ...
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 \...
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 ...
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}
\...
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, ...
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 ...
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=...
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]
\...
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. ...
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}
\...
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 ...
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}
\...
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 ...
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{...
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(------)---)--...
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=...
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]
...
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]
& ...
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{...
Top 50 recent answers are included
Related Tags
tikz-pgf × 31106pgfplots × 4160
diagrams × 1734
tikz-styles × 1197
nodes × 1139
tikz-arrows × 1095
beamer × 993
graphics × 901
positioning × 623
tikz-trees × 594
graphs × 593
plot × 586
arrows × 567
color × 503
3d × 493
foreach × 470
tables × 441
macros × 428
pstricks × 361
circuitikz × 358
tikz-node × 310
tikz-3dplot × 307
horizontal-alignment × 292
tikz-matrix × 291
coordinates × 289