New answers tagged

2

The tex4ebook compilation process is following: tex4ebook is Lua script, which is called using texlua, interpreter distributed with TeX distributions. It prepares compilation parameters and load compilation module for specified output format. Each module has functions for preparing, executing and finalizing the compilation. basic output module is ...


2

This seems like a bug in configuration for scrartcl in tex4ht. At the bottom of scrartcl.4ht, there is this configuration: \pend:defI\@makefntext{\IgnorePar} this put \IgnorePar at the beginning of \@makefntext macro by redefining it. Unfortunately, this redefinition uses normal \def, which causes compilation error when the argument contains paragraph. It ...


1

I found the problem. The image had resolution of 32767.00 pixels per inch. Changing it to 300 pixels/inch and compiling with tex4ht, same command, same latex file, now there is no error: >rm *.xbb rm: cannot remove ‘*.xbb’: No such file or directory >cat foo.tex \documentclass[11pt]{scrbook}% \IfFileExists{luatex85.sty}{\usepackage{luatex85}}{} ...


2

You would get that just using latex, nothing to do with tex4ht, latex gives the warning that you quote Cannot determine size of graphic in image.xbb It has no information about the original size of the image so sets it to zero, so scaling then fails.


1

You can use \Hnewline, which works only inside \HCode command for newline insertion. I would modify your code to be more portable, it won't compile to PDF as it is, furthermore, it causes compilation error even with tex4ht \documentclass[12pt,a4paper,notitlepage,german,twoside]{book}% \usepackage{amssymb} \usepackage{graphicx} \usepackage{amsmath} \...


1

some babel language definition files make some characters active in order to enable shorthands, which are used for inserting some special codes. If you don't use these shorthands, you can disable them using \shorthandoff{"} command issued after \begin{document}. BTW, it is better to not use \HCode commands inside your document, as it doesn't work in ...


3

It seems like an error in how tex4ht detects font sizes and converts them to css declarations. It is done by tex4ht command, so I don't really know and don't understand how it works, but the following test seems interesting: {\ttfamily\tiny IllustratingTheUseOfDiscreteDistributions \itshape ojoj} {\ttfamily\footnotesize ...


3

I think this might be helpful. The \tableofcontents used in the TeX file is now commented as this cause the duplication of the Contents title in the frame. The modified TeX file is given below: \documentclass{book} %\usepackage[latin1]{inputenc} \usepackage{inputenc} \usepackage[english]{babel} \pdfcompresslevel=9 \usepackage{minitoc} \begin{document} \...


-1

The way it can be done is shown there Trouble building a site with frames using Tex4ht.


6

Hyphen character is made active by \ScriptEnv command, which means that it calls a command when it is encountered in the environment defined with it. The ScriptEnv definition is little bit cryptic: \bgroup \catcode`\-=13 \catcode`\(=1 \catcode`\)=2 \catcode`\/=0 \catcode`\{=12 \catcode`\}=12 \catcode`\\=12 /gdef/ScriptEnv#1(% /expandafter/...


5

The convertor from DVI to HTML doesn't support OpenType fonts, which is automatically selected when the Fontspec package is loaded. This is well known tex4ht bug and also one which is hardest to fix. There are two possible workarounds, both of them require modification of the document, unfortunately. First is to use conditionally luainputenc package: \...


0

There is no standard way to do it in tex4ht, but it is possible to do it using some hacks. Try the following configuration file: \Preamble{xhtml} % \TocAt{likechapter,chapter,likesection,section,likesubsubsection,subsection} \makeatletter \def\getsection#1{ \expandafter\def\csname toc#1\endcsname##1##2##3{ \edef\@tempa{##1} \edef\@tempb{\csname the#...


2

tex4ht doesn't think that adjustbox uses math mode. adjustbox uses math mode internally, at least with your options. there is no configuration for adjustbox for tex4ht. some basic configuration, which just resets adjustbox environment and prints some basic HTML structure which can be styled using CSS, may look like this: % adjustbox.4ht \renewenvironment{...



Top 50 recent answers are included