Index: mttroot/mtt/bin/trans/abg2tex ================================================================== --- mttroot/mtt/bin/trans/abg2tex +++ mttroot/mtt/bin/trans/abg2tex @@ -12,10 +12,13 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## 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 ## Fixed [ 549658 ] awk should be gawk. ## Replaced calls to awk with call to gawk. ## ## Revision 1.3 2001/07/12 04:02:53 gawthrop @@ -113,10 +116,21 @@ cat <> $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 +cat <> $filename + + \fig{`pwd`/$1_pic}{$1_pic.ps}{0.9}{System \textbf{$1}: schematic diagram} + +EOF +fi # Description mtt -q -u $1 desc tex # Put in absolute pathnames in figures -- and fix bug in old desc files sed "s;fig{;fig{`pwd`/;g" < $1_desc.tex |\ Index: mttroot/mtt/bin/trans/makedesc ================================================================== --- mttroot/mtt/bin/trans/makedesc +++ mttroot/mtt/bin/trans/makedesc @@ -13,10 +13,13 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.4 1999/03/03 01:07:27 peterg +## Label the figure correctely, +## ## Revision 1.3 1998/07/22 08:58:51 peterg ## Corrected spelling. ## ## Revision 1.2 1997/05/21 10:00:51 peterg ## Tidied up. @@ -32,13 +35,21 @@ echo '% -*-latex-*- Put EMACS into LaTeX-mode' > $1_desc.tex echo "% Verbal description for system $1 ($1_desc.tex)" >> $1_desc.tex echo "% Generated by MTT on" `date`. >> $1_desc.tex cat $MTTPATH/trans/m/rcs_header.txt >> $1_desc.tex -cat<> $1_desc.tex - The acausal bond graph of system \textbf{$1} is - displayed in Figure \Ref{fig:$1_abg.ps} and its label - file is listed in Section \Ref{sec:$1_lbl}. - The subsystems are listed in Section \Ref{sec:$1_sub}. +cat<> $1_desc.tex +The acausal bond graph of system \textbf{$1} is +displayed in Figure \Ref{fig:$1_abg.ps} EOF +if [ -e "$1_pic.fig" ]; then +cat<> $1_desc.tex +and the schematic diagram in Figure \Ref{fig:$1_pic.ps} +EOF +fi +cat<> $1_desc.tex +. +The label file is listed in Section \Ref{sec:$1_lbl} and the +subsystems are listed in Section \Ref{sec:$1_sub}. +EOF