diff options
author | John MacFarlane <jgm@berkeley.edu> | 2011-01-16 08:57:32 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2011-01-16 08:58:29 -0800 |
commit | 9721b87c26861fd9495cd0697fe79c6b1b5e6211 (patch) | |
tree | 62c885c0e9fe7d2c382f72a12c4851563d42bd97 /src/Text/Pandoc/Shared.hs | |
parent | 53eb2c4828d09fa00dce327f0b69e252287d82ca (diff) | |
download | pandoc-9721b87c26861fd9495cd0697fe79c6b1b5e6211.tar.gz |
Added --chapters option affecting docbook and latex.
* Added writerChapters to WriterOptions.
* Added --chapters command-line option.
* --chapters causes top-level headers to be "chapter" instead of
"section" in LaTeX and DocBook.
* Resolves Issue #225.
Diffstat (limited to 'src/Text/Pandoc/Shared.hs')
-rw-r--r-- | src/Text/Pandoc/Shared.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Shared.hs b/src/Text/Pandoc/Shared.hs index f757f4479..81c552e41 100644 --- a/src/Text/Pandoc/Shared.hs +++ b/src/Text/Pandoc/Shared.hs @@ -482,6 +482,7 @@ data WriterOptions = WriterOptions , writerCiteMethod :: CiteMethod -- ^ How to print cites , writerBiblioFiles :: [FilePath] -- ^ Biblio files to use for citations , writerHtml5 :: Bool -- ^ Produce HTML5 + , writerChapters :: Bool -- ^ Use "chapter" for top-level sects } deriving Show -- | Default writer options. @@ -512,6 +513,7 @@ defaultWriterOptions = , writerCiteMethod = Citeproc , writerBiblioFiles = [] , writerHtml5 = False + , writerChapters = False } -- |