public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* URL in references (bibtex and yaml)
@ 2017-11-08 10:41 Piero Grandesso
       [not found] ` <cffc5be7-654b-42a7-9e67-c23be85e4c5f-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Piero Grandesso @ 2017-11-08 10:41 UTC (permalink / raw)
  To: pandoc-discuss


[-- 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 --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-11-12 17:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-08 10:41 URL in references (bibtex and yaml) Piero Grandesso
     [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

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).