summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/prerex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-04-22 22:24:54 +0000
committerKarl Berry <karl@freefriends.org>2014-04-22 22:24:54 +0000
commit6ea16a3ef7b22c1777e7f57bcb0eaba7e4d37b79 (patch)
tree5e9308af8db4ce32883b0949608d80e63c153cf9 /Master/texmf-dist/doc/latex/prerex
parent39e9ffa4f20094e682ed59a2b15c0fe03b7624a3 (diff)
prerex (with .5 man page) (22apr14)
git-svn-id: svn://tug.org/texlive/trunk@33631 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/prerex')
-rw-r--r--Master/texmf-dist/doc/latex/prerex/README10
-rw-r--r--Master/texmf-dist/doc/latex/prerex/boldbox.pngbin488 -> 0 bytes
-rw-r--r--Master/texmf-dist/doc/latex/prerex/chart.dat33
-rw-r--r--Master/texmf-dist/doc/latex/prerex/chart.html67
-rw-r--r--Master/texmf-dist/doc/latex/prerex/chart.map18
-rw-r--r--Master/texmf-dist/doc/latex/prerex/chart.pngbin23805 -> 0 bytes
-rw-r--r--Master/texmf-dist/doc/latex/prerex/chart.sh3
-rw-r--r--Master/texmf-dist/doc/latex/prerex/dashed.pngbin344 -> 0 bytes
-rw-r--r--Master/texmf-dist/doc/latex/prerex/dotted.pngbin359 -> 0 bytes
-rw-r--r--Master/texmf-dist/doc/latex/prerex/intro.pdfbin285602 -> 284162 bytes
-rw-r--r--Master/texmf-dist/doc/latex/prerex/intro.tex109
-rw-r--r--Master/texmf-dist/doc/latex/prerex/lightbox.pngbin474 -> 0 bytes
-rw-r--r--Master/texmf-dist/doc/latex/prerex/prerex.pdfbin156356 -> 153211 bytes
-rw-r--r--Master/texmf-dist/doc/latex/prerex/prerex.sty.765
-rw-r--r--Master/texmf-dist/doc/latex/prerex/prerex.sty.7.pdfbin16953 -> 15339 bytes
-rw-r--r--Master/texmf-dist/doc/latex/prerex/prerex.tex109
-rw-r--r--Master/texmf-dist/doc/latex/prerex/solid.pngbin335 -> 0 bytes
17 files changed, 93 insertions, 321 deletions
diff --git a/Master/texmf-dist/doc/latex/prerex/README b/Master/texmf-dist/doc/latex/prerex/README
index 3c41586e730..cc6f8a12159 100644
--- a/Master/texmf-dist/doc/latex/prerex/README
+++ b/Master/texmf-dist/doc/latex/prerex/README
@@ -1,4 +1,4 @@
-prerex, version 2014-03-22. Macros for prerequisite charts, with
+prerex, version 2014-04-17. Macros for prerequisite charts, with
associated editor and viewer applications.
This package consists of
@@ -17,7 +17,7 @@ The implementation of prerex.sty is built on pgf, so that it may be
used equally happily with latex or pdflatex; prerex is written in C
and vprerex is written in C++ using the Qt-4 and poppler libraries.
-See chart.{pdf,html,svgz} for a small example of a prerequisite
+See chart.{pdf,svgz} for a small example of a prerequisite
chart and real-life examples at
http://www.cs.queensu.ca/students/undergraduate/prerequisites/
@@ -41,14 +41,12 @@ prerex.sty depends on
multido
relsize
calc
- zref-savepos
hyperref
The use of pgf means that Postscript processing is not required.
Either pdflatex or latex -> dvips [ -> ps2pdf ] or latex -> dvipdfmx
-(with suitable driver options) will generate charts, but pdflatex
-processing is necessary to produce correct pixel coordinates in the
-generated map and shell files.
+or latex -> dvisvgm (with suitable driver options) will generate
+charts.
Installation of prerex.sty:
diff --git a/Master/texmf-dist/doc/latex/prerex/boldbox.png b/Master/texmf-dist/doc/latex/prerex/boldbox.png
deleted file mode 100644
index 32f5772b56a..00000000000
--- a/Master/texmf-dist/doc/latex/prerex/boldbox.png
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/prerex/chart.dat b/Master/texmf-dist/doc/latex/prerex/chart.dat
deleted file mode 100644
index 77ac2237116..00000000000
--- a/Master/texmf-dist/doc/latex/prerex/chart.dat
+++ /dev/null
@@ -1,33 +0,0 @@
-<a xlink:href="1083.html" target="course"> <rect fill-opacity="0.0" opacity="0.0"
-x="315" y="72" width="46" height="57"/></a>
-<a xlink:href="1303.html" target="course"> <rect fill-opacity="0.0" opacity="0.0"
-x="170" y="119" width="46" height="23"/></a>
-<a xlink:href="2813.html" target="course"> <rect fill-opacity="0.0" opacity="0.0"
-x="199" y="176" width="46" height="23"/></a>
-<a xlink:href="2023.html" target="course"> <rect fill-opacity="0.0" opacity="0.0"
-x="286" y="176" width="46" height="23"/></a>
-<a xlink:href="2513.html" target="course"> <rect fill-opacity="0.0" opacity="0.0"
-x="401" y="176" width="46" height="23"/></a>
-<a xlink:href="1083.html" target="course"> <rect fill-opacity="0.0" opacity="0.0"
-x="96" y="205" width="23" height="11"/></a>
-<a xlink:href="2333.html" target="course"> <rect fill-opacity="0.0" opacity="0.0"
-x="84" y="234" width="46" height="23"/></a>
-<a xlink:href="2013.html" target="course"> <rect fill-opacity="0.0" opacity="0.0"
-x="286" y="234" width="46" height="23"/></a>
-<a xlink:href="2685.html" target="course"> <rect fill-opacity="0.0" opacity="0.0"
-x="343" y="234" width="46" height="23"/></a>
-<a xlink:href="2013.html" target="course"> <rect fill-opacity="0.0" opacity="0.0"
-x="159" y="263" width="23" height="11"/></a>
-<a xlink:href="3323.html" target="course"> <rect fill-opacity="0.0" opacity="0.0"
-x="113" y="291" width="46" height="23"/></a>
-<a xlink:href="3813.html" target="course"> <rect fill-opacity="0.0" opacity="0.0"
-x="170" y="291" width="46" height="23"/></a>
-<a xlink:href="3413.html" target="course"> <rect fill-opacity="0.0" opacity="0.0"
-x="228" y="291" width="46" height="23"/></a>
-<a xlink:href="3013.html" target="course"> <rect fill-opacity="0.0" opacity="0.0"
-x="286" y="291" width="46" height="23"/></a>
-<a xlink:href="3513.html" target="course"> <rect fill-opacity="0.0" opacity="0.0"
-x="361" y="291" width="46" height="23"/></a>
-<a xlink:href="3503.html" target="course"> <rect fill-opacity="0.0" opacity="0.0"
-x="430" y="291" width="46" height="23"/></a>
-</svg>
diff --git a/Master/texmf-dist/doc/latex/prerex/chart.html b/Master/texmf-dist/doc/latex/prerex/chart.html
deleted file mode 100644
index 643ea631edf..00000000000
--- a/Master/texmf-dist/doc/latex/prerex/chart.html
+++ /dev/null
@@ -1,67 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "http://www.w3.org/TR/html4/loose.dtd">
-<html >
-<head><title></title>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-<meta name="generator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)">
-<meta name="originator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)">
-<!-- html -->
-<meta name="src" content="chart.tex">
-<meta name="date" content="2012-07-18 15:12:00">
-<link rel="stylesheet" type="text/css" href="chart.css">
-<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Open+Sans:600">
-</head><body
->
-<div class="center"
->
-<!--l. 4--><p class="noindent" >
-
-<!--l. 5--><p class="noindent" ><img
-src="chart.png" alt="chart.png"
-usemap="#chart" ismap border=0 ></div>
-<div class="center"
->
-<!--l. 1--><p class="noindent" >
-<div class="minipage"> <ul class="itemize1">
- <li class="itemize">A solid arrow <img
-src="solid.png" alt="solid.png"
-usemap="#solid" ismap border=0 >&#x00A0;indicates a required prerequisite, a dotted arrow <img
-src="dotted.png" alt="dotted.png"
-usemap="#dotted" ismap border=0 >&#x00A0;indicates
- a corequisite (to be taken before or concurrently), and a dashed arrow <img
-src="dashed.png" alt="dashed.png"
-usemap="#dashed" ismap border=0 >&#x00A0;indicates a
- recommended prerequisite. Core courses are in <img
-src="boldbox.png" alt="boldbox.png"
-usemap="#boldbox" ismap border=0 >&#x00A0;boxes; other courses (i.e.,&#x00A0;options or
- prerequisites) are in <img
-src="lightbox.png" alt="lightbox.png"
-usemap="#lightbox" ismap border=0 >&#x00A0;boxes.
- </li>
- <li class="itemize">Timetabling abbreviations: M, T, W, Th, F=Mon, Tue, Wed, Thur, Fri, resp.; eve=7:00&#8211;9:50 pm;
- no=not offered.</li></ul></div></div>
-
-<map name="chart">
-<area shape=rect coords="548,225,628,125" href="file:1083.html" target="new" alt="1083">
-<area shape=rect coords="298,245,378,205" href="file:1303.html" target="new" alt="1303">
-<area shape=rect coords="348,345,428,305" href="file:2813.html" target="new" alt="2813">
-<area shape=rect coords="498,345,578,305" href="file:2023.html" target="new" alt="2023">
-<area shape=rect coords="698,345,778,305" href="file:2513.html" target="new" alt="2513">
-<area shape=rect coords="168,375,208,355" href="file:1083.html" target="new" alt="1083">
-<area shape=rect coords="148,445,228,405" href="file:2333.html" target="new" alt="2333">
-<area shape=rect coords="498,445,578,405" href="file:2013.html" target="new" alt="2013">
-<area shape=rect coords="598,445,678,405" href="file:2685.html" target="new" alt="2685">
-<area shape=rect coords="278,475,318,455" href="file:2013.html" target="new" alt="2013">
-<area shape=rect coords="198,545,278,505" href="file:3323.html" target="new" alt="3323">
-<area shape=rect coords="298,545,378,505" href="file:3813.html" target="new" alt="3813">
-<area shape=rect coords="398,545,478,505" href="file:3413.html" target="new" alt="3413">
-<area shape=rect coords="498,545,578,505" href="file:3013.html" target="new" alt="3013">
-<area shape=rect coords="628,545,708,505" href="file:3513.html" target="new" alt="3513">
-<area shape=rect coords="748,545,828,505" href="file:3503.html" target="new" alt="3503">
-</map>
-
-</body></html>
-
-
-
-
diff --git a/Master/texmf-dist/doc/latex/prerex/chart.map b/Master/texmf-dist/doc/latex/prerex/chart.map
deleted file mode 100644
index 1b045d74de8..00000000000
--- a/Master/texmf-dist/doc/latex/prerex/chart.map
+++ /dev/null
@@ -1,18 +0,0 @@
-<map name="chart">
-<area shape=rect coords="548,225,628,125" href="1083.html" target="new" alt="1083">
-<area shape=rect coords="298,245,378,205" href="1303.html" target="new" alt="1303">
-<area shape=rect coords="348,345,428,305" href="2813.html" target="new" alt="2813">
-<area shape=rect coords="498,345,578,305" href="2023.html" target="new" alt="2023">
-<area shape=rect coords="698,345,778,305" href="2513.html" target="new" alt="2513">
-<area shape=rect coords="168,375,208,355" href="1083.html" target="new" alt="1083">
-<area shape=rect coords="148,445,228,405" href="2333.html" target="new" alt="2333">
-<area shape=rect coords="498,445,578,405" href="2013.html" target="new" alt="2013">
-<area shape=rect coords="598,445,678,405" href="2685.html" target="new" alt="2685">
-<area shape=rect coords="278,475,318,455" href="2013.html" target="new" alt="2013">
-<area shape=rect coords="198,545,278,505" href="3323.html" target="new" alt="3323">
-<area shape=rect coords="298,545,378,505" href="3813.html" target="new" alt="3813">
-<area shape=rect coords="398,545,478,505" href="3413.html" target="new" alt="3413">
-<area shape=rect coords="498,545,578,505" href="3013.html" target="new" alt="3013">
-<area shape=rect coords="628,545,708,505" href="3513.html" target="new" alt="3513">
-<area shape=rect coords="748,545,828,505" href="3503.html" target="new" alt="3503">
-</map>
diff --git a/Master/texmf-dist/doc/latex/prerex/chart.png b/Master/texmf-dist/doc/latex/prerex/chart.png
deleted file mode 100644
index d9968b66a00..00000000000
--- a/Master/texmf-dist/doc/latex/prerex/chart.png
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/prerex/chart.sh b/Master/texmf-dist/doc/latex/prerex/chart.sh
deleted file mode 100644
index 93480aa374a..00000000000
--- a/Master/texmf-dist/doc/latex/prerex/chart.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-mogrify -crop 1000x666+0+0 chart.png
-exit 0
diff --git a/Master/texmf-dist/doc/latex/prerex/dashed.png b/Master/texmf-dist/doc/latex/prerex/dashed.png
deleted file mode 100644
index c122a28f0d6..00000000000
--- a/Master/texmf-dist/doc/latex/prerex/dashed.png
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/prerex/dotted.png b/Master/texmf-dist/doc/latex/prerex/dotted.png
deleted file mode 100644
index 945fdf5c2dc..00000000000
--- a/Master/texmf-dist/doc/latex/prerex/dotted.png
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/prerex/intro.pdf b/Master/texmf-dist/doc/latex/prerex/intro.pdf
index 2b4e956ad15..51f094cc6d4 100644
--- a/Master/texmf-dist/doc/latex/prerex/intro.pdf
+++ b/Master/texmf-dist/doc/latex/prerex/intro.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/prerex/intro.tex b/Master/texmf-dist/doc/latex/prerex/intro.tex
index e89c60dcebe..ecbea31491e 100644
--- a/Master/texmf-dist/doc/latex/prerex/intro.tex
+++ b/Master/texmf-dist/doc/latex/prerex/intro.tex
@@ -21,6 +21,7 @@
\newcommand{\myurl}[1]{\textcolor{blue}{\underline{\textcolor{black}{\url{#1}}}}}
+\newcommand{\myhref}[2]{\href{#1}{\textcolor{blue}{\underline{\textcolor{black}{#2}}}}}
\title{Prerex-Formatted Prerequisite Charts\\[1ex]\Large An Introduction}
\date{\today}
@@ -130,11 +131,6 @@ most browsers using freely-available software (such as the Adobe Reader),
printable on any high-resolution printer, relatively compact, and scalable
to accommodate paper size, display resolution, or user preference.
-Charts can also be converted to Portable Network Graphics (PNG)
-format for in-line use on a web page. PNG format is also relatively compact
-and can be rendered directly by most web browsers. Scalable Vector Graphics (SVG)
-format is a new standard which is increasingly supported by modern browsers; it is fairly easy to
-convert PDF pages to SVG images.
Prerex-formatted charts are produced by software that processes simple and convenient
text-based descriptions. These descriptions can be edited in any
@@ -142,6 +138,11 @@ text editor or in the \texttt{prerex} interactive editor discussed in Section~\r
The format of chart descriptions is documented
in Section~\ref{source}.
+Charts can be converted to Scalable Vector Graphic (SVG)
+format for posting on the web. When compressed, SVG format is relatively compact
+and can be rendered directly by all modern web browsers.
+It is fairly easy to
+convert charts to SVG images.
\subsubsection*{What software is needed to produce prerex-formatted prerequisite charts?}
@@ -307,7 +308,7 @@ transfer coordinates from the chart to the editor.
To ``process'' a chart description, you will need to install an application
called \LaTeX, together with several auxiliary applications to convert the
-output into Postscript and then PDF.
+output into PDF or other formats.
\LaTeX\ is a powerful document processor based on a professional-quality typesetting program called \TeX. The following web sites
@@ -325,12 +326,13 @@ MiKTeX.\footnote{%
If you use Mac~OS~X, go to
the \emph{\TeX\ on Mac OS~X} site.\footnote{%
\myurl{http://www.rna.nl/tex.html}}
-Unix and Linux users should install \texttt{texlive}.\footnote{%
+\textsc{Unix} and Linux users should install at least the ``basic'' scheme of TeXLive.\footnote{%
\myurl{http://www.tug.org/texlive/}}
The resulting installation will allow you to process simple \texttt{.tex} files.
However, you won't be able
-to process the description of a prerex-formatted prerequisite chart until some necessary additional software is installed.
+to process the description of a prerex-formatted prerequisite chart until
+some necessary additional software is installed.
\section{Additional \LaTeX\ Software}
\label{additional}
@@ -340,17 +342,17 @@ are needed.
The file \texttt{prerex.sty} from the \texttt{prerex} package is essential;
it should be stored
in the same folder as the \texttt{.tex} file to be processed
-(or in the
-local \verb|texmf| tree) so the \LaTeX\ system can find it.
+(or in
+a \verb|texmf| tree so the \LaTeX\ system can find it).
Other add-ons that may be necessary are as follows:
\texttt{pgf},
\texttt{tikz},
\texttt{multido},
-\texttt{ifpdf},
+\texttt{hyperref},
\texttt{textcomp}, and
\texttt{xcolor}.
-If you are using \MikTeX\ or \texttt{texlive}, these can be installed using the
-package manager.
+If you are using \MikTeX\ or TeXLive, these packages can be installed using their
+package managers.
All of the packages are also available
for download from any CTAN\footnote{%
\myurl{http://www.ctan.org/}} repository.
@@ -366,19 +368,6 @@ This operation will overwrite
any existing \verb|chart.pdf|, so you should first re-name
that file if you want to preserve it.
-If the \texttt{pdflatex} command isn't recognized, you
-will have to
-edit the
-system executable-command path.
-On a Unix-like system, adjust the value of \texttt{PATH}; on
-Windows, click on \emph{Control~Panel} $\rightarrow$ \emph{System} $\rightarrow$ \emph{Advanced} $\rightarrow$ \emph{Environment~Variables},
-select \emph{Path} and click on \emph{Edit}; then append the appropriate
-paths,
-separated by semi-colons. For \MikTeX, the default path for commands is
-\verb|C:\texmf\miktex\bin|.
-
-
-
\section{Installing a \LaTeX\ Development Environment}
\label{IDE}
Most beginning
@@ -429,7 +418,7 @@ The Open Sans family\footnote{%
of fonts, designed by Steve Matteson of
Ascender, is supported for use in \LaTeX\ by the \texttt{opensans} package,
available from CTAN\footnote{%
-\myurl{http://mirror.ctan.org/fonts/opensans}}
+\myurl{http://www.ctan.org/pkg/opensans}}
and in most distributions.
The Cabin\footnote{%
\myurl{http://www.google.com/webfonts/specimen/Cabin}}
@@ -452,45 +441,52 @@ Artifex\footnote{%
\myurl{http://www.artifex.com/downloads/}}.
The four Classico font files, renamed for use in \LaTeX, with the necessary support files and installation instructions are available
from CTAN\footnote{%
-\myurl{http://mirror.ctan.org/fonts/urw/classico/}}.
+\myurl{http://www.ctan.org/pkg/classico}}.
Note that the font files cannot be distributed commercially without a commercial license; please read the license in the archive
before re-distributing them. This restriction does not prevent you from distributing documents
that \emph{use} the fonts.
-\section{Conversion to Portable Network Graphic (PNG) Format}
-
-Although PDF is currently the best available format for distributing
-and printing charts, you may want to produce a raster-image version for
-use on a web site. There are several conversion programs and services
-available to do this. For example, the \verb|convert| tool of the
-multi-platform \verb|ImageMagick|\footnote{%
-\myurl{http://www.imagemagick.org/}}
-package may be used as follows:
-\begin{verbatim}
- convert -density 125 -quality 100 chart.pdf chart.png
-\end{verbatim}
-The density parameter specifies the number of pixels per inch; if this is too small, the
-image is of poor quality, and if it is too large, the image file is too big.
-The quality parameter ensures maximal (loss-free) compression.
-From version 5.0, \verb|prerex.sty| (if processed by \verb\pdflatex\) generates an auxiliary file
-containing image-map data for the hyperlinked nodes in the chart; consult a
-reference on the HTML language for an explanation of (client-side) image maps.
-
\section{Conversion to Scalable Vector Graphics (SVG) Format}
-Recent versions of popular browsers support SVG graphics natively,; i.e., without
+Scalable Vector Graphics (SVG) format is an emerging standard for high-quality graphics.
+Recent versions of popular browsers support SVG graphics natively; i.e.,~without
requiring a plug-in or
-external application. The quality and size of SVG images are comparable to PDF when
-the files are compressed.
+external application,
+making it an ideal format for posting charts on the web.
+The quality and size of (compressed) SVG images are comparable to PDF\@.
+The \texttt{inkview} application in the open-source \texttt{inkscape}\footnote{%
+\myurl{http://www.inkscape.org/en/}}
+package
+is a convenient SVG image viewer.
+
+One approach is to use \texttt{dvisvgm}\footnote{%
+\myurl{http://dvisvgm.sourceforge.net/}; also available from
+\myhref{http://mirror.ctan.org/}{CTAN} and in \myhref{https://www.tug.org/texlive/}{\TeX Live}.
+}
+to convert the output
+of \texttt{latex} processing directly into a (compressed) SVG image.
+Versions
+since 1.3 generate links in the image from \texttt{hyperref} links in the source file.
+Use \texttt{dvisvgm} as a global class option and
+\texttt{hypertex} as a package option to \texttt{hyperref}
+to ensure that the appropriate drivers are used by \texttt{latex},
+and invoke \texttt{dvisvgm} as follows:
+\begin{list}{}{}\item
+ \verb\dvisvgm -n -b dvi -L none -z ... \.
+\end{list}
+If
+\texttt{dvisvgm} reports that it can't find Ghostscript,
+see the \texttt{dvisvgm} documentation for configuration options.
On Unix-like platforms such as Linux, a small program called \verb\pdf2svg\ is
available\footnote{%
\myurl{http://www.cityinthesky.co.uk/opensource/pdf2svg/}}; it uses standard
libraries (\verb\poppler\ and \verb\cairo\) to implement
-the conversion. Since version~6.5, pdf\LaTeX\ processing will generate an auxiliary
-file \verb|\jobname.dat| of data on links in the PDF, as most conversion
-applications do not attempt to convert PDF hyperlinks to SVG links.
+the conversion.
+From version 0.2.3, \texttt{pdf2svg} adds clickable
+links to the image and supports a scaling option.
+
\section{Terminology and Coordinate System}
@@ -584,7 +580,7 @@ The notation
$x_0,y_0:x_1,y_1$
denotes all the nodes (course boxes, minis, texts) in the rectangle whose northwest and southeast corners are at
coordinates
-$x_0,y_0$ and $x_1,y_1$.
+$x_0,y_0$ and $x_1,y_1$, respectively.
\begin{table}
\begin{center}\small
\begin{tabular}{|l|l|}
@@ -598,6 +594,7 @@ $x_0,y_0$ and $x_1,y_1$.
\verb\file> arrow x0,y0,x1,y1\ & [create and] edit arrow from $x0,y0$ to $x1,y1$\\
\verb\file> cut x,y ... \ & (temporarily) remove box, mini, or text at $x,y$\\
\verb\file> paste x,y \ & re-insert removed box, mini, or text at $x,y$\\
+\verb\file> xchange x0,y0 x1,y1 \ & exchange elements at $x0,y0$ and $x1,y1$\\
\verb\file> delete [x,y | x0,y0,x1,y1 | x0,y0:x1,y1] ...\ & remove specified elements/arrows\\
\verb\file> shift [-]x x0,y0[:x1,y1] ...\ & move [specified] elements $x$ units right [left]\\
\verb\file> raise [-]y x0,y0[:x1,y1] ...\ & move [specified] elements $y$ units up [down]\\
@@ -612,7 +609,7 @@ $x_0,y_0$ and $x_1,y_1$.
\hline
\end{tabular}
\end{center}
-\caption{\texttt{prerex} Command Summary (version 6.3)}
+\caption{\texttt{prerex} Command Summary (since version 6.4)}
\label{help}
\end{table}
@@ -622,7 +619,7 @@ viewer. See the manual page \texttt{prerex(1)} for
more information. The \texttt{prerex} package at CTAN
also has the source files for
\texttt{vprerex} (visual \texttt{prerex}), a graphical ``wrapper'' for \texttt{prerex}
-which incorporates a prerex-enabled PDF viewer.
+which incorporates a \texttt{prerex}-enabled PDF viewer.
For initial creation of a prerex-formatted chart
diff --git a/Master/texmf-dist/doc/latex/prerex/lightbox.png b/Master/texmf-dist/doc/latex/prerex/lightbox.png
deleted file mode 100644
index 1e608f5382b..00000000000
--- a/Master/texmf-dist/doc/latex/prerex/lightbox.png
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/prerex/prerex.pdf b/Master/texmf-dist/doc/latex/prerex/prerex.pdf
index 15644cd9d0f..30d5d0aa596 100644
--- a/Master/texmf-dist/doc/latex/prerex/prerex.pdf
+++ b/Master/texmf-dist/doc/latex/prerex/prerex.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/prerex/prerex.sty.7 b/Master/texmf-dist/doc/latex/prerex/prerex.sty.7
index acc4b0abe75..47a4dacd2d1 100644
--- a/Master/texmf-dist/doc/latex/prerex/prerex.sty.7
+++ b/Master/texmf-dist/doc/latex/prerex/prerex.sty.7
@@ -1,4 +1,4 @@
-.TH PREREX.STY 7 2014-03-22 "prerex.sty-6.5" ""
+.TH PREREX.STY 7 2014-04-11 "prerex.sty-6.6" ""
.SH NAME
prerex.sty \- a LaTeX document style for prerequisite charts
.SH DESCRIPTION
@@ -8,12 +8,6 @@ defines macros that
can use
to draw charts consisting of labelled course boxes linked by arrows
that represent pre- and co-requisite requirements.
-If
-.B pdflatex
-is used,
-auxiliary files will be generated as follows: image-map data and xlink commands for the
-hyperlinked nodes in the diagram and a shell script to crop a PNG image generated from
-a Postscript or PDF chart.
.P
If the source file satisfies the constraints
of the
@@ -249,17 +243,7 @@ Such coordinate displays make it easier to edit chart descriptions.
When the grid is on, the mid-point of every arrow is highlighted by a
"bullet".
.PP
-The
-.B prerex
-package at
-.B http://mirror.ctan.org/graphics/prerex/
-has a patch for
-.BR kpdf / okular (1)
-to make it display URIs in tooltips and also capture coordinates of course boxes, arrows and
-background points in the X selection clipboard (for pasting into a
-command being composed at the
-.BR prerex (1)
-prompt). There is also a GUI frontend
+There is a GUI frontend
.BR vprerex (1)
to the
.BR prerex (1)
@@ -314,7 +298,6 @@ coordinate unit if the chart is converted to an image at 125 dpi.
.IP
.BI \enewcommand{\ePixelsPerUnit}{ 10 }
.LP
-These must be re-defined together if the image-map data are to be correct.
.IP
.BI \esetcounter{diagheight}{ 75 }
.LP
@@ -358,10 +341,9 @@ with add-on package
The following additional packages are used:
.B relsize,
.B calc,
-.B ifpdf,
.B multido,
.B textcomp,
-.B zref-savepos
+.B xcolor,
and
.B hyperref.
.I Either
@@ -378,29 +360,6 @@ followed by
.BR dvipdfmx (1)
may be used.
.P
-To convert a chart to a compact but reasonably high-quality image, it is suggested to use the
-.BR convert (1)
-tool of
-.BR ImageMagick (1)
-as follows:
-.IP
-.B convert
-.I -density 125 chart.ps chart.png
-.LP
-or
-.IP
-.B convert
-.I -density 125 chart.pdf chart.png
-.LP
-The density parameter specifies the number of pixels per inch; if this is too small, the
-image is of poor quality, and if it is too large, the image file is too big.
-By default, the shell script generated by
-.B prerex.sty
-crops the image at the southeast corner.
-It is possible to use a PNG compression application such as
-.BR optipng (1)
-to reduce the file-size of the cropped image (without loss of quality).
-.P
To convert a PDF chart to SVG (Scaleable Vector Graphic) format, it is recommended to
use
.BR pdf2svg (1),
@@ -438,21 +397,6 @@ is re-defined to pass node coordinates in URIs. Also,
two "anchor" hyperlinks are inserted at the southwest and northeast corners
of the diagram to allow prerex-enabled
PDF viewers to compute chart coordinates.
-.P
-To support HTML versions of charts,
-.B prerex.sty
-(when processed by
-.BR pdflatex (1))
-generates a script to crop a chart image at the southeast corner, allowing
-descriptive notes below the chart to be treated as ordinary text. Also,
-it generates image-map data for use with an HTML image map and
-xlink data for use with a SVG image. To
-obtain absolute page coordinates, the
-.B zsavepos,
-.B zposx
-and
-.B zposy
-commands are used; the page coordinates are converted into pixel coordinates.
.SH LICENSE
.B prerex.sty
and this document may be distributed and/or modified under the
@@ -460,8 +404,6 @@ conditions of the LaTeX Project Public License.
.SH AUTHOR
R. D. Tennent (rdt@cs.queensu.ca)
.SH SEE ALSO
-.BR ImageMagick (1),
-.BR convert (1).
.BR dvipdfmx (1),
.BR dvips (1),
.BR evince (1),
@@ -469,7 +411,6 @@ R. D. Tennent (rdt@cs.queensu.ca)
.BR kpdf (1),
.BR latex (1),
.BR okular (1),
-.BR optipng (1),
.BR pdf2svg (1),
.BR pdflatex (1),
.BR prerex (1),
diff --git a/Master/texmf-dist/doc/latex/prerex/prerex.sty.7.pdf b/Master/texmf-dist/doc/latex/prerex/prerex.sty.7.pdf
index 1d58d2d4b63..863e484b140 100644
--- a/Master/texmf-dist/doc/latex/prerex/prerex.sty.7.pdf
+++ b/Master/texmf-dist/doc/latex/prerex/prerex.sty.7.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/prerex/prerex.tex b/Master/texmf-dist/doc/latex/prerex/prerex.tex
index 448ef4e5ef0..48c49ce88dd 100644
--- a/Master/texmf-dist/doc/latex/prerex/prerex.tex
+++ b/Master/texmf-dist/doc/latex/prerex/prerex.tex
@@ -7,7 +7,7 @@
%\def\LaTeX{\mbox{LaTeX}}
\begin{document}
-\title{\textsf{prerex.sty}: Prerequisite Charts in \LaTeX\\{\large Version 6.5}}
+\title{\textsf{prerex.sty}: Prerequisite Charts in \LaTeX\\{\large Version 6.6}}
\author{R. D. Tennent\\\texttt{rdt@cs.queensu.ca}}
\date{\today}
\maketitle
@@ -21,12 +21,6 @@ can use
to create charts consisting of labelled course boxes linked by arrows
that represent pre- and co-requisite requirements; see
the example chart in Figure~\ref{chart} on page~\pageref{chart}.
-If pdf\LaTeX\ is used as the processing engine,
-three auxiliary files will be generated, as follows: image-map data and SVG commands for the
-hyperlinked nodes in the diagram, and a shell script for cropping a PNG image
-obtained from the output. pdf\LaTeX\ must be used as the processing engine
-to get accurate page coordinates.
-
If the source file satisfies the constraints
of the
\textsf{prerex(5)}
@@ -280,10 +274,10 @@ so that, in suitable PDF viewers,
if the mouse cursor is placed over a box, mini, or midpoint of an arrow,
the \emph{coordinates} of the box/mini/text(or the coordinates of the source \emph{and} target
of the arrow) will be displayed
-as follows: in the
+either in the
status bar
-in \texttt{xpdf} and \texttt{gpdf}, and in a
-``tooltip'' in recent versions of \texttt{kpdf}/\texttt{okular}, \texttt{evince}, and the Acrobat Reader.
+or in a
+``tooltip.''
This coordinate display make it easier to edit chart descriptions.
When the grid is on, the mid-point of every arrow is highlighted by
a ``bullet''.
@@ -374,54 +368,21 @@ The following additional packages are used:
\verb|multido|,
\verb|relsize|,
\verb|calc|,
-\verb|ifpdf|,
\verb|textcomp|,
-\verb|zref-savepos|,
+\verb|xcolor|,
and
\verb|hyperref|.
\emph{Either} \verb\pdflatex\
\emph{or}
-\verb\latex\ (followed by \verb\dvips\ and, possibly, \verb\ps2pdf\)
+\verb\xelatex\
\emph{or}
-\verb\latex\ (with suitable driver options, followed by \verb\dvipdfmx\)
-may be used; however, cropping shell scripts,
-image maps and link data files are only generated if \verb\pdflatex\
-is used.
-
-\section{Conversion to Portable Network Graphic (PNG) Format}
-
-To convert a chart (in Postscript or PDF format) to a reasonably high-quality image, it is suggested to use the
-\verb|convert| tool of the
-\verb|ImageMagick| package as follows:
-\begin{verbatim}
- convert -density 125 chart.ps chart.png
-\end{verbatim}
-or
-\begin{verbatim}
- convert -density 125 chart.pdf chart.png
-\end{verbatim}
-The density parameter specifies the number of pixels per inch; if this is too small, the
-image is of poor quality, and if it is too large, the image file is too big.
-By default, the shell script generated by \texttt{prerex.sty} crops the image at the southeast corner.
-It is possible to use a PNG compression application such as
-\texttt{optipng} to reduce the file-size of the cropped image (without loss of quality).
-
-If \verb\pdflatex\ is used, an auxiliary file
-containing image-map data for the hyperlinked nodes in the chart is also generated;
-consult a reference on the HTML language for an explanation of (client-side) image maps.
-
-\section{Conversion to Scalable Vector Graphic (SVG) Format}
-
-SVG is an emerging standard for high-quality graphics. The
-\texttt{pdf2svg}\footnote{%
-\myurl{http://www.cityinthesky.co.uk/opensource/pdf2svg/}}
-program uses \texttt{poppler} and \texttt{cairo} libraries
-to convert a PDF page to a scalable vector-graphic image. When compressed
-by \texttt{gzip} into \texttt{.svgz} format, the image file is comparable in size and quality
-to the PDF form. Currently, links in the PDF are not converted by \texttt{poppler} and
-\texttt{cairo} to links
-in the SVG image. Since Version~6.5, an auxiliary file of suitable commands for inclusion in
-a \texttt{.svg} image is generated by pdf\LaTeX\ processing.
+\verb\latex\, followed by \verb\dvips\ and, possibly, \verb\ps2pdf\
+\emph{or}
+\verb\latex\ (with suitable driver options), followed by either \verb\dvipdfmx\
+or \verb\dvisvgm\ may be used.
+
+\pagebreak
+
\section{Installation}
@@ -431,16 +392,8 @@ a \texttt{.svg} image is generated by pdf\LaTeX\ processing.
\item copy \verb|prerex.sty| to \emph{your-texmf-tree}\verb|/tex/latex/misc|
\item copy \verb|doc/prerex.{tex,pdf}| to \emph{your-texmf-tree}\verb|/doc/latex/misc|
\item if necessary, refresh the \TeX\ database (e.g., \verb|texhash|)
- \item copy \verb|man/prerex.sty.7| to sub-directory \verb|man7| of a \verb|man| directory on your
+ \item on a \textsc{Unix}-like system, copy \verb|doc/prerex.5| and \verb|doc/prerex.sty.7| to sub-directories of a \verb|man| directory on your
\verb|MANPATH|
- \item test by doing
-
-\begin{verbatim}
-$ man 7 prerex.sty
-$ make chart.pdf
-\end{verbatim}
-
-
\end{enumerate}
\section{Configuration}
@@ -470,7 +423,6 @@ coordinate unit if the chart is converted to an image at 125 dpi.
\item \verb|\newcommand{\dpi}{125}|
\item \verb|\newcommand{\PixelsPerUnit}{10}|
\end{list}
-These have to re-defined together if the image-map data are to be correct.
\begin{list}{}{}
\item \verb|\setcounter{diagheight}{75}|
\end{list}
@@ -508,6 +460,24 @@ this parameter is font-dependent.
\verb|\newcommand{\baselineAdj}{-0.5ex}|
\end{list}
+\section{Conversion to Scalable Vector Graphic Format}
+
+Scalable Vector Graphics (SVG) is an emerging standard for high-quality graphics. It is supported
+by all modern browsers natively, making it ideal for posting charts on the web.
+When compressed
+by \texttt{gzip} into \texttt{.svgz} format, an SVG image is comparable in size and quality
+to a PDF chart.
+The \texttt{dvisvgm}\footnote{%
+\myurl{http://dvisvgm.sourceforge.net/}; also available from CTAN and in TeXLive.}
+program may be used to produce a (compressed) SVG image directly from \verb\latex\ output.
+
+Another approach is to use \texttt{pdf2svg}\footnote{%
+\myurl{http://www.cityinthesky.co.uk/opensource/pdf2svg/}},
+a small program that uses \texttt{poppler} and \texttt{cairo} libraries
+to convert a PDF page to a scalable vector-graphic image.
+From version 0.2.3, \verb\pdf2svg\ inserts clickable
+links into the SVG image and supports a scaling option.
+
\section{Implementation Details}
\subsection{Boxes}
@@ -522,7 +492,7 @@ on, it is hyperlinked and its chart coordinates are encoded in the URI.
\subsection{Arrows}
Arrows with a small height and arrows whose
-source and target points have equal x or y coordinates are always draw straight
+source and target points have equal x or y coordinates are always drawn straight
(using a specialized and simpler macro) unless an explicit
non-zero curvature argument is provided.
@@ -542,19 +512,6 @@ two ``anchor'' hyperlinks are inserted at the southwest and northeast corners
of the diagram to allow prerex-enabled
PDF viewers to compute chart coordinates.
-\subsection{Chart Images}
-
-To support HTML versions of charts,
-\texttt{prerex.sty}
-(if processed by \verb\pdflatex\) generates a script to crop a chart image at the southeast corner, allowing
-descriptive notes below the chart to be treated as ordinary text. Also, for the clickable links,
-it generates image-map data for use with an HTML image map and
-\texttt{xlink} commands for embedding into an
-SVG image. To
-obtain absolute page coordinates for these auxiliary files, the \texttt{zsavepos}, \texttt{zposx}
-and \texttt{zposy} commands are used; the page coordinates are converted into pixel
-coordinates.
-
\section{License}
\verb|prerex.sty|, \verb|prerex.sty.7|, \verb|README.prerex| and this document may be distributed and/or modified under the
conditions of the \LaTeX\ Project Public License.
diff --git a/Master/texmf-dist/doc/latex/prerex/solid.png b/Master/texmf-dist/doc/latex/prerex/solid.png
deleted file mode 100644
index 2515d712af1..00000000000
--- a/Master/texmf-dist/doc/latex/prerex/solid.png
+++ /dev/null
Binary files differ