4

Is there a way to hide LaTeX commands for distract-less reviewing?

When I review and revise LaTeX documents, the commands are distracting. Is there a way to hide them or even make them as the same color as the background, so that they can not be seen? Any packages or editors?

N.N.
  • 36,163
microbe
  • 43

4 Answers4

4

Most serious text editors allow for multiple syntax highlighting themes. If you really need this, I'd suggest keeping one 'writing' theme with commands highlighted, and create a second 'review' them which is identical to the default except with all commands set to match the background or (perhaps a better idea) a few shades different, as Tobi suggested.

If reviewing in raw TeX is enough of an annoyance to you, you might consider switching to MultiMarkdown, a Markdown variant with LaTeX support. As you know, the philosophy behind Markdown is not just that it should be easy to write, but likewise easy to read.

Deaton
  • 540
  • I'll try to use (Multi)Markdown for writing and reviewing as far as I can before writing in LaTeX. Thanks. – microbe Oct 13 '11 at 21:48
3

In most editors you can set the color for keywors. There you can set it to light gray or even white, but in this case the are not visible but taking space however.

This is how it looks like in TeXStudio. (I like my keywords in red …)

texstudio

Tobi
  • 56,353
2

Whilst agreeing with the earlier answers and comments, it may be worth pointing out some types of document can be more effectively reviewed by increasing the semantic significance of commands rather than by hiding them.

For example, \newcommand can be used to replace commonly used command sequences with something more semantically significant. Some examples from a recent article I wrote included:

\newcommand\headingtwo[1]
    {\textsf{\textbf{\Large #1}}\par\medskip}
\newcommand\headingthree[1]
    {\textsf{\textbf{\large #1}}}
\newcommand\emspaced{\,---\,}

This simplifies the appearance of the document but also makes clearer the semantic intent of many of the commands (in addition to the benefit of allowing document-wide changes by an edit at one place in a document). Checking that appropriate Any-TeX commands have been applied to content can reveal errors that may be harder to find later.

Finally, if you have not already seen it, do read through the answers and associated comments to Workflow for reviewing PDFs generated from TeX? -- it does include material wider than the question might suggest and relevant to your question.

mas
  • 5,949
0

Here's an entirely different approch to your problem -- for most situations, the editor solution will still be better. Convert your document into plain text or a Word document, which is more comfortable for non-LaTeX reviewers. There are several questions about such tasks here; reading through them, Pandoc seems to be a pretty popular choice, I haven't used it myself though. Here are some related questions:

doncherry
  • 54,637