[prev in list] [next in list] [prev in thread] [next in thread]
List: lyx-users
Subject: Re: Author year in text citation
From: Richard Heck <rgheck () comcast ! net>
Date: 2011-06-30 21:11:56
Message-ID: 4E0CE69C.5070202 () comcast ! net
[Download RAW message or body]
On 06/30/2011 02:59 PM, Diego Queiroz wrote:
> On Thu, Jun 30, 2011 at 2:27 PM, Thomas <thomas.triebs@cantab.net
> <mailto:thomas.triebs@cantab.net>> wrote:
>
> Dear all,
>
> I am using Lxy 2.0 under Windows and I am using the Firefox Zotero
> plug in for my bibliography.
>
> I have the following problem.
>
> When trying to format in text citations as "Author (Year)" which I
> can choose right clicking the citation in Lyx the PDF (pdflatex)
> produces "(author?)" followed by the reference number in brackets.
>
> Citation style is Natbib and generator is bibtex.
>
> I tried various approaches suggested online but nothing works.
> Unfortunately, I am not even sure which of the many suggestions
> apply to my problem (if any).
>
> Any pointers are much appreciated!
>
> Thomas
>
>
> Thomas,
>
> I don't remember exactly why this happens.
>
The usual reason is that there is some kind of error in the BibTeX file
that is preventing a proper read of the file, at which point it defaults
to numerical citations, and you get weird errors. A very common reason
is that there are improperly encoded characters in the BibTeX file,
e.g., Unicode quotes or dashes. I do not myself know why programs that
claim to produce BibTeX files do not, by default, produce them in a
valid BibTeX encoding, which basically means ASCII. In any event, if you
are using Zotero, then you need to tell it to write the BibTeX file as
pure ASCII.
Note: This is not a LyX limitation, but a BibTeX one. There are 8-bit
BibTeX processors, and you can use something like biber instead, which
will handle Unicode. So telling LyX to use one of those instead of
bibtex (under Tools>Preferences>Output>LaTeX) is also an option.
Richard
[Attachment #3 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-2"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 06/30/2011 02:59 PM, Diego Queiroz wrote:
<blockquote
cite="mid:BANLkTikaA+YEZ8H2ds9V7MX=9TyEPMHyXQ@mail.gmail.com"
type="cite">
<div>On Thu, Jun 30, 2011 at 2:27 PM, Thomas <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:thomas.triebs@cantab.net">thomas.triebs@cantab.net</a>></span>
wrote:</div>
<div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
Dear all,<br>
<br>
I am using Lxy 2.0 under Windows and I am using the Firefox
Zotero plug in for my bibliography.<br>
<br>
I have the following problem.<br>
<br>
When trying to format in text citations as "Author (Year)"
which I can choose right clicking the citation in Lyx the
PDF (pdflatex) produces "(author?)" followed by the
reference number in brackets.<br>
<br>
Citation style is Natbib and generator is bibtex.<br>
<br>
I tried various approaches suggested online but nothing
works. Unfortunately, I am not even sure which of the many
suggestions apply to my problem (if any).<br>
<br>
Any pointers are much appreciated!<br>
<font color="#888888">
<br>
Thomas<br>
</font></blockquote>
</div>
<br>
</div>
<div>
<div>Thomas,</div>
<div><br>
</div>
I don't remember exactly why this happens.<br>
<br>
</div>
</blockquote>
The usual reason is that there is some kind of error in the BibTeX
file that is preventing a proper read of the file, at which point it
defaults to numerical citations, and you get weird errors. A very
common reason is that there are improperly encoded characters in the
BibTeX file, e.g., Unicode quotes or dashes. I do not myself know
why programs that claim to produce BibTeX files do not, by default,
produce them in a valid BibTeX encoding, which basically means
ASCII. In any event, if you are using Zotero, then you need to tell
it to write the BibTeX file as pure ASCII.<br>
<br>
Note: This is not a LyX limitation, but a BibTeX one. There are
8-bit BibTeX processors, and you can use something like biber
instead, which will handle Unicode. So telling LyX to use one of
those instead of bibtex (under
Tools>Preferences>Output>LaTeX) is also an option.<br>
<br>
Richard<br>
<br>
</body>
</html>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic