From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [Bug] [Patch] List number start with the latex exporter Date: Fri, 10 Jun 2011 15:52:47 +0200 Message-ID: <87hb7xoksw.fsf@gmail.com> References: <4df135a5.07b2e60a.443f.2d8e@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:52538) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QV28m-00005K-UR for emacs-orgmode@gnu.org; Fri, 10 Jun 2011 09:52:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QV28k-0004So-Jq for emacs-orgmode@gnu.org; Fri, 10 Jun 2011 09:52:48 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:52902) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QV28k-0004Sd-2o for emacs-orgmode@gnu.org; Fri, 10 Jun 2011 09:52:46 -0400 Received: by wyf19 with SMTP id 19so2290114wyf.0 for ; Fri, 10 Jun 2011 06:52:44 -0700 (PDT) In-Reply-To: <4df135a5.07b2e60a.443f.2d8e@mx.google.com> (Darlan Cavalcante Moreira's message of "Thu, 09 Jun 2011 18:05:35 -0300") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Darlan Cavalcante Moreira Cc: Orgmode Mailing List Hello, Darlan Cavalcante Moreira writes: > When using a numbered list it is possible to specify the start number using > [@number] so that one can write > 1. one > 2. two > 20. [@20] twenty > 21. twenty one > > This works OK with the HTML exporter, but in the latex exporter > the number will be one unity above the desired value. > > The reason why this happens is because the \item command in the enumerate > environment in latex increments the counter before using it. Therefore, > org-mode should set the enumeration counter to the desired value minus one. > > A patch is attached for the lisp/org-list.el file. Thank you! Patch applied. Regards, -- Nicolas Goaziou