PDF spec

Jacob Carlborg doob at me.com
Sun Feb 3 04:09:25 PST 2013


On 2013-02-02 17:57, Andrei Alexandrescu wrote:

> Thanks. Links remain an unresolved problem for now.

Compiling this using TextMate gives a lot of warnings about undefined 
hyper references, example:

LaTeX Warning: Hyper reference `pointers' on page 133 undefined on input 
line 7715.

I have used \nameref and \label successfully. Here's a diff where one 
item in the Table of Contents is replaced with nameref:

--- dlangspec_orig.tex	2013-02-03 12:52:01.000000000 +0100
+++ dlangspec.tex	2013-02-03 12:53:37.000000000 +0100
@@ -108,7 +108,7 @@
  \setlength{\parskip}{0pt}
  \setlength{\parsep}{0pt}
  \item \hyperlink{intro}{Introduction}
-	\item \hyperlink{lex}{Lexical}
+	\item \nameref{chap:lexical}
  	\item \hyperlink{module}{Modules}
  	\item \hyperlink{declaration}{Declarations}
  	\item \hyperlink{type}{Types}
@@ -154,6 +154,7 @@

  \clearpage
  \chapter{Lexical}
+\label{chap:lexical}
    	The lexical analysis is independent of the syntax parsing and the
  	semantic analysis. The lexical analyzer splits the source text up into
  	tokens. The lexical grammar describes what those tokens are. The

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list