From cf97cbb889d026f224e0253f17fa44c29474105c Mon Sep 17 00:00:00 2001 From: Ali Gholami Rudi Date: Wed, 28 Jan 2015 19:02:08 +0330 Subject: [PATCH] tmac.eps: use tab for indentation --- tmac/tmac.eps | 62 +++++++++++++++++++++++++++++------------------------------ 1 file changed, 31 insertions(+), 31 deletions(-) rewrite tmac/tmac.eps (87%) diff --git a/tmac/tmac.eps b/tmac/tmac.eps dissimilarity index 87% index ffc6c52..dc7f7c5 100644 --- a/tmac/tmac.eps +++ b/tmac/tmac.eps @@ -1,31 +1,31 @@ -.\" tmac.eps -.\" -.\" .EPS file.eps [L|R|C|indents] [width] [height] -.de EPS -.ds eps.tmp /tmp/.eps.\n($$ -.\" obtaing the bounding box -.ec @ -.sy cat @$1 | sed -n '/%%BoundingBox: \([-0123456789]\{1,10\}\) \([-0123456789]\{1,10\}\) \([-0123456789]\{1,10\}\) \([-0123456789]\{1,10\}\)/{s//.nr llx 0+\1,.nr lly 0+\2,.nr urx 0+\3,.nr ury 0+\4/p; q; }' | tr ',' '\\n' >@*[eps.tmp] -.ec -.so \\*[eps.tmp] -.sy rm \\*[eps.tmp] -.\" image scaling -.ie '\\$3'' .nr eps.scale 100 -.el .nr eps.scale ((\\$3)*100/(\\n[urx]-\\n[llx])) -.if !'\\$4'' .if \\n[eps.scale]>(((\\$4)*100/(\\n[ury]-\\n[lly]))) \ -. nr eps.scale ((\\$4)*100/(\\n[ury]-\\n[lly])) -.nr eps.w (\\n[urx]-\\n[llx])*\\n[eps.scale]/100 -.nr eps.h (\\n[ury]-\\n[lly])*\\n[eps.scale]/100 -.\" the placement -.ie '\\$2'' .nr eps.in 0 -.el .nr eps.in (\\$2) -.if '\\$2'L' .nr eps.in 0 -.if '\\$2'C' .nr eps.in (\\n(.l-\\n(.i-\\n[eps.w])/2 -.if '\\$2'R' .nr eps.in (\\n(.l-\\n(.i-\\n[eps.w]) -.\" printing the image -.br -.ne \\n[eps.h]u -.sp \\n[eps.h]u -\h'|\\n[eps.in]u'\\X'eps \\$1 \\n[eps.w]'\h'\\n[eps.w]u' -.br -.. +.\" tmac.eps +.\" +.\" .EPS file.eps [L|R|C|indents] [width] [height] +.de EPS +. ds eps.tmp /tmp/.eps.\n($$ +. \" obtaing the bounding box +. ec @ +. sy cat @$1 | sed -n '/%%BoundingBox: \([-0123456789]\{1,10\}\) \([-0123456789]\{1,10\}\) \([-0123456789]\{1,10\}\) \([-0123456789]\{1,10\}\)/{s//.nr llx 0+\1,.nr lly 0+\2,.nr urx 0+\3,.nr ury 0+\4/p; q; }' | tr ',' '\\n' >@*[eps.tmp] +. ec +. so \\*[eps.tmp] +. sy rm \\*[eps.tmp] +. \" image scaling +. ie '\\$3'' .nr eps.scale 100 +. el .nr eps.scale ((\\$3)*100/(\\n[urx]-\\n[llx])) +. if !'\\$4'' .if \\n[eps.scale]>(((\\$4)*100/(\\n[ury]-\\n[lly]))) \ +. nr eps.scale ((\\$4)*100/(\\n[ury]-\\n[lly])) +. nr eps.w (\\n[urx]-\\n[llx])*\\n[eps.scale]/100 +. nr eps.h (\\n[ury]-\\n[lly])*\\n[eps.scale]/100 +. \" the placement +. ie '\\$2'' .nr eps.in 0 +. el .nr eps.in (\\$2) +. if '\\$2'L' .nr eps.in 0 +. if '\\$2'C' .nr eps.in (\\n(.l-\\n(.i-\\n[eps.w])/2 +. if '\\$2'R' .nr eps.in (\\n(.l-\\n(.i-\\n[eps.w]) +. \" printing the image +. br +. ne \\n[eps.h]u +. sp \\n[eps.h]u +\h'|\\n[eps.in]u'\\X'eps \\$1 \\n[eps.w]'\h'\\n[eps.w]u' +. br +.. -- 2.11.4.GIT