From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leu Zhe Subject: Preview tikz in org-mode (reduce margins of produced images) Date: Fri, 16 May 2014 17:34:53 +0900 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bdcaa8c0ba4c604f9804c15 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46996) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WlDc7-0003AM-RU for emacs-orgmode@gnu.org; Fri, 16 May 2014 04:35:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WlDc6-00060H-Mn for emacs-orgmode@gnu.org; Fri, 16 May 2014 04:35:35 -0400 Received: from mail-qc0-x22c.google.com ([2607:f8b0:400d:c01::22c]:42683) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WlDc6-000608-Fy for emacs-orgmode@gnu.org; Fri, 16 May 2014 04:35:34 -0400 Received: by mail-qc0-f172.google.com with SMTP id l6so3808835qcy.31 for ; Fri, 16 May 2014 01:35:33 -0700 (PDT) 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" --047d7bdcaa8c0ba4c604f9804c15 Content-Type: text/plain; charset=ISO-8859-1 Hi, everyone! I always use org-preview-latex-fragment command to preview the LaTeX code, which is awesome. It can effectively crop and suit the size of produced png to the content. However, recently I start to preview some tikz code. I can greatly produce the good results except one problem: The preview can never reduce the spare margin of the produced images, which left large blank space there. However, when I preview other LaTeX code after deleting tikz preamble, everything is fine. So is there anyone who has some idea to reduce the large margins? Leu --047d7bdcaa8c0ba4c604f9804c15 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi, everyone!

I always use org-preview-= latex-fragment command to preview the LaTeX code, which is awesome.
It can effectively crop and suit the size of produced png to the content= .

However, recently I start to preview some tikz code.=A0=
I can greatly produce the good results except one problem:
=
The preview can never reduce the spare margin of the produced images, = which left large blank space there. However, when I preview other LaTeX cod= e after deleting tikz preamble, everything is fine.

So is there anyone who has some idea to reduce the larg= e margins?


Leu
--047d7bdcaa8c0ba4c604f9804c15--