# Tag Info

2

Since defined \titleformat cannot be used in html format directly anyway, I think it would be in your case best to use usual solution for unsupported visual commands with tex4ht - use conditional processing: \documentclass[10pt]{book} \usepackage{titlesec} \usepackage{titletoc} \ifx\HCode\undefined \titleformat{\section}[block]{}{\thesection.}{50pt}{} ...

1

Based on the response from @michal I was able to find a work-around for this. I took the .svg files generated by tex4ht and renamed them. I copied the HTML to insert the SVG from the .html output of tex4ht. I then used a conditional to put the HTML in by hand. (I did round off the dimensions to the nearest pixel, rather than the 4 or so (!) decimal ...

3

It's been a long time, but I think to have found the issue. In several places of mathltx.4ht there are \mathchar"<number> without a space at the end. In particular the problem seems to be in line 1142: 1141 \def\:tempd#1#2{% 1142 \expandafter\def\csname #1\endcsname{\mathchar"13#2}% 1143 \MathSymbol\mathop{#1}% 1144 \expandafter\def\csname ...

3

Output redirection is obtained by adding > <file> to the command line. So htlatex "other options..." "--interaction=nonstopmode" > filename will record the session in filename. This works on Unix shells and also with the Windows command line interface. If no record is needed, use > /dev/null instead of > filename on Unix systems and ...

3


3

Use \textsc and not the deprecated command \sc: \documentclass[10pt]{book} \usepackage{hyperref} \begin{document} This renders correctly'' \textsc{Do small caps break it?} No'' \hyperlink{a}{How about hyperlinks?} No'' \hyperlink{a}{\textsc{But... small caps inside hyperlinks}} make everything afterwards render as small caps, and break the ...

0

As I point out in the text above, inserting a \normalfont at the end of the hyperlink text works around this bug. I would welcome other answers.

5

The syntax is not \ifx<firsttoken><secondtoken>{<true code>}\else{<false code>}\fi The correct one is \ifx<firsttoken><secondtoken><true code>\else<false code>\fi So you can remove the braces around {#1} and {#2} (which, in the case of \usepackage{fontspec} act as a group delimiter).

1

I had success at opening your document with Word 2010. First of all, I converted document to odt format. Because you don't have mk4ht command available, you need to use following htlatex call: htlatex test.tex "xhtml,ooffice" "ooffice/! -cmozhtf" "-cooxtpipes -coo" all these parameters are necessary, they are used in postprocessing of the xml file with ...

1

TeX4ht does work under MiKTeX 2.9 for Windows 7, although equations are often converted into bitmap pictures rather than MathML, unless the option "html,mathml" is used with the htlatex command. Here's what I did: Installed MiKTeX 2.9 with both miktex-tex4ht-bin-2.9 and miktex-tex4ht-base-2.9 installed with the package manager in administrator mode, on ...

Top 50 recent answers are included