bugtex4ht - Bugs: bug #325, tex4ht ignores font size on \verb...

 
 
Show feedback again

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

bug #325: tex4ht ignores font size on \verb when adding \usepackage[T1]{fontenc}

Submitted by:  Nasser M. Abbasi <nma123>
Submitted on:  Wed Jul 6 12:49:43 2016  
 
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Fri Jul 17 15:55:32 2020, comment #2:

I think this is fixed already.

Michal Hoftich <michal_h21>
Project Member
Thu Jul 14 12:06:31 2016, comment #1:

I gave more information in answer on Tex.sx[1]. It seems that tex4ht sometimes detects wrong font size.

http://tex.stackexchange.com/a/318248/2891

Michal Hoftich <michal_h21>
Project Member
Wed Jul 6 12:49:43 2016, original submission:

After few hrs of debugging I found out why tex4ht was ignoring the font size on a \verb.

It turns out that adding \usepackage[T1]{fontenc} causes this.

Posted question on this here

http://tex.stackexchange.com/questions/318232/why-tex4ht-do-not-change-font-size-of-verb-when-including-usepackaget1font/318248#318248

MWE

\documentclass[11pt]{article}
\usepackage{ifluatex}
\ifluatex
\IfFileExists{luatex85.sty}{\usepackage{luatex85}}{}
\ifdefined\HCode
\usepackage[utf8]{luainputenc}
\usepackage[T1]{fontenc}
\else
\usepackage{fontspec}
\fi
\else%assume pdflatex, I only use these two
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\fi

\begin{document}
\ifluatex
compiled with lualatex
\else
compiled with pdflatex
\fi

{\tiny \verb|IllustratingTheUseOfDiscreteDistributions|}

{\tiny IllustratingTheUseOfDiscreteDistributions}
\end{document}

Compiling using make4ht foo.tex and looking at the HTML shows that the font size of the \verb did not change.

Removing \usepackage[T1]{fontenc} now the font size is correct.

TL 2016

Nasser M. Abbasi <nma123>

 

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 michal_h21 (Posted a comment)
  • -unavailable- added by nma123 (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
    Fri Jul 17 15:55:32 2020michal_h21Open/ClosedOpen=>Closed
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray