setup.org (2771B)
1 #+LATEX_CLASS: gost 2 #+LATEX_CLASS_OPTIONS: [hidelinks,fontsize=14pt,paper=a4,pagesize,DIV=calc,noenddot] 3 #+LATEX_HEADER_EXTRA: \input{preamble} 4 #+OPTIONS: todo:nil title:nil ':t H:5 5 #+STARTUP: indent 6 #+PROPERTY: header-args:R :results graphics :exports results 7 8 * Config :noexport: 9 ** Emacs 10 #+begin_src elisp :exports none :results none 11 ;; GOST class 12 (add-to-list 'org-latex-classes 13 '("gost" 14 "\\documentclass{gost} 15 % default packages {{{ 16 [DEFAULT-PACKAGES]% }}} 17 % more packages {{{ 18 [PACKAGES]% }}} 19 % extra commands {{{ 20 [EXTRA]% }}}" 21 ("\\section{%s}" . "\\section*{%s}") 22 ("\\subsection{%s}" . "\\subsection*{%s}") 23 ("\\subsubsection{%s}" . "\\subsubsection*{%s}") 24 ("\\paragraph{%s}" . "\\paragraph*{%s}") 25 ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) 26 ;; do not include obsolete packages 27 (setq org-latex-default-packages-alist 28 '(("" "graphicx") 29 ("" "booktabs") 30 ("" "amsmath") 31 ("" "amssymb") 32 ("" "hyperref") 33 ("" "tikz") 34 ("" "cite") 35 ("" "url") 36 ("" "polyglossia") 37 )) 38 ;; auto-detect document language 39 (setq org-latex-hyperref-template 40 "%% meta data {{{ 41 \\hypersetup{ 42 pdfauthor={%a}, 43 pdftitle={%t}, 44 pdfkeywords={%k}, 45 pdfsubject={%d}, 46 pdfcreator={%c}, 47 pdflang={%L}, 48 unicode={true} 49 } 50 \\setdefaultlanguage{%l} 51 %% }}} 52 ") 53 ;; move table/figure captions to the bottom 54 (setq org-latex-caption-above nil) 55 ;; preserve original image width 56 (setq org-latex-image-default-width nil) 57 ;; booktabs tables 58 (setq org-export-latex-tables-hline "\\midrule") 59 (setq org-export-latex-tables-tstart "\\toprule") 60 (setq org-export-latex-tables-tend "\\bottomrule") 61 #+end_src 62 63 ** Download arma-benchmarks data from repository 64 #+begin_src sh :exports none :results verbatim 65 set -e 66 dir=build/arma-benchmarks 67 mkdir -p $dir 68 if ! test -d "$dir/.git" 69 then 70 git clone https://github.com/igankevich/arma-benchmarks $dir 71 fi 72 cd $dir 73 git checkout master 74 git pull 75 git checkout 7fee9b269c904b91163c596966e78b6f6d368d2e 76 #+end_src 77 78 #+RESULTS: 79 : Ваша ветка обновлена в соответствии с «origin/master». 80 : Уже обновлено. 81 ** Download bscheduler-benchmarks data from repository 82 #+begin_src sh :exports none :results verbatim 83 set -e 84 dir=build/bscheduler-benchmarks 85 mkdir -p $dir 86 if ! test -d "$dir/.git" 87 then 88 git clone https://github.com/igankevich/bscheduler-benchmarks $dir 89 fi 90 cd $dir 91 git checkout master 92 git pull 93 git checkout 67a82df53c68f601c2e297a30bd6958d3f35644c 94 #+end_src 95 96 #+RESULTS: 97 : Ваша ветка обновлена в соответствии с «origin/master». 98 : Уже обновлено.