(textstudio) How can I get rid of all the \vspace{}* commands from my document automatically, without having to remove one by one ? I was using it in and out of my equations' throughout the whole document but they told me I shouldn't use it.
*Actually it's not all, but only after the introduction chapter of the document, when the equations start to appear.
Thanks in advance and sorry if that's too simple to solve.
\vspace{}or various instances of\vspace{xxx}with different values ofxxx? TeXstudio has a find and replace function which allows you to replace all, or all within a selection etc. You can make the Replace bar visible below the Find bar by choosingSearching->Replacefrom the Edit menu. – Alan Munn Dec 11 '23 at 04:17sed '/\\chapter{Introduction}/,$s/\\vspace{}\*/g' <filename> > <filename2>. Or the equivalent in Kile's find-and-replace. – cfr Dec 11 '23 at 04:21\vspace{to ,\foobarand define the later as\newcommand{\foobar}[1]{}. – Jhor Dec 11 '23 at 04:27\\vspace{[^}]*}instead of\\vspace{}\*(assuming you want to remove all\vspace{xxx}, not all literal\vspace{}which would've been low level TeX errors). – Skillmon Dec 11 '23 at 04:56\\vspace\*{[^}]*}since the*in the original would be literal? – cfr Dec 11 '23 at 05:43*in the question is denoting a footnote and doesn't mean the starred variant of\vspace. – Skillmon Dec 11 '23 at 06:02