parent
5a7c748db3
commit
f56aa4037b
@ -1,17 +0,0 @@
|
|||||||
--- pandoc-1.8.2.1/src/markdown2pdf.hs~ 2011-08-02 03:02:52.000000000 +0900
|
|
||||||
+++ pandoc-1.8.2.1/src/markdown2pdf.hs 2011-12-22 12:08:02.528735085 +0900
|
|
||||||
@@ -173,8 +173,12 @@
|
|
||||||
|
|
||||||
saveOutput :: FilePath -> FilePath -> IO ()
|
|
||||||
saveOutput input output = do
|
|
||||||
- copyFile (encodeString input) (encodeString output)
|
|
||||||
- UTF8.hPutStrLn stderr $! "Created " ++ output
|
|
||||||
+ inExists <- doesFileExist (encodeString input)
|
|
||||||
+ when inExists $
|
|
||||||
+ copyFile (encodeString input) (encodeString output)
|
|
||||||
+ outExists <- doesFileExist (encodeString input)
|
|
||||||
+ when outExists $
|
|
||||||
+ UTF8.hPutStrLn stderr $! "Created " ++ output
|
|
||||||
|
|
||||||
main :: IO ()
|
|
||||||
main = bracket
|
|
@ -1,59 +1,23 @@
|
|||||||
diff -u pandoc-1.9.2/templates/default.latex\~ pandoc-1.9.2/templates/default.latex
|
diff -u pandoc-1.9.4.1/templates/default.latex\~ pandoc-1.9.4.1/templates/default.latex
|
||||||
--- pandoc-1.9.2/templates/default.latex~ 2012-04-06 05:13:56.000000000 +0900
|
--- pandoc-1.9.4.1/templates/default.latex~ 2012-06-09 05:53:31.000000000 +0900
|
||||||
+++ pandoc-1.9.2/templates/default.latex 2012-04-25 13:20:25.024947625 +0900
|
+++ pandoc-1.9.4.1/templates/default.latex 2012-06-10 21:43:32.321646301 +0900
|
||||||
@@ -1,6 +1,7 @@
|
@@ -2,16 +2,16 @@
|
||||||
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$lang$,$endif$]{$documentclass$}
|
\usepackage[T1]{fontenc}
|
||||||
|
\usepackage{lmodern}
|
||||||
\usepackage{amssymb,amsmath}
|
\usepackage{amssymb,amsmath}
|
||||||
-\usepackage{ifxetex,ifluatex}
|
-\usepackage{ifxetex,ifluatex}
|
||||||
+%\usepackage{ifxetex,ifluatex}
|
|
||||||
+\usepackage{ifxetex}
|
+\usepackage{ifxetex}
|
||||||
\ifxetex
|
\usepackage{fixltx2e} % provides \textsubscript
|
||||||
\usepackage{fontspec,xltxtra,xunicode}
|
% use microtype if available
|
||||||
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
|
\IfFileExists{microtype.sty}{\usepackage{microtype}}{}
|
||||||
@@ -18,28 +19,28 @@
|
-\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
|
||||||
\setmathfont{$mathfont$}
|
+\ifnum 0\ifxetex 1\fi=0 % if pdftex
|
||||||
$endif$
|
|
||||||
\else
|
|
||||||
- \ifluatex
|
|
||||||
- \usepackage{fontspec}
|
|
||||||
- \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
|
|
||||||
- \newcommand{\euro}{€}
|
|
||||||
-$if(mainfont)$
|
|
||||||
- \setmainfont{$mainfont$}
|
|
||||||
-$endif$
|
|
||||||
-$if(sansfont)$
|
|
||||||
- \setsansfont{$sansfont$}
|
|
||||||
-$endif$
|
|
||||||
-$if(monofont)$
|
|
||||||
- \setmonofont{$monofont$}
|
|
||||||
-$endif$
|
|
||||||
-$if(mathfont)$
|
|
||||||
- \setmathfont{$mathfont$}
|
|
||||||
-$endif$
|
|
||||||
- \else
|
|
||||||
+% \ifluatex
|
|
||||||
+% \usepackage{fontspec}
|
|
||||||
+% \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
|
|
||||||
+% \newcommand{\euro}{€}
|
|
||||||
+%$if(mainfont)$
|
|
||||||
+% \setmainfont{$mainfont$}
|
|
||||||
+%$endif$
|
|
||||||
+%$if(sansfont)$
|
|
||||||
+% \setsansfont{$sansfont$}
|
|
||||||
+%$endif$
|
|
||||||
+%$if(monofont)$
|
|
||||||
+% \setmonofont{$monofont$}
|
|
||||||
+%$endif$
|
|
||||||
+%$if(mathfont)$
|
|
||||||
+% \setmathfont{$mathfont$}
|
|
||||||
+%$endif$
|
|
||||||
+% \else
|
|
||||||
\usepackage[utf8]{inputenc}
|
\usepackage[utf8]{inputenc}
|
||||||
$if(euro)$
|
$if(euro)$
|
||||||
\usepackage{eurosym}
|
\usepackage{eurosym}
|
||||||
$endif$
|
$endif$
|
||||||
- \fi
|
-\else % if luatex or xelatex
|
||||||
+% \fi
|
+\else % if xelatex
|
||||||
\fi
|
\usepackage{fontspec}
|
||||||
$if(geometry)$
|
\ifxetex
|
||||||
\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
|
\usepackage{xltxtra,xunicode}
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
--- pandoc-1.8.2.1/pandoc.cabal~ 2011-08-02 03:02:52.000000000 +0900
|
|
||||||
+++ pandoc-1.8.2.1/pandoc.cabal 2012-01-26 11:44:45.097493599 +0900
|
|
||||||
@@ -168,7 +168,7 @@
|
|
||||||
Default: True
|
|
||||||
Flag highlighting
|
|
||||||
Description: Compile in support for syntax highlighting of code blocks.
|
|
||||||
- Default: False
|
|
||||||
+ Default: True
|
|
||||||
Flag executable
|
|
||||||
Description: Build the pandoc executable.
|
|
||||||
Default: True
|
|
Loading…
Reference in new issue