cosmetic to correctly display \refs with dvi,pdf & html formats

This commit is contained in:
salva 2006-04-19 20:01:03 +00:00
parent 6bc8dd351c
commit 917aff947c
2 changed files with 16 additions and 5 deletions

View File

@ -2,13 +2,17 @@
SRC = guide_en.tex wmii.tex
Odvi = ${SRC:.tex=.dvi}
Opdf = ${SRC:.tex=.pdf}
Ohtml = ${SRC:.tex=.html}
all: ${Odvi} ${Opdf}
@echo finished doc
all: ${Odvi} ${Opdf} #${Ohtml}
%.dvi: %.tex
latex -interaction=batchmode $<
latex -interaction=batchmode $<
%.pdf: %.tex
pdflatex $<
pdflatex $<
%.html: %.tex
latex2html $<
clean:
rm -f *.pdf *.dvi *.log *.aux *.out *.toc
rm -rf guide_en

View File

@ -18,14 +18,21 @@
\documentclass[12pt,a4paper]{article} %options given to article are inherited to all packages
\usepackage[latin1]{inputenc}
\usepackage[left=3cm,top=2cm,right=2cm,bottom=3cm]{geometry}
%\usepackage[dvipdfm]{hyperref} %uncomment to disable clickable links
%\usepackage{ngerman}
\usepackage{times}
\usepackage{indentfirst,html,moreverb}
% remove this if you want, it's just a matter of imposed imperialist cultures
% so if I'm given the chance to choose i choose to indent the first paragraph
% so if I'm given the chance to choose I choose to indent the first paragraph
% (I learn this way in the school, and don't want to relearn the british way)
\newcommand{\hrefx}[1]{\href{#1}{#1}} % hrefs and 's' for simple and explicit
%% welcome to the the dirty hacks section
\newcommand{\hrefx}[1]{\href{#1}{#1}} % explicit \href
% un'% below so latex2html can handle refs correctly (until a better solution is found)
%\renewcommand{\href}[2]{\htmladdnormallink{#2}{#1}}
%\renewcommand{\hrefx}[1]{\htmladdnormallink{#1}{#1}}
%\renewcommand{\verbatiminput}[1]{\input{#1}}
%\usepackage[dvipdfm]{hyperref} % disable clickable refs
\newenvironment{itemize*}
{\begin{itemize}
\setlength{\itemsep}{0pt}