13
votes
Accepted
tikz diagram skier on a slope
The boring solution:
use a skier from the fontawesome5package:
\documentclass{article}
\usepackage{tikz}%,pgf}
%\usepackage{pgfplots}
%\usetikzlibrary{calc,angles}
\usetikzlibrary{angles}
%\...
5
votes
Accepted
How to move the color blocks into the red frame region marked?
You can take advantage of the node names and the remember picture option, that way in a tikz picture environment with the overlay option you can draw whatever using points relative to the node name ...
5
votes
How to move the color blocks into the red frame region marked?
Made entirely with TikZ, even though it doesn't suit you.
\documentclass[aspectratio=2013]{beamer}
\usepackage{tikz,subcaption}
\usetikzlibrary{positioning}
\tikzset{legend/.style={fill=#1,minimum ...
5
votes
Accepted
Problem with add/.style in tkz-euclide
A to path operation is – at its core – just an expansion of whatever is stored in to path.
That means your path
\draw[line style,#1] (#2) to (#3);
just becomes
\draw[line style,#1] (#2) ($(#2)!…!(#3)...
4
votes
Accepted
Customizable Vertical Rule / Divider Like `\vrule` With Automatic Height
Answer to revised question
To do this in arbitrary contexts, you need to have a self-sufficient way of measuring the height and depth of the content on each side of the rule. The most straightforward ...
4
votes
Creating the projective plane PG(2,3) (picture included) using tikz
Here is a version that allows for labelling of the nodes:
\documentclass[letterpaper]{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[
every node/.style={fill=black,circle, text=...
3
votes
Drawing an affine plane in latex
And here is a complete version:
\documentclass[letterpaper]{article}
\usepackage{tikz}
\tikzset{node distance=2cm, every node/.style={circle,thin, fill=black}}
\begin{document}
\begin{tikzpicture}
...
3
votes
Accepted
Checking if the version of TikZ is newer in a format-independent way
A somewhat elegant test for your use case which supports a hardcoded number of 3 digits, and uses your split result. I also used the \pgfutil@ since you're loading pgf anyway and that provides \@...
3
votes
Accepted
How can I get `f(2/3) = 20/9` and `f(4/3) = 16/9` of the function f(x) = 3 *x^3 - 9*x^2 + 8*x when I use pgf/tikz
Below, a key declare xintexpr function is defined. This must be a function of one variable named \x. It will define the function for pgfmath and also for \xintdeffunc.
Also a key number format/...
2
votes
tikz diagram skier on a slope
As suggested by SamCarter...
\documentclass{article}
\usepackage{tikz}%,pgf}
%\usepackage{pgfplots}
%\usetikzlibrary{calc,angles}
\usetikzlibrary{angles}
%\usetikzlibrary{arrows}
%\usetikzlibrary{...
2
votes
How do I make the text bend along the function using tikz if possible?
Approaches:
Guessing the positions. (They are not linear to the x value.)
Taking inspiration from https://tex.stackexchange.com/a/88421/16595 we can combinate the fillbetween library and place a node ...
2
votes
Tikz: How to vertically align text across multiple nodes?
The tcolorbox package does this natively. Here I'm using the fitting library, which gives tcolorboxes fixed dimensions. To space them, I've placed jumps \hspace{1cm}.
\documentclass{article}
\...
1
vote
Accepted
Strange extra arrow behavior in tikz because xshift
In this case, the tips=proper key is used to draw arrows only where they are required.
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{bending, arrows, arrows.meta}
\begin{document}
\begin{...
1
vote
Accepted
How to create a command to plot a series of square lattices on a given line?
You can use LaTeX3 to define a parser \meiu_range_to_list:nN
\seq_new:N \l__meiu_tmpa_seq
\seq_new:N \l__meiu_tmpb_seq
\clist_new:N \l__meiu_tmpa_clist
\cs_set_nopar:Npn \meiu_range_to_list:nN #1#2 {...
1
vote
Checking if the version of TikZ is newer in a format-independent way
This here implements a general loop which compares two different version numbers. The following syntax is supported:
Parts of the version number are separated by a dot.
In the expected version number ...
1
vote
NiceMatrix + Tikz Determinants Picture
Just for fun and learning, an option using tikz matrix, then through code nested in definitions with parameters, taking advantage of the calc library you can obtain the angle between 2 points, then ...
1
vote
NiceMatrix + Tikz Determinants Picture
A solution with pic
\documentclass[border=5mm]{standalone}
\usepackage{amsmath}
\usepackage{tikz}
\usepackage{nicematrix}
\begin{document}
$
\begin{NiceArray}{*{5}{>{\mathstrut}c}}[columns-width=...
1
vote
tikz diagram skier on a slope
is it possible to reproduce this schema with tikzpicture ?
Yes, as you've seen already. Here is a way to do it via my answer in comment A)
1. Get an image
So I found an uphill skier on a sign. Cur it ...
1
vote
tikz diagram skier on a slope
is it possible to reproduce this schema with tikzpicture ?
Yes, as you've seen already. Here is a way to do it via my scribble suggestion B)
1. Scribble the skier uphill
I did what I wrote: sketched ...
1
vote
Accepted
Center Tikz pictures used as tick labels in Pgfplots
You have several spaces in the piechart. I can not recommend doing this as it nest tikzpictures. It might be done with a path picture or simply drawn afterwards.
\documentclass{article}
\usepackage{...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
tikz-pgf × 35153pgfplots × 4728
diagrams × 1957
tikz-styles × 1424
tikz-arrows × 1335
nodes × 1218
beamer × 1124
graphics × 1034
graphs × 693
plot × 680
tikz-trees × 672
positioning × 666
arrows × 598
color × 575
3d × 559
foreach × 542
tables × 498
macros × 474
circuitikz × 429
pstricks × 377
tikz-node × 374
tikz-3dplot × 350
tikz-matrix × 333
labels × 329
coordinates × 327