khajavi / pandoc

Automatically exported from code.google.com/p/pandoc
GNU General Public License v2.0
0 stars 0 forks source link

BibTeX references not caught when suffixed with closing bracket #304

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. A reference like @chomsky65 is not properly transformed to a bibtex 
reference in the LaTeX output when it occurs immediately before an end bracket.

What is the expected output? What do you see instead?
Input: "... wherefore we can conclude that generative grammar (e.g. @chomsky57, 
@chomsky65) is utter tosh."
In the LaTeX output, provided an appropriate bibliography file:
Expected: "... wherefore we can conclude that generative grammar (e.g. Chomsky 
(1957), Chomsky (1965)) is utter tosh."
Seen: "... wherefore we can conclude that generative grammar (e.g. Chomsky 
(1957), @chomsky65) is utter tosh."

What version of the product are you using? On what operating system?

haskell-pandoc 1.8.1.1-3 package from Arch Linux Arch User Repository (AUR). 
This is an automated buildscript which compiles the sources at 
http://hackage.haskell.org/packages/archive/pandoc/1.8.1.1/pandoc-1.8.1.1.tar.gz

$ uname -a
Linux dimitri 2.6.33-rt #1 SMP PREEMPT RT Tue Jan 18 02:21:42 CET 2011 x86_64 
Intel(R) Core(TM)2 Duo CPU P8400 @ 2.26GHz GenuineIntel GNU/Linux

Please provide any additional information below.

Original issue reported on code.google.com by niklas.n...@gmail.com on 20 May 2011 at 7:46

GoogleCodeExporter commented 9 years ago
A space before the closing bracket fixes the issue but is a bit of an eyesore.

Original comment by niklas.n...@gmail.com on 20 May 2011 at 7:48

GoogleCodeExporter commented 9 years ago
Also, that's in the PDF output, obviously.

Original comment by niklas.n...@gmail.com on 20 May 2011 at 7:57

GoogleCodeExporter commented 9 years ago
I'll fix this, but a better way to do the citation is:

[e.g. @chomsky57; @chomsky65]

This will create a parenthesized citation in parenthesized styles -- and other 
things in other styles.
This method will also avoid ugly parentheses within parentheses.

Original comment by fiddloso...@gmail.com on 23 May 2011 at 3:21

GoogleCodeExporter commented 9 years ago
Fixed in the repository by commit 6e59053d3287b6ff5f71b7ff789c0d7215388359
Thanks for reporting the bug!

Original comment by fiddloso...@gmail.com on 23 May 2011 at 3:25