I have a long math file where $$ $$ was used for display math. I want to change these to \[ \] to make it look neater. I don't know whether I can use the find/replace function in TeXworks to alternate between replacing by \[ and \], and I'm not enough of a programmer to solve this with a batch program.  Is there an easy fix?
16260
Is there an editor or IDE (or a script) for substituting the TeX-Commands $ and $$ for opening and closing math regions into the corresponding LaTeX-Commands \(,\) and \[,\]? I'm sure there is a tool - and I'm searching for. I think, this will result in better readable code. A simple search and replace wont do that - but with regular expressions, that should not be problem. I simply do not want to invent the wheel a second time.
33708
I have a bunch of files on a Ubuntu box, which have various characters in their filenames that Windows doesn't accept (mostly ":" and "*", but possibly others).  What's the simplest way to get these all renamed and moved to a Windows machine? It's OK to replace these characters with something like "[colon]" and "[asterisk]".
13433
I'm trying to find certain files with the name "stringx" and replace the name (but not the extension) with "stringy". So basically for stringx.txt and stingx.cs, I'd want stringy.txt and stringy.cs. I've attempted to test my rename command regex using following, but it returns no results:  rename -n 'stringx./s/\*$stringy./\/' stringx.*   I'm running csh under Centos. I can see that my regex is probably not correct, but I can't see any results to verify this. I can see that there are files that are named stringx. with the following:  find ./ -name 'stringx.*'
41904
LaTeX is trying to add a missing $ that I don't want to the following code. Minimal working example:  \documentclass[letter,12pt]{article}  \newcommand{\monkeyBeans}[2][]{   \parbox{4in}{#1} }  \begin{document}  \parbox{4in}{$[a, b]$}   \monkeyBeans[$[a, b]$]{yo monkey}  \end{document}   If I try any of the following lines in my document instead of the call to monkeyBeans, there is no error:  \parbox{4in}{$[a, b]$}  \monkeyBeans[yo monkey]{$[a, b]$} \monkeyBeans[$(a, b)$]{yo monkey} \monkeyBeans{$[a, b]$}{yo monkey}   What is the deal with square brackets in optional arguments?
106756
Like prompt says, I want a command to allow quicker mathematical equations. I have created my own commands in the past but cant figure this out.  Ideally I would end up with a shortcut like \m or Alt+M that would type $$ and then press the left arrow key.    If this cannot be done native to TeXstudio, could someone suggest a good minimalist macro program to make this work?
80943
I want to pipe file names to other programs, but they all choke when the names contain spaces.  Let's say I have a file called.  foo bar   How can I get find to return the correct name?  Obviously I want:  foo\ bar   or:  "foo bar"   EDIT: I don't want to go through xargs, I want to get a correctly formatted string out of find so that I can pipe the string of file names directly to another program.
95809
When doing a search, posts with MathJax code are wrongly formatted.  In this example  all the results look ugly. When taking a closer look at the first post, I notice that the first $ is not regocnized by MathJax as a math-begin, while the second $ (that should denote math-end) is taken as the beginning of math.    Another example:
48875
I have a LaTeX editing environment that does some assistive stuff such as auto-indenting, closing parentheses, etc.  However, one of the things that it does is unknown to me, and is difficult to search for. If I type an empty set of braces, it replaces them with  {}&lt;++&gt;   If I type two empty sets, for example when I'm setting up a fraction \frac{}{} what I actually get is  \frac\left\{ } \right\}&lt;++&gt;}&lt;++&gt;   Is this a problem? What does &lt;++&gt; do?  Edit: This is using
62307
I would like to convert a large LaTeX project (i.e. spanning multiple files) into plain text. The purpose is generation of statistics, so representing mathematics is not an issue. In fact, all mathematics is ideally ignored.  I have found  but could not get it to run. It seems unfinished, but is exactly what I am looking for otherwise.
85883
I want to remove brackets [] and quotes around each value and add quotes at start and end. X= ['8922','9292','3220'] I want output as below. Y = '8922,9292,3220' How can I do this. Please suggest.
25713
I need to rename a bunch of files in order to fix their sort order, therefore I need to be able to do a sort of "find and replace" so I can replace chunks of the filenames at a time.  What tools should I use? I prefer GUI but a command line tool recommendation would also be fine.
98416
I am writing some notes and in them there is 95% mathematics, give or take, so I use $...$. The problem is that if I want to go into a new line and I use the \\ there is the risk of badbox creation. Also because I write a lot of formulas in multiple lines I have to use a lot of times $...$ , which seems to me a little useless because my notes as I said are almost entirely mathematics. Is there an environment or another way so I can write mathematics like I write text? Something like the verbatim environment but for mathematics?
92167
I'm writing a document where I had to change all instances of the variable i to x and the document is already considerably long. Is there a editor that will allow me to do this, or in general, replace text inside math environments?
90386
Hello I've been having a "Missing $ inserted" on my latex document and i'm not sure what to do. I've tried asking previously but wasn't able to fix it.  I'm not sure at all what I'm doing wrong but i get an error Missing $ inserted. $ on the 2nd line with c)\  The text works fine separately but when put with the rest of the document i keep on getting errors.  The rest of the text works fine and there are no $ signs that are not already paired in previous parts  \noindent c)\\ coordinates = (99,85),(190,220),(286,383)\\ \begin{align} error&amp;= \left | y-(a+bx) \right |\\ E&amp;= \left | y-(475.5+1.253x) \right |\\ (99,85): E&amp;=\left | 85-(475.5-1.253(99) \right |\\ &amp;=\left | 85-(351.5) \right |\\ &amp;=266.5\\ (190,220): E&amp;=\left | 220-(475.5-1.253(190) \right |\\ &amp;=\left | 220-(237.5) \right |\\ &amp;=17.5\\ (286,383): E&amp;=\left | 383-(475.5-1.253(286) \right |\\ &amp;=\left | 386-(117.2) \right |\\ &amp;=265.8\\ \end{align} $\therefore$ \text{Next location is "The Reservoir" at (190,220)} \end{document}   This is link to writeLatex online document   Is anyone able to help with this? Error is at end.
73899
I would like to properly typeset a file path, e.g.  C:\Program Files\Some program\bin\executable.exe   The first problem I encountered was that LaTeX tries to treat \Program as a command. I tried escaping it with another backslash which created a linebreak.  Then I found this package  but I am not really happy because it typesets system-specific delimiters (i.e. \ for Windows and / for Unix-like) as some weird arrows.  Which leads to my question: what is the preferred way of typesetting a file path in LaTeX?
76751
I'd like \span to be a math operator (for the  of a set of vectors), but apparently it's already a TeX command. What do you guys recommend I do instead? (I don't really want a strange capital \Span, or some other odd variant... but I'm guessing it's a bad idea to redefine \span?)
52079
How does one insert a "\" (backslash) into the text of a LaTeX document? And how does one insert a "~" (tilde)? (If you insert \~, it will give you a tilde as an accent over the following letter.)    I believe \backslash may be used in math formulae, but not into text itself. Lamport's, Kopka's, and Mittelbach's texts have said as much (but no more), and so left me hanging on how to get a backslash into regular text.