From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: [PATCH] ob-R.el, ox-latex.el: support for tikz graphics Date: Tue, 26 Feb 2013 14:33:09 +0000 (UTC) Message-ID: References: <1361731894-2738-1-git-send-email-aaronecay@gmail.com> <87621gfmkb.fsf@gmail.com> <87d2vnqkgh.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:43282) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UALcX-0000Ui-15 for emacs-orgmode@gnu.org; Tue, 26 Feb 2013 09:35:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UALcV-0003ZO-VI for emacs-orgmode@gnu.org; Tue, 26 Feb 2013 09:35:04 -0500 Received: from plane.gmane.org ([80.91.229.3]:44863) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UALax-000365-Nj for emacs-orgmode@gnu.org; Tue, 26 Feb 2013 09:33:27 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UALbF-0000pr-34 for emacs-orgmode@gnu.org; Tue, 26 Feb 2013 15:33:45 +0100 Received: from 217.10.52.10 ([217.10.52.10]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Feb 2013 15:33:45 +0100 Received: from Stromeko by 217.10.52.10 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Feb 2013 15:33:45 +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 Nicolas Goaziou gmail.com> writes: > I'm not questioning the usefulness of the patch. I want to know if > `org-latex--inline-image' is the appropriate function to provide that > feature or if the feature should be provided through another function. > > In particular, `org-latex--inline-image' provide options to wrap the > picture in wrapfigure environment, or to set width optional argument for > includegraphics. If it doesn't make sense in this case, the code could > as well be moved into another function, like `org-latex--input-file', > which would handle options specific for \input. 1) I don't know offhand what wrapfigure does, but as long as it just manipulates boxes, I think it should work just fine with tikz. 2) Since \input doesn't take any options, you can't give it any. Such options would have to be given to the tikzpicture environment, which is inside the file you are trying to include. You can however nest tikzpicutre environments and have options transfer from the outside to the inside, so if somebody gives you options, just wrap the input statement in another tikzpicture environment. But the options are very different from includegraphics. Scaling a tikzpicture you should manipulate its box (resizebox or scalebox), but you'll almost almost want to set the canvas on the original tikzpicture to the correct size so that the text stays a sensible size. Rgards, Achim.