% $Id: TeX4ht-doc.tex 786 2020-08-24 17:18:49Z karl $
% Part of TeX4ht, released under the LPPL.
% This work has the LPPL maintenance status "maintained".
%
% The Current Maintainer of this work
% is the TeX4ht Project <http://tug.org/tex4ht>.

%%%%%%%%%%%%%%% comment out for final version %%%%%%%%%%%%%
% \def\UnderRevision{{\bf
%    This site is under revision
%    until the end of February
% \IgnorePar\EndP \HCode{<hr />}\par
% }}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%\immediate\write16{!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!}
%\immediate\write16{!!!!!!Compile: dotemp or dofinal               !!!!!!!!}
%\immediate\write16{!!!!!!NEEDS: htcmd.exe, tex4ht.exe, t4ht.exe   !!!!!!!!}
%\immediate\write16{!!!!!!needs: TWO COMPILATIONS to get correct index!!!!!!!!}
%\immediate\write16{!!!!!!checkmn in-messages out-clean-messages!!!!!!!!}
%\immediate\write16{!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!}


\long\def\WAIT#1\ENDWAIT{}
%%%%%%%%%%%%%%%%%%% Compiling this program %%%%%%%%%%%%
% For temp directory: dotemp
% For TeX4ht dir    : difinal

%  \def\SysNeeds#1{}


\def\SKIP{\bgroup\catcode`\\=9 \catcode`\{=9 \catcode`\}=9 \foo}
\long\def\foo#1/////////////+/{\egroup}\SKIP




%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MORE AT THE END
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

refresh AlProTex.sty in ctan
-------------------------------------------
--------------------------------------------------------------------------------------
-------------------------------------------

--------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------
http://biostat.mc.vanderbilt.edu/wiki/Main/SweaveConvert
--------------------------------------------------------------------------------------
From: Peter FELECAN <[email protected]>
To: [email protected]
Subject: [SPAM]  tex4ht packages for SUN Solaris
Date: Mon, 18 May 2009 09:50:36 +0200

Eitan,

Just to let you know that I packaged tex4ht --- the latest version ---
for SUN Solaris and the packages are available in the distribution
OpenCSW: http://www.opencsw.org/ If you think that it's of interest for
the tex4ht users community you can mention it on the project page.

Sincerely yours
--
Peter FELECAN

--------------------------------------------------------------------------------------

Bill,

The problem is due to tex4ht assuming that \a maintains its original
definition as provided in latex.ltx.  The same kind of problem will
arise with many other macros that are configured by tex4ht.

It is possible to modify tex4ht to provide configurations only for
control words that maintain their original definitions, but that will
require a large code overhead.  On the other hand, it can be argued
that it is the responsibility of authors that change the meaning of
control words to provide also new tex4ht-based configurations.

I modified the bugfixes distribution to cancel through an instruction
of the form

  \HRestore\a

the configuration by tex4ht.

-eitan

> I suppose this could be fixed by now, though the same behavior
> is obtained with the texlive 2007 version (version 2006-10-28-15:32).
>
> (/usr/share/texmf/tex/generic/tex4ht/tex4ht.sty
> version 2008-02-25-14:04
>
> The only notice is:
>
>    ! Missing $ inserted.
>    <inserted text>
>                    $
>
> Example and xhtml+mathml output appended.  The example runs correctly
> through normal latex.

> -------------------------
> \documentclass{article}
> \renewcommand{\a}{\alpha}
> \begin{document}
>
> $\a$
> \end{document}
> -----------------------
--------------------------------------------------------------------------------------


\documentclass[english]{article}
  \listfiles
  \usepackage{filecontents}
  \begin{filecontents}{test.bib}
  @BOOK{book,
    author = {Surname, Shaun},
    title = {A book with a long title},
    shorttitle = {A book},
    address = {London},
    year = {2000}
  }
  \end{filecontents}
  \usepackage[style=verbose-note]{biblatex}
  \bibliography{test}

 \begin{document}
  \footnote{\cite{book}}
\footnote{\cite{book}}
  \end{document}

--------------------------------------------------------------------------------------

here it is a patch to let oolatex test which java implementation is run
by the command ``java'', and to exit with a meaningful error message (that can b\
e
improved, of course)

the patch is relevant in the debian context, and is not intended for propagati\
on
upstream

best regards

                                                               gb

--- /usr/share/tex4ht/oolatex   2008-09-14 05:53:15.000000000 +0200
+++ oolatex     2008-12-11 15:11:38.000000000 +0100
@@ -1,4 +1,7 @@
#!/bin/sh
+
+java -version 2>&1 | grep -q 'GNU libgcj' && printf ``oolatex NEEDS Sun's Java\
\n'' && exit
+
if command -v xhtex > /dev/null 2>&1 ; then
  true
else





--------------------------------------------------------------------------------------
\graphicspath{{eps/}{tiff/}}
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=graphicspath
\DeclareGraphicsExtensions{.png,.jpg,.eps,.ps}
\includegraphics{fig}
--------------------------------------------------------------------------------------
To: [email protected] (Debian Bug Tracking System)
Cc: Kapil Hari Paranjape <[email protected]>
Subject: Bug#486482: tex4ht: a java program invoked from
oolatex goes in error
In-Reply-To: <[email protected]>
References: <[email protected]>
       <[email protected]>
       <[email protected]>
X-Mailer: VM 7.04 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid
--text follows this line--

An apology if this is a duplicate posting.  I tried to email earlier
a similar message I fail to find a trace of it.

--------


Kapil Hari Paranjape, Mon, 16 Jun 2008 20:00:02

> This (second) failure seems to the same error as is evident in bug
> report #471837, which is due to a problem with "default-jre" under
> Debian (see #474075). The problem is that the JRE which uses gij (or
> cacao or jamvm) is not entirely compatible with Sun's "java".
>
> The original "xtpipes" java code and the resulting byte code works
> fine with Sun's "java". If you choose the Sun java (currently only in
> non-free under Debian) using "update-alternatives", then the
> conversion ought to work for now.
>
> We are still trying to fix this compatibility issue.

Eitan Gurari, Tue, 17 Jun 2008 00:48:31
>
>  > We are still trying to fix this compatibility issue.
>
> It will take some months until I'll confront the problem head on.  I
> intend first to learn the gij/gcj environment by using it to develop
> software for another project.  -eitan

The oolatex problem with gij/gcj is due to the problem exhibited in
the attached sample program.  The program produces the same error (of
a missing office.dtd file) under SUN Java and GNU Java.  When the
EntityResolver code is uncommented, the SUN Java program executes
smoothly.  On the other hand, the GNU Java still issues the error
message.  That is, GNU Java seems to have broken implementation for
the EntityResolver feature.

I ran the code with the commands

  javac Test.java ; java Test test.tmp
  gcj -C Test.java ; gij Test test.tmp

within the following environment.

  java version "1.5.0"
  gij (GNU libgcj) version 4.2.4 (Ubuntu 4.2.4-1ubuntu3)

By introducing an empty office.dtd file in the work directory, oolatex
would work also under gcj/gij.

-eitan

------------------- Test.java ----------------------

import javax.xml.parsers.*;
import org.xml.sax.*;
import java.io.*;
class Test {
 static public void main(String[] args)
                        throws Exception {
   SAXParserFactory factory =  SAXParserFactory.newInstance();
   SAXParser saxParser = factory.newSAXParser();
   XMLReader xmlReader = saxParser.getXMLReader();
   /*
   xmlReader.setEntityResolver(new org.xml.sax.EntityResolver() {
        public InputSource resolveEntity(
                         String publicId, String systemId) {
          StringReader strReader = new StringReader("");
          System.err.println(".......... " + systemId);
          return new org.xml.sax.InputSource(strReader);
        }
   });
   */
   xmlReader.parse
       ( new File(args[0]).toURI().toURL().toString() );
} }

------------------- test.tmp -----------------------

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE
   office:document-content
   PUBLIC "-//OpenOffice.org//DTD OfficeDocument 2.0//EN"
   "office.dtd">
<office:document-content>
</office:document-content>

----------------------------------------------------


--------------------------------------------------------------------------------------

javac Test.java ; java Test test.tmp
gcj -C Test.java ; gij Test test.tmp

java version "1.5.0"
gij (GNU libgcj) version 4.2.4 (Ubuntu 4.2.4-1ubuntu3)





import javax.xml.parsers.*;
import org.xml.sax.*;
import java.io.*;
class Test {
 static public void main(String[] args)
                        throws Exception {
   SAXParserFactory factory =  SAXParserFactory.newInstance();
   SAXParser saxParser = factory.newSAXParser();
   XMLReader xmlReader = saxParser.getXMLReader();
   /*
   xmlReader.setEntityResolver(new org.xml.sax.EntityResolver() {
        public InputSource resolveEntity(
                         String publicId, String systemId) {
          StringReader strReader = new StringReader("");
          System.err.println(".......... " + systemId);
          return new org.xml.sax.InputSource(strReader);
        }
   });
   */
   xmlReader.parse
       ( new File(args[0]).toURI().toURL().toString() );
} }


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE
   office:document-content
   PUBLIC "-//OpenOffice.org//DTD OfficeDocument 2.0//EN"
   "office.dtd">
<office:document-content>
</office:document-content>




------------------------------------------------------------------------------
> tc:\Program Files\MiKTeX 2.7\fonts\!
> which it could not resolve.
> I now changed it to
> tc:\Progra~1\MiKTeX~2.7\fonts\!
> which makes it work now.
--------------------------------------------------------------------------------------

As explained in section 2, TEX4ht needs external utilities for
creating the bitmaps used in the web-documents. The default set up is
a combination of dvips, gs (GhostScript) and ImageMagick�s convert
utility [4]. Unfortunately this is a rather slow process, and not a
very good one when it comes to antialiasing, and it�s definetely not
suited for typesetting uses. However, the dvi2bitmap tool available
freely from [3] is efficient and converts dvi files directly to png or
gif files. Dvi2bitmap works almost like a normal dvi-driver, but has
no support for so-called dvi-specials (such as included eps-figures
et.c.) Thus, a combination of the two is required: We use dvi2bitmap
whenever we encounter maths and special symbols as this is efficient
and produce good results, but use the aforementioned
dvips/gs/convert-process for items that dvi2bitmap cannot handle, such
as included PostScript figures.

--------------------------------------------------------------------------------------
http://schlosser.info/latexsystem-en.html#x1-200003.6
--------------------------------------------------------------------------------------
I forgot to mention about one thing. The installation script I posted
earlier does not install tex4ht.exe and t4ht.exe binaries. They come
with miktex-tex4ht-bin-2.7 package and should be installed first
(using miktex package manager). The rest of tex4ht is installed by the
script and it won't show up in miktex package manager (it have to be
maintained manually).

And a small correction - lines [51-54] are not needed and can be
deleted (but they don't do any harm, it's not a bug, just some dead
code).



>A few final remarks. It works on NT based systems only, so users of
>win98 and below are out of luck. Sorry. Shell scripting on NT is
>already traumatic enough for me. All lines are numbered in case they
>get wrapped in this post. Copy and paste them into a text editor and
>unwrap all lines not starting with a number. Remove the bracketed
>numbers and save it as 'install-tex4ht.bat'. If you are too lazy to do
>it manually save it as 'install-tex4ht.txt' and from the command line
>run (one line):
>(for /f "tokens=1* delims=[]" %K in (install-tex4ht.txt) do @echo.
>%L)>install-tex4ht.bat
>
>OK, without the further ado, here's the installation script.
>
>---------- INSTALL-TEX4HT.BAT
>[1]::--------------------------------------------------------------------::
>[2]::-             *** TEX4HT installation script
>***                   -::
>[3]::-
>-::
>[4]::-
>Usage:                                                           -::
>[5]::- *
>Installation:                                                  -::
>[6]::-      install-
>tex4ht.bat                                          -::
>[7]::-      install-tex4ht.bat
>install                                  -::
>[8]::- *
>Uninstallation:                                                -::
>[9]::-      install-tex4ht.bat
>uninstall                                -::
>[10]::-
>-::
>[11]::-
>Remaks:                                                          -::
>[12]::- * Installation script will prompt you for locations of
>unzipped  -::
>[13]::-   tex4ht.zip and newt4ht.zip files; you can to avoid that
>by     -::
>[14]::-   defining them in the configuration section of the
>script       -::
>[15]::- * After installation created TDS (TeX Directory Structure)
>tree  -::
>[16]::-   has to be added to MiKTeX's roots (use MiKTeX's
>Settings       -::
>[17]::-   utility mo.exe). Alternatively, you can install to
>MiKTeX's    -::
>[18]::-   intallation directory but this is not recommended.
>Refresh     -::
>[19]::-   FNDB after
>installation.                                       -::
>[20]::- * Uninstallation will leave behind created TDS
>tree;             -::
>[21]::-   delete it manually if
>desired                                  -::
>[22]::--------------------------------------------------------------------::
>[23]
>[24]@echo off
>[25]setlocal
>[26]
>[27]:: ******************** Configuration section
>*********************** ::
>[28]::unzipped tex4ht location
>[29]set tex4ht_unzipped_dir=.\tex4ht-20070708
>[30]::unzipped newt4ht location
>[31]set newt4ht_unzipped_dir=.\newt4ht
>[32]::tex4ht installation dir
>[33]set tex4ht_install_dir=C:\texmf-local
>[34]::change (Y) or not (N) the default <oo> script to <oo-alt>
>[35]set use_oo-alt=Y
>[36]::rollback if installation failed (Y/N)
>[37]::(removes only texh4ht and leaves created TDS tree behind)
>[38]set rollback=N
>[39]::
>****************************************************************** ::
>[40]
>[41]if not "%OS%"=="Windows_NT" goto requireNT
>[42]for %%G in (xcopy.exe) do if "%%~$PATH:G"=="" goto :noxcopy
>[43]
>[44]call :help
>[45]for %%G in (tex4ht_unzipped_dir newt4ht_unzipped_dir
>tex4ht_install_dir) do (
>[46]   call :setupdirs %%G
>[47]   if not defined %%G goto :abort
>[48])
>[49]goto %1 :install
>[50]
>[51]for %%G in (%tex4ht_install_dir%\tex4ht\base\win32\tex4ht.env
>%tex4ht_install_dir%\scripts\tex4ht\bat\*.bat) do (
>[52]   call %% > nul
>[53]   REM && move /Y %%G.tmp %%G || goto :copyerror
>[54])
>[55]
>[56]:install
>[57]set "copyopt=/I /S /Y /D"
>[58]xcopy.exe %newt4ht_unzipped_dir%\texmf\tex4ht %tex4ht_install_dir%
>\tex4ht %copyopt% || goto :copyerror
>[59]xcopy.exe %newt4ht_unzipped_dir%\texmf\tex\generic\tex4ht
>%tex4ht_install_dir%\tex\generic\tex4ht %copyopt% || goto :copyerror
>[60]xcopy.exe %tex4ht_unzipped_dir%\texmf\tex4ht\ht-fonts
>%tex4ht_install_dir%\tex4ht\ht-fonts %copyopt% || goto :copyerror
>[61]xcopy.exe %tex4ht_unzipped_dir%\bin\win32\*.bat %tex4ht_install_dir
>%\scripts\tex4ht\bat %copyopt% || goto :copyerror
>[62]echo Search and replace "c:\tex4ht\texmf\" with
>"%tex4ht_install_dir%"
>[63]for %%G in (%tex4ht_install_dir%tex4ht\base\win32\tex4ht.env
>%tex4ht_install_dir%scripts\tex4ht\bat\*.bat) do (
>[64]   call :replstr %%G "c:\tex4ht\texmf\" "%tex4ht_install_dir%"
>[65])
>[66]if /i "%use_oo-alt%"=="Y" (
>[67]   echo Search and replace "oo>" with "oo-bak>"
>[68]   call :replstr %tex4ht_install_dir%tex4ht\base\win32\tex4ht.env
>"oo>" "oo-bak>"
>[69]   echo Search and replace "oo-alt>" with "oo>"
>[70]   call :replstr %tex4ht_install_dir%tex4ht\base\win32\tex4ht.env
>"oo-alt>" "oo>"
>[71])
>[72]echo To finish installation add "%tex4ht_install_dir%" to MiKTeX
>roots and refresh FNDB
>[73]pause
>[74]goto :eof
>[75]
>[76]
>[77]:uninstall
>[78]echo Uninstalling TEH4HT...
>[79]for %%H in (%tex4ht_install_dir%tex4ht %tex4ht_install_dir%tex
>\generic\tex4ht %tex4ht_install_dir%scripts\tex4ht) do (
>[80]   if exist "%%~H\" (
>[81]           echo Removing "%%~H\"
>[82]           rmdir /S /Q "%%~H\"
>[83]   )
>[84])
>[85]echo Uninstallation complete
>[86]pause
>[87]goto :eof
>[88]
>[89]:help
>[90]findstr "^::-" %~sf0
>[91]goto :eof
>[92]
>[93]:setupdirs
>[94]::let's make sure that dirs are in short format
>[95]for /f "tokens=1* delims==" %%H in ('set %1 2^>^&1') do set
>"$cratchVar=%%~sfI"
>[96]if defined $cratchVar set "$cratchVar=%$cratchVar%\"
>[97]if not exist "%$cratchVar%" (set /p $cratchVar=%1=)
>[98]if not exist "%$cratchVar%" (
>[99]   set "$cratchVar="
>[100]  set /p $cratchVar=Specified directory does not exist. Retry? [y/
>n]:
>[101]  set $cratchVar | findstr /i "=y\>" >nul && goto :setupdirs ||
>set "$cratchVar="
>[102])
>[103]set %1=%$cratchVar%
>[104]goto :eof
>[105]
>[106]:replstr <file name> <search string> <replace string>
>[107]setlocal
>[108]echo.%1
>[109]for /f "tokens=1* delims=[]" %%K in ('find /n /v "" "%~1"') do (
>[110]  set lineNo=0000%%K
>[111]  set "txtline==%%L"
>[112]  REM This may break if txtline contains poison characters
>[113]  REM together with quotation characters
>[114]  call set "txtline.%%lineNo:~-4%%=%%txtline:%~2=%~3%%"
>[115])
>[116]::echo from for command so we don't get screwed by poison
>characters
>[117]>"%~1" (for /f "tokens=1* delims==" %%K in ('set txtline.') do
>echo.%%L)
>[118]goto :eof
>[119]
>[120]:copyerror
>[121]>&2 echo There were some errors while copying files. Make sure
>that correct installation directories are specified.
>[122]>&2 echo Aborting installation.
>[123]if /i "%rollback%"=="Y" call :uninstall
>[124]pause
>[125]exit /b 1
>[126]
>[127]:abort
>[128]>&2 echo Aborting installation.
>[129]pause
>[130]exit /b 1
>[131]
>[132]:requireNT
>[133]>&2 echo This script requires Windows NT based system. Sorry.
>[134]pause
>[135]exit /b 1
>[136]
>[137]:noxcopy
>[138]>&2 echo No xcopy command? Aborting installation, please don't
>hate me.
>[139]pause
>[140]exit /b 1

--------------------------------------------------------------------------------------
http://groups.google.com/group/comp.text.tex/browse_thread/thread/cd12489666d4d15f/2662902be1a6b276?lnk=gst&q=tex4ht+2008+pdf#2662902be1a6b276
--------------------------------------------------------------------------------------

comp.text.tex #397221 (0 + 9 more)                                            (1)+-(1)
From: Turgut Durduran <[email protected]>                                            \-(1)--[1]
[1] Re: tex4ht problems
Date: Thu Feb 28 17:31:52 EST 2008
Lines: 48

On 2008-02-21, Eitan M Gurari <[email protected]> wrote:
>
>>LaTeX document to either open document format, or to html that I would
>
>>I am using text4ht from Ubuntu Gutsy Gibbon repositories. Nothing
>>customized.
>>
>>The files I am using are here:
>>http://www.stwing.upenn.edu/~durduran/tmp/distr/
>
>>The output is  broken -- Firefox can't open it with the following error.
>
> Try upgrading the tex4ht instalation with the files from
>
>     http://www.cse.ohio-state.edu/~gurari/TeX4ht/bugfixes.html
>
>
>>(2) references are listed but appear as:

From: Turgut Durduran <[email protected]>                                            \-(1)--(1)
[1] Re: tex4ht problems
Date: Thu Feb 28 17:31:52 EST 2008
Lines: 48

On 2008-02-21, Eitan M Gurari <[email protected]> wrote:
>
>>LaTeX document to either open document format, or to html that I would
>
>>I am using text4ht from Ubuntu Gutsy Gibbon repositories. Nothing
>>customized.
>>
>>The files I am using are here:
>>http://www.stwing.upenn.edu/~durduran/tmp/distr/
>
>>The output is  broken -- Firefox can't open it with the following error.
>
> Try upgrading the tex4ht instalation with the files from
>
>     http://www.cse.ohio-state.edu/~gurari/TeX4ht/bugfixes.html
>
>
>>(2) references are listed but appear as: ``�:mbox:1,�:mbox:2'' instead of
>>supersciprt 1,2 etc.
>
> I modified the bugfixes distribution to take care of the problem along the
> approach suggested by Dan (thanks Dan!).
>
> -eitan
>



I thank Dan and Eitan for their help.

Eitan, under the instructions for an ``upgrade'' (which I assume bugfixes
should be applied as such?), it says:

``[Invocation Scripts] Find where htlatex resides (e.g., \u2018which
htlatex\u2019). Save the files htlatex, httex, httexi, and htcontext
elsewhere and get new scripts from
bin/linux/
for a replacement.''


but there is no such thing in
http://www.cse.ohio-state.edu/~gurari/TeX4ht/fix/tex4ht-1.0.2008_02_26_0908.tar.gz

should it read as bin/unix instead? (I tried that, seems fine)

I am checking if this fixed my problem yet.


--------------------------------------------------------------------------------------
       ---- ---------------------- --------------------------------------------------
From: Richard Koch <[email protected]>
Sender: [email protected]
To: [email protected],
       TeX on Mac OS X Mailing List <[email protected]>
Cc:
Subject: Re: [OS X TeX] convert .tex file to .html
Date: Sat, 17 Nov 2007 19:25:47 -0800

Enrico,

What TeX distribution are you using? If it is TeX Live or gwTeX, then
TeX4ht should be already installed in the distribution.

The latest version of TeXShop has an "engine" file for \ this program.
It is in

       ~/Library/TeXShop/Engines/Inactive

If you don't find it there, but have TeXShop 2.14, then move the
entire folder ~/Library/TeXShop/Engines to your desktop. The next time
TeXShop starts, it will create the default folder, which will include
a TeX4ht folder and htlatex.engine. To use it, move htlatex.engine
from the inactive folder to  ~/Library/TeXShop/Engines.

To use this program, enter standard latex source in the Source Window.
In the pulldown menu next to the Typeset button, select htlatex. When
you push the Typeset button, your latex source will be typeset and
then converted to an html file, and this html file will open in Safari.

You can make this happen automatically (without selecting htlatex) by
entering

       %!TEX TS-program = htlatex

near the top of your source file.

Dick Koch
[email protected]
====================
From: Thomas Rike <[email protected]>
Sender: [email protected]
To: [email protected],
       TeX on Mac OS X Mailing List <[email protected]>
Cc:
Subject: Re: [OS X TeX] convert .tex file to .html
Date: Sat, 17 Nov 2007 19:37:15 -0800

Enrico,

I am no expert, but on the command line I first change my directory to
the directory containing the latex file (Just drag and drop the folder
works fine). Then type htlatex nameofyourfile.tex

For graphics I think you will need ghostscript and Imagic which I got
with the i-Intaller.

If you are not working on the command line then a very effective gui
is SimpleTeX4ht (version 1.8). Just download, install and run. Select
the button ``Convert'' and you can browse your computer for the file you
want to convert to html.

http://www.apple.com/downloads/macosx/unix_open_source/simpletex4ht.html

HTH, Tom Rike

--------------------------------------------------------------------------------------


--------------------------------------------------------------------------------------
http://www.sun.com/software/star/odf_plugin/

--------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------
> > The problem was in missing hypertext fonts, as indicated by the

> I think that's only one of two errors. Tex4ht should produce valid mml
> files even if the .htf files are missing, as TeX allows users to define
> their own fonts. Unknown Characters could be replaced by a square or a
> question mark as it is used in other contexts.

I believe it will be a wrong approach, as users might get improper
content and in some cases are unlikely to notice it.  Moreover, the
philosophy of OpenOffice, and of quite a few advocates of XML, is to
maintain zero tolerance for errors. So not allowing improper data is
consistent with that philosophy.

The squares or question marks OpenOffice and other browsers display
are not due to errors in the exhibited files. They point to missing
fonts in the platforms on which the browsers run.

A solution to a missing font problem should not be that difficult to
achieve by replacing fonts.  For instance  dvi2dvi seems to be
a utility designed for that purpose (http://packages.debian.org/sid/dvi2dvi).

Technically, it probably will be easy to add an option for tex4ht to
output, say, a question mark where characters are missing.  In case
you strongly like to have such an option, I'll provide it.

-eitan

--------------------------------------------------------------------------------------

biblatex
--------------------------------------------------------------------------------------

FWIW, I mirror Eitan's web pages (and distributions) at
ftp://tug.org/mirror/www.cse.ohio-state.edu/~gurari/TeX4ht.  Maybe CTAN
could easily mirror that and hence be up to date?  In particular, the
file
ftp://tug.org/mirror/www.cse.ohio-state.edu/~gurari/TeX4ht/fix/tex4ht.tar.gz
is the latest bug fix release, I believe.

--------------------------------------------------------------------------------------






--------------------------------------------------------------------------------------
MacTeX installs the full TeX Live 2007, with virtually no
changes. Indeed, you can go to

       http://www.tug.org/mactex/whatgetsinstalledwhere.html

to see exactly how we configure TeX Live.

--------------------------------------------------------------------------------------


I've done this with MetaPost graphics.  The first step is to get
yourself a PDF output as you suggested in (b).  I've tried various
techniques, but I've decided for myself that this is the "best"
solution (quality wise).  You'll need the following tools:

1) pstoedit --> http://www.pstoedit.net/pstoedit
2) skencil --> http://www.skencil.org
3) inkscape --> http://www.inkscape.org

In Gentoo Linux I needed Skencil in order for Inkscape to have SKencil/
SKetch support; however, pstoedit and Inkscape are the only two
utilities *directly* used.  If your version of Inkscape has SK support
without installing SKencil, then that's good.

Let's assume your PDF is foo.pdf.  Then do the following:

pstoedit -page 1 -rgb -dt -psarg "-r9600x9600" -f sk foo.pdf foo.sk

This will produce a SKencil/SKetch format of page 1 of your document.
-rgb uses RGB colors and -dt tells pstoedit to trace your fonts.  This
tracing gives a larger filesize, but it ensures that your output text
looks exactly like your text in your PDF.  The -psarg "-r9600x9600"
tells GhostScript to process stuff at 9600dpi.

Note that pstoedit can export to SVG directly, but I've found that the
results aren't as good as going through SK and using Inkscape to
convert the SK to SVG.

After you get foo.sk, you can then do

inkscape -z -f foo.sk -l foo.svg

Hopefully this will be to the quality and filesize that you want.


--------------------------------------------------------------------------------------
http://ooolatex.sourceforge.net/
--------------------------------------------------------------------------------------

To: =?iso-8859-2?B?QmFyYm9yYSBIYXbt+G924Q==?= <[email protected]>
Subject: TeX4ht for LaTeX to DocBook
In-Reply-To: <000701c73441$e95d8f90$7601a8c0@barbora>
References: <000701c73441$e95d8f90$7601a8c0@barbora>
X-Mailer: VM 7.04 under 21.1 (patch 14) ``Cuyahoga Valley'' XEmacs Lucid
--text follows this line--


Hi Barbora,

Would the following (unsafe) configuration do the job for you.

 \newtoks\toks
 \Configure{$}{}{}{\getMath}
 \def\getMath#1${\relax$\fi
                 \expandafter\toks\expandafter{\gobble#1}%
                 \HCode{<mathphrase>\the\toks</mathphrase>}}
 \def\gobble#1{}

-eitan

> I need to let all the mathematics as it is and only wrap
> it in <mathphrase></mathphrase>.
>
> I.e. $\sqrt{a^b}$ will be <mathphrase>\sqrt{a^b}</mathphrase>
>
> Is it possible?
>
> I am able to wrap it with
>
> \Preamble{xhtml}
> \begin{document}
> \Configure{$}{\HCode{<mathphrase>}}{\HCode{</mathphrase>}}{}
> \EndPreamble
>
> in my configuration file, but I don't know how to forbid processing of the
> math code.

Barbora,

Another (unsafe) option:

 \newtoks\toks
 \Configure{$}{}{}{\getMath}
 \def\getMath#1${\relax$\fi
                 \expandafter\toks\expandafter{\gobble#1}%
                 \HCode{<mathphrase>}%
                 \bgroup
                     \noindent
                     \Configure{HtmlPar}{}{}{}{}
                     \ConfigureEnv{verbatim}{}{}{}{}
                     \immediate\openout15=tempmatheq.tex
                     \immediate\write15{\string\begin{verbatim}\the\toks
                                        \string\end{verbatim}}%
                     \immediate\closeout15
                     \input tempmatheq.tex \noindent
                 \egroup
                 \HCode{</mathphrase>}}
 \def\gobble#1{}

-eitan

> I found a problem, because the symbols < and >
> can't be in the mathematic text as they are used for tags. I hope that
> changing it into &lt; and &rt; will help.



Barbora, Try the following variant. -eitan

 \newtoks\toks
 \Configure{$}{}{}{\getMath}
 \def\getMath#1${\relax$\fi
                 \expandafter\toks\expandafter{\gobble#1}%
                 \HCode{<mathphrase>}%
                 \bgroup
                     \noindent
                     \Configure{HtmlPar}{}{}{}{}
                     \ConfigureEnv{verbatim}{}{}{}{}
                     \Configure{verbatim}{ }{ }
                     \immediate\openout15=tempmatheq.tex
                     \immediate\write15{\string\begin{verbatim}\the\toks
                                        \string\end{verbatim}}%
                     \immediate\closeout15
                     \input tempmatheq.tex \noindent
                 \egroup
                 \HCode{</mathphrase>}}
 \def\gobble#1{}


> It works. But when there is a space in math, it is replaced by &#x00A0;

--------------------------------------------------------------------------------------

http://www.alanwood.net/unicode/

Alan Wood�s Unicode Resources
Unicode and Multilingual Support in HTML, Fonts, Web Browsers and Other Applications
--------------------------------------------------------------------------------------

> > How about a command similar to the following one?
> >
> >      t4ht try  -d'~/WWW/temp/foo\ foo/'
> >
>
> To get to that requires changing the htlatex script to quote the
> argument to t4ht.

I don't think we can go for htlatex modifications, as the outcome
might also depend on the operating system in use.  In any case, I
modified t4ht.c to allow for FULLY quoted arguments such as

     t4ht try  '-d~/WWW/temp/foo\ foo/'
     t4ht try  "-d~/WWW/temp/foo foo/"

and in the case of htlatex

 htlatex file " "   ``'-d~/WWW/temp/foo foo/'''

--------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------


>Ok. I think I can fix my problem editing the tex4ht.env file.
>I can read in the file /usr/share/doc/tex4ht/README.Debian
>that TeX4ht can use three different way to convert images:
>
>DEFAULT: with dvipng. I think I'm using it right now.
>UPSTREAM: using ImageMagick suite, so using ``convert''
>NETPBM: with the netpbm suite. Never heard before.
>
>One of them is active, the other scripts are commented
>(how? with spaces?)

My guess the relevant parts in the Debian environment file have the
following outline.

   <convert>
    G.png
    Gdvips ...
    Ggs ...
   G.svg
   Gdvips ...
   Gpstoedit ...
   G.
   Gdvips ...
   Gconvert ...
   </convert>

   <netpbm>
   .......
   </netpbm>

    <dvipng>
   G.png
   Gdvipng ...
   G.gif
   Gdvipng ...
   G.
   Gdvips ...
   Gconvert ...
    </dvipng>

The dvipng segment is the active one as its enclosing tags are
commented out, with spaces before the opening tag <dvipng> and the
closing tag </dvipng>.  The dvipng segment consists of three
parts:

* A G.png and a G.gif parts invoking the dvipng
 utility to satisfy requests for png and gif bitmaps

* A G. part invoking dvips+convert to handle requests for other
 formats of bitmaps

Spaces before the records of the first two parts will comment out the
dvipng subscripts, and forward all the requests to the subscript in
the third part.

Alternatively, remove the spaces before the <dvipng> and </dvipng> tags
to deactivate the script they enclose, and place spaces before the
<convert> and </convert> tags to activate the enclosed script.

>In which language is written the tex4ht.env file? Python? Perl?
>Can somebody show me how to edit the tex4ht.env file?

The file cosists of a specially designed script to be interpreted by
the tex4ht utilities. The tex4ht.env entry in the index of

 http://www.cse.ohio-state.edu/~gurari/TeX4ht/mn.html

offers some clues to its content.  Modifications to the file can be
done with editors capable of working with plain text.

-eitan

--------------------------------------------------------------------------------------
OS-X:
                   (/usr/local/teTeX/share/texmf.local/tex4ht/base/tex4ht.env)
                   (/usr/local/teTeX/share/texmf.tetex/fonts/tfm/public/cm/cmr10.tfm)
                   --- warning --- Couldn't find font `cmr10.htf' (char codes:   0--127)
         Can you show me the messages issued� for


         � � tex4ht� -hF -hv� test

That gave me a bit more to work with, I added�



TEX4HTFONTSET=alias,iso8859��

TEX4HTINPUTS=.;$TEXMF/tex4ht/base//;$TEXMF/tex4ht/ht-fonts/{$TEX4HTFONTSET}//��

T4HTINPUTS=.;$TEXMF/tex4ht/base//��



tex4ht.c (2006-07-14-10:23 kpathsea)

tex4ht -hF

� -hv

� test

(/usr/local/teTeX/share/texmf.local/tex4ht/base/tex4ht.env)

given TEX4HTFONTSET = alias,iso8859

setting TEX4HTFONTSET={iso8859/1,ascii,alias,mozilla,unicode,alias,iso8859}

texmf.cnf = /usr/local/teTeX/texmf.cnf

TEX4HTINPUTS =
:{/Users/kai/Library/texmf,!!/usr/local/teTeX/share/texmf.local,!!/usr/local/teTeX/share/te\
xmf.gwtex,!!/usr/local/teTeX/share/texmf.tetex,!!/usr/local/teTeX/share/texmf}/tex4ht/base//\
:{/Users/kai/Library/texmf,!!/usr/local/teTeX/share/texmf.local,!!/usr/local/teTeX/share/tex\
mf.gwtex,!!/usr/local/teTeX/share/texmf.tetex,!!/usr/local/teTeX/share/texmf}/tex4ht/ht-font\
s/{iso8859/1,ascii,alias,mozilla,unicode,alias,iso8859}//

(/usr/local/teTeX/share/texmf.local/tex4ht/ht-fonts/iso8859/1/charset/unicode.4hf)


--------------------------------------------------------------------------------------

> I downloaded the recent release tex4ht-1.0.2006_07_23_0130, but where
> can I find the documentation for installing it?

I should wrie such instructions... The idea is just to replace the old
files/directories with the new ones:

  bin/ht/perl/mk4ht.perl
  bin/ht/unix/ht*
  bin/mac/*
  texmf/*



and refresh lR-s, e.g., with the texhash command.


--------------------------------------------------------------------------------------

The problem has vanished.  It
might be connected with the update of tetex-bin that I just made on the
sid box.

--------------------------------------------------------------------------------------

a side note: recently I released TeXML 2.0 beta1. I expect no issues,
and I'm  going to announce TeXML 2.0 in the middle of July. The new
TeXML site is: http://getfo.org/texml/ .

[email protected] wrote:
> Has anyone taken a look at using XSL to give needed functionality to
> TeXML?
>
> TeXML on the level of TeX... on its own its not too useful.  However,
> XSL was specifically designed for doing markup, similar to the macros
> of LaTeX.  Is there a good set of XSL scripts that anyone has written?

There are a lot of them, but they are private. The only public script
I'm aware of is XML2TeXML by Wolfgang Jeltsch
(http://xml2texml.sourceforge.net/ ). And I'm starting working on a
DocBook to TeXML converter in the near future.

--------------------------------------------------------------------------------------
To: [email protected]
Cc: Barbara Beeton <[email protected]>, Anna Hattoy <[email protected]>
Subject: documentation for dratex (fwd)
Date: Fri, 02 Jun 2006 10:26:22 -0400 (EDT)

hi, eitan,
when i tried to send this message to you, using
the e-mail address i got from the tug office,
it was returned.  i found the address i'm using
now by searching the osu.edu web site.  it seems
that the university has made your previous
incarnation unreachable in a lot of places ...
                                                       -- bb

---------- Forwarded message ----------
Date: Fri, 2 Jun 2006 10:20:23 -0400 (EDT)
From: Barbara Beeton <[email protected]>
To: [email protected]
Cc: Barbara Beeton <[email protected]>, Anna Hattoy <[email protected]>
Subject: documentation for dratex

hello, eitan,
we've received a manuscript for publication in
one of our journals that calls for
\usepackage{DraTex}.

before we can decide whether this should be
installed here for production, we need to look
at the documentation.  but the documentation
isn't at ctan -- the readme file says that it
can be found at
  http://www.cis.ohio-state.edu/~gurari/systems.html

an attempt to reach that url results in
  www.cis.ohio-state.edu cannot be found.  please
  check the name and try again.

what is the current location, please?  and
please update the readme file for this and any
other material at ctan that has this reference.

thanks.

--------------------------------------------------------------------------------------

mk4ht xhlatex convtest "html,jsmath"

How about trying the `jslatex' option.  It doesn't preserve the
original latex math. Instead, it produces html with normalized latex
math.

-eitan

> Thanks for the tip, I had already tried something like that, but Word
> doesn't like it. Also, going through OpenDocument doesn't quite get the
> formulae right..
>
> I am now trying to edit the mathml configuration so that it pastes the
> LaTeX


--------------------------------------------------------------------------------------

> > There is an option to send output files (.html,.css,.png) files to
> > a directory other than the current directory. For example
> >
> >    htlatex sample2e "" "" "-d~/home_page/test"
> >
> > will send the output files to ~/home_page/test.

> Well, it would be nice if the temporary directory was automatically
> created if it doesn't exist.  But what I'd appreciate even more is if it
> would (or is?) possible to permanently set the -d switch, so that I
> don't need to type it every time.

That can be done by adding in the htlatex-like script files the -d
switch to the t4ht records, e.g.,

t4ht ... -d~/WWW/temp/

Similarly, within mk4ht add the -d switch to the trailing quoted "..."
segments, e.g.,

 "ht",   "htlatex",     "latex",      "", "", "-cvalidatehtml -d~/WWW/temp/",

It doesn't seem appropriate to introduce such a switch permanently
as different users might prefer different directories for their
output.

I have the switch -d~/WWW/temp/ set in my private scripts. I insert
the switch -d./ in the command line, when I want to overwrite that
switch to have the outcome stay in the work directory.

> I've read the documentation about configuration files, but it seems this
> only relates to (La)TeX code, not to a configuration file for
> mk4ht/htlatex/...  Did I miss something?

Try the command `t4ht' without arguments.  It will show the available
options.  I'll modify the documentation to deal with issue.

--------------------------------------------------------------------------------------

gs -sDEVICE=png256 -sOutputFile=figure1.png -dEPSCrop -r600 -dBATCH
    -dNOPAUSE figure1.eps

--------------------------------------------------------------------------------------

> As far as I saw, the pictures inserted in the OO document, have normally
> a size of appr. 1cm without recognizing the original ratio. Is it
> possible to recognize either the size or the ratio (then resizing is
> very simple) for pictures ? I normally use \includegraphics, most of the
> time with the option [width=1.0\textwidth] to insert my pictures. If it
> helps I could send you a sample file.

TeX4ht specifies sizes only for bounding boxes, when it gets them from
latex.  I don't know how to provide sizes in general, as dimensions
for paper output quite often result in distorted dimensions within XML
presentations.  I don't understand why OpenOffice uses 1cm dimensions
for figures that are offered without requested dimensions---I would
expect the natural sizes of the figures to be preferable.


> You're right. The converted pictures are all in a good size. If I click
> in OO on one picture and change it to
--------------------------------------------------------------------------------------
comp.text.tex #353104 (0 + 4 more)                                                      [1]
Date: Thu Mar 23 18:29:21 EST 2006
From: USENET-news <[email protected]>
[1] latex2html and wiki
Lines: 19

Hello Texnicians,

I have found that wiki is a great way to publish a doc so
that the other developers can collaborate on it, but I
prefer to start that document in LaTeX initially. So I used
latex2html to convert it to HTML and used copy-n-paste to
copy from the HTML to a WIKI page. This gave me a document
that the other developers (who are not TeX aware) can work
with. But this was rather tedious to do.

I have seen several attempts to write latex2wiki but they
all seem quite poor. It occurs to me that it might be better
to take latex2html and add a mode that would allow WIKI
output as an option. What do you guys think? Does this sound
reasonable? Is latex2html still supported/maintained/developed?

Regards,

Andrew Marlow

> Most probably it is well-defined. Most probably he assumes some
> particular wiki engine with some fixed wikitext syntax.

Yes, I assume mediaWiki.

--------------------------------------------------------------------------------------

> >The problem is in missing fonts for the browser to display
> >the characters &#x2329; and  &#x232A;.
>
> These characters, and a bunch of others from what we can see here
> are sortof at the ragged edge of font world as far as default browsers
> are concerned.  We have the default installs of IE6 and Firefox 1.5
> loaded here, to emulate what we would expect the average user to use.
> >From what we can see here, these characters do not come loaded by default
> with
> the ability to render these characters...  Or are off base here somehow?

Look at the messages issued by tex4ht.c for the location of the active
unicode.4hf file.  Copy that file to your work directory. You can
redefine any character to your liking. For instance, an entry

   '&#x2329;' ''    'foo' ''

will substitute the character &#x2329; with `foo' everywhere.  On the
other hand, an entry asks for a pictorial substitution where allowed
and `foo' where pictures are not allowed.

   '&#x2329;' ''    'foo' '1'

-eitan










--------------------------------------------------------------------------------------
http://www.simpletex4ht.free.fr/
--------------------------------------------------------------------------------------

http://fedoraproject.org/extras/4/i386/repodata/repoview/__nogroup__.group.html
--------------------------------------------------------------------------------------

  #help [email protected] archives

  W3C home > Mailing lists > Public > [email protected] > January 2006

Re: mathml applications

    * This message: [ Message body ] [ Respond ] [ More options ]
    * Related messages: [ Previous message ] [ In reply to ]


   From: Bruce Miller <[email protected]>
   Date: Mon, 09 Jan 2006 10:54:41 -0500
   Message-ID: <[email protected]>
   To: Neil Soiffer <[email protected]>
   CC: Public MathML mailing list <[email protected]>


Neil Soiffer wrote:
> This week, I will be giving an update to a talk I gave last year about
> MathML applications.  If anyone has some new applications not listed on
> http://www.w3.org/Math/Software/ or if you have an update to info listed
> there, please send that info so I can incorporate it into the talk.

There's my LaTeXML, which I've been meaning to submit to the software
list, once I get a breath.
See  http://dlmf.nist.gov/LaTeXML/
for description, documentation and a (somewhat out-of-date) example from DLMF.

A brief description (and apologies, in advance, for beating my own drum):

LaTeXML attempts to mimic TeX's behaviour as fully as possible, but interprets
TeX via a Perl program, rather than using TeX's engine itself.  Thus extension
and customization can be done using perl modules, as well as TeX code.

It processes whole documents (although it can be induced to process fragments,
such as formula), converting the document to a LaTeXML DocType that corresponds
to LaTeX's constructs.  This avoids the information lost by direct conversion
to html. This output can then be converted to html (w/images for math),
xhtml (w/MathML) or other formats using XSL stylesheets (included for html/xhtml).

[In principle, but not practically, it could also be made to directly generate
other XML formats: Ie. the processing engine is (almost) separated from the
document generation. However, since the vocabularies are so large it's nontrivial
to replace the generation definitions.]

As for MathML: the program attempts to parse the formula into, at least,
a parse tree.  This is necessary to generate "Good" presentation MathML.
It is close to enough to generate content MathML, as well, although
some major sticking points and ambiguities, such as the meaning of superscripts
and the handling of unknown symbols, are the subject of further development.
To increase the quality of the parsing, an author can either use special
markup to disambiguate the notations, or use document-specific external declarations.


> The audience will likely have a strong TeX background.  If you have had
> any experience (pro or con) with the various TeX-to-XHTML+MathML
> converters in the last year, I'd like to hear about that so I can pass
> it along.

I've been using it pretty heavily in the DLMF (Digital Library of Mathematical
Functions) project.  I've processed 26 chapters (must be equivalent to
6-700 pages) so far; we're preparing a draft of the site for evaluation
(alas, the editors are keeping it close to the chest, however).
So, I'd have to say my experience is positive :>

Michael Kohlhase has also been using LaTeXML in developing his STeX system.

> Thanks,
>
> Neil Soiffer
> Senior Scientist
> Design Science, Inc.
> www.dessci.com <http://www.dessci.com>
> ~ Makers of Equation Editor, MathType, MathPlayer and MathFlow ~


--
[email protected]
http://math.nist.gov/~BMiller/

  Received on Monday, 9 January 2006 15:54:31 GMT

    * This message: [ Message body ]
    * Previous message: Paul Libbrecht: "Re: mathml applications"
    * In reply to: Neil Soiffer: "mathml applications"

    * Mail actions: [ respond to this message ] [ mail a new topic ]
    * Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by
      author ]
    * Help: [ How to use the archives ] [ Search in the archives ]

  This archive was generated by hypermail 2.2.0+W3C0.50 : Monday, 9 January 2006
  15:54:32 GMT

--------------------------------------------------------------------------------------
http://www.activemath.org/amwiki/index.php/Conversion-efforts-to-content-math
--------------------------------------------------------------------------------------
omp.text.tex #347601 (0 + 2 more)                                  (1)--[1]
From: Troy Henderson <[email protected]>
[1] Re: eps to svg
Lines: 15
Date: Sun Jan 01 12:59:14 EST 2006

Convert it to PDF using, say, epstopdf.  After that, use my pdf2svg
converter located at

http://www.tlhiv.org/MetaPost/tools/mptosvg/

If you have any trouble, let me know.

Troy Henderson
Assistant Professor
Department of Mathematical Sciences
252 Thayer Hall
United States Military Academy
West Point, NY  10996
(845) 938-5649
http://www.tlhiv.org

--------------------------------------------------------------------------------------
Clarify:

9. \Configure{CutAt} {unit} {before-button} {after-button}

10. \Configure{+CutAt} {unit} {before-button} {after-button}
--------------------------------------------------------------------------------------


  One more request.
  Would be so kind as to generate the SINGLE page HTML
  from http://www.cse.ohio-state.edu/~gurari/TeX4ht/
  It will make searching much easier.
  Simple `find' it will suffice. Currently
  I keep all the pages on my hard disk and use
  grep instead.

From: Wlodek Bzyl <[email protected]>
To: Eitan Gurari <[email protected]>
Subject: Re: TeX4ht: SVG: Wrong walue of the TYPE attribute in the generated
OBJECT tag
Date: Mon, 24 Oct 2005 21:45:42 +0200

--------------------------------------------------------------------------------------

One suggestion though is, that you make it more obvious that one should
really study the .log file. (I normally don't do this.) I have seen that
you have put somewhere a hint to the mktex4ht.4ht index, but I cannot
remember that I have seen that index on your website. That would be very
much welcome. In fact, but the sources as html online. Then one could
more easily refer to it.

--------------------------------------------------------------------------------------

The (behind the scenes) process of converting the PDF to SVG above uses the following three external programs:

  1. pstoedit to convert the PDF to SKencil/SKetch format
  2. skconvert to convert the SKencil/SKetch file to SVG
  3. gzip to compress the SVG

The actual commands that are executed are:

   * pstoedit -page 1 -dt -psarg

http://www.nongnu.org/skencil/
--------------------------------------------------------------------------------------

> http://baruch.ev-en.org/proj/chktex/


--------------------------------------------------------------------------------------

http://www.dcs.fmph.uniba.sk/~emt/


There is absolutely no reason why this should be, given that an excellent
implementation of direct one-click real-time lossless translation of TeX
math to SGML and back again has existed for a decade (in the EuroMath
editor).


--------------------------------------------------------------------------------------
From: Herbert Schulz <[email protected]>
Sender: <[email protected]>
To: "TeX on Mac OS X Mailing List" <[email protected]>
Subject: Re: [OS X TeX] TeX to word on Mac
Date: Sun, 26 Jun 2005 09:04:44 -0500


On Jun 25, 2005, at 11:49 PM, George Ghio wrote:

>
> Open terminal and type;
>
> Welcome to Darwin!
> George-Ghios-Computer:~ georgeghio$ cd /Users/georgeghio/Desktop/TeX
>
> Hit return & type
>
> George-Ghios-Computer:~/Desktop/TeX georgeghio$ htlatex /Users/
> georgeghio/Desktop/TeX/TheFlight.tex
>
> Hit return I then get the html file,
>
> I then open the html file with Explorer,
>
> Select all,
>
> Copy,
>
> Paste into word.
>
> If I try to open the html file with word  MS does what it does best
> and crashes.
>
> Oh well, it works and I end up with a word document.
>
> Thank you and everyone else for taking the time to keep me from
> becoming a basket case.
>
> George L Ghio
>

Howdy,

Now that you know how to do it in terminal, here's a way to do it
from within TeXShop.

Go to the ~/Library/TeXShop/Engines/ folder (~ is your HOME
directory) and duplicate one of the .engine files there. Rename it
htlatex.engine and open it up (double clicking will open it up in
TeXShop). Remove the contents of the file and put the following lines
into that file:

#!/bin/bash
htlatex "$1"

and save the file (again in ~/Library/TeXShop/engines and with the
name htlatex.engine).

At the beginning of any .tex file you want to be processed with
htlatex put the line

%!TEX TS-program = htlatex

and then process the file with Cmd-T (Typeset). As an alternative you
can simply choose the htlatex engine in the dropdown menu in the
toolbar.

Good Luck,

Herb Schulz
([email protected])


--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:[email protected]>

--------------------------------------------------------------------------------------
SVG :


==> pstoedit :
I tried pstoedit -f svg-plot file.eps file.svg, but that did not work well.
The greek letters were omitted and the non-greek letter did overlap.


==> Inkscape (http://www.inkscape.org/download.php)

==> TLC2 mentiones dvi2svg <URL:http://www.activemath.org/~adrianf/dvi2svg/>,
pstoedit and an article in TUGboat:

Michel Goossens and Vesa Sivunen
LaTeX, SVG, Fonts
TUGboat 22(4) 269-279, 2001


 http://www.tug.org/TUGboat/Articles/tb22-4/tb72goos.pdf

==> http://dvisvg.sourceforge.net/

-----------------------------------------------------------------------------------
---

gcc -Wall -o tex4ht tex4ht.c -I/usr/local/teTeX/include -L/usr/local/teTeX/lib -DKPATHSEA -DHAVE_DIRENT_H -DHAVE_STRING_H -lkpathsea

su
rm -R /usr/local/teTeX/share/texmf.local/tex4ht/ht-fonts
mv -R /Users/eitangurari/Desktop/downloads/ht-fonts  /usr/local/teTeX/share/texmf.local/tex4ht/.
mv /Users/eitangurari/Desktop/downloads/newt4ht/bin/mac/tex4ht /usr/local/teTeX/bin/powerpc-apple-darwin-current/.
cp /Users/eitangurari/Desktop/downloads/newt4ht/texmf/tex4ht/base/unix/tex4ht.env /usr/local/teTeX/share/texmf.local/tex4ht/base/.
texhash
exit

--------------------------------------------------------------------------------------

Use latex (with preview.sty) and dvipng.  dvipng will even output the
ascender and descender values so that inline math can be displayed
with correct vertical positioning.

--------------------------------------------------------------------------------------
add the outcome of javahelp
--------------------------------------------------------------------------------------

WordML2LaTeX is a meeting point between two titans in word processing:
Microsoft Word 2003 and LaTeX2e.

It is a XSL stylesheet that transforms a Word document (WordML) in a
LaTeX2e source. With it You can use Word as a front end for LaTeX.

Location on CTAN: /support/WordML2LaTeX

--------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------

On mac OS X:

%% t4ht utility, sharing files with TeX4ht
TEX4HTFONTSET=alias,iso8859
TEX4HTINPUTS = .;$TEXMF/tex4ht/base//;$TEXMF/tex4ht/ht-fonts/{$TEX4HTFONTSET}//
T4HTINPUTS=                     .;$TEXMF/tex4ht/base//

--------------------------------------------------------------------------------------
Using fonts of (La)TeX in stylesheets of WWW-pages
Date: Wed Aug 25 06:42:40 EDT 2004
Lines: 20



Yes! It is possible:

http://iki.fi/juhtolv/pelle.html
http://iki.fi/juhtolv/css-download/
http://iki.fi/juhtolv/css-download/readme.txt

You'd better use Mozilla, Mozilla Firefox, Galeon, Konqueror or Opera,
because they support alternative stylesheets and MSIE don't.

I'd like to support cm-super, too, but it is fscking huge package and it
is real pain in the ass to find right font from those gazillion files,
because they have almost meaningless fontnames.

--------------------------------------------------------------------------------------

m-tex4ht.tex

--------------------------------------------------------------------------------------
MS:

>  run
>
>      htlatex  analysis.tex >printout.txt 2>&1
>
> to get both output and stderr to file
>
--------------------------------------------------------------------------------------
To: Maarten Wisse <[email protected]>
Subject: Gentoo ebuild, or, Pay my debt :-)
In-Reply-To: <[email protected]>
References: <[email protected]>
X-Mailer: VM 7.04 under 21.1 (patch 14) ``Cuyahoga Valley'' XEmacs Lucid
--text follows this line--

Maarten,

You owe me nothing! It is a pleasure for me to work with you, and that
is more than enough for me.

The pointer regarding Gentoo might become useful to me.  I hope to
find a few days in the coming months to set up a server running Linux
and I was wondering which distribution to use.  So from your
experience Gentoo seems to be a good choice.

I placed in the bug fixes page a pointer to the zipped file renamed
to tex4ht-20040211.zip, and will fix the name in the main page next
year when I'll revise the home page.

Thanks, -eitan



> Given that you so gratiously helped me, I asked myself how I could do
> something back and also, to help others with this great tool, especially
> those who use my favourite Linux distribution, Gentoo Linux, you probably
> know, the distro which is entirely managed from source with the intelligent
> Portage system. I like it very much wont switch to another distro so easily
> as I did with RedHat or SuSE. But, this is still a matter of fact:
>
> http://bugs.gentoo.org/show_bug.cgi?id=33259
>
> no ebuild, so no automated install of TeX4ht is available yet.
>
> I'm not a very able ebuild writer, but it shouldn't be difficult to get this\

> going. However, one thing which immediately came to my mind: you don't
> release the source distribution of TeX4ht with a name indicating its version\