From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Alexander Gerds Subject: Re: latex figure scaling question, backward compatibility and outdated manual Date: Wed, 20 Mar 2013 13:04:29 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44614) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIHl4-0002sw-Jg for emacs-orgmode@gnu.org; Wed, 20 Mar 2013 08:04:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UIHkv-0005Id-94 for emacs-orgmode@gnu.org; Wed, 20 Mar 2013 08:04:42 -0400 Received: from mail-ee0-f47.google.com ([74.125.83.47]:64700) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIHkv-0005IT-2l for emacs-orgmode@gnu.org; Wed, 20 Mar 2013 08:04:33 -0400 Received: by mail-ee0-f47.google.com with SMTP id e52so849665eek.6 for ; Wed, 20 Mar 2013 05:04:32 -0700 (PDT) In-Reply-To: (Thomas Alexander Gerds's message of "Tue, 19 Mar 2013 14:10:30 +0100") 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: emacs-orgmode@gnu.org sorry for this post. I should have read the mailing list more carefully. looks as if a) the issue is already under discussion and b) that the manual is for latest release whereas I had problems with the pre-release. Thomas Alexander Gerds writes: > the following page from the official manual > > http://orgmode.org/manual/Images-in-LaTeX-export.html > > says > > #+ATTR_LaTeX: width=3D5cm,angle=3D90 > > however, the new exporter does not recognize this syntax. instead the > following works: > > #+ATTR_LaTeX: :width 5cm > > I was learning about this by guessing around for some time ... it is > surprisingly hard to edebug the export process (any hints?). > > next, the following educated guess does not work: > > #+ATTR_LaTeX: :width 5cm :angle 90 > > instead one needs to say > > #+ATTR_LaTeX: :width 5cm,angle 90 > > I am not sure whether these changes are very intuitive, or more > intuitive than the old style. but, the changes interfere with the aim > to have reproducible documents. > > now, I am ready to convert all my old documents to the new > syntax. Would someone share a (elisp/sed/perl/other) macro that > reliably goes through old org-mode files and converts the part of the > syntax which is not compatible with the new exporter? [it is easy to > convert (width=3D) to (:width) in lines that start with #+ATTR_LaTeX: > but this is not the full story. > > Such a macro could then be applied to update the manual ... > > cheers Thomas -- Thomas A. Gerds -- Assoc. Prof. Department of Biostatistics University of Copenhagen, =D8ster Farimagsgade 5, 1014 Copenhagen, Denmark Office: CSS-15.2.07 (Gamle Kommunehospital) tel: 35327914 (sec: 35327901)=20