Document Classesharvard vs hyperref

Information and discussion about specific document classes and how to create your own document classes.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

harvard vs hyperref

Post by Stefan Kottwitz »

Hi Clemens,

I did not see your post some minutes before my post, so it's not meant as "do this instead". ;-)

Ok, I would not recommend to edit style files such as harvard.sty, but doing it with html.sty is similar...

Perhaps it's the cleanest to do a redefinition after loading harvard:

Code: Select all

\usepackage{harvard}
\renewcommand{\harvardurl}[1]{\textbf{URL:} \textit{##1}}
Still html.styl would be loaded, so if loading it already causes a problem, the earlier fixes could be tried.

Stefan
LaTeX.org admin

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

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

harvard vs hyperref

Post by cgnieder »

Stefan_K wrote:Hi Clemens,

I did not see your post some minutes before my post, so it's not meant as "do this instead". ;-)
I only thought of it as an alternative. (And one I could have thought of myself...)

Since the loading of »html.sty« seems to be the problem and not the definition of \harvardurl, I'm afraid there is no other choice.

Your idea of creating a “dummy html.sty” seems to be the easiest and cleanest way to me.
site moderator & package author
bkarpuz
Posts: 124
Joined: Thu Dec 18, 2008 4:53 pm

harvard vs hyperref

Post by bkarpuz »

Stefan_K wrote: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
It seems to load »latex2html.sty« not »html.sty« also I don't have »html.sty« at all.
I have downloaded »html.sty« to my folder and it did the job.

Thanks for your help cgnieder and Stefan_K!

bkarpuz
Post Reply