From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leu Zhe Subject: To interrupt org-latex-pdf-process to regexp-replace some string of the .tex intermediate file and continue to export Date: Thu, 24 Apr 2014 21:46:18 +0900 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bdc913eb149e404f7c93e95 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37873) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WdUpa-0001GZ-Hg for emacs-orgmode@gnu.org; Thu, 24 Apr 2014 21:22:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WdJ3L-0000fa-Pt for emacs-orgmode@gnu.org; Thu, 24 Apr 2014 08:47:05 -0400 Received: from mail-qa0-x22a.google.com ([2607:f8b0:400d:c00::22a]:40769) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WdJ3L-0000fS-Kd for emacs-orgmode@gnu.org; Thu, 24 Apr 2014 08:46:59 -0400 Received: by mail-qa0-f42.google.com with SMTP id k15so2222439qaq.1 for ; Thu, 24 Apr 2014 05:46:59 -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 --047d7bdc913eb149e404f7c93e95 Content-Type: text/plain; charset=ISO-8859-1 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 produce low dpi .png image in PNG folder for inline display and higher dpi pdf image in PDF folder for finally article export. In .org file, the image link is like [[file:PNG\*.png]] and \includegraphics{PNG\*.png}in the produced .tex file. Then emacs will use org-latex-pdf-process to render it to pdf file. What I want is that before or in org-latex-pdf-process, a regexp replace function is added to replace the \includegraphics{PDF\*.pdf}, and then produce the final pdf file. Can anyone give a hand? --047d7bdc913eb149e404f7c93e95 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

I am using org-mode to write some article now. Org-mode is really a great t= ool to outline a article with great table and image support.

Org-mode can display inline .png image but not .pdf file. Because now org-m= ode can not control the width or height of shown inline image, so i use mat= plotlib to produce low dpi .png image in PNG folder for inline display and = higher dpi pdf image in PDF folder for finally article export.

In .org file, the image link is like=A0[[file:PNG\*.png]]= =A0and=A0\includegraphics{PNG\*.png}in the = produced .tex file. Then emacs will use=A0org-latex-pdf-p= rocess=A0to render it to pdf file. What I want is that before or in= =A0org-latex-pdf-process, a regexp replace functio= n is added to replace the=A0\includegraphics{PDF\*.pdf}, and then produce the final pdf file.

Can anyone give a hand?

--047d7bdc913eb149e404f7c93e95--