shiblon / latex-makefile

A Makefile for LaTeX - drop it in, type make, and magic happens.
Other
185 stars 30 forks source link

error handling of hyperref warning/error should be relaxed/reviewed #105

Closed shiblon closed 8 years ago

shiblon commented 8 years ago

Originally reported on Google Code with ID 92

Strange behavior with hyperref error handling.

A small test case triggering the error:
(I'm using org-mode to generate latex)

<--cut here-->
% Created 2010-08-08 dim 12:32
\documentclass[11pt]{article}
\usepackage[latin9]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fixltx2e}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{soul}
\usepackage{t1enc}
\usepackage{textcomp}
\usepackage{marvosym}
\usepackage{wasysym}
\usepackage{latexsym}
\usepackage{amssymb}
\usepackage{hyperref}
\tolerance=1000
\usepackage[french]{babel}
\providecommand{\alert}[1]{\textbf{#1}}

\title{A small test case}
\author{Michel Briand}
\date{\today}

\begin{document}

\maketitle

\setcounter{tocdepth}{3}
\tableofcontents
\vspace*{1cm}

Document body.

\section{un}
\section{deux}
\section{trois}
\section{quatre}

\end{document}
<--cut here-->

Results in:

--- Using incorrect driver for hyperref! ---
Using pdflatex: specify pdftex in the hyperref options (or leave it blank).

Moving \usepackage{hyperref} a few lines towards the bottom removes the error.

Reported by couannette on 2010-08-08 10:46:28

shiblon commented 8 years ago
Sorry for the delay.  I believe I have fixed this in r85670eea9e3c.  If it is fixed,
please respond and I'll upload a new version.

Thanks for the report!  This was a subtle and very nasty one :)

Reported by shiblon on 2010-11-11 15:41:43

shiblon commented 8 years ago
latex-makefile@googlecode.com - Thu, 11 Nov 2010 15:42:50 +0000

Hello,

you could have send me the patch ;) I digged into the google diff
page .... approx 30 "page-down" hits to reach the delta ;)....

By the way the fix works ! Good.

Thank you.
Michel

Reported by couannette on 2010-11-28 12:35:19

shiblon commented 8 years ago
There is a little plus sign by the appropriate file: clicking that takes you straight
to the relevant diff :)

Reported by shiblon on 2010-11-29 15:49:09