# [tex4ht] [bug #613] Problem using tex4ht with algpseudocodex package when adding indent guide lines

Nasser M. Abbasi puszcza-hackers at gnu.org.ua
Sat Oct 21 12:28:56 CEST 2023

URL:
<http://puszcza.gnu.org.ua/bugs/?613>

Summary: Problem using tex4ht with algpseudocodex package
Project: tex4ht
Submitted by: nma123
Submitted on: Sat Oct 21 10:28:56 2023
Category: None
Priority: 5 - Normal
Severity: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any

_______________________________________________________

Details:

reference and screen shots at

When using https://ctan.org/pkg/algpseudocodex?lang=en with tex4ht and using
guide lines, then tex4ht generates image files which are empty or invalid and
this result on the web page that looks like this

enter image description here

While the pdf look like this

enter image description here

I am using latest TL 2023 updated now.

Here is the code for the above

---------------------------
\documentclass{article}
\usepackage{amsmath}
\usepackage[noEnd=false, indLines=true ]{algpseudocodex}
\usepackage{algorithm}

\begin{document}
\begin{algorithm}
\caption{Series method for first order ode}\label{seriesMethodFirstOrderOde}
\begin{algorithmic}[0]
\Require First order ode $F(x,y,y')=0$
%
\If{$f(x,y)$ analytic at $x_0$}
\State Apply Taylor series defintion directly to find the series
expansion. Let
\Else
\State do something else
\EndIf
\end{algorithmic}
\end{algorithm}
\end{document}
-----------------

Compiled using

make4ht  -ulm default -a debug foo.tex "mathjax,htm,nostyle"

The solution is to replace indLines=true with indLines=false when compiling
with tex4ht. Now it gives this html

enter image description here

So the guide lines are giving tex4ht hard time. It is generating lots of empty
or invalid .svg images for these lines and that why the browser shows these
dots on the page.

Is it possible to have the guide line show in html also like in PDF? If not,
may be tex4ht can ignore this option?

TL 2023.

_______________________________________________________