]> mj.ucw.cz Git - ga.git/commitdiff
\twofigures potrebuje trochu jine zpracovani cest.
authorMartin Mares <mj@ucw.cz>
Mon, 15 Jan 2007 15:18:04 +0000 (16:18 +0100)
committerMartin Mares <mj@ucw.cz>
Mon, 15 Jan 2007 15:18:04 +0000 (16:18 +0100)
all/preprocess

index c78e1761765f3f42b1361d8e1ab10ce1f3b7bbe7..60141a7a7416fa2215258be2fd4e68fce8cbbb83 100755 (executable)
@@ -11,7 +11,8 @@ foreach my $f (@ARGV) {
                /^\\input .*sgr\.tex/ && next;
                /^\\references/ && next;
                /^\\bye/ && last;
-               s@\\(figure|fig|twofigures|epsfbox){([^}]+)}@\\$1\{$d$2}@g;
+               s@\\(figure|fig|epsfbox){([^}]+)}@\\$1\{$d$2}@g;
+               s@\\(twofigures){([^}]+)}({[^}]+}{[^}]+}){([^}]+)}@\\$1\{$d$2}$3\{$d$4}@g;
                print;
        }
        close X;