Document Classes ⇒ Conflict between Tikz package and my university thesis class
- americo.cunhajr
- Posts: 12
- Joined: Wed Jul 15, 2009 7:51 pm
Conflict between Tikz package and my university thesis class
I'm using Tikz package to create some figures for my M.Sc. Dissertation, but there is a conflict between the Tikz package and the thesis class of my university.
Whenever I generate a PDF with Tikz package enabled, a "0" (zero) appears in the first page. If I comment the line "\usepackage{tikz}" the problem disappears.
I have no idea what is happening and appreciate any help to solve this problem.
Best regards,
Americo Cunha Jr
PS: I attached the thesis class file of my university
- Attachments
-
- puc-rio_thesis.cls
- My university class file.
- (41.79 KiB) Downloaded 393 times
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Conflict between Tikz package and my university thesis class
You should get an error message or a warning in the log file that may clarify what's going wrong.
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
- americo.cunhajr
- Posts: 12
- Joined: Wed Jul 15, 2009 7:51 pm
Re: Conflict between Tikz package and my university thesis class
I hope that it may be useful.
Thanks.
Americo
- Attachments
-
- msc_americo.log
- (58.77 KiB) Downloaded 474 times
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Conflict between Tikz package and my university thesis class
Code: Select all
! Missing number, treated as zero.
<to be read again>
\let
l.33 \xdef
\pgfmath@rnd@z{\the\c@pgfmath@counta}% The seed.
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)
! Undefined control sequence.
l.33 \xdef\pgfmath@rnd@z
{\the\c@pgfmath@counta}% The seed.
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.33 \xdef\pgfmath@rnd@z{\the\c@pgfmath@counta
}% The seed.
You're in trouble here. Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
But there are many more errors caused by some missing math environments and a mass of warnings. You can either build a MWE as suggested above or put the complete code into a ZIP archive and upload it as attachment.
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
- americo.cunhajr
- Posts: 12
- Joined: Wed Jul 15, 2009 7:51 pm
Re: Conflict between Tikz package and my university thesis class
Thanks a lot for your patience.
Regards,
Americo
- Attachments
-
- msc_thesis.zip
- Zip with thesis files.
- (115.78 KiB) Downloaded 233 times
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Conflict between Tikz package and my university thesis class
Code: Select all
\documentclass[msc,wide,cover,nomencl,bibkey]{puc-rio_thesis}
\usepackage{tikz}
\begin{document}
Test
\end{document}
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
- americo.cunhajr
- Posts: 12
- Joined: Wed Jul 15, 2009 7:51 pm
Re: Conflict between Tikz package and my university thesis class
I wish to thank the attention and readiness presented by the moderator of this forum. His comments were of great value for the solution of my problem.
Best Wishes,
Americo
-
- Posts: 1
- Joined: Tue Aug 04, 2009 6:48 pm
Re: Conflict between Tikz package and my university thesis class
I am facing the same problem with PUC's template. Did you manage to work it out? I'm taking a look at this right now, but please let us know if the template can be patched.
Currently, I considering the non-optimal solution of having separate tex files and include pdfs..
[]'s
Pedro