From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 11 11:16:16 2016 Received: (at submit) by debbugs.gnu.org; 11 Oct 2016 15:16:16 +0000 Received: from localhost ([127.0.0.1]:52298 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1btymt-0004Q3-9f for submit@debbugs.gnu.org; Tue, 11 Oct 2016 11:16:16 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38510) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1btuck-0004px-UV for submit@debbugs.gnu.org; Tue, 11 Oct 2016 06:49:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1btuce-000654-HG for submit@debbugs.gnu.org; Tue, 11 Oct 2016 06:49:25 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,HTML_MESSAGE autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:57561) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btuce-00064H-DD for submit@debbugs.gnu.org; Tue, 11 Oct 2016 06:49:24 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57709) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btucb-0003UI-HM for bug-auctex@gnu.org; Tue, 11 Oct 2016 06:49:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1btucX-00060y-8k for bug-auctex@gnu.org; Tue, 11 Oct 2016 06:49:20 -0400 Received: from ndjsvnpf103.ndc.nasa.gov ([198.117.1.153]:45708) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btucW-0005zM-Rp for bug-auctex@gnu.org; Tue, 11 Oct 2016 06:49:17 -0400 Received: from ndjsppt102.ndc.nasa.gov (ndjsppt102.ndc.nasa.gov [198.117.1.196]) by ndjsvnpf103.ndc.nasa.gov (Postfix) with ESMTP id C81EF40080A6 for ; Tue, 11 Oct 2016 05:49:13 -0500 (CDT) Received: from NDJSCHT114.ndc.nasa.gov (ndjscht114-pub.ndc.nasa.gov [198.117.1.214]) by ndjsppt102.ndc.nasa.gov (8.15.0.59/8.15.0.59) with ESMTP id u9BAnDQN020378 for ; Tue, 11 Oct 2016 05:49:13 -0500 Received: from [146.165.52.203] (146.165.52.203) by smtp01.ndc.nasa.gov (198.117.1.214) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 11 Oct 2016 05:49:12 -0500 To: From: Travis Knepp Subject: AUCTeX citation color Message-ID: <26ae0c0d-e666-eea8-9c9e-643900c9a6c6@nasa.gov> Date: Tue, 11 Oct 2016 06:49:12 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------1027D0AA5596687675CF7E9C" X-Originating-IP: [146.165.52.203] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2016-10-11_07:, , signatures=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 11 Oct 2016 11:16:14 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --------------1027D0AA5596687675CF7E9C Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Coloring of citations (when using \citep, \citet, etc. as opposed to just using \cite) is not properly working. Details from the stackexchange post (http://emacs.stackexchange.com/questions/27591/auctex-citation-color) are here: When inserting a reference in a LaTeX document (using Auctex) I normally type: |\cite{joebob_2010} | where "\cite" shows up in blue font, while "joebob_2010" shows up reddish/purple. I like this coloring. However, when I use |\citep{joebob_2010} | all text shows up white. In my .emacs file I put: |(add-hook 'LaTeX-mode-hook (lambda () (font-lock-add-keywords nil '(("\\(\\\\citep\\)\\s-*{" 1 font-lock-keyword-face t))) (font-lock-add-keywords nil '(("\\(\\\\citet\\)\\s-*{" 1 font-lock-keyword-face t))) )) | This changed the color of "\citep" to blue, but the reference to "joebob_2010" remains white. Can I modify this to have the same coloring as "\cite{joebob_2010}"? -- Travis N. Knepp Lead Research Scientist SAGE-III on ISS CAPABLE Air Quality Station travis.n.knepp@ssaihq.com Mail Stop 401A, B1250, Room 149 Hampton, VA 23681-2199 757-864-5558 Science Systems and Applications, Inc. (SSAI) /Science and Technology with Passion/ 10210 Greenbelt Road, Suite 600 Lanham, MD 20706 www.ssaihq.com Please be mindful about forwarding this e-mail; it may contain confidential information that is not intended for anyone else. Thank you. --------------1027D0AA5596687675CF7E9C Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

Coloring of citations (when using \citep, \citet, etc. as opposed to just using \cite) is not properly working.=C2=A0 Detai= ls from the stackexchange post (http://emacs.stackexchan= ge.com/questions/27591/auctex-citation-color) are here:



When inserting a reference in a LaTeX document (using Auctex) I normally type:

\cite{joebob_2010}

where "\cite" shows up in blue font, while "joebob_2010" shows up reddish/purple. I like this coloring. However, when I use

\citep{joebob_2010}

all text shows up white.

In my .emacs file I put:

(add-hook 'LaTeX-mode-hook
    (lambda ()
      (font-lock-add-keywords nil   '(("\\(\\\\citep\\)\\s-*{" 1 font-loc=
k-keyword-face t)))
      (font-lock-add-keywords nil   '(("\\(\\\\citet\\)\\s-*{" 1 font-loc=
k-keyword-face t)))
      ))

This changed the color of "\citep" to blue, but the reference to "joebob_2010" remains white. Can I modify this to have the same coloring as "\cite{joebob_2010}"?






--

Travis N. Knepp

Lead Research Scientist

SAGE-III on ISS=C2=A0=C2=A0=C2=A0=C2= =A0 CAPABLE Air Quality Station

trav= is.n.knepp@ssaihq.com

Mail Stop 401A, B1250, Room 149
Hampton, VA 23681-2199

= 757-864-5558

=C2=A0

=C2=A0

Science Systems and Applications, Inc. (SSAI)

Science and Technology with Passion

10210 Greenbelt Road, Suite 600

Lanham, MD 20706

www.ssaihq.com=

=C2=A0

Please be mindful about forwarding this e-mail; it may contain confidential information that is not intended for anyone else. Thank you.

=C2=A0

=C2=A0

=C2=A0

=C2=A0

--------------1027D0AA5596687675CF7E9C-- From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 11 19:42:01 2016 Received: (at 24667) by debbugs.gnu.org; 11 Oct 2016 23:42:02 +0000 Received: from localhost ([127.0.0.1]:52566 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bu6gL-0001KJ-JU for submit@debbugs.gnu.org; Tue, 11 Oct 2016 19:42:01 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33490) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bu6gJ-0001K6-V5 for 24667@debbugs.gnu.org; Tue, 11 Oct 2016 19:42:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bu6gB-0005xs-FI for 24667@debbugs.gnu.org; Tue, 11 Oct 2016 19:41:54 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=1.0 required=5.0 tests=BAYES_50,RCVD_IN_SORBS_SPAM, RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44994) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bu6gB-0005xe-BE for 24667@debbugs.gnu.org; Tue, 11 Oct 2016 19:41:51 -0400 Received: from mail-wm0-f53.google.com ([74.125.82.53]:38356) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bu6g9-0001ZO-Qa for 24667@debbugs.gnu.org; Tue, 11 Oct 2016 19:41:50 -0400 Received: by mail-wm0-f53.google.com with SMTP id c78so15234210wme.1 for <24667@debbugs.gnu.org>; Tue, 11 Oct 2016 16:41:49 -0700 (PDT) X-Gm-Message-State: AA6/9RnggdAryd6p1h0XyWCWS67dKg9afn1fjRY006wjbnIXVvL2NVGVwhVG7l0Azjab1Po3R4ArijSS5NlhQw== X-Received: by 10.194.9.1 with SMTP id v1mr7210044wja.160.1476229308693; Tue, 11 Oct 2016 16:41:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.42.35 with HTTP; Tue, 11 Oct 2016 16:41:08 -0700 (PDT) In-Reply-To: <26ae0c0d-e666-eea8-9c9e-643900c9a6c6@nasa.gov> References: <26ae0c0d-e666-eea8-9c9e-643900c9a6c6@nasa.gov> From: =?UTF-8?Q?Mos=C3=A8_Giordano?= Date: Wed, 12 Oct 2016 01:41:08 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: bug#24667: AUCTeX citation color To: Travis Knepp Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -4.8 (----) X-Debbugs-Envelope-To: 24667 Cc: 24667@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.8 (----) Hi Travis, 2016-10-11 12:49 GMT+02:00 Travis Knepp : > Coloring of citations (when using \citep, \citet, etc. as opposed to just > using \cite) is not properly working. Details from the stackexchange pos= t > (http://emacs.stackexchange.com/questions/27591/auctex-citation-color) ar= e > here: > > > > When inserting a reference in a LaTeX document (using Auctex) I normally > type: > > \cite{joebob_2010} > > where "\cite" shows up in blue font, while "joebob_2010" shows up > reddish/purple. I like this coloring. However, when I use > > \citep{joebob_2010} > > all text shows up white. > > In my .emacs file I put: > > (add-hook 'LaTeX-mode-hook > (lambda () > (font-lock-add-keywords nil '(("\\(\\\\citep\\)\\s-*{" 1 > font-lock-keyword-face t))) > (font-lock-add-keywords nil '(("\\(\\\\citet\\)\\s-*{" 1 > font-lock-keyword-face t))) > )) > > This changed the color of "\citep" to blue, but the reference to > "joebob_2010" remains white. Can I modify this to have the same coloring = as > "\cite{joebob_2010}"? you can find the answer in the documentation ( (info "(auctex)Fontification of macros") or https://www.gnu.org/software/auctex/manual/auctex.html#Fontification-of-mac= ros): Highlighting of macros can be customized by adapting keyword lists which can be found in the customization group `font-latex-keywords'. Thus, you have to issue M-x customize-group RET font-latex-keywords RET and then add to the "Font Latex Match Reference Keywords" variable the new entry with "citep" (without quotes) as "keyword" field and "*[[{" (without quotes) as "format" field. If you want instead to write some Elisp, you can put this --8<---------------cut here---------------start------------->8--- (font-latex-add-keywords '(("citep" "*[[{")) 'reference) --8<---------------cut here---------------end--------------->8--- inside the hook. Out of curiosity, do you use natbib or jurabib packages? If you have parsing enabled, you should automatically get fontification of citep macro. Bye, Mos=C3=A8 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 13 09:22:31 2016 Received: (at 24667) by debbugs.gnu.org; 13 Oct 2016 13:22:31 +0000 Received: from localhost ([127.0.0.1]:53788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bufxv-00041y-Bi for submit@debbugs.gnu.org; Thu, 13 Oct 2016 09:22:31 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52593) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bufxs-00041d-Tg for 24667@debbugs.gnu.org; Thu, 13 Oct 2016 09:22:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bufxk-00089a-M8 for 24667@debbugs.gnu.org; Thu, 13 Oct 2016 09:22:23 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.9 required=5.0 tests=BAYES_50,RCVD_IN_SORBS_SPAM, RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48710) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bufxk-00088y-IS for 24667@debbugs.gnu.org; Thu, 13 Oct 2016 09:22:20 -0400 Received: from mail-qk0-f181.google.com ([209.85.220.181]:35806) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bufxi-0007ZP-Kg for 24667@debbugs.gnu.org; Thu, 13 Oct 2016 09:22:18 -0400 Received: by mail-qk0-f181.google.com with SMTP id z190so89623979qkc.2 for <24667@debbugs.gnu.org>; Thu, 13 Oct 2016 06:22:18 -0700 (PDT) X-Gm-Message-State: AA6/9Rnl/V4ZZEXeVeeXrrgxjTfeRIqI01BHF2p2PbNNij6RbDo14XP70sfZvPg72bcWzDd53gsvycspy0FfKg== X-Received: by 10.194.17.197 with SMTP id q5mr7058108wjd.115.1476364938103; Thu, 13 Oct 2016 06:22:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.42.35 with HTTP; Thu, 13 Oct 2016 06:21:37 -0700 (PDT) In-Reply-To: <40dbfd55-d1cb-6450-1554-bad6dd0046b7@nasa.gov> References: <26ae0c0d-e666-eea8-9c9e-643900c9a6c6@nasa.gov> <40dbfd55-d1cb-6450-1554-bad6dd0046b7@nasa.gov> From: =?UTF-8?Q?Mos=C3=A8_Giordano?= Date: Thu, 13 Oct 2016 15:21:37 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: bug#24667: AUCTeX citation color To: Travis Knepp , 24667@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -4.9 (----) X-Debbugs-Envelope-To: 24667 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.9 (----) close 24667 tags 24667 notabug thanks Hi Travis, 2016-10-13 15:15 GMT+02:00 Travis Knepp : > Mose, > > Thank you for your help. This seems to have solved the issue. Sorry > for the "bug" false alarm. I will post your solution to the stack exchan= ge. You're welcome. Thanks for the feedback, I'm closing this ticket. Bye, Mos=C3=A8 PS: Please, remember to use "Reply all" button when you reply to a mailing list message, so that everyone will be able to read it ;-) In this case, it may be useful for other people to know that the proposed solution did work. From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 15 08:54:27 2016 Received: (at 24667) by debbugs.gnu.org; 15 Oct 2016 12:54:28 +0000 Received: from localhost ([127.0.0.1]:59299 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bvOTr-0007E9-IQ for submit@debbugs.gnu.org; Sat, 15 Oct 2016 08:54:27 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:34613) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bvOTo-0007Dt-Uf for 24667@debbugs.gnu.org; Sat, 15 Oct 2016 08:54:25 -0400 Received: by mail-wm0-f66.google.com with SMTP id z189so2428178wmb.1 for <24667@debbugs.gnu.org>; Sat, 15 Oct 2016 05:54:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=JY+iOePVtkhItnsdkImDI9qimZ5fahnZw8NuoQCrOv4=; b=uiZegNSPfC9G0RDQoJbBh6R78OINRGpHaS62+unAZtBz+PZfdcV95nwLO8W5vEuwQG hdc5VOmUdNZjZl1ncRdNIJXiha9qdP0kkZsr3IeD5nIfZ1LRunKRfQpk6yDtmOYBvoAw /mqscXQn2gQt0FI/9UOuZUkww4A8FxJe7RUceQi5hKmGd+JloieiyHruzRPydT4OyMBX Z5qZ/CLvkyDHkAXMHGlQVTV/N5QMAZaL3ASMky3K3ex5hry0I5kAeutAIsa6jh5luzgo XX5yZoAZp9Rv/pfCnicl+3D2hAtLU1LMxHabUvSUJ10cPleooQS/9x4yjElpccE0eHEz 0J5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=JY+iOePVtkhItnsdkImDI9qimZ5fahnZw8NuoQCrOv4=; b=MuBK5DE9/E1pkgqtISYkYx+GeT8XyLIhRWXrI9xPAbPnyFYGQIlxYCNJ3i9ar3L78l hUYYbLfVCcxDAmzwwf3d5eMn1XRB1lXMWGrE0GNhyTYm4jb7Suh/TLujPKQxA0SKDjR3 qynbEnyjm7zQ+mVNPqbNke3eeoE1krxcseJ0XRyV4aqnAUdINsUkz77g+zWQwQVhDe5B NVrbUcXKdKSgm3xeoxGCe5Lz5rAHaP0eBBRbpfO2NvHf/CEd/r1RYJu3ocCttXB+eDBH YM715yxAXS8uuVvtx+qDoC16J7u9HEow8NeisB2tb12Lf+lnHff3+WafUqOKgfmccHee 4LbA== X-Gm-Message-State: AA6/9RnqVHYg1ShdtV8PkdRDMgxCMRoGG2Qk/8Y2ap5ZCNVFN09Dtm+v7Tcj33Fll3qUcg== X-Received: by 10.194.129.137 with SMTP id nw9mr6555963wjb.13.1476536059131; Sat, 15 Oct 2016 05:54:19 -0700 (PDT) Received: from MUTANT (p4FED1EE8.dip0.t-ipconnect.de. [79.237.30.232]) by smtp.gmail.com with ESMTPSA id yo1sm36873424wjc.16.2016.10.15.05.54.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 15 Oct 2016 05:54:18 -0700 (PDT) Received: from MUTANT [127.0.0.1] by MUTANT (192.168.178.97) with ESMTP (Classic Hamster Version 2.1 Build 2.1.0.1539) ; Sat, 15 Oct 2016 14:53:35 +0200 From: Arash Esbati To: =?iso-8859-1?Q?Mos=E8?= Giordano Subject: Re: bug#24667: AUCTeX citation color References: <26ae0c0d-e666-eea8-9c9e-643900c9a6c6@nasa.gov> Date: Sat, 15 Oct 2016 14:53:34 +0200 In-Reply-To: (=?iso-8859-1?Q?=22Mos=E8?= Giordano"'s message of "Wed, 12 Oct 2016 01:41:08 +0200") Message-ID: <86pon13h9t.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Posting-Agent: Hamster/2.1.0.1539 X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 24667 Cc: Travis Knepp , 24667@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) Hi Mos=E8, Mos=E8 Giordano writes: > 2016-10-11 12:49 GMT+02:00 Travis Knepp : >> Coloring of citations (when using \citep, \citet, etc. as opposed to just >> using \cite) is not properly working. Details from the stackexchange po= st >> (http://emacs.stackexchange.com/questions/27591/auctex-citation-color) a= re >> here: >> >> When inserting a reference in a LaTeX document (using Auctex) I normally >> type: >> >> \cite{joebob_2010} >> >> where "\cite" shows up in blue font, while "joebob_2010" shows up >> reddish/purple. I like this coloring. However, when I use >> >> \citep{joebob_2010} >> >> all text shows up white. [...] > If you want instead to write some Elisp, you can put this > > (font-latex-add-keywords > '(("citep" "*[[{")) > 'reference) > > inside the hook. > > Out of curiosity, do you use natbib or jurabib packages? First of all, sorry for my late response. Travis uses biblatex. And while we're at it: Travis, how do insert this macro? Do you type \citep{} or do you hit `C-c m RET citep RET' or use Reftex? I'm asking since you're asking for the fontification; I think the completion support (see below) is much more needed. > If you have parsing enabled, you should automatically get > fontification of citep macro. That was also was my first answer, but then I realized that biblatex.el doesn't have support for natbib compat macros (cf. biblatex manual, =A73.8.9 natbib Compatibility Commands). I asked Travis to file this bug report (thanks btw), I think the appended patch fixes the issue. It is mostly taken from natbib.el, function `LaTeX-biblatex-natbib-note-args' is a modified version of `natbib-note-args' and I think that `(when TeX-arg-cite-note-p' is not really needed, but I didn't touch it since it doesn't hurt either. --8<---------------cut here---------------start------------->8--- diff --git a/style/biblatex.el b/style/biblatex.el index 06cd57a..f0e235d 100644 --- a/style/biblatex.el +++ b/style/biblatex.el @@ -216,6 +216,32 @@ for citation keys." (TeX-argument-insert (mapconcat 'identity items ",") optional)) (setq noinsert t)))) =20 +(defun LaTeX-biblatex-natbib-note-args (optional) + "Prompt for two note arguments of a natbib compat citation command." + (when TeX-arg-cite-note-p + (let ((pre (TeX-read-string + (TeX-argument-prompt optional nil "Prenote"))) + (post (TeX-read-string + (TeX-argument-prompt optional nil "Postnote")))) + (cond + (;; Both optional args are given + (and pre (not (string=3D pre "")) + post (not (string=3D post ""))) + (insert LaTeX-optop pre LaTeX-optcl + LaTeX-optop post LaTeX-optcl)) + (;; pre is given, post is empty: Make sure that we insert an + ;; extra pair of `[]', otherwise pre becomes post + (and pre (not (string=3D pre "")) + (string=3D post "")) + (insert LaTeX-optop pre LaTeX-optcl + LaTeX-optop LaTeX-optcl)) + (;; pre is empty, post is given + (and (string=3D pre "") + post (not (string=3D post ""))) + (insert LaTeX-optop post LaTeX-optcl)) + (;; both empty + t (ignore)))))) + (TeX-add-style-hook "biblatex" (lambda () @@ -456,6 +482,53 @@ for citation keys." '("DefineHyphenationExceptions" (TeX-arg-eval completing-read "Language: " LaTeX-biblatex-language-l= ist) t) "NewBibliographyString") + + ;; =A7 3.8.9 natbib Compatibility Commands + (when (or (LaTeX-provided-package-options-member "biblatex" "natbib") + (LaTeX-provided-package-options-member "biblatex" "natbib=3Dtrue")) + (let ((cmds '(("citet" . 1) ("citet*" . 1) + ("Citet" . 1) ("Citet*" . 1) + ("citep" . 2) ("citep*" . 2) + ("Citep" . 2) ("Citep*" . 2) + ("citealt" . 1) ("citealt*" . 1) + ("Citealt" . 1) ("Citealt*" . 1) + ("citealp" . 2) ("citealp*" . 2) + ("Citealp" . 2) ("Citealp*" . 2)))) + ;; Taken from natbib.el: + (apply + #'TeX-add-symbols + (mapcar + (lambda (cmd) + (cond + ((=3D (cdr cmd) 1) + ;; Just one optional argument, the post note + (list + (car cmd) + '(TeX-arg-conditional TeX-arg-cite-note-p (["Postnote"]) nil) + 'TeX-arg-cite)) + ((=3D (cdr cmd) 2) + ;; Pre and post notes + (list + (car cmd) + '(TeX-arg-conditional TeX-arg-cite-note-p + ([LaTeX-biblatex-natbib-note-args]) + nil) + 'TeX-arg-cite)))) + cmds)) + + ;; Fontification for compat macros do not go into `font-latex.el': + (when (and (featurep 'font-latex) + (eq TeX-install-font-lock 'font-latex-setup)) + (font-latex-add-keywords '(("citet" "*[{") + ("Citet" "*[{") + ("citep" "*[[{") + ("Citep" "*[[{") + ("citealt" "*[{") + ("Citealt" "*[{") + ("citealp" "*[[{") + ("Citealp" "*[[{")) + 'biblatex)))) + (LaTeX-add-environments ;;; Bibliography commands ;; Bibliography Sections --8<---------------cut here---------------end--------------->8--- Here also a small file I tested with: --8<---------------cut here---------------start------------->8--- \documentclass{article} \begin{filecontents}{biblatex-test.bib} @book{lamp:94, author =3D {Leslie Lamport}, title =3D {LaTeX - {A} Document Preparation System: User's Guide and Reference Manual, Second Edition}, publisher =3D {Pearson / Prentice Hall}, year =3D {1994}, isbn =3D {978-0-201-52983-8}, timestamp =3D {Fri, 08 Apr 2011 18:21:00 +0200}, } @book{mitt:97, author =3D {Michel Goossens and Sebastian Rahtz and Frank Mittelbach}, title =3D {The LaTeX Graphics Companion - Illustrating documents with TeX and PostScript}, series =3D {Addison-Wesley series on tools and techniques for computer typesetting}, publisher =3D {Addison-Wesley}, year =3D {1997}, isbn =3D {978-0-201-85469-5}, } \end{filecontents} \usepackage[natbib,backend=3Dbibtex,style=3Dauthoryear]{biblatex} \bibliography{biblatex-test} \begin{document} \noindent \textbf{Textual}:\\ \citet{lamp:94}, \\ \citet[which see]{lamp:94},\\ \citet*{mitt:97}, \\ \citealt{mitt:97,lamp:94}, \\ \Citealt{mitt:97,lamp:94} \noindent \textbf{Parenthesis}:\\ \citep{mitt:97}, \\ \citep[see][Page~5]{mitt:97}, \\ \citep*{mitt:97}, \\ \citealp{mitt:97}, \\ \Citealp{mitt:97}, \\ \citealp*{mitt:97}, \\ \Citealp*{mitt:97} \end{document} --8<---------------cut here---------------end--------------->8--- Best, Arash From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 15 12:02:05 2016 Received: (at 24667) by debbugs.gnu.org; 15 Oct 2016 16:02:05 +0000 Received: from localhost ([127.0.0.1]:60389 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bvRPR-0003hV-9n for submit@debbugs.gnu.org; Sat, 15 Oct 2016 12:02:05 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46661) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bvRPP-0003h1-En for 24667@debbugs.gnu.org; Sat, 15 Oct 2016 12:02:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bvRPH-0005bA-1c for 24667@debbugs.gnu.org; Sat, 15 Oct 2016 12:01:58 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47403) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bvRPG-0005a2-VC for 24667@debbugs.gnu.org; Sat, 15 Oct 2016 12:01:54 -0400 Received: from mail-wm0-f49.google.com ([74.125.82.49]:35435) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bvRPF-0002Eg-DA for 24667@debbugs.gnu.org; Sat, 15 Oct 2016 12:01:53 -0400 Received: by mail-wm0-f49.google.com with SMTP id c78so34825519wme.0 for <24667@debbugs.gnu.org>; Sat, 15 Oct 2016 09:01:53 -0700 (PDT) X-Gm-Message-State: AA6/9Rne7Ae4i8zJ+HQ0FFSV4Eu2aoH3eefbFeJeAy2LEWNCUGWwHzSkHrmk1PVcYm/cRNOqRV7lQoeptiTVHw== X-Received: by 10.28.169.151 with SMTP id s145mr2623265wme.40.1476547312230; Sat, 15 Oct 2016 09:01:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.42.35 with HTTP; Sat, 15 Oct 2016 09:01:11 -0700 (PDT) In-Reply-To: <86pon13h9t.fsf@gmail.com> References: <26ae0c0d-e666-eea8-9c9e-643900c9a6c6@nasa.gov> <86pon13h9t.fsf@gmail.com> From: =?UTF-8?Q?Mos=C3=A8_Giordano?= Date: Sat, 15 Oct 2016 18:01:11 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: bug#24667: AUCTeX citation color To: Arash Esbati Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.4 (-----) X-Debbugs-Envelope-To: 24667 Cc: Travis Knepp , 24667@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.4 (-----) Hi Arash, 2016-10-15 14:53 GMT+02:00 Arash Esbati : > That was also was my first answer, but then I realized that biblatex.el > doesn't have support for natbib compat macros (cf. biblatex manual, > =C2=A73.8.9 natbib Compatibility Commands). I asked Travis to file this = bug > report (thanks btw), I think the appended patch fixes the issue. It is > mostly taken from natbib.el, function `LaTeX-biblatex-natbib-note-args' > is a modified version of `natbib-note-args' and I think that `(when > TeX-arg-cite-note-p' is not really needed, but I didn't touch it since > it doesn't hurt either. Why copying most of natbib.el instead of running the corresponding hook? If the problem is the function to run, you can define and use in natbib.el a local variable holding the name of the function. In biblatex.el that variable would be set to `LaTeX-biblatex-natbib-note-args'. Bye, Mos=C3=A8 From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 16 06:07:09 2016 Received: (at 24667) by debbugs.gnu.org; 16 Oct 2016 10:07:09 +0000 Received: from localhost ([127.0.0.1]:33631 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bviLV-0000v5-8f for submit@debbugs.gnu.org; Sun, 16 Oct 2016 06:07:09 -0400 Received: from mail-wm0-f42.google.com ([74.125.82.42]:37601) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bviLS-0000uh-Tt for 24667@debbugs.gnu.org; Sun, 16 Oct 2016 06:07:07 -0400 Received: by mail-wm0-f42.google.com with SMTP id c78so57124603wme.0 for <24667@debbugs.gnu.org>; Sun, 16 Oct 2016 03:07:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=akNjeTT1qDWz0cjtCXxZWppIzna//5+HGJMCmpEvZ10=; b=NsIKLSPM01ePew83knl8yEbwkrNNxbqopD05iSOUGPlX/dXv3fcDQHVjwe6/W0jZzg C0Ve1nhjG6z3wVB4lEi+9LW34E7uqI5MtLd9fLI5qbn82SXC15v2/fNvcC8mIT1FRscl kAEO4wcRSV8rWYEXVasP5zAZ/I1B0bOOA22H4GjnNraEnpT2guK4cOMHDe2J/4cxLkzK wf2MGCEG7RCxjWcOlPqC27EbU+pgLYe2col9RiRILociY/U7yL6DhtorFV2x57XMcsNe h+oSLn2rG/VG7epgnnk7TDBoQTYU8EKpU9S50Sl5dwB+lJTjPY+frcAP0tE7/OXiVxbS hq2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=akNjeTT1qDWz0cjtCXxZWppIzna//5+HGJMCmpEvZ10=; b=SSe75b9C8toBEaj5Etu/dCLoeTStM43FV/KEecSL6jsP7uKAN206hk0nothwArjP8/ nyLpZUQdeD3LgKrpqKZUM+ytZc9fQCVuypJbnxrxQfE+h7oHTqEczYHKO8iH1Zmf78az 38qISencosfISupYb2AEBoDSLpbhfVbbVeXOp/dVzE2Jwgzbr5ONzHCk9BiIUKJ8OrY4 b997+Yx4Aiuuhg0vzuS3096yS6eNvBhU7R4zZ9c5YpkzzqliVmJVcW8uqPfNlm81jrJQ Z0Z/KzvBo94Fh/RzgflJAgwe5Z2F8d6EoIF8sixYq5ZO8jOsRJOJRnXARWU6dCBfKZGK fp5Q== X-Gm-Message-State: AA6/9RnGd33qYFxCqSHHxeUa/JQfXWCWq0Cjb1+RFiI2i9qOfLbK5rbLCpxi+2p076bBeQ== X-Received: by 10.194.89.104 with SMTP id bn8mr7891277wjb.132.1476612421310; Sun, 16 Oct 2016 03:07:01 -0700 (PDT) Received: from MUTANT (p54ACED25.dip0.t-ipconnect.de. [84.172.237.37]) by smtp.gmail.com with ESMTPSA id u189sm7636426wmd.7.2016.10.16.03.07.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 16 Oct 2016 03:07:00 -0700 (PDT) Received: from MUTANT [127.0.0.1] by MUTANT (192.168.178.97) with ESMTP (Classic Hamster Version 2.1 Build 2.1.0.1539) ; Sun, 16 Oct 2016 12:03:28 +0200 From: Arash Esbati To: =?iso-8859-1?Q?Mos=E8?= Giordano Subject: Re: bug#24667: AUCTeX citation color References: <26ae0c0d-e666-eea8-9c9e-643900c9a6c6@nasa.gov> <86pon13h9t.fsf@gmail.com> Date: Sun, 16 Oct 2016 12:03:28 +0200 In-Reply-To: (=?iso-8859-1?Q?=22Mos=E8?= Giordano"'s message of "Sat, 15 Oct 2016 18:01:11 +0200") Message-ID: <86vawsbogf.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Posting-Agent: Hamster/2.1.0.1539 X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 24667 Cc: Travis Knepp , 24667@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) Hi Mos=E8, Mos=E8 Giordano writes: > 2016-10-15 14:53 GMT+02:00 Arash Esbati : >> That was also was my first answer, but then I realized that biblatex.el >> doesn't have support for natbib compat macros (cf. biblatex manual, >> =A73.8.9 natbib Compatibility Commands). I asked Travis to file this bug >> report (thanks btw), I think the appended patch fixes the issue. It is >> mostly taken from natbib.el, function `LaTeX-biblatex-natbib-note-args' >> is a modified version of `natbib-note-args' and I think that `(when >> TeX-arg-cite-note-p' is not really needed, but I didn't touch it since >> it doesn't hurt either. > > Why copying most of natbib.el instead of running the corresponding > hook? I considered that, but dropped the idea because of various reasons: natbib does not have uppercase version of the commands (e.g. \Citep), I had to include them in biblatex.el anyway. Other commands like \citeauthor are already in biblatex.el and I didn't want to go for a possible clash. As a personal note, I'm not really happy with the function `natbib-note-args' which inserts a pair of brackets when pre and post notes are omitted: --8<---------------cut here---------------start------------->8--- \documentclass{article} \begin{filecontents}{natbib-test.bib} @book{lamp:94, author =3D {Leslie Lamport}, title =3D {LaTeX - {A} Document Preparation System: User's Guide and Reference Manual, Second Edition}, publisher =3D {Pearson / Prentice Hall}, year =3D {1994}, isbn =3D {978-0-201-52983-8}, timestamp =3D {Fri, 08 Apr 2011 18:21:00 +0200}, } \end{filecontents} \usepackage{natbib} \bibliography{natbib-test} \begin{document} Eval (setq TeX-arg-cite-note-p t) Hitting `C-c C-m RET citep RET RET lamp RET RET' inserts \citep[]{lamp:94}. % ^^ \end{document} --8<---------------cut here---------------end--------------->8--- And finally, I was reluctant to load a style where the respective package is marked "incompatible". I don't have a strong opinion on this. We can proceed with whatever you think fits better. Best, Arash From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 16 09:08:25 2016 Received: (at 24667) by debbugs.gnu.org; 16 Oct 2016 13:08:25 +0000 Received: from localhost ([127.0.0.1]:34089 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bvlAv-0006sq-0b for submit@debbugs.gnu.org; Sun, 16 Oct 2016 09:08:25 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58070) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bvlAt-0006se-4s for 24667@debbugs.gnu.org; Sun, 16 Oct 2016 09:08:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bvlAi-0004PD-QD for 24667@debbugs.gnu.org; Sun, 16 Oct 2016 09:08:17 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58145) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bvlAi-0004P7-NG for 24667@debbugs.gnu.org; Sun, 16 Oct 2016 09:08:12 -0400 Received: from mail-lf0-f50.google.com ([209.85.215.50]:32933) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bvlAi-0000lu-Ai for 24667@debbugs.gnu.org; Sun, 16 Oct 2016 09:08:12 -0400 Received: by mail-lf0-f50.google.com with SMTP id x79so239001161lff.0 for <24667@debbugs.gnu.org>; Sun, 16 Oct 2016 06:08:12 -0700 (PDT) X-Gm-Message-State: AA6/9RlS9GAox7oKm9Guif7HCrc358DlJUTlvjDf2CsvDHCnru7M4jEqnRK7hc1AjVZ3hbbyb7LJe454vgVN6Q== X-Received: by 10.28.140.69 with SMTP id o66mr5650745wmd.40.1476623289732; Sun, 16 Oct 2016 06:08:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.42.35 with HTTP; Sun, 16 Oct 2016 06:07:29 -0700 (PDT) In-Reply-To: <86vawsbogf.fsf@gmail.com> References: <26ae0c0d-e666-eea8-9c9e-643900c9a6c6@nasa.gov> <86pon13h9t.fsf@gmail.com> <86vawsbogf.fsf@gmail.com> From: =?UTF-8?Q?Mos=C3=A8_Giordano?= Date: Sun, 16 Oct 2016 15:07:29 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: bug#24667: AUCTeX citation color To: Arash Esbati Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.3 (-----) X-Debbugs-Envelope-To: 24667 Cc: Travis Knepp , 24667@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.3 (-----) Hi Arash, 2016-10-16 12:03 GMT+02:00 Arash Esbati : > I considered that, but dropped the idea because of various reasons: > natbib does not have uppercase version of the commands (e.g. \Citep), I > had to include them in biblatex.el anyway. Other commands like > \citeauthor are already in biblatex.el and I didn't want to go for a > possible clash. Good points. > As a personal note, I'm not really happy with the > function `natbib-note-args' which inserts a pair of brackets when pre > and post notes are omitted: By the way, `natbib-note-args' is a pretty old function, but doesn't follow the standard naming adopted within AUCTeX nowadays. If you're going to touch it, please rename it. > And finally, I was reluctant to load a style where the respective > package is marked "incompatible". I don't agree on this. The LaTeX packages are incompatible, but AUCTeX only cares about the user interfaces they provide: if the macros provided by the natbib package and the natbib compatibility layer bundled in biblatex were exactly equal, I'd see no reason why we couldn't load natbib hook within biblatex. However, you explained that this is not the case, so I think you can apply the patch you suggested yesterday. Bye, Mos=C3=A8 From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 16 15:55:29 2016 Received: (at 24667) by debbugs.gnu.org; 16 Oct 2016 19:55:29 +0000 Received: from localhost ([127.0.0.1]:35557 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bvrWr-00036G-6s for submit@debbugs.gnu.org; Sun, 16 Oct 2016 15:55:29 -0400 Received: from mail-lf0-f42.google.com ([209.85.215.42]:33453) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bvrWp-000362-JV for 24667@debbugs.gnu.org; Sun, 16 Oct 2016 15:55:27 -0400 Received: by mail-lf0-f42.google.com with SMTP id x79so254849578lff.0 for <24667@debbugs.gnu.org>; Sun, 16 Oct 2016 12:55:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=w4DoilWOQXhlTRI8TdM00cex888NO6HW5C76bo4bfw4=; b=09xiILggSEWs9+3/AWmP+DecBu46cFt3ypVzsMbenktDimtX0g0sCdGOOrkg5GhnRv Fju5RTqjvTDsAjccMNrQJmN0WZXWHHzfQ4FW71cXAETy4gc5OGtv4R38PUumJHg259rv cV4P0zRjoLI7vyeIC4+9XRbHuOaqa3EiSP9hybx083CYqNACUI56xWnpEny7UDjkXaa4 QGSiW/eG7AGL+PBgk+Sz8iaHCpxf/zVSbGdzCCX7usQpe7E3KQjH/imfH7PoI/JSTdJk hv23uf3HRVqlYOnF/9WGPTUGwYguyOTG/NsGtlNo2aqiwDH8eUEg3GU0a85XXwPLS+ih 0JSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=w4DoilWOQXhlTRI8TdM00cex888NO6HW5C76bo4bfw4=; b=HsGdT09wR6feovS5Iga+tMJ/Xn8ijhnyowJ7MO+nkL8KS5aefso1PSGHSoXPl0LENU aiDkb7z3nvq3p39FefB6U3QOd+mJz1pbKfKZVB9KrUVl1/u/cxTkE9JDMUBy0oecorLS B42Z+HR+T1dvPPnGYcQA9wMJYW04iOfMMtoEWlxB5G0djF51TvbYS4uXlXzs4KFMWPUZ QpcqI8VRSNaNs3v/DsABE0nZvqToT4tFQMilxbp1szssyhbVhJXSUPzya0Rv6lKn6K8s xYP21UXBpHUy2zYUovE4l+WF937PtpU6Z3WOA/mkGcudkCFnP/mKXSUS7xbptoqCn/u4 +2xw== X-Gm-Message-State: AA6/9Rm8sGUs8dhJczPLWPzzwB4kktJ5AeTfAsE1mSH6R7G1gCxYo+0WEkodK35t1dyV2Q== X-Received: by 10.194.35.170 with SMTP id i10mr10916425wjj.232.1476647721649; Sun, 16 Oct 2016 12:55:21 -0700 (PDT) Received: from MUTANT (p54ACED25.dip0.t-ipconnect.de. [84.172.237.37]) by smtp.gmail.com with ESMTPSA id qo8sm45624433wjc.46.2016.10.16.12.55.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 16 Oct 2016 12:55:21 -0700 (PDT) Received: from MUTANT [127.0.0.1] by MUTANT (192.168.178.97) with ESMTP (Classic Hamster Version 2.1 Build 2.1.0.1539) ; Sun, 16 Oct 2016 21:54:28 +0200 From: Arash Esbati To: =?iso-8859-1?Q?Mos=E8?= Giordano Subject: Re: bug#24667: AUCTeX citation color References: <26ae0c0d-e666-eea8-9c9e-643900c9a6c6@nasa.gov> <86pon13h9t.fsf@gmail.com> <86vawsbogf.fsf@gmail.com> Date: Sun, 16 Oct 2016 21:54:28 +0200 In-Reply-To: (=?iso-8859-1?Q?=22Mos=E8?= Giordano"'s message of "Sun, 16 Oct 2016 15:07:29 +0200") Message-ID: <86d1j0gjd7.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Posting-Agent: Hamster/2.1.0.1539 X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 24667 Cc: Travis Knepp , 24667@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) Hi Mos=E8, Mos=E8 Giordano writes: > 2016-10-16 12:03 GMT+02:00 Arash Esbati : >> >> As a personal note, I'm not really happy with the >> function `natbib-note-args' which inserts a pair of brackets when pre >> and post notes are omitted: > > By the way, `natbib-note-args' is a pretty old function, but doesn't > follow the standard naming adopted within AUCTeX nowadays. If you're > going to touch it, please rename it. I can rename and fix the behaviour of `natbib-note-args', I presume that I am not the only person who dislikes the addition of those brackets. > However, you explained that this is not the case, so I think you can > apply the patch you suggested yesterday. Done. I missed to mention bug#24667 in the ChangeLog entry, but not a big deal I think since the bug was already closed ;-) Again, thanks for your comments. Best, Arash From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 17 08:26:17 2016 Received: (at 24667) by debbugs.gnu.org; 17 Oct 2016 12:26:17 +0000 Received: from localhost ([127.0.0.1]:36157 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bw6zb-0007wp-Qk for submit@debbugs.gnu.org; Mon, 17 Oct 2016 08:26:17 -0400 Received: from ndjsvnpf103.ndc.nasa.gov ([198.117.1.153]:57568) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bw6zY-0007we-Hj for 24667@debbugs.gnu.org; Mon, 17 Oct 2016 08:26:10 -0400 Received: from ndjsppt102.ndc.nasa.gov (ndjsppt102.ndc.nasa.gov [198.117.1.196]) by ndjsvnpf103.ndc.nasa.gov (Postfix) with ESMTP id 3F0A340099EC; Mon, 17 Oct 2016 07:26:07 -0500 (CDT) Received: from NDJSCHT108.ndc.nasa.gov (ndjscht108-pub.ndc.nasa.gov [198.117.1.208]) by ndjsppt102.ndc.nasa.gov (8.15.0.59/8.15.0.59) with ESMTP id u9HCQ65S011151; Mon, 17 Oct 2016 07:26:06 -0500 Received: from [146.165.52.203] (146.165.52.203) by smtp01.ndc.nasa.gov (198.117.1.208) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 17 Oct 2016 07:26:37 -0500 Subject: Re: bug#24667: AUCTeX citation color To: Arash Esbati , =?UTF-8?Q?Mos=c3=a8_Giordano?= References: <26ae0c0d-e666-eea8-9c9e-643900c9a6c6@nasa.gov> <86pon13h9t.fsf@gmail.com> From: Travis Knepp Message-ID: <6072b16d-f463-baad-fbb6-ffc64dd97f94@nasa.gov> Date: Mon, 17 Oct 2016 08:26:05 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <86pon13h9t.fsf@gmail.com> Content-Type: multipart/alternative; boundary="------------388092DF0611DB75FC385BEB" X-Originating-IP: [146.165.52.203] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2016-10-17_05:, , signatures=0 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 24667 Cc: 24667@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) --------------388092DF0611DB75FC385BEB Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 8bit Arash, I use Reftex and apply the hook in my .emacs file. I insert references via C-c [ and change the \cite to \citep or \citet as needed. Travis On 10/15/2016 08:53 AM, Arash Esbati wrote: > Hi Mosč, > > Mosč Giordano writes: > >> 2016-10-11 12:49 GMT+02:00 Travis Knepp : >>> Coloring of citations (when using \citep, \citet, etc. as opposed to just >>> using \cite) is not properly working. Details from the stackexchange post >>> (http://emacs.stackexchange.com/questions/27591/auctex-citation-color) are >>> here: >>> >>> When inserting a reference in a LaTeX document (using Auctex) I normally >>> type: >>> >>> \cite{joebob_2010} >>> >>> where "\cite" shows up in blue font, while "joebob_2010" shows up >>> reddish/purple. I like this coloring. However, when I use >>> >>> \citep{joebob_2010} >>> >>> all text shows up white. > [...] > >> If you want instead to write some Elisp, you can put this >> >> (font-latex-add-keywords >> '(("citep" "*[[{")) >> 'reference) >> >> inside the hook. >> >> Out of curiosity, do you use natbib or jurabib packages? > First of all, sorry for my late response. Travis uses biblatex. And > while we're at it: Travis, how do insert this macro? Do you type > \citep{} or do you hit `C-c m RET citep RET' or use Reftex? I'm > asking since you're asking for the fontification; I think the completion > support (see below) is much more needed. > >> If you have parsing enabled, you should automatically get >> fontification of citep macro. > That was also was my first answer, but then I realized that biblatex.el > doesn't have support for natbib compat macros (cf. biblatex manual, > §3.8.9 natbib Compatibility Commands). I asked Travis to file this bug > report (thanks btw), I think the appended patch fixes the issue. It is > mostly taken from natbib.el, function `LaTeX-biblatex-natbib-note-args' > is a modified version of `natbib-note-args' and I think that `(when > TeX-arg-cite-note-p' is not really needed, but I didn't touch it since > it doesn't hurt either. > > --8<---------------cut here---------------start------------->8--- > diff --git a/style/biblatex.el b/style/biblatex.el > index 06cd57a..f0e235d 100644 > --- a/style/biblatex.el > +++ b/style/biblatex.el > @@ -216,6 +216,32 @@ for citation keys." > (TeX-argument-insert (mapconcat 'identity items ",") optional)) > (setq noinsert t)))) > > +(defun LaTeX-biblatex-natbib-note-args (optional) > + "Prompt for two note arguments of a natbib compat citation command." > + (when TeX-arg-cite-note-p > + (let ((pre (TeX-read-string > + (TeX-argument-prompt optional nil "Prenote"))) > + (post (TeX-read-string > + (TeX-argument-prompt optional nil "Postnote")))) > + (cond > + (;; Both optional args are given > + (and pre (not (string= pre "")) > + post (not (string= post ""))) > + (insert LaTeX-optop pre LaTeX-optcl > + LaTeX-optop post LaTeX-optcl)) > + (;; pre is given, post is empty: Make sure that we insert an > + ;; extra pair of `[]', otherwise pre becomes post > + (and pre (not (string= pre "")) > + (string= post "")) > + (insert LaTeX-optop pre LaTeX-optcl > + LaTeX-optop LaTeX-optcl)) > + (;; pre is empty, post is given > + (and (string= pre "") > + post (not (string= post ""))) > + (insert LaTeX-optop post LaTeX-optcl)) > + (;; both empty > + t (ignore)))))) > + > (TeX-add-style-hook > "biblatex" > (lambda () > @@ -456,6 +482,53 @@ for citation keys." > '("DefineHyphenationExceptions" > (TeX-arg-eval completing-read "Language: " LaTeX-biblatex-language-list) t) > "NewBibliographyString") > + > + ;; § 3.8.9 natbib Compatibility Commands > + (when (or (LaTeX-provided-package-options-member "biblatex" "natbib") > + (LaTeX-provided-package-options-member "biblatex" "natbib=true")) > + (let ((cmds '(("citet" . 1) ("citet*" . 1) > + ("Citet" . 1) ("Citet*" . 1) > + ("citep" . 2) ("citep*" . 2) > + ("Citep" . 2) ("Citep*" . 2) > + ("citealt" . 1) ("citealt*" . 1) > + ("Citealt" . 1) ("Citealt*" . 1) > + ("citealp" . 2) ("citealp*" . 2) > + ("Citealp" . 2) ("Citealp*" . 2)))) > + ;; Taken from natbib.el: > + (apply > + #'TeX-add-symbols > + (mapcar > + (lambda (cmd) > + (cond > + ((= (cdr cmd) 1) > + ;; Just one optional argument, the post note > + (list > + (car cmd) > + '(TeX-arg-conditional TeX-arg-cite-note-p (["Postnote"]) nil) > + 'TeX-arg-cite)) > + ((= (cdr cmd) 2) > + ;; Pre and post notes > + (list > + (car cmd) > + '(TeX-arg-conditional TeX-arg-cite-note-p > + ([LaTeX-biblatex-natbib-note-args]) > + nil) > + 'TeX-arg-cite)))) > + cmds)) > + > + ;; Fontification for compat macros do not go into `font-latex.el': > + (when (and (featurep 'font-latex) > + (eq TeX-install-font-lock 'font-latex-setup)) > + (font-latex-add-keywords '(("citet" "*[{") > + ("Citet" "*[{") > + ("citep" "*[[{") > + ("Citep" "*[[{") > + ("citealt" "*[{") > + ("Citealt" "*[{") > + ("citealp" "*[[{") > + ("Citealp" "*[[{")) > + 'biblatex)))) > + > (LaTeX-add-environments > ;;; Bibliography commands > ;; Bibliography Sections > --8<---------------cut here---------------end--------------->8--- > > Here also a small file I tested with: > > --8<---------------cut here---------------start------------->8--- > \documentclass{article} > > \begin{filecontents}{biblatex-test.bib} > @book{lamp:94, > author = {Leslie Lamport}, > title = {LaTeX - {A} Document Preparation System: User's Guide > and Reference Manual, Second Edition}, > publisher = {Pearson / Prentice Hall}, > year = {1994}, > isbn = {978-0-201-52983-8}, > timestamp = {Fri, 08 Apr 2011 18:21:00 +0200}, > } > > @book{mitt:97, > author = {Michel Goossens and > Sebastian Rahtz and > Frank Mittelbach}, > title = {The LaTeX Graphics Companion - Illustrating documents > with TeX and PostScript}, > series = {Addison-Wesley series on tools and techniques > for computer typesetting}, > publisher = {Addison-Wesley}, > year = {1997}, > isbn = {978-0-201-85469-5}, > } > \end{filecontents} > > \usepackage[natbib,backend=bibtex,style=authoryear]{biblatex} > > \bibliography{biblatex-test} > > \begin{document} > > \noindent \textbf{Textual}:\\ > \citet{lamp:94}, \\ > \citet[which see]{lamp:94},\\ > \citet*{mitt:97}, \\ > \citealt{mitt:97,lamp:94}, \\ > \Citealt{mitt:97,lamp:94} > > \noindent \textbf{Parenthesis}:\\ > \citep{mitt:97}, \\ > \citep[see][Page~5]{mitt:97}, \\ > \citep*{mitt:97}, \\ > \citealp{mitt:97}, \\ > \Citealp{mitt:97}, \\ > \citealp*{mitt:97}, \\ > \Citealp*{mitt:97} > > \end{document} > --8<---------------cut here---------------end--------------->8--- > > Best, Arash -- Travis N. Knepp Lead Research Scientist SAGE-III on ISS CAPABLE Air Quality Station travis.n.knepp@ssaihq.com Mail Stop 401A, B1250, Room 149 Hampton, VA 23681-2199 757-864-5558 Science Systems and Applications, Inc. (SSAI) /Science and Technology with Passion/ 10210 Greenbelt Road, Suite 600 Lanham, MD 20706 www.ssaihq.com Please be mindful about forwarding this e-mail; it may contain confidential information that is not intended for anyone else. Thank you. --------------388092DF0611DB75FC385BEB Content-Type: text/html; charset="windows-1252" Content-Transfer-Encoding: 8bit

Arash,

    I use Reftex and apply the hook in my .emacs file.  I insert references via C-c [ and change the \cite to \citep or \citet as needed. 



            Travis


On 10/15/2016 08:53 AM, Arash Esbati wrote:
Hi Mosč,

Mosč Giordano <mose@gnu.org> writes:

2016-10-11 12:49 GMT+02:00 Travis Knepp <travis.n.knepp@nasa.gov>:
Coloring of citations (when using \citep, \citet, etc. as opposed to just
using \cite) is not properly working.  Details from the stackexchange post
(http://emacs.stackexchange.com/questions/27591/auctex-citation-color) are
here:

When inserting a reference in a LaTeX document (using Auctex) I normally
type:

\cite{joebob_2010}

where "\cite" shows up in blue font, while "joebob_2010" shows up
reddish/purple. I like this coloring. However, when I use

\citep{joebob_2010}

all text shows up white.
[...]

If you want instead to write some Elisp, you can put this

(font-latex-add-keywords
 '(("citep" "*[[{"))
 'reference)

inside the hook.

Out of curiosity, do you use natbib or jurabib packages?
First of all, sorry for my late response.  Travis uses biblatex.  And
while we're at it: Travis, how do insert this macro?  Do you type
\citep{<key>} or do you hit `C-c m RET citep RET' or use Reftex?  I'm
asking since you're asking for the fontification; I think the completion
support (see below) is much more needed.

If you have parsing enabled, you should automatically get
fontification of citep macro.
That was also was my first answer, but then I realized that biblatex.el
doesn't have support for natbib compat macros (cf. biblatex manual,
§3.8.9 natbib Compatibility Commands).  I asked Travis to file this bug
report (thanks btw), I think the appended patch fixes the issue.  It is
mostly taken from natbib.el, function `LaTeX-biblatex-natbib-note-args'
is a modified version of `natbib-note-args' and I think that `(when
TeX-arg-cite-note-p' is not really needed, but I didn't touch it since
it doesn't hurt either.

--8<---------------cut here---------------start------------->8---
diff --git a/style/biblatex.el b/style/biblatex.el
index 06cd57a..f0e235d 100644
--- a/style/biblatex.el
+++ b/style/biblatex.el
@@ -216,6 +216,32 @@ for citation keys."
 	(TeX-argument-insert (mapconcat 'identity items ",") optional))
       (setq noinsert t))))
 
+(defun LaTeX-biblatex-natbib-note-args (optional)
+  "Prompt for two note arguments of a natbib compat citation command."
+  (when TeX-arg-cite-note-p
+      (let ((pre (TeX-read-string
+		  (TeX-argument-prompt optional nil "Prenote")))
+	    (post (TeX-read-string
+		   (TeX-argument-prompt optional nil "Postnote"))))
+	(cond
+	 (;; Both optional args are given
+	  (and pre (not (string= pre ""))
+	       post (not (string= post "")))
+	  (insert LaTeX-optop pre LaTeX-optcl
+		  LaTeX-optop post LaTeX-optcl))
+	 (;; pre is given, post is empty: Make sure that we insert an
+	  ;; extra pair of `[]', otherwise pre becomes post
+	  (and pre (not (string= pre ""))
+	       (string= post ""))
+	  (insert LaTeX-optop pre LaTeX-optcl
+		  LaTeX-optop LaTeX-optcl))
+	 (;; pre is empty, post is given
+	  (and (string= pre "")
+	       post (not (string= post "")))
+	  (insert LaTeX-optop post LaTeX-optcl))
+	 (;; both empty
+	  t (ignore))))))
+
 (TeX-add-style-hook
  "biblatex"
  (lambda ()
@@ -456,6 +482,53 @@ for citation keys."
     '("DefineHyphenationExceptions"
       (TeX-arg-eval completing-read "Language: " LaTeX-biblatex-language-list) t)
     "NewBibliographyString")
+
+   ;; § 3.8.9 natbib Compatibility Commands
+   (when (or (LaTeX-provided-package-options-member "biblatex" "natbib")
+	     (LaTeX-provided-package-options-member "biblatex" "natbib=true"))
+     (let ((cmds '(("citet" . 1) ("citet*" . 1)
+		   ("Citet" . 1) ("Citet*" . 1)
+		   ("citep" . 2) ("citep*" . 2)
+		   ("Citep" . 2) ("Citep*" . 2)
+		   ("citealt" . 1) ("citealt*" . 1)
+		   ("Citealt" . 1) ("Citealt*" . 1)
+		   ("citealp" . 2) ("citealp*" . 2)
+		   ("Citealp" . 2) ("Citealp*" . 2))))
+       ;; Taken from natbib.el:
+       (apply
+	#'TeX-add-symbols
+	(mapcar
+	 (lambda (cmd)
+	   (cond
+	    ((= (cdr cmd) 1)
+	     ;; Just one optional argument, the post note
+	     (list
+	      (car cmd)
+	      '(TeX-arg-conditional TeX-arg-cite-note-p (["Postnote"]) nil)
+	      'TeX-arg-cite))
+	    ((= (cdr cmd) 2)
+	     ;; Pre and post notes
+	     (list
+	      (car cmd)
+	      '(TeX-arg-conditional TeX-arg-cite-note-p
+				    ([LaTeX-biblatex-natbib-note-args])
+				  nil)
+	      'TeX-arg-cite))))
+	 cmds))
+
+     ;; Fontification for compat macros do not go into `font-latex.el':
+     (when (and (featurep 'font-latex)
+		(eq TeX-install-font-lock 'font-latex-setup))
+       (font-latex-add-keywords '(("citet"        "*[{")
+				  ("Citet"        "*[{")
+				  ("citep"        "*[[{")
+				  ("Citep"        "*[[{")
+				  ("citealt"      "*[{")
+				  ("Citealt"      "*[{")
+				  ("citealp"      "*[[{")
+				  ("Citealp"      "*[[{"))
+				'biblatex))))
+
    (LaTeX-add-environments
     ;;; Bibliography commands
     ;; Bibliography Sections
--8<---------------cut here---------------end--------------->8---

Here also a small file I tested with:

--8<---------------cut here---------------start------------->8---
\documentclass{article}

\begin{filecontents}{biblatex-test.bib}
@book{lamp:94,
  author    = {Leslie Lamport},
  title     = {LaTeX - {A} Document Preparation System: User's Guide
               and Reference Manual, Second Edition},
  publisher = {Pearson / Prentice Hall},
  year      = {1994},
  isbn      = {978-0-201-52983-8},
  timestamp = {Fri, 08 Apr 2011 18:21:00 +0200},
}

@book{mitt:97,
  author    = {Michel Goossens and
               Sebastian Rahtz and
               Frank Mittelbach},
  title     = {The LaTeX Graphics Companion - Illustrating documents
               with TeX and PostScript},
  series    = {Addison-Wesley series on tools and techniques
               for computer typesetting},
  publisher = {Addison-Wesley},
  year      = {1997},
  isbn      = {978-0-201-85469-5},
}
\end{filecontents}

\usepackage[natbib,backend=bibtex,style=authoryear]{biblatex}

\bibliography{biblatex-test}

\begin{document}

\noindent \textbf{Textual}:\\
\citet{lamp:94}, \\
\citet[which see]{lamp:94},\\
\citet*{mitt:97}, \\
\citealt{mitt:97,lamp:94}, \\
\Citealt{mitt:97,lamp:94}

\noindent \textbf{Parenthesis}:\\
\citep{mitt:97}, \\
\citep[see][Page~5]{mitt:97}, \\
\citep*{mitt:97}, \\
\citealp{mitt:97}, \\
\Citealp{mitt:97}, \\
\citealp*{mitt:97}, \\
\Citealp*{mitt:97}

\end{document}
--8<---------------cut here---------------end--------------->8---

Best, Arash

--

Travis N. Knepp

Lead Research Scientist

SAGE-III on ISS     CAPABLE Air Quality Station

travis.n.knepp@ssaihq.com

Mail Stop 401A, B1250, Room 149
Hampton, VA 23681-2199

757-864-5558

 

 

Science Systems and Applications, Inc. (SSAI)

Science and Technology with Passion

10210 Greenbelt Road, Suite 600

Lanham, MD 20706

www.ssaihq.com

 

Please be mindful about forwarding this e-mail; it may contain confidential information that is not intended for anyone else. Thank you.

 

 

 

 

--------------388092DF0611DB75FC385BEB-- From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 18 05:47:14 2016 Received: (at 24667) by debbugs.gnu.org; 18 Oct 2016 09:47:14 +0000 Received: from localhost ([127.0.0.1]:37622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwQzJ-0001ra-Rb for submit@debbugs.gnu.org; Tue, 18 Oct 2016 05:47:14 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:35396) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwQzI-0001rM-2a for 24667@debbugs.gnu.org; Tue, 18 Oct 2016 05:47:12 -0400 Received: by mail-lf0-f66.google.com with SMTP id x79so31662813lff.2 for <24667@debbugs.gnu.org>; Tue, 18 Oct 2016 02:47:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=bxsuRMJ+e/F7l1yS6OKKarwYHEUI+PvkNARrRLGW9Ns=; b=cUb4pdtAIMMf6dlYRNFlxvkY6rFb/bGj5W8f4WEb5qJCZFN7GFF4ywUIuwFHsjdPVZ ySuK9QNx1t1AYsYkKmWaf1kbAoup+uD1IlavVOgM7G6KpXjRAsTnd55YulnTPi4VFkpW M/uw7aBkzejsMiO/rWlgnmK9sNymmMqb9QRoclSDhHLgRkmzpJGe289Sf2siTTpUzQgW akrph26t9aPHJCgIl0XwhkjiB4LnjTqaxK+rnpeG4vj6TOy5tFi5Kxb46mf531smZFsA TBDmaRDsu2W2yu4OoaA8TCwD4q163u9CC1vJixO0po7eLk1wf1AVCBGTTxVYOyq4/M09 LSlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=bxsuRMJ+e/F7l1yS6OKKarwYHEUI+PvkNARrRLGW9Ns=; b=GHZ7RTIvWdEHZatT4tZYYkB4FX4Kv5o7TJYrfRcwIgva1hcHLLn8934lifV/vPp9lH DdsR5diUX+eCkmPwVJ438ELy9r2aaeSj0BWIl9/coyoSftGXVg6JNAsg98NMVD/hOJM8 Dc5UQjJW6NM/EzUTY8kG36glaWJLJVL2Q1tTAAws69XfKqchgat0jqHRIvYwYmM8S7Xk PIiqrd2spiiqWKW+D0sXu3qMKa7vBPJ1f5HuGfAJZFEiySxtA5TcDOYCHFlGuzvnyZgM SwSsjhCDal/QfwaWqzCl5y6P4bCr2zl6WkNhZwB76ZrnqAzpdbxzNBU794y9UtczwdGS 7FIQ== X-Gm-Message-State: AA6/9Rn/EkakioHREVfJZZuibuWzwjopClUMW19cwm4/qEIDkZrLDquXMXmWE4kUe0W9sw== X-Received: by 10.25.234.196 with SMTP id y65mr18077668lfi.78.1476784025045; Tue, 18 Oct 2016 02:47:05 -0700 (PDT) Received: from MUTANT (p54ACE4B8.dip0.t-ipconnect.de. [84.172.228.184]) by smtp.gmail.com with ESMTPSA id g84sm9057322ljg.25.2016.10.18.02.47.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Oct 2016 02:47:04 -0700 (PDT) Received: from MUTANT [127.0.0.1] by MUTANT (192.168.178.97) with ESMTP (Classic Hamster Version 2.1 Build 2.1.0.1539) ; Tue, 18 Oct 2016 11:46:02 +0200 From: Arash Esbati To: Travis Knepp Subject: Re: bug#24667: AUCTeX citation color References: <26ae0c0d-e666-eea8-9c9e-643900c9a6c6@nasa.gov> <86pon13h9t.fsf@gmail.com> <6072b16d-f463-baad-fbb6-ffc64dd97f94@nasa.gov> Date: Tue, 18 Oct 2016 11:46:02 +0200 In-Reply-To: <6072b16d-f463-baad-fbb6-ffc64dd97f94@nasa.gov> (Travis Knepp's message of "Mon, 17 Oct 2016 08:26:05 -0400") Message-ID: <8660oqkn1h.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 MIME-Version: 1.0 Content-Type: text/plain X-Posting-Agent: Hamster/2.1.0.1539 X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 24667 Cc: 24667@debbugs.gnu.org, =?iso-8859-1?Q?Mos=E8?= Giordano X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) Hi Travis, Travis Knepp writes: > I use Reftex and apply the hook in my .emacs file. I insert > references via C-c [ and change the \cite to \citep or \citet as > needed. Thanks for your response. If you install the latest AUCTeX version from elpa, you can enter `C-c C-m citep RET' or `C-c C-m citet RET' and proceed from there. I think this is more convenient than to append a `p' or `t' to \cite. I have a patch to integrate biblatex into Reftex. I'm moving that discussion to devel mailing-list. Best, Arash From unknown Sat Jun 21 05:06:01 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 15 Nov 2016 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator