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 06 Jul 2016 03:49:43 PM EEST  
 
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Thu 14 Jul 2016 03:06:31 PM EEST, 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 06 Jul 2016 03:49:43 PM EEST, 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):

     

     

    No Changes Have Been Made to This Item
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray