From 33bb92baf2f4e3415dc95f87eeb939e09530b501 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 20 Aug 2007 18:04:48 +0000 Subject: expressg is metapost (luecking 23 Jul 2007 13:47:15) git-svn-id: svn://tug.org/texlive/trunk@4777 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/metapost/expressg/README | 101 ++++++++++++++ .../texmf-dist/doc/metapost/expressg/aamfigs.pdf | Bin 0 -> 42281 bytes .../texmf-dist/doc/metapost/expressg/aamfigs.tex | 65 +++++++++ Master/texmf-dist/doc/metapost/expressg/expeg.pdf | Bin 0 -> 61100 bytes Master/texmf-dist/doc/metapost/expressg/expeg.tex | 147 +++++++++++++++++++++ .../texmf-dist/doc/metapost/expressg/expressg.pdf | Bin 0 -> 433000 bytes Master/texmf-dist/doc/metapost/expressg/n2mps.sh | 21 +++ .../texmf-dist/doc/metapost/expressg/n2mpsprl.prl | 43 ++++++ 8 files changed, 377 insertions(+) create mode 100644 Master/texmf-dist/doc/metapost/expressg/README create mode 100644 Master/texmf-dist/doc/metapost/expressg/aamfigs.pdf create mode 100644 Master/texmf-dist/doc/metapost/expressg/aamfigs.tex create mode 100644 Master/texmf-dist/doc/metapost/expressg/expeg.pdf create mode 100644 Master/texmf-dist/doc/metapost/expressg/expeg.tex create mode 100644 Master/texmf-dist/doc/metapost/expressg/expressg.pdf create mode 100644 Master/texmf-dist/doc/metapost/expressg/n2mps.sh create mode 100644 Master/texmf-dist/doc/metapost/expressg/n2mpsprl.prl (limited to 'Master/texmf-dist/doc/metapost/expressg') diff --git a/Master/texmf-dist/doc/metapost/expressg/README b/Master/texmf-dist/doc/metapost/expressg/README new file mode 100644 index 00000000000..f267a4f162c --- /dev/null +++ b/Master/texmf-dist/doc/metapost/expressg/README @@ -0,0 +1,101 @@ + The expressg MetaPost package provides facilities to assist in +drawing diagrams that consist of boxes, lines, and annotations, +such as IDEF or UML. Particular support is provided for creating +EXPRESS-G diagrams. + +----------------------------------------------------------------- + Author: Peter Wilson (CUA) now at peter.r.wilson@boeing.com until June 2004 + (or: pandgwilson at earthlink dot net) + Copyright 2001, 2002, 2003, 2004 Peter R. Wilson + + This work 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. + The latest version of the license is in + http://www.latex-project.org/lppl.txt + and version 1.3 or later is part of all distributions of + LaTeX version 2003/06/01 or later. + + This work has the LPPL maintenance status "author-maintained". + + This work consists of the files: +README (this file) +expressg.dtx +expressg.ins + and the derived files: +expressg.pdf +expressg.mp +expeg.mp +expeg.tex +n2mps.sh +n2mpsprl.prl + +----------------------------------------------------------------- + + The distribution consists of the following files: +README (this file) +expressg.ins +expressg.dtx +expressg.pdf (approximately 100 pages) +expeg.pdf +aam.mp +aamfigs.tex +aamfigs.pdf + +Changes in version 1.61 (2004/03/17) +o Added parentheses to namespace macro + +Changes in version 1.6 (2004/02/29) +o Additional `box' types: outputbox, stickfigure, bullseye + +Changes in version 1.5 (2003/07/31) +o Minor bug fixes + +Changes in version 1.4 (2000/07/10) +o Additional line end types + +Changes in version 1.3 (2000/05/22) +o Additional box and line types +o Additional examples +o Scripts for copying files basename.N to basenameN.mps, + where N is an integer + +Changes in version 1.2 (1999/11/15) +o Additional examples + +Changes in version 1.1 (1999/10/30) +o New path calculation routines +o Improved documentation + +Changes in version 1.0 (1996/05/09) +o First public release + + To install the package: +o run: latex expressg.ins (which will generate expressg.mp, + expeg.mp, expeg.tex, n2mps.sh and n2mpsprl.prl) +o run: latex expressg.dtx + (Note: if you don't have the docmfp package, read the instructions + at the start of this file) +o If you want an index then run: makeindex -s gind.ist expressg +o run: latex expressg.dtx +o Print expressg.dvi for a hardcopy of the package manual +o Move expressg.mp to a location where MetaPost will find it. +o To use the scripts make them executable (and they may require editing + to run on your system). + + The file expeg.ps contains some example diagrams. To generate your +own copy, and to test your installation: +o Move expeg.mp and expeg.tex to a working directory +o Run MetaPost on expeg.mp (probably either as: mp expeg or as: mpost expeg) +o Run LaTeX on expeg.tex +o print the result via dvips or other dvi processor that supports PostScript + graphics. + + The file aam.mp contains some more example MetaPost code. The +resulting diagrams are in aamfigs.pdf which has been generated by pdfLaTeX +from aamfigs.tex. + +2004/03/17 +Peter Wilson + diff --git a/Master/texmf-dist/doc/metapost/expressg/aamfigs.pdf b/Master/texmf-dist/doc/metapost/expressg/aamfigs.pdf new file mode 100644 index 00000000000..55a02e1280d Binary files /dev/null and b/Master/texmf-dist/doc/metapost/expressg/aamfigs.pdf differ diff --git a/Master/texmf-dist/doc/metapost/expressg/aamfigs.tex b/Master/texmf-dist/doc/metapost/expressg/aamfigs.tex new file mode 100644 index 00000000000..00153a8926f --- /dev/null +++ b/Master/texmf-dist/doc/metapost/expressg/aamfigs.tex @@ -0,0 +1,65 @@ +% aamfigs.tex AAM figures + +\documentclass[11pt]{article} + +% set up for (pdf)LaTeX processing +\newif\ifpdf +\ifx\pdfoutput\undefined + \pdffalse +\else + \pdftrue +\fi +\ifpdf + \pdfoutput=1 + \usepackage[pdftex,final]{graphicx} + \DeclareGraphicsRule{*}{mps}{*}{} +\else + \usepackage[final]{graphicx} +\fi +\usepackage{rotating} % or \usepackage{isorot} + +% isopage.tex Dimensions of an ISO page on US letterpaper +\setlength{\headheight}{11pt} +\setlength{\headsep}{10mm} +\setlength{\topskip}{11pt} +\setlength{\footskip}{11mm} +\setlength{\textwidth}{160mm} +\setlength{\textheight}{221mm} +\setlength{\columnsep}{10mm} +\setlength{\topmargin}{-9.4mm} +\setlength{\oddsidemargin}{1.55mm} +\setlength{\evensidemargin}{1.55mm} + +\title{AAMFIGS.TEX} +\author{Peter Wilson} \date{22 May 2000} +\begin{document} +\maketitle +\listoffigures +\clearpage + +\begin{sidewaysfigure} +\centering +\includegraphics{aam.1} +\caption{AAM 1} +\end{sidewaysfigure} + +\begin{sidewaysfigure} +\centering +\includegraphics{aam.2} +\caption{AAM 2} +\end{sidewaysfigure} + +\begin{sidewaysfigure} +\centering +\includegraphics{aam.3} +\caption{AAM 3} +\end{sidewaysfigure} + +\begin{figure} +\centering +\includegraphics{aam.5} +\caption{AAM 5} +\end{figure} + +\end{document} + diff --git a/Master/texmf-dist/doc/metapost/expressg/expeg.pdf b/Master/texmf-dist/doc/metapost/expressg/expeg.pdf new file mode 100644 index 00000000000..326d63b17f4 Binary files /dev/null and b/Master/texmf-dist/doc/metapost/expressg/expeg.pdf differ diff --git a/Master/texmf-dist/doc/metapost/expressg/expeg.tex b/Master/texmf-dist/doc/metapost/expressg/expeg.tex new file mode 100644 index 00000000000..9f92aa461b4 --- /dev/null +++ b/Master/texmf-dist/doc/metapost/expressg/expeg.tex @@ -0,0 +1,147 @@ +%% +%% This is file `expeg.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% expressg.dtx (with options: `egt') +%% +%% Author: Peter Wilson (CUA) now at peter.r.wilson@boeing.com until June 2004 +%% (or pandgwilson@earthlink.net) +%% Copyright 1996, 2003 Peter R. Wilson +%% +%% v1.0 1996/05/09 (first release) +%% v1.2 1999/11/15 +%% v1.3 2000/05/22 +%% v1.4 2000/07/10 +%% v1.5 2003/07/31 +%% v1.6 2004/02/29 +%% v1.61 2004/03/17 +%% +%% This work 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. +%% The latest version of the license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of +%% LaTeX version 2003/06/01 or later. +%% +%% This work has the LPPL maintenance status "author-maintained". +%% +%% This work consists of the files listed in the README file. +%% This program is provided under the terms of the +%% LaTeX Project Public License distributed from CTAN +%% archives in directory macros/latex/base/lppl.txt. +%% +%%% expeg.tex display expressg.dtx MetaPost examples + +\documentclass[11pt]{article} +\newif\ifpdf +\ifx\pdfoutput\undefined + \pdffalse +\else + \pdftrue +\fi + +\ifpdf + \pdfoutput=1 + \usepackage[pdftex,final]{graphicx} + \DeclareGraphicsRule{*}{mps}{*}{} +\else + \usepackage[final]{graphicx} +\fi + +%%%% page sizes for ISO document on A4 paper +\setlength{\headheight}{11pt} +\setlength{\headsep}{10mm} +\setlength{\topskip}{11pt} +\setlength{\footskip}{11mm} +\setlength{\textwidth}{160mm} +\setlength{\textheight}{221.5mm} +\setlength{\columnsep}{10mm} +\setlength{\topmargin}{0mm} +\setlength{\oddsidemargin}{0mm} +\setlength{\evensidemargin}{0mm} +\setlength{\marginparwidth}{0pt} +\setlength{\marginparsep}{0pt} +\setlength{\marginparpush}{0pt} +\setlength{\footnotesep}{12pt} + %%%% for US letterpaper need to change some margins +\setlength{\topmargin}{-9.4mm} +\setlength{\oddsidemargin}{1.55mm} +\setlength{\evensidemargin}{1.55mm} + +\begin{document} + +\begin{figure} +\centering + \includegraphics{expeg.1} +\caption{Some boxes and line styles} +\end{figure} + +\begin{figure} +\centering + \includegraphics{expeg.2} +\caption{Example schema level diagram} +\end{figure} + +\begin{figure} +\centering + \includegraphics{expeg.3} +\caption{Example diagram of a tree structure} +\end{figure} + +\begin{figure} +\centering + \includegraphics{expeg.4} +\caption{Supertypes and subtypes} +\end{figure} + +\begin{figure} +\centering + \includegraphics{expeg.5} +\caption{A portion of a large model} +\end{figure} + +\begin{figure} +\centering + \includegraphics{expeg.6} +\caption{Car model using EXPRESS-G} +\end{figure} + +\begin{figure} +\centering + \includegraphics{expeg.7} +\caption{Car model using Shlaer-Mellor} +\end{figure} + +\begin{figure} +\centering + \includegraphics{expeg.8} +\caption{Car model using IDEF1X} +\end{figure} + +\begin{figure} +\centering + \includegraphics{expeg.9} +\caption{Car model using OMT} +\end{figure} + +\begin{figure} +\centering + \includegraphics{expeg.10} +\caption{Car model using E-R} +\end{figure} + +\begin{figure} +\centering + \includegraphics{expeg.11} +\caption{Car model using NIAM} +\end{figure} + +\end{document} + +\endinput +%% +%% End of file `expeg.tex'. diff --git a/Master/texmf-dist/doc/metapost/expressg/expressg.pdf b/Master/texmf-dist/doc/metapost/expressg/expressg.pdf new file mode 100644 index 00000000000..30a2c2a9911 Binary files /dev/null and b/Master/texmf-dist/doc/metapost/expressg/expressg.pdf differ diff --git a/Master/texmf-dist/doc/metapost/expressg/n2mps.sh b/Master/texmf-dist/doc/metapost/expressg/n2mps.sh new file mode 100644 index 00000000000..c4aac713262 --- /dev/null +++ b/Master/texmf-dist/doc/metapost/expressg/n2mps.sh @@ -0,0 +1,21 @@ +#! /bin/sh + +##################################################################### +# Shell script n2mps.sh +# Call as: n2mps.sh basename +# List each file basename.* in the directory and run the Perl script +# to copy each basename.N to basenameN.mps, where N is an integer +# +# Copyright 2000, Mauro S. Costa and Peter R. Wilson +##################################################################### + +basename=${1:?"A file basename is required."} +extname=N.mps +echo Files $basename.N, where N is a number, will be copied to $basename$extname +for file in `ls $basename.*` +do + n2mpsprl.prl $file +done + +####################### end shell script ########################### + diff --git a/Master/texmf-dist/doc/metapost/expressg/n2mpsprl.prl b/Master/texmf-dist/doc/metapost/expressg/n2mpsprl.prl new file mode 100644 index 00000000000..6dffe5c4a63 --- /dev/null +++ b/Master/texmf-dist/doc/metapost/expressg/n2mpsprl.prl @@ -0,0 +1,43 @@ + +#!/usr/local/bin/perl -w + +################################################################### +# Perl script: n2mpsprl.prl +# Call as: n2mpsprl.prl filename +# If filename is of the form basename.N, where N is an integer, +# copies file basename.N to file basenameN.mps +# +# Copyright 2000, Mauro S. Costa and Peter R. Wilson +################################################################## + +# Test for correct number of input parameters +die "Invalid command line arguments.\nTry $0 \n" if($#ARGV > 1); +die "Invalid command line arguments.\nTry $0 \n" if($#ARGV < 0); + +# Assign input file name to variable +$input_file = $ARGV[0]; + +## test if ends with a number, exit if not +if ($input_file =~ /\w\.\d/) { ; } else { exit; } + +# Remove the "dot" from the string variable +# holding the input file name +$input_file =~ s/\.// ; + +# Create a list variable composed of the string variable holding +# the concatenated input file name and the extension ".mps" +@name_list = ($input_file,'.mps') ; + +# Join the string variables in the name_list variable into +# a single string variable +$output_file = join("",@name_list) ; + +# create a list variable composed to the parameters needed +# for the system copy command excution +@exec_list = ('cp', $ARGV[0], $output_file) ; + +# Execute the system copy ("cp") command +system(@exec_list) ; + +############################ end perl script ########################## + -- cgit v1.2.3