Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.

motion_picture titles not italicised, nor moved outside parentheses #118

Closed
njbart opened this issue Mar 21, 2015 · 2 comments
Closed

motion_picture titles not italicised, nor moved outside parentheses #118

njbart opened this issue Mar 21, 2015 · 2 comments

Comments

@njbart
Copy link
Contributor

njbart commented Mar 21, 2015

pandoc-citeproc does not render motion_picture titles as expected:

  1. titles are enclosed in double quotes instead of being italicised (though the CSL file clearly instructs the processor to do the latter, see https://github.com/citation-style-language/styles/blob/master/chicago-author-date.csl#L197). This happens both in the in-text citation and the reference list entry.
  2. Where the movie’s name appears in the text, it should appear before/outside of the parenthetical citation (containing the year only in such cases) – but it appears inside the parentheses.

Example (csl file is a patched chicago-author-date.csl which includes director as secondary-contributor, pull request submitted; but the original chicago-author-date.csl shows both issues as well, as does chicago-fullnote-bibliography.csl):

pandoc -F pandoc-citeproc -t markdown-citations << EOT

# Text

@nbn is a spy thriller film.

@item1 is a book, for comparison.

# References

---
csl: https://github.com/citation-style-language/styles/raw/ae2167dcb86db405b65915d2be591cf764a808b5/chicago-author-date.csl
references:
- type: motion_picture
  id: nbn
  title: North by Northwest
  director:
    family: Hitchcock
    given: Alfred
  issued:
    year: 1959
  publisher: Metro-Goldwyn-Mayer
  publisher-place: USA
  language: en-US

- title: Book title
  id: item1
  issued:
    year: 2013
  author:
    given: Al
    family: Author
  publisher: Publisher
  type: book
...
EOT

Expected output:

Text
====

*North by Northwest* (1959) is a spy thriller film.

Author (2013) is a book, for comparison.

<div class="references">

References {#references .unnumbered}
==========

<div id="ref-item1">

Author, Al. 2013. *Book Title*. Publisher.

</div>

<div id="ref-nbn">

*North by Northwest.* 1959. Directed by Alfred Hitchcock. USA:
Metro-Goldwyn-Mayer.

</div>

</div>

Actual output:

Text
====

(“North by Northwest” 1959) is a spy thriller film.

Author (2013) is a book, for comparison.

<div class="references">

References {#references .unnumbered}
==========

<div id="ref-item1">

Author, Al. 2013. *Book Title*. Publisher.

</div>

<div id="ref-nbn">

“North by Northwest.” 1959. Directed by Alfred Hitchcock. USA:
Metro-Goldwyn-Mayer.

</div>

</div>
@jgm
Copy link
Owner

jgm commented May 3, 2015

I've confirmed that this has to do with the nonstandard Show instance in Reference.hs lines 245ff.
Shouldn't be too hard to fix.

@jgm
Copy link
Owner

jgm commented May 4, 2015

OK, I'm about to push a fix for the improper treatment of the title (quoted rather than emphasized).

The other issue is a separate one. Since there is no author here, an AuthorInText citation behaves just like a normal one. We might consider modifying the behavior of AuthorInText citations (and renaming to something like InTextCitation), but that's a bigger change, with ramifications for any kind of item that lacks an author. So I suggest making a separate issue for that, and maybe discussing first on pandoc-discuss.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants