summaryrefslogtreecommitdiff
path: root/info/examples/PSTricks_7_de/D-05-1.ltx4
blob: 4d6718e3f28a16275fb1bc8f4deac073ea3b5aa2 (plain)
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
%% 
%%  Ein Beispiel der DANTE-Edition
%%  
%%  7. Auflage
%% 
%%  Beispiel D-05-1 auf Seite 902.
%% 
%%  Copyright (C) 2016 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
%% 
%% 
\documentclass[]{exaarticle}
\pagestyle{empty}
\setlength\textwidth{352.81416pt}
\setlength\parindent{0pt}
\usepackage[utf8]{inputenc}
%StartShownPreambleCommands
\usepackage{dtk-extern}
\pdfminorversion=7 % ConTeXt erstellt pdf 1.7
%StopShownPreambleCommands
\begin{document}
Dies ist eine \LaTeX-Datei, welche eine mit Con\TeX{}t »on-the-fly«
erzeugte Abbildung einbinden wird:

\begin{center}
\begin{ErstelleGrafik}[compiler=context,crop,force,
  progpath=/usr/local/texlive/current/bin/x86_64-linux/]{ctxexa}
\usemodule[pstricks]            % Hauptmodul laden
\usePSTRICKSmodule[pst-plot]    % PSTricks Modul
\setuppagenumbering[location={}]% keine Seitenzahl im Kopf
\starttext                      % Beginn Textkörper
\startPSTRICKS                  % Starte PSTricks Code
\pspicture(-0.5,-4.5)(12.5,5)
\psaxes{->}(0,0)(0,-4.5)(12,4.5)[$x$,-90][$y$,0]
\psplot[linewidth=1.5pt,linecolor=red,
  plotpoints=3000,algebraic]{0}{11}{x^2/25*sin(4*x)}
\endpspicture
\stopPSTRICKS                   % Ende PSTricks Code
\stoptext                       % Ende Textkörper
\end{ErstelleGrafik}            % Ende Umgebung
\end{center}
\end{document}