Document Classesharvard vs hyperref

Information and discussion about specific document classes and how to create your own document classes.
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Re: harvard vs hyperref

Post by cgnieder »

If you have updated your system then I'm out of ideas. What does your log-file say?
site moderator & package author

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

bkarpuz
Posts: 124
Joined: Thu Dec 18, 2008 4:53 pm

harvard vs hyperref

Post by bkarpuz »

cgnieder wrote:If you have updated your system then I'm out of ideas. What does your log-file say?
I have reinstalled MiKTeX 2.9, I don't know how I can update my system in other ways.

Best regards.
bkarpuz
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Re: harvard vs hyperref

Post by cgnieder »

So what does the log-file of your example say? Maybe you could post it here?
site moderator & package author
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

harvard vs hyperref

Post by localghost »

bkarpuz wrote:[…] I have reinstalled MiKTeX 2.9, I don't know how I can update my system in other ways. […]
Maybe by just selecting »Update (Admin)« from the »MiKTeX« folder in the »Start« menu?


Thorsten
bkarpuz
Posts: 124
Joined: Thu Dec 18, 2008 4:53 pm

harvard vs hyperref

Post by bkarpuz »

localghost wrote:
bkarpuz wrote:[…] I have reinstalled MiKTeX 2.9, I don't know how I can update my system in other ways. […]
Maybe by just selecting »Update (Admin)« from the »MiKTeX« folder in the »Start« menu?


Thorsten
Thank a lot Thorsten.
I have updated my files but I still have the same problem. I attached my log file.

Thank for your interest.
bkarpuz
Attachments
ws.log
(11.14 KiB) Downloaded 534 times
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

harvard vs hyperref

Post by cgnieder »

The main difference I see between your log file and mine is that in your run »html.sty« from latey2html is loaded. Directly after it there is the option clash with »hyperref.sty«. »latex2html« is not in TeXlive so »html.sty« wasn't loaded when I compiled the example.

»html.sty« is loaded by »harvard.sty« (only if it exists).
Try to run the example without »harvard.sty«.

Regards
site moderator & package author
bkarpuz
Posts: 124
Joined: Thu Dec 18, 2008 4:53 pm

harvard vs hyperref

Post by bkarpuz »

cgnieder wrote: Try to run the example without »harvard.sty«.

Regards
It works fine when »harvard.sty« is disabled but in my thesis I have »harvard.sty«.
So what can be done?

Thanks for your interest once again.
bkarpuz
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

harvard vs hyperref

Post by cgnieder »

Lucky for you »harvard.sty« does not really need »html.sty«. You should open »harvard.sty«, change the lines 25--29

Code: Select all

\IfFileExists{html.sty}{\RequirePackage{html}
\newcommand{\harvardurl}[1]{\htmladdnormallink*{\textbf{URL:} \textit{##1}}{##1}}
}{
\newcommand{\harvardurl}[1]{\textbf{URL:} \textit{##1}}
}
into

Code: Select all

% \IfFileExists{html.sty}{\RequirePackage{html}
% \newcommand{\harvardurl}[1]{\htmladdnormallink*{\textbf{URL:} \textit{##1}}{##1}}
% }{
\newcommand{\harvardurl}[1]{\textbf{URL:} \textit{##1}}
% }
and save the modified file into the same directory as your thesis. That should do it.
site moderator & package author
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

harvard vs hyperref

Post by Stefan Kottwitz »

You could remove html.sty on your system or rename it (html.sty.old for example). You can find it by

Code: Select all

kpsewhich html.sty
at the command prompt.

Or, place a dummy html.sty in your document folder, this file would win in the file lookup, though in general I would not reuse a style file name - here it could be quick workaround though.

Stefan
LaTeX.org admin
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Re: harvard vs hyperref

Post by cgnieder »

Yes that's probably easier... I need more coffee to wake up ;)
site moderator & package author
Post Reply