mainly fixed the PDF layout

This commit is contained in:
Phuntsok Drak-pa 2019-09-03 04:13:42 +02:00
parent 33dd081747
commit b1ef08db63
2 changed files with 49 additions and 33 deletions

View File

@ -4,14 +4,13 @@
#+HTML_HEAD: <meta name="description" content="Grammaire détaillée de lEittlandais" /> #+HTML_HEAD: <meta name="description" content="Grammaire détaillée de lEittlandais" />
#+HTML_HEAD: <meta property="og:title" content="Grammaire de lEittlandais" /> #+HTML_HEAD: <meta property="og:title" content="Grammaire de lEittlandais" />
#+HTML_HEAD: <meta property="og:description" content="Grammaire détaillée de lidéolangue Eittlandaise" /> #+HTML_HEAD: <meta property="og:description" content="Grammaire détaillée de lidéolangue Eittlandaise" />
#+LATEX_CLASS: book #+LATEX_CLASS: conlang
#+LATEX_HEADER: \usepackage{tocloft} \setlength{\cftchapnumwidth}{3em}
#+LATEX_HEADER: \usepackage{allrunes} #+LATEX_HEADER: \usepackage{allrunes}
#+MACRO: rune-manual @@latex:\textara{$1}@@ @@html:$2@@ #+MACRO: rune-manual @@latex:\textara{$1}@@ @@html:$2@@
#+MACRO: rune (eval (conlanging/eittlanda-org-export-runes "$1")) #+MACRO: rune (eval (conlanging/eittlanda-org-export-runes "$1"))
#+STARTUP: align shrink #+STARTUP: align shrink
#+OPTIONS: toc:nil auto-id:t #+OPTIONS: auto-id:t
#+TOC: headlines # #+TOC: headlines
* Propos préliminaires * Propos préliminaires
:PROPERTIES: :PROPERTIES:
@ -176,6 +175,7 @@
trouvé avec la carte [[img:map-typo]] trouvé avec la carte [[img:map-typo]]
#+NAME: img:map-typo #+NAME: img:map-typo
#+ATTR_LATEX: :float sideways
#+CAPTION: Topologie dEittlande #+CAPTION: Topologie dEittlande
[[./img/eittlanda/map-hq.jpg]] [[./img/eittlanda/map-hq.jpg]]
@ -205,8 +205,9 @@
Il nomma alors son fils co-roi Il nomma alors son fils co-roi
#+NAME: Eittland-kings #+NAME: Eittland-kings:1
#+CAPTION: Liste des rois Eittlandais #+ATTR_LATEX: :float sideways
#+CAPTION: Liste des rois Eittlandais de 915 à 1392
| <l5> | <l5> | <l5> | <l5> | <l5> | <l5> | <l5> | <l5> | <l5> | <l5> | | <l5> | <l5> | <l5> | <l5> | <l5> | <l5> | <l5> | <l5> | <l5> | <l5> |
| roi | naissance | mort | âge | règne | co-roi | naissance | mort | âge | règne | | roi | naissance | mort | âge | règne | co-roi | naissance | mort | âge | règne |
|-------------------------------+-----------+------+------+-----------+--------------------------------+-----------+------+------+-----------| |-------------------------------+-----------+------+------+-----------+--------------------------------+-----------+------+------+-----------|

View File

@ -4,36 +4,24 @@
#+CREATOR: Lucien Cartier-Tilet #+CREATOR: Lucien Cartier-Tilet
#+LANGUAGE: fr #+LANGUAGE: fr
# ### LaTeX ####################################################################
#+LATEX_CLASS: article
#+LaTeX_CLASS_OPTIONS: [a5paper,twoside]
#+LATEX_HEADER: \usepackage{xltxtra,fontspec,xunicode}
#+LATEX_HEADER: \usepackage[total={11cm,17cm}]{geometry}
#+LATEX_HEADER: \setromanfont{Charis SIL}
#+LATEX_HEADER: \usepackage{xcolor}
#+LATEX_HEADER: \usepackage{hyperref}
#+LATEX_HEADER: \hypersetup{colorlinks=true,linkbordercolor=red,linkcolor=blue,pdfborderstyle={/S/U/W 1}}
#+LATEX_HEADER: \usepackage{multicol}
#+LATEX_HEADER: \usepackage{indentfirst}
#+LATEX_HEADER: \sloppy
# ### HTML #####################################################################
#+HTML_DOCTYPE: html5
#+HTML_HEAD: <script src="https://kit.fontawesome.com/4d42d0c8c5.js"></script>
#+HTML_HEAD: <script src="https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js"></script>
#+HTML_HEAD: <link rel="shortcut icon" href="https://cdn.phundrak.fr/img/mahakala-128x128.png" type="img/png" media="screen" />
#+HTML_HEAD: <link rel="shortcut icon" href="https://cdn.phundrak.fr/img/favicon.ico" type="image/x-icon" media="screen" />
#+HTML_HEAD: <meta property="og:image" content="https://cdn.phundrak.fr/img/rich_preview.png" />
#+HTML_HEAD: <meta name="twitter:card" content="summary" />
#+HTML_HEAD: <meta name="twitter:site" content="@phundrak" />
#+HTML_HEAD: <meta name="twitter:creator" content="@phundrak" />
# ### CODE ##################################################################### # ### CODE #####################################################################
#+name: setup
#+begin_src emacs-lisp :results silent :exports none
(unless (find "per-file-class" org-latex-classes :key 'car
:test 'equal)
(add-to-list 'org-latex-classes
'("conlang"
"\\documentclass{book}"
;; ("\\part{%s}" . "\\part*{%s}")
("\\chapter{%s}" . "\\chapter*{%s}")
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))))
#+end_src
#+NAME: tree-dot #+NAME: tree-dot
#+BEGIN_SRC emacs-lisp :noweb yes :exports none :eval yes :cache yes #+BEGIN_SRC emacs-lisp :noweb yes :exports none :eval yes
(defun declare-node (node-text node-generation) (defun declare-node (node-text node-generation)
"Declares a node in the graphviz source code. The nodes identifier will be "Declares a node in the graphviz source code. The nodes identifier will be
~node-generation~, and it will bear the label ~node-text~." ~node-generation~, and it will bear the label ~node-text~."
@ -85,6 +73,33 @@
"}"))) "}")))
#+END_SRC #+END_SRC
# ### LaTeX ####################################################################
#+LATEX_CLASS: conlang
#+LaTeX_CLASS_OPTIONS: [a4paper,twoside]
#+LATEX_HEADER: \usepackage{tocloft} \setlength{\cftchapnumwidth}{3em}
#+LATEX_HEADER: \usepackage{xltxtra,fontspec,xunicode}
#+LATEX_HEADER: \usepackage[total={17cm,22cm}]{geometry}
#+LATEX_HEADER: \setromanfont{Charis SIL}
#+LATEX_HEADER: \usepackage{xcolor}
#+LATEX_HEADER: \usepackage{hyperref}
#+LATEX_HEADER: \hypersetup{colorlinks=true,linkbordercolor=red,linkcolor=blue,pdfborderstyle={/S/U/W 1}}
#+LATEX_HEADER: \usepackage{multicol}
#+LATEX_HEADER: \usepackage{indentfirst}
#+LATEX_HEADER: \sloppy
# ### HTML #####################################################################
#+HTML_DOCTYPE: html5
#+HTML_HEAD: <script src="https://kit.fontawesome.com/4d42d0c8c5.js"></script>
#+HTML_HEAD: <script src="https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js"></script>
#+HTML_HEAD: <link rel="shortcut icon" href="https://cdn.phundrak.fr/img/mahakala-128x128.png" type="img/png" media="screen" />
#+HTML_HEAD: <link rel="shortcut icon" href="https://cdn.phundrak.fr/img/favicon.ico" type="image/x-icon" media="screen" />
#+HTML_HEAD: <meta property="og:image" content="https://cdn.phundrak.fr/img/rich_preview.png" />
#+HTML_HEAD: <meta name="twitter:card" content="summary" />
#+HTML_HEAD: <meta name="twitter:site" content="@phundrak" />
#+HTML_HEAD: <meta name="twitter:creator" content="@phundrak" />
# ### MACROS ################################################################### # ### MACROS ###################################################################
#+MACRO: newline @@latex:\hspace{0pt}\\@@ @@html:<br>@@ #+MACRO: newline @@latex:\hspace{0pt}\\@@ @@html:<br>@@
#+MACRO: newpage @@latex:\newpage@@ #+MACRO: newpage @@latex:\newpage@@