Document ClassesConflict between Tikz package and my university thesis class

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
User avatar
americo.cunhajr
Posts: 12
Joined: Wed Jul 15, 2009 7:51 pm

Conflict between Tikz package and my university thesis class

Post by americo.cunhajr »

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
Attachments
puc-rio_thesis.cls
My university class file.
(41.79 KiB) Downloaded 392 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Conflict between Tikz package and my university thesis class

Post by localghost »

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
User avatar
americo.cunhajr
Posts: 12
Joined: Wed Jul 15, 2009 7:51 pm

Re: Conflict between Tikz package and my university thesis class

Post by americo.cunhajr »

Follows my log file.

I hope that it may be useful.

Thanks.

Americo
Attachments
msc_americo.log
(58.77 KiB) Downloaded 471 times
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Conflict between Tikz package and my university thesis class

Post by localghost »

The log file lists the following error messages all related to line 33 of your source code.

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.
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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.
User avatar
americo.cunhajr
Posts: 12
Joined: Wed Jul 15, 2009 7:51 pm

Re: Conflict between Tikz package and my university thesis class

Post by americo.cunhajr »

Follows a zip file with all of the files used in my thesis.

Thanks a lot for your patience.

Regards,

Americo
Attachments
msc_thesis.zip
Zip with thesis files.
(115.78 KiB) Downloaded 232 times
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Conflict between Tikz package and my university thesis class

Post by localghost »

Your document class is definitely the cause of the error. The following example shows that.

Code: Select all

Code, edit and compile here:
\documentclass[msc,wide,cover,nomencl,bibkey]{puc-rio_thesis}
\usepackage{tikz}
\begin{document}
Test
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
The error is exactly reproduced. This can only be clarified by the maintainers of the class.
User avatar
americo.cunhajr
Posts: 12
Joined: Wed Jul 15, 2009 7:51 pm

Re: Conflict between Tikz package and my university thesis class

Post by americo.cunhajr »

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
pedroteixeira
Posts: 1
Joined: Tue Aug 04, 2009 6:48 pm

Re: Conflict between Tikz package and my university thesis class

Post by pedroteixeira »

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
Post Reply