From c7fe0e363e076b6c334d9a0f02cff65ac2e30261 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20N=C3=A1jera?= Date: Sat, 24 Mar 2018 00:19:49 +0100 Subject: [PATCH] Complete exporting of document After a lot of trial and error and still not understanding clearly what is going on. I somehow see the loop of how the document is exported and thus how I just need to take care of the part that concerns my cventry. --- ox-cv.el | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/ox-cv.el b/ox-cv.el index cba7765..8841b6e 100644 --- a/ox-cv.el +++ b/ox-cv.el @@ -172,16 +172,11 @@ holding export options." CONTENTS is the contents of the headline. INFO is a plist used as a communication channel." (unless (org-element-property :footnote-section-p headline) - (let ((level (org-export-get-relative-level headline info)) - (frame-level (org-beamer--frame-level headline info)) - (tags (org-export-get-tags headline info)) - + (let ((tags (org-export-get-tags headline info)) (environment (let ((env (org-element-property :CV_ENV headline))) (or (org-string-nw-p env) "block")))) (cond ;; is a cv entry ((equal environment "cventry") (org-cv-cventry headline contents info)) - (t (concat (format "%s %s %s %s %s\n" level tags frame-level environment - contents) - )))))) + ((org-export-with-backend 'latex headline contents info))))))