[tex-eplain] Outlines side panel without pdftex?
Rodolfo Medina
rodolfo.medina at gmail.com
Wed May 25 21:51:30 CEST 2016
Karl Berry <karl at freefriends.org> writes:
> outline side panel also with the dvips -> ps2pdf process.
>
> I am not sure. Do you know if there's a way to get the outline panel
> with dvips|ps2pdf with latex? Does hyperref support it, or some other
> package? That is, do you know of any existing code to do the job that I
> could look at? I've never had occasion to delve into this before.
>
> At any rate, if you can send me an example I can run that works with
> pdftex, that would help. If it doesn't involve musixtex, so much the
> better -- must walk before we can run :). Thanks, k.
Hi!
I'm attaching two minimal examples. The first:
%%begin%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass{article}
\usepackage{graphicx}
\usepackage[]{hyperref}
\begin{document}
\title{Introduction to \LaTeX{}}
\author{Author's Name}
\maketitle
\begin{abstract}
The abstract text goes here.
\end{abstract}
\section{Introduction}
Here is the text of your introduction.
\begin{equation}
\label{simple_equation}
\alpha = \sqrt{ \beta }
\end{equation}
\subsection{Subsection Heading Here}
Write your subsection text here.
\section{Conclusion}
Write your conclusion here.
\end{document}
%%end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
produces outline panel with LaTeX. It requires hyperref package. Process it
in 4 steps: `latex test' twice, then `dvips test' and finally `ps2pdf test.ps'.
The second:
%%begin%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\input eplain
\ifpdf
\pdfdest name {label} xyz%
\pdfoutline goto name {label} {first chapter}%
\else
\fi
This is first chapter
\ifpdf
\pdfdest name {label2} xyz%
\pdfoutline goto name {label2} {second chapter}%
\else
\fi
This is second chapter
\end
%%end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
produces outline panel simply with eplain but it requires pdftex. Process it
with `pdftex test2'.
I really hope you could find a solution. Thanks indeed. Please let me know if
the examples should not work to you. They do to me.
Best,
Rodolfo
More information about the tex-eplain
mailing list