numpy book

Fernando Perez fperez.net at gmail.com
Thu Nov 2 11:00:31 EST 2006


On 11/2/06, Travis Oliphant <oliphant at ee.byu.edu> wrote:
>
> >Note that this is not a request to Travis to send me the latest version
> >by private email. That would be inefficient and my need is not that
> >urgent. Nevertheless I think that issue should be settled.
> >
> >
> There will be an update, soon. I'm currently working on the index,
> corrections, and formatting issues.

If I may make a suggestion, it would greatly increase the usability of
the PDF if it had internal and external clickable links, as well as a
PDF table of contents (the one that appears on the left sidebar of
acroread).

Since I know the original is in Lyx, here's my standard preamble for
these kinds of documents, which includes all the goodies for
generating such a PDF, with some color and formatting tweaks so that
it prints legibly on black and white as well as looking nice on
screen.  If you add this to your preamble, a simple 'view->pdflatex'
should work.  I'll be happy to help if you have any issues.

Cheers,

f

%%% My preamble; tweak and season to taste:

% This gives us a better font in URL links (otherwise the default
% MonoSpace font is bitmapped, and it looks horrible in PDF)
\usepackage{courier}

\usepackage{fullpage}

\usepackage{color}  % so we can use red for the fixme warnings

% The hyperref package gives us a pdf with properly built
% internal navigation ('pdf bookmarks' for the table of contents,
% internal cross-reference links, web links for URLs, etc.)

% A few colors to replace the defaults for certain link types
\definecolor{darkorange}{rgb}{.71,0.21,0.01}
\definecolor{darkgreen}{rgb}{.12,.54,.11}

\usepackage[
  %pdftex,  % needed for pdflatex
  breaklinks=true,  % so long urls are correctly broken across lines
  colorlinks=true,
  urlcolor=blue,
  linkcolor=darkorange,
  citecolor=darkgreen,
  ]{hyperref}

% This helps prevent overly long lines that stretch beyond the margins
\sloppy

% Define a \fixme command to mark visually things needing fixing in the draft.
% For final printing or to simply disable these bright warnings, simply
% uncomment the \renewcommand redefinition below

\newcommand{\fixme}[1] {
\textcolor{red}{
{\fbox{ {\bf FIX}
\ensuremath{\blacktriangleright \blacktriangleright \blacktriangleright}}
{\bf #1}
\fbox{\ensuremath{ \blacktriangleleft \blacktriangleleft \blacktriangleleft }
} } }
}
% Uncomment the next line to make the \fixme command be a no-op
%\renewcommand{\fixme}[1]{}

%%% If you also want to use the listings package for nicely formatted
%%% Python source code, this configuration produces good on-paper and
%%% on-screen results:

\definecolor{orange}{cmyk}{0,0.4,0.8,0.2}
% Use and configure listings package for nicely formatted code
\usepackage{listings}
\lstset{
  language=Python,
  basicstyle=\small\ttfamily,
  commentstyle=\ttfamily\color{blue},
  stringstyle=\ttfamily\color{orange},
  showstringspaces=false,
  breaklines=true,
  postbreak = \space\dots
}

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642




More information about the NumPy-Discussion mailing list