Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

share|improve this question
    
It should be noted that this behaviour is not reproduced with \autocites –  Sean Allred Dec 24 '13 at 4:51

1 Answer 1

up vote 6 down vote accepted

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

share|improve this answer
    
Just created a PR for @giordano to look over (I just hope I sent the patch to the right place.) Thanks! –  Sean Allred Dec 24 '13 at 7:35
    
glad the answer resolved the issue, take care –  doed Dec 24 '13 at 8:46
1  
@SeanAllred I already fixed this upstream in July ;-). –  giordano Dec 24 '13 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.) –  Sean Allred Dec 24 '13 at 19:01
    
It seems GNU ELPA will use only AUCTeX stable releases. –  giordano Dec 24 '13 at 19:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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