From 59b33d7737e6b0fb97677d1b1d842b52be8352fb Mon Sep 17 00:00:00 2001 From: youkie <892861337@qq.com> Date: Thu, 10 Nov 2016 20:34:03 +0800 Subject: [PATCH] diagram bug The old regex would match \ref{dia:label0} in the tex file, Thus lead to transfer a non-exist filename, dia:label0, to make-diagram.pl. --- make-latex.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/make-latex.pl b/make-latex.pl index 22bea3b..4188465 100755 --- a/make-latex.pl +++ b/make-latex.pl @@ -163,7 +163,9 @@ sub usage { push @figures, $figfile; } - if( /[=\{](dia[^\,\}]*)[\,\}]/ ) { +#Modified by youkie in 20161110. The old regex would match \ref{dia:label0} in the tex file, Thus lead to transfer a non-exist filename, dia:label0, to make-diagram.pl. +# if( /[=\{](dia[^\,\}]*)[\,\}]/ ) { + if( /[=](dia[^\,\}]*)[\}]/ ) { my $figfile = "$tmp_dir/$1"; my $done = 0; while( !$done ) {