1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169
|
%%
%% Ein DANTE-Edition Beispiel
%%
%% Beispiel 01-01-6 auf Seite 7.
%%
%% Copyright (C) 2010 Voss
%%
%% It may be distributed and/or modified under the conditions
%% of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%%
%% See http://www.latex-project.org/lppl.txt for details.
%%
% Show page(s) 1,2,3
\documentclass[a4paper,11pt]{articlereport}
\pagestyle{empty}
\setcounter{page}{6}
\usepackage{xcolor,url}
\usepackage[pdftex,screen,rightpanel,code,paneltoc,sectionbreak]{pdfscreen}
\usepackage[scaled]{helvet}
\renewcommand\familydefault{\sfdefault}
\definecolor{gray9}{gray}{.9}
\definecolor{orange}{rgb}{1,.549,0}
\def\Black{\color{black}}
\definecolor{panelbackground}{gray}{.8}
\definecolor{gray6}{gray}{.4}
\definecolor{gray3}{gray}{.3}
\definecolor{buttonbackground}{rgb}{0,.624,.820}
\definecolor{buttonshadow}{rgb}{.001,0,.502}
\definecolor{button}{rgb}{1,.549,.0}
\definecolor{buttondisable}{gray}{.7}
\def\nBlue{\color{buttonshadow}}
\font\CVxx=contnav at 15pt
\fboxrule1pt\fboxsep2pt
\def\Prev{\fbox{\hbox to .5cm{\hfil\scalebox{.8}[1.2]{\CVxx\char1}\hfil}}}
\def\Next{\fbox{\hbox to .5cm{\hfil\scalebox{.8}[1.2]{\CVxx\char2}\hfil}}}
\def\NNext{\fbox{\hbox to
.5cm{\hfil\scalebox{.8}[1.2]{Zoom~\thepsfig}\hfil}}}
\def\First{\fbox{\hbox to .5cm{\hfil\scalebox{.8}[1.2]{\CVxx\char3}\hfil}}}
\def\Last{\fbox{\hbox to .5cm{\hfil\scalebox{.8}[1.2]{\CVxx\char4}\hfil}}}
\def\Back{\fbox{\hbox to .5cm{\hfil\scalebox{.8}[1.2]{\CVxx\char5}\hfil}}}
\def\Forw{\fbox{\hbox to .5cm{\hfil\scalebox{.8}[1.2]{\CVxx\char6}\hfil}}}
\def\Close{\fbox{\hbox to .5cm{\hfil\scalebox{.8}[1.2]{\CVxx\char9}\hfil}}}
\def\NavigationPanel{\begingroup\fboxsep2pt\fboxrule=1pt%
\parbox[b][.6cm][b]{.95\panelwidth}{\hfil%
\Acrobatmenu{FirstPage}{\ifnum\thepage=1%
{\color{buttondisable}\First}\else
{\color{button}\First}\fi}\hfil%
\Acrobatmenu{PrevPage}{\ifnum\thepage=1%
{\color{buttondisable}\Prev}\else
{\color{button}\Prev}\fi}\hfil%
\Acrobatmenu{NextPage}{\ifnum\thepage=\number\ScreenLastPage%
{\color{buttondisable}\Next}\else
{\color{button}\Next}\fi}\hfil
\Acrobatmenu{LastPage}{\ifnum\thepage=\number\ScreenLastPage%
{\color{buttondisable}\Last}\else
{\color{button}\Last}\fi}\hfil%
\Acrobatmenu{GoBack}{\color{button}\Back}\hfil%
\Acrobatmenu{GoForward}{\color{button}\Forw}\hfil%
\Acrobatmenu{Close}{\color{button}\Close}}%
\endgroup}
\makeatletter
\long\def\panel{%
\begin{minipage}[t][\paperheight][b]{\panelwidth}%
\normalsfcodes%
\centering%
\null\vspace*{18pt}%
\ifnum\thepage=2\relax\else
\scalebox{1}[1.2]{\Huge\color{section1}Graphics with}
\scalebox{1}[1.2]{\huge\color{section1} \textsf{PSTricks}}\\[9pt]\fi
\if@paneltoc%
\@panel@toc\else\relax\fi%
\par\vfill
\begingroup\color{white}
\scalebox{1}[1.15]{\Large\bfseries Online \LaTeX{} Tutorial}\\[6pt]
\scalebox{1}[1.15]{\huge\bfseries Part II -- Graphics}\\
\endgroup
\par\vfill
\begin{minipage}{3in}
\small\color{gray6}\raggedright\sffamily
\copyright2002, The Indian \TeX{} Users Group\\
This document is generated by \textsc{pdf}\TeX{} with hyperref,
pstricks, pdftricks and pdfscreen packages in an intel \textsc{pc}
running \textsc{gnu/linux} and is released under \textsc{lppl}
\end{minipage}\\[6pt]
\begin{minipage}[b]{.55in}
\href{http://www.tug.org.in/}{\includegraphics[width=.54in,height=.75in]{images/pdfscreen/tex}}%
\end{minipage}
\begin{minipage}[b]{2.4in}\color{gray6}%
\normalsize\rmfamily%
{\bfseries The Indian \TeX{} Users Group}\\
\footnotesize Floor \textsc{iii, sjp} Buildings, Cotton Hills\\
\footnotesize Trivandrum 695014, \textsc{india}\\[-4pt]
\rule{2.24in}{1pt}\vskip-3pt
\protect\url{http://www.tug.org.in}
\end{minipage}\\[6pt]
\NavigationPanel%
\null\vspace*{18pt}
\end{minipage}}
\def\@urlcolor{red}
\urlstyle{sf}
\definecolor{gray4}{gray}{.6}
\def\@panel{\fboxsep=0pt\fboxrule=5pt%
\begingroup\normalsfcodes\ifx\@paneloverlay\@empty%
\fcolorbox{white}{panelbackground}{\panel}%
\else%
\vbox to\z@{\hbox to\z@{\includegraphics[width=\panelwidth,%
height=\paperheight]{\@paneloverlay}%
\hspace{-\panelwidth}\hfill}\vspace{-\paperheight}\vfill}%
\panel\fi%
\endgroup}%
\long\def\chapter#1{\stepcounter{chapter}
\begingroup
\null\par\vspace*{20pt}\raggedleft
\parindent0pt\color{section1}
\rule{\linewidth}{2pt}\par
\vspace*{12pt}
\scalebox{1}[1.2]{\bfseries\huge \thechapter.~#1}\par
\vspace*{3pt}
\rule{\linewidth}{2pt}\endgroup
\par\vspace*{1cm}}
\makeatother
\usepackage[T1]{fontenc}
\usepackage[scaled]{helvet}
\usepackage[pdftex,screen,rightpanel,code,paneltoc,sectionbreak]{pdfscreen}
\panelwidth=3.5in \margins{.75in}{.75in}{.75in}{.75in} \screensize{220mm}{297mm}
\hypersetup{pdfcenterwindow=true,pdfpagemode=FullScreen}
\paneloverlay{images/pdfscreen/mp}
\begin{document}
\pagedissolve{Replace} \huge
\overlay{images/pdfscreen/pst}
\begin{slide}
\centering
\includegraphics[width=.7\linewidth]{images/pdfscreen/Tore3d}
\end{slide}
\newpage
\overlay{images/pdfscreen/mpgraph.mps}
\chapter{Graphics with PSTricks}
\noindent
\LaTeX\ has only limited drawing capabilities, while Post\-Script is a
page description language which has a rich set of drawing commands;
and there are programs (such as \textsf{dvips}) which translate the
\texttt{dvi} output to Post\-Script. So, the natural question is whether
one can include pure PostScript code in a \TeX\ source file itself for
programs such as \textsf{dvips} to process after the \TeX\
compilation? This is the idea behind the \textsf{PSTricks} package of
Timothy Van Zandt. The beauty of it is one need not know PostScript to
use it---the necessary PostScript code can be generated by \TeX\
macros defined in the package.
\section{Getting the points}
Any picture is drawn by stringing together appropriate points. How do
we specify the points we need? We've a method of specifying each point
in a plane using a pair of numbers, thanks to the
17\textsuperscript{th} century French mathematicians Pierre de Fermat
and Ren\'e Descartes. The method is to fix a pair of perpendicular
lines (called \emph{axes}) and label each point with the numbers
representing its distance from these two points (called
\emph{coordinates}) as shown in the figure below:
\end{document}
|