From 319c72e8738bbbfd457ae33dafd03ab8d5203a12 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 19 Jan 2007 15:37:57 +0000 Subject: [PATCH] Sonderzeichen in LaTeX ersetzen. --- SL/Template.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SL/Template.pm b/SL/Template.pm index c7257e991..18b44d069 100644 --- a/SL/Template.pm +++ b/SL/Template.pm @@ -91,7 +91,7 @@ sub format_string { '', '&', quotemeta("\n"), '"', '\$', '%', '_', '#', quotemeta('^'), - '{', '}', '<', '>', '£', "\r" + '{', '}', '<', '>', '£', "\r", '±', ], quotemeta("\\") => '\\textbackslash ', '' => '', @@ -107,6 +107,7 @@ sub format_string { '>' => '$>$', '£' => '\pounds ', "\r" => "", + '±' => '$\pm$', quotemeta('^') => '\^\\', quotemeta("\n") => '\newline ' ); -- 2.20.1