Re: [O] To interrupt org-latex-pdf-process to regexp-replace some string of the .tex intermediate file and continue to export

2014-04-26 Thread Kyutech
John, thanks you very much. Your code really satisfies my demand. I plan to use your function to replace org-export. Thanks again, and thanks Nick for your explanation. Best regards. On Sat, Apr 26, 2014 at 1:56 AM, John Kitchin jkitc...@andrew.cmu.eduwrote: You first export your

Re: [O] To interrupt org-latex-pdf-process to regexp-replace some string of the .tex intermediate file and continue to export

2014-04-25 Thread Feng Shu
Leu Zhe lzhe...@gmail.com writes: I am using org-mode to write some article now. Org-mode is really a great tool to outline a article with great table and image support. Org-mode can display inline .png image but not .pdf file. Because now org-mode can not control the width or height of

Re: [O] To interrupt org-latex-pdf-process to regexp-replace some string of the .tex intermediate file and continue to export

2014-04-25 Thread John Kitchin
This is how I do what I think you are describing. I just take off the extension, and let (pdf)latex pick the extension it wants. (defun ox-manuscript-remove-image-extensions () Removes .png extensions from \includegraphics directives in an exported latex file. Run this from an org-buffer after

Re: [O] To interrupt org-latex-pdf-process to regexp-replace some string of the .tex intermediate file and continue to export

2014-04-25 Thread Leu Zhe
Dear John, Thanks very much for your help. I have tried your code but nothing happened. However, I think it is close to my remand. I have some questions about your code: 1. When should this command be called? Don't I need to call it before the org-latex-pdf-process? 2. I use xelatex to

Re: [O] To interrupt org-latex-pdf-process to regexp-replace some string of the .tex intermediate file and continue to export

2014-04-25 Thread Leu Zhe
Dear Feng Shu, Thanks very much for your help. I am not familiar with R, but I will test it later. Best regards!

Re: [O] To interrupt org-latex-pdf-process to regexp-replace some string of the .tex intermediate file and continue to export

2014-04-25 Thread John Kitchin
You first export your org-file to latex. the function I sent assumes the tex file has the same basename as the org-file, and ends in .tex. Then, with your org-file as the current buffer, call that function. It will modify the latex file by replacing your \includegraphics lines with the equivalent

Re: [O] To interrupt org-latex-pdf-process to regexp-replace some string of the .tex intermediate file and continue to export

2014-04-25 Thread Nick Dokos
Leu Zhe lzhe...@gmail.com writes: Dear John, Thanks very much for your help. I have tried your code but nothing happened. However, I think it is close to my remand.  I have some questions about your code: 1. When should this command be called?  Don't I need to call it before the

Re: [O] To interrupt org-latex-pdf-process to regexp-replace some string of the .tex intermediate file and continue to export

2014-04-25 Thread John Kitchin
Thanks Nick, for the more helpful explanation than mine ;) The function I provided is part of this file: https://github.com/jkitchin/jmax/blob/master/ox-manuscript.el which I have been working on for publishing scientific manuscripts. This file provides a new export menu option that not only

[O] To interrupt org-latex-pdf-process to regexp-replace some string of the .tex intermediate file and continue to export

2014-04-24 Thread Leu Zhe
I am using org-mode to write some article now. Org-mode is really a great tool to outline a article with great table and image support. Org-mode can display inline .png image but not .pdf file. Because now org-mode can not control the width or height of shown inline image, so i use matplotlib to