Removed deprecated -C/--custom-header option.

Use --template instead.
This commit is contained in:
John MacFarlane 2010-12-11 00:22:34 -08:00
parent f5c2082304
commit c6b79d794e
10 changed files with 0 additions and 54 deletions

7
README
View file

@ -336,11 +336,6 @@ Options
repeatedly to include multiple files. They will be included in the
order specified. Implies `--standalone`.
`-C` *FILE*, `--custom-header=`*FILE*
: Use contents of *FILE* as the document header. Implies `--standalone`.
*Note: This option is deprecated. Users should transition to using
`--template` instead.*
`--reference-odt=`*FILE*
: Use the specified file as a style reference in producing an ODT.
For best results, the reference ODT should be a modified version
@ -486,8 +481,6 @@ To write a literal `$` in a template, use `$$`.
Some variables are set automatically by pandoc. These vary somewhat
depending on the output format, but include:
`legacy-header`
: contents specified by `-C/--custom-header`
`header-includes`
: contents specified by `-H/--include-in-header` (may have multiple
values)

View file

@ -71,10 +71,6 @@ packages are not included in your latex setup, they can be obtained from
-A *FILE*, \--include-after-body=*FILE*
: Include (LaTeX) contents of *FILE* at the end of the document body.
-C *FILE*, \--custom-header=*FILE*
: Use contents of *FILE* as the document header. *Note: This option is
deprecated. Users should transition to using `--template` instead.*
\--bibliography=*FILE*
: Specify bibliography database to be used in resolving
citations. The database type will be determined from the

View file

@ -409,16 +409,6 @@ options =
"FILENAME")
"" -- "File to include after document body"
, Option "C" ["custom-header"]
(ReqArg
(\arg opt -> do
text <- UTF8.readFile arg
let newVars = ("legacy-header", text) : optVariables opt
return opt { optVariables = newVars
, optStandalone = True })
"FILENAME")
"" -- "File to use for custom header (implies -s)"
, Option "T" ["title-prefix"]
(ReqArg
(\arg opt -> do
@ -635,13 +625,6 @@ main = do
mapM_ (\arg -> UTF8.hPutStrLn stdout arg) args
exitWith ExitSuccess
-- warn about deprecated options
case lookup "legacy-header" variables of
Just _ -> UTF8.hPutStrLn stderr $
"Warning: The -C/--custom-header is deprecated.\n" ++
"Please transition to using --template instead."
Nothing -> return ()
let sources = if ignoreArgs then [] else args
datadir <- case mbDataDir of

View file

@ -1,6 +1,3 @@
$if(legacy-header)$
$legacy-header$
$else$
\enableregime[utf] % use UTF-8
\setupcolors[state=start]
@ -52,7 +49,6 @@ after={\blank[medium]},
]
\protect
$endif$
$for(header-includes)$
$header-includes$
$endfor$

View file

@ -1,10 +1,6 @@
$if(legacy-header)$
$legacy-header$
$else$
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
$endif$
<article>
<articleinfo>
<title>$title$</title>

View file

@ -1,6 +1,3 @@
$if(legacy-header)$
$legacy-header$
$else$
\documentclass$if(fontsize)$[$fontsize$]$endif${article}
\usepackage{amssymb,amsmath}
$if(xetex)$
@ -20,7 +17,6 @@ $if(lhs)$
\usepackage{listings}
\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
$endif$
$endif$
$if(verbatim-in-note)$
\usepackage{fancyvrb}
$endif$

View file

@ -1,6 +1,3 @@
$if(legacy-header)$
$legacy-header$
$endif$
$for(include-before)$
$include-before$

View file

@ -1,10 +1,6 @@
$if(legacy-header)$
$legacy-header$
$else$
{\rtf1\ansi\deff0{\fonttbl{\f0 \fswiss Helvetica;}{\f1 Courier;}}
{\colortbl;\red255\green0\blue0;\red0\green0\blue255;}
\widowctrl\hyphauto
$endif$
$for(header-includes)$
$header-includes$
$endfor$

View file

@ -1,9 +1,5 @@
$if(legacy-header)$
$legacy-header$
$else$
\input texinfo
@documentencoding utf-8
$endif$
$for(header-includes)$
$header-includes$
$endfor$

View file

@ -1,6 +1,3 @@
$if(legacy-header)$
$legacy-header$
$endif$
$for(include-before)$
$include-before$