Tag Info

New answers tagged

3

You need to use mathjax also for process \ref commands pointing to equations (not for ones pointing to sections or figures, which are still handled by LaTeX). As everything in math is handled by mathjax, a easiest solution is to use $\ref{label}$: This is the equation cross ref link Eq.~$\ref{eq1}$ The second problem is that equation is unnumbered by ...


6

It is possible to postprocess the html files using make4ht filters. We can find corresponding id attributes for labels in the aux file: \newlabel{invisible_figure}{{\rEfLiNK{x5-40011}{\csname :autoref\endcsname{figure}1}}{\rEfLiNK{x5-40011}{\csname :autoref\endcsname{figure}9}}{\rEfLiNK{x5-40011}{\csname :autoref\endcsname{figure}My invisible ...


4

I've tried some Pstricks examples and it seems that this error happens only sometimes. You can easily modify the image conversion process with make4ht, which is included in TL 2015. By default, dvips and ghostscript are used for image conversion. It isn't really elegant, dvipng gives better results (with anti-aliasing), but it seems that it doesn't support ...


4

As Ulrike said, you can use \NextFile, but I would use some automation in the process, also, it is not a good idea to insert tex4ht macros directly in the document: \documentclass{book} \usepackage{hyperref} \usepackage{mysection} \begin{document} %\tableofcontents \mysection{First}{sec:first} A first section \autoref{sec:first}. But more interesting ...


5

You can use \NextFile to force the name of the next file: \documentclass{book} \usepackage{hyperref} \begin{document} \tableofcontents \section{First}\label{sec:first} A first section \autoref{sec:first}. \NextFile{secinserted} \section{Inserted}\label{sec:inserted} An inserted section \autoref{sec:inserted} \section{Second}\label{sec:second} A second ...


4

Try to move your redefinition after preamble, lot of stuff is done after preamble in tex4ht: \documentclass[a4paper,11pt]{book} \usepackage{hyperref} \begin{document} \renewcommand{\sectionautorefname}[1]{my section~} \section{hello}\label{sec:hello} Test \autoref{sec:hello} \end{document}


2

I've used \ifcsdef which tests if a command is already defined (without \). If it's defined then use \renewcommand else \newcommand or \providecommand. \documentclass[a4paper,11pt]{book} \usepackage{etoolbox} \usepackage{hyperref} \ifcsdef{sectionautorefname}{% \renewcommand{\sectionautorefname}[1]{Section~} }{% ...



Top 50 recent answers are included