[tex4ht] [bug #512] \href undefined after hyperref included in class file; Unicode nbsp

2021-05-31 Thread Michal Hoftich
Follow-up Comment #3, bug #512 (project tex4ht):

I would change the code in ltnews.cls to something like:

 
\ifx\pdfoutput\@undefined
  \let\pdfoutput\outputmode
  \protected\def\pdfinfo{\pdfextension info }
\fi
\ifx\pdfoutput\@undefined
\else
  \ifx\pdfoutput\relax
  \else
\ifcase\pdfoutput
  \ifdefined\HCode
\RequirePackage{hyperref}
  \fi
\else
  \pdfinfo{%
/Title (LaTeX News)
/Author (The LaTeX Project)
  }
  \IfFileExists{hyperref.sty}{%
\RequirePackage[hidelinks]{hyperref}}{}
\fi
  \fi
\fi



___

Reply to this item at:

  

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



[tex4ht] [bug #512] \href undefined after hyperref included in class file; Unicode nbsp

2021-05-31 Thread Karl Berry
Update of bug #512 (project tex4ht):

 Open/Closed:Open => Closed 

___

Follow-up Comment #2:

Thanks Michal. I'll have to tell the latex people about the ltnews.cls
problem.

Regarding the nbsp, thanks for the workaround. I guess my basic point was that
tex4ht shouldn't be generating unicode output when the specified encoding is
not unicode. but, as i say, it's probably not worth the time to look into. (in
practice, if we were to actually do this, we would surely generate utf8
anyway; i just forgot to give the options).

closing, thanks.


___

Reply to this item at:

  

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



[tex4ht] [bug #512] \href undefined after hyperref included in class file; Unicode nbsp

2021-05-31 Thread Michal Hoftich
Follow-up Comment #1, bug #512 (project tex4ht):

Hi Karl, this is because you don't load hyperref in ltnews.cls with TeX4ht. In
particular, the branch \ifcase\pdfoutput\else is not executed. It works if I
put \Require{hyperref} before \else.

Regarding non-breaking space, you can try the following configuration that
replaces it with  element that contains regular space, but it acts as a
non-breaking space thanks to CSS:

\Preamble{xhtml}
\begin{document}
\Configure{ }{\HCode{ }}
\Css{span.nbsp{white-space:pre;}}
\EndPreamble


___

Reply to this item at:

  

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



[tex4ht] [bug #512] \href undefined after hyperref included in class file; Unicode nbsp

2021-05-29 Thread Karl Berry
URL:
  

 Summary: \href undefined after hyperref included in class
file; Unicode nbsp
 Project: tex4ht
Submitted by: karl
Submitted on: Sun May 30 00:57:35 2021
Category: None
Priority: 5 - Normal
Severity: 5 - Normal
  Status: None
 Privacy: Public
 Assigned to: None
Originator Email: 
 Open/Closed: Open
 Discussion Lock: Any

___

Details:

Hi Michal - I ran htlatex on the upcoming LaTeX news ltnews33.tex (attached),
and there was an error that \href was an undefined control sequence. I assume
because it is ltnews.cls that includes hyperref, rather than the document
itself. When I added \usepackage{hyperref} to the document, it generally
worked ok.

One minor problem I noticed was that the  used the Unicode 
even though the output was 8859-1 (I forgot to give the options for UTF-8):

LaTeXNews


The incorrect  is used in other places, too. I suppose it's hardly
worth worrying about other encodings nowadays, though. --thanks, karl.







___

File Attachments:


---
Date: Sun May 30 00:57:35 2021  Name: ltnews33.tex  Size: 33kB   By: karl



___

Reply to this item at:

  

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