Org-mode beamer - How to create a short title, author, date?

Is there any easy way to add a short title, author, date, etc. to a .org file without interfering with the generated .tex file?

+5
source share
4 answers

My (in progress) Reorganizing Org Beamer can help you.

See https://github.com/fniessen/refcard-org-beamer , in particular the "Creating a Cover Page" section.

UPDATE - Something like the following:

#+BIND: org-latex-title-command "\\title{De leerplandoelstellingen}\n\\date[mei 2014]{9 mei 2014}\n\\maketitle" 

(this is a way to mess around with the header, but directly from the Org file ...)

+5
source

Yes, you can define #+SHORT_TITLE , but it includes editing 2 elisp files. You need to find the ox.el and ox-beamer.el , mine are in the ~/.emacs.d/elpa/org-20150330 . There are also some compiled ox.elc and ox-beamer.elc . I recommend that you back up all of these files before proceeding.

In the ox.el file ox.el go to line 118 and add the line short_title , as shown below:

  114│ (:section-numbers nil "num" org-export-with-section-numbers) 115│ (:select-tags "SELECT_TAGS" nil org-export-select-tags split) 116│ (:time-stamp-file nil "timestamp" org-export-time-stamp-file) 117│ (:title "TITLE" nil nil space) 118│ (:short_title "SHORT_TITLE" nil nil space) ;; Additional line 119│ (:with-archived-trees nil "arch" org-export-with-archived-trees) 120│ (:with-author nil "author" org-export-with-author) 121│ (:with-clocks nil "c" org-export-with-clocks) 122│ (:with-creator nil "creator" org-export-with-creator) 

Save the file. Delete the th ox.elc file (make sure you have a backup) and byte compile the file. You can do this from emacs using Mx byte-compile-file and enter the file name to make sure that it completed without errors.

Then open the ox-beamer.el and make the following changes.

  860│ ;; 7. Title 861│ (let ((short_title (plist-get info :short_title))) 862│ (format "\\title[%s]{%s}\n" short_title title)) 

Save, delete the old ox-beamer.elc file and byte. Restart emacs and now you can use #+SHORT_TITLE: as you wish.

Your line numbers may vary, but I have included the surrounding code so you can easily find / replace.

+4
source

I use this to achieve the same effect:

 #+TITLE: Short title #+BEAMER_HEADER: \subtitle{long title} 

It requires you to play too well, so it doesn't look silly.

Credit: learned about BEAMER_HEADER things from https://github.com/fniessen/refcard-org-beamer

0
source

I understand that this is an old question. I came here looking for a solution to the same problem. And I thought that others in the same boat could benefit from a cleaner solution.

Including the following before / after #+TITLE: should complete the task:

 #+BEAMER_HEADER: \title[short title]{long title} 

Note that it replaces everything you set in the #TITLE: line. Of course, I'm not sure if this was an opportunity at the time the OP asked the question.

0
source

Source: https://habr.com/ru/post/1206253/


All Articles