# Tag Info

5

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{...

2

Sure, you can disable generating of such classes with \NoFonts ... \EndNoFonts command: \Preamble{xhtml} \Configure{textit}{\HCode{<span class="italic">}\NoFonts}{\EndNoFonts\HCode{</span>}} \Configure{textbf}{\HCode{<span class="bold">}\NoFonts}{\EndNoFonts\HCode{</span>}} \Css{.bold{font-weight:bold;}} \Css{.italic{font-style:...

4

\^^M is just a complicated way of writing 13, so if you do not want to disable tex4ht's use of ^ then you could use \catcode13=12

5

It seems that \^^M clashes with ^ which is redefined by tex4ht to produce superscripts. You can try to disable it using no^ command line option: make4ht -l foo6.tex no^

5

Just update to the latest version of luatex85 package and remove: \edef\pdfcreationdate{\pdffeedback creationdate} \pdfcreationdate is (now) defined in a way compatible with dviluatex.

4

The file /usr/local/texlive/2016/texmf-dist/tex/generic/tex4ht/html4.4ht contains a spurious character <A0> in line 1267 1265 \let\sv:etoc\e:tableofcontents 1266 % 1267 <A0>\Configure{tableofcontents} 1268 {\IgnorePar\EndP\HCode{<div class="\sec:typ TOCS">}\IgnorePar} The output was obtained with LESSCHARSET=ascii less -...

4

It is possible to redefine \bigskip to produce empty paragraph with some height. The problem is that \bigskip etc. is used internally in some LaTeX commands and environments, so it could break quite a lot of configurations. It is best to suppress it by default. I would use custom spacing commands instead. % myspaces.sty \newcommand\mybigskip{\bigskip} \...

3

You can insert a paragraph containing a blank space ~ which will be converted to the equivalent of &nbsp;. PDF: HTML: \documentclass{article} \usepackage{longtable} \begin{document} \begin{longtable}{|p{.5\textwidth}|} \hline test \\ \hline \end{longtable} ~ \begin{longtable}{|p{.5\textwidth}|} \hline test \\ \hline \end{...

3

Here is a way using moreverb package: \documentclass[12pt]{book}% \usepackage[T1]{fontenc} \usepackage{color} \usepackage{listings} \usepackage{tcolorbox} \tcbuselibrary{listings} \usepackage{matlab-prettifier} \definecolor{bg}{RGB}{240,240,240} \usepackage{upquote} %to fix string quotes \newtcblisting{matlab}[1]{ nobeforeafter,colback=bg,listing only, ...

4

Why can't you just use a new listings environment since you are loading it anyway, for the tex4ht case? \documentclass[12pt]{book}% \usepackage[T1]{fontenc} \usepackage{color} \usepackage{listings} \usepackage{matlab-prettifier} \definecolor{bg}{RGB}{240,240,240} \usepackage{upquote} %to fix string quotes \usepackage{fancyvrb} \ifdefined\HCode \...

Top 50 recent answers are included