Re: error in whiledo loop



On Jul 10, 6:04 am, Roy <sarah...@xxxxxxxxx> wrote:
nesting

Use nesting or not according to whatever is clearer to you.

1) Both versions of your suggestions work with the \includegraphics
command, but I'm running into trouble when I try to use \themycounter
in an \input statement.
\input{\themycounter/foo}

I get the error

! LaTeX Error: File `1/foo.tex' not found. Why is this not
expanding.

My guess is that you declare \newcounter{mycounter} *after* defining
\themycounter, and so get left with the default definition instead of
your specialized version.

2) Suppose I have nested loops, [] how do I create
another counter of the same type but with a different name to loop
through the figures in each directory.

The same way, with a different name.

Donald Arseneau


.



Relevant Pages

  • Re: mode independent UI description language
    ... but without defining ... > would be a common definition for multi-modal interfaces... ... It's a 'text user interface' in that the 'hot-button' ... to execute any command, I 'cord' on the 'text' of the command ...
    (sci.cognitive)
  • Re: invoking gnuplot for pgf on Mac
    ... If you input file is called example.tex the following command from the ... Latex Error: ./PDFPlotTrial2.tex:13 Missing} inserted. ...
    (comp.text.tex)
  • Re: Here is the traceback from latex,
    ... LaTeX Error: ... Probably only the first error is relevant. ... the error needs to be fixed in whatever part of your document generated the command following the line number: ... If this error never appeared until you added \usepackage{hyperref} to your document there's a good chance there's a clash between hyperref and something else you define or use somewhere in your document, so the source of the error may not be obvious. ...
    (comp.text.tex)
  • Re: Why Archimedes Plutonium will never proof the 4CT
    ... taht gets him no end of trouble in satisfying neccesity and/ ... or sufficiency, or even defining the problem at first reading. ...
    (sci.math)
  • Ruled text
    ... defining a command to lay out examples in the form of text (perhaps ... containing all sorts of stuff beyond simple paragraphs) set off by ...
    (comp.text.tex)

Loading