Re: [O] orgmode read/source all options from a template file?
I prefer #+SETUPFILE because the beauty is that that option is specific to loading a common org setup file. I have my config.org beautifully organized as: = * Latex Setup ** Change default font Note that fontspec works with only xelatex (not pdflatex). #+LaTeX_HEADER: \usepackage{fontspec} #+LaTeX_HEADER: \setmainfont[Ligatures=TeX]{Linux Libertine O} #+LaTeX_HEADER: \setmonofont[Scale=0.8]{Inconsolata-g} ** Sans serif fonts for section titles #+LaTeX_HEADER: \usepackage{titlesec} *** Formatting =section= titles #+LaTeX_HEADER: \titleformat{\section} #+LaTeX_HEADER: [hang] % titleformat shape #+LaTeX_HEADER: {\usefont{T1}{qhv}{b}{n}\selectfont\Large} % titleformat format "qhv" - TeX Gyre Heros, "b" - bold #+LaTeX_HEADER: {\thesection} % titleformat label #+LaTeX_HEADER: {0.6em} % titleformat separation #+LaTeX_HEADER: {} % code preceeding title body *** Formatting =subsection= titles #+LaTeX_HEADER: \titleformat{\subsection} #+LaTeX_HEADER: [hang] % titleformat shape #+LaTeX_HEADER: {\bfseries\large} % titleformat format #+LaTeX_HEADER: {\thesubsection} % titleformat label #+LaTeX_HEADER: {0.4em} % titleformat separation #+LaTeX_HEADER: {} % code preceeding title body *** TODO Look into using the =sectsty= package instead of =titlesec= because of its compatibility issues with =hyperref= [[http://tex.stackexchange.com/a/74517/52678][Reference]] = The awesome thing is that org will load only the "setup" stuff from a SETUPFILE file.. so it will pick up the #+LaTeX_HEADER lines from above, but not "* Latex Setup" or "** Change default font" or other things. Basically, only special comments will be read from SETUPFILE. On Thu, Jul 21, 2016 at 11:24 AM Eric S Fragawrote: > #+include: settings.org On Thu, Jul 21, 2016 at 7:10 AM Xebar Saram wrote: > Ok got it, you can "source" a template file by using the SETUPFILE option > , ie; > > #+SETUPFILE: /home/zeltak/org/files/Uni/Courses/templates/ > org.options.reveal.org > -- Kaushal Modi
Re: [O] orgmode read/source all options from a template file?
On Thursday, 21 Jul 2016 at 11:15, Xebar Saram wrote: > Hi all > > i was wondering if orgmode had a simple way to read/source all options > from a template file. for example instead of adding all this to every > presentation file i create: #+include: settings.org -- : Eric S Fraga (0xFFFCF67D), Emacs 24.5.1, Org release_8.3.2-164-g50a182
Re: [O] orgmode read/source all options from a template file?
Ok got it, you can "source" a template file by using the SETUPFILE option , ie; #+SETUPFILE: /home/zeltak/org/files/Uni/Courses/templates/ org.options.reveal.org best z On Thu, Jul 21, 2016 at 1:15 PM, Xebar Saramwrote: > Hi all > > i was wondering if orgmode had a simple way to read/source all options > from a template file. for example instead of adding all this to every > presentation file i create: > > #+OPTIONS: reveal_center:t reveal_progress:t reveal_history:nil > reveal_control:t > #+OPTIONS: reveal_center:t > #+OPTIONS: reveal_rolling_links:t reveal_keyboard:t reveal_overview:t > num:nil > #+OPTIONS: reveal_width:1200 reveal_height:800 > #+OPTIONS: toc:nil > # #+REVEAL: split > #+REVEAL_MARGIN: 0.1 > #+REVEAL_MIN_SCALE: 0.5 > > i would just source a file (txt or orgmode?) with all the pre definitions > > any clue? > > thx > > Z >
[O] orgmode read/source all options from a template file?
Hi all i was wondering if orgmode had a simple way to read/source all options from a template file. for example instead of adding all this to every presentation file i create: #+OPTIONS: reveal_center:t reveal_progress:t reveal_history:nil reveal_control:t #+OPTIONS: reveal_center:t #+OPTIONS: reveal_rolling_links:t reveal_keyboard:t reveal_overview:t num:nil #+OPTIONS: reveal_width:1200 reveal_height:800 #+OPTIONS: toc:nil # #+REVEAL: split #+REVEAL_MARGIN: 0.1 #+REVEAL_MIN_SCALE: 0.5 i would just source a file (txt or orgmode?) with all the pre definitions any clue? thx Z