HertieDataScience / SyllabusAndLectures

Hertie School of Governance Introduction to Collaborative Social Science Data Analysis
MIT License
37 stars 60 forks source link

BibTex #112

Open MarieAgosta opened 7 years ago

MarieAgosta commented 7 years ago

Hello,

I was wondering, in regards to BibTex, what to do if we are citing a non-academic article in our proposals (example - a Pew article online)...

Many thanks,

Marie

christophergandrud commented 7 years ago

You would probably want to use the MISC document type. See here for examples: http://tex.stackexchange.com/questions/3587/how-can-i-use-bibtex-to-cite-a-web-page

Apart from a few variations, it is pretty similar to ARTICLE.

MarieAgosta commented 7 years ago

Thank you!

MarieAgosta commented 7 years ago

Professor,

I am still struggling with this one, despite googling every step of the way anytime there was an issue (pretty much all the time).

The approach cited in the above article is reliant on one of two packages, hyperref or url - I have tried to install both to no avail. It says they're not compatible with the latest version of R.

Or at least, that is what I took this line to mean:

You should also perhaps include an author if you know it. And remember to load a package such as hyperref or url.

So then I tried this approach:

@MISC{doe:website, AUTHOR = "John Doe", TITLE = "the website title", MONTH = feb, YEAR = 2011, NOTE = "\url{http://whereever/file.ext}"

But when I try to knit that it lists a whole bunch of errors.

So a few questions....

Is there a way to install packages that initially say they're not compatible with R 3.3.1?

Could you please clarify exactly what the key is in these lines of code? The key is supposed to be a unique identifier so I don't quite understand where the unique part is... I was just using the same approach as with academic journals (that approach I get) but maybe it's not the same approach..?

Many thanks,

Marie

torbatschow commented 7 years ago

Hey Marie,

if you skip installing any new packages and just try putting the URL in a Field called "Url": Example:

@Misc{Klausa.2016,
  Title                    = {Torben's Website},

  Author                   = {Torben Klausa},
  Year                     = {2016},

  Owner                    = {torben},
  Timestamp                = {2016.10.26},
  Url                      = {http://www.hertie-school.org}
}

Example Reference with URL

Does that work?

Best,

Torben

christophergandrud commented 7 years ago

Hi @MarieAgosta. Sorry about the confusion. The packages the stack exchange article are TeX packages, not R packages. They actually already come with LaTeX when you download it. So there is no need to install. Those ones should also be loaded by R Markdown when you knit it.

@torbatschow's example should work. I think in the BibTeX entry you have, there is inconsistent use of " or alternatively {} around each element of the entry.

MarieAgosta commented 7 years ago

Thank you!

From: Christopher Gandrud notifications@github.com<mailto:notifications@github.com> Reply-To: HertieDataScience/SyllabusAndLectures reply@reply.github.com<mailto:reply@reply.github.com> Date: Thursday, October 27, 2016 at 8:49 AM To: HertieDataScience/SyllabusAndLectures SyllabusAndLectures@noreply.github.com<mailto:SyllabusAndLectures@noreply.github.com> Cc: Marie M.Agosta@lse.ac.uk<mailto:M.Agosta@lse.ac.uk>, Mention mention@noreply.github.com<mailto:mention@noreply.github.com> Subject: Re: [HertieDataScience/SyllabusAndLectures] BibTex (#112)

Hi @MarieAgostahttps://github.com/MarieAgosta. Sorry about the confusion. The packages the stack exchange article are TeX packages, not R packages. They actually already come with LaTeX when you download it. So there is no need to install. Those ones should also be loaded by R Markdown when you knit it.

@torbatschowhttps://github.com/torbatschow's example should work. I think in the BibTeX entry you have, there is inconsistent use of " or alternatively {} around each element of the entry.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/HertieDataScience/SyllabusAndLectures/issues/112#issuecomment-256560737, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AVA71jJqIsciPbYU2MV0DuLUXIO3SG8Rks5q4EmNgaJpZM4KgD6M.

MarieAgosta commented 7 years ago

Much better :)

Thanks Torben! Appreciate it.

From: Torben Klausa notifications@github.com<mailto:notifications@github.com> Reply-To: HertieDataScience/SyllabusAndLectures reply@reply.github.com<mailto:reply@reply.github.com> Date: Wednesday, October 26, 2016 at 8:29 PM To: HertieDataScience/SyllabusAndLectures SyllabusAndLectures@noreply.github.com<mailto:SyllabusAndLectures@noreply.github.com> Cc: Marie M.Agosta@lse.ac.uk<mailto:M.Agosta@lse.ac.uk>, Author author@noreply.github.com<mailto:author@noreply.github.com> Subject: Re: [HertieDataScience/SyllabusAndLectures] BibTex (#112)

Hey Marie,

if you skip installing any new packages and just try putting the URL in a Field called "Url": Example:

@Misc{Klausa.2016, Title = {Torben's Website},

Author = {Torben Klausa}, Year = {2016},

Owner = {torben}, Timestamp = {2016.10.26}, Url = {http://www.hertie-school.org} }

[Example Reference with URL]<www.torbenklausa.de/files/BibTexURL.png> Does that work?

Best,

Torben

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/HertieDataScience/SyllabusAndLectures/issues/112#issuecomment-256436689, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AVA71ry0AfVINipukmdHTBPETfMerQvAks5q35wLgaJpZM4KgD6M.