Building Latex Part 2 - Infinite loop

36 views
Skip to first unread message

J David Eisenberg

unread,
Feb 21, 2023, 1:29:30 PM2/21/23
to PreTeXt support
When I run xelatex on the output from the pretext build, I get the output in the attached file. XeLaTex then appears to go into an infinite loop; I left it running for 20 minutes and it did not complete, with CPU at 100% the entire time.

There are several messages of the form:

LaTeX Warning: Hyper reference `section-simple-python-data_variables' on page 7
undefined on input line 1246.

The links do exist, however, and they build correctly for the web.

xelatex_output.txt

Rob Beezer

unread,
Feb 21, 2023, 1:36:07 PM2/21/23
to pretext...@googlegroups.com
Those LaTeX warnings are spurious.

Can you search the LaTeX itself for the inserted text? There should be enough
other text to locate the problem solution-like.
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to pretext-suppo...@googlegroups.com
> <mailto:pretext-suppo...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pretext-support/8913768b-67b1-4305-96bc-552f7642267fn%40googlegroups.com <https://groups.google.com/d/msgid/pretext-support/8913768b-67b1-4305-96bc-552f7642267fn%40googlegroups.com?utm_medium=email&utm_source=footer>.

J David Eisenberg

unread,
Feb 21, 2023, 1:38:20 PM2/21/23
to pretext...@googlegroups.com
If this is related to part 1, I did find an exercise that wasn’t
labeled at all, and wasn’t *really* an exercise, so I eliminated the
<exercise> and </exercise> tags. The debug output went away. The “bug”
message remained.
> To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-support/MTAwMDAxMy5iZWV6ZXI.1677004566%40quikprotect.

Rob Beezer

unread,
Feb 21, 2023, 1:46:40 PM2/21/23
to pretext...@googlegroups.com
Sorry, I didn't see the Part 2.

For Part 2: please post your LaTeX file as produced by PreTeXt.

J David Eisenberg

unread,
Feb 21, 2023, 1:49:28 PM2/21/23
to PreTeXt support
Here it is...
cs20-thinkcspy.tex

Rob Beezer

unread,
Feb 21, 2023, 2:14:21 PM2/21/23
to pretext...@googlegroups.com
Looks like Section 12.4 has two "program" inside a "tabular", and this could be
the hang-up.

PreTeXt does not use tables for layout control.

Likely a "sidebyside" will give the desired look and feel.

Can you see how you do without that "tabular"?
> https://groups.google.com/d/msgid/pretext-support/8913768b-67b1-4305-96bc-552f7642267fn%40googlegroups.com <https://groups.google.com/d/msgid/pretext-support/8913768b-67b1-4305-96bc-552f7642267fn%40googlegroups.com> <https://groups.google.com/d/msgid/pretext-support/8913768b-67b1-4305-96bc-552f7642267fn%40googlegroups.com?utm_medium=email&utm_source=footer <https://groups.google.com/d/msgid/pretext-support/8913768b-67b1-4305-96bc-552f7642267fn%40googlegroups.com?utm_medium=email&utm_source=footer>>.
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> Groups "PreTeXt support" group.
> >> To unsubscribe from this group and stop receiving emails from it, send
> an email to pretext-suppo...@googlegroups.com.
> >> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pretext-support/MTAwMDAxMy5iZWV6ZXI.1677004566%40quikprotect <https://groups.google.com/d/msgid/pretext-support/MTAwMDAxMy5iZWV6ZXI.1677004566%40quikprotect>.
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to pretext-suppo...@googlegroups.com
> <mailto:pretext-suppo...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pretext-support/0d9312bc-b0a4-45e0-9cc9-86121eaacd5dn%40googlegroups.com <https://groups.google.com/d/msgid/pretext-support/0d9312bc-b0a4-45e0-9cc9-86121eaacd5dn%40googlegroups.com?utm_medium=email&utm_source=footer>.

J David Eisenberg

unread,
Feb 21, 2023, 2:15:10 PM2/21/23
to PreTeXt support
Found the problem with the exercise component error; it was a <solution> that was not inside an <exercise> at all.
Found the problem by inserting debug output where the error message is displayed to also display value of ./name() and ..

Fixing that did not change the infinite loop situation, unfortunately

J David Eisenberg

unread,
Feb 21, 2023, 3:00:43 PM2/21/23
to PreTeXt support
<sidebyside> solved the infinite loop but did not give me really great-looking results; the programs had to scroll horizontally to see the entire content.
I decided to put the programs one after the other, which looks OK if not “as beautiful as I would like.”

David W. Farmer

unread,
Feb 21, 2023, 3:07:08 PM2/21/23
to PreTeXt support


> <sidebyside> solved the infinite loop but did not give me really great-looking results; the programs had to scroll horizontally to
> see the entire content.
> I decided to put the programs one after the other, which looks OK if not “as beautiful as I would like.”

Posting the HTML may inspire someone to suggest an alternative.
Reply all
Reply to author
Forward
0 new messages