Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm working on our coding system which combines a number of software possibilities. Here is what I have thus far.

### TOPIC 1

\topic = Sullivan 10.2 easy: parabolas

\versions = 10
\code = 
my $a = randint(-9,9,1,(0));
my $b = 4*$a;
my $Xmin=-4*$a;
my $Xmax=4*$a;
my $Xstep=$a;
my $Ymin=-4*$a;
my $Ymax=4*$a;
my $Ystep=$a;
\qutext=What is the focus of the parabola $x^2={#b}y$?
\mode = point
\answer = (0,#a)
\soltext=Compare the equation 
with the form
and note that:
The parabola having the form $x^2=4ay$ opens up or down, depending on the value of $a$. In this case, $a=#a$, so the focus is at the point $(0,#a)$.

As you can see near the bottom, I'm trying to use tkz_fct to draw a graph based on some of the perl settings in the \code section above. What I am having trouble with is the fact that the size of the final grid on screen will change with different values of a. I'd like to scale the picture so that it is 6cm by 6cm. Can you make any suggestions?


share|improve this question
Still working on this? Perhaps tex.stackexchange.com/questions/6388/… can be of help. –  Torbjørn T. Jan 4 at 23:35
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.