Search found 5 matches

by mmthomas
Tue Jan 22, 2013 11:35 pm
Forum: Text Formatting
Topic: programmatic find and replace in a tex file or fragment
Replies: 8
Views: 12842

programmatic find and replace in a tex file or fragment

Another example of a similar problem is that I want to replace all instances of

Code: Select all

\hline
in the tex fragment with

Code: Select all

\hline \hline
, but if I use

Code: Select all

\SearchList{list1}{\hline\hline}{\hline}
, then I get the same error: Missing endcsname inserted.
by mmthomas
Thu Jan 17, 2013 1:40 am
Forum: Text Formatting
Topic: programmatic find and replace in a tex file or fragment
Replies: 8
Views: 12842

programmatic find and replace in a tex file or fragment

Hi Stefan,

Thanks so much for your help.

What I would ideally want to write is something like the following:

\SearchList{list1}{$\beta_3$}{beta\backslash\textunderscore3}


The reason is that the tex fragment that I have has beta\_3 in the code (so it writes "beta_3" to the table), and I would ...
by mmthomas
Wed Jan 16, 2013 2:55 am
Forum: Text Formatting
Topic: programmatic find and replace in a tex file or fragment
Replies: 8
Views: 12842

programmatic find and replace in a tex file or fragment

Hi Stefan,

Thank you so much for your help. The xesearch package is exactly what I need for this. One related question on using xesearch: I want to replace what appears in the .tex code as "beta\_3" with "$\beta_3$" - essentially the .tex fragment output from Stata is creating a table to write the ...
by mmthomas
Sat Dec 22, 2012 12:41 am
Forum: Text Formatting
Topic: programmatic find and replace in a tex file or fragment
Replies: 8
Views: 12842

programmatic find and replace in a tex file or fragment

Hello,

I'm looking for a way to find and replace a string throughout a tex file by adding a line of code, without doing any type of manual "find and replace." The reason is that I'm using tex fragments that are the output of a Stata regression, and I have one main Stata file where I insert all the ...