From f5944bade34b87fe906130bcb55bbe0afbaf1353 Mon Sep 17 00:00:00 2001 From: lecoanet Date: Tue, 12 Apr 2005 09:08:12 +0000 Subject: Switched from latex2html to tex4ht to produce the html documentation. --- doc/refman.tex | 111 +++++++++++++++++++++++---------------------------------- 1 file changed, 45 insertions(+), 66 deletions(-) (limited to 'doc') diff --git a/doc/refman.tex b/doc/refman.tex index ea242d0..baca8ac 100644 --- a/doc/refman.tex +++ b/doc/refman.tex @@ -41,7 +41,7 @@ pagebackref, pdfpagemode=None, bookmarksopen=true - ]{hyperref} + ]{} % \pdfpagewidth=210truemm % \pdfpageheight=297truemm \pdfcompresslevel=9 @@ -51,12 +51,14 @@ \definecolor{rltred}{rgb}{0.75,0,0.20} \definecolor{rltgreen}{rgb}{0,0.5,0} \definecolor{rltblue}{rgb}{0,0,0.75} + \usepackage[pdftex,hyperindex=false]{hyperref} \else + \usepackage[html,2]{tex4ht} \usepackage{graphicx} + \usepackage[tex4ht,hyperindex=false]{hyperref} \fi -\usepackage{html} \usepackage[widemargins]{a4} \usepackage{calc} \usepackage{makeidx} @@ -71,26 +73,22 @@ \newcommand{\ident}[1] {% {\tt\large #1}} -\newenvironment{blockindent} {\begin{quote}\latexhtml{\ifpdf\vspace{-0.8\baselineskip}\fi}{}} {\end{quote}\latexhtml{\ifpdf\vspace{-0.5\baselineskip}\fi}{}} -%\newenvironment{blockindent}{\begin{quote}\vspace{-0.8\baselineskip}}{\end{quote}\vspace{-0.5\baselineskip}} - +\newenvironment{blockindent} {\begin{quote}\vspace{-0.8\baselineskip}} {\end{quote}\vspace{-0.5\baselineskip}} \newcommand{\option}[3]{% \label{opt:#1} - \index{#1} - \latexhtml{\ifpdf\hyperdef{opt}{#1}{}\fi}{\htmlrule[WIDTH="70\%" left]} + \index{#1|hyperpage} \begin{tabular}{rl} Command line switch: & \ident{-#1} \\ Database name: & \ident{#2} \\ - Database class: & \ident{#3} \\ + Database class: & \ident{#3} \end{tabular}} % \begin{blockindent}#4\end{blockindent}} \newcommand{\command}[3]{% \label{cmd:#2} - \index{#2} - \latexhtml{\ifpdf\hyperdef{cmd}{#2}{}\fi}{\htmlrule[WIDTH="70\%" left]} + \index{#2|hyperpage} {\tt\large #1 {\bf #2} #3}} \newcommand{\zinccmd}[2]{% @@ -98,8 +96,7 @@ \newcommand{\mapinfocmd}[3]{% \label{mapcmd:#2} - \index{#2} - \latexhtml{\ifpdf\hyperdef{mapcmd}{#2}{}\fi}{\htmlrule[WIDTH="70\%" left]} + \index{#2|hyperpage} {\tt\large mapinfo #1 {\bf #2} #3}\\ {\tt\large \$mainwindow->mapinfo(#1, {\bf #2}, #3) } % slightly buggy XXX : missing commas when #3 contains many words @@ -107,32 +104,26 @@ \newcommand{\attrtype}[1]{% \label{attrtype:#1} - \index{#1} - \latexhtml{\ifpdf\hyperdef{attrtype}{#1}{}\fi}{\htmlrule[WIDTH="300" left]} + \index{#1|hyperpage} {\tt {\bf #1}} } \newcommand{\attrtyperef}[1]{% - \latexhtml{\ifpdf\hyperlink{attrtype.#1}{\ident{#1}}\else\ident{#1}\fi}{% - \hyperref[page]{\ident{#1}}{\ident{#1} (}{)}{attrtype:#1}} - } - + \hyperref[attrtype:#1]{\ident{#1}} +} % the following command is never used!! \newcommand{\available}[1]{% - \latexhtml{\ifpdf\hyperlink{obj.#1}{\ident{#1}}\else\ident{#1}\fi}{% - \hyperref[page]{\ident{#1}}{\ident{#1} (}{)}{obj:#1}} - } + \hyperref[obj:#1]{\ident{#1}} +} \newcommand{\optref}[1]{% - \latexhtml{\ifpdf\hyperlink{opt.#1}{\ident{-#1}}\fi}{% - \hyperref[page]{\ident{-#1}}{\ident{-#1} (}{)}{opt:#1}} - } + \hyperref[opt:#1]{\ident{-#1}} +} \newcommand{\cmdref}[1]{% - \latexhtml{\ifpdf\hyperlink{cmd.#1}{\ident{#1}}\else\ident{#1}\fi}{% - \hyperref[page]{\ident{#1}}{\ident{#1} (}{)}{cmd:#1}} - } +\hyperref[cmd:#1]{\ident{#1}} +} %first argument : item type or 'option' %second argument: attribute @@ -141,61 +132,49 @@ \newcommand{\attribute}[4]{% \label{attribute:#1:#2} \ident{-#2 }% - \index{#2} - \latexhtml{\ifpdf\hyperlink{attrtype.#3}{\ident{#3}}\hyperdef{attribute}{#1#2}{}\fi}{% - \hyperref[no]{\tt \bf #3}{\ident{#3}}{attrtype:#3}} + \index{#2|hyperpage} + \hyperref[attrtype:#3]{\ident{#3}} \begin{quote}\vspace{-\baselineskip}#4\vspace{-0.8\baselineskip}\end{quote} - } +} % first argument : item type or 'option' % second argument: attribute \newcommand{\attributeref}[2]{% - \latexhtml{\ifpdf\hyperlink{attribute.#1#2}{\ident{-#2}}\else\ident{-#2}\fi}{% - \hyperref[page]{\ident{#2}}{\ident{-#2} (}{)}{attribute:#1:#2}} - } + \hyperref[attribute:#1:#2]{\ident{-#2}} +} \newcommand{\object}[1]{% \label{obj:#1} - \index{#1} - \latexhtml{\ifpdf\hyperdef{obj}{#1}{}\fi}{\index{#1}} - } + \index{#1|hyperpage} +} \newcommand{\concept}[1]{% \label{concept:#1} - \latexhtml{\ifpdf\hyperdef{concept}{#1}{}\fi}{} -% XXX bug? en html? - } +} \newcommand{\objectref}[1]{% - \latexhtml{\ifpdf\hyperlink{obj.#1}{\ident{#1}}\else\ident{#1}\fi}{% - \hyperref[page]{\ident{#1}}{\ident{#1} (}{)}{obj:#1}} - } + \hyperref[obj:#1]{\ident{#1}} +} \newcommand{\conceptref}[2]{% - \latexhtml{\ifpdf\hyperlink{concept.#2}{\ident{#1}}\else\ident{#1}\fi}{% - \hyperref[page]{#1}{#1 (page }{)}{concept:#2}} - } + \hyperref[concept:#2]{\ident{#1}} +} % Premier parametre : nom du fichier image % Deuxieme parametre : legende % Troisieme parametre : scaling (e.g. 2.2 1 ou 0.54) à appliquer en pdf / dvi \newcommand{\fig}[3]{% - \latexhtml{% - \begin{figure}[htbp]% - \centering% - \label{fig:#1}% - \ifpdf\includegraphics[scale=#3]{#1.png}\else\includegraphics[scale=#3]{#1.eps}\fi% - \caption{#2}% - \end{figure}}{% - \begin{center}% - \htmladdimg{#1.png}% - %scale factor for html is a bad idea !? - \end{center} } } + \begin{figure}[htbp]% + \centering% + \label{fig:#1}% + \includegraphics[scale=#3]{#1.png}% + \caption{#2}% + \end{figure}}{% +} \newcommand{\anurl}[1]{% - \latexhtml{\ifpdf\href{#1}{#1}\else{\tt #1}\fi}{% - \htmladdnormallink{#1}{#1}} + \href{#1}{#1} } @@ -216,12 +195,12 @@ \begin{document} %pdfpagewidth: \the\pdfpagewidth pdfpageheight: \the\pdfpageheight voffset: \the\voffset ~topmargin: \the\topmargin ~textheight: \the\textheight \linebreak -\latexhtml{\ifpdf\voffset=-0.5in \setlength\textheight{ (\textheight+0.5in) }\fi} +\ifpdf\voffset=-0.5in \setlength\textheight{ (\textheight+0.5in) }\fi %voffset: \the\voffset ~topmargin: \the\topmargin ~textheight: \the\textheight \linebreak -\latex{\DeclareGraphicsExtensions{.png,.ps,.eps,.pdf}} +\DeclareGraphicsExtensions{.png,.ps,.eps,.pdf} \maketitle @@ -794,7 +773,7 @@ actual source of the default color. Its default value is This option accepts only positive integers. It specifies the number of positions collected in the history list by the track items. When this many positions have been collected, the oldest is dropped to make room for a new one on a first-in - first-out basis. See also the \optref{trackvisibehistorysize} option and the + first-out basis. See also the \optref{trackvisiblehistorysize} option and the \attributeref{track}{historyvisible} track attribute. The default value is {\tt 6}. \end{blockindent} @@ -1509,7 +1488,7 @@ In this chapter, we first list all commands by categories, then we details each \item{Bindings} : \cmdref{bind} \cmdref{focus} \item{Coordinates} : \cmdref{anchorxy} \cmdref{bbox} \cmdref{coords} \cmdref{contour} -\cmdref{fit} \cmdref{hasanchor} \cmdref{smooth} \cmdref{transform} \cmdref{vertexat} +\cmdref{fit} \cmdref{hasanchors} \cmdref{smooth} \cmdref{transform} \cmdref{vertexat} \item{Named resources} : \cmdref{gname} \cmdref{gdelete} \cmdref{tsave} @@ -4784,9 +4763,8 @@ named AlphaStipple0 to AlphaStipple15, AlphaStipple0 being the most transparent. \fig{alphastip}{Bitmaps available for creating stipples}{0.5} -\latexhtml{\tolerance 2000 %allow somewhat looser lines. - \hbadness 10000}{} %don't complain about underfull lines. - +\tolerance 2000 %allow somewhat looser lines. +\hbadness 10000 %don't complain about underfull lines. \section{Tk::Zinc::Debug Perl module} @@ -4906,6 +4884,7 @@ We will try to further document this feature in the future. \listoffigures + \printindex \label{interne:DernierePage} -- cgit v1.1