summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/eepic/fig2eepic
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/eepic/fig2eepic
Initial commit
Diffstat (limited to 'macros/latex/contrib/eepic/fig2eepic')
-rw-r--r--macros/latex/contrib/eepic/fig2eepic/epic-eg3.fig62
-rw-r--r--macros/latex/contrib/eepic/fig2eepic/epic-eg4.fig72
-rw-r--r--macros/latex/contrib/eepic/fig2eepic/fig2epic.1205
-rw-r--r--macros/latex/contrib/eepic/fig2eepic/makefile35
-rw-r--r--macros/latex/contrib/eepic/fig2eepic/readme28
5 files changed, 402 insertions, 0 deletions
diff --git a/macros/latex/contrib/eepic/fig2eepic/epic-eg3.fig b/macros/latex/contrib/eepic/fig2eepic/epic-eg3.fig
new file mode 100644
index 0000000000..7652788af7
--- /dev/null
+++ b/macros/latex/contrib/eepic/fig2eepic/epic-eg3.fig
@@ -0,0 +1,62 @@
+#FIG 1.4
+80 2
+5 1 0 1 0 0 0 0 0.000 0 1 0 346.808 76.731 348 68 353 83 338 77
+ 0 0 1.000 4.000 8.000
+5 1 0 1 0 0 0 0 0.000 1 1 0 203.688 42.688 207 50 206 35 196 45
+ 0 0 1.000 4.000 8.000
+5 1 0 1 0 0 0 0 0.000 1 1 0 182.250 47.250 189 47 177 43 182 54
+ 0 0 1.000 4.000 8.000
+1 1 0 1 0 0 0 0 0.000 1 0.000 69 62 34 13 69 62 103 74
+1 3 0 1 0 0 0 0 0.000 1 0.000 198 62 11 11 198 62 198 74
+1 3 0 1 0 0 0 0 0.000 1 0.000 266 62 11 11 266 62 266 74
+1 3 0 1 0 0 0 0 0.000 1 0.000 334 62 11 11 334 62 334 74
+1 3 0 1 0 0 0 0 0.000 1 0.000 401 62 11 11 401 62 401 74
+1 3 0 1 0 0 0 0 0.000 1 0.000 468 62 11 11 468 62 468 74
+2 1 0 1 0 0 0 0 0.000 1 0
+ 0 0 1.000 4.000 8.000
+ 108 62 181 62 9999 9999
+2 1 0 1 0 0 0 0 0.000 1 0
+ 0 0 1.000 4.000 8.000
+ 216 62 249 62 9999 9999
+2 1 0 1 0 0 0 0 0.000 1 0
+ 0 0 1.000 4.000 8.000
+ 282 62 317 62 9999 9999
+2 1 0 1 0 0 0 0 0.000 1 0
+ 0 0 1.000 4.000 8.000
+ 350 62 384 62 9999 9999
+2 1 0 1 0 0 0 0 0.000 1 0
+ 0 0 1.000 4.000 8.000
+ 418 62 451 62 9999 9999
+3 0 0 1 0 0 0 0 0.000 1 0
+ 0 0 1.000 4.000 8.000
+ 329 74 289 104 229 109 199 94 194 79 9999 9999
+3 0 0 1 0 0 0 0 0.000 1 0
+ 0 0 1.000 4.000 8.000
+ 264 74 244 89 219 89 204 74 9999 9999
+3 0 0 1 0 0 0 0 0.000 1 0
+ 0 0 1.000 4.000 8.000
+ 256 73 234 79 210 73 9999 9999
+3 0 0 1 0 0 0 0 0.000 1 0
+ 0 0 1.000 4.000 8.000
+ 389 49 329 29 279 49 9999 9999
+3 0 0 1 0 0 0 0 0.000 1 0
+ 0 0 1.000 4.000 8.000
+ 394 44 353 16 259 24 214 53 9999 9999
+4 0 0 16 0 0 0 0.000 1 16 8 425 56 C
+4 0 0 16 0 0 0 0.000 1 16 8 358 58 B
+4 0 0 16 0 0 0 0.000 1 16 8 333 14 B
+4 0 0 16 0 0 0 0.000 1 16 8 305 34 A
+4 0 0 16 0 0 0 0.000 1 16 8 356 92 A
+4 0 0 16 0 0 0 0.000 1 16 8 295 90 C
+4 0 0 16 0 0 0 0.000 1 16 8 293 57 A
+4 0 0 16 0 0 0 0.000 1 16 8 256 92 C
+4 0 0 16 0 0 0 0.000 1 16 8 231 73 B
+4 0 0 16 0 0 0 0.000 1 16 8 227 58 A
+4 0 0 16 0 0 0 0.000 1 16 8 202 31 C
+4 0 0 16 0 0 0 0.000 1 16 8 164 44 B
+4 0 0 16 0 0 0 0.000 1 16 40 54 66 Start
+4 0 0 16 0 0 0 0.000 1 16 8 197 66 1
+4 0 0 16 0 0 0 0.000 1 16 8 263 66 2
+4 0 0 16 0 0 0 0.000 1 16 8 333 66 3
+4 0 0 16 0 0 0 0.000 1 16 8 398 66 4
+4 0 0 16 0 0 0 0.000 1 16 8 467 66 *
diff --git a/macros/latex/contrib/eepic/fig2eepic/epic-eg4.fig b/macros/latex/contrib/eepic/fig2eepic/epic-eg4.fig
new file mode 100644
index 0000000000..cca46a6490
--- /dev/null
+++ b/macros/latex/contrib/eepic/fig2eepic/epic-eg4.fig
@@ -0,0 +1,72 @@
+#FIG 1.4
+80 2
+1 3 0 1 0 0 0 0 0.000 1 0.000 174 124 5 5 174 124 174 129
+1 3 0 1 0 0 0 0 0.000 1 0.000 209 169 5 5 209 169 209 174
+1 3 0 1 0 0 0 0 0.000 1 0.000 69 149 5 5 69 149 69 154
+1 3 0 1 0 0 0 0 0.000 1 0.000 129 241 5 5 129 241 129 246
+1 3 0 1 0 0 0 0 0.000 1 0.000 139 169 5 5 139 169 139 174
+1 3 0 1 0 0 0 0 0.000 1 0.000 223 241 5 5 223 241 223 246
+1 3 0 1 0 0 0 0 0.000 1 0.000 294 144 5 5 294 144 294 149
+1 3 0 1 0 0 0 0 0.000 1 0.000 219 84 5 5 219 84 219 89
+1 3 0 1 0 0 0 0 0.000 1 0.000 129 84 5 5 129 84 129 89
+2 1 1 1 0 0 0 0 4.000 1 0
+ 0 0 1.000 4.000 8.000
+ 222 230 212 179 9999 9999
+2 1 1 1 0 0 0 0 4.000 1 0
+ 0 0 1.000 4.000 8.000
+ 137 176 130 233 9999 9999
+2 1 1 1 0 0 0 0 4.000 1 0
+ 0 0 1.000 4.000 8.000
+ 213 241 138 241 9999 9999
+2 1 1 1 0 0 0 0 4.000 1 0
+ 0 0 1.000 4.000 8.000
+ 229 234 288 154 9999 9999
+2 1 1 1 0 0 0 0 4.000 1 0
+ 0 0 1.000 4.000 8.000
+ 200 171 150 171 9999 9999
+2 1 1 1 0 0 0 0 4.000 1 0
+ 0 0 1.000 4.000 8.000
+ 144 162 167 133 9999 9999
+2 1 1 1 0 0 0 0 4.000 1 0
+ 0 0 1.000 4.000 8.000
+ 203 161 179 133 9999 9999
+2 1 1 1 0 0 0 0 4.000 1 0
+ 0 0 1.000 4.000 8.000
+ 168 118 136 90 9999 9999
+2 1 0 1 0 0 0 0 0.000 1 0
+ 0 0 1.000 4.000 8.000
+ 73 157 122 233 9999 9999
+2 1 0 1 0 0 0 0 0.000 1 0
+ 0 0 1.000 4.000 8.000
+ 215 93 183 118 9999 9999
+2 1 0 1 0 0 0 0 0.000 1 0
+ 0 0 1.000 4.000 8.000
+ 78 151 129 166 9999 9999
+2 1 0 1 0 0 0 0 0.000 1 0
+ 0 0 1.000 4.000 8.000
+ 286 149 220 168 9999 9999
+2 1 0 1 0 0 0 0 0.000 1 0
+ 0 0 1.000 4.000 8.000
+ 227 88 288 137 9999 9999
+2 1 0 1 0 0 0 0 0.000 1 0
+ 0 0 1.000 4.000 8.000
+ 137 84 209 84 9999 9999
+2 1 0 1 0 0 0 0 0.000 1 0
+ 0 0 1.000 4.000 8.000
+ 124 90 76 142 9999 9999
+4 0 0 16 0 0 0 0.000 1 16 8 243 154 7
+4 0 0 16 0 0 0 0.000 1 16 8 96 152 6
+4 0 0 16 0 0 0 0.000 1 16 8 82 200 5
+4 0 0 16 0 0 0 0.000 1 16 8 205 112 4
+4 0 0 16 0 0 0 0.000 1 16 8 256 105 3
+4 0 0 16 0 0 0 0.000 1 16 8 88 110 2
+4 0 0 16 0 0 0 0.000 1 16 8 170 81 1
+4 0 0 16 0 0 0 0.000 1 16 8 134 159 I
+4 0 0 16 0 0 0 0.000 1 16 8 208 159 H
+4 0 0 16 0 0 0 0.000 1 16 8 171 113 G
+4 0 0 16 0 0 0 0.000 1 16 8 49 156 F
+4 0 0 16 0 0 0 0.000 1 16 8 125 261 E
+4 0 0 16 0 0 0 0.000 1 16 8 220 260 D
+4 0 0 16 0 0 0 0.000 1 16 8 305 146 C
+4 0 0 16 0 0 0 0.000 1 16 8 217 74 B
+4 0 0 16 0 0 0 0.000 1 16 8 123 75 A
diff --git a/macros/latex/contrib/eepic/fig2eepic/fig2epic.1 b/macros/latex/contrib/eepic/fig2eepic/fig2epic.1
new file mode 100644
index 0000000000..a6bf42af4e
--- /dev/null
+++ b/macros/latex/contrib/eepic/fig2eepic/fig2epic.1
@@ -0,0 +1,205 @@
+.TH FIG2EPIC 1 "23 August 1988"
+.SH NAME
+fig2epic \- translates Fig intermediate code into EPIC or EEPIC macros
+.SH SYNOPSIS
+.B fig2epic
+[
+.B \-S
+.I scale
+] [
+.B \-s
+.I size
+] [
+.B \-m
+.I mag
+] [
+.B \-F
+.I fspec
+] [
+.B \-L
+.I lang
+] [
+.B \-l
+.I lwidth
+] [
+.B \-c
+.I cfg-file
+] [
+.B \-v
+] [
+\fIfig-file\fR [ \fItex-file\fR ] ]
+.SH DESCRIPTION
+.I Fig2epic
+translates fig objects in the named
+.I fig-file
+into EPIC or EEPIC macros and puts them in
+.I tex-file.
+If a file name is presented, it is assumed to be the input file (fig
+output file). The output file
+.I (tex-file),
+if not presented, will be the stdout.
+If the
+.I fig-file
+is not presented, input will be assumed to come from the stdin.
+The output from fig2epic can be edited to change font sizes/types.
+.LP
+Fig (Facility for Interactive Generation of figures) is a screen-oriented
+tool which allows the user to draw and manipulate objects interactively.
+It runs under the Suntools/Sunview window environment.
+Fig2epic is compatible with Fig versions 1.3 and 1.4.
+.LP
+EPIC is an enhancement to LaTeX picture drawing environment.
+It was developed by Sunil Podar of Department of Computer Science
+in S.U.N.Y at Stony Brook.
+.LP
+EEPIC is an extension to EPIC and LaTeX picture drawing
+environment. It was written by Conrad Kwok of Division of
+Computer Science at University of California, Davis.
+.SH OPTIONS
+.TP
+.B \-S
+Set the scale at which the figure is rendered to. This option
+automatically set the magnification and default font to
+.I scale
+/ 12 and
+.I scale
+-tt respectively. The font can be changed using \-F option.
+The default is 12 and other valid options are 8, 9, 10 and 11.
+.TP
+.B \-s
+Change the default font size to
+.I size
+.TP
+.B \-m
+Set the magnification at which the figure is rendered to
+.I mag.
+The default is 1.0 unless \-s option is used.
+.TP
+.B \-c
+Use
+.I cfg-file
+as the configuration file.
+.TP
+.B \-F
+Set the font specification command which precedes every text object in the
+picture to
+.I fspec.
+This option, if specified, overrides any font changing commands.
+The default is none.
+Note that no "\\" is required in the font name.
+.TP
+.B \-l
+Use "\fB\\thicklines\fR" when width of the line is wider than
+.I lwidth.
+The default is 2.
+.TP
+.B \-L
+Use the specified language
+.I lang
+in the output. Default is EEPIC. Other valid options are EPIC and
+EEPIC-EMU. EEPIC-EMU is for use with EEPIC emulation package.
+.TP
+.B \-v
+Include comment in the output file.
+
+.SH LATEX MACROS
+In order to include EPIC or EEPIC pictures into a document, it is
+necssary to load the EPIC and EEPIC macros. It can be done by
+including \fBEPIC\fR and \fBEEPIC\fR in \fB\\documentstyle\fR
+option. See the EPIC or EEPIC manaul for details.
+
+.SH Configuration File
+All the defaults in fig2epic can be changed using configuration
+file. When fig2pic is executed, it will look for the files
+specified in \-c option if any,
+.I fig-file.cfg
+(if
+.I fig-file
+is ended with ".fig", it will be replaced by ".cfg"), fig2epic.cfg
+and $HOME/.fig2epic in the order specified above. The first
+configuration file found will be used.
+
+.TP
+.I LowerLeftX
+This specify X coordinate of the lower left hand corner of the Fig
+picture. Default is 0.
+.TP
+.I LowerLeftY
+This specify Y coordinate of the lower left hand corner in unitlength of the Fig
+picture. Default is 0.
+.TP
+.I TopMargin
+Set the distance in unitlength of the figure from the top of the
+LaTeX picture box. Default is 5.
+.TP
+.I BottomMargin
+Set the distance in unitlength of the figure from the bottom of the
+LaTeX picture box. Default is 10.
+.TP
+.I SegmentLength
+The maximum segment length in inch used in generating splines
+(for EPIC) and arc (for EPIC and EEPIC-EMU). Default is 0.0625
+inch.
+.TP
+.I TextFont
+Set the font used for all text. This option overrides FontType
+and FontSize. However, it is overrided by \-s, -S and -F options.
+Note that no "\\" is required in the font name.
+.TP
+.I Magnification
+Same as \-m option. Default is 1.0.
+.TP
+.I Verbose
+Same as \-v. Default is FALSE
+.TP
+.I DotDistance
+Dot distance in unitlength for dotted lines.
+.TP
+.I LineThick
+Same as \-l. Default is 2.
+.TP
+.I Language
+Same is -L. Default is EEPIC
+.TP
+.I DashScale
+Scale the dash length. Default is 1.0.
+.TP
+.I EllipseCommand
+Specify the command used in drawing an ellipse. Default is
+ellipse for EEPIC or EEPIC-EMU. oval is always used for EPIC. Possible
+values are ellipse and oval.
+.TP
+.I UseBox
+Specify whether fig2epic should generate \\framebox and/or
+\\dashbox command
+in the output file or not. Default is not to use the *box
+command. Possible options are none, solid, dash and both.
+.TP
+.I DashType
+This option is only used when EPIC option is selected. Valid options
+are "Normal" (use dashline in drawing dash lines), "Economic"
+(use drawline with -50 stretch in drawing dash lines) and
+"Dotted" (use dotted lines to replace dash lines). Default is
+"Normal". "Normal" option will use up TeX memory quickly if long
+dash lines are drawn. If you get "TeX Capacity Exceed" error, you should
+try the "Economic" or "Dotted" option.
+.TP
+.I FontType
+Selects one of the following font types as the default--Roman,
+Bold, Italics, Modern and Typewriter. Default is Typewriter.
+.TP
+.I FontSize
+Selects default font size in points. Default is 12.
+
+.SH "SEE ALSO"
+fig(1),
+EPIC manual,
+EEPIC manual and TransFig manual
+.SH AUTHOR
+Conrad Kwok (kwok@iris.ucdavis.edu)
+.br
+University of California, Davis
+.br
+August 14, 1988
+.sp
+modified from fig2latex, fig2tex and f2p.
diff --git a/macros/latex/contrib/eepic/fig2eepic/makefile b/macros/latex/contrib/eepic/fig2eepic/makefile
new file mode 100644
index 0000000000..6574890b8d
--- /dev/null
+++ b/macros/latex/contrib/eepic/fig2eepic/makefile
@@ -0,0 +1,35 @@
+# Fig2epic : FIG to EPIC translator
+#
+# Conrad Kwok
+# Modified from fig2pic which was modified from f2ps
+#
+
+SRCDIR = ../src
+SRCLIB = $(SRCDIR)/lib.a
+
+LIBS = -lm
+#
+# Use of gcc is recommended whenever available.
+# -Inlcude DNoVPRINTF in CFLAGS if vprintf is not included in the library
+# Include -DNoConfigFile and remove config.* if no configuration
+# file is desired.
+#
+CFLAGS = -O $(CROSS)
+CC = gcc $(CFLAGS) -I$(SRCDIR)
+
+fig2epic : fig2epic.o config.o $(SRCLIB)
+ $(CC) fig2epic.o config.o $(SRCLIB) -lm -o fig2epic
+
+# Include:
+# -DINT32BIT when int is 32 bits long
+# -DOldFashion when compiled using cc on Ultrix and BSD 4.x
+config.o : config.c
+ $(CC) -DINT32BIT -c config.c
+
+$(SRCLIB):
+ (cd ../src; make)
+
+#########
+clean :
+ rm -f *.o fig2epic core
+
diff --git a/macros/latex/contrib/eepic/fig2eepic/readme b/macros/latex/contrib/eepic/fig2eepic/readme
new file mode 100644
index 0000000000..cc351f72e6
--- /dev/null
+++ b/macros/latex/contrib/eepic/fig2eepic/readme
@@ -0,0 +1,28 @@
+fig2epic V1.0a supports Fig-TFX codes in changing font type and font
+sizes. It also supports black filled for cirlce and ellipse. You
+need to have the Transfig package in order to compile fig2epic.
+Transfig can be obtained from svax.cs.cornell.edu
+
+EPIC can be obtained from cs.rochester.edu in
+public/latex-style/eepic.shar[12] and EEPIC can be obained from
+iris.ucdavis.edu[128.120.57.20] in pub/EEPIC10.shar using
+anonymous ftp.
+
+When the configuration file option is included in the
+compilation, the new ANSI keyword "void" is used. If your
+compiler does not support the "void" type, you will get 30+
+warning about "illegal pointer combination" or similar messages.
+However, the program should still work.
+
+fig2epic has been tested on BSD 4.3, SUN OS 3.4, Ultrix 2.1 and
+Encore Umax 4.2
+
+Bugs report, suggestions and comments are always welcome.
+
+Conrad Kwok
+
+internet: kwok@iris.ucdavis.edu
+csnet : kwok@ucd.csnet
+csnet : kwok%iris.ucdavis.edu@csnet.relay
+uucp : {ucbvax, uunet, ... }!ucdavis!iris!kwok
+