From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: Bug: #+ATTR_LaTeX broken in LaTeX export [6.36trans (release_6.36.461.g798e)] Date: Wed, 30 Jun 2010 14:26:30 -0700 Message-ID: <8739w4tdo9.fsf@gmail.com> References: <878w5w2w5y.fsf@thinkpad.tsdh.de> <87fx04qp9x.fsf@mundaneum.com> <871vbouu7f.fsf@gmail.com> <87iq50griq.wl%n.goaziou@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=36692 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OU4nj-0001pX-O3 for emacs-orgmode@gnu.org; Wed, 30 Jun 2010 17:26:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OU4ni-0007xO-A2 for emacs-orgmode@gnu.org; Wed, 30 Jun 2010 17:26:35 -0400 Received: from mail-px0-f169.google.com ([209.85.212.169]:54536) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OU4ni-0007xI-5X for emacs-orgmode@gnu.org; Wed, 30 Jun 2010 17:26:34 -0400 Received: by pxi17 with SMTP id 17so1289286pxi.0 for ; Wed, 30 Jun 2010 14:26:32 -0700 (PDT) In-Reply-To: <87iq50griq.wl%n.goaziou@gmail.com> (Nicolas Goaziou's message of "Wed, 30 Jun 2010 23:05:49 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: =?utf-8?Q?S=C3=A9bastien?= Vauban , emacs-orgmode@gnu.org Hi Nicolas, Nicolas Goaziou writes: > Hi Eric, > > I do not think this is the right fix. You are only allowing lines > like : > > --- > # a line of text > --- > > to be treated as comments, when they are not! The first regex is the > one matching comments definition (# on column 0 and '#+ ' everywhere). > Handling of lines like #+ATTR_LaTeX should be processed outside of > comments handling functions to not add confusion. > > Moreover, I mailed a fix earlier (see thread with Sebastian Rose: > unwanted #+attr_backend and #+backend stuff) which already solves that > problem, among others. > Yes, this patch has been floundering on the patchwork server for a while now. I've been reticent to apply it hoping that someone with more familiarity with the export engine would take care of it. At this point however I think delaying it's application is doing more hard than good. I'd like to apply this, however one last question. This patch doesn't address S=C3=A9bastien's table issue, namely --8<---------------cut here---------------start------------->8--- ** table comment issue #+BEGIN_changemargin {-4.2cm}{0cm} #+TBLNAME: AutresFPNVE #+ATTR_LaTeX: align=3Dlrrrrr | | | Montant total (\EUR) | T= aux amort (\%) | Part pro. (\%) | D=C3=A9duc (\%) | NVE (\EUR) | |---+------------------------------------------+----------------------+--= ---------------+----------------+------------+------------| | | Documentation et formation | 51.05 | = | | | 0.00 | | | Communications GSM | 831.16 | = 100 | 25 | 100 | 207.79 | | | Internet (Dommel) | 167.88 | = 100 | 33 | 100 | 55.40 | | | Fournitures =C3=A0 amortir (ordinateur + GSM) | 762.5= 1 | 33 | 80 | 100 | 201.30 | | | Restaurant | 304.70 | = 100 | 100 | 69 | 210.24 | |---+------------------------------------------+----------------------+--= ---------------+----------------+------------+------------| | | Total | | = | | | 1062.02 | | ^ | | | = | | | Total | #+TBLFM: $7=3D$3*$4*$5*$6/1000000;%.2f::@2$3=3D51.05::@3$3=3D9.00+184.88+= 51.22+201.82+45.67+69.03+62.93+54.16+38.87+39.77+36.35+37.46::@4$3=3D12*13.= 99::@6$3=3D146.50+158.20;%.2f::@7$7=3Dvsum(@-I..@-II);%.2f #+END_changemargin --8<---------------cut here---------------end--------------->8--- Before I apply, should the patch be updated to handle this case? Let me know and I'll either apply the current version of the patch, or an updated version. Thanks for your patience -- Eric > > Regards, > > -- Nicolas