From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18562 Path: news.gmane.org!.POSTED!not-for-mail From: Piero Grandesso Newsgroups: gmane.text.pandoc Subject: URL in references (bibtex and yaml) Date: Wed, 8 Nov 2017 02:41:18 -0800 (PST) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1591_1110265060.1510137678239" X-Trace: blaine.gmane.org 1510137682 4588 195.159.176.226 (8 Nov 2017 10:41:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 8 Nov 2017 10:41:22 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBD55FB4X3MJRBT56RPIAKGQEBZSPQKA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Nov 08 11:41:14 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-oi0-f59.google.com ([209.85.218.59]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eCNnF-0000q4-Gn for gtp-pandoc-discuss@m.gmane.org; Wed, 08 Nov 2017 11:41:14 +0100 Original-Received: by mail-oi0-f59.google.com with SMTP id y206sf1782631oiy.8 for ; Wed, 08 Nov 2017 02:41:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=Woa+dLbZoVE37jnW7DMXwu2WTFd6ltWX4ZftE09RbsU=; b=Nq7G4pJNrVDeBc56jQu5+Olp8tjQ2zHP+My1ZbTkZQtstJOJAiYK36Gf7Q0trdGhpj UnkBgelaZgQ1smhqSCYZjp4X0URoYdnMwZcm6l8LuK8A5DfryWWS7yPgkmEUAtvT7zLC 3eXxfhemIhGuHjbKeF14LxUcSP2G7A4/ql3JU37zBokWIvmUk7R44MR2qwzeFtFiCQRN FdUXrREl6g0WCABYIu8tBa3jIilkv7+n85wFCwN9Z1tpEJEzWxbAbwFDQ33hjnF/J0Tz zj94YVqN+qSPbcENQ+whbpys1mVdxBhJQW8mmOcYDewz5Q6TtcvarRs9yPCZhRhUKkU1 M7eg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=Woa+dLbZoVE37jnW7DMXwu2WTFd6ltWX4ZftE09RbsU=; b=cIgRJf5rafHLwtDtj3Ebi+0WpI/jfcxt+r7qvr6enaAZh0EHRZDfrn4tCzjBMUm29P EzqZjdvYMisJ6PXhs9uQAamwhVPtXvNu8tA8h/NQc57pQHjdW7zpoInCuir5nV1ehZ0Q YnWpylD+z4reFyj/c8zeusPnxgCDYKyb/oGmR4pS1jWf4ih21zhpBber7qw8btmmXrQ/ wqAVoSUDqc3Nyx8/z6eepsoUMnH132SmUFBYt8XikKhnBTAA1KCDzmIJUtBNrMUzq/Fi pk9dWzfaFNN7Olj+e7gGUh883nIN2szLtT3Q/q44xMNgSFbcWEr5N3ekgFKqm5fboHP9 ZNQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=Woa+dLbZoVE37jnW7DMXwu2WTFd6ltWX4ZftE09RbsU=; b=tHdMy/q7POmQU8a5+mfWDYD4DIhXhFiYVdV05o8Kxj2Ohf86SsL9I2pc5GNFrgntHR JONmx7BC5RnI3DiSVjWpiKkBWZ+PB9F0tDMreWEhm+y5TVwd6wI0e7PJt35S4W6yqsvK ySYjeG5420BwsWoWcdLRdtcYkZ6pdx8S1PF9hf00IglRWsC+DIvVFSXwo0VjpURmLlZO Zg1Zb2cyxwcKls3MiadsYjh4PJ/nP0c7LK4wQX1kj7xEz0zO64rzepmEuKBL/jQj3+iG SzWdzHgpkT6lHw9XuNQJ/UDm3QSp0Bt0fSDua6aDBzJJo5hJKKalLpEsjjxqKxNJBZo+ N9OQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJaThX68s4Dl5bCAlTNIlj1dxBmKrTfGeFoBcZZxmALz8Z9xweagMgdh LhA+PEW5ad2/XS0e8+8C1Co= X-Google-Smtp-Source: AGs4zMYyBal9vbIZ+L3J4sSf2ccjMOKXkjlg+EL0k54/0/yby2F5MvtW8oD8YwEuvo5bq9mbwuKY5Q== X-Received: by 10.157.20.173 with SMTP id d42mr78195ote.3.1510137680729; Wed, 08 Nov 2017 02:41:20 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.157.1.211 with SMTP id e77ls5158415ote.21.gmail; Wed, 08 Nov 2017 02:41:19 -0800 (PST) X-Received: by 10.157.81.136 with SMTP id y8mr78698otg.1.1510137679246; Wed, 08 Nov 2017 02:41:19 -0800 (PST) X-Original-Sender: piero.tasso-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:18562 Archived-At: ------=_Part_1591_1110265060.1510137678239 Content-Type: multipart/alternative; boundary="----=_Part_1592_23331381.1510137678273" ------=_Part_1592_23331381.1510137678273 Content-Type: text/plain; charset="UTF-8" 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: ``` Doe, John, Roe, JennyWhy water is wetThird bookSmith, SamOxford University PressOxfordhttp://pandoc.org/" xlink:type="simple">http://pandoc.org/ ``` 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. ------=_Part_1592_23331381.1510137678273 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

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 y= aml bibliographies.

A minimal example in markdown will compile corre= ctly in HTML, given this bibliography:

```
@InCollection{item3,author=3D"John Doe and Jenny Roe",
title=3D"Why Water I= s Wet",
url=3D"http://pandoc.org/",
booktitle=3D"= Third Book",
editor=3D"Sam Smith",
publisher=3D"O= xford University Press",
address=3D"Oxford",
year=3D&q= uot;2007"
}
```

however when compiling in JATS XML the UR= L is handled wrongly:

```
<ref-list>
=C2=A0 <ref id= =3D"ref-1"><element-citation publication-type=3D"bookc= hapter"><person-group person-group-type=3D"author">= <name><surname>Doe</surname>,
=C2=A0 <given-names&g= t;John</given-names></name>, <name><surname>Roe<= /surname>,
=C2=A0 <given-names>Jenny</given-names></na= me></person-group><article-title>Why
=C2=A0 water is wet&= lt;/article-title><source>Third
=C2=A0 book</source><p= erson-group person-group-type=3D"editor"><name><surna= me>Smith</surname>,
=C2=A0 <given-names>Sam</given-nam= es></name></person-group><publisher-name>Oxford
=C2= =A0 University
=C2=A0 Press</publisher-name><publisher-loc>O= xford</publisher-loc><ext-link ext-link-type=3D"uri" xli= nk:href=3D"<ext-link ext-link-type=3D"uri" xlink:href=3D&= quot;http://pandoc.org/">http://pandoc.org/</ext-link>" = xlink:type=3D"simple"><ext-link ext-link-type=3D"uri&q= uot; xlink:href=3D"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 syn= tax?

---
references:
- id: item3
=C2=A0 type: chapter
= =C2=A0 author:
=C2=A0 - family: Doe
=C2=A0=C2=A0=C2=A0 given: John=C2=A0 - family: Roe
=C2=A0=C2=A0=C2=A0 given: Jenny
=C2=A0 editor:<= br>=C2=A0 - family: Smith
=C2=A0=C2=A0=C2=A0 given: Sam
=C2=A0 issued= :
=C2=A0 - year: '2007'
=C2=A0 title: Why water is wet
=C2= =A0 container-title: Third book
=C2=A0 publisher: Oxford University Pres= s
=C2=A0 publisher-place: Oxford
=C2=A0 url: 'http://pandoc.org/&= #39;
...

Thanks,
Piero

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@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.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_1592_23331381.1510137678273-- ------=_Part_1591_1110265060.1510137678239--