543aa28c38
* Added Text.Pandoc.Pretty. This is better suited for pandoc than the 'pretty' package. One advantage is that we now get proper wrapping; Emph [Inline] is no longer treated as a big unwrappable unit. Previously we only got breaks for spaces at the "outer level." We can also more easily avoid doubled blank lines. Performance is significantly better as well. * Removed Text.Pandoc.Blocks. Text.Pandoc.Pretty allows you to define blocks and concatenate them. * Modified markdown, RST, org readers to use Text.Pandoc.Pretty instead of Text.PrettyPrint.HughesPJ. * Text.Pandoc.Shared: Added writerColumns to WriterOptions. * Markdown, RST, Org writers now break text at writerColumns. * Added --columns command-line option, which sets stColumns and writerColumns. * Table parsing: If the size of the header > stColumns, use the header size as 100% for purposes of calculating relative widths of columns.
43 lines
No EOL
1.1 KiB
Text
43 lines
No EOL
1.1 KiB
Text
# Pandoc with citeproc-hs
|
||
|
||
- [@nonexistent]
|
||
|
||
- @nonexistent
|
||
|
||
- Doe (2005) says blah.
|
||
|
||
- Doe (2005, 30) says blah.
|
||
|
||
- Doe (2005, 30, with suffix) says blah.
|
||
|
||
- Doe (2005; 2006, 30; see also Doe and Roe 2007) says blah.
|
||
|
||
- In a note.[^1]
|
||
|
||
- A citation group (see Doe 2005, 34–35; also Doe and Roe 2007, chap. 3).
|
||
|
||
- Another one (see Doe 2005, 34–35).
|
||
|
||
- And another one in a note.[^2]
|
||
|
||
- Citation with a suffix and locator (Doe 2005, 33, 35–37, and nowhere else).
|
||
|
||
- Citation with suffix only (Doe 2005, and nowhere else).
|
||
|
||
- Now some modifiers.[^3]
|
||
|
||
- With some markup (*see* Doe 2005, 32).
|
||
|
||
# References
|
||
|
||
Doe, John. 2005. *First Book*. Cambridge: Cambridge University Press.
|
||
|
||
---. 2006. Article. *Journal of Generic Studies* 6: 33–34.
|
||
|
||
Doe, John, and Jenny Roe. 2007. Why Water Is Wet. In *Third Book*, ed. Sam Smith. Oxford: Oxford University Press.
|
||
|
||
[^1]: A citation without locators (Doe and Roe 2007).
|
||
|
||
[^2]: Some citations (see Doe 2006, chap. 3; Doe and Roe 2007; Doe 2005).
|
||
|
||
[^3]: Like a citation without author: (2005), and now Doe with a locator (2006, 44). |