Overview
Comment:\ref --> \Ref
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 7157a68e3e10290315d9ccd095494f56d646cbbbbd22afa592155935893c46f9
User & Date: gawthrop@users.sourceforge.net on 1997-05-22 07:36:35
Other Links: branch diff | manifest | tags
Context
1997-05-22
07:38:27
Added command line info to .doc files (makedoc) check-in: bd0f279123 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
07:36:35
\ref --> \Ref check-in: 7157a68e3e user: gawthrop@users.sourceforge.net tags: origin/master, trunk
1997-05-21
10:09:19
Initial revision check-in: 25693e63c1 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/awk/rep_txt2tex.awk from [efe4a97522] to [22ce17eba0].

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
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







+
+
+













+


-
-
+





+
+
+
+



-




-
+
-







-
-
+



-
+







# Copyright (c) P.J.Gawthrop, 1996.

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.3  1997/05/19 16:43:34  peterg
## Explicit include of tex files 'cos latex2html prefers this!
##
# Revision 1.2  1997/05/19  16:11:10  peterg
# Modified section headers.
#
# Revision 1.1  1996/08/18  19:58:49  peter
# Initial revision
#
###############################################################


BEGIN {
  split(ARGV[1],a,"_");
  system_name = a[1];
  args = ARGV[2];
  comment="\%";
}
{
  if (NF==2) {

  if ((match($1,comment)==0)&&(NF==2)) {
    Representation = $1;
    Language = $2;
    Rep_lang = sprintf("%s_%s", Representation, Language);
    section_head = sprintf("System \\textbf{%s}: representation \\textbf{%s}, language \\textbf{%s}", \
			   system_name,Representation,Language);
# section headings
    print "\\section{" section_head "}";
    print "\\label{" Rep_lang "}";
    print "\\index{\\textbf{" system_name "} -- " Representation "}";

# tex files
    if( match("tex",Language)>0) {
      print "\\section{" section_head "}";
      # printf("  \\input{%s_%s.%s}\n", system_name, Representation, Language);
      command = sprintf("cat %s_%s.%s", system_name, Representation, Language);
      system(command);    }
# text files
    if( match("txt r m c",Language)>0) {
    if( match("txt r m c h",Language)>0) {
      print "\\section{" section_head "}";
      print "  \\begin{verbatim}";
      command = sprintf("cat %s_%s.%s", system_name, Representation, Language);
      system(command);
      print "  \\end{verbatim}";  
    }
# ps files
    if( match("ps",Language)>0) {
      print "\\section{" section_head "}";
      printf("This representation is given as Figure \\ref{fig:%s}.\n", Rep_lang);
      printf("This representation is given as Figure \\Ref{fig:%s}.\n", Rep_lang);
      print "  \\begin{figure}";
      printf("    \\epsfig{file=%s_%s.%s,width=\\linewidth}\n", \
	     system_name, Representation, Language);
      printf("    \\caption{System %s, representation %s}\n", system_name, Representation);
      printf("    \\caption{System \\textbf{%s}, representation %s}\n", system_name, Representation);
      printf("    \\label{fig:%s}\n", Rep_lang);
      print "  \\end{figure}";
    }
  }
}
END {


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]