From: Piero Grandesso <piero.tasso-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: URL in references (bibtex and yaml)
Date: Wed, 8 Nov 2017 02:41:18 -0800 (PST) [thread overview]
Message-ID: <cffc5be7-654b-42a7-9e67-c23be85e4c5f@googlegroups.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 2599 bytes --]
I am just starting to learn bibtex so it could be my fault, but I am having
problems with pandoc 2 and references that contain URLs. And the behavior
differs between bibtex and yaml bibliographies.
A minimal example in markdown will compile correctly in HTML, given this
bibliography:
```
@InCollection{item3,
author="John Doe and Jenny Roe",
title="Why Water Is Wet",
url="http://pandoc.org/",
booktitle="Third Book",
editor="Sam Smith",
publisher="Oxford University Press",
address="Oxford",
year="2007"
}
```
however when compiling in JATS XML the URL is handled wrongly:
```
<ref-list>
<ref id="ref-1"><element-citation
publication-type="bookchapter"><person-group
person-group-type="author"><name><surname>Doe</surname>,
<given-names>John</given-names></name>, <name><surname>Roe</surname>,
<given-names>Jenny</given-names></name></person-group><article-title>Why
water is wet</article-title><source>Third
book</source><person-group
person-group-type="editor"><name><surname>Smith</surname>,
<given-names>Sam</given-names></name></person-group><publisher-name>Oxford
University
Press</publisher-name><publisher-loc>Oxford</publisher-loc><ext-link
ext-link-type="uri" xlink:href="<ext-link ext-link-type="uri"
xlink:href="http://pandoc.org/">http://pandoc.org/</ext-link>"
xlink:type="simple"><ext-link ext-link-type="uri"
xlink:href="http://pandoc.org/">http://pandoc.org/</ext-link></ext-link></element-citation></ref>
</ref-list>
```
Then I tried using the citation in YAML; maybe I am missing something, but
the URL field in YAML reference is ignored (both in JATS XML and in HTML)
Here is the YAML, is there a different syntax?
---
references:
- id: item3
type: chapter
author:
- family: Doe
given: John
- family: Roe
given: Jenny
editor:
- family: Smith
given: Sam
issued:
- year: '2007'
title: Why water is wet
container-title: Third book
publisher: Oxford University Press
publisher-place: Oxford
url: 'http://pandoc.org/'
...
Thanks,
Piero
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/cffc5be7-654b-42a7-9e67-c23be85e4c5f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 432377 bytes --]
next reply other threads:[~2017-11-08 10:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-08 10:41 Piero Grandesso [this message]
[not found] ` <cffc5be7-654b-42a7-9e67-c23be85e4c5f-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-11-08 16:33 ` John MACFARLANE
2017-11-10 8:30 ` Piero Grandesso
[not found] ` <1bea1195-3f10-4295-92fb-45fdc985c2aa-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-11-11 3:03 ` John MacFarlane
[not found] ` <20171111030359.GH16934-jF64zX8BO091tJRe0FUodcM6rOWSkUom@public.gmane.org>
2017-11-11 12:25 ` Piero Grandesso
[not found] ` <e63b4955-98ba-4f34-b809-081b57a2350c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-11-12 0:02 ` John MacFarlane
[not found] ` <20171112000254.GA50577-jF64zX8BO091tJRe0FUodcM6rOWSkUom@public.gmane.org>
2017-11-12 0:25 ` John MacFarlane
[not found] ` <20171112002511.GA52781-jF64zX8BO091tJRe0FUodcM6rOWSkUom@public.gmane.org>
2017-11-12 17:05 ` Piero Grandesso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cffc5be7-654b-42a7-9e67-c23be85e4c5f@googlegroups.com \
--to=piero.tasso-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).