org article; add glossaries and some snippets
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: Article
|
||||
# group: templates
|
||||
# group: Article Templates
|
||||
# key: ?article
|
||||
# --
|
||||
#+TITLE: ${1:Title}
|
||||
@@ -24,6 +24,7 @@
|
||||
:VISIBILITY: folded
|
||||
:END:
|
||||
#+LATEX: \clearpage\thispagestyle{empty}
|
||||
# uses keyword document_type
|
||||
#+BEGIN_abstract
|
||||
*{{{author}}}*
|
||||
|
||||
@@ -48,15 +49,14 @@
|
||||
#+LATEX: \thispagestyle{plain}
|
||||
|
||||
# List of Figures (# `#+TOC: figures' is not working)
|
||||
#+LATEX: \phantomsection\addcontentsline{toc}{section}{\listfigurename}\listoffigures
|
||||
#+LATEX: \listoffigures
|
||||
#+LATEX: \thispagestyle{plain}
|
||||
|
||||
# List of Tables
|
||||
#+LATEX: \phantomsection\addcontentsline{toc}{section}{\listtablename}
|
||||
#+TOC: tables
|
||||
#+LATEX: \thispagestyle{plain}
|
||||
|
||||
# List of Listings
|
||||
#+LATEX: \phantomsection\addcontentsline{toc}{section}{\lstlistlistingname}
|
||||
#+TOC: listings
|
||||
#+LATEX: \thispagestyle{plain}
|
||||
|
||||
@@ -117,3 +117,6 @@ $0
|
||||
:UNNUMBERED: nil
|
||||
:END:
|
||||
# ! UNNUMBERED: nil !
|
||||
|
||||
* Index :ignore:
|
||||
[[printindex:]]
|
||||
|
||||
29
snippets/org-mode/article-glossaries
Normal file
29
snippets/org-mode/article-glossaries
Normal file
@@ -0,0 +1,29 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: Article Glossaries
|
||||
# group: Article Templates
|
||||
# key: ?article-gls
|
||||
# --
|
||||
* Glossary, Acronym and List of Symbols :ignore:
|
||||
#+name: glossary
|
||||
| label | name | description | unit |
|
||||
|-------+-------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------|
|
||||
| tree | Tree | A woody plant | |
|
||||
| shrub | Shrub | A woody bush | |
|
||||
| api-g | API | An Application Programming Interface (API) is a particular set of rules and specifications that a software program can follow to access and make use of the services and resources provided by another particular software program that implements that API | |
|
||||
| w | \(w\) | Width | mm |
|
||||
| A | \(A\) | Area | mm^{2} |
|
||||
| L | \(L\) | Length | mm |
|
||||
| f | \(f\) | Eigen frequency | Hz |
|
||||
|
||||
#+name: acronyms
|
||||
| label | abbreviation | full form |
|
||||
|-------+--------------+-----------------------------------|
|
||||
| mimo | | multiple-input multiple output |
|
||||
| qos | QoS | quality-of-service |
|
||||
| bb | BB | branch and bound |
|
||||
| api | API | Application Programming Interface |
|
||||
|
||||
#+LATEX: \printglossary\thispagestyle{plain}
|
||||
#+LATEX: \printglossary[type=\acronymtype,title=Abkürzungsverzeichnis]\thispagestyle{plain}
|
||||
#+LATEX: \printglossary[type=symbols,style=mysymbols,title=Symbolverzeichnis]\thispagestyle{plain}
|
||||
#+LATEX: \glsaddallunused
|
||||
10
snippets/org-mode/article-img-svg
Normal file
10
snippets/org-mode/article-img-svg
Normal file
@@ -0,0 +1,10 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: Article Image svg
|
||||
# group: Article Templates
|
||||
# key: ?article-img-svg
|
||||
# --
|
||||
#+NAME: fig-svg
|
||||
#+CAPTION[Caption in ToC]: Caption at place
|
||||
#+ATTR_ORG: :width 100
|
||||
#+ATTR_LATEX: :width 0.1\textwidth
|
||||
[[./path.svg]]
|
||||
43
snippets/org-mode/article-img-tpl
Normal file
43
snippets/org-mode/article-img-tpl
Normal file
@@ -0,0 +1,43 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: Article Image Tikz
|
||||
# group: Article Templates
|
||||
# key: ?article-img-tpl
|
||||
# --
|
||||
#+HEADER: :file (tpl-file "test-tikz")
|
||||
#+HEADER: :results (tpl-results)
|
||||
#+BEGIN_src latex :exports results :wrap figure
|
||||
\begin{tikzpicture}
|
||||
\begin{axis}[
|
||||
width=12.5cm,
|
||||
height=5cm,
|
||||
title={},
|
||||
enlarge x limits=false,
|
||||
enlarge y limits=false,
|
||||
scale only axis,
|
||||
ymajorgrids,
|
||||
grid style={gray!30},
|
||||
axis lines=left,
|
||||
xticklabel style={/pgf/number format/.cd,fixed,fixed zerofill,precision=1},
|
||||
%xticklabel style={rotate=90,anchor=near xticklabel, /pgf/number format/1000 sep={}},
|
||||
xlabel={$x$ label},
|
||||
xlabel style ={yshift=-0.5cm},
|
||||
%xtick={0,1,...,3},
|
||||
xmin=0,
|
||||
xmax=3,
|
||||
ymin=0,
|
||||
ymax=10,
|
||||
ylabel={$y$ label},
|
||||
%yticklabel style={/pgf/number format/.cd,fixed,fixed zerofill,precision=2},
|
||||
%ytick={-1,0,...,3.5},
|
||||
]
|
||||
\addplot[red, thick, mark=x] table[x index=0, y index=1] {data.dat}; \label{tpl:y1}
|
||||
\addplot[blue, thick, mark=x] table[x index=0, y index=2] {data.dat}; \label{tpl:y2}
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
||||
#+END_src
|
||||
|
||||
#+ATTR_LATEX: :options [H] :caption \caption[Caption in ToC]{Caption at place with ref to \(y_{1}\) \ref{tpl:y1} and \(y_{2}\) \ref{tpl:y2}}
|
||||
#+RESULTS:
|
||||
#+begin_figure
|
||||
[[file:test-tikz.svg]]
|
||||
#+end_figure
|
||||
18
snippets/org-mode/article-los-old
Normal file
18
snippets/org-mode/article-los-old
Normal file
@@ -0,0 +1,18 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: Article List of Symbols
|
||||
# group: Article Templates
|
||||
# key: ?article-los-old
|
||||
# --
|
||||
* List of Symbols
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: sec-list-of-symbols
|
||||
:UNNUMBERED: t
|
||||
:TITLE: Symbols
|
||||
:END:
|
||||
#+ATTR_LATEX: :center nil :align @{}lll@{}
|
||||
| \(A\) | mm^{2} | Area |
|
||||
| \(L\) | mm | Length |
|
||||
| \(f\) | Hz | Eigen frequency |
|
||||
| \(J\) | | {{{textsc(Jacobi)}}}an determinant |
|
||||
| \(m\ti{ges}\) | kg | Total mass |
|
||||
| \(m_{ik}\ho{eff}\) | kg | Effective mass |
|
||||
15
snippets/org-mode/article-tbl
Normal file
15
snippets/org-mode/article-tbl
Normal file
@@ -0,0 +1,15 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: Article Table
|
||||
# group: Article Templates
|
||||
# key: ?article-tbl
|
||||
# --
|
||||
#+NAME: tbl-name
|
||||
#+CAPTION[Caption in ToC]: Caption at place
|
||||
#+ATTR_LATEX: :booktabs t :align rcl :placement [H]
|
||||
|--------+--------+--------|
|
||||
| right | center | left |
|
||||
|--------+--------+--------|
|
||||
| A1 | A2 | A2 |
|
||||
| B1.1 | B2.1 | B3.1 |
|
||||
| C1.1.1 | C2.1.1 | C3.1.1 |
|
||||
|--------+--------+--------|
|
||||
Reference in New Issue
Block a user