I'm using aspell --version International Ispell Version 3.1.20 (but really Aspell 0.60.6) to verify my tex files with the command:

aspell -d pt_PT --dont-tex-check-comments  -c file0.tex

The problem is that ispell checks inside each


and each


that I'm using with


What can I do for ispell to ignore the references?

  • Very old versions involved here => 'too localized'. – Joseph Wright Nov 30 '11 at 12:56

The manual says that you need to add the following to the command line:

--add-tex-command citep op --add-tex-command citet op

Here op means that each command (\citet or \citep) may have one optional parameter and has one mandatory parameter, and neither should be checked (if you want to check the optional one, use Op instead).

See http://aspell.net/0.50-doc/man-html/4_Customizing.html

Update: the proper syntax (for some versions of aspell?) might be

--add-tex-command="citep op" --add-tex-command="citet op"
  • 2
    Thank you for the solution. I browsed the documentation but didn't figure out how to do this. Sill, in my system, I had to do --add-tex-command="citep op" (with the = sign and with quotes). – Luis Nov 12 '11 at 22:39
  • I think the manual might be wrong here, and the ="..." is the right one... – Boris Nov 12 '11 at 22:49

To add the setting to the configuration file (/etc/aspell.conf or ~/.aspell.conf), you don't need the quotes:

add-tex-command citep op
add-tex-command citet op

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.