Re: probsoln and figures

Thanks again Robin,

I think you're going above and beyond to try to help me out.

i fear you're missing my point.  figures are *not* used for decorating
things, adding visual labels, and so on: they're for diagrams which are
formally part of the document as a whole; they should normally appear
with a caption and a label for reference.

Yes, the figures, when I would use them, would be for graphics, with
captions, with a label and referenced in the rest of the text, as I
think is what you're describing.

but if you _could_ float the figures (leaving the rest of the problem
definition "behind") how do you relate the figure to the problem
statement?

I'm not sure if I know what you mean by leaving the rest of the
problem behind, but I imagined that when I issued the call
\useproblem, it would be exactly as if the defining text appeared at
that point in the text. Thus
\newproblem{label_123}{Find the critical points in the graph shown in
Figure~\ref{fig:showing_x_cubed}.
\begin{figure}
\caption{Graph of $x^3$}
\label{fig:showing_x_cubed}
\includegraphics{plot_of_x_cubed}
\end{figure}
}
{}
\begin{document}
Lots of other stuff, maybe many pages worth

\useproblem{label_123}
\end{document}

would produce something about the same as putting the problem, and the
\begin{figure} where I have \useproblem{label_123}. Thus, the figure
would be somewhere near where \useproblem is called, when LaTeX found
room, as is usual.

you surely will be in danger of running a steamroller over the
underlying code if you want to create 500 floats in one document.  (i
assume you don't, and the problem may be solvable.)

Most of the problems won't have floats, but some will. Are 500 floats
really too much for a document?

_are_ your problems actually no more than a picture?  (that's the sort
of thing my wife gives to her under-10 piano pupils, after all...)  if
so, you perhaps want a construction like:

The problems are really just examples for a something resembling a
Calculus text. So, imagine a 500 page calculus text. How many
examples are there? Maybe 500? How many have graphics? Maybe 100?
I want to be able to include and mix and match all these examples, by
having them defined in an external file, and then calling their
labels. Probsoln seems to do all of this, except for the floats.

Thanks again Robin for listening, I see your name all over the place
on comp.text.tex, I have no idea how you find time to be so helpful
and omnipresent.

Ethan

.

Relevant Pages

• how to create floating dialog box?
... i have a form created with some buttons, text boxes, and labels. ... display this form as a dialog box that floats (i.e. like the MessageBox ...
(microsoft.public.dotnet.framework.compactframework)
• how to create floating dialog box?
... i have a form created with some buttons, text boxes, and labels. ... display this form as a dialog box that floats (i.e. like the MessageBox ...
(microsoft.public.dotnet.framework.compactframework)
• Re: Theory: Why ABX doesnt work
... >>> I tend to agree with you that people tend to imagine differences, ... that ABX diminishes real differences. ... >>> can work with sample labels of this type is an assumption. ... >>> concern for imagined differences and imagined discrimination. ...
(rec.audio.opinion)
• Re: Theory: Why ABX doesnt work
... >> I tend to agree with you that people tend to imagine differences, ... that ABX diminishes real differences. ... >> can work with sample labels of this type is an assumption. ... >> concern for imagined differences and imagined discrimination. ...
(rec.audio.opinion)
• Re: Theory: Why ABX doesnt work
... >>> I tend to agree with you that people tend to imagine differences, ... that ABX diminishes real differences. ... >>> can work with sample labels of this type is an assumption. ... >>> concern for imagined differences and imagined discrimination. ...
(rec.audio.opinion)