From 945e035515f6814267a04daf4167e55e5201051a Mon Sep 17 00:00:00 2001 From: Felix Hilsky Date: Wed, 25 Nov 2020 18:51:46 +0000 Subject: [PATCH] learned something --- scripts/replacements-latex.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/replacements-latex.txt b/scripts/replacements-latex.txt index 3573d35..eaa3264 100644 --- a/scripts/replacements-latex.txt +++ b/scripts/replacements-latex.txt @@ -1 +1,2 @@ -s#\\includegraphics\[width=[0-9]\.[0-9]*in,height=[0-9.]*in\]{\(.maindir/zeichnungen/media/image\)\([0-9]*\).png}#\\begin{figure}\r\\centering\\includegraphics[width=\\scwidth]{\1\2}\r\\caption{name \2}\\label{fig:\2}\r\\end{figure}# +# to be used in vim (in sed \r -> \n) und ohne % am Anfang +%s#\\includegraphics\[width=[0-9.]*in,height=[0-9.]*in\]{\(.maindir/zeichnungen/media/image\)\([0-9]*\).png}#\\begin{figure}\r\\centering\\includegraphics[width=\\scwidth]{\1\2}\r\\caption{name \2}\r\\label{fig:\2}\r\\end{figure}#