From f290077f927edc6d01d31ab3645779f21687fb04 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 12 Sep 2007 08:28:48 +0000 Subject: [PATCH] =?utf8?q?Sonderzeichen=20hochgestellte=202=20und=203=20f?= =?utf8?q?=C3=BCr=20LaTeX=20escapen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Template.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SL/Template.pm b/SL/Template.pm index 8693580d6..693a3495e 100644 --- a/SL/Template.pm +++ b/SL/Template.pm @@ -92,6 +92,8 @@ sub format_string { '&', quotemeta("\n"), '"', '\$', '%', '_', '#', quotemeta('^'), '{', '}', '<', '>', '£', "\r", '±', '\xe1', + '²', '³', + ], quotemeta("\\") => '\\textbackslash ', '' => '', @@ -110,7 +112,9 @@ sub format_string { '±' => '$\pm$', '\xe1' => '$\bullet$', quotemeta('^') => '\^\\', - quotemeta("\n") => '\newline ' + quotemeta("\n") => '\newline ', + '²' => '$^2$', + '³' => '$^3$', ); map({ $variable =~ s/$_/$replace{$_}/g; } @{ $replace{"order"} }); -- 2.20.1