bugtex4ht - Bugs: bug #162, Extra space in html output with...

Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #162: Extra space in html output with some predefined TeX commands

Submitted by:  Bitouze <denisbitouze>
Submitted on:  Thu 17 May 2012 12:37:33 PM EEST  
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: CV Radhakrishnan <cvr>
Open/Closed: Open

Wed 19 Sep 2012 11:11:03 AM EEST, comment #4:

Well, not that good: the entire "LaTeX" word is shifted to the right and a spurious space appears at its left.

Thanks to http://edward.oconnor.cx/2007/08/tex-poshlet a (working I hope) workaround would be:

Bitouze <denisbitouze>
Wed 19 Sep 2012 10:27:39 AM EEST, comment #3:

I found a workaround: it is enough to add, after the span.LATEX entries from *.css:

I hope it is exempt of side effects.

Bitouze <denisbitouze>
Wed 05 Sep 2012 12:44:15 PM EEST, comment #2:

The html output created by TeX4ht is similar to pdf. There is no spurious space. See:



<!--l. 9--><p class="noindent" ><span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
class="E">E</span>X</span></span> foo
<!--l. 11--><p class="noindent" ><span class="LATEX">L<span class="A">A</span><span class="TEX">T<span


The <span> element introduces a space after it while rendering in a browser. If you comment out the span.LATEX entries from *.css, and refresh your browser, the spurious space disappears. I am out of wits here.


CV Radhakrishnan <cvr>
Project AdministratorIn charge of this item.
Thu 17 May 2012 12:50:57 PM EEST, comment #1:

Even worse, a spurious space is inserted before periods:



Bitouze <denisbitouze>
Thu 17 May 2012 12:37:33 PM EEST, original submission:


there is an extra space in html output after some predefined TeX
commands, as pointed out by the following MCE (compile with htlatex
and with pdflatex in order to see the difference):

\noindent\LaTeX{} foo

\noindent\LaTeX foo

Best regards.

Bitouze <denisbitouze>


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by cvr (Updated the item)
  • -unavailable- added by denisbitouze (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    1 latest change follows.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 05 Sep 2012 12:38:48 PM EESTcvrAssigned toNone=>cvr
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup+gray