[tex4ht] error when reading texmf-dist/tex/generic/xkeyval/keyval.tex, usng standalone package
Nasser M. Abbasi
nma at 12000.org
Tue Jan 22 12:19:23 CET 2013
I do not know if this is the right place to post this.
I just found an error using tex4ht when I added a new
package called standalone.
The latex file is complied OK with pdflatex and also with latex.
But gives an error with htlatex. I'll show the error
first, then the setup:
-----------------------------
>htlatex main.tex
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian)
restricted \write18 enabled.
entering extended mode
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, lo
aded.
(./main.tex (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texmf/tex/generic/tex4ht/tex4ht.sty)
(/usr/share/texmf/tex/generic/tex4ht/usepackage.4ht)
(/usr/share/texlive/texmf-dist/tex/latex/standalone/standalone.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifluatex.sty)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(/usr/share/texlive/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/keyval.tex)))
! Extra \else.
l.227 \else
?
-----------------------------
Here is main.tex
-------------------------
>cat main.tex
\documentclass{article}
\usepackage{standalone}
\usepackage{keyval}
\usepackage{listings}
\usepackage{graphicx}
\usepackage{import}
\begin{document}
\subimport{A/}{a}
\end{document}
----------------------
And in folder A/ below main.tex, there is a.tex
---------------------------------
>cd A
>cat a.tex
\documentclass{article}
\usepackage{graphicx}
\usepackage{listings}
\begin{document}
\includegraphics{a}
\lstinputlisting{a.txt}
\end{document}
-------------------------
specs:
>uname -a
Linux 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
>latex -v
pdfTeX 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian)
kpathsea version 6.1.0
>tex4ht -v
----------------------------
tex4ht.c (2009-01-31-07:33 kpathsea)
thank you,
--Nasser
More information about the tex4ht
mailing list