bugtex4ht - Bugs: bug #314, Missing indentation and bad...

Show feedback again

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

bug #314: Missing indentation and bad alignment of line numbers in algorithmic environment

Submitted by:  Ulrich Müller <ulm>
Submitted on:  Sat Jun 11 16:31:04 2016  
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Fri Jul 1 15:59:16 2016, comment #2:

looks like this affected html4.4ht rather than algorithmic.4ht, so committed to TL along with http://puszcza.gnu.org.ua/bugs/?279. closing, thanks.

Karl Berry <karl>
Project Administrator
Wed Jun 15 15:26:57 2016, comment #1:

It should be fixed in the sources now. Until TL is updated, you can use the following configuration:

{\HCode{\ifnum \c@ALC@line>1 <br />\fi <span class="ALCitem">}\NoFonts}
{\HCode{</span><span class="alg-indent" style="width:\the\ALC@tlm ;">&nbsp;</span>}\EndNoFonts}
\Css{.ALCitem {display:inline-block;width:2em; text-align:right;font-size:0.8em;}}

Michal Hoftich <michal_h21>
Project Member
Sat Jun 11 16:31:04 2016, original submission:

There are two problems with formatting of the HTML output for the "algorithmic" environment:
1. Line numbers should be right aligned but aren't.
2. Lines of code are not indented at all.

Attaching 4 files:
bug.tex Minimal example.
Process with "pdflatex bug; mk4ht xhlatex bug"
bug.pdf PDF output, for reference how it should look like
bug.html Generated HTML output
bug.css Generated CSS output

Downstream (Gentoo Linux) bug: https://bugs.gentoo.org/580532

Ulrich Müller <ulm>


Attached Files
file #244:  bug.tex added by ulm (391B - text/x-tex)
file #245:  bug.html added by ulm (4kB - text/html)
file #246:  bug.pdf added by ulm (34kB - application/pdf)
file #247:  bug.css added by ulm (6kB - text/css)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by karl (Posted a comment)
  • -unavailable- added by michal_h21 (Posted a comment)
  • -unavailable- added by ulm (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):



    5 latest changes follow.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri Jul 1 15:59:16 2016karlOpen/ClosedOpen=>Closed
    Sat Jun 11 16:31:04 2016ulmAttached File-=>Added bug.tex, #244
      Attached File-=>Added bug.html, #245
      Attached File-=>Added bug.pdf, #246
      Attached File-=>Added bug.css, #247
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup+gray