clean up / update org article, latex preamble and template
This commit is contained in:
@@ -56,6 +56,86 @@
|
||||
\\mkern-4mu%
|
||||
\\raisebox{#5\\ht2}{\\usebox2}%
|
||||
}" t) ;; http://tex.stackexchange.com/questions/27591/extending-the-faktor-package/27735#27735"
|
||||
(add-to-list 'org-latex-default-packages-alist '("thinspace,thinqspace,squaren,Gray" "SIunits" nil) t)
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand{\\field}[1]{\\ensuremath{\\mathds{#1}}}" t) ;; \field{X} defined with mathds
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand{\\fA}{\\field{A}}" t) ;; \fA Affine field A
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand{\\fC}{\\field{C}}" t) ;; \fC Complex field C
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand{\\fFp}{\\ensuremath{\\field{F}_{\\!p}}}" t) ;; \fFp Finite field F_p
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand{\\fFq}{\\ensuremath{\\field{F}_{\\!q}}}" t) ;; \fFq Finite field F_q
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand{\\fGa}{\\ensuremath{\\field{G}_{a}}}" t) ;; \fGa Group scheme G_a
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand{\\fK}{\\field{K}}" t) ;; \fK Generic field K (Körper)
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand{\\fN}{\\field{N}}" t) ;; \fN Natural numbers N
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand{\\fPj}{\\field{P}}" t) ;; \fPj Projective field P
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand{\\fR}{\\field{R}}" t) ;; \fR Real numbers R
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand{\\fQ}{\\field{Q}}" t) ;; \fQ Rational numbers Q
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand{\\fI}{\\field{I}}" t) ;; \fI Irrational numbers I
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand{\\fZ}{\\field{Z}}" t) ;; \fZ Integers Z
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand{\\Def}{\\field{D}}" t) ;; \Def Domain of a function (Definitionsbereich)
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand{\\LM}{\\field{L}}" t) ;; \LM Solution set (Lösungsmenge)
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand{\\fdg}{\\;|\\;}" t) ;; \fdg 'für die gilt'
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand*{\\qed}{\\hfill\\ensuremath{\\blacksquare}}" t) ;; \qed Q.E.D. quod erat demonstrandum "what was to be shown" -> "which was to be demonstrated"
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand*\\euler{\\mathrm{e}}" t) ;; \euler e
|
||||
(add-to-list 'org-latex-default-packages-alist '("" "xspace" nil) t) ;; for \deg
|
||||
(add-to-list 'org-latex-default-packages-alist "\\renewcommand{\\deg}{\\ensuremath{^{\\circ}}\\xspace}" t) ;; for text \deg ° degree
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand\\degC{{\\,^{\\circ}\\mathrm{C}}}" t) ;; \degC °C
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand\\sins{{\\mathrm{s}}}" t) ;; \sins short sin: s
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand\\coss{{\\mathrm{c}}}" t) ;; \coss short cos: c
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand{\\T}{{\\mathrm{T}}\\!}" t) ;; \T Transpose operator
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand{\\TF}{{\\raisebox{-0.5ex}{$\\sim$}}}" t) ;; \TF sign for transfomed values: low tilde
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand{\\adj}{{\\mathrm{H}}}" t) ;; \adj Adjoint operator
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand*\\dif{\\mathop{}\\!\\mathrm{d}}" t) ;; \dif
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand*\\E{\\ensuremath{\\mathrm{E}}}" t) ;; \E
|
||||
(add-to-list 'org-latex-default-packages-alist "\\providecommand{\\norm}[1]{\\lVert #1 \\rVert}" t) ;; \norm{x} ||x||
|
||||
(add-to-list 'org-latex-default-packages-alist "\\providecommand{\\abs}[1]{\\lvert #1 \\rvert}" t) ;; \abs{x} |x|
|
||||
(add-to-list 'org-latex-default-packages-alist "\\providecommand{\\innerProd}[2]{\\langle #1, #2\\rangle}" t) ;; \innerProd{x}{y} <x,y>
|
||||
(add-to-list 'org-latex-default-packages-alist "\\DeclareMathOperator{\\Bild}{Bild}" t) ;; \Bild Map of a function (mapping, transformation)
|
||||
(add-to-list 'org-latex-default-packages-alist "\\DeclareMathOperator{\\rank}{rank}" t) ;; \rank Rank of a matrix
|
||||
(add-to-list 'org-latex-default-packages-alist "\\DeclareMathOperator{\\tr}{tr}" t) ;; \tr Matrix trace
|
||||
(add-to-list 'org-latex-default-packages-alist "\\DeclareMathOperator{\\dev}{dev}" t) ;; \dev Matrix deviation
|
||||
(add-to-list 'org-latex-default-packages-alist "\\DeclareMathOperator{\\var}{var}" t) ;; \var Variance
|
||||
(add-to-list 'org-latex-default-packages-alist "\\DeclareMathOperator{\\grad}{grad}" t) ;; \(\grad u\) = grad u
|
||||
(add-to-list 'org-latex-default-packages-alist "\\DeclareMathOperator{\\divergence}{div}" t) ;; \(\div u\) = div u
|
||||
(add-to-list 'org-latex-default-packages-alist "\\DeclareMathOperator{\\rot}{rot}" t) ;; \(\rot u\) = rot u
|
||||
(add-to-list 'org-latex-default-packages-alist "\\DeclareMathOperator{\\diag}{diag}" t) ;; Diagonal matrix
|
||||
(add-to-list 'org-latex-default-packages-alist "\\DeclareMathOperator{\\adjugate}{adj}" t) ;; Classical adjoint (adjugate)
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand*\\corresponds{\\mbox{\\kern0em\\raisebox{-.5ex}{\\Large\\^{}}\\kern-.55em\\raisebox{-.1ex}{=}}\\ }" t)
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand*{\\dt}[1]{\\overset{\\mbox{\\large\\bfseries .}}{#1}}" t)
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand*{\\ddt}[1]{\\overset{\\mbox{\\large\\bfseries .\\hspace{-0.1ex}.}}{#1}}" t)
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand*{\\Eval}[3]{{\\left.#1\\phantom{\\Big|}\\!\\!\\right\\rvert_{#2}^{#3}}}" t)
|
||||
(add-to-list 'org-latex-default-packages-alist '("" "accents" nil) t) ;; tensors
|
||||
(add-to-list 'org-latex-default-packages-alist '("" "ushort" nil) t)
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand{\\tensor}[1]{\\ensuremath{{\\boldsymbol{#1}}}}" t)
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand{\\tensorI}[1]{\\ensuremath{\\ushort{{\\boldsymbol{#1}}}}}" t)
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand{\\tensorII}[1]{\\ensuremath{\\ushortd{{\\boldsymbol{#1}}}}}" t)
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand{\\tensorIII}[1]{\\ensuremath{\\underaccent{3}{\\underaccent{\\tilde}{{\\boldsymbol{#1}}}}}}" t)
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand{\\tensorIV}[1]{\\ensuremath{\\underaccent{4}{\\underaccent{\\tilde}{{\\boldsymbol{#1}}}}}}" t)
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand{\\tensori}[1]{
|
||||
\\tikz[baseline, anchor=base,inner sep=0pt]{
|
||||
\\node{\\ensuremath{\\phantom{#1\\vphantom{\\overrightharpoon{b}}}}};
|
||||
\\node[overlay]{ \\ensuremath{ \\overrightharpoon{ \\mbox{\\ensuremath{\\boldsymbol{#1}}\\vphantom{b}} } } };
|
||||
}
|
||||
}" t)
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand{\\tensorii}[1]{
|
||||
\\tikz[baseline, anchor=base,inner sep=0pt]{
|
||||
\\node{\\ensuremath{\\phantom{#1\\vphantom{\\overrightharpoon{b}}}}};
|
||||
\\node[overlay]{ \\ensuremath{ \\overrightharpoon{ \\mbox{\\ensuremath{\\boldsymbol{#1}}\\vphantom{b}} } } };
|
||||
\\node[overlay]{ \\reflectbox{ \\ensuremath{ \\overrightharpoon{ \\phantom{ \\mbox{\\ensuremath{\\boldsymbol{#1}}\\vphantom{b}} } } } } };
|
||||
}
|
||||
}" t)
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand{\\tensoriii}[1]{
|
||||
\\tikz[baseline, anchor=base,inner sep=0pt]{
|
||||
\\node{\\ensuremath{\\phantom{#1\\vphantom{\\overrightharpoon{b}}}}};
|
||||
\\node[overlay]{ \\ensuremath{ \\overrightarrow{ \\mbox{\\ensuremath{\\boldsymbol{#1}}\\vphantom{b}} } } };
|
||||
\\node[overlay]{ \\reflectbox{ \\ensuremath{ \\overrightharpoon{ \\phantom{ \\mbox{\\ensuremath{\\boldsymbol{#1}}\\vphantom{b}} } } } } };
|
||||
}
|
||||
}" t)
|
||||
(add-to-list 'org-latex-default-packages-alist "\\newcommand{\\tensoriv}[1]{
|
||||
\\tikz[baseline, anchor=base,inner sep=0pt]{
|
||||
\\node{\\ensuremath{\\phantom{#1\\vphantom{\\overrightharpoon{b}}}}};
|
||||
\\node[overlay]{ \\ensuremath{ \\overrightarrow{ \\mbox{\\ensuremath{\\boldsymbol{#1}}\\vphantom{b}} } } };
|
||||
\\node[overlay]{ \\reflectbox{ \\ensuremath{ \\overrightarrow{ \\phantom{ \\mbox{\\ensuremath{\\boldsymbol{#1}}\\vphantom{b}} } } } } };
|
||||
}
|
||||
}" t)
|
||||
;; also added to `my-org-article-latex-default-packages-alist'
|
||||
|
||||
;; convert table #+name: glossary to \newglossaryentry to latex_header_extra
|
||||
@@ -145,10 +225,19 @@
|
||||
(add-to-list
|
||||
'org-export-global-macros
|
||||
'("kbd" . "@@html:<kbd>$1</kbd>@@@@latex:\\keys{$1}@@") t)
|
||||
;; (delete '("kbd" . "@@html:<kbd>$1</kbd>@@") org-export-global-macros)
|
||||
(add-to-list
|
||||
'org-export-global-macros
|
||||
'("color" . "@@html:<font color=\"#$1\">$2</font>@@@@latex:\\textcolor[HTML]{$1}{$2}@@"))
|
||||
(add-to-list
|
||||
'org-export-global-macros
|
||||
'("highlight" . (eval (concat "@@html:<mark style=\""
|
||||
(unless (string-empty-p $2) (concat "background-color:" $2 ";"))
|
||||
(unless (string-empty-p $3) (concat "border:1px solid " $3 ";"))
|
||||
">" $1 "</mark>@@"
|
||||
"@@latex:\\highlight["
|
||||
(unless (string-empty-p $2) (concat $2 ","))
|
||||
(unless (string-empty-p $3) (concat "draw=" $3))
|
||||
"]{" $1 "}@@"))) t)
|
||||
;; QUOTATION
|
||||
;;; quotation mark (auto language, html using main language)
|
||||
(add-to-list
|
||||
@@ -484,13 +573,15 @@ points to references.bib")
|
||||
;;; LISTINGS lstlistingname for the caption of listings and lstlistlistingname for the table of listings
|
||||
:lstlistingname-en "\\renewcommand{\\lstlistlistingname}{List of Listings}"
|
||||
:lstlistingname-de "\\renewcommand{\\lstlistingname}{Programmausdruck}\\renewcommand{\\lstlistlistingname}{Programmausdrucke}"
|
||||
:siunitx-en ""
|
||||
:siunitx-de "\\sisetup{locale = DE}"
|
||||
)
|
||||
"Replacements.
|
||||
:documentclass-xx used in
|
||||
`my-org-article-latex-default-class-options' all other in
|
||||
`my-org-article-latex-header' template replacements in
|
||||
`my-org-article-latex-template-value' IMPORTANT an 'en' version
|
||||
must be defined. This is the fallback for language
|
||||
`my-org-article-latex-default-class-options' as <<documentclass>>
|
||||
all other in `my-org-article-latex-header' template replacements
|
||||
in `my-org-article-latex-template-value' IMPORTANT an 'en'
|
||||
version must be defined. This is the fallback for language
|
||||
replacements.")
|
||||
|
||||
(defcustom my-org-article-latex-default-class-options
|
||||
@@ -508,7 +599,7 @@ replacements.")
|
||||
DIV=12,
|
||||
BCOR=10mm,
|
||||
headsepline,
|
||||
<<documentclass>>,
|
||||
%<<documentclass>>,
|
||||
captions=tableheading,
|
||||
version=first,
|
||||
bibliography=totoc,
|
||||
@@ -533,13 +624,14 @@ Replaces <<...>> with values defined in
|
||||
(defcustom my-org-article-latex-header
|
||||
;; see also `my-org-article-latex-default-packages-alist'
|
||||
"\
|
||||
<<draft>>
|
||||
<<babel>>
|
||||
<<fontspec>>
|
||||
<<lstlistingname>>
|
||||
%<<draft>>
|
||||
%<<babel>>
|
||||
%<<fontspec>>
|
||||
%<<lstlistingname>>
|
||||
\\def\\nameappendix{Appendix}
|
||||
<<biblatex>>
|
||||
<<csquotes>>
|
||||
%<<biblatex>>
|
||||
%<<csquotes>>
|
||||
%<<siunitx>>
|
||||
" "Inserted after `my-org-article-latex-default-packages-alist'.")
|
||||
(defcustom my-org-article-latex-header-bak
|
||||
"
|
||||
@@ -945,44 +1037,6 @@ Replaces <<...>> with values defined in
|
||||
\\makeatother
|
||||
% \\includegraphics[dpi=600,clip,trim=0 100px 200px 100px]{Figure-a} % 600 dpi
|
||||
|
||||
% um eps-Dateien einzubinden (\\epsfig{file=...})
|
||||
%\\usepackage{epsfig}
|
||||
|
||||
\\makeatletter
|
||||
\\renewcommand*\\l@figure{\\@dottedtocline{1}{0em}{2.8em}}
|
||||
\\renewcommand*\\l@table{\\@dottedtocline{1}{0em}{2.3em}}
|
||||
\\makeatother
|
||||
|
||||
|
||||
%##############
|
||||
% SVG Einbinden
|
||||
%##############
|
||||
\\usepackage{svg}
|
||||
\\newcommand{\\executeiffilenewer}[3]{%
|
||||
\\ifnum\\pdfstrcmp{\\pdffilemoddate{#1}}%
|
||||
{\\pdffilemoddate{#2}}>0%
|
||||
{\\immediate\\write18{#3}}\\fi%
|
||||
}
|
||||
% set inkscape binary path according to operating-system
|
||||
\\IfFileExists{/dev/null}{%
|
||||
\\newcommand{\\Inkscape}{inkscape}%
|
||||
}{%
|
||||
%\\newcommand{\\Inkscape}{\"/usr/bin/inkscape\" }%
|
||||
\\newcommand{\\Inkscape}{inkscape}%
|
||||
}
|
||||
% includesvg[scale]{file} command
|
||||
%\\newcommand{\\includesvg}[2][1]{%
|
||||
% \\executeiffilenewer{#2.svg}{#2.pdf}{%
|
||||
% \\Inkscape -z -D --file=\"#2.svg\" --export-pdf=\"#2.pdf\" --export-latex }%
|
||||
% \\scalebox{#1}{\\input{#2.pdf_tex}}%
|
||||
%}
|
||||
|
||||
% usage example:
|
||||
% \\begin{center}
|
||||
% \\includesvg[2]{filename}
|
||||
% \\end{center}
|
||||
|
||||
|
||||
|
||||
% Diagramme
|
||||
\\usepackage[all]{xy}
|
||||
@@ -996,15 +1050,11 @@ Replaces <<...>> with values defined in
|
||||
\\usepackage{multicol}
|
||||
% fuer mehrreihigen Text auf einer Seite
|
||||
\\usepackage{multirow}
|
||||
|
||||
\\usepackage{array}
|
||||
\\usepackage{eqnarray}
|
||||
\\newcolumntype{P}[1]{>{\\raggedright\\arraybackslash}p{#1}}
|
||||
\\newcolumntype{C}[1]{>{\\centering}p{#1}<{}}
|
||||
%\\newcolumntype{L}[1]{>{\\raisebox{\\heightof{\\rule{0pt}{1cm}}}{}}p{#1}}
|
||||
% Anzahl Zeilen, Weite, Inhalt
|
||||
\\newcommand{\\multirowr}[3]{\\multirow{#1}{*}{\\parbox{#2}{\\raggedright #3}}}
|
||||
|
||||
\\usepackage{eqnarray}
|
||||
|
||||
\\usepackage{spreadtab} % Rechenmöglichkeit in Tabellen
|
||||
|
||||
|
||||
@@ -1012,13 +1062,6 @@ Replaces <<...>> with values defined in
|
||||
%%%
|
||||
%%% LISTINGS
|
||||
%%%
|
||||
\\lstdefinelanguage{example}{
|
||||
}
|
||||
\\lstdefinelanguage{calc}{
|
||||
}
|
||||
\\lstdefinelanguage{shell}{
|
||||
}
|
||||
|
||||
% BEFORE loading tikz!?
|
||||
\\lstdefinestyle{tex}{
|
||||
language=[LaTeX]tex,
|
||||
@@ -1047,169 +1090,6 @@ Replaces <<...>> with values defined in
|
||||
% another slanted fration below at tikz
|
||||
|
||||
|
||||
% \\usepackage[ % kann nicht mit amssymb zusammenlaufen
|
||||
% thinspace,
|
||||
% thinqspace, % use of \\, (thin math space) as spacing
|
||||
% %mediumqspace, % use of \\: (medium math space) as spacing
|
||||
% %thickqspace, % use of \\; (thick math space) as spacing
|
||||
% squaren, % defines a new command \\squaren that can be used instead of the SIunits command \\square, to prevent errors with the defined \\square command of the amssymb package. Or use amssymb to redefine \\sqare
|
||||
% Gray, % defines a new command \\gray that can be used instead of the SIunits command \\gray, to prevent errors with the defined \\gray command of the amssymb package. Or use pstricks to redefine \\gray
|
||||
% %textstyle,
|
||||
% ]{SIunits}
|
||||
|
||||
% siunitx is written by Joseph Wright who did, for a time, maintain SIunits. siunitx replaces SIunits and another package called SIstyle. It is a complete reimplementation of the basic idea.
|
||||
\\usepackage[]{siunitx}
|
||||
\\DeclareSIUnit{\\EUR}{\\text{\\euro}}
|
||||
%obsolete \\usepackage[thinspace, thinqspace, squaren, Gray,]{SIunits}
|
||||
|
||||
%Mathematische Schrifterweiterungen
|
||||
% use \\mathds{A} alternative zu mathbb
|
||||
\\usepackage{dsfont}
|
||||
% for tensori; incompatible with the amssymb and amsfonts, automatically loads the amsmath and textcomp
|
||||
\\usepackage{MnSymbol}
|
||||
|
||||
% Mengensymbole
|
||||
% Grundkörper in mathds
|
||||
\\newcommand{\\field}[1]{\\ensuremath{\\mathds{#1}} }
|
||||
% Affines A
|
||||
\\newcommand{\\fA}{\\field{A}}
|
||||
% Complexes C
|
||||
\\newcommand{\\fC}{\\field{C}}
|
||||
% Endlicher Koerper
|
||||
\\newcommand{\\fFp}{\\ensuremath{\\field{F}_{\\!p}} }
|
||||
% Endlicher Koerper
|
||||
\\newcommand{\\fFq}{\\ensuremath{\\field{F}_{\\!q}} }
|
||||
% Add Gruppenschema
|
||||
\\newcommand{\\fGa}{\\ensuremath{\\field{G}_{a}} }
|
||||
% Generischer Koerper
|
||||
\\newcommand{\\fK}{\\field{K}}
|
||||
% Nat Zahlen
|
||||
\\newcommand{\\fN}{\\field{N}}
|
||||
% Projektives P
|
||||
\\newcommand{\\fPj}{\\field{P}}
|
||||
% Reelle Zahlen
|
||||
\\newcommand{\\fR}{\\field{R}}
|
||||
% Rationale Zahlen
|
||||
\\newcommand{\\fQ}{\\field{Q}}
|
||||
% Irrationale Zahlen I=R\\Q
|
||||
\\newcommand{\\fI}{\\field{I}}
|
||||
% Ganze Zahlen
|
||||
\\newcommand{\\fZ}{\\field{Z}}
|
||||
% fuer die gilt
|
||||
\\newcommand{\\fdg}{\\;|\\;}
|
||||
% Definitionsbereich
|
||||
\\newcommand{\\Def}{\\field{D}}
|
||||
% Lösungsmenge
|
||||
\\newcommand{\\LM}{\\field{L}}
|
||||
\\newcommand*{\\qed}{\\hfill\\ensuremath{\\blacksquare}}
|
||||
\\newcommand*\\euler{\\mathrm{e}}
|
||||
\\renewcommand{\\deg}{\\ensuremath{^{\\circ}}\\xspace}
|
||||
\\newcommand\\degC{{\\,^{\\circ}\\mathrm{C}}}
|
||||
% short sin: s
|
||||
\\newcommand\\sins{{\\mathrm{s}}}
|
||||
% short cos: c
|
||||
\\newcommand\\coss{{\\mathrm{c}}}
|
||||
|
||||
% Transpose operator
|
||||
\\newcommand{\\T}{{\\mathrm{T}}\\!}
|
||||
% sign for transfomed values: low tilde
|
||||
\\newcommand{\\TF}{{\\raisebox{-0.5ex}{$\\sim$}}}
|
||||
% Adjoint operator
|
||||
\\newcommand{\\adj}{{\\mathrm{H}}}
|
||||
\\newcommand*\\dif{\\mathop{}\\!\\mathrm{d}}
|
||||
\\newcommand*\\E{\\ensuremath{\\mathrm{E}}}
|
||||
|
||||
% ||x||
|
||||
\\providecommand{\\norm}[1]{\\lVert #1 \\rVert}
|
||||
% |x|
|
||||
\\providecommand{\\abs}[1]{\\lvert #1 \\rvert}
|
||||
% <x,y>
|
||||
\\providecommand{\\innerProd}[2]{\\langle #1, #2\\rangle}
|
||||
|
||||
% Bild einer Funktion
|
||||
\\DeclareMathOperator{\\Bild}{Bild}
|
||||
% Rank of a matrix
|
||||
\\DeclareMathOperator{\\rank}{rank}
|
||||
% Matrix trace
|
||||
\\DeclareMathOperator{\\tr}{tr}
|
||||
% Matrix deviation
|
||||
\\DeclareMathOperator{\\dev}{dev}
|
||||
% Variance
|
||||
\\DeclareMathOperator{\\var}{var}
|
||||
% $\\grad u$ = grad u
|
||||
\\DeclareMathOperator{\\grad}{grad}
|
||||
% $\\div u$ = div u
|
||||
\\DeclareMathOperator{\\divergence}{div}
|
||||
% $\\rot u$ = rot u
|
||||
\\DeclareMathOperator{\\rot}{rot}
|
||||
% Diagonal matrix
|
||||
\\DeclareMathOperator{\\diag}{diag}
|
||||
% Classical adjoint (adjugate)
|
||||
\\DeclareMathOperator{\\adjugate}{adj}
|
||||
|
||||
%\\newcommand{\\corresponds}{\\ensuremath{\\stackrel{\\wedge}{=} \\hat{=} \\mathop{\\hat{=}} \\substack{\\wedge\\\\=} \\mathrel{\\widehat{=}} } \\^{=} }
|
||||
\\newcommand*\\corresponds{%
|
||||
\\mbox{\\kern0em
|
||||
\\raisebox{-.5ex}{\\Large\\^{}}\\kern-.55em%
|
||||
\\raisebox{-.1ex}{=}%
|
||||
}\\ %
|
||||
}
|
||||
|
||||
\\newcommand*{\\dt}[1]{%
|
||||
\\overset{\\mbox{\\large\\bfseries .}}{#1}}
|
||||
\\newcommand*{\\ddt}[1]{%
|
||||
\\overset{\\mbox{\\large\\bfseries .\\hspace{-0.1ex}.}}{#1}}
|
||||
|
||||
\\newcommand*{\\Eval}[3]{%
|
||||
{\\left.#1\\phantom{\\Big|}\\!\\!\\right\\rvert_{#2}^{#3}}}
|
||||
|
||||
% both for tensor
|
||||
\\usepackage{accents}
|
||||
\\usepackage{ushort}
|
||||
%\\usepackage{ulem} % not for math mode, too much space below with uuline; for tensor
|
||||
|
||||
\\newcommand{\\tensor}[1]{ \\ensuremath{ {\\boldsymbol{#1}} } }
|
||||
|
||||
\\newcommand{\\tensorI}[1]{ \\ensuremath{ \\ushort{ {\\boldsymbol{#1}} } } }
|
||||
\\newcommand{\\tensorII}[1]{ \\ensuremath{ \\ushortd{{\\boldsymbol{#1}} } } }
|
||||
\\newcommand{\\tensorIII}[1]{ \\ensuremath{ \\underaccent{3}{ \\underaccent{\\tilde}{ {\\boldsymbol{#1}} } } } }
|
||||
\\newcommand{\\tensorIV}[1]{ \\ensuremath{ \\underaccent{4}{ \\underaccent{\\tilde}{ {\\boldsymbol{#1}} } } } }
|
||||
% bm variant
|
||||
%\\usepackage{bm} % load bm after amsmath and after your font packages!; for tensor
|
||||
%\\newcommand{\\tensorI}[1]{ \\ensuremath{ \\uline{ \\bm{#1} } } }
|
||||
%\\newcommand{\\tensorII}[1]{ \\ensuremath{ \\uuline{ \\bm{#1} } } }
|
||||
%\\newcommand{\\tensorIII}[1]{ \\ensuremath{ \\underaccent{3}{ \\underaccent{\\tilde}{ \\bm{#1} } } } }
|
||||
%\\newcommand{\\tensorIV}[1]{ \\ensuremath{ \\underaccent{4}{ \\underaccent{\\tilde}{ \\bm{#1} } } } }
|
||||
|
||||
%needs MnSymbol
|
||||
\\newcommand{\\tensori}[1]{
|
||||
\\tikz[baseline, anchor=base,inner sep=0pt]{
|
||||
\\node{\\ensuremath{\\phantom{#1\\vphantom{\\overrightharpoon{b}}}}};
|
||||
\\node[overlay]{ \\ensuremath{ \\overrightharpoon{ \\mbox{\\ensuremath{#1}\\vphantom{b}} } } };
|
||||
}
|
||||
}
|
||||
\\newcommand{\\tensorii}[1]{
|
||||
\\tikz[baseline, anchor=base,inner sep=0pt]{
|
||||
\\node{\\ensuremath{\\phantom{#1\\vphantom{\\overrightharpoon{b}}}}};
|
||||
\\node[overlay]{ \\ensuremath{ \\overrightharpoon{ \\mbox{\\ensuremath{#1}\\vphantom{b}} } } };
|
||||
\\node[overlay]{ \\reflectbox{ \\ensuremath{ \\overrightharpoon{ \\phantom{ \\mbox{\\ensuremath{#1}\\vphantom{b}} } } } } };
|
||||
}
|
||||
}
|
||||
\\newcommand{\\tensoriii}[1]{
|
||||
\\tikz[baseline, anchor=base,inner sep=0pt]{
|
||||
\\node{\\ensuremath{\\phantom{#1\\vphantom{\\overrightharpoon{b}}}}};
|
||||
\\node[overlay]{ \\ensuremath{ \\overrightarrow{ \\mbox{\\ensuremath{#1}\\vphantom{b}} } } };
|
||||
\\node[overlay]{ \\reflectbox{ \\ensuremath{ \\overrightharpoon{ \\phantom{ \\mbox{\\ensuremath{#1}\\vphantom{b}} } } } } };
|
||||
}
|
||||
}
|
||||
\\newcommand{\\tensoriv}[1]{
|
||||
\\tikz[baseline, anchor=base,inner sep=0pt]{
|
||||
\\node{\\ensuremath{\\phantom{#1\\vphantom{\\overrightharpoon{b}}}}};
|
||||
\\node[overlay]{ \\ensuremath{ \\overrightarrow{ \\mbox{\\ensuremath{#1}\\vphantom{b}} } } };
|
||||
\\node[overlay]{ \\reflectbox{ \\ensuremath{ \\overrightarrow{ \\phantom{ \\mbox{\\ensuremath{#1}\\vphantom{b}} } } } } };
|
||||
}
|
||||
}
|
||||
|
||||
\\usepackage{amsthm}
|
||||
\\theoremstyle{definition}
|
||||
% nummeriert
|
||||
@@ -1261,88 +1141,6 @@ Replaces <<...>> with values defined in
|
||||
\\usepackage{tabularx}
|
||||
|
||||
|
||||
% based on soul
|
||||
% \\highlight[tikz-opts]{...} like:
|
||||
% \\highlight{}
|
||||
% \\highlight[red]{}
|
||||
% \\highlight[green, draw=blue]{}
|
||||
\\makeatletter
|
||||
\\newcommand{\\defhighlighter}[3][]{%
|
||||
\\tikzset{every highlighter/.style={color=#2, fill opacity=#3, #1}}%
|
||||
}
|
||||
\\defhighlighter{yellow}{.5}
|
||||
\\newcommand{\\highlight@DoHighlight}{
|
||||
\\fill [ decoration = {random steps, amplitude=1pt, segment length=15pt}
|
||||
, outer sep = -15pt, inner sep = 0pt, decorate
|
||||
, every highlighter, this highlighter ]
|
||||
($(begin highlight)+(0,8pt)$) rectangle ($(end highlight)+(0,-3pt)$) ;
|
||||
}
|
||||
\\newcommand{\\highlight@BeginHighlight}{
|
||||
\\coordinate (begin highlight) at (0,0) ;
|
||||
}
|
||||
\\newcommand{\\highlight@EndHighlight}{
|
||||
\\coordinate (end highlight) at (0,0) ;
|
||||
}
|
||||
\\newdimen\\highlight@previous%
|
||||
\\newdimen\\highlight@current%
|
||||
\\DeclareRobustCommand*\\highlight[1][]{%
|
||||
\\tikzset{this highlighter/.style={#1}}%
|
||||
\\SOUL@setup%
|
||||
%
|
||||
\\def\\SOUL@preamble{%
|
||||
\\begin{tikzpicture}[overlay, remember picture]
|
||||
\\highlight@BeginHighlight
|
||||
\\highlight@EndHighlight
|
||||
\\end{tikzpicture}%
|
||||
}%
|
||||
%
|
||||
\\def\\SOUL@postamble{%
|
||||
\\begin{tikzpicture}[overlay, remember picture]
|
||||
\\highlight@EndHighlight
|
||||
\\highlight@DoHighlight
|
||||
\\end{tikzpicture}%
|
||||
}%
|
||||
%
|
||||
\\def\\SOUL@everyhyphen{%
|
||||
\\discretionary{%
|
||||
\\SOUL@setkern\\SOUL@hyphkern%
|
||||
\\SOUL@sethyphenchar%
|
||||
\\tikz[overlay, remember picture] \\highlight@EndHighlight ;%
|
||||
}{%
|
||||
}{%
|
||||
\\SOUL@setkern\\SOUL@charkern%
|
||||
}%
|
||||
}%
|
||||
%
|
||||
\\def\\SOUL@everyexhyphen##1{%
|
||||
\\SOUL@setkern\\SOUL@hyphkern%
|
||||
\\hbox{##1}%
|
||||
\\discretionary{%
|
||||
\\tikz[overlay, remember picture] \\highlight@EndHighlight ;%
|
||||
}{%
|
||||
}{%
|
||||
\\SOUL@setkern\\SOUL@charkern%
|
||||
}%
|
||||
}%
|
||||
%
|
||||
\\def\\SOUL@everysyllable{%
|
||||
\\begin{tikzpicture}[overlay, remember picture]
|
||||
\\path let \\p0 = (begin highlight), \\p1 = (0,0) in \\pgfextra
|
||||
\\global\\highlight@previous=\\y0
|
||||
\\global\\highlight@current =\\y1
|
||||
\\endpgfextra (0,0) ;
|
||||
\\ifdim\\highlight@current < \\highlight@previous
|
||||
\\highlight@DoHighlight
|
||||
\\highlight@BeginHighlight
|
||||
\\fi
|
||||
\\end{tikzpicture}%
|
||||
\\the\\SOUL@syllable%
|
||||
\\tikz[overlay, remember picture] \\highlight@EndHighlight ;%
|
||||
}%
|
||||
\\SOUL@%
|
||||
}
|
||||
\\makeatother
|
||||
|
||||
|
||||
\\pgfplotsset{
|
||||
% or newest,
|
||||
@@ -1799,7 +1597,121 @@ Text like <<...>>> will be replaced according to
|
||||
"\\counterwithin{table}{section}" ;; section-wise numbering
|
||||
("" "booktabs" nil) ;; \toprule, \midrule, bottomrule
|
||||
("" "longtable" nil) ;; multi-page tables
|
||||
;; custom column types https://tex.stackexchange.com/a/12712
|
||||
;; \let\newline\\ is to allow the use of \newline for manual line breaks within a cell
|
||||
;; \arraybackslash is needed for the last column so the \\ is again correctly interpreted, otherwise we get: ! Extra alignment tab has been changed to \cr.
|
||||
;; \hspace{0pt} is to allow the first word to be hyphenated
|
||||
;; TODO: maybe package ragged2e for a better hyphenation?
|
||||
("" "array" nil)
|
||||
"\\newcolumntype{L}[1]{>{\\raggedright\\let\\newline\\\\\\arraybackslash\\hspace{0pt}}p{#1}<{}}" ;; fixed width column type (p) but left-aligned: L{width}
|
||||
"\\newcolumntype{C}[1]{>{\\centering\\let\\newline\\\\\\arraybackslash\\hspace{0pt}}p{#1}<{}}" ;; fixed width column type (p) but center-aligned: C{width}
|
||||
"\\newcolumntype{R}[1]{>{\\raggedleft\\let\\newline\\\\\\arraybackslash\\hspace{0pt}}p{#1}<{}}" ;; fixed width column type (p) but right-aligned: R{width}
|
||||
("autolanguage" "numprint" nil) ;; alignment of numbers using column type n (numbers in math) and N (numbers in text)
|
||||
;;; - Figures
|
||||
("" "svg" nil) ;; uses Inkscape
|
||||
;;; - Tikz
|
||||
("" "tikz" nil)
|
||||
("" "gnuplot-lua-tikz" nil)
|
||||
("" "pgfplots" nil) ;; ,pgfmath ;; for \\begin{axis} !needs by tikz (backgrounds)
|
||||
"\\usepgflibrary{shapes.geometric}"
|
||||
"\\usepgfplotslibrary{patchplots}"
|
||||
"\\usetikzlibrary{"
|
||||
" arrows," ;; for arrow heads"
|
||||
" backgrounds," ;; need package pgfplots
|
||||
" calc," ;; % for manimulation of coordinates
|
||||
" decorations.pathmorphing,"
|
||||
" mindmap,"
|
||||
" pgfplotsclickable," ;; %after pgfplots, for /pgfplots/annot/js fillColor
|
||||
" positioning,"
|
||||
;; " %shadings,"
|
||||
" shadows,"
|
||||
" shadows.blur,"
|
||||
" shapes.multipart,"
|
||||
" tikzmark," ;; \tikzmark{<name>} to define marker in e.g. tables for overlays like \tikz[remember picture] draw[overlay] (0,0) -- (pic cs:<name>);
|
||||
"}"
|
||||
;; highligh text
|
||||
("" "soul" nil) ;; "% based on soul
|
||||
;; % \\highlight[tikz-opts]{...} like:
|
||||
;; % \\highlight{text}
|
||||
;; % \\highlight[red]{text}
|
||||
;; % \\highlight[green, draw=blue]{text}
|
||||
"\\makeatletter
|
||||
\\newcommand{\\defhighlighter}[3][]{%
|
||||
\\tikzset{every highlighter/.style={color=#2, fill opacity=#3, #1}}%
|
||||
}
|
||||
\\defhighlighter{yellow}{.5}
|
||||
\\newcommand{\\highlight@DoHighlight}{
|
||||
\\fill [ decoration = {random steps, amplitude=1pt, segment length=15pt}
|
||||
, outer sep = -15pt, inner sep = 0pt, decorate
|
||||
, every highlighter, this highlighter ]
|
||||
($(begin highlight)+(0,8pt)$) rectangle ($(end highlight)+(0,-3pt)$) ;
|
||||
}
|
||||
\\newcommand{\\highlight@BeginHighlight}{
|
||||
\\coordinate (begin highlight) at (0,0) ;
|
||||
}
|
||||
\\newcommand{\\highlight@EndHighlight}{
|
||||
\\coordinate (end highlight) at (0,0) ;
|
||||
}
|
||||
\\newdimen\\highlight@previous%
|
||||
\\newdimen\\highlight@current%
|
||||
\\DeclareRobustCommand*\\highlight[1][]{%
|
||||
\\tikzset{this highlighter/.style={#1}}%
|
||||
\\SOUL@setup%
|
||||
%
|
||||
\\def\\SOUL@preamble{%
|
||||
\\begin{tikzpicture}[overlay, remember picture]
|
||||
\\highlight@BeginHighlight
|
||||
\\highlight@EndHighlight
|
||||
\\end{tikzpicture}%
|
||||
}%
|
||||
%
|
||||
\\def\\SOUL@postamble{%
|
||||
\\begin{tikzpicture}[overlay, remember picture]
|
||||
\\highlight@EndHighlight
|
||||
\\highlight@DoHighlight
|
||||
\\end{tikzpicture}%
|
||||
}%
|
||||
%
|
||||
\\def\\SOUL@everyhyphen{%
|
||||
\\discretionary{%
|
||||
\\SOUL@setkern\\SOUL@hyphkern%
|
||||
\\SOUL@sethyphenchar%
|
||||
\\tikz[overlay, remember picture] \\highlight@EndHighlight ;%
|
||||
}{%
|
||||
}{%
|
||||
\\SOUL@setkern\\SOUL@charkern%
|
||||
}%
|
||||
}%
|
||||
%
|
||||
\\def\\SOUL@everyexhyphen##1{%
|
||||
\\SOUL@setkern\\SOUL@hyphkern%
|
||||
\\hbox{##1}%
|
||||
\\discretionary{%
|
||||
\\tikz[overlay, remember picture] \\highlight@EndHighlight ;%
|
||||
}{%
|
||||
}{%
|
||||
\\SOUL@setkern\\SOUL@charkern%
|
||||
}%
|
||||
}%
|
||||
%
|
||||
\\def\\SOUL@everysyllable{%
|
||||
\\begin{tikzpicture}[overlay, remember picture]
|
||||
\\path let \\p0 = (begin highlight), \\p1 = (0,0) in \\pgfextra
|
||||
\\global\\highlight@previous=\\y0
|
||||
\\global\\highlight@current =\\y1
|
||||
\\endpgfextra (0,0) ;
|
||||
\\ifdim\\highlight@current < \\highlight@previous
|
||||
\\highlight@DoHighlight
|
||||
\\highlight@BeginHighlight
|
||||
\\fi
|
||||
\\end{tikzpicture}%
|
||||
\\the\\SOUL@syllable%
|
||||
\\tikz[overlay, remember picture] \\highlight@EndHighlight ;%
|
||||
}%
|
||||
\\SOUL@%
|
||||
}
|
||||
\\makeatother
|
||||
"
|
||||
;;; - Lisitings
|
||||
("" "listingsutf8" nil)
|
||||
"\\AtBeginDocument{\\numberwithin{lstlisting}{section}}" ;; section-wise numbering
|
||||
@@ -1850,7 +1762,7 @@ Text like <<...>>> will be replaced according to
|
||||
;; " %deletekeywords={...},
|
||||
"}"
|
||||
;;; Glossaries
|
||||
("\n automake,\n acronym,\n nonumberlist,\n nogroupskip,\n section=section,\n"
|
||||
("\n automake=immediate,\n acronym,\n nonumberlist,\n nogroupskip,\n section=section,\n"
|
||||
"glossaries" nil)
|
||||
;; automake, % will run makeindex to create .gls, .acr files,
|
||||
;; (? automake or automake=true will execute at the end of the document, for lualatex we need it before the command \makeglossaries, for this using automake=immediate (https://tex.stackexchange.com/a/468877))
|
||||
@@ -1925,6 +1837,113 @@ Text like <<...>>> will be replaced according to
|
||||
;; " % Denominator"
|
||||
" \\raisebox{#5\\ht2}{\\usebox2}%"
|
||||
"}"
|
||||
;; units
|
||||
("thinspace,thinqspace,squaren,Gray" "SIunits" nil) ;; cannot be used together with amssymb
|
||||
;; thinspace,
|
||||
;; thinqspace, % use of \, (thin math space) as spacing
|
||||
;; %mediumqspace, % use of \: (medium math space) as spacing
|
||||
;; %thickqspace, % use of \; (thick math space) as spacing
|
||||
;; squaren, % defines a new command \squaren that can be used instead of the SIunits command \square, to prevent errors with the defined \square command of the amssymb package. Or use amssymb to redefine \sqare
|
||||
;; Gray, % defines a new command \gray that can be used instead of the SIunits command \gray, to prevent errors with the defined \gray command of the amssymb package. Or use pstricks to redefine \gray
|
||||
;; %textstyle,
|
||||
;; ("" "siunitx" nil) ;; runs in: ! TeX capacity exceeded, sorry [input stack size=5000].
|
||||
;;"\\DeclareSIUnit{\\EUR}{\\text{\\euro}}"
|
||||
("" "dsfont" nil) ;; use \mathds{A} alternative zu mathbb
|
||||
("" "MnSymbol" nil) ;; incompatible with the amssymb and amsfonts, automatically loads the amsmath and textcomp. used for tensors
|
||||
;; symbols using dsfont MnSymbol
|
||||
"\\newcommand{\\field}[1]{\\ensuremath{\\mathds{#1}}}" ;; \field{X} defined with mathds
|
||||
"\\newcommand{\\fA}{\\field{A}}" ;; \fA Affine field A
|
||||
"\\newcommand{\\fC}{\\field{C}}" ;; \fC Complex field C
|
||||
"\\newcommand{\\fFp}{\\ensuremath{\\field{F}_{\\!p}}}" ;; \fFp Finite field F_p
|
||||
"\\newcommand{\\fFq}{\\ensuremath{\\field{F}_{\\!q}}}" ;; \fFq Finite field F_q
|
||||
"\\newcommand{\\fGa}{\\ensuremath{\\field{G}_{a}}}" ;; \fGa Group scheme G_a
|
||||
"\\newcommand{\\fK}{\\field{K}}" ;; \fK Generic field K (Körper)
|
||||
"\\newcommand{\\fN}{\\field{N}}" ;; \fN Natural numbers N
|
||||
"\\newcommand{\\fPj}{\\field{P}}" ;; \fPj Projective field P
|
||||
"\\newcommand{\\fR}{\\field{R}}" ;; \fR Real numbers R
|
||||
"\\newcommand{\\fQ}{\\field{Q}}" ;; \fQ Rational numbers Q
|
||||
"\\newcommand{\\fI}{\\field{I}}" ;; \fI Irrational numbers I
|
||||
"\\newcommand{\\fZ}{\\field{Z}}" ;; \fZ Integers Z
|
||||
"\\newcommand{\\Def}{\\field{D}}" ;; \Def Domain of a function (Definitionsbereich)
|
||||
"\\newcommand{\\LM}{\\field{L}}" ;; \LM Solution set (Lösungsmenge)
|
||||
"\\newcommand{\\fdg}{\\;|\\;}" ;; \fdg 'für die gilt'
|
||||
"\\newcommand*{\\qed}{\\hfill\\ensuremath{\\blacksquare}}" ;; \qed Q.E.D. quod erat demonstrandum "what was to be shown" -> "which was to be demonstrated"
|
||||
"\\newcommand*\\euler{\\mathrm{e}}" ;; \euler e
|
||||
("" "xspace" nil) ;; for \deg
|
||||
"\\renewcommand{\\deg}{\\ensuremath{^{\\circ}}\\xspace}" ;; for text \deg ° degree
|
||||
"\\newcommand\\degC{{\\,^{\\circ}\\mathrm{C}}}" ;; \degC °C
|
||||
"\\newcommand\\sins{{\\mathrm{s}}}" ;; \sins short sin: s
|
||||
"\\newcommand\\coss{{\\mathrm{c}}}" ;; \coss short cos: c
|
||||
;; matrix
|
||||
"\\newcommand{\\T}{{\\mathrm{T}}\\!}" ;; \T Transpose operator
|
||||
"\\newcommand{\\TF}{{\\raisebox{-0.5ex}{$\\sim$}}}" ;; \TF sign for transfomed values: low tilde
|
||||
"\\newcommand{\\adj}{{\\mathrm{H}}}" ;; \adj Adjoint operator
|
||||
"\\newcommand*\\dif{\\mathop{}\\!\\mathrm{d}}" ;; \dif
|
||||
"\\newcommand*\\E{\\ensuremath{\\mathrm{E}}}" ;; \E
|
||||
"\\providecommand{\\norm}[1]{\\lVert #1 \\rVert}" ;; \norm{x} ||x||
|
||||
"\\providecommand{\\abs}[1]{\\lvert #1 \\rvert}" ;; \abs{x} |x|
|
||||
"\\providecommand{\\innerProd}[2]{\\langle #1, #2\\rangle}" ;; \innerProd{x}{y} <x,y>
|
||||
;; Operators
|
||||
"\\DeclareMathOperator{\\Bild}{Bild}" ;; \Bild Map of a function (mapping, transformation)
|
||||
"\\DeclareMathOperator{\\rank}{rank}" ;; \rank Rank of a matrix
|
||||
"\\DeclareMathOperator{\\tr}{tr}" ;; \tr Matrix trace
|
||||
"\\DeclareMathOperator{\\dev}{dev}" ;; \dev Matrix deviation
|
||||
"\\DeclareMathOperator{\\var}{var}" ;; \var Variance
|
||||
"\\DeclareMathOperator{\\grad}{grad}" ;; \(\grad u\) = grad u
|
||||
"\\DeclareMathOperator{\\divergence}{div}" ;; \(\divergence u\) = div u
|
||||
"\\DeclareMathOperator{\\rot}{rot}" ;; \(\rot u\) = rot u
|
||||
"\\DeclareMathOperator{\\diag}{diag}" ;; \diag Diagonal matrix
|
||||
"\\DeclareMathOperator{\\adjugate}{adj}" ;; \adjugate Classical adjoint (adjugate)
|
||||
;; others
|
||||
;; % old \newcommand{\corresponds}{\ensuremath{\stackrel{\wedge}{=} \hat{=} \mathop{\hat{=}} \substack{\wedge\\=} \mathrel{\widehat{=}} } \^{=} }
|
||||
"\\newcommand*\\corresponds{\\mbox{\\kern0em\\raisebox{-.5ex}{\\Large\\^{}}\\kern-.55em\\raisebox{-.1ex}{=}}\\ }"
|
||||
"\\newcommand*{\\dt}[1]{\\overset{\\mbox{\\large\\bfseries .}}{#1}}"
|
||||
"\\newcommand*{\\ddt}[1]{\\overset{\\mbox{\\large\\bfseries .\\hspace{-0.1ex}.}}{#1}}"
|
||||
"\\newcommand*{\\Eval}[3]{{\\left.#1\\phantom{\\Big|}\\!\\!\\right\\rvert_{#2}^{#3}}}"
|
||||
;; tensors
|
||||
("" "accents" nil)
|
||||
("" "ushort" nil)
|
||||
;; ("" "ulem" nil) ;; % not for math mode, too much space below with uuline; for tensor
|
||||
;; under-line version
|
||||
"\\newcommand{\\tensor}[1]{\\ensuremath{{\\boldsymbol{#1}}}}"
|
||||
"\\newcommand{\\tensorI}[1]{\\ensuremath{\\ushort{{\\boldsymbol{#1}}}}}"
|
||||
"\\newcommand{\\tensorII}[1]{\\ensuremath{\\ushortd{{\\boldsymbol{#1}}}}}"
|
||||
"\\newcommand{\\tensorIII}[1]{\\ensuremath{\\underaccent{3}{\\underaccent{\\tilde}{{\\boldsymbol{#1}}}}}}"
|
||||
"\\newcommand{\\tensorIV}[1]{\\ensuremath{\\underaccent{4}{\\underaccent{\\tilde}{{\\boldsymbol{#1}}}}}}"
|
||||
;; bm version
|
||||
;; ("" "bm" nil) ;; % load bm after amsmath and after your font packages!; for tensor
|
||||
;; "%\\newcommand{\\tensorI}[1]{\\ensuremath{\\uline{\\bm{#1}}}}"
|
||||
;; "%\\newcommand{\\tensorII}[1]{\\ensuremath{\\uuline{\\bm{#1}}}}"
|
||||
;; "%\\newcommand{\\tensorIII}[1]{\\ensuremath{\\underaccent{3}{\\underaccent{\\tilde}{\\bm{#1}}}}}"
|
||||
;; "%\\newcommand{\\tensorIV}[1]{\\ensuremath{\\underaccent{4}{\\underaccent{\\tilde}{\\bm{#1}}}}}"
|
||||
;; arrow version needs MnSymbol
|
||||
"\\newcommand{\\tensori}[1]{
|
||||
\\tikz[baseline, anchor=base,inner sep=0pt]{
|
||||
\\node{\\ensuremath{\\phantom{#1\\vphantom{\\overrightharpoon{b}}}}};
|
||||
\\node[overlay]{ \\ensuremath{ \\overrightharpoon{ \\mbox{\\ensuremath{\\boldsymbol{#1}}\\vphantom{b}} } } };
|
||||
}
|
||||
}"
|
||||
"\\newcommand{\\tensorii}[1]{
|
||||
\\tikz[baseline, anchor=base,inner sep=0pt]{
|
||||
\\node{\\ensuremath{\\phantom{#1\\vphantom{\\overrightharpoon{b}}}}};
|
||||
\\node[overlay]{ \\ensuremath{ \\overrightharpoon{ \\mbox{\\ensuremath{\\boldsymbol{#1}}\\vphantom{b}} } } };
|
||||
\\node[overlay]{ \\reflectbox{ \\ensuremath{ \\overrightharpoon{ \\phantom{ \\mbox{\\ensuremath{\\boldsymbol{#1}}\\vphantom{b}} } } } } };
|
||||
}
|
||||
}"
|
||||
"\\newcommand{\\tensoriii}[1]{
|
||||
\\tikz[baseline, anchor=base,inner sep=0pt]{
|
||||
\\node{\\ensuremath{\\phantom{#1\\vphantom{\\overrightharpoon{b}}}}};
|
||||
\\node[overlay]{ \\ensuremath{ \\overrightarrow{ \\mbox{\\ensuremath{\\boldsymbol{#1}}\\vphantom{b}} } } };
|
||||
\\node[overlay]{ \\reflectbox{ \\ensuremath{ \\overrightharpoon{ \\phantom{ \\mbox{\\ensuremath{\\boldsymbol{#1}}\\vphantom{b}} } } } } };
|
||||
}
|
||||
}"
|
||||
"\\newcommand{\\tensoriv}[1]{
|
||||
\\tikz[baseline, anchor=base,inner sep=0pt]{
|
||||
\\node{\\ensuremath{\\phantom{#1\\vphantom{\\overrightharpoon{b}}}}};
|
||||
\\node[overlay]{ \\ensuremath{ \\overrightarrow{ \\mbox{\\ensuremath{\\boldsymbol{#1}}\\vphantom{b}} } } };
|
||||
\\node[overlay]{ \\reflectbox{ \\ensuremath{ \\overrightarrow{ \\phantom{ \\mbox{\\ensuremath{\\boldsymbol{#1}}\\vphantom{b}} } } } } };
|
||||
}
|
||||
}"
|
||||
;;; ToC
|
||||
;; !do not wrap toc in env spacing (package setspace), this will overwrite defined skips!
|
||||
;; e.g. in \\RedeclareSectionCommand[tocbeforeskip=2.25em plus 1pt, ...]{section}
|
||||
@@ -1959,24 +1978,6 @@ Text like <<...>>> will be replaced according to
|
||||
;;; pdf imports !before tocstyle/tocbasic!
|
||||
("" "pdfpages" nil)
|
||||
("" "pdflscape" nil)
|
||||
;;; Tikz
|
||||
("" "tikz" nil)
|
||||
("" "gnuplot-lua-tikz" nil)
|
||||
("" "pgfplots" nil) ;; ,pgfmath ;; for \\begin{axis} !needs by tikz (backgrounds)
|
||||
"\\usepgflibrary{shapes.geometric}"
|
||||
"\\usetikzlibrary{"
|
||||
" arrows," ;; for arrow heads"
|
||||
" calc," ;; % for manimulation of coordinates
|
||||
" positioning,"
|
||||
" shapes.multipart,"
|
||||
;; " %shadings,"
|
||||
" decorations.pathmorphing,"
|
||||
" backgrounds," ;; need package pgfplots
|
||||
" pgfplotsclickable," ;; %after pgfplots, for /pgfplots/annot/js fillColor
|
||||
" shadows,"
|
||||
" shadows.blur,"
|
||||
" mindmap,"
|
||||
"}"
|
||||
;;; Other
|
||||
("" "xurl" nil) ;; line break of long urls
|
||||
("" "hyperref" nil)
|
||||
@@ -2076,13 +2077,13 @@ Uses also `my-org-article-latex-template-value' with
|
||||
(let* (;; single replace
|
||||
;; (class-options
|
||||
;; (string-replace
|
||||
;; "<<documentclass>>"
|
||||
;; "%<<documentclass>>"
|
||||
;; (my-org-article-latex-template-value :documentclass lang)
|
||||
;; (plist-get info :latex-class-options)))
|
||||
;; multi replace
|
||||
(class-options
|
||||
(s-replace-all
|
||||
(list (cons "<<documentclass>>"
|
||||
(list (cons "%<<documentclass>>"
|
||||
(my-org-article-latex-template-value :documentclass lang)))
|
||||
(plist-get info :latex-class-options)))
|
||||
(header (nth 1 (assoc class (plist-get info :latex-classes)))))
|
||||
@@ -2104,22 +2105,22 @@ Uses also `my-org-article-latex-template-value' with
|
||||
(mapconcat #'org-element-normalize-string
|
||||
(list (s-replace-all
|
||||
(list (if (plist-get info :draft)
|
||||
(cons "<<draft>>"
|
||||
(cons "%<<draft>>"
|
||||
(my-org-article-latex-template-value :draft))
|
||||
(cons "<<draft>>" ""))
|
||||
(cons "<<babel>>"
|
||||
(cons "%<<draft>>" ""))
|
||||
(cons "%<<babel>>"
|
||||
(my-org-article-latex-template-value :babel lang))
|
||||
(cons "<<fontspec>>"
|
||||
(cons "%<<fontspec>>"
|
||||
(my-org-article-latex-template-value :fontspec lang))
|
||||
(cons "<<ruby>>"
|
||||
(cons "%<<ruby>>"
|
||||
(my-org-article-latex-template-value :ruby lang))
|
||||
(cons "<<biblatex>>"
|
||||
(cons "%<<biblatex>>"
|
||||
(my-org-article-latex-template-value :biblatex lang))
|
||||
(cons "<<csquotes>>"
|
||||
(cons "%<<csquotes>>"
|
||||
(my-org-article-latex-template-value :csquotes lang))
|
||||
(cons "<<mtcselectlanguage>>"
|
||||
(cons "%<<mtcselectlanguage>>"
|
||||
(my-org-article-latex-template-value :mtcselectlanguage lang))
|
||||
(cons "<<lstlistingname>>"
|
||||
(cons "%<<lstlistingname>>"
|
||||
(my-org-article-latex-template-value :lstlistingname lang)))
|
||||
(plist-get info :latex-header))
|
||||
(and (not snippet?)
|
||||
|
||||
@@ -249,6 +249,7 @@ Example defines
|
||||
:load-path (lambda () (list (concat config-dir "lisp/org")))
|
||||
:delight (org-mode "Org") ;; "Org " "\u01F15E"
|
||||
:defer t
|
||||
;;:bind (("C-c <del>" . org-mark-ring-goto)) ;; normally at C-c & but it is redefined by yasnippet
|
||||
:init
|
||||
(setq org-export-backends '(ascii html icalendar latex md odt reveal tufte))
|
||||
:config
|
||||
@@ -912,7 +913,7 @@ Uses function `my-org-headline-string-element'"
|
||||
(setq org-latex-bib-compiler "biber") ;; %bib in org-latex-pdf-process
|
||||
(setq org-latex-pdf-process
|
||||
(if (executable-find "latexmk")
|
||||
'("latexmk -f -pdf -%latex -interaction=nonstopmode -output-directory=%o %f")
|
||||
'("latexmk -f -pdf -%latex -shell-escape -interaction=nonstopmode -output-directory=%o %f")
|
||||
(cond ((string-equal org-latex-compiler "lualatex")
|
||||
'("lualatex --interaction=nonstopmode --output-directory=%o %f"
|
||||
"biber %b"
|
||||
|
||||
@@ -23,20 +23,20 @@
|
||||
:CLEARPAGE: t
|
||||
:END:
|
||||
# Table of Contents
|
||||
#+LATEX: \clearpage\pdfbookmark[1]{Contents}{toc}
|
||||
#+LATEX: \clearpage\pdfbookmark[1]{\contentsname}{toc}
|
||||
#+TOC: headlines
|
||||
#+LATEX: \thispagestyle{plain}
|
||||
|
||||
# List of Figures (# `#+TOC: figures' is not working)
|
||||
#+LATEX: \phantomsection\addcontentsline{toc}{section}{List of Figures}\listoffigures
|
||||
#+LATEX: \phantomsection\addcontentsline{toc}{section}{\listfigurename}\listoffigures
|
||||
|
||||
# List of Tables
|
||||
#+LATEX: \phantomsection\addcontentsline{toc}{section}{List of Tables}
|
||||
#+LATEX: \phantomsection\addcontentsline{toc}{section}{\listtablename}
|
||||
#+TOC: tables
|
||||
#+LATEX: \thispagestyle{plain}
|
||||
|
||||
# List of Listings
|
||||
#+LATEX: \phantomsection\addcontentsline{toc}{section}{List of Listings}
|
||||
#+LATEX: \phantomsection\addcontentsline{toc}{section}{\lstlistlistingname}
|
||||
#+TOC: listings
|
||||
#+LATEX: \thispagestyle{plain}
|
||||
|
||||
@@ -46,12 +46,12 @@
|
||||
:UNNUMBERED: t
|
||||
:END:
|
||||
#+ATTR_LATEX: :center nil
|
||||
| \(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 |
|
||||
| \(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 |
|
||||
|
||||
* Glossary and Acronyms :ignore:
|
||||
:PROPERTIES:
|
||||
|
||||
Reference in New Issue
Block a user