aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Biblio.hs
AgeCommit message (Collapse)AuthorFilesLines
2012-06-08Biblio: Workaround broken toCapital in citeproc-0.3.4.John MacFarlane1-2/+10
2012-06-05Biblio: Add comma to beginning of bare suffix, e.g. @item1 [50].John MacFarlane1-2/+10
Motivation: @item1 [50] should be as close as possible to [@item1, 50].
2012-05-23Massively simplified Text.Pandoc.Biblio.John MacFarlane1-84/+44
Fixed a bug with citations in notes and captions. We now handle note citations by inserting notes at the beginning, and removing notes within notes later.
2012-03-27Properly handle citations nested in other inline elements.John MacFarlane1-1/+1
Closes #460. Note: processBiblio is a mess. It should be rewritten for clarity and efficiency.
2011-11-11Implemented --citation-abbreviations option.John MacFarlane1-5/+10
Mostly due to Andrea Rossato.
2011-11-07Biblio: Fixed mess created by my removing procInlines.John MacFarlane1-11/+20
Now I see that procInlines was needed to prevent bottomUp from acting on sublists. This should fix the problem where '@item1, @item1' yielded "Doe (1999), Doe Doe Doe Doe (1999)".
2011-11-07Biblio - fixed author-in-text citations so they don't double.John MacFarlane1-1/+1
2011-11-07Biblio - Removed redundancy.John MacFarlane1-3/+2
2011-11-06Biblio: Put whole author-in-text citation in a Cite.John MacFarlane1-4/+4
Previously just the date and other info went in the Cite.
2011-11-06Further simplification of Biblio.John MacFarlane1-7/+8
2011-11-06Further cleanup of Biblio.John MacFarlane1-3/+3
2011-11-06Simplified Biblio, removed procInlines, use generics instead.John MacFarlane1-24/+15
2011-11-04Don't add comma+space to prefix if it ends in punctuation.John MacFarlane1-5/+1
Patch from Andrea Rossato.
2011-10-28Text.Pandoc.Biblio: Expand citations recursively inside nested inlines.John MacFarlane1-7/+5
Closes #331.
2011-10-27Biblio: Treat \160 as space when parsing locator and suffix.John MacFarlane1-2/+6
This fixes a bug with "p. 33" when `--smart` is used. Previously the whole "p. 33" would be included in the suffix, with no locator.
2011-01-01Updated copyright notices.John MacFarlane1-1/+1
2010-12-24Use functions from Text.Pandoc.Generic instead of processWith(M).John MacFarlane1-5/+6
2010-12-13Moved special handling of punctuation in suffix out of markdown reader.Nathan Gass1-2/+6
This allows different writers to handle punctuation in the suffix differently.
2010-11-28Fixed spacing bug for reference-style citations.John MacFarlane1-1/+4
2010-11-27Biblio: If locator ends with ",", add it to the suffix.John MacFarlane1-1/+9
2010-11-27Added procOpts parameter to citeproc call.John MacFarlane1-1/+2
2010-11-27Use parsec parsers to split locator.John MacFarlane1-27/+34
This is easier to read and maintain. Also, formatting is now stripped from the locator prefix, so you can write e.g. '*p.* 33'.
2010-11-26Split locator and suffix in Biblio rather than Markdown parser.John MacFarlane1-4/+34
Patch from Nathan Gass.
2010-11-20Biblio: Check for == rather than /=.John MacFarlane1-3/+3
This is more perspicuous.
2010-11-20Citation related changes.John MacFarlane1-2/+3
* Don't look for bibliography in ~/.pandoc. Reason: doing this requires a read + parse of the bibliography even when the document doesn't use citations. This is a big performance drag on regular pandoc invocations. * Only look for default.csl if the document contains references. Reason: avoids the need to read and parse csl file when the document contains no references anyway. * Removed findFirstFile from Shared.
2010-11-18If --csl not specified, read from data files or default.John MacFarlane1-5/+2
Thus --csl behaves like --reference-odt, --template, etc.
2010-11-17Biblio: Removed stringify; pass inline list to citeproc.John MacFarlane1-12/+2
2010-11-16Updated for changes in Citaiton type.John MacFarlane1-9/+20
citationPrefix now [Inline] rather than String; citationSuffix added. This change presupposes no changes in citeproc-hs. It passes a string for these values to citeproc-hs. Eventually, citeproc-hs should use an [Inline] for these as well.
2010-11-16Biblio: don't add footnote if empty.John MacFarlane1-3/+3
2010-11-11Biblio: Use a Map for the lookup table.John MacFarlane1-3/+4
2010-11-11Added support for textual citations (but not yet markdown syntax).John MacFarlane1-18/+27
Patch from Andrea Rossato.
2010-11-06Changes to use citeproc-hs 0.3.John MacFarlane1-92/+21
2010-11-04Biblio: small fix to detection of punctuation (A. Rossato).John MacFarlane1-4/+4
2010-11-03Biblio: Improve footnote generation.John MacFarlane1-10/+24
Patch from Andrea Rossato.
2010-11-02Improve footnote generation of in-text citations w/ note styles.John MacFarlane1-24/+118
Patch from Andrea Rossato.
2010-10-27Changes to use citeproc 0.3.John MacFarlane1-10/+65
Patch from Andrea Rossato. Note: the markdown syntax is preliminary and will probably change.
2009-02-28Minor changes in Text.Pandoc.Biblio.fiddlosopher1-3/+3
Replaced queryPandoc w queryWith, processPandoc w processWith. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1554 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-01-24Moved all haskell source to src subdirectory.fiddlosopher1-0/+66
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1528 788f1e2b-df1e-0410-8736-df70ead52e1b