5

output

Obviously, compiling this just yields

A sample citation: [1, p. 1]arg two?no arg three.

so \autocite itself definitely isn't using the argument. Why is this so, and how can it be fixed?

Note the red \ when only one argument is given:

output

1
  • It should be noted that this behaviour is not reproduced with \autocites Commented Dec 24, 2013 at 4:51

1 Answer 1

6

Apparently the extra opening brace was the culprit. Which can be easily fixed by changing line 306 and line 307 of font-latex.el, saving the file, and compiling AUCTeX again.

So replace the following in line 306

("autocite" "*[{{")

to

("autocite" "[[{")

and line 307

("Autocite" "*[{{")

to

("Autocite" "[[{")

enter image description here

9
  • Just created a PR for @giordano to look over (I just hope I sent the patch to the right place.) Thanks! Commented Dec 24, 2013 at 7:35
  • glad the answer resolved the issue, take care
    – doed
    Commented Dec 24, 2013 at 8:46
  • 1
    @SeanAllred I already fixed this upstream in July ;-).
    – giordano
    Commented Dec 24, 2013 at 10:22
  • @giordano I wonder then why ELPA hasn't been updated, then… is it waiting for emacs 24.4? (I've heard it's now feature-frozen.) Commented Dec 24, 2013 at 19:01
  • It seems GNU ELPA will use only AUCTeX stable releases.
    – giordano
    Commented Dec 24, 2013 at 19:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .