From 0446755d9f93d095627779097695fa3468811b93 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 10 Jan 2019 22:21:28 +0000 Subject: tex4ebook (10jan19) git-svn-id: svn://tug.org/texlive/trunk@49665 c570f23f-e606-0410-a88d-b1316a301751 --- .../texlive/linked_scripts/tex4ebook/tex4ebook | 41 ++++++++++++++-------- 1 file changed, 27 insertions(+), 14 deletions(-) (limited to 'Build') 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 - (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 + + (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 -- cgit v1.2.3