public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Citation rendering
@ 2018-01-09 16:46 thomas.hodgson-6DaNJ7gwbyQ
       [not found] ` <2af417dc-b805-4e43-9b9c-d1c7db5deab4-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: thomas.hodgson-6DaNJ7gwbyQ @ 2018-01-09 16:46 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1018 bytes --]

I'm doing `pandoc --bibliography=foo.bib -o foo.pdf foo.md` with the .deb 
for 2.1. When I have references that look like  `[@smith04; @doe99]` I get 
references like '[Smith (2004); Doe (1999)]'. It looks like I'm getting 
inline citations inside brackets, not bracketed citations.

Has something changed in pandoc, pandoc-citeproc, or the embedded CSL? (I 
can't see anything relevant in recent commits but I could well be missing 
something.)

-- 
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/2af417dc-b805-4e43-9b9c-d1c7db5deab4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 1460 bytes --]

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

* Re: Citation rendering
       [not found] ` <2af417dc-b805-4e43-9b9c-d1c7db5deab4-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2018-01-09 17:53   ` John MacFarlane
       [not found]     ` <20180109175359.GC43599-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: John MacFarlane @ 2018-01-09 17:53 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

I'm not able to reproduce this.  Can you give an exact
example, with input and command line, that gives you this
result?

+++ thomas.hodgson-6DaNJ7gwbyQ@public.gmane.org [Jan 09 18 08:46 ]:
>   I'm doing `pandoc --bibliography=foo.bib -o foo.pdf foo.md` with the
>   .deb for 2.1. When I have references that look like  `[@smith04;
>   @doe99]` I get references like '[Smith (2004); Doe (1999)]'. It looks
>   like I'm getting inline citations inside brackets, not bracketed
>   citations.
>   Has something changed in pandoc, pandoc-citeproc, or the embedded CSL?
>   (I can't see anything relevant in recent commits but I could well be
>   missing something.)
>
>   --
>   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 [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>   To post to this group, send email to
>   [2]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>   To view this discussion on the web visit
>   [3]https://groups.google.com/d/msgid/pandoc-discuss/2af417dc-b805-4e43-
>   9b9c-d1c7db5deab4%40googlegroups.com.
>   For more options, visit [4]https://groups.google.com/d/optout.
>
>References
>
>   1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>   2. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>   3. https://groups.google.com/d/msgid/pandoc-discuss/2af417dc-b805-4e43-9b9c-d1c7db5deab4-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer
>   4. https://groups.google.com/d/optout


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

* Re: Citation rendering
       [not found]     ` <20180109175359.GC43599-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
@ 2018-01-09 19:18       ` thomas.hodgson-6DaNJ7gwbyQ
       [not found]         ` <889c2b44-32b8-4761-a381-0a6848862ffc-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: thomas.hodgson-6DaNJ7gwbyQ @ 2018-01-09 19:18 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 4950 bytes --]

It turns out that it only happens in footnotes. Sorry about that.

Command: pandoc --bibliography=foo.bib foo.md

Foo.md:

```
[@Chomsky2002; @Chomsky2015]

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod 
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim 
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea 
commodo consequat. Duis aute irure dolor in reprehenderit in voluptate 
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat 
cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id 
est laborum.^[[@Chomsky2002; @Chomsky2015]]
```

Foo.bib:

```
@book{Chomsky2015,
  location = {{Cambridge, MA}},
  edition = {50th Anniversary Edition},
  title = {Aspects of the Theory of Syntax},
  publisher = {{MIT Press}},
  date = {2015},
  author = {Chomsky, Noam}
}

@book{Chomsky2002,
  location = {{Berlin}},
  edition = {2},
  title = {Syntactic Structures},
  publisher = {{Mouton De Gruyter}},
  date = {2002},
  author = {Chomsky, Noam}
}
```

Output:
```
<p><span class="citation" data-cites="Chomsky2002 Chomsky2015">(Chomsky 
2002, 2015)</span></p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod 
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim 
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea 
commodo consequat. Duis aute irure dolor in reprehenderit in voluptate 
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat 
cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id 
est laborum.<a href="#fn1" class="footnote-ref" 
id="fnref1"><sup>1</sup></a></p>
<div id="refs" class="references">
<div id="ref-Chomsky2002">
<p>Chomsky, Noam. 2002. <em>Syntactic Structures</em>. 2nd ed. Berlin: 
Mouton De Gruyter. <a href="https://doi.org/10.1515/9783110218329" 
class="uri">https://doi.org/10.1515/9783110218329</a>.</p>
</div>
<div id="ref-Chomsky2015">
<p>———. 2015. <em>Aspects of the Theory of Syntax</em>. 50th Anniversary 
Edition. Cambridge, MA: MIT Press.</p>
</div>
</div>
<section class="footnotes">
<hr />
<ol>
<li id="fn1"><p>[<span class="citation" data-cites="Chomsky2002">Chomsky 
(2002)</span>; <span class="citation" data-cites="Chomsky2015">Chomsky 
(2015)</span>]<a href="#fnref1" class="footnote-back">↩</a></p></li>
</ol>
</section>
```

On Tuesday, 9 January 2018 17:54:14 UTC, John MacFarlane wrote:
>
> I'm not able to reproduce this.  Can you give an exact 
> example, with input and command line, that gives you this 
> result? 
>
> +++ thomas....-6DaNJ7gwbyQ@public.gmane.org <javascript:> [Jan 09 18 08:46 ]: 
> >   I'm doing `pandoc --bibliography=foo.bib -o foo.pdf foo.md` with the 
> >   .deb for 2.1. When I have references that look like  `[@smith04; 
> >   @doe99]` I get references like '[Smith (2004); Doe (1999)]'. It looks 
> >   like I'm getting inline citations inside brackets, not bracketed 
> >   citations. 
> >   Has something changed in pandoc, pandoc-citeproc, or the embedded CSL? 
> >   (I can't see anything relevant in recent commits but I could well be 
> >   missing something.) 
> > 
> >   -- 
> >   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 [1]pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. 
> >   To post to this group, send email to 
> >   [2]pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. 
> >   To view this discussion on the web visit 
> >   [3]
> https://groups.google.com/d/msgid/pandoc-discuss/2af417dc-b805-4e43- 
> >   9b9c-d1c7db5deab4%40googlegroups.com. 
> >   For more options, visit [4]https://groups.google.com/d/optout. 
> > 
> >References 
> > 
> >   1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:> 
> >   2. mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:> 
> >   3. 
> https://groups.google.com/d/msgid/pandoc-discuss/2af417dc-b805-4e43-9b9c-d1c7db5deab4-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer 
> >   4. https://groups.google.com/d/optout 
>
>

-- 
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/889c2b44-32b8-4761-a381-0a6848862ffc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 9365 bytes --]

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

* Re: Citation rendering
       [not found]         ` <889c2b44-32b8-4761-a381-0a6848862ffc-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2018-01-11 13:22           ` thomas.hodgson-6DaNJ7gwbyQ
  0 siblings, 0 replies; 4+ messages in thread
From: thomas.hodgson-6DaNJ7gwbyQ @ 2018-01-11 13:22 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 5399 bytes --]

Reverting to 2.06 avoids the issue.

Because this occurs in footnotes, marked with brackets, I wonder whether 
this commit is the cause: 
https://github.com/jgm/pandoc/commit/5733183b3de4ab93a1341410eef4249f09648f3f

On Tuesday, 9 January 2018 19:18:20 UTC, thomas....-6DaNJ7gwbyQ@public.gmane.org wrote:
>
> It turns out that it only happens in footnotes. Sorry about that.
>
> Command: pandoc --bibliography=foo.bib foo.md
>
> Foo.md:
>
> ```
> [@Chomsky2002; @Chomsky2015]
>
> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod 
> tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim 
> veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea 
> commodo consequat. Duis aute irure dolor in reprehenderit in voluptate 
> velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat 
> cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id 
> est laborum.^[[@Chomsky2002; @Chomsky2015]]
> ```
>
> Foo.bib:
>
> ```
> @book{Chomsky2015,
>   location = {{Cambridge, MA}},
>   edition = {50th Anniversary Edition},
>   title = {Aspects of the Theory of Syntax},
>   publisher = {{MIT Press}},
>   date = {2015},
>   author = {Chomsky, Noam}
> }
>
> @book{Chomsky2002,
>   location = {{Berlin}},
>   edition = {2},
>   title = {Syntactic Structures},
>   publisher = {{Mouton De Gruyter}},
>   date = {2002},
>   author = {Chomsky, Noam}
> }
> ```
>
> Output:
> ```
> <p><span class="citation" data-cites="Chomsky2002 Chomsky2015">(Chomsky 
> 2002, 2015)</span></p>
> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod 
> tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim 
> veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea 
> commodo consequat. Duis aute irure dolor in reprehenderit in voluptate 
> velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat 
> cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id 
> est laborum.<a href="#fn1" class="footnote-ref" 
> id="fnref1"><sup>1</sup></a></p>
> <div id="refs" class="references">
> <div id="ref-Chomsky2002">
> <p>Chomsky, Noam. 2002. <em>Syntactic Structures</em>. 2nd ed. Berlin: 
> Mouton De Gruyter. <a href="https://doi.org/10.1515/9783110218329" 
> class="uri">https://doi.org/10.1515/9783110218329</a>.</p>
> </div>
> <div id="ref-Chomsky2015">
> <p>———. 2015. <em>Aspects of the Theory of Syntax</em>. 50th Anniversary 
> Edition. Cambridge, MA: MIT Press.</p>
> </div>
> </div>
> <section class="footnotes">
> <hr />
> <ol>
> <li id="fn1"><p>[<span class="citation" data-cites="Chomsky2002">Chomsky 
> (2002)</span>; <span class="citation" data-cites="Chomsky2015">Chomsky 
> (2015)</span>]<a href="#fnref1" class="footnote-back">↩</a></p></li>
> </ol>
> </section>
> ```
>
> On Tuesday, 9 January 2018 17:54:14 UTC, John MacFarlane wrote:
>>
>> I'm not able to reproduce this.  Can you give an exact 
>> example, with input and command line, that gives you this 
>> result? 
>>
>> +++ thomas....-6DaNJ7gwbyQ@public.gmane.org [Jan 09 18 08:46 ]: 
>> >   I'm doing `pandoc --bibliography=foo.bib -o foo.pdf foo.md` with the 
>> >   .deb for 2.1. When I have references that look like  `[@smith04; 
>> >   @doe99]` I get references like '[Smith (2004); Doe (1999)]'. It looks 
>> >   like I'm getting inline citations inside brackets, not bracketed 
>> >   citations. 
>> >   Has something changed in pandoc, pandoc-citeproc, or the embedded 
>> CSL? 
>> >   (I can't see anything relevant in recent commits but I could well be 
>> >   missing something.) 
>> > 
>> >   -- 
>> >   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 [1]pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 
>> >   To post to this group, send email to 
>> >   [2]pandoc-...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 
>> >   To view this discussion on the web visit 
>> >   [3]
>> https://groups.google.com/d/msgid/pandoc-discuss/2af417dc-b805-4e43- 
>> >   9b9c-d1c7db5deab4%40googlegroups.com. 
>> >   For more options, visit [4]https://groups.google.com/d/optout. 
>> > 
>> >References 
>> > 
>> >   1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org 
>> >   2. mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org 
>> >   3. 
>> https://groups.google.com/d/msgid/pandoc-discuss/2af417dc-b805-4e43-9b9c-d1c7db5deab4-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer 
>> >   4. https://groups.google.com/d/optout 
>>
>>

-- 
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/d71c220e-fb17-4cd9-9ced-ca460634ad09%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 10257 bytes --]

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

end of thread, other threads:[~2018-01-11 13:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-09 16:46 Citation rendering thomas.hodgson-6DaNJ7gwbyQ
     [not found] ` <2af417dc-b805-4e43-9b9c-d1c7db5deab4-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-01-09 17:53   ` John MacFarlane
     [not found]     ` <20180109175359.GC43599-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
2018-01-09 19:18       ` thomas.hodgson-6DaNJ7gwbyQ
     [not found]         ` <889c2b44-32b8-4761-a381-0a6848862ffc-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-01-11 13:22           ` thomas.hodgson-6DaNJ7gwbyQ

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