[XeTeX] XeTeX, fancy headers and htlatex

Rene Borgella macmechanic at fastmail.fm
Tue Jan 30 15:29:59 CET 2007


Hello everyone:

Thanks for the help everyone!

First, the specific problem I had with a newly installed TeXLive 2007
system was that the headers gave me weird characters that were colored
red. Interestingly, here's what happened:

\fancyhead[L]{\textsf{Field Biology --- }Fall 2006}

Gave me a header where 'Field Biology ----' came out as the weird
characters in Red and the 'Fall 2006' was rendered correctly.


Following the example code supplied by Peter, the headers now work
correctly. Quite honestly, I don't know exactly why but that's ok -- it
works ;-).

Now, my next problem/question . . .

How do I get htlatex to work with XeTex? My former setup (Gerben's
i-installer and then MacTex) worked well when I went from Latex to html.
   I have just tried going from XeTex to html using htlatex on the
command line, and I get this message in terminal:

ic017245:~/Desktop/tex_testng rene$ cd /Users/rene/Desktop/tex_testng/
ic017245:~/Desktop/tex_testng rene$ htlatex field_notes2.tex
This is pdfTeXk, Version 3.141592-1.40.1 (Web2C 7.5.6)
 %&-line parsing enabled.
entering extended mode
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax,
dumylang, noh
yphenation, arabic, basque, bulgarian, coptic, welsh, czech, slovak,
german, ng
erman, danish, esperanto, spanish, catalan, galician, estonian, farsi,
finnish,
 french, greek, monogreek, ancientgreek, croatian, hungarian,
interlingua, ibyc
us, indonesian, icelandic, italian, latin, mongolian, dutch, norsk,
polish, por
tuguese, pinyin, romanian, russian, slovenian, uppersorbian, serbian,
swedish,
turkish, ukenglish, ukrainian, loaded.
(./field_notes2.tex
(/usr/local/texlive/2007/texmf-dist/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/usr/local/texlive/2007/texmf-dist/tex/latex/base/size11.clo))
(/usr/local/texlive/2007/texmf-dist/tex/generic/tex4ht/tex4ht.sty)
(/usr/local/texlive/2007/texmf-dist/tex/generic/tex4ht/usepackage.4ht)
(/usr/local/texlive/2007/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2007/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/local/texlive/2007/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/local/texlive/2007/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/local/texlive/2007/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/local/texlive/2007/texmf-dist/tex/latex/geometry/geometry.sty
(/usr/local/texlive/2007/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2007/texmf-dist/tex/xelatex/xetexconfig/geometry.cfg))
(/usr/local/texlive/2007/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty)
(/usr/local/texlive/2007/texmf-dist/tex/latex/ltxmisc/parskip.sty)
(/usr/local/texlive/2007/texmf-dist/tex/latex/booktabs/booktabs.sty)
(/usr/local/texlive/2007/texmf-dist/tex/latex/wrapfig/wrapfig.sty)
(/usr/local/texlive/2007/texmf-dist/tex/latex/mdwtools/mdwlist.sty)
(/usr/local/texlive/2007/texmf-dist/tex/latex/marvosym/marvosym.sty)
(/usr/local/texlive/2007/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2007/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2007/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2007/texmf/tex/latex/config/graphics.cfg)
(/usr/local/texlive/2007/texmf-dist/tex/latex/graphics/dvips.def)))
(/usr/local/texlive/2007/texmf-dist/tex/xelatex/fontspec/fontspec.sty
(/usr/local/texlive/2007/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
!
 ********************************************
 * XeTeX is required to compile this document.
 * Sorry!
 ********************************************.
\RequireXeTeX ...********************************}
                                                  \endgroup \fi
l.18 \RequireXeTeX

I am not sure, but this seems to say that somehow XeTeX isn't being
properly called.  Is that correct?


FWIW, I am mostly interested in having some method where I can write
documents that will work well for printing and can easily convert to html.

TIA!

Rene'



More information about the XeTeX mailing list