LaTeX forum ⇒ Texmaker and TeXstudioSpell check does not work with \cite{}

Information and discussion about Texmaker, an integrated LaTeX environment for several platforms, and the related TeXstudio
Nabla94
Posts: 1
Joined: Sun Dec 03, 2017 10:02 pm

Spell check does not work with \cite{}

Postby Nabla94 » Sun Dec 03, 2017 10:26 pm

Hi,

I use Texmaker and would like to have my text spell checked.
If I enter the following text, the mistake is correctly recognized:

This sentence contains a misstake

Even when continuing with a citation, Texmaker still recognizes it:

This sentence contains a misstake \cite{bib

But upon closing the citation bracket, the red underlining disappears!?

This sentence contains a misstake \cite{bib}

I don't have this problem with \ref, \citep or any other command.
The \cite command disturbs the whole paragraph before, not just one sentence, and not the part after it.
The paragraph before is fine, if it does not contain a \cite...

This is really dangerous, since mistakes are not recognized.

Hope you can help me,
I would like to have my thesis checked ;)

Cheers,
Clemens

edit:
https://tex.stackexchange.com/questions/369866/spell-check-not-working-in-parts-of-texmaker-after-copy-and-paste seemed to be the same issue...
https://tex.stackexchange.com/questions/109584/why-does-spell-check-not-work-if-the-figure-has-a-label seems to be similar for \label

Tags:

kaiserkarl13
Posts: 604
Joined: Tue Mar 25, 2008 5:02 pm

Postby kaiserkarl13 » Sun Apr 01, 2018 11:15 pm

This seems to happen for any command ending in "cite"; includes \cite, \nocite \footcite, \mycite, \overcite, and it happens for any word in the sentence.

You can get around this problem by putting all your \cite commands on a line by themselves, with the previous line ending with [cmd]~%[/cmd]. Example:
  1. Thiss lline ccontaiins missspelled woords~\cite{someone}

will look the same in print as
  1. Thiss lline ccontaiins missspelled woords~%
  2. \cite{someone}

but the second form will fake out TeXmaker into not assuming everything on a line with \...cite{.*} in it.


Return to “Texmaker and TeXstudio”

Who is online

Users browsing this forum: No registered users and 2 guests