New answers tagged

1 vote
Accepted

splitting code on to separate pages in a worksheet

UPDATED Try this code. The code was simplified to avoid repetitions. Each line of 8 problems is generated by ; \OneXLine{<true or false>}{<result color>} The first argument controls the ...
  • 30.3k
4 votes
Accepted

How to improve rand from pgfmath in tkz-euclide?

If you need more than 26 points, you're going to want to use a number for the points' names. (The \foreach macro would allow \foreach \pnt in {A,...,P}.) Here I'm using three \foreach loops: to ...
  • 90.7k
1 vote
Accepted

Plotting function with polygonal domain using pgfplots

There is nothing wrong with the way you specify your domain: domain=-1:1, y domain=-1:1. A domain is the area over which the function is plotted. The problem comes from two things. Firstly PGFPlots ...
3 votes
Accepted

adding another node to a number line

I took the liberty to rewrite the \tikznumberline command. You can now use the following keys to change the number line and its labels: start and end specify the points on the line that shall be ...
  • 90.7k
1 vote

foreach limit computed through an operation between pgfmathsetlengthmacros

As percusse said, the \foreach macro doesn't evaluate the elements of a list – at least not by default. However, the /pgf/foreach/parse key activates the parsing for the last element in the list. For ...
  • 90.7k
3 votes

adding another node to a number line

Like this? Changes in comparison to your code are in MWE below marked by % <---: \documentclass[margin=3mm, preview]{standalone} \usepackage[dvipsnames]{xcolor} \usepackage{tikz} \...
  • 262k
1 vote

Plotting Heaviside function shows staircase plot

There is nothing wrong with your plot. The solution to jaggedness for a 1D function plotted in 2D is to increase samples. You can do the same here, but you will quickly run into computer limits. A ...

Top 50 recent answers are included