Linked Questions

0
votes
0answers
72 views

TikZ coordinate calculation: Package tikz Error: + or - expected [duplicate]

TikZ calculates correctly the projection of a point and also draws it correctly, however after compiling LaTeX displays 2 error messages which I can not fix. Could you help finding what am I doing ...
2
votes
0answers
65 views

Error with TIkz function and polar coordinates in Texlive/MacTex [duplicate]

I am encountering a rather odd typesetting error with Tikz when running the following code: \documentclass[]{amsart} \usepackage{tikz,pgfplots} \usetikzlibrary{patterns,calc,fadings,decorations} ...
65
votes
5answers
41k views

How to install a current version of TikZ?

TikZ is undergoing lots of development with new features being added, but the versions distributed with standard TeX releases are often a little old. How do I get the latest version? If I want to be ...
20
votes
3answers
1k views

Why does TeX remove braces around delimited arguments?

On pp. 203–204 of the TeXbook, Knuth describes how TeX absorbs macros' arguments: delimited go until the first appearance of the delimiter, and undelimited go until the next token, in both cases ...
22
votes
2answers
6k views

Problems with TikZ calculations

When can I use functions and do calculations in TikZ? How do I make this work: \draw (0,0) arc(0:90:sqrt(15)); %not ok why is this working: \draw (0,0) arc(0:asin(1):5); %ok with ...
6
votes
2answers
147 views

How can I smooth out the corners of a pgfplots plot

How do I smooth out the corners in the following graph? \documentclass{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture}[>=latex] \begin{axis}[ every axis/.append ...
3
votes
2answers
536 views

Can I use trig functions within polar coordinates

I am trying to use simple mathematical functions such as sin, cos, and sqrt within the declaration of a TikZ coordinate. I am finding that this works for cartesian coordinates, but breaks for polar ...
5
votes
1answer
506 views

Syntax error using PGF math function in coordinate

I would like to avoid setting too many of the values for the following picture too rigidly. For example, I would like to be able to set the position of point A and forever after that be able to ...
5
votes
1answer
215 views

Error caused by TikZ/PGF trigonometric functions

I'm a bit confused about a failure I'm seeing with an inline \cos call. In the code below there I perform contortions with \let, \pgfmathparse, and \pgfmathresult However, the commented line should, ...
1
vote
1answer
363 views

tikz code doesn't compile when opened after a while

I finished my phd a couple of months ago, compiled it then completely just fine. I opened it today to make changes and during compilation I get error messages about "missing number treated as zero". I ...