Re: [tex4ht] [bug #309] tex4ht does not work with package savetrees

2016-06-09 Thread Michal Hoftich
> I love the idea. IMHO it's a proper way of doing. > It' far better that "\ifdefined\HCode" conditional in tex file. > Sure, the conditional compilation should be the last resort. There is a patch for savetrees and fontspec, as I said, it needs testing, as there is potentially dangerous change.

Re: [tex4ht] [bug #309] tex4ht does not work with package savetrees

2016-06-09 Thread Karl Berry
changed xhlatex calls in the Makefile to mk4ht xhlatex, as xhlatex script seems to be missing in TL. I will reinstate xhlatex in tl. Darn it, I meant to do before the release this year. (I only realized belatedly that it was actually used all the time in Eitan's builds.) So our tex4ht M

Re: [tex4ht] [bug #309] tex4ht does not work with package savetrees

2016-06-09 Thread Karl Berry
Hi Michal, is updated usepackage.4ht: Fantastic. I'm surprised Eitan did not create a mechanism like this. Anyway, can you commit the lit changes for the new usepackage or send them to me, if nothing more is pending for it? Thanks!! -k

Re: [tex4ht] [bug #309] tex4ht does not work with package savetrees

2016-06-09 Thread Nasser M. Abbasi
On 6/9/2016 9:25 AM, Michal Hoftich wrote: I love the idea. IMHO it's a proper way of doing. It' far better that "\ifdefined\HCode" conditional in tex file. Sure, the conditional compilation should be the last resort. There is a patch for savetrees and fontspec, as I said, it needs testing,

Re: [tex4ht] [bug #309] tex4ht does not work with package savetrees

2016-06-09 Thread Karl Berry
It seems to me that there is a difference between savetrees, which simply makes no sense in HTML, and tcolorbox, which does. I don't think Michal was advocating blanket application of blacklisting packages. fontspec is another case where it is clear that whatever it does in the TeX world, it has

Re: [tex4ht] [bug #309] tex4ht does not work with package savetrees

2016-06-09 Thread Michal Hoftich
Quoting Karl Berry (2016-06-09 23:20:55) > It seems to me that there is a difference between savetrees, which > simply makes no sense in HTML, and tcolorbox, which does. I don't think > Michal was advocating blanket application of blacklisting packages. Sure, we only need to take care of packages

[tex4ht] [bug #309] tex4ht does not work with package savetrees

2016-06-09 Thread Michal Hoftich
Follow-up Comment #2, bug #309 (project tex4ht): There is missing discussion which happened on the mailing list, but anyway, there is a patch for tex4ht which enables blocking of package loading and which blocks savetrees package. I left configuration for fontspec, as it has it's own bug report.

[tex4ht] [bug #312] tcolorbox package does not work with tex4ht. All newlines are lost in listings

2016-06-09 Thread Nasser M. Abbasi
URL: Summary: tcolorbox package does not work with tex4ht. All newlines are lost in listings Project: tex4ht Submitted by: nma123 Submitted on: Fri 10 Jun 2016 04:25:10 AM EEST Categor

Re: [tex4ht] [bug #307] make4ht removes spaces in \href in LUA mode when using mathdesign package

2016-06-09 Thread Deimantas Galcius
third: it is not surprising that pdf(la)tex and lua(la)tex would find different fonts. i've never understood lualatex font lookup, and can't help there. furthermore, the actions taken by the two engines after a font is found are different. it appears that latex and dvilualatex take differe

[tex4ht] is it possible to define a Latex environment, where one can issue direct HTML code in it for tex4ht only?

2016-06-09 Thread Nasser M. Abbasi
I am struggling with this. I need to be able to define an environment, where when Latex file is compiled to HTML does one thing, and when compiled to pdf does another thing. This sounds easy enough. The problem is it is for code listing. For pdf, I can use listing package no problem. For HTML, I

Re: [tex4ht] is it possible to define a Latex environment, where one can issue direct HTML code in it for tex4ht only?

2016-06-09 Thread Jagath AR
Hi Nasser, The error in your MWE case is due to undefined "\PRE" command, which should be "/PRE". Regards Jagath On 10 June 2016 at 11:41, Nasser M. Abbasi wrote: > I am struggling with this. I need to be able to define > an environment, where when Latex file is compiled to HTML > does one thin

Re: [tex4ht] is it possible to define a Latex environment, where one can issue direct HTML code in it for tex4ht only?

2016-06-09 Thread Jagath AR
Hi Nasser, Will this work for you: \documentclass[12pt]{book}% \usepackage[T1]{fontenc} \usepackage{listings} %\usepackage{fancyvrb} \usepackage{moreverb} \def\putVerb{% \HCode{}% \verbatiminput{a.tex}% \HCode{}% } \ifdefined\HCode \newenvironment{code} {\verbatimwrite{a.tex}} {\endv

Re: [tex4ht] is it possible to define a Latex environment, where one can issue direct HTML code in it for tex4ht only?

2016-06-09 Thread Nasser M. Abbasi
On 6/10/2016 1:23 AM, Jagath AR wrote: Hi Nasser, The error in your MWE case is due to undefined "\PRE" command, which should be "/PRE". Regards Jagath Opps, sorry about that. Too much latex and for second forgot about HTML uses ;) Ok, so PRE do not give error. But PRE is not reall