Re: [O] Preview tikz in org-mode (reduce margins of produced images)

2014-05-21 Thread Bastien
Hi Leu, Leu Zhe writes: > I just replaced the \documentclass{article} to  documentclass > [varwidth]{standalone}, > then it works perfectly. Thanks for sharing this trick, hard to find, so even more valuable when made public. -- Bastien

Re: [O] Preview tikz in org-mode (reduce margins of produced images)

2014-05-20 Thread Leu Zhe
Hi Nick, Thanks you for your help. Finally I found a solution by referring the examples in texample.net. I just replaced the \documentclass{article} to documentclass[varwidth]{standalone}, then it works perfectly. I am not familiar enriched-mode, too. It is also very strange that why i can not

Re: [O] Preview tikz in org-mode (reduce margins of produced images)

2014-05-20 Thread Nick Dokos
Bastien writes: > Nick Dokos writes: > >> Unfortunately, you seem to have attached it as text/enriched and it is >> messed up. Can you please attach it as text/plain? > > I attach it just in case. Didn't know about enriched-mode - thanks! But back to the original question: with the redefined o

Re: [O] Preview tikz in org-mode (reduce margins of produced images)

2014-05-20 Thread Bastien
Nick Dokos writes: > Unfortunately, you seem to have attached it as text/enriched and it is > messed up. Can you please attach it as text/plain? I attach it just in case. test.org Description: Lotus Organizer -- Bastien

Re: [O] Preview tikz in org-mode (reduce margins of produced images)

2014-05-17 Thread Nick Dokos
Leu Zhe writes: > Hi ndokos, > > Thanks for you advice.  > I added a attachment which matches my problem. > > Best regards! > > > Content-Type: text/enriched > Text-Width: 70 > > #+LATEX_HEADER: \usepackage{tikz} > #+LATEX_HEADER: \usepackage[siunitx]{circuitikz} > > > dodger blue* A tikz preview

Re: [O] Preview tikz in org-mode (reduce margins of produced images)

2014-05-16 Thread Leu Zhe
Hi ndokos, Thanks for you advice. I added a attachment which matches my problem. Best regards! test.org Description: Binary data

Re: [O] Preview tikz in org-mode (reduce margins of produced images)

2014-05-16 Thread Nick Dokos
Leu Zhe writes: > 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 go

[O] Preview tikz in org-mode (reduce margins of produced images)

2014-05-16 Thread Leu Zhe
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