Package: tex4ht Version: 20090611-1+b1 Severity: normal Hello!
htlatex produces invalid html document if the source contains \AtBeginDocument directive. Minimal example and result html file attached. Hope the fix is easy, Andrey Paramonov -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (1000, 'testing'), (200, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.30-2-686 (SMP w/1 CPU core) Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages tex4ht depends on: ii libc6 2.9-25 GNU C Library: Shared libraries ii libkpathsea4 2007.dfsg.2-7 TeX Live: path search library for ii tex4ht-common 20090611-1 LaTeX and TeX for Hypertext (HTML) ii texlive-base-bin 2007.dfsg.2-7 TeX Live: Essential binaries tex4ht recommends no packages. tex4ht suggests no packages. -- no debconf information ===File ~/test.tex========================================== \documentclass[english]{minimal} \usepackage[utf8]{inputenc} \makeatletter \atbegindocumen...@title} \makeatother \title{Minimal example} \begin{document} Test body. \end{document} ============================================================ ===File ~/test.html========================================= <span class="cmr-10">Minimal example</span><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html > <head><title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="generator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)"> <meta name="originator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)"> <!-- html --> <meta name="src" content="test.tex"> <meta name="date" content="2009-10-09 22:05:00"> <link rel="stylesheet" type="text/css" href="test.css"> </head><body > <!--l. 12--><p class="noindent" >Test body. </body></html> ============================================================ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org