Overview
Comment:Pretty abg figure in reports.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 4e19f6168e18b5f07c325e220b608dce560d335d551b949eb934b712b27e7ed6
User & Date: gawthrop@users.sourceforge.net on 2005-03-15 13:36:31
Other Links: branch diff | manifest | tags
Context
2005-03-15
15:03:55
Now works for Hierarchical systems check-in: 6e579f87f6 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
13:36:31
Pretty abg figure in reports. check-in: 4e19f6168e user: gawthrop@users.sourceforge.net tags: origin/master, trunk
12:49:28
Handle descriptive (inc maths) text as well check-in: 1a51654001 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/mtt from [bc98e22955] to [2df56cf42f].

13
14
15
16
17
18
19



20
21
22
23
24
25
26
# Copyright (C) 2001 by Peter J. Gawthrop

###############################################################
## Version control history
###############################################################
## $Header$
## $Log$



## Revision 1.408  2005/02/18 16:59:02  gawthrop
## Don't check files when using -s
##
## Revision 1.407  2005/02/17 18:36:38  geraint
## Removed a bash-ism: replaced [[ conditional ]] with [ conditional ]
##
## Revision 1.406  2005/01/06 15:36:06  geraint







>
>
>







13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copyright (C) 2001 by Peter J. Gawthrop

###############################################################
## Version control history
###############################################################
## $Header$
## $Log$
## Revision 1.409  2005/03/15 12:03:17  gawthrop
## New labg.fig rep - pretty LaTeX figures.
##
## Revision 1.408  2005/02/18 16:59:02  gawthrop
## Don't check files when using -s
##
## Revision 1.407  2005/02/17 18:36:38  geraint
## Removed a bash-ism: replaced [[ conditional ]] with [ conditional ]
##
## Revision 1.406  2005/01/06 15:36:06  geraint
2974
2975
2976
2977
2978
2979
2980
2981


2982
2983
2984
2985
2986
2987
2988
#SUMMARY sabg	stripped acausal bond graph (fig)
#SUMMARY sabg	stripped acausal bond graph (ps)
#SUMMARY sabg	stripped acausal bond graph (view)
$1_sabg.fig: $1_rbg.m

#SUMMARY labg	latex-ready acausal bond graph (fig)
$1_labg.fig: $1_rbg.m




#Subsystem creation commands
#SUMMARY sub Executable subsystem list (sh)
ifeq ($start_at_abg,yes)
$1_sub.sh: $1_abg.m
	abg2sub_m2sh $1
else







|
>
>







2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
#SUMMARY sabg	stripped acausal bond graph (fig)
#SUMMARY sabg	stripped acausal bond graph (ps)
#SUMMARY sabg	stripped acausal bond graph (view)
$1_sabg.fig: $1_rbg.m

#SUMMARY labg	latex-ready acausal bond graph (fig)
$1_labg.fig: $1_rbg.m
$1_labg.tex: $1_labg.fig
	fig2dev -L pstex_t -p $1_labg.eps $1_labg.fig $1_labg.tex
	fig2dev -L pstex $1_labg.fig $1_labg.eps

#Subsystem creation commands
#SUMMARY sub Executable subsystem list (sh)
ifeq ($start_at_abg,yes)
$1_sub.sh: $1_abg.m
	abg2sub_m2sh $1
else
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
$1_reps_made:
	rep_txt2sh $1 "$mtt_switches";  touch $1_reps_made

$1_rep.tex: $1_rep.txt $1_reps_made
	rep_txt2tex $1 "$documenttype" "$directory" "$mtt_switches";

#SUMMARY abg Acausal bond graph report (tex)
$1_abg.tex: $1_sub.sh
	abg2tex $pdf ${sensitivity_switch} $1

#SUMMARY tf Transfer function (mml)
$1_$2.mml: $1_$2.r
	mtt_r2mml $1 $2









|







3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
$1_reps_made:
	rep_txt2sh $1 "$mtt_switches";  touch $1_reps_made

$1_rep.tex: $1_rep.txt $1_reps_made
	rep_txt2tex $1 "$documenttype" "$directory" "$mtt_switches";

#SUMMARY abg Acausal bond graph report (tex)
$1_abg.tex: $1_sub.sh $1_labg.tex
	abg2tex $pdf ${sensitivity_switch} $1

#SUMMARY tf Transfer function (mml)
$1_$2.mml: $1_$2.r
	mtt_r2mml $1 $2


Modified mttroot/mtt/bin/trans/abg2tex from [3015f96979] to [5c7c8f0f51].

10
11
12
13
14
15
16



17
18
19
20
21
22
23
# Copyright (c) P.J.Gawthrop, 1997.

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$



## Revision 1.6  2004/02/11 10:10:04  gawthrop
## Includes a _pic.fig file (schematic) if such exists
##
## Revision 1.5  2004/02/10 16:12:21  gawthrop
## Don't give details of Se De Sf Df INTF
##
## Revision 1.4  2002/04/28 18:41:26  geraint







>
>
>







10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Copyright (c) P.J.Gawthrop, 1997.

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.7  2004/08/26 16:11:48  geraint
## Fixed ignore() and pipe so that subsystems are included in reports again.
##
## Revision 1.6  2004/02/11 10:10:04  gawthrop
## Includes a _pic.fig file (schematic) if such exists
##
## Revision 1.5  2004/02/10 16:12:21  gawthrop
## Don't give details of Se De Sf Df INTF
##
## Revision 1.4  2002/04/28 18:41:26  geraint
114
115
116
117
118
119
120

121
122
123
124
125
126
127
128
fi

# Figure
##echo mtt -q -u $pdf $1 abg ps
mtt -q -u  $pdf $1 abg ps
cat <<EOF  >> $filename


   \fig{`pwd`/$1_abg}{$1_abg.ps}{0.9}{System \textbf{$1}: acausal bond graph}

EOF

## Put a schematic if exists (_pic.fig)
if [ -e "$1_pic.fig" ]; then
  echo Inserting $1_pic.fig
  fig2dev -L eps $1_pic.fig  > $1_pic.ps







>
|







117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
fi

# Figure
##echo mtt -q -u $pdf $1 abg ps
mtt -q -u  $pdf $1 abg ps
cat <<EOF  >> $filename

%%   \fig{`pwd`/$1_labg}{$1_abg}{0.9}{System \textbf{$1}: acausal bond graph}
   \tfig{`pwd`/$1_labg}{$1_abg}{0.9}{System \textbf{$1}: acausal bond graph}

EOF

## Put a schematic if exists (_pic.fig)
if [ -e "$1_pic.fig" ]; then
  echo Inserting $1_pic.fig
  fig2dev -L eps $1_pic.fig  > $1_pic.ps

Modified mttroot/mtt/bin/trans/mtt.sty from [9e38311960] to [a2961996eb].

8
9
10
11
12
13
14



15
16
17
18
19
20
21
% Copyright (c) P.J.Gawthrop, 1997.

% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% Version control history
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% $Id$
% %% $Log$



% %% Revision 1.8  2000/12/01 14:15:16  peterg
% %% Removed hyperref stuff to mtt_pdf.sty
% %%
% %% Revision 1.7  2000/11/28 18:28:29  peterg
% %% Removed fancy box - messes up TOC
% %%
% %% Revision 1.6  2000/11/28 18:09:06  peterg







>
>
>







8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
% Copyright (c) P.J.Gawthrop, 1997.

% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% Version control history
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% $Id$
% %% $Log$
% %% Revision 1.9  2003/05/08 18:43:02  gawthrop
% %% Generate pdf from ps (using hyperref package for links etc)
% %%
% %% Revision 1.8  2000/12/01 14:15:16  peterg
% %% Removed hyperref stuff to mtt_pdf.sty
% %%
% %% Revision 1.7  2000/11/28 18:28:29  peterg
% %% Removed fancy box - messes up TOC
% %%
% %% Revision 1.6  2000/11/28 18:09:06  peterg
71
72
73
74
75
76
77




\newcommand{\Input}[1]{
  \input{#1}
}


% Page refs as well.
\newcommand{\Ref}[1]{\ref{#1} (on page \pageref{#1})}











>
>
>
>
74
75
76
77
78
79
80
81
82
83
84
\newcommand{\Input}[1]{
  \input{#1}
}


% Page refs as well.
\newcommand{\Ref}[1]{\ref{#1} (on page \pageref{#1})}

%% Latex in figures etc
\newcommand{\B}[1]{\text{\sffamily\textbf{#1}}}
\newcommand{\BB}[2]{$\B{#1}$:$\mathbf{#2}$}

Modified mttroot/mtt/bin/trans/mtt_ps.sty from [1b89a1a30e] to [54d658c739].

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
%% Style file for postscript document

%%\usepackage{mtt} % Common stuff (Needs to be explicit now)

%Postscript figures 
\usepackage{graphicx}

% Figure definition
\newcommand{\fig}[4]{
  \begin{figure}[htbp]
    \begin{center}
      \fbox{
        \includegraphics[width=#3\linewidth,height=18cm,keepaspectratio]{#1.ps}
        }
        \caption{#4}
      \label{fig:#2}
    \end{center}
  \end{figure}
  }














% Hyper stuff
\usepackage[implicit=true,
            bookmarks=true,
            pdfauthor={MTT},
            pdftitle={MTT report},





|













>
>
>
>
>
>
>
>
>
>
>
>







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
%% Style file for postscript document

%%\usepackage{mtt} % Common stuff (Needs to be explicit now)

%Postscript figures 
\usepackage{graphicx,color}

% Figure definition
\newcommand{\fig}[4]{
  \begin{figure}[htbp]
    \begin{center}
      \fbox{
        \includegraphics[width=#3\linewidth,height=18cm,keepaspectratio]{#1.ps}
        }
        \caption{#4}
      \label{fig:#2}
    \end{center}
  \end{figure}
  }

  \newcommand{\tfig}[4]{
    \begin{figure}[htbp]
      \begin{center}
        \fbox{
          \resizebox{#3\linewidth}{!}{\input{#1}}
        }
        \caption{#4}
        \label{fig:#2}
      \end{center}
    \end{figure}
  }


% Hyper stuff
\usepackage[implicit=true,
            bookmarks=true,
            pdfauthor={MTT},
            pdftitle={MTT report},


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