3,214 reputation
933
bio website
location London, UK
age
visits member for 2 years, 3 months
seen 23 hours ago

Jul
16
comment Remove all math for spelling and grammar checking
Thanks for the suggestion. I don't use TeXstudio, but may give this a shot. The other option, copy and pasting, is a good option for shorter texts, but I'm working on a 700-page book. The advantages of the copy & paste method is that you'd be able to paste into Microsoft Word, which may have the best grammar checker available (not sure if this is true, I don't have MS Word).
Jul
13
comment Remove all math for spelling and grammar checking
I agree that it is good coding practice. However, I sometimes indent an equation with a few spaces. That's a case where this code breaks. Once you're aware of the problem, it's not a big deal to fix that in the original LaTeX code. I just ran a grammar check with your code and barbara's code, and the output is much less noisy. Great work!
Jul
13
revised Remove all math for spelling and grammar checking
Added generalized code and added lua syntax highlighting
Jul
13
comment Remove all math for spelling and grammar checking
Nice! I wonder if the first limitation can be dealt with by automatically adding a newline character after the \begin{...} commands. I have no experience with LuaTeX and tried just adding \n to the replacement string, but the line splitting has finished when the hook is run, so that the \n is just inserted in the current line. I don't know how to fix that.
Jul
13
revised Remove all math for spelling and grammar checking
Add a missing backtick
Jul
13
awarded  Nice Question
Jul
12
comment Remove all math for spelling and grammar checking
(Using Barbara's solution below I replaced all math by the word "spam" and amusingly got the output "Let spam, and define spam, spam, spam, and spam.")
Jul
12
comment Remove all math for spelling and grammar checking
Thank you! You are right about the \begin{xxx} ... \end{xxx} environments. There is actually a package (comment) that does something similar. I use it to suppress tables and figures. It's not perfect though; I sometimes do get compilation errors that I do not understand.
Jul
12
revised Remove all math for spelling and grammar checking
capitalization
Jul
12
comment Remove all math for spelling and grammar checking
@PaulGessler: Yes, I was thinking about this as well, However, I cannot think of a generic string that would make the following two sentences grammatically correct: "The variable $x$ is nonnegative." "It follows that $x=1$." Maybe there is a clever use of a string with a double meaning?
Jul
12
asked Remove all math for spelling and grammar checking
Jul
2
awarded  Curious
Jun
25
revised Define aliases for indices
Fixed spelling
May
30
revised Split Table of Contents but not Summary
added example
May
30
answered Split Table of Contents but not Summary
May
25
revised lstlisting environment with UTF-8 encoding
edited title
May
24
awarded  Benefactor
May
23
accepted Pgfgantt backwards incompatibility
May
23
comment Pgfgantt backwards incompatibility
@JLDiaz: Brilliant idea to compare sources (why did that not occur to me?) I was looking at this the wrong way: I thought that this rectangle + arrow was one shape, but now I realize that it is really a diamond with a rectangle superimposed on it. Anyway, you rock! Thanks so much for this. You receive a well deserved bounty (in 21 hours apparently).
May
23
comment Pgfgantt backwards incompatibility
@percusse: not sure what you mean here, but adding this line fixes my problem.