Discussion:
[MiKTeX] MiKTeX 2.5 and Harvard Style Bibliographies
Czucco
2007-01-08 19:33:23 UTC
Permalink
After installing MiKTeX 2.5, I have been unable to get my havard style
bibliographies fully functional as before.

I am running into two problems, which do not depend on the actual
\bibliogrphystyle{} used.

1) The \harvardand\ symbol does not show on the dvi (nor on the ps or pdf,
for that matter), both in the citations and in the references list even
though the .bbl seems to be generated correctly. I've done the
re-installation of fonts and of gs as suggested in the YAP threads, but the
problem still remains.

2) The \possessivecite{} command is simply not recognized at

Any suggestions?

Thanks
--
View this message in context: http://www.nabble.com/MiKTeX-2.5-and-Harvard-Style-Bibliographies-tf2941470.html#a8224688
Sent from the miktex-users mailing list archive at Nabble.com.
Czucco
2007-01-11 19:43:52 UTC
Permalink
I found a DIRTY solution, described bellow for future reference. If anybody
has any suggestions as to why harvard.sty is not working, I am still
interested.

Replace
\usepackage{harvard}
with
\usepackage{natbib}
\usepackage{har2nat}
and defining \possessivecite as
\newcommand{\possessivecite}[1]{\citeauthor{#1}'s \citeyearpar{#1}}.

The first move takes care of the missing \harvarand\ sign, while the second
deals with the \possessivecite.
--
View this message in context: http://www.nabble.com/MiKTeX-2.5-and-Harvard-Style-Bibliographies-tf2941470.html#a8284735
Sent from the miktex-users mailing list archive at Nabble.com.
Ulrike Fischer
2007-01-12 09:20:00 UTC
Permalink
Post by Czucco
I found a DIRTY solution, described bellow for future reference. If anybody
has any suggestions as to why harvard.sty is not working, I am still
interested.
Probably something changed. But as you didn't give a complete, running
minimal example, didn't mention the versions you use (e.g. the output
of \listfiles) or what errors you perhaps get, it is quite difficult
to tell more.
--
Mit freundlichen Grüßen
Ulrike Fischer
mailto:***@nililand.de
Czucco
2007-01-12 10:57:43 UTC
Permalink
As requested, here's a minimal example of the problems with harvard
bibliography package and MiKTeX 2.5. It is running on windows XP. The
package is dated 10/15/2005 on the package manager, was downloaded and
installed on 01/08/2007.

a) Main file:
\documentclass[USletter,12pt]{article}
\usepackage{harvard}
\bibliographystyle{apsr} %or any other harvard style such as dcu
\begin{document}
Regular citation works, but does not print the harvarand sign
\cite{lewste00}.
Citing \possessivecite{lewste00} paper, in possessive format, does not work.
\bibliography{example}
\end{document}

b) example.bib
@ARTICLE{lewste00,
AUTHOR = "Lewis-Beck, Michael and Stegmeier, Mary",
TITLE = "Economic Determinants of Electoral Outcomes",
JOURNAL = "Annual Review of Political Science",
YEAR = "2000",
volume = "3",
number = "2",
pages = "183–219",
}
--
View this message in context: http://www.nabble.com/MiKTeX-2.5-and-Harvard-Style-Bibliographies-tf2941470.html#a8296446
Sent from the miktex-users mailing list archive at Nabble.com.
Ulrike Fischer
2007-01-12 11:39:55 UTC
Permalink
Post by Czucco
As requested, here's a minimal example of the problems with harvard
bibliography package and MiKTeX 2.5. It is running on windows XP. The
package is dated 10/15/2005 on the package manager, was downloaded and
installed on 01/08/2007.
They are three different files named harvard.sty on CTAN, one is
installed by miktex through the economic package, the other with the
harvard package, you are probably using the wrong one, look in the
log-file.

Your example works with the one starting with

%% harvard.sty - harvard bibliography style Version 2.0.5
%% Author: Peter Williams ***@archsci.arch.su.edu.au
%% Copyright: Peter Williams 1994
Post by Czucco
\documentclass[USletter,12pt]{article}
The option USletter doesn't exist.
--
Mit freundlichen Grüßen
Ulrike Fischer
mailto:***@nililand.de
Czucco
2007-01-12 17:21:49 UTC
Permalink
Post by Ulrike Fischer
They are three different files named harvard.sty on CTAN, one is
installed by miktex through the economic package, the other with the
harvard package, you are probably using the wrong one, look in the
log-file.
Your example works with the one starting with
%% harvard.sty - harvard bibliography style Version 2.0.5
%% Copyright: Peter Williams 1994
That matched the file I have in my \texmf\tex\latex\harvard folder. However,
examining the log file as you suggested before I noticed that MiKTeX was
getting the harvard.sty not from this folder, but from
\texmf\tex\latex\economic\. There, I found a harvard.sty file that was not
the correct one. I replaced that file and now it works.

Do you know WHY it was searching from the file in the "economic" folder?

Many thanks
--
View this message in context: http://www.nabble.com/MiKTeX-2.5-and-Harvard-Style-Bibliographies-tf2941470.html#a8302383
Sent from the miktex-users mailing list archive at Nabble.com.
Ulrike Fischer
2007-01-12 18:59:04 UTC
Permalink
Post by Czucco
Post by Ulrike Fischer
They are three different files named harvard.sty on CTAN, one is
installed by miktex through the economic package, the other with the
harvard package, you are probably using the wrong one, look in the
log-file.
Your example works with the one starting with
%% harvard.sty - harvard bibliography style Version 2.0.5
%% Copyright: Peter Williams 1994
That matched the file I have in my \texmf\tex\latex\harvard folder. However,
examining the log file as you suggested before I noticed that MiKTeX was
getting the harvard.sty not from this folder, but from
\texmf\tex\latex\economic\. There, I found a harvard.sty file that was not
the correct one. I replaced that file and now it works.
Replacing that file is not a good idea. Either delete the
economic-package if you don't need it, or make a copy of your
harvard.sty, rename it to "myharvard.sty" and use that, or put your
harvard.sty in a texmf-tree that is search before the other main
texmf-tree.

You could also write the two authors and ask them to resolve the name
clash somehow.
Post by Czucco
Do you know WHY it was searching from the file in the "economic" folder?
Why not? If there are two files with the same name in the texmf tree
there is a 50% chance that it use the wrong one.
--
Mit freundlichen Grüßen
Ulrike Fischer
mailto:***@nililand.de
Loading...