Skip to main content
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} %\...
samcarter_is_at_topanswers.xyz's user avatar
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 ...
J Leon V.'s user avatar
  • 12.9k
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 ...
AndréC's user avatar
  • 26k
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)...
Qrrbrbirlbel's user avatar
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 ...
cfr's user avatar
  • 208k
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=...
Tim's user avatar
  • 71
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} ...
Tim's user avatar
  • 71
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 \@...
Skillmon's user avatar
  • 61.6k
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/...
matexmatics's user avatar
  • 5,389
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{...
John Kormylo's user avatar
  • 81.2k
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 ...
Qrrbrbirlbel's user avatar
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} \...
AndréC's user avatar
  • 26k
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{...
AndréC's user avatar
  • 26k
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 {...
ljguo's user avatar
  • 1,412
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 ...
Skillmon's user avatar
  • 61.6k
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 ...
J Leon V.'s user avatar
  • 12.9k
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=...
polyn's user avatar
  • 5,854
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 ...
MS-SPO's user avatar
  • 13.8k
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 ...
MS-SPO's user avatar
  • 13.8k
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{...
hpekristiansen's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible