diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2010-01-14 05:54:38 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2010-01-14 05:54:38 +0000 |
commit | eb851a41ca8e7b045a483837e676d31de21efe95 (patch) | |
tree | c8df76905cff5a9ffecbcdec85321e5851685006 /README | |
parent | 385dcb116c4f192416228f637a45e9a1392cd172 (diff) |
Added --data-dir option.
+ This specifies a user data directory. If not specified, will default
to ~/.pandoc on unix or Application Data\pandoc on Windows.
Files placed in the user data directory will override system default
data files.
+ Added datadir parameter to readDataFile, saveOpenDocumentAsODT,
latexMathMLScript, s5HeaderIncludes, and getTemplate. Removed
getDefaultTemplate.
+ Updated documentation.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1809 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'README')
-rw-r--r-- | README | 55 |
1 files changed, 24 insertions, 31 deletions
@@ -330,16 +330,9 @@ For further documentation, see the `pandoc(1)` man page. of an ODT produced using pandoc. The contents of the reference ODT are ignored, but its stylesheets are used in the new ODT. If no reference ODT is specified on the command line, pandoc will look - for a file `reference.odt` in - - $HOME/.pandoc - - (on unix) or - - C:\Documents And Settings\USERNAME\Application Data\pandoc - - (on Windows). If this is not found either, sensible defaults will be - used. + for a file `reference.odt` in the user data directory (see + `--data-dir`, below). If it is not found there, sensible defaults + will be used. `-D` or `--print-default-template` *format* : prints the default template for an output *format*. (See `-t` @@ -432,6 +425,20 @@ For further documentation, see the `pandoc(1)` man page. `perl,numberLines` or `haskell`. Multiple classes may be separated by spaces or commas. +`--data-dir`*=directory* +: specifies the user data directory to search for pandoc data files. + If this option is not specified, the default user data directory + will be used: + + $HOME/.pandoc + + in unix and + + C:\Documents And Settings\USERNAME\Application Data\pandoc + + in Windows. A reference ODT, `templates` directory, `s5` directory + placed in this directory will override pandoc's normal defaults. + `--dump-args` : is intended to make it easier to create wrapper scripts that use Pandoc. It causes Pandoc to dump information about the arguments @@ -483,15 +490,8 @@ document. To see the default template that is used, just type where `FORMAT` is the name of the output format. A custom template can be specified using the `--template` option. You can also override the system default templates for a given output format `FORMAT` -by putting a file `FORMAT.template` in - - $HOME/.pandoc/templates - -(on unix) or - - C:\Documents And Settings\USERNAME\Application Data\pandoc\templates - -(on Windows). +by putting a file `templates/FORMAT.template` in the user data +directory (see `--data-dir`, above). Templates may contain *variables*. Variable names are sequences of alphanumerics, `-`, and `_`, starting with a letter. A variable name @@ -1231,18 +1231,11 @@ Alternatively, you may use `-s` together with the `--template` option to specify a custom template. You can change the style of the slides by putting customized CSS files -in - - $HOME/.pandoc/s5/default - -(on unix) or - - C:\Documents And Settings\USERNAME\Application Data\pandoc\reference.odt - -(on Windows). The originals may be found in pandoc's system -data directory (generally `$CABALDIR/pandoc-VERSION/s5/default`). -Pandoc will look there for any files it does not find in the user's -pandoc data directory. +in `$DATADIR/s5/default`, where `$DATADIR` is the user data directory +(see `--data-dir`, above). The originals may be found in pandoc's system +data directory (generally `$CABALDIR/pandoc-VERSION/s5/default`). Pandoc +will look there for any files it does not find in the user data +directory. Literate Haskell support ======================== |