Hello,
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
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
- Attachments
-
- puc-rio_thesis.cls
- My university class file.
- (41.79 KiB) Downloaded 392 times
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Conflict between Tikz package and my university thesis class
I suggest to contact the maintainers. On this occasion you should tell them that they use a lot of obsolete packages like ae (with the associated aecompl) or subfigure. They also use unnecessary driver options (here dvipdfm) for the graphicx and the hyperref package. These packages detect on their own which compiler is running.
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
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
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
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
Follows my log file.
I hope that it may be useful.
Thanks.
Americo
I hope that it may be useful.
Thanks.
Americo
- Attachments
-
- msc_americo.log
- (58.77 KiB) Downloaded 471 times
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Conflict between Tikz package and my university thesis class
The log file lists the following error messages all related to line 33 of your source code.
From the file list it can bee seen that you are using pgf/tikZ version 2.00 which is the current one. To get closer to a solution you have to build a minimal working example (MWE) that reproduces this behaviour. I can only assume that the error may be caused by some older code. The package has got some major changes from version 1.xx to 2.00 so that older code can cause problems like these.
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.
Code: Select all
! Missing number, treated as zero.<to be read again>\letl.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 lineof your error message was never \def'ed. If you havemisspelled it (e.g., `\hobx'), type `I' and the correctspelling (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.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
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
Follows a zip file with all of the files used in my thesis.
Thanks a lot for your patience.
Regards,
Americo
Thanks a lot for your patience.
Regards,
Americo
- Attachments
-
- msc_thesis.zip
- Zip with thesis files.
- (115.78 KiB) Downloaded 232 times
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Conflict between Tikz package and my university thesis class
Your document class is definitely the cause of the error. The following example shows that.
The error is exactly reproduced. This can only be clarified by the maintainers of the class.
Code: Select all
Code, edit and compile here:
\documentclass[msc,wide,cover,nomencl,bibkey]{puc-rio_thesis}\usepackage{tikz}\begin{document}Test\end{document}
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
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 will contact the principal developer of the class, I'm sure that he can help me.
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
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
Americo,
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
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