title: How do I exclude certain latex tags in OpenDetex?
body: <p>I am trying to spellcheck a LaTeX document (using Word), and use OpenDetex to convert it to plain text. The command line with default parameters:</p>
  
  <pre><code>$ detex foo.tex &gt; foo.txt
  </code></pre>
  
  <p>Problem: some garbage, especially bibliography ids from <code>\citep{}</code> and <code>\citet{}</code> commands stay in the text.</p>
  
  <p>How can I exclude these specific tags?</p>
  
  <p>The <code>-c</code> option only excludes <code>\cite</code>, but not <code>\citep</code> and <code>\citet</code>.</p>
  
  <p>I tried using the <code>-e</code> option like:</p>
  
  <pre><code>$ detex -e citep foo.tex &gt; foo.txt
  </code></pre>
  
  <p>to no avail. </p>
  
  <p>The documentation is a bit vague on that: </p>
  
  <pre><code>detex [-e environment-list] [-c] [-l] [-n] [-s] [-t] [-w] [file[.tex] ]
  ...
  -e  &lt;env-list&gt; list of LaTeX environments to ignore\n  
  ...
  </code></pre>
  
  <p>Any ideas how to make it work?</p>