diff options
author | Karl Berry <karl@freefriends.org> | 2017-04-28 21:21:37 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-04-28 21:21:37 +0000 |
commit | 37dfda47fe844c888a24fb8cc380d34139dca9f4 (patch) | |
tree | a1a1d9dc047773102a07f939e2ada149f00fb179 /Master/texmf-dist/doc/support/tex4ebook | |
parent | eda997681c2c45b147792fe2f546e45150447197 (diff) |
tex4ebook (28apr17)
git-svn-id: svn://tug.org/texlive/trunk@44103 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/support/tex4ebook')
-rw-r--r-- | Master/texmf-dist/doc/support/tex4ebook/README | 59 | ||||
-rw-r--r-- | Master/texmf-dist/doc/support/tex4ebook/changelog.tex | 98 | ||||
-rw-r--r-- | Master/texmf-dist/doc/support/tex4ebook/readme.tex | 26 | ||||
-rw-r--r-- | Master/texmf-dist/doc/support/tex4ebook/tex4ebook-doc.pdf | bin | 67170 -> 69209 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/support/tex4ebook/tex4ebook-doc.tex | 3 | ||||
-rw-r--r-- | Master/texmf-dist/doc/support/tex4ebook/tidyconf.conf | 4 |
6 files changed, 153 insertions, 37 deletions
diff --git a/Master/texmf-dist/doc/support/tex4ebook/README b/Master/texmf-dist/doc/support/tex4ebook/README index 2514a630aca..2314aa3478b 100644 --- a/Master/texmf-dist/doc/support/tex4ebook/README +++ b/Master/texmf-dist/doc/support/tex4ebook/README @@ -50,7 +50,7 @@ but it is optional. You shouldn't need to modify your \TeX\ files # Command line options --c,--config +`-c,--config` : specify custom config file for `tex4ht` @@ -69,48 +69,48 @@ but it is optional. You shouldn't need to modify your \TeX\ files This config file will create `xhtml` file for every section. Note that this behaviour is default. --e,--build-file (default nil) +`-e,--build-file (default nil)` -: Specify make4ht build file^[\url{https://github.com/michal-h21/make4ht\#build-file}]. +: Specify make4ht build file^[https://github.com/michal-h21/make4ht#build-file]. Defaulf build file filename is `filename.mk4`, use this option if you use different filename. --f,--format (default epub) +`-f,--format (default epub)` : Output format. epub, epub3 and mobi are supported. --l,--lua +`-l,--lua` : Runs htlualatex instead of htlatex. --m,--mode (default default) +`-m,--mode (default default)` : This set `mode` variable, accessible in the build file. Default supported values are `default` and `draft`. In `draft` mode, document is compiled only once, instead of three times. --r,--resolution +`-r,--resolution` : Resolution of generated images, for example math. It should meet resolution of target devices, which is usually about 167 ppi. --s,--shell-escape +`-s,--shell-escape` : Enable shell escape in htlatex run. This may be needed if you run external commands from your source files. --t,--tidy +`-t,--tidy` : process output html files with `HTML tidy` command^[It needs to be installed separately]. --v,--version +`-v,--version` : print version number # Configuration -`tex4ebook` uses `tex4ht`^[\url{http://www.tug.org/tex4ht/}] for conversion from LaTeX +`tex4ebook` uses `tex4ht`^[http://www.tug.org/tex4ht/] for conversion from LaTeX to html. `tex4ht` is highly configurable using config files. Basic config file structure is @@ -121,20 +121,20 @@ structure is \EndPreamble Basic info about command configurations can be found in a work-in-progres - *tex4ht tutorial*^[\url{https://github.com/michal-h21/helpers4ht/wiki/tex4ht-tutorial}] -, *tex4ht documentation*^[\url{http://www.tug.org/applications/tex4ht/mn11.html}], + *tex4ht tutorial*^[https://github.com/michal-h21/helpers4ht/wiki/tex4ht-tutorial] +, *tex4ht documentation*^[http://www.tug.org/applications/tex4ht/mn11.html], and in series of blogposts on CV Radhakrishnan's blog: -*Configure part 1*^[\url{http://www.cvr.cc/?p=323}], -*Configure part 2*^[\url{http://www.cvr.cc/?p=362}], -*Low level commands*^[\url{http://www.cvr.cc/?p=482}]. +*Configure part 1*^[http://www.cvr.cc/?p=323], +*Configure part 2*^[http://www.cvr.cc/?p=362], +*Low level commands*^[http://www.cvr.cc/?p=482]. Available options for `\Preamble` command are listed in the article -*TeX4ht: options*^[\url{http://www.cvr.cc/?p=504}]. +*TeX4ht: options*^[http://www.cvr.cc/?p=504]. -Great source of tips for `tex4ht` configuring is *tex4ht tag on TeX.sx*^[\url{http://tex.stackexchange.com/questions/tagged/tex4ht}], there is also a *tag for tex4ebook*^[\url{http://tex.stackexchange.com/questions/tagged/tex4ebook}]. +Great source of tips for `tex4ht` configuring is *tex4ht tag on TeX.sx*^[http://tex.stackexchange.com/questions/tagged/tex4ht], there is also a *tag for tex4ebook*^[http://tex.stackexchange.com/questions/tagged/tex4ebook]. Examples of interesting questions are -*including images and fonts in ebooks*^[\url{http://tex.stackexchange.com/a/213165/2891}] -or *setting image size in em units instead of pt*^[\url{http://tex.stackexchange.com/a/195718/2891}]. +*including images and fonts in ebooks*^[http://tex.stackexchange.com/a/213165/2891] +or *setting image size in em units instead of pt*^[http://tex.stackexchange.com/a/195718/2891]. ## Provided configurations @@ -151,6 +151,11 @@ Default identifier is URI, with value `http://example.com/\jobname`. Type of unique identifier, default type is URI. It is used only in epub, it is deprecated for `epub3` + \Configure{resettoclevels}{list of section types in descending order} + +Configure section types which should be included in the `NCX` file. Default +value is the whole document hiearchy, from `\part` to `\paragraph`. + \Configure{DocumentLanguage}{language code} Each epub must declare the document language. It is inferred from `babel` main @@ -198,17 +203,17 @@ Add xml name space to `xhtml` files. Useful in `EPUB 3` `\OpfAddProperty{property type}` -: add `EPUB3` property for the current file. See *EPUB3 spec*^[\url{http://www.idpf.org/epub/301/spec/epub-publications.html\#sec-item-property-values}] +: add `EPUB3` property for the current file. See *EPUB3 spec*^[http://www.idpf.org/epub/301/spec/epub-publications.html#sec-item-property-values] `\OpfGuide[filename]{title}{type}` : Add file to the `<guide>` section in the `OPF` file. See *Where do you start an ePUB and what is the `<guide>` section of the .OPF - file?*^[\url{http://epubsecrets.com/where-do-you-start-an-epub-and-what-is-the-guide-section-of-the-opf-file.php}] + file?*^[http://epubsecrets.com/where-do-you-start-an-epub-and-what-is-the-guide-section-of-the-opf-file.php] for some details. Note that `<guide>` is deprecated in `EPUB 3`. ## Build files -`tex4ebook` uses `make4ht`^[\url{https://github.com/michal-h21/make4ht}] as a build +`tex4ebook` uses `make4ht`^[https://github.com/michal-h21/make4ht] as a build system. See `make4ht` documentation for details on build files. # Troubleshooting @@ -222,8 +227,8 @@ be caused by some problem in `tex4ht` configuration. Comment out line if same error as in `tex4ebook` run arises, the problem is in some `tex4ht` configuration. Try to identify the source of problem and if you cannot find the solution, make minimal example showing the error and ask for help either on -*tex4ht mailing list*^[\url{http://tug.org/mailman/listinfo/tex4ht}] or on -*TeX-sx*^[\url{http://tex.stackexchange.com/}]. +*tex4ht mailing list*^[http://tug.org/mailman/listinfo/tex4ht] or on +*TeX-sx*^[http://tex.stackexchange.com/]. ## Fontspec @@ -251,7 +256,7 @@ Sample: The drawback is that not all characters of the Unicode range are supported with `inputenc`. For some solutions of this limitation, see a thread on *tex4ht -mailing list*^[\url{http://tug.org/pipermail/tex4ht/2013q1/000719.html}] +mailing list*^[http://tug.org/pipermail/tex4ht/2013q1/000719.html] Other approach is to use `alternative4ht` package from [helpers4ht](https://github.com/michal-h21/helpers4ht) bundle. It works only with Lua backend, but it supports full unicode and you @@ -261,7 +266,7 @@ an [example](http://michal-h21.github.io/samples/helpers4ht/fontspec.html). ## Validation In case of successful compilation, use command line tool `epubcheck`^[you need -to install it separately, see \url{https://github.com/IDPF/epubcheck}] to check +to install it separately, see https://github.com/IDPF/epubcheck] to check whether your document doesn't contain any errors. diff --git a/Master/texmf-dist/doc/support/tex4ebook/changelog.tex b/Master/texmf-dist/doc/support/tex4ebook/changelog.tex index e280b766cac..1b59f20d4ad 100644 --- a/Master/texmf-dist/doc/support/tex4ebook/changelog.tex +++ b/Master/texmf-dist/doc/support/tex4ebook/changelog.tex @@ -2,6 +2,104 @@ \begin{itemize} \item + 27/04/2017 Version 0.1e + + \begin{itemize} + \itemsep1pt\parskip0pt\parsep0pt + \item + pack the accumulated changes for distribution + \item + set version number from git tag + \end{itemize} +\item + 17/01/2017 + + \begin{itemize} + \itemsep1pt\parskip0pt\parsep0pt + \item + process duplicate images only once + \item + check the OPF table for duplicated id attributes + \end{itemize} +\item + 11/01/2017 + + \begin{itemize} + \itemsep1pt\parskip0pt\parsep0pt + \item + pass \texttt{settings} table to the build file. + \end{itemize} +\item + 19/12/2016 + + \begin{itemize} + \itemsep1pt\parskip0pt\parsep0pt + \item + new configuration: + \texttt{\textbackslash{}Configure\{resettoclevels\}\{list of sectioning levels to be included in the NCX\}} + \end{itemize} +\item + 31/10/2016 + + \begin{itemize} + \itemsep1pt\parskip0pt\parsep0pt + \item + added tidyconf.conf to the Makefile + \end{itemize} +\item + 22/10/2016 + + \begin{itemize} + \itemsep1pt\parskip0pt\parsep0pt + \item + added support for new Make4ht command \texttt{Make:add\_file} + \end{itemize} +\item + 22/08/2016 + + \begin{itemize} + \itemsep1pt\parskip0pt\parsep0pt + \item + fixed incorrect \texttt{\textless{}dc:creator\textgreater{}} + generated by \texttt{\textbackslash{}author} + \item + clean ids in the OPF file if they contain invalid characters at the + beginning + \end{itemize} +\item + 31/07/2016 + + \begin{itemize} + \itemsep1pt\parskip0pt\parsep0pt + \item + use monospace font for command line options in order to prevent + double hyphens to become dashes by ligaturing + \end{itemize} +\item + 22/07/2016 + + \begin{itemize} + \itemsep1pt\parskip0pt\parsep0pt + \item + removed debugging message when \texttt{-{}-lua} option is used + \end{itemize} +\item + 07/04/2016 + + \begin{itemize} + \itemsep1pt\parskip0pt\parsep0pt + \item + Cut \texttt{\textbackslash{}part} commands to standalone pages + \end{itemize} +\item + 05/04/2016 + + \begin{itemize} + \itemsep1pt\parskip0pt\parsep0pt + \item + bug fix: pages which contained math were arranged before other pages + \end{itemize} +\item 31/03/2016 Version 0.1d \begin{itemize} diff --git a/Master/texmf-dist/doc/support/tex4ebook/readme.tex b/Master/texmf-dist/doc/support/tex4ebook/readme.tex index 01ea98348c3..e5078cfe866 100644 --- a/Master/texmf-dist/doc/support/tex4ebook/readme.tex +++ b/Master/texmf-dist/doc/support/tex4ebook/readme.tex @@ -64,7 +64,7 @@ but it is optional. You shouldn't need to modify your \TeX~files \begin{description} \itemsep1pt\parskip0pt\parsep0pt -\item[-c,--config] +\item[\texttt{-c,-{}-config}] specify custom config file for \texttt{tex4ht} \end{description} @@ -87,29 +87,29 @@ This config file will create \texttt{xhtml} file for every section. Note that this behaviour is default. \begin{description} -\item[-e,--build-file (default nil)] +\item[\texttt{-e,-{}-build-file (default nil)}] Specify make4ht build file\footnote{\url{https://github.com/michal-h21/make4ht\#build-file}}. Defaulf build file filename is \texttt{filename.mk4}, use this option if you use different filename. -\item[-f,--format (default epub)] +\item[\texttt{-f,-{}-format (default epub)}] Output format. epub, epub3 and mobi are supported. -\item[-l,--lua] +\item[\texttt{-l,-{}-lua}] Runs htlualatex instead of htlatex. -\item[-m,--mode (default default)] +\item[\texttt{-m,-{}-mode (default default)}] This set \texttt{mode} variable, accessible in the build file. Default supported values are \texttt{default} and \texttt{draft}. In \texttt{draft} mode, document is compiled only once, instead of three times. -\item[-r,--resolution] +\item[\texttt{-r,-{}-resolution}] Resolution of generated images, for example math. It should meet resolution of target devices, which is usually about 167 ppi. -\item[-s,--shell-escape] +\item[\texttt{-s,-{}-shell-escape}] Enable shell escape in htlatex run. This may be needed if you run external commands from your source files. -\item[-t,--tidy] +\item[\texttt{-t,-{}-tidy}] process output html files with \texttt{HTML tidy} command\footnote{It needs to be installed separately}. -\item[-v,--version] +\item[\texttt{-v,-{}-version}] print version number \end{description} @@ -165,6 +165,14 @@ Type of unique identifier, default type is URI. It is used only in epub, it is deprecated for \texttt{epub3} \begin{verbatim} +\Configure{resettoclevels}{list of section types in descending order} +\end{verbatim} + +Configure section types which should be included in the \texttt{NCX} +file. Default value is the whole document hiearchy, from +\texttt{\textbackslash{}part} to \texttt{\textbackslash{}paragraph}. + +\begin{verbatim} \Configure{DocumentLanguage}{language code} \end{verbatim} diff --git a/Master/texmf-dist/doc/support/tex4ebook/tex4ebook-doc.pdf b/Master/texmf-dist/doc/support/tex4ebook/tex4ebook-doc.pdf Binary files differindex 0bb5a6e8aba..55ff450ede8 100644 --- a/Master/texmf-dist/doc/support/tex4ebook/tex4ebook-doc.pdf +++ b/Master/texmf-dist/doc/support/tex4ebook/tex4ebook-doc.pdf diff --git a/Master/texmf-dist/doc/support/tex4ebook/tex4ebook-doc.tex b/Master/texmf-dist/doc/support/tex4ebook/tex4ebook-doc.tex index b354d948167..073d81d7ac2 100644 --- a/Master/texmf-dist/doc/support/tex4ebook/tex4ebook-doc.tex +++ b/Master/texmf-dist/doc/support/tex4ebook/tex4ebook-doc.tex @@ -11,10 +11,11 @@ \setmainfont{TeX Gyre Schola} \fi \usepackage{microtype} +\providecommand\tightlist{\relax} \title{The \texttt{tex4ebook} package} \author{Michal Hoftich\footnote{\url{michal.h21@gmail.com}}} -\date{Version 0.1d\\2016/03/31} +\date{Version \version\\\gitdate} \begin{document} \maketitle \tableofcontents diff --git a/Master/texmf-dist/doc/support/tex4ebook/tidyconf.conf b/Master/texmf-dist/doc/support/tex4ebook/tidyconf.conf new file mode 100644 index 00000000000..abac96362bd --- /dev/null +++ b/Master/texmf-dist/doc/support/tex4ebook/tidyconf.conf @@ -0,0 +1,4 @@ +show-warnings: no +numeric-entities:yes +new-inline-tags:span,a,math,mi, mo, mn ,abs ,and ,annotation ,annotation-xml ,apply ,approx ,arccos ,arccosh ,arccot ,arccoth ,arccsc ,arccsch ,arcsec ,arcsech ,arcsin ,arcsinh ,arctan ,arctanh ,arg ,bind ,bvar ,card ,cartesianproduct ,cbytes ,ceiling ,cerror ,ci ,cn ,codomain ,complexes ,compose ,condition ,conjugate ,cos ,cosh ,cot ,coth ,cs ,csc ,csch ,csymbol ,curl ,declare ,degree ,determinant ,diff ,divergence ,divide ,domain ,domainofapplication ,el ,emptyset ,eq ,equivalent ,eulergamma ,exists ,exp ,exponentiale ,factorial ,factorof ,false ,floor ,fn ,forall ,gcd ,geq ,grad ,gt ,ident ,image ,imaginary ,imaginaryi ,implies ,in ,infinity ,int ,integers ,intersect ,interval ,inverse ,lambda ,laplacian ,lcm ,leq ,limit ,list ,ln ,log ,logbase ,lowlimit ,lt ,maction ,malign ,maligngroup ,malignmark ,malignscope ,math ,matrix ,matrixrow ,max ,mean ,median ,menclose ,merror ,mfenced ,mfrac ,mfraction ,mglyph ,mi ,min ,minus ,mlabeledtr ,mlongdiv ,mmultiscripts ,mn ,mo ,mode ,moment ,momentabout ,mover ,mpadded ,mphantom ,mprescripts ,mroot ,mrow ,ms ,mscarries ,mscarry ,msgroup ,msline ,mspace ,msqrt ,msrow ,mstack ,mstyle ,msub ,msubsup ,msup ,mtable ,mtd ,mtext ,mtr ,munder ,munderover ,naturalnumbers ,neq ,none ,not ,notanumber ,note ,notin ,notprsubset ,notsubset ,or ,otherwise ,outerproduct ,partialdiff ,pi ,piece ,piecewise ,plus ,power ,primes ,product ,prsubset ,quotient ,rationals ,real ,reals ,reln ,rem ,root ,scalarproduct ,sdev ,sec ,sech ,selector ,semantics ,sep ,set ,setdiff ,share ,sin ,sinh ,subset ,sum ,tan ,tanh ,tendsto ,times ,transpose ,true ,union ,uplimit ,variance ,vector ,vectorproduct ,xor ,bdi ,command ,details ,dialog ,summary ,figure ,figcaption ,footer ,header ,mark ,meter ,progress ,ruby ,rt ,rp ,time ,wbr ,altGlyph ,altGlyphDef ,altGlyphItem ,animate ,animateColor ,animateMotion ,animateTransform ,circle ,clipPath ,color-profile ,cursor ,defs ,desc ,ellipse ,feBlend ,feColorMatrix ,feComponentTransfer ,feComposite ,feConvolveMatrix ,feDiffuseLighting ,feDisplacementMap ,feDistantLight ,feFlood ,feFuncA ,feFuncB ,feFuncG ,feFuncR ,feGaussianBlur ,feImage ,feMerge ,feMergeNode ,feMorphology ,feOffset ,fePointLight ,feSpecularLighting ,feSpotLight ,feTile ,feTurbulence ,filter ,font ,font-face ,font-face-format ,font-face-name ,font-face-src ,font-face-uri ,foreignObject ,g ,glyph ,glyphRef ,hkern ,image ,line ,linearGradient ,marker ,mask ,metadata ,missing-glyph ,mpath ,path ,pattern ,polygon ,polyline ,radialGradient ,rect ,script ,set ,stop ,style ,svg ,switch ,symbol ,text ,textPath ,title ,tref ,tspan ,use +new-blocklevel-tags: aside,section,article,nav |