diff options
author | Karl Berry <karl@freefriends.org> | 2012-08-20 22:38:02 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-08-20 22:38:02 +0000 |
commit | 0e41a49f208f79c08d67dd315eefc1e118b1ab45 (patch) | |
tree | c24fe68c66cb22fa2da4e4e4c24603d6630610b5 /Master/texmf-dist/doc/latex/presentations-en/01-01-6.ltx2 | |
parent | 4b4e52c44aa751126df4f8692344da23f9e14847 (diff) |
new example set presentations-en (20aug12)
git-svn-id: svn://tug.org/texlive/trunk@27471 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/presentations-en/01-01-6.ltx2')
-rw-r--r-- | Master/texmf-dist/doc/latex/presentations-en/01-01-6.ltx2 | 170 |
1 files changed, 170 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/presentations-en/01-01-6.ltx2 b/Master/texmf-dist/doc/latex/presentations-en/01-01-6.ltx2 new file mode 100644 index 00000000000..ba164879037 --- /dev/null +++ b/Master/texmf-dist/doc/latex/presentations-en/01-01-6.ltx2 @@ -0,0 +1,170 @@ +%% +%% An UIT Edition example +%% +%% 1st edition +%% +%% Example 01-01-6 on page 8. +%% +%% Copyright (C) 2012 Herbert 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]{exareport} +\pagestyle{empty} +\setlength\textwidth{126.88268pt} +\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 +%\StartShownPreambleCommands +\documentclass[a4paper,11pt]{report} +\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} +%\StopShownPreambleCommands +\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 that has a rich set of drawing commands; there are programs +(such as \textsf{dvips}) that 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 that you don't need to know PostScript to +use it -- the necessary PostScript code can be generated by \TeX\ commands +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? Thanks to the 17\textsuperscript{th}-century French +mathematicians Pierre de Fermat and Ren\'e Descartes, we have a method for +specifying each point in a plane using a pair of numbers. The method is to fix +a pair of perpendicular lines (called \emph{axes}) and label each point with +the numbers representing its distance from the nearest point on each axis (called +\emph{coordinates}). +\end{document} |