summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pgfplots/liststructuretest.tex
blob: a04801eaabda7037c9ae46b048794b9691a54229 (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
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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
\documentclass[a4paper]{article}
\usepackage{german}
\usepackage[utf8]{inputenc} % erlaubt direkte Nutzung von Umlauten

% \usepackage[a4paper,noheadfoot,pdftex,left=0.8cm,right=1cm,top=0.8cm,bottom=0.8cm]{geometry}
% \usepackage{color}
% \usepackage{colortbl}
% \usepackage{longtable}
% \usepackage[a4paper,colorlinks=true]{hyperref} % Querverweise etc. option pdftex,dvipdfm?
% \usepackage{graphicx}
% \usepackage[draft]{graphicx}
% \usepackage{listings} % fuer codefragmente jeder art
\usepackage[intlimits]{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
% \usepackage{amsthm}
\usepackage{bibgerm}
%\usepackage{simplelist}
\usepackage{liststructure}


% fuer endvironment 'sidewaysfigure' bspw
% \usepackage{rotating}

%\pdfinfo {
%	/Author	(Christian Feuersaenger)
%}

%%
% My user defined commands ...
%
\usepackage{mymath}
\usepackage{myext}

% von Alex: A4-Groesse, symmetrische Seitenraender.
% \usepackage{mya4sym}


% figure einstellungen:
%\renewcommand{\topfraction}{0.85}
%\renewcommand{\textfraction}{0.06}
%\renewcommand{\floatpagefraction}{0.8}



\author{Christian Feuersänger}
%\title{}

\begin{document}
%\maketitle
{
\tracingcommands=1
%--------------------------------------------------
% \message{TEST toks0:}%
% \toks0={{a}{b}{c}{d}}%
% Der Inhalt davon ist \the\toks0
% 
% \message{TEST 2 toks0:}%
% \def\probe{{a}{b}{c}{d}}%
% \toks0={\probe}%
% Der Inhalt davon ist \the\toks0
% 
% ENDE
% 
% \message{TEST create:}%
% \listcreate{\probe}{{a}{b}{c}{d}}%
% 
% %\show\listcreate
% 
% \message{Nutze probe:}%
% Inhalt: \probe
% 
% \count0=0
% \loop
% \ifnum\count0<5
% \listpopfront\erstes\probe
% Das Erste: \erstes
% 
% Inhalt: \probe
% \vskip2cm
% \advance\count0 by1
% \repeat
% 
% \tracingmacros=2
% \message{Pushback-Test}%
% Inhalt vorher: \probe
% 
% \listpushback\probe{a}%
% Inhalt jetzt: \probe
% 
% \listpushback\probe{[eins]}%
% Inhalt jetzt: \probe
% 
% \listpushback\probe{zwei}%
% Inhalt jetzt: \probe
% 
% \message{lese wieder alles aus:}%
% lese wieder alles aus:%
% \count0=0
% \loop
% \ifnum\count0<5
% \listpopfront\erstes\probe
% Das Erste: \erstes
% 
% Inhalt: \probe
% \vskip2cm
% \advance\count0 by1
% \repeat
% 
% 
% \vskip3cm
% \message{Das hat NICHT geklappt}%
% \listcreate{\probe}{{eins}{drei}}%
% Inhalt: \probe
% 
% \listpopfront\erstes\probe
% Erstes: \erstes
% 
% Inhalt: \probe
% 
% \listpopfront\erstes\probe
% Erstes: \erstes
% 
% Inhalt: \probe
% 
%-------------------------------------------------- 


\tracingmacros=2
\message{HIER GEHTS LOS}%
\let\probe=\empty
\listpushback eins\to\probe
\listpushback [probe]\to\probe
\listpushback [probe2]\to\probe
\listpushback [probe3]\to\probe

Groesse: \listsize\probe\to{\count0}\the\count0

Inhalt:

\listforeach\probe\as\curlistelem{\curlistelem \par}

\listnew\foolist{Eins\\Zwei\\Drei\\}%
\listforeach\foolist\as\foo{Element \foo\par}%

\tracingcommands=2
\message{SELECT TEST:}%
\count1=1
Element \the\count1: \listselect\count1\of\probe\to\elem\elem

Element 3: \listselect3\of\probe\to\elem\elem

Jetzt ist count1=\the\count1
\vskip1cm

\listpopfront\probe\to\first
Erstes: \first

verbleibedne Größe: \listsize\probe\to{\count0}\the\count0

\listpopfront\probe\to\first
Erstes: \first

verbleibedne Größe: \listsize\probe\to{\count0}\the\count0


\message{NEUE LISTE:}%
NEUE LISTE:
\listnew\foolist{First Element\\Second Element\\Third Element\\}
\listnew\foolistX{Eins\\Zwei\\}
{\def\\#1{#1\par}
Inhalt: 

\foolist
}

\listconcat\third=\foolist&\foolistX

{\def\\#1{#1\par}
Ergebnis von concat: 

\third
}
\message{ENDE}%
}



\bibliographystyle{gerabbrv} %gerapali} %gerabbrv} %gerunsrt.bst} %gerabbrv}% gerplain}
% \bibliography{literatur.bib}
\end{document}