tioga 1.13 → 1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Tioga_README +22 -13
- data/ext/Dobjects/Dvector/dvector.c +1 -1
- data/ext/Tioga/FigureMaker/__shared_axes.c +1 -1
- data/ext/Tioga/FigureMaker/figures.c +2 -0
- data/ext/Tioga/FigureMaker/figures.h +3 -2
- data/ext/Tioga/FigureMaker/shared/axes.c +1 -1
- data/lib/Tioga/FigMkr.rb +7 -24
- data/lib/Tioga/tioga_ui_cmds.rb +2 -2
- metadata +6 -11
- data/lib/Tioga/TexPreamble.rb +0 -372
- data/tests/Icon_Test.pdf +0 -0
- data/tests/vg.log +0 -1453
data/Tioga_README
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
This is the README for the Tioga kernel, version 1.
|
1
|
+
This is the README for the Tioga kernel, version 1.14, June 10, 2011.
|
2
2
|
|
3
3
|
Copyright (C) 2005, 2006, 2007, 2008, 2009 Bill Paxton
|
4
|
-
Copyright (C) 2007, 2008, 2009, 2010 Vincent Fourmond, Taro Sato,
|
4
|
+
Copyright (C) 2007, 2008, 2009, 2010, 2011 Vincent Fourmond, Taro Sato,
|
5
5
|
Benjamin ter Kuile
|
6
6
|
|
7
7
|
This file is part of Tioga.
|
@@ -22,13 +22,13 @@ This is the README for the Tioga kernel, version 1.10, March 7, 2009.
|
|
22
22
|
|
23
23
|
<< What's new >>
|
24
24
|
|
25
|
-
|
26
|
-
|
27
|
-
|
25
|
+
Tioga 1.14 fixes all known problems of Tioga with Ruby 1.9.1 and
|
26
|
+
higher (to the point that it runs with ctioga2, and the samples run
|
27
|
+
too !).
|
28
28
|
|
29
|
-
|
30
|
-
|
31
|
-
|
29
|
+
It also brings in the possibility to customize the number of major
|
30
|
+
ticks after which log plots don't show minor ticks, via the
|
31
|
+
log_minor_ticks_limit accessor.
|
32
32
|
|
33
33
|
<< Quick Installation of Tioga >>
|
34
34
|
|
@@ -122,18 +122,18 @@ The next step is to do the tutorial found in the documentation.
|
|
122
122
|
Once you have Tioga installed, the on-line tutorial will help you
|
123
123
|
get started using it.
|
124
124
|
|
125
|
-
http://
|
125
|
+
http://tioga.rubyforge.org/doc/classes/Tioga/Tutorial.html
|
126
126
|
|
127
127
|
|
128
128
|
<< Documentation >>
|
129
129
|
|
130
130
|
Visit this website to access the documentation:
|
131
131
|
|
132
|
-
http://
|
132
|
+
http://tioga.rubyforge.org/doc/
|
133
133
|
|
134
134
|
If for some reason that link isn't working, go to my website,
|
135
135
|
|
136
|
-
http://
|
136
|
+
http://www.kitp.ucsb.edu/~paxton
|
137
137
|
|
138
138
|
and check there for a new link to the Tioga stuff.
|
139
139
|
|
@@ -157,7 +157,7 @@ fix it. Or even better, let me know the fix along with the bug!
|
|
157
157
|
|
158
158
|
----------------------------------
|
159
159
|
|
160
|
-
For more, visit my website: http://
|
160
|
+
For more, visit my website: http://www.kitp.ucsb.edu/~paxton
|
161
161
|
|
162
162
|
Best wishes,
|
163
163
|
Bill Paxton
|
@@ -172,6 +172,15 @@ Bill Paxton
|
|
172
172
|
|
173
173
|
Here are the old release messages:
|
174
174
|
|
175
|
+
Tioga 1.13 brings in a fix for a well-hidden memory leak that was
|
176
|
+
unlikely to hit you unless you were allocating a huge number of
|
177
|
+
vectors.
|
178
|
+
|
179
|
+
More interestingly, a few instance functions that did not depend on
|
180
|
+
FigureMaker's internal state (color conversion functions and
|
181
|
+
contouring algorithms) were made available as module functions too.
|
182
|
+
|
183
|
+
|
175
184
|
Tioga 1.12 has seen quite a lot of action. The first and major
|
176
185
|
change is the switch from a custom rewrite of mkmf.rb for
|
177
186
|
building/installing to the standard setup.rb tool, which finally has
|
@@ -318,7 +327,7 @@ time? Turns out there was one user who couldn't live without it --
|
|
318
327
|
me! So it's back, but I'm still not making any promises about keeping
|
319
328
|
it alive if Apple does something stupid in coming releases. If you're
|
320
329
|
interested in playing with it in spite of that warning, it's available
|
321
|
-
from my website (http://
|
330
|
+
from my website (http://www.kitp.ucsb.edu/~paxton/Tioga-1.5.dmg).
|
322
331
|
|
323
332
|
Cheers, Bill
|
324
333
|
|
@@ -5967,7 +5967,7 @@ static VALUE dvector_fft_mul(VALUE self, VALUE m)
|
|
5967
5967
|
* This copies <i>xhe</i> to <i>log_xhe0</i>, subtracts <i>xhe1</i> and <i>xhe2</i> from <i>log_xhe0</i> in place,
|
5968
5968
|
* and then takes the +log+, also in place. It's not pretty, but it is efficient -- use if needed.
|
5969
5969
|
*
|
5970
|
-
* Please report problems with the Dvector extension
|
5970
|
+
* Please report problems with the Dvector extension to the <tt>tioga-users</tt> at <tt>rubyforge.org</tt> mailing list.
|
5971
5971
|
* [Note: for N-dimensional arrays or arrays of complex numbers or integers as well as doubles,
|
5972
5972
|
* along with a variety of matrix operations,
|
5973
5973
|
* check out the NArray[http://www.ir.isas.ac.jp/~masa/ruby/index-e.html] extension.]
|
@@ -785,7 +785,7 @@ static double * get_minor_ticks_location(OBJ_PTR fmkr, FM *p,
|
|
785
785
|
if (s->number_of_minor_intervals <= 0) {
|
786
786
|
if (s->log_vals) {
|
787
787
|
double interval = s->majors[1] - s->majors[0];
|
788
|
-
s->number_of_minor_intervals = (abs(interval) != 1.0 || s->nmajors >
|
788
|
+
s->number_of_minor_intervals = (abs(interval) != 1.0 || s->nmajors > p->log_minor_ticks_limit) ? 1 : 9;
|
789
789
|
} else {
|
790
790
|
s->number_of_minor_intervals = Pick_Number_of_Minor_Intervals(s->interval, &ierr);
|
791
791
|
if (ierr != 0) return NULL;
|
@@ -233,6 +233,7 @@ FM *Get_FM(OBJ_PTR fmkr, int *ierr) {
|
|
233
233
|
|
234
234
|
/* Major ticks picking algorithm */
|
235
235
|
BOOL_ATTR(vincent_or_bill)
|
236
|
+
INT_ATTR(log_minor_ticks_limit)
|
236
237
|
|
237
238
|
|
238
239
|
/* Legend */
|
@@ -642,6 +643,7 @@ void Init_FigureMaker(void) {
|
|
642
643
|
|
643
644
|
/* Major ticks algorithm */
|
644
645
|
attr_accessors(vincent_or_bill)
|
646
|
+
attr_accessors(log_minor_ticks_limit)
|
645
647
|
|
646
648
|
/* Legend */
|
647
649
|
attr_accessors(legend_text_width)
|
@@ -292,8 +292,9 @@ typedef struct {
|
|
292
292
|
int right_edge_type;
|
293
293
|
bool right_edge_visible;
|
294
294
|
|
295
|
-
/* General axis
|
296
|
-
bool vincent_or_bill;
|
295
|
+
/* General axis */
|
296
|
+
bool vincent_or_bill; /* whether to use Bill's or Vincent's algorithms for minor ticks */
|
297
|
+
int log_minor_ticks_limit; /* the number after which we disable the display of minor ticks on log scale */
|
297
298
|
|
298
299
|
/* Legend */
|
299
300
|
// units are text heights for x and y for locations and sizes
|
@@ -785,7 +785,7 @@ static double * get_minor_ticks_location(OBJ_PTR fmkr, FM *p,
|
|
785
785
|
if (s->number_of_minor_intervals <= 0) {
|
786
786
|
if (s->log_vals) {
|
787
787
|
double interval = s->majors[1] - s->majors[0];
|
788
|
-
s->number_of_minor_intervals = (abs(interval) != 1.0 || s->nmajors >
|
788
|
+
s->number_of_minor_intervals = (abs(interval) != 1.0 || s->nmajors > p->log_minor_ticks_limit) ? 1 : 9;
|
789
789
|
} else {
|
790
790
|
s->number_of_minor_intervals = Pick_Number_of_Minor_Intervals(s->interval, &ierr);
|
791
791
|
if (ierr != 0) return NULL;
|
data/lib/Tioga/FigMkr.rb
CHANGED
@@ -38,7 +38,7 @@ class FigureMaker
|
|
38
38
|
|
39
39
|
# This URL will contain tioga-(...) when it is exported from the
|
40
40
|
# SVN repository. This is where we'll look for version information.
|
41
|
-
SVN_URL = '$HeadURL$'
|
41
|
+
SVN_URL = '$HeadURL: svn+ssh://rubyforge.org/var/svn/tioga/tags/tioga/Tioga%201.14/lib/Tioga/FigMkr.rb $'
|
42
42
|
|
43
43
|
TIOGA_VERSION = if SVN_URL =~ /tags\/tioga\/Tioga%20([^\/]+)/
|
44
44
|
$1
|
@@ -283,7 +283,7 @@ class FigureMaker
|
|
283
283
|
@enter_context_function = nil
|
284
284
|
@exit_context_function = nil
|
285
285
|
|
286
|
-
@enter_page_function = lambda
|
286
|
+
@enter_page_function = lambda { |t| t.default_enter_page_function }
|
287
287
|
@exit_page_function = nil
|
288
288
|
|
289
289
|
@tex_preview_paper_width = '297mm'
|
@@ -311,6 +311,7 @@ class FigureMaker
|
|
311
311
|
|
312
312
|
# By default, we use Bill's algorithm for major ticks positions
|
313
313
|
self.vincent_or_bill = false
|
314
|
+
self.log_minor_ticks_limit = 10
|
314
315
|
end
|
315
316
|
|
316
317
|
|
@@ -1219,7 +1220,7 @@ class FigureMaker
|
|
1219
1220
|
k += '=' if respond_to? "#{k}="
|
1220
1221
|
send(k, val)
|
1221
1222
|
end
|
1222
|
-
bottom[m].each {|x| stroke_line(x, y0, x, y1)}
|
1223
|
+
bottom["#{m}_ticks"].each {|x| stroke_line(x, y0, x, y1)}
|
1223
1224
|
end
|
1224
1225
|
end
|
1225
1226
|
end
|
@@ -1240,7 +1241,7 @@ class FigureMaker
|
|
1240
1241
|
k += '=' if respond_to? "#{k}="
|
1241
1242
|
send(k, val)
|
1242
1243
|
end
|
1243
|
-
left[m].each {|y| stroke_line(x0, y, x1, y)}
|
1244
|
+
left["#{m}_ticks"].each {|y| stroke_line(x0, y, x1, y)}
|
1244
1245
|
end
|
1245
1246
|
end
|
1246
1247
|
end
|
@@ -2471,26 +2472,8 @@ class FigureMaker
|
|
2471
2472
|
puts msg
|
2472
2473
|
puts ""
|
2473
2474
|
end
|
2474
|
-
puts "
|
2475
|
-
|
2476
|
-
show_count = 0
|
2477
|
-
past_callers_routines = false
|
2478
|
-
in_callers_routines = false
|
2479
|
-
er.backtrace.each do |line|
|
2480
|
-
if (line.include?('Tioga/FigMkr.rb')) || (line.include?('Tioga/tioga_ui.rb'))
|
2481
|
-
if in_callers_routines
|
2482
|
-
past_callers_routines = true
|
2483
|
-
in_callers_routines = false
|
2484
|
-
end
|
2485
|
-
else
|
2486
|
-
in_callers_routines = true
|
2487
|
-
end
|
2488
|
-
if (show_count < @num_error_lines) and in_callers_routines
|
2489
|
-
puts " " + line
|
2490
|
-
show_count = show_count + 1
|
2491
|
-
end
|
2492
|
-
line_count = line_count + 1
|
2493
|
-
end
|
2475
|
+
puts " #{er.message} [version: #{ FigureMaker.version}]"
|
2476
|
+
puts "\t#{er.backtrace.join("\n\t")}"
|
2494
2477
|
end
|
2495
2478
|
|
2496
2479
|
|
data/lib/Tioga/tioga_ui_cmds.rb
CHANGED
@@ -201,7 +201,7 @@ class TiogaUI
|
|
201
201
|
puts "\nThis program is a command line interface for the open-source tioga kernel."
|
202
202
|
puts "The tioga kernel is for creating figures and plots using Ruby, PDF, and TeX."
|
203
203
|
puts "Following is a brief description of the tioga command line options."
|
204
|
-
puts "For more information, visit http://
|
204
|
+
puts "For more information, visit http://www.kitp.ucsb.edu/~paxton/tioga.html."
|
205
205
|
puts "\nBefore any command line information is processed, tioga runs ~/.tiogainit if it exists."
|
206
206
|
puts " The primary use of this file is to set your default pdf viewer command (see below)."
|
207
207
|
puts "\nIf there are no command line arguments, or the argument is -h, this help info is output."
|
@@ -699,7 +699,7 @@ class TiogaUI
|
|
699
699
|
'message' => "Tioga-Point-and-Click is a Ruby/Tk Application.\n" +
|
700
700
|
"It uses the Tioga kernel to create PDFs and then calls your favorite viewer to show them.\n\n" +
|
701
701
|
"Version 0.1 -- January, 2007\n\n" +
|
702
|
-
"Visit http://
|
702
|
+
"Visit http://www.kitp.ucsb.edu/~paxton/tioga.html")
|
703
703
|
end
|
704
704
|
|
705
705
|
|
metadata
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tioga
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 19
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: "1.
|
8
|
+
- 14
|
9
|
+
version: "1.14"
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Bill Paxton
|
@@ -19,8 +19,7 @@ autorequire:
|
|
19
19
|
bindir: bin
|
20
20
|
cert_chain: []
|
21
21
|
|
22
|
-
date: 2011-
|
23
|
-
default_executable:
|
22
|
+
date: 2011-06-10 00:00:00 Z
|
24
23
|
dependencies: []
|
25
24
|
|
26
25
|
description:
|
@@ -130,7 +129,6 @@ files:
|
|
130
129
|
- lib/Tioga/irb_tioga.rb
|
131
130
|
- lib/Tioga/FigMkr.rb
|
132
131
|
- lib/Tioga/tioga_ui_cmds.rb
|
133
|
-
- lib/Tioga/TexPreamble.rb
|
134
132
|
- lib/Tioga/Markers.rb
|
135
133
|
- lib/Tioga/MarkerConstants.rb
|
136
134
|
- lib/Tioga/Rectangles.rb
|
@@ -138,7 +136,6 @@ files:
|
|
138
136
|
- lib/Tioga/Using_Paths.rb
|
139
137
|
- lib/Tioga/Special_Paths.rb
|
140
138
|
- lib/Tioga/TeX_Text.rb
|
141
|
-
- tests/Icon_Test.pdf
|
142
139
|
- tests/dtable_test.data
|
143
140
|
- tests/dvector_read_test.data
|
144
141
|
- tests/tc_Dvector.rb
|
@@ -148,7 +145,6 @@ files:
|
|
148
145
|
- tests/tc_Dtable.rb
|
149
146
|
- tests/tc_Flate.rb
|
150
147
|
- tests/tc_FMkr.rb
|
151
|
-
- tests/vg.log
|
152
148
|
- tests/tc_Function.rb
|
153
149
|
- Tioga_README
|
154
150
|
- lgpl.txt
|
@@ -158,7 +154,6 @@ files:
|
|
158
154
|
- ext/Dobjects/Dvector/extconf.rb
|
159
155
|
- ext/Dobjects/Dtable/extconf.rb
|
160
156
|
- ext/Dobjects/Function/extconf.rb
|
161
|
-
has_rdoc: true
|
162
157
|
homepage: http://tioga.rubyforge.org
|
163
158
|
licenses:
|
164
159
|
- LGPL 2.1
|
@@ -188,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
188
183
|
requirements: []
|
189
184
|
|
190
185
|
rubyforge_project: tioga
|
191
|
-
rubygems_version: 1.
|
186
|
+
rubygems_version: 1.7.2
|
192
187
|
signing_key:
|
193
188
|
specification_version: 3
|
194
189
|
summary: Tioga - a powerful scientific plotting library
|
data/lib/Tioga/TexPreamble.rb
DELETED
@@ -1,372 +0,0 @@
|
|
1
|
-
# This file is automatically generated from Tioga/tioga.sty.in
|
2
|
-
# using the Tioga/mk_tioga_sty.rb script.
|
3
|
-
#
|
4
|
-
# Please do not modify this file directly as all changes would
|
5
|
-
# be lost !!
|
6
|
-
|
7
|
-
module Tioga
|
8
|
-
class FigureMaker
|
9
|
-
TEX_PREAMBLE = <<'End_of_preamble'
|
10
|
-
\makeatletter
|
11
|
-
% Here are some command to ease the use of pictures produced by Tioga
|
12
|
-
% within a LaTeX document.
|
13
|
-
|
14
|
-
|
15
|
-
% \tiogafigurefullpage[minwhitespace]{figurename}
|
16
|
-
%
|
17
|
-
% \tiogafigurefullpage shows a version of the picture scaled to fit the
|
18
|
-
% paper size minus the minwhitespace. The minwhitespace is the sum of
|
19
|
-
% the margins on both sides, top and bottom or left and right.
|
20
|
-
% The minwhitespace defaults to 2 inches.
|
21
|
-
%
|
22
|
-
\newcommand{\tiogafigurefullpage}[2][2in]{
|
23
|
-
\tiogafigurescaledtofit{#2}{\paperwidth - (#1)}{\paperheight - (#1)}}
|
24
|
-
|
25
|
-
|
26
|
-
% \tiogafigurescaledtofit{figurename}{maxwidth}{maxheight}
|
27
|
-
%
|
28
|
-
% \tiogafigurescaledtofit shows a version of the picture scaled to fit the
|
29
|
-
% given width and height while preserving the aspect ratio.
|
30
|
-
% The 1st arg is the base name for the pdf and txt files.
|
31
|
-
% The 2nd arg determines the maximum figure width.
|
32
|
-
% The 3rd arg determines the maximum figure height.
|
33
|
-
\newcommand{\tiogafigurescaledtofit}[3]{
|
34
|
-
\setkeys{Gin}{keepaspectratio=true}
|
35
|
-
\resizebox{#2}{#3}{\tiogafigureshow{#1}}}
|
36
|
-
|
37
|
-
|
38
|
-
% \tiogafigurescaled{figurename}{scalefactor}
|
39
|
-
%
|
40
|
-
% \tiogafigurescaled shows a scaled version of the picture
|
41
|
-
% The 1st arg is the base name for the pdf and txt files.
|
42
|
-
% The 2nd arg determines the scale.
|
43
|
-
\newcommand{\tiogafigurescaled}[2]{
|
44
|
-
\scalebox{#2}{\tiogafigureshow{#1}}}
|
45
|
-
|
46
|
-
|
47
|
-
% \tiogafigurescaledxy{figurename}{xscalefactor}{yscalefactor}
|
48
|
-
%
|
49
|
-
% \tiogafigurescaledxy shows a scaled version of the picture where you
|
50
|
-
% can use different scaling factors in the horizontal and vertical directions.
|
51
|
-
% The 1st arg is the base name for the pdf and txt files.
|
52
|
-
% The 2nd arg determines the horizontal scale.
|
53
|
-
% The 3rd arg determines the vertical scale.
|
54
|
-
\newcommand{\tiogafigurescaledxy}[3]{
|
55
|
-
\scalebox{#2}[#3]{\tiogafigureshow{#1}}}
|
56
|
-
|
57
|
-
|
58
|
-
% \tiogafiguresized{figurename}{figurewidth}{figureheight}
|
59
|
-
%
|
60
|
-
% \tiogafiguresized shows a scaled version of the picture, where you
|
61
|
-
% can specify the actual size you want. If either length is
|
62
|
-
% given as !, the one scale factor is used in both directions.
|
63
|
-
% The 1st arg is the base name for the pdf and txt files.
|
64
|
-
% The 2nd arg determines the figure width.
|
65
|
-
% The 3rd arg determines the figure height.
|
66
|
-
\newcommand{\tiogafiguresized}[3]{
|
67
|
-
\resizebox{#2}{#3}{\tiogafigureshow{#1}}}
|
68
|
-
|
69
|
-
|
70
|
-
% \tiogaprefix can be used to set a path for the figure pdf and txt files.
|
71
|
-
%
|
72
|
-
\newcommand{\tiogaprefix}{}
|
73
|
-
% The prefix is initialized to an empty string.
|
74
|
-
% To change it, use \renewcommand as in the following example:
|
75
|
-
% \renewcommand{\tiogaprefix}{plot_out/}
|
76
|
-
|
77
|
-
|
78
|
-
% \tiogafigurecentered{figurename}{targetwidth}{targetheight}
|
79
|
-
%
|
80
|
-
% \tiogafigurecentered displays an unscaled figure centered within
|
81
|
-
% a box of targetwidth *targetheight.
|
82
|
-
\newcommand{\tiogafigurecentered}[3]{
|
83
|
-
\vbox to #3{%
|
84
|
-
\vspace*{\fill}%
|
85
|
-
\hbox to #2{\hfill%
|
86
|
-
\tiogafigureshow{#1}%
|
87
|
-
\hspace*{\fill}}%
|
88
|
-
\vspace*{\fill}%
|
89
|
-
}}
|
90
|
-
|
91
|
-
% \tiogafigurecentereddebug{figurename}{targetwidth}{targetheight}
|
92
|
-
%
|
93
|
-
% \tiogafigurecentereddebug has the same effect as \tiogafigurecentered
|
94
|
-
% except that the figure is included in a \fbox, which makes it easier
|
95
|
-
% to track problems.
|
96
|
-
\newcommand{\tiogafigurecentereddebug}[3]{
|
97
|
-
\vbox to #3{%
|
98
|
-
\vspace*{\fill}%
|
99
|
-
\hbox to #2{\hfill%
|
100
|
-
\fbox{\tiogafigureshow{#1}}
|
101
|
-
\hspace*{\fill}}%
|
102
|
-
\vspace*{\fill}%
|
103
|
-
}}
|
104
|
-
|
105
|
-
|
106
|
-
% \tiogafigureshow{figurename}
|
107
|
-
%
|
108
|
-
% \tiogafigureshow shows the figure and the accompanying text.
|
109
|
-
% Inside a box, it first creates a picture that includes the pdf
|
110
|
-
% file with the graphics for the figure, then it includes the text.
|
111
|
-
% The \tiogaprefix is added at the start of the file names for both.
|
112
|
-
\newcommand{\tiogafigureshow}[1]{%
|
113
|
-
\mbox{\begin{picture}(0,0)(0,0)%
|
114
|
-
\put(0,0){\includegraphics{\tiogaprefix#1_figure.pdf}}%
|
115
|
-
\end{picture}%
|
116
|
-
\input{\tiogaprefix#1_figure.txt}}}
|
117
|
-
|
118
|
-
% Commands for text properties:
|
119
|
-
% Font size (two parameters)
|
120
|
-
% {sz}{line_sp}, 1st is size of font in points,
|
121
|
-
% 2nd is line spacing (not used by Tioga)
|
122
|
-
\newcommand\tiog@fontsize{{10.0}{10pt}}
|
123
|
-
\newcommand\settiogafontsize[2][10pt]{\renewcommand\tiog@fontsize{{#2}{#1}}}
|
124
|
-
|
125
|
-
% Font family
|
126
|
-
% \rmdefault, \sfdefault, \ttdefault -- roman, sans serif, typewriter
|
127
|
-
\newcommand\tiog@fontfamily{\rmdefault}
|
128
|
-
\newcommand\settiogafontfamily[1]{\renewcommand\tiog@fontfamily{#1}}
|
129
|
-
|
130
|
-
% Font series
|
131
|
-
% \mddefault, \bfdefault -- medium, bold
|
132
|
-
\newcommand\tiog@fontseries{\mddefault}
|
133
|
-
\newcommand\settiogafontseries[1]{\renewcommand\tiog@fontseries{#1}}
|
134
|
-
|
135
|
-
% Font shape
|
136
|
-
% \updefault, \itdefault, \sldefault, \scdefault -- upright, italic, slant, small caps
|
137
|
-
\newcommand\tiog@fontshape{\updefault}
|
138
|
-
\newcommand\settiogafontshape[1]{\renewcommand\tiog@fontshape{#1}}
|
139
|
-
|
140
|
-
% \SetTiogaFontInfo is called from within the figure.txt file with the TeX
|
141
|
-
% for the text of the figure. Do not modify this function directly, it
|
142
|
-
% is way better to use the previous settiogafont* commands.
|
143
|
-
\newcommand\SetTiogaFontInfo{%
|
144
|
-
\expandafter\fontsize\tiog@fontsize%
|
145
|
-
\fontfamily{\tiog@fontfamily}%
|
146
|
-
\fontseries{\tiog@fontseries}%
|
147
|
-
\fontshape{\tiog@fontshape}%
|
148
|
-
}
|
149
|
-
|
150
|
-
% This command is used inside the _figure.txt files. You can use it directly
|
151
|
-
% as well, if you really want to make sure you get the same fonts. But I
|
152
|
-
% personnaly doubt it would really come in useful ;-)...
|
153
|
-
\newcommand\tiogasetfont{\reset@font\SetTiogaFontInfo%
|
154
|
-
\selectfont}%
|
155
|
-
|
156
|
-
|
157
|
-
% This commands typesets its second argument while sending to the
|
158
|
-
% standard output successively the width, height and depth of the
|
159
|
-
% box produced.
|
160
|
-
%
|
161
|
-
% These informations are collected when Tioga runs pdflatex.
|
162
|
-
\newlength{\tiogatempdim}
|
163
|
-
\newcommand{\tiogameasure}[2]{%
|
164
|
-
\settowidth{\tiogatempdim}{#2}\typeout{#1[0]=\the\tiogatempdim}%
|
165
|
-
\settoheight{\tiogatempdim}{#2}\typeout{#1[1]=\the\tiogatempdim}%
|
166
|
-
\settodepth{\tiogatempdim}{#2}\typeout{#1[2]=\the\tiogatempdim}%
|
167
|
-
{#2}}
|
168
|
-
|
169
|
-
\makeatother
|
170
|
-
End_of_preamble
|
171
|
-
COLOR_PREAMBLE = <<'End_of_preamble'
|
172
|
-
% Color constants, generated from ColorConstants.rb
|
173
|
-
\definecolor{PaleTurquoise}{rgb}{0.688,0.932,0.932}
|
174
|
-
\definecolor{GreenYellow}{rgb}{0.680,1.000,0.185}
|
175
|
-
\definecolor{SpringGreen}{rgb}{0.000,1.000,0.498}
|
176
|
-
\definecolor{LightTurquoise}{rgb}{0.200,1.000,0.800}
|
177
|
-
\definecolor{DarkGrey}{rgb}{0.664,0.664,0.664}
|
178
|
-
\definecolor{DarkSlateGray}{rgb}{0.185,0.310,0.310}
|
179
|
-
\definecolor{RedBrown}{rgb}{0.800,0.400,0.200}
|
180
|
-
\definecolor{LightBrightGreen}{rgb}{0.000,0.800,0.200}
|
181
|
-
\definecolor{BlueViolet}{rgb}{0.540,0.170,0.888}
|
182
|
-
\definecolor{MediumOrchid}{rgb}{0.730,0.332,0.828}
|
183
|
-
\definecolor{Navy}{rgb}{0.000,0.000,0.500}
|
184
|
-
\definecolor{Gainsboro}{rgb}{0.864,0.864,0.864}
|
185
|
-
\definecolor{Sienna}{rgb}{0.628,0.320,0.176}
|
186
|
-
\definecolor{LightRose}{rgb}{1.000,0.600,0.800}
|
187
|
-
\definecolor{Cornsilk}{rgb}{1.000,0.972,0.864}
|
188
|
-
\definecolor{Peru}{rgb}{0.804,0.520,0.248}
|
189
|
-
\definecolor{Indigo}{rgb}{0.294,0.000,0.510}
|
190
|
-
\definecolor{Aquamarine}{rgb}{0.498,1.000,0.830}
|
191
|
-
\definecolor{Tomato}{rgb}{1.000,0.390,0.280}
|
192
|
-
\definecolor{LimeGreen}{rgb}{0.196,0.804,0.196}
|
193
|
-
\definecolor{DarkOrange}{rgb}{1.000,0.550,0.000}
|
194
|
-
\definecolor{RoyalPurple}{rgb}{0.400,0.000,0.600}
|
195
|
-
\definecolor{LightGold}{rgb}{0.800,0.800,0.400}
|
196
|
-
\definecolor{Burgundy}{rgb}{0.600,0.000,0.200}
|
197
|
-
\definecolor{MediumTurquoise}{rgb}{0.284,0.820,0.800}
|
198
|
-
\definecolor{DeepPink}{rgb}{1.000,0.080,0.576}
|
199
|
-
\definecolor{GrassGreen}{rgb}{0.200,0.600,0.000}
|
200
|
-
\definecolor{SlateGrey}{rgb}{0.440,0.500,0.565}
|
201
|
-
\definecolor{LightSkyBlue}{rgb}{0.530,0.808,0.980}
|
202
|
-
\definecolor{DarkCyan}{rgb}{0.000,0.545,0.545}
|
203
|
-
\definecolor{OrangeRed}{rgb}{1.000,0.270,0.000}
|
204
|
-
\definecolor{Purple}{rgb}{0.500,0.000,0.500}
|
205
|
-
\definecolor{LavenderBlush}{rgb}{1.000,0.940,0.960}
|
206
|
-
\definecolor{Black}{rgb}{0.000,0.000,0.000}
|
207
|
-
\definecolor{White}{rgb}{1.000,1.000,1.000}
|
208
|
-
\definecolor{MediumAquamarine}{rgb}{0.400,0.804,0.668}
|
209
|
-
\definecolor{DarkRoyalBlue}{rgb}{0.000,0.200,0.800}
|
210
|
-
\definecolor{SalmonRed}{rgb}{1.000,0.400,0.400}
|
211
|
-
\definecolor{LightMustard}{rgb}{1.000,0.800,0.400}
|
212
|
-
\definecolor{Chiffon}{rgb}{0.980,0.980,0.824}
|
213
|
-
\definecolor{MistyRose}{rgb}{1.000,0.894,0.884}
|
214
|
-
\definecolor{FireBrick}{rgb}{0.698,0.132,0.132}
|
215
|
-
\definecolor{SteelBlue}{rgb}{0.275,0.510,0.705}
|
216
|
-
\definecolor{LightYellow}{rgb}{1.000,1.000,0.880}
|
217
|
-
\definecolor{DarkKhaki}{rgb}{0.740,0.716,0.420}
|
218
|
-
\definecolor{PaleVioletRed}{rgb}{0.860,0.440,0.576}
|
219
|
-
\definecolor{Grey}{rgb}{0.500,0.500,0.500}
|
220
|
-
\definecolor{LightCoral}{rgb}{0.940,0.500,0.500}
|
221
|
-
\definecolor{BrickRed}{rgb}{0.645,0.000,0.129}
|
222
|
-
\definecolor{MediumPurple}{rgb}{0.576,0.440,0.860}
|
223
|
-
\definecolor{DarkSlateGrey}{rgb}{0.185,0.310,0.310}
|
224
|
-
\definecolor{RedOrange}{rgb}{0.800,0.200,0.000}
|
225
|
-
\definecolor{Silver}{rgb}{0.752,0.752,0.752}
|
226
|
-
\definecolor{LightSalmon}{rgb}{1.000,0.628,0.480}
|
227
|
-
\definecolor{Crimson}{rgb}{0.800,0.000,0.200}
|
228
|
-
\definecolor{OldLace}{rgb}{0.992,0.960,0.900}
|
229
|
-
\definecolor{GhostWhite}{rgb}{0.972,0.972,1.000}
|
230
|
-
\definecolor{Avocado}{rgb}{0.600,0.600,0.000}
|
231
|
-
\definecolor{Turquoise}{rgb}{0.250,0.880,0.815}
|
232
|
-
\definecolor{Linen}{rgb}{0.980,0.940,0.900}
|
233
|
-
\definecolor{DarkOrchid}{rgb}{0.600,0.196,0.800}
|
234
|
-
\definecolor{Pink}{rgb}{1.000,0.752,0.796}
|
235
|
-
\definecolor{Ivory}{rgb}{1.000,1.000,0.940}
|
236
|
-
\definecolor{BurlyWood}{rgb}{0.870,0.720,0.530}
|
237
|
-
\definecolor{MediumVioletRed}{rgb}{0.780,0.084,0.520}
|
238
|
-
\definecolor{DeepSkyBlue}{rgb}{0.000,0.750,1.000}
|
239
|
-
\definecolor{SaddleBrown}{rgb}{0.545,0.270,0.075}
|
240
|
-
\definecolor{LightGrassGreen}{rgb}{0.400,1.000,0.400}
|
241
|
-
\definecolor{LightSlateGray}{rgb}{0.468,0.532,0.600}
|
242
|
-
\definecolor{DarkGoldenrod}{rgb}{0.720,0.525,0.044}
|
243
|
-
\definecolor{Orchid}{rgb}{0.855,0.440,0.840}
|
244
|
-
\definecolor{Gray}{rgb}{0.500,0.500,0.500}
|
245
|
-
\definecolor{Smoke}{rgb}{0.950,0.950,0.950}
|
246
|
-
\definecolor{WhiteSmoke}{rgb}{0.970,0.970,0.970}
|
247
|
-
\definecolor{MediumBlue}{rgb}{0.000,0.000,0.804}
|
248
|
-
\definecolor{DarkSalmon}{rgb}{0.912,0.590,0.480}
|
249
|
-
\definecolor{PurpleBlue}{rgb}{0.400,0.200,0.800}
|
250
|
-
\definecolor{LawnGreen}{rgb}{0.488,0.990,0.000}
|
251
|
-
\definecolor{BlanchedAlmond}{rgb}{1.000,0.920,0.804}
|
252
|
-
\definecolor{Chocolate}{rgb}{0.824,0.410,0.116}
|
253
|
-
\definecolor{Moccasin}{rgb}{1.000,0.894,0.710}
|
254
|
-
\definecolor{FloralWhite}{rgb}{1.000,0.980,0.940}
|
255
|
-
\definecolor{SandyBrown}{rgb}{0.956,0.644,0.376}
|
256
|
-
\definecolor{LightOliveGreen}{rgb}{0.600,0.800,0.600}
|
257
|
-
\definecolor{DarkLavender}{rgb}{0.400,0.200,0.600}
|
258
|
-
\definecolor{PapayaWhip}{rgb}{1.000,0.936,0.835}
|
259
|
-
\definecolor{Honeydew}{rgb}{0.940,1.000,0.940}
|
260
|
-
\definecolor{AliceBlue}{rgb}{0.940,0.972,1.000}
|
261
|
-
\definecolor{Tan}{rgb}{0.824,0.705,0.550}
|
262
|
-
\definecolor{LightYellowGreen}{rgb}{0.800,0.800,0.200}
|
263
|
-
\definecolor{MediumSeaGreen}{rgb}{0.235,0.700,0.444}
|
264
|
-
\definecolor{DarkSmoke}{rgb}{0.920,0.920,0.920}
|
265
|
-
\definecolor{Rose}{rgb}{1.000,0.400,0.600}
|
266
|
-
\definecolor{LightCrimson}{rgb}{0.864,0.080,0.235}
|
267
|
-
\definecolor{BrightBlue}{rgb}{0.000,0.400,1.000}
|
268
|
-
\definecolor{Olive}{rgb}{0.500,0.500,0.000}
|
269
|
-
\definecolor{Gold}{rgb}{1.000,0.844,0.000}
|
270
|
-
\definecolor{SkyBlue}{rgb}{0.530,0.808,0.920}
|
271
|
-
\definecolor{LightSandyBrown}{rgb}{1.000,0.800,0.600}
|
272
|
-
\definecolor{Cyan}{rgb}{0.000,1.000,1.000}
|
273
|
-
\definecolor{DarkPeriwinkle}{rgb}{0.400,0.400,1.000}
|
274
|
-
\definecolor{Plum}{rgb}{0.868,0.628,0.868}
|
275
|
-
\definecolor{Khaki}{rgb}{0.940,0.900,0.550}
|
276
|
-
\definecolor{Azure}{rgb}{0.940,1.000,1.000}
|
277
|
-
\definecolor{Violet}{rgb}{0.932,0.510,0.932}
|
278
|
-
\definecolor{Magenta}{rgb}{1.000,0.000,1.000}
|
279
|
-
\definecolor{DimGray}{rgb}{0.410,0.410,0.410}
|
280
|
-
\definecolor{LightChartreuse}{rgb}{0.800,1.000,0.400}
|
281
|
-
\definecolor{LightGray}{rgb}{0.828,0.828,0.828}
|
282
|
-
\definecolor{CadetBlue}{rgb}{0.372,0.620,0.628}
|
283
|
-
\definecolor{YellowGreen}{rgb}{0.800,0.800,0.000}
|
284
|
-
\definecolor{DarkGray}{rgb}{0.664,0.664,0.664}
|
285
|
-
\definecolor{LightSlateGrey}{rgb}{0.468,0.532,0.600}
|
286
|
-
\definecolor{PaleGoldenrod}{rgb}{0.932,0.910,0.668}
|
287
|
-
\definecolor{GrayBlue}{rgb}{0.000,0.400,0.600}
|
288
|
-
\definecolor{Snow}{rgb}{1.000,0.980,0.980}
|
289
|
-
\definecolor{DarkSeaGreen}{rgb}{0.560,0.736,0.560}
|
290
|
-
\definecolor{Blue}{rgb}{0.000,0.000,1.000}
|
291
|
-
\definecolor{LemonChiffon}{rgb}{1.000,0.980,0.804}
|
292
|
-
\definecolor{MediumGreen}{rgb}{0.000,0.600,0.000}
|
293
|
-
\definecolor{PurpleGray}{rgb}{0.600,0.600,0.800}
|
294
|
-
\definecolor{Yellow}{rgb}{1.000,1.000,0.000}
|
295
|
-
\definecolor{Coral}{rgb}{1.000,0.498,0.312}
|
296
|
-
\definecolor{LightOrchid}{rgb}{0.600,0.400,0.800}
|
297
|
-
\definecolor{ForestGreen}{rgb}{0.132,0.545,0.132}
|
298
|
-
\definecolor{MustardSeed}{rgb}{0.800,0.600,0.000}
|
299
|
-
\definecolor{SeaGreen}{rgb}{0.180,0.545,0.340}
|
300
|
-
\definecolor{DarkMagenta}{rgb}{0.545,0.000,0.545}
|
301
|
-
\definecolor{AntiqueWhite}{rgb}{0.980,0.920,0.844}
|
302
|
-
\definecolor{HotPink}{rgb}{1.000,0.410,0.705}
|
303
|
-
\definecolor{Lilac}{rgb}{0.800,0.600,1.000}
|
304
|
-
\definecolor{PeachPuff}{rgb}{1.000,0.855,0.725}
|
305
|
-
\definecolor{Teal}{rgb}{0.000,0.500,0.500}
|
306
|
-
\definecolor{DarkTurquoise}{rgb}{0.000,0.808,0.820}
|
307
|
-
\definecolor{BrightPink}{rgb}{1.000,0.400,0.800}
|
308
|
-
\definecolor{LightCyan}{rgb}{0.880,1.000,1.000}
|
309
|
-
\definecolor{MediumSlateBlue}{rgb}{0.484,0.408,0.932}
|
310
|
-
\definecolor{RosyBrown}{rgb}{0.736,0.560,0.560}
|
311
|
-
\definecolor{GoldenBrown}{rgb}{0.600,0.400,0.000}
|
312
|
-
\definecolor{DarkBlue}{rgb}{0.000,0.000,0.545}
|
313
|
-
\definecolor{LightSeaGreen}{rgb}{0.125,0.698,0.668}
|
314
|
-
\definecolor{OliveDrab}{rgb}{0.420,0.556,0.136}
|
315
|
-
\definecolor{SlateBlue}{rgb}{0.415,0.352,0.804}
|
316
|
-
\definecolor{DarkPurpleBlue}{rgb}{0.400,0.000,0.800}
|
317
|
-
\definecolor{Beige}{rgb}{0.960,0.960,0.864}
|
318
|
-
\definecolor{Lavender}{rgb}{0.900,0.900,0.980}
|
319
|
-
\definecolor{Maroon}{rgb}{0.500,0.000,0.000}
|
320
|
-
\definecolor{PowderBlue}{rgb}{0.690,0.880,0.900}
|
321
|
-
\definecolor{WarmGray}{rgb}{0.678,0.660,0.562}
|
322
|
-
\definecolor{DimGrey}{rgb}{0.410,0.410,0.410}
|
323
|
-
\definecolor{Cement}{rgb}{0.800,0.800,0.600}
|
324
|
-
\definecolor{LightGreen}{rgb}{0.565,0.932,0.565}
|
325
|
-
\definecolor{MidnightBlue}{rgb}{0.098,0.098,0.440}
|
326
|
-
\definecolor{Saffron}{rgb}{1.000,0.800,0.000}
|
327
|
-
\definecolor{Green}{rgb}{0.000,0.500,0.000}
|
328
|
-
\definecolor{DarkGreen}{rgb}{0.000,0.392,0.000}
|
329
|
-
\definecolor{LightSteelBlue}{rgb}{0.690,0.770,0.870}
|
330
|
-
\definecolor{PaleGreen}{rgb}{0.596,0.985,0.596}
|
331
|
-
\definecolor{SoftYellow}{rgb}{1.000,1.000,0.400}
|
332
|
-
\definecolor{LightBlue}{rgb}{0.680,0.848,0.900}
|
333
|
-
\definecolor{DarkSlateBlue}{rgb}{0.284,0.240,0.545}
|
334
|
-
\definecolor{BlueGreen}{rgb}{0.000,0.600,0.400}
|
335
|
-
\definecolor{MediumOrange}{rgb}{1.000,0.400,0.000}
|
336
|
-
\definecolor{Red}{rgb}{1.000,0.000,0.000}
|
337
|
-
\definecolor{Fuchsia}{rgb}{1.000,0.000,1.000}
|
338
|
-
\definecolor{CornflowerBlue}{rgb}{0.392,0.585,0.930}
|
339
|
-
\definecolor{LightPlum}{rgb}{0.800,0.600,0.800}
|
340
|
-
\definecolor{NavajoWhite}{rgb}{1.000,0.870,0.680}
|
341
|
-
\definecolor{Seashell}{rgb}{1.000,0.960,0.932}
|
342
|
-
\definecolor{Aqua}{rgb}{0.000,1.000,1.000}
|
343
|
-
\definecolor{IndianRed}{rgb}{0.804,0.360,0.360}
|
344
|
-
\definecolor{DarkOliveGreen}{rgb}{0.332,0.420,0.185}
|
345
|
-
\definecolor{Lime}{rgb}{0.000,1.000,0.000}
|
346
|
-
\definecolor{Periwinkle}{rgb}{0.600,0.000,1.000}
|
347
|
-
\definecolor{Thistle}{rgb}{0.848,0.750,0.848}
|
348
|
-
\definecolor{Brown}{rgb}{0.648,0.165,0.165}
|
349
|
-
\definecolor{LightDullGreen}{rgb}{0.400,1.000,0.600}
|
350
|
-
\definecolor{DarkViolet}{rgb}{0.580,0.000,0.828}
|
351
|
-
\definecolor{MediumSpringGreen}{rgb}{0.000,0.980,0.604}
|
352
|
-
\definecolor{RoyalBlue}{rgb}{0.255,0.410,0.884}
|
353
|
-
\definecolor{LightSienna}{rgb}{0.800,0.400,0.000}
|
354
|
-
\definecolor{Goldenrod}{rgb}{0.855,0.648,0.125}
|
355
|
-
\definecolor{DarkChocolate}{rgb}{0.400,0.200,0.000}
|
356
|
-
\definecolor{Orange}{rgb}{1.000,0.648,0.000}
|
357
|
-
\definecolor{SlateGray}{rgb}{0.440,0.500,0.565}
|
358
|
-
\definecolor{Bisque}{rgb}{1.000,0.894,0.770}
|
359
|
-
\definecolor{LavenderBlue}{rgb}{0.400,0.200,1.000}
|
360
|
-
\definecolor{DarkRed}{rgb}{0.545,0.000,0.000}
|
361
|
-
\definecolor{Mauve}{rgb}{0.800,0.200,0.400}
|
362
|
-
\definecolor{Pumpkin}{rgb}{1.000,0.600,0.200}
|
363
|
-
\definecolor{Wheat}{rgb}{0.960,0.870,0.700}
|
364
|
-
\definecolor{Chartreuse}{rgb}{0.498,1.000,0.000}
|
365
|
-
\definecolor{LightGrey}{rgb}{0.828,0.828,0.828}
|
366
|
-
\definecolor{DodgerBlue}{rgb}{0.116,0.565,1.000}
|
367
|
-
\definecolor{MintCream}{rgb}{0.960,1.000,0.980}
|
368
|
-
\definecolor{Salmon}{rgb}{0.980,0.500,0.448}
|
369
|
-
|
370
|
-
End_of_preamble
|
371
|
-
end
|
372
|
-
end
|
data/tests/Icon_Test.pdf
DELETED
Binary file
|