Index: mttroot/mtt/bin/trans/lbl_txt2tex ================================================================== --- mttroot/mtt/bin/trans/lbl_txt2tex +++ mttroot/mtt/bin/trans/lbl_txt2tex @@ -12,10 +12,13 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.4 1998/07/17 19:46:44 peterg +## Included component alias. +## ## Revision 1.3 1998/07/16 20:39:52 peterg ## More cosmetic changes ## ## Revision 1.2 1998/07/16 16:34:09 peterg ## Cosmetic changes @@ -51,18 +54,22 @@ \begin{description} EOF grep '[%|#]ALIAS' $1_lbl.txt | sed 's/_/\\_/g' |\ awk '{ if (match($2,"\\$")>0){ - print "\\item [Parameter \\" $2 "] represents actual parameter \\textbf{" $3 "}" + printf("\\item [Parameter \\%s] represents actual parameter ",$2) } else if (match($3,"/")>0){ - print "\\item [Component " $2 "] is in library \\textbf{" $3 "}" + printf("\\item [Component %s] is in library ",$2) } else{ - print "\\item [Port " $2 "] represents actual port \\textbf{" $3 "}" + printf("\\item [Port %s] represents actual port ",$2) } + printf("\\textbf{%s}",$3) + if (match($4,"[\#\%]")==1) printf("-- "); + for (i=5;i<=NF;i++) printf(" %s", $i) + printf("\n"); } END{if (NR==0) print "\\item This component has no aliases" }' | sort >> $1_lbl.tex cat <> $1_lbl.tex \end{description}