diff --git a/configuration.org b/configuration.org index bde966cf4eb4061715c77203d123d19173f6e237..eab3e8b7988f2947faeb4c197487acb898b695f8 100644 --- a/configuration.org +++ b/configuration.org @@ -439,6 +439,31 @@ Add shortcuts to quickly add code blocks using =C-,= '("el" . "src emacs-lisp")) #+end_src +** Latex export + +Use =latexmk= to export to Latex + +#+begin_src emacs-lisp :exports code +(setq org-latex-pdf-process (list "latexmk -pdflatex='pdflatex -shell-escape -interaction nonstopmode' -pdf %f")) +#+end_src + + +Use =org-ref= for citation + +#+begin_src emacs-lisp +(use-package org-ref) +(use-package org-ref-prettify) +#+end_src + + +And use the same shortcut for =org-reftex-citation= than for =reftex-citation= + +#+begin_src emacs-lisp +(define-key org-mode-map (kbd "C-c [") 'org-reftex-citation) +#+end_src + +#+RESULTS: +: org-reftex-citation ** Visuals @@ -602,6 +627,9 @@ using bootstrap template. ;; bootstrap html (use-package ox-twbs) + +;; Export using pandoc +(use-package ox-pandoc) #+end_src #+RESULTS: @@ -700,6 +728,15 @@ Set line count limit before using =begin_example= blocs in code evaluation resul #+RESULTS: : 10 +* Markdown mode + +I use pandoc to generate html output from markdown file. In order to +export a standalone file with the correct options, I set pandoc call here + +#+begin_src emacs-lisp +(setq markdown-command "pandoc --standalone --mathjax") +#+end_src + * Completion setup I use [[http://company-mode.github.io/][company]] mode for completion. It provides a visual completion @@ -922,6 +959,7 @@ For dockerfiles and docker-compose files, install some docker packages (use-package dockerfile-mode) (use-package docker-compose-mode) (use-package docker) +(use-package docker-tramp) (use-package docker-api) (use-package docker-cli) #+end_src diff --git a/snippets/org-mode/shrink b/snippets/org-mode/shrink new file mode 100644 index 0000000000000000000000000000000000000000..2261f4e593799e3e8c3b5bf451ceac8e5abf5002 --- /dev/null +++ b/snippets/org-mode/shrink @@ -0,0 +1,3 @@ +:PROPERTIES: +:BEAMER_OPT: shrink +:END: \ No newline at end of file