misc.mac
, spl-chars
and
htmltotex.rc
.
imgtops
(if you like
to put inline images in your TeX document)
epsf.sty
for incorporating inline images
in TeX files. This is provided in TeX or LaTeX distributions.
See the ftp sites
ftp://ftp.dante.de/tex-archive/macros/latex209/contrib/revtex/epsf.sty
or
ftp://ftp.tex.ac.uk/tex-archive/macros/latex209/contrib/revtex/epsf.sty.
Usage: htmltotex [Options] input_file
option | meaning | default |
---|---|---|
-a
| Show details (code, parameter names and values) of APPLET tags. | Ignore APPLET tags. |
-b BASEURL
| Set base URL to BASEURL. If not set, overwritten by the BASE tag in the header of the input file. | file:<input file> |
-c
| Retain html comments in input file as comments in output TeX file. | Remove all html comments. |
-d
| Convert images in black-and-white dithered mode. | Retain original colors. |
-f
| Show details (buttons, checkboxes, textareas, textfields etc.) of the form components. | Don't show the details. |
-F
| Tell TeX not to load computer modern fonts at smaller sizes. Use scaled versions of the 10pt fonts instead. For more details look at the troubleshooting file. | If the size of normal text is n points, tell TeX to load computer modern fonts at point sizes n, n-3 and n-5. |
-g
| Convert images in gray scale. | Retain original colors. |
-h
| Print help message | |
-i
| Do not put in-line images, show alternate text (ALT) only. | Put images. |
-I
| Do not put in-line images, do not show alternate text (ALT). | Put images. |
-ip FILE
| Input user-defined TeX macro/preamble file FILE. Only one file can be included. You may, for example, change text dimensions, paragraph skips etc. in the preamble file. You are, however, requested not to change \parindent to a non-zero value. | No user-defined files are included. Plain TeX macros and some other
pre-defined macros are used only. These macros are read and processed from the
library files fonts.mac and misc.mac . You may
not directly use these macro files in your TeX documents.
|
-L LIBDIR
| Append LIBDIR to the default list of directories
for searching the library files. LIBDIR should be
a colon-separated list of directories.
| The default search path is /usr/local/lib/htmltotex: /usr/local/htmltotex: ~/.htmltotex: . |
-lf LFTR
| Set left-footer to LFTR. | Null |
-lh LHDR
| Set left-header to LHDR. | Null |
-m IMGDIR
| Put postscript files for in-line images in IMGDIR. | Directory of the input file. |
-o OUTFILE
| Output TeX file to OUTFILE | stdout
|
-p NUM
| Set starting page number to NUM. | 1 |
-P
| Suppress page numbering. | Show page numbers. |
-pt NUM
| Set size of default font to NUM points. | 10 |
-r NUM
| Set TeX running mode to NUM for the output file. Admissible values
for NUM are: 0 - stop-for-errors mode 1 - batch mode 2 - scroll mode 3 - nonstop mode | 0 |
-rf RFTR
| Set right footer to RFTR | Null |
-rh RHDR
| Set right header to RHDR | TEXT if input contains
<TITLE>TEXT</TITLE> in the header; null otherwise.
If you do not want a header even when the input contains the TITLE tag,
give the option -rh "" .
|
-t TMPDIR
| Set temp directory for intermediate files to TMPDIR. Intermediate files are used for image conversion. You must have permission to write in this directory. | /tmp
|
-u
| Underline anchors. | Don't underline. |
-v
| Set up verbose mode. | Non-verbose mode |
-V
| Print version info and quit. | |
-w NUM
| Set cell width in tables to NUM centimeters. Each cell in the tables of the output file is set in a \vtop box of width NUM cms. | 3 |
htmltotex myfile.html
# Use all defaultshtmltotex -o myfile.tex myfile.html
# Output to myfile.tex
htmltotex myfile.html > myfile.tex
# Same as the last examplehtmltotex -t . myfile.html
# Use . as temp directoryhtmltotex -a -c -f myfile.html
# Show applets and forms, retain commentshtmltotex -g myfile.html
# Convert all in-line images to grey-scalehtmltotex -rh "My sweet home page" myfile.html
# Set right header to "My sweet home page"htmltotex -b "http://local.machine/~user/fun/index.html" myfile.html
# Set base locationhtmltotex -L /opt/htmltotex:~/lib myfile.html
# Add directories
/opt/htmltotex
and ~/lib
to the library search pathhtmltotex -F -o myfile.tex myfile.html
# Use this option if
tex complains that it cannot find certain fonts when it tries to compile
myfile.tex
.
<ADDRESS> </ADDRESS> <BLOCKQUOTE> </BLOCKQUOTE> <BODY> </BODY> <HEAD> </HEAD> <HTML> </HTML> <TITLE> </TITLE> <H1> ... <H6> </H1> ... </H6> <BR> <HR> <P> </P> <CENTER> </CENTER> <DIV> </DIV> <PRE> </PRE> <XMP> </XMP> <LISTING> </LISTING> <SUB> </SUB> <SUP> </SUP> <!-- ... >
¡ ¦ § ¨ © ª « ¬ ¯ ° ± ² ³ ´ µ ¶ · ¸ ¹ º » ¼ ½ ¾ ¿ À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ñ Ò Ó Ô Õ Ö × Ø Ù Ú Û Ü Ý ß à á â ã ä å æ ç è é ê ë ì í î ï ñ ò ó ô õ ö ÷ ø ù ú û ü ý ÿ