![使用 htlatex 将 LaTeX 转换为 HTML 后,内容页、页码和一些图像丢失](https://linux22.com/image/245359/%E4%BD%BF%E7%94%A8%20htlatex%20%E5%B0%86%20LaTeX%20%E8%BD%AC%E6%8D%A2%E4%B8%BA%20HTML%20%E5%90%8E%EF%BC%8C%E5%86%85%E5%AE%B9%E9%A1%B5%E3%80%81%E9%A1%B5%E7%A0%81%E5%92%8C%E4%B8%80%E4%BA%9B%E5%9B%BE%E5%83%8F%E4%B8%A2%E5%A4%B1%20.png)
我正在尝试制作 PDF 和 HTML 格式的用户手册。我已经使用生成了 HTML 文件,htlatex
但其中缺少内容页、页码和一些图片。我的图片都是 JPG 格式。这是我的主.tex
文件:
\documentclass[11pt,a4paper]{report}
\usepackage{fancyhdr}
\makeatletter
\@ifpackageloaded{tex4ht}{%
\usepackage[dvips]{color,graphicx}
\usepackage[tex4ht]{hyperref}
}{%
\usepackage[pdftex]{color,graphicx}
\usepackage{hyperref}
\setlength{\headwidth}{\textwidth}
\fancyhead[L]{\rightmark}
\fancyhead[R]{\includegraphics[height=0.43in]{Images/Fugrologo.eps}} % right with logo
\fancyfoot{}%to remove centered default footer
\fancyfoot[L]{Fugro Roadware Inc.}
\fancyfoot[R]{\thepage \ of \pageref*{LastPage}}% page# of reference page(last)
\fancypagestyle{plain}% no header, footer contains page number centered {
\fancyhf{} %for the pages outside of content, list of figures etc.
\fancyhead[R]{ \includegraphics[height=0.43in]{Images/Fugrologo.eps}} % right with logo
\fancyfoot[L]{Fugro Roadware Inc.} \fancyfoot[R]{\thepage \ of \pageref*{LastPage}}
\pagestyle{fancy}
\usepackage[absolute]{textpos}
\usepackage{fullpage}
}
\makeatother
\usepackage{epstopdf}
\usepackage{lastpage}
\usepackage{makeidx}
\usepackage[english]{babel}
\usepackage{float}
\usepackage{subfig}
\usepackage{multirow}
\usepackage{appendix}
\usepackage{verbatim}
\renewcommand{\appendixtocname}{Appendix: Algorithm Parameters} \renewcommand{\appendixpagename}{Appendix-Algorithm Parameters}
\setlength{\topmargin}{-1.3cm} \setlength{\headsep}{0.6cm}
\renewcommand{\tablename}{\bfseries{Table}}
%The top margin above a chapter can be changed using the titlesec package
\hypersetup{
bookmarks=true, % show bookmarks bar?
unicode=false, % non-Latin characters in Acrobat’s bookmarks
pdftoolbar=true, % show Acrobat’s toolbar?
pdfmenubar=true, % show Acrobat’s menu?
pdffitwindow=false, % window fit to page when opened
pdfstartview={FitH}, % fits the width of the page to the window
pdftitle={My title}, % title
pdfauthor={Author}, % author
pdfsubject={Subject}, % subject of the document
pdfcreator={Creator}, % creator of the document
pdfproducer={Producer}, % producer of the document
pdfkeywords={keyword1} {key2} {key3}, % list of keywords
pdfnewwindow=true, % links in new window
colorlinks=true, % false: boxed links; true: colored links
linkcolor=black, % color of internal links
citecolor=green, % color of links to bibliography
filecolor=magenta, % color of file links
urlcolor=cyan % color of external links }
}
\input{Macro} %\renewcommand{\caption}[1]{{\underline{#1}}}
\makeindex
\renewcommand{\headheight}{0.6in} %Space above header \renewcommand{\headrulewidth}{1pt} %thickness of line under header \renewcommand{\footrulewidth}{1pt} \newcommand{\HRule}{\rule{\linewidth}{0.5mm}} %thickness of line on title page
\begin{document}
\tableofcontents
\listoffigures
\listoftables
\input {bhg fgfgf sadasd}
\appendix
\appendixpage
\addappheadtotoc
\printindex
\clearpage
\end{document}