Questions tagged [tikzmath]
The tikzmath tag has no usage guidance.
6
questions
12
votes
1
answer
956
views
Is print in TikZ's math, useless?
In the manual of TikZ 3.0.0, the section about the math library, we can read (p. 635):
Unlike the print keyword, the brace notation can be used in functions so that tikz path commands can be safely ...
5
votes
1
answer
1k
views
pgfplots on tikzmath function with conditionals returns an error
Plotting with pgfplots a function defined using the tikzmath function syntax does not seem to work.
The error message :
! Illegal unit of measure (pt inserted).
<to be read again>
...
2
votes
3
answers
1k
views
Conditional tests on string variables in tikzmath library
Is it possible to test for strings in the tikzmath library? (E.g. if <variable>=<string expression> then foo)
I tried a naive test and it returned this error:
Package PGF Math Error: ...
8
votes
5
answers
834
views
Test of integers? Or, round the number if the first two decimal numbers are sufficiently close to 0 or 1?
The following is a MWE, which explains my intention.
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{math}
\begin{document}
\tikzmath{
\integer = 4/2; \decimal = 5/3;
\integerB=1/3*3;
}
$\...
1
vote
1
answer
3k
views
\input inside \newcommand and macro parameters
I would like to divide a list of parameters for a series of tikz graphics into a bunch of separate, named tex files.
Specifically: each parameter file should be loaded by an \input command which in ...
0
votes
0
answers
107
views
Dimension too large - Tikzmath
I have the following code:
\documentclass[tikz,border=5mm]{standalone}
\usepackage{tikz}
\usepackage{amsmath}
\usepackage{xfp}
\usetikzlibrary{math}
\usepackage{etoolbox}
\usepackage{fp}
\...