LaTeX forum ⇒ Conversion ToolsNuweb, LaTeX: clickable links in PDF w/o hyperref?

Information and discussion about output converters related to LaTeX (e.g. dvips, ps2pdf, ...)
natskvi
Posts: 7
Joined: Wed Dec 09, 2009 11:59 pm

Nuweb, LaTeX: clickable links in PDF w/o hyperref?

Postby natskvi » Thu Dec 10, 2009 2:31 am

Hi all,

I am trying to (re)create the following PDF

http://www.cs.rpi.edu/~musser/gp/gensearch1.pdf

from its source

http://www.cs.rpi.edu/~musser/gp/gensea ... search.zip

and all I'm getting is a PDF similar to this:

http://www.literateprogramming.com/gsearch.pdf

I noticed that the LaTeX source file, gensearch.tex, which is extracted from gensearch.w by running nuweb (obtained here: http://www.cs.rpi.edu/~musser/gp/nuweb.zip) does not use hyperref package.

I'm using MikTeX 2.7's pdflatex.

Any insights will be tremendously appreciated.

Thanks.

P.S. I would have asked the author, but he's retired, and the website was last updated in 2008...

natskvi
Posts: 7
Joined: Wed Dec 09, 2009 11:59 pm

Postby natskvi » Fri Dec 11, 2009 3:56 am

I am replying to my own question, for the benefit of others who are also interested in literate programming using nuweb to produce PDF's with clickable links. Here is the reply of the author (Prof. David Musser).

The key tool you need is pdfnuweb, which you can get from

http://www.cs.rpi.edu/~musser/archive/2 ... ex_20.html

I just confirmed that the Windows binary, pdfnuweb.exe, works
(under XP, but it should be OK also in Vista or Windows 7). There are
other binaries offered there that I haven't tried recently, but if one
of those is what you need and doesn't work, the C source code for
pdfnuweb is there also.

I tested pdfnuweb on the sample file rand.w (see the link on the right
side of the page to "Literate Programming Illustrated ..."), which
is processed with

pdfnuweb rand
pdflatex rand
pdfnuweb rand
pdflatex rand

(The multiple passes are necessary for filling in all the code cross
references.)

To be able to process gensearch.w with pdfnuweb, you must add the lines

\usepackage[plainpages=false,pdftex,colorlinks,backref]{hyperref}
\usepackage{color}
\definecolor{light}{gray}{.93}

You can put them right after the documentclass line.

fasihdotone
Posts: 1
Joined: Thu Feb 18, 2010 12:37 pm

Postby fasihdotone » Thu Feb 18, 2010 12:38 pm

Is the source for pdfnuweb available? I only see a Linux Intel binary on the website you link. Thank you!

tmaynard
Posts: 1
Joined: Sat Aug 07, 2010 1:21 am

Postby tmaynard » Sat Aug 07, 2010 1:23 am

In addition to the PDFNUWEB executable, you'll also need a copy of CYGWIN1.DLL -- which is freely available on the 'Net.

Just download a copy and place it in the directory with PDFNUWEB and everything Just.Works.

Thanks for the pointers.


Return to “Conversion Tools”

Who is online

Users browsing this forum: No registered users and 1 guest