I'm using sublime text 3 with latexing plugin on ubuntu, and i have a weird error on every color scheme i use, specially with double quote.

enter image description here

Only the solarized theme seems to work, other theme have the same weird bug on coloring.

I'm using this configuration :

\documentclass[a4paper, 11pt,twoside, openright]{memoir}
  • 2
    This is not an error, it is intended: the coloring is the one for "invalid" pieces of code. In your case you are using " instead of the typographically correct '' and `` for open and closed quotes. – Bordaigorl Mar 21 '14 at 9:36
  • I try with '' and i have the same color :/ – reyman64 Mar 21 '14 at 9:42

Quotation marks in LaTeX are not simply entered by typing ". Depending on the language you may need different symbols for opening/closing quotes. In English for example it is common to use ``my quotation''. This is why the highlighting is marking your quotes as invalid code: the character " should not be used that way in correct LaTeX.

For internationalised quotes you may be interested in the csquotes and babel package.

  • I'm writing in french, so i use already csquote (see my update). Ok for correct latex in english, but correct latex in french is same ? i need to use this notation ``my quotation'' ? – reyman64 Mar 21 '14 at 9:54
  • The most flexible solution would be using \enquote{my quotation} which is a command of csquotes. See the documentation. A less flexible solution is using unicode characters «my quote». The point here is that in any case you should not use ". – Bordaigorl Mar 21 '14 at 9:59
  • Ok :/ There is no way to force csquote to automatically replace ''text"" by the correct french quote at compilation ? – reyman64 Mar 21 '14 at 10:29
  • I try with this, without success, i have an error at compilation ... \MakeAutoQuote{``}{''} – reyman64 Mar 21 '14 at 10:58
  • You should post a new question with this problem than. The original question has been answered I think (if you think so you should mark this as an answer) – Bordaigorl Mar 21 '14 at 11:50

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.