From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?R=FCdiger?= Sonderfeld Newsgroups: gmane.emacs.devel,gmane.emacs.auctex.devel Subject: [PATCH 2/3] RefReX: Basic cleveref support. Date: Wed, 15 May 2013 20:10:21 +0200 Message-ID: <2035515.6QPKuE5SYe@descartes> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1368641473 13316 80.91.229.3 (15 May 2013 18:11:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 May 2013 18:11:13 +0000 (UTC) Cc: emacs-devel@gnu.org To: auctex-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 15 20:11:16 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UcgAW-00074l-6y for ged-emacs-devel@m.gmane.org; Wed, 15 May 2013 20:11:16 +0200 Original-Received: from localhost ([::1]:41621 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcgAV-0007yV-ON for ged-emacs-devel@m.gmane.org; Wed, 15 May 2013 14:11:15 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58933) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ucg9x-0006zw-4M for emacs-devel@gnu.org; Wed, 15 May 2013 14:10:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ucg9r-0005xf-3q for emacs-devel@gnu.org; Wed, 15 May 2013 14:10:41 -0400 Original-Received: from ptmx.org ([178.63.28.110]:35560) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ucg9g-0005tf-P8; Wed, 15 May 2013 14:10:24 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by ptmx.org (Postfix) with ESMTP id 33BB02A24C; Wed, 15 May 2013 20:10:24 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at ptmx.org Original-Received: from ptmx.org ([127.0.0.1]) by localhost (ptmx.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id N-R4EyLw7i2t; Wed, 15 May 2013 20:10:22 +0200 (CEST) Original-Received: from descartes.localnet (chello080108246092.7.14.vie.surfer.at [80.108.246.92]) by ptmx.org (Postfix) with ESMTPSA id 50BE0273FB; Wed, 15 May 2013 20:10:22 +0200 (CEST) User-Agent: KMail/4.10.2 (Linux/3.8.0-19-generic; KDE/4.10.2; x86_64; ; ) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 178.63.28.110 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:159597 gmane.emacs.auctex.devel:3096 Archived-At: Adds support for \cref/\cpageref and uppercase variants. Support for ref ranges (\crefrange) requires further changes in RefTeX. http://www.ctan.org/pkg/cleveref * lisp/textmodes/reftex-vars.el (reftex-ref-style-alist): Add cleveref macros. Signed-off-by: R=C3=BCdiger Sonderfeld --- lisp/textmodes/reftex-vars.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/textmodes/reftex-vars.el b/lisp/textmodes/reftex-vars= .el index 3792ab4..ce23a48 100644 --- a/lisp/textmodes/reftex-vars.el +++ b/lisp/textmodes/reftex-vars.el @@ -1000,7 +1000,9 @@ This is used to string together whole reference s= ets, like ("Fancyref" "fancyref" (("\\fref" ?f) ("\\Fref" ?F))) ("Hyperref" "hyperref" - (("\\autoref" ?a) ("\\autopageref" ?u)))) + (("\\autoref" ?a) ("\\autopageref" ?u))) + ("Cleveref" "cleveref" + (("\\cref" ?c) ("\\Cref" ?C) ("\\cpageref" ?d) ("\\Cpageref" ?D))= )) "Alist of reference styles. Each element is a list of the style name, the name of the LaTeX package associated with the style or t for any package, and an --=20 1.8.2.3