Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1556 |
|
The AIPS++Notes and Memos series each contain a latex file that has the titles and authors for each Note and Memo. Each time a note or memo is checked in, the index.tex file in code/doc/memos/memos.dir and code/doc/notes/notes.dir needs to be edited to include the new note or memo.
documentroot := -split +2
where documentroot is the file's name less the .latex extension. After specifying this line latex2html will be run on that document during a sneeze. Most AIPS++documents should use
-split +1 or +2.
The default behavior of latex2html may altered using at .latex2html-init file. Typically the default split level, and appearance of the HTML pager header and footer will be customized.
Latex2html uses absolute path names to its icons, the shell script redoicons.sh (code/install/docutils) turns the absolute paths into relative ones. Using relative icons avoids have latex2html generated HTML pages use NRAO as an icon server. To get relative icons sites should specify two variables in thier makedefs file ICONSERVER and ICONS2LOCAL. ICONSERVER is the ICONSERVER variable specified in the latex2html script. At the AOC, we have the following two lines in our makedefs to generate local icons:
ICONSERVER := ../../gif/latex2html ICONS2LOCAL := $(AIPSARCH)/bin/redoicons.sh
For more details about the html commands available from latex2html please
consult the
latex2html documentation
found at
http://www-dsed.llnl.gov/files/programs/unix/latex2html/manual/manual.html.
Latex2html should be found in the system area (/opt/local/bin/latex2html at the AOC). AIPS++uses version 98.2beta5 (1998-Jul-28). Latex2html requires several utilities
Please consult the README distributed with latex2html for more details.
\htmladdnormallink{text}{link to html page}
.
\label
commands you may reference other
LaTeX based document using
\externallabels
command and \htmlref
.
To make a link to the copy command of the
catalog object in the catalog module use \htmlref
\htmlref{copy}{catalog:catalog.copy.function}
The \externallabels{URL to document}{path to labels file}
command
needs to appear at the top of the document before the \begin{document}
.
The URL and path to labels file need to be relative paths. So for Note 215
\externallabels{../../user/Refman}{../../user/Refman/labels.pl}
Help files auto-generate some labels based on the following scheme:
\label
command.
The order of when documents are run through latex2html is important for external cross referencing. All released documentation needs two passes through latex2html to resolve all external references (insures the use of the proper labels.pl file).
Funny things can happen if labels are multiply defined.
Cross referencing into HTML files created by cxx2html is possible using
\htmladdnormallink
. To make a reference to the array class
array class
from a note or memo use:
Please consult the cxx2html documentation to see how anchors are created.
Cross referencing from an HTML document to something in the User's Reference Manual or another LaTeX based document is possible. The link must be identified in the generated HTML. This is not recommended since latex2html generated file names and anchors will likely change.
A word of caution, relative links in the docs tree may be different than those found in a programmer's code tree. Within the code/doc tree relative links should be OK (i.e. builds of LaTeX documents should cross reference properly amongst themselves for programmer and system builds). Relative links to html pages generated by cxx2html will not be the same for programmer and system builds! The implement directory is missing in the docs tree.
\begin{document}
etc) in nnn.dir (e.g.
ai -l mynote.latex)
\documentclass[11pt]{article} \usepackage{html, epsf} %%----------------------------------------------------------------------------- \begin{document} \title{NOTE 224 -- AIPS++ Least Squares background} \author{Wim Brouw} \date{22 January 1999} \maketitle %%--------------------------------------------------------------------------- \htmladdnormallink{A postscript version of this note is available (124kB).}{../224.ps} \tableofcontents \input{lsq.latex} \end{document}
224 := -split 0
code/doc/notes/notes.dir/nindex.tex E.g: \item[224] \htmladdnormallink{\textit{AIPS++ Least Squares background}}{../224/224.html} \linebreak 1999/01/25 Brouw
Note: Other notes, AIPS++ documents can include your note or parts of your note by adding the following line to the makefile
TIROOT := $(word 1, $(AIPSPATH))/code/doc EXTRA_TEXINPUTS := $(TIROOT)/memos/111.dir:$(TIROOT)/notes/156.dir /notes/196.diryou then use the
\input{file}
to include it the other document.
The HowTos (code/doc/reference/HowTos.latex) is a good example.