summaryrefslogtreecommitdiff
path: root/Build/source/texk/texlive
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-01-10 22:21:28 +0000
committerKarl Berry <karl@freefriends.org>2019-01-10 22:21:28 +0000
commit0446755d9f93d095627779097695fa3468811b93 (patch)
tree31b8f58994f6d3c32a58fb54e238ee0472646543 /Build/source/texk/texlive
parent8368bb1a1e80c128b441a121a8fda08f0e32d5ae (diff)
tex4ebook (10jan19)
git-svn-id: svn://tug.org/texlive/trunk@49665 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/texlive')
-rwxr-xr-xBuild/source/texk/texlive/linked_scripts/tex4ebook/tex4ebook41
1 files changed, 27 insertions, 14 deletions
diff --git a/Build/source/texk/texlive/linked_scripts/tex4ebook/tex4ebook b/Build/source/texk/texlive/linked_scripts/tex4ebook/tex4ebook
index b6ac969b50c..9e396ffc3f8 100755
--- a/Build/source/texk/texlive/linked_scripts/tex4ebook/tex4ebook
+++ b/Build/source/texk/texlive/linked_scripts/tex4ebook/tex4ebook
@@ -27,19 +27,31 @@ local include_fonts = false
local arg_message = [[
tex4ebook - ebook generation support for LaTeX
Usage:
-tex4ebook [switches] filename ["tex4ht.sty op." "tex4ht op." "t4ht op" "latex op"]
--c,--config (default xhtml) Custom config file
--e,--build-file (default nil) If build file is different than `filename`.mk4
--f,--format (default epub) Output format. Supported values: epub, epub3, mobi
--h,--help Display help message
--l,--lua Runs htlualatex instead of htlatex
--m,--mode (default default) Switch which can be used in the makefile
--r,--resolution (default 167)
--s,--shell-escape Enable shell escape in htlatex run
--t,--tidy Run html tidy on html output. May result in wrong spacing!
--v,--version Display version number
--x,--xetex Use xelatex for document compilation
-<filename> (string) Input file name
+tex4ebook [switches] filename ["tex4ht.sty op."] ["tex4ht op."] ["t4ht op"] ["latex op"]
+ -c,--config (default xhtml) Custom config file
+ -d,--output-dir (default nil) Output directory
+ -e,--build-file (default nil) If build file is different than `filename`.mk4
+ -f,--format (default epub) Output format. Supported values: epub, epub3, mobi
+ -h,--help Display help message
+ -l,--lua Use lualatex for document compilation
+ -m,--mode (default default) Switch which can be used in the makefile
+ -r,--resolution (default 167)
+ -s,--shell-escape Enable shell escape in htlatex run
+ -t,--tidy Run html tidy on html output. May result in wrong spacing!
+ -v,--version Display version number
+ -x,--xetex Use xelatex for document compilation
+
+ <filename> (string) Input file name
+
+Positional optional argumens:
+ ["tex4ht.sty op."] Additional parameters for tex4ht.sty
+ ["tex4ht op."] Options for tex4ht command
+ ["t4ht op"] Options for t4ht command
+ ["latex op"] Additional options for LaTeX
+
+Documentation: https://tug.org/applications/tex4ht/mn.html
+Issue tracker for tex4ht bugs: https://puszcza.gnu.org.ua/bugs/?group=tex4ht
+Issue tracker for tex4ebook bugs: https://github.com/michal-h21/tex4ebook/issues
]]
-- This option is no longer available, all files must be unicode
@@ -54,7 +66,7 @@ else
end
if args.version then
- print "tex4ebook v0.2a"
+ print "tex4ebook v0.2b"
return
end
@@ -111,6 +123,7 @@ end--]]
--print ("nazdar ${world}" % {world="svete"})
--print(args.config)
+
local input = ebookutils.remove_extension(input_file)
local config=ebookutils.remove_extension(args.config)
-- local tex4ht_sty_par = config ..tex4ht_sty_par..","+args.format