diff options
| -rwxr-xr-x | txt2latex.pl | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/txt2latex.pl b/txt2latex.pl index 5e04ef1..5732fe5 100755 --- a/txt2latex.pl +++ b/txt2latex.pl @@ -105,6 +105,8 @@ for ($s = 0; $s <= $#sections; $s++) {  		last if (not defined $latest_by_depth{$#path - $i});  		$label = "$latest_by_depth{$#path - $i} / $label";  	} +	#It's best to avoid underscore in labels +	$label =~ s/_/-/g;  	$text[$l] = $type . "{$name}\\label{sec:$label}\n";  	$label_by_section{$section} = $label;  } | 
