Re: [tex4ht] is it possible to use kpfonts with tex4ht?

2015-07-29 Thread Nasser M. Abbasi

On 7/29/2015 9:22 PM, Jagath AR wrote:

On 29 July 2015 at 09:04, Nasser M. Abbasi  wrote:


I was reading this post


http://tex.stackexchange.com/questions/59702/suggest-a-nice-font-family-for-my-basic-latex-template-text-and-math

And I liked the pkfonts shown there. But when I tried to compile the file
with htlatex, the display math came up ok, but the inline math did not,
and I see many errors about missing fonts:

texfot htlatex foo.tex

This is too bad, since it looks really nice in pdf.
Is there something one can do to fix the above to that it work for inline
math as well? Need another package may be?






Hi Nasser,
​The display math appeared properly because it is converted as an image.
​If you want to convert your inline math also to image, please add the
following to your custom configuration file:

\Configure{$}{\PicMath}{\EndPicMath}{}

​Regards
Jagath AR​



Thanks Jagath;

Yes, it works with the above command, but _only_ with png, which
I no longer use. I have switched to svg for math since the math
is much better.

The problem is that when I compile it to use svg for math, I get
total mangled text everywhere in the web page. On the display math
looks good. But the actual text is all funny letters and
strange characters. Here is a screen shot

http://12000.org/tmp/072915/output.png

The second plot below is compiling using

htlatex foo.tex

-
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{ntheorem}
\newtheorem{theorem}{Theorem}
\usepackage{amsmath}
\DeclareMathOperator{\Res}{Res}

\usepackage{kpfonts}

\begin{document}
\Configure{$}{\PicMath}{\EndPicMath}{}
\pagestyle{empty}
\begin{theorem}[Residue Theorem]
Let $f$ be analytic in the region $G$ except for the isolated
singularities $a_1,a_2,\dots,a_m$. If $\gamma$ is a closed
rectifiable curve in $G$ which does not pass through any of the
points $a_k$ and if $\gamma\approx 0$ in $G$, then
\[
  \frac{1}{2\pi i}\int_\gamma\! f = \sum_{k=1}^m
  n(\gamma;a_k)\Res(f;a_k)\,.
\]
\end{theorem}
\end{document}
---

And the first screen shot is from compiling
using make4ht but tell it via my .cfg to use SVG for math
as I have in my cheat sheet
http://12000.org/my_notes/faq/LATEX/layout/index.htm

The SVG math quality is to much better, so I will not
go back to png. But as you can see, the text is all wrong
for some reason.

Thanks,
--Nasser






Re: [tex4ht] is it possible to use kpfonts with tex4ht?

2015-07-29 Thread Jagath AR
On 29 July 2015 at 09:04, Nasser M. Abbasi  wrote:

> I was reading this post
>
>
> http://tex.stackexchange.com/questions/59702/suggest-a-nice-font-family-for-my-basic-latex-template-text-and-math
>
> And I liked the pkfonts shown there. But when I tried to compile the file
> with htlatex, the display math came up ok, but the inline math did not,
> and I see many errors about missing fonts:
>
> texfot htlatex foo.tex
>
> This is too bad, since it looks really nice in pdf.
> Is there something one can do to fix the above to that it work for inline
> math as well? Need another package may be?
>

Hi Nasser,
​The display math appeared properly because it is converted as an image.
​If you want to convert your inline math also to image, please add the
following to your custom configuration file:

\Configure{$}{\PicMath}{\EndPicMath}{}

​Regards
Jagath AR​


[tex4ht] [bug #257] \includegraphics fails with LuaLaTeX backend

2015-07-29 Thread Michal Hoftich
Follow-up Comment #4, bug #257 (project tex4ht):

There are two separate issues:

1. LuaLaTeX is failing to include png and other bitmap formats in dvi mode.
These formats aren't normally supported by dvi, but only warning should be
printed, as in the case of normal LaTeX. This should be fixed in graphicx's
driver for LuaLaTeX.

2. As tex4ht uses own dvi driver which supports additional picture types, it
should provide support for them. We could provide own graphicx configuration
file, but it seems like too heavyweight solution to me . Or we can use similar
configurations :)

___

Reply to this item at:

  

___
  Message sent via/by Puszcza
  http://puszcza.gnu.org.ua/



[tex4ht] [bug #257] \includegraphics fails with LuaLaTeX backend

2015-07-29 Thread Karl Berry
Follow-up Comment #3, bug #257 (project tex4ht):

why shouldn't the problems be fixed in the latex drivers?  what makes any of
this htlatex-specific?  just trying to understand.

___

Reply to this item at:

  

___
  Message sent via/by Puszcza
  http://puszcza.gnu.org.ua/



[tex4ht] [bug #257] \includegraphics fails with LuaLaTeX backend

2015-07-29 Thread Michal Hoftich
Follow-up Comment #2, bug #257 (project tex4ht):

It fixes also problem with image size detection for bitmap images with other
engines, so while it is hack to fix lualatex support, it also enhances
experience with standard htlatex, otherwise the user needs to either use
different backend for graphichx with tex4ht, or provide similar configurations
in the .cfg file. 

With this change, only .xbb files need to be created for images and then their
correct dimensions are used in the html.

___

Reply to this item at:

  

___
  Message sent via/by Puszcza
  http://puszcza.gnu.org.ua/



Re: [tex4ht] is it possible to use kpfonts with tex4ht?

2015-07-29 Thread Michal Hoftich
Hi Nasser,

> I was reading this post
>
> http://tex.stackexchange.com/questions/59702/suggest-a-nice-font-family-for-my-basic-latex-template-text-and-math
>
> And I liked the pkfonts shown there. But when I tried to compile the file
> with htlatex, the display math came up ok, but the inline math did not,
> and I see many errors about missing fonts:
>

we have some scripts for adding support for text fonts with standard
font encodings. It is much harder for math fonts, as they usually
don't use standard encodings. This issue is the same as with newtx
math. We know about it, but it definitely isn't easy. We will solve it
soon, hopefully, but this summer seems to be really rich of bug
reports, so it may take some time :)

Best regards,
Michal


Re: [tex4ht] graphics Images no longer resize in TL 2015 with tex4ht, need help finding why

2015-07-29 Thread Michal Hoftich
>> I am back from vacation :)
>>
>
> Welcome back. Please do not take long vacations, We need you here :)
>

Oh, it was just one week :)

>
> I am still little confused. So you want just me to replace
>
> \newcommand\emwidth{16} > this line
>   \let\emwidth\f@size
>   % convert pt to rem
>   \newcommand\CalcRem[1]{\strip@pt\dimexpr(#1)/\emwidth}
>
>
> With
>
> \newcommand\emwidth{11} > to this line?
> \let\emwidth\f@size
> % convert pt to rem
> \newcommand\CalcRem[1]{\strip@pt\dimexpr(#1)/\emwidth}
>

it seems that you figured that out already, but you need to remove or
comment out the line

\let\emwidth\f@size


> ? Will this works for any document size also? 11 pt. 10 pt, 12 pt?
> or is it not related.
>

it will work for any size, just play with the value, to find which one
suits you best.

Michal