* ox-latex-problem ** [2024-09-02 Mon] *** report #1 (landscape) :PROPERTIES: :EXPORT_LANGUAGE: en :EXPORT_TITLE: :EXPORT_SUBTITLE: :EXPORT_AUTHOR: :EXPORT_DATE: :EXPORT_OPTIONS: toc:nil timestamp:nil num:nil :EXPORT_TOC: headlines 2 :EXPORT_FILE_NAME: /tmp/report2.pdf :EXPORT_LATEX_HEADER: \usepackage[a4paper, landscape, margin=0.5cm]{geometry} :CLICK_TO_SEE_REPORT: file:/tmp/report2.pdf :END: #+name: sourceblock_created_2024-09-02_23-36-05 #+begin_src emacs-lisp :exports none :results none (defun my/export-pdf () "renders the PDF" (org-narrow-to-subtree) (org-show-subtree) (org-latex-export-to-pdf nil t t nil) (widen) ) (my/export-pdf) #+end_src # do not use this LATEX_HEADER because is buffer scoped! # #+LATEX_HEADER: \usepackage[a4paper, landscape, margin=0.5cm]{geometry} **** My report #2 ***** Introduction Introduction text ***** The report #2 Report #2 text ***** Conclusions Conclusions text ** [2024-09-01 Sun] *** report #2 (portrait) :PROPERTIES: :EXPORT_LANGUAGE: ca :EXPORT_TITLE: :EXPORT_SUBTITLE: :EXPORT_AUTHOR: :EXPORT_DATE: :EXPORT_OPTIONS: toc:nil timestamp:nil num:nil :EXPORT_TOC: headlines 2 :EXPORT_FILE_NAME: /tmp/report1.pdf :CLICK_TO_SEE_REPORT: file:/tmp/report1.pdf :EXPORT_LATEX_HEADER: \usepackage[a4paper, margin=3cm]{geometry} :END: #+name: sourceblock_created_2024-09-02_23-36-07 #+begin_src emacs-lisp :exports none :results none (defun my/export-pdf () "renders the PDF" (org-narrow-to-subtree) (org-show-subtree) (org-latex-export-to-pdf nil t t nil) (widen) ) (my/export-pdf) #+end_src # do not use this LATEX_HEADER because is buffer scoped! # #+LATEX_HEADER: \usepackage[a4paper, margin=3cm]{geometry} **** My report #1 ***** Introduction Introduction text ***** The report #1 Report #1 text ***** Conclusions Conclusions text