diff --git a/lisp/my/my-org-article.el b/lisp/my/my-org-article.el index f74d5eb8..15400091 100644 --- a/lisp/my/my-org-article.el +++ b/lisp/my/my-org-article.el @@ -690,7 +690,7 @@ Replaces <<...>> with values defined in (add-to-list 'org-latex-classes ;; (numbered-section . unnumbered-section) '("koma-article" "\\documentclass{scrartcl}" - ("\\cleardoublepage\\sectionheader\\section{%s}\\thispagestyle{plain}" . + ("\\cleardoublepage\\section{%s}\\thispagestyle{plain}" . "\\def\\mysectionname{%s}\\cleardoublepage\\phantomsection\\addcontentsline{toc}{section}{\\mysectionname}\\section*{\\mysectionname}\\thispagestyle{plain}") ("\\subsection{%s}" . "\\def\\mysubsectionname{%s}\\phantomsection\\addcontentsline{toc}{subsection}{\\mysubsectionname}\\subsection*{\\mysubsectionname}") @@ -709,753 +709,8 @@ Replaces <<...>> with values defined in \\def\\nameappendix{Appendix} %<> %<> -" "Inserted after `my-org-article-latex-default-packages-alist'.") -(defcustom my-org-article-latex-header-bak - " -%%% -%%% ARTICLE -%%% -% provides \\isempty test -\\usepackage{xifthen} -%\\newcommand{\\optarg}[1][]{% -% \\ifthenelse{\\isempty{#1}}% -% {}% if #1 is empty -% {(((#1)))}% if #1 is not empty -%} -\\makeatletter -\\newcommand{\\@scrartcl@loaded}{0} -\\AtBeginDocument{\\@ifpackageloaded{scrartcl} - {\\renewcommand{\\@scrartcl@loaded}{1}} - {\\renewcommand{\\@scrartcl@loaded}{0}} -} -\\makeatother - -%%% -%%% COLORS -%%% -\\usepackage{colortbl} -\\xdefinecolor{navyblue}{rgb}{0,0.35,0.62} -% links, \\everydisplay: -\\definecolor{darkred}{rgb}{0.88,0.16,0.17} -\\definecolor{dkgreen}{rgb}{0,0.6,0} -\\definecolor{gray}{rgb}{0.5,0.5,0.5} -% listings: -\\definecolor{mauve}{rgb}{0.58,0,0.82} -\\definecolor{orange}{rgb}{0.8 0.4 0.2} -\\definecolor{dkorange}{rgb}{0.68 0.25 0.07} -\\definecolor{rouge}{rgb}{0.79 0.0 0.1} -\\definecolor{matlab1}{HTML}{0071BC} -\\definecolor{matlab2}{HTML}{D85218} -\\definecolor{matlab3}{HTML}{ECB01F} -\\definecolor{matlab4}{HTML}{7D2E8D} -\\definecolor{matlab5}{HTML}{76AB2F} -\\definecolor{matlab6}{HTML}{4CBDED} -\\definecolor{matlab7}{HTML}{A1132E} - -%%% -%%% PAGE -%%% -\\newif\\iftwocol% -%\\twocoltrue -\\twocolfalse% - - - - -% Verzeichnis -\\iftwocol% - \\usepackage[toc]{multitoc} - \\renewcommand*{\\multicolumntoc}{2} - \\setlength{\\columnseprule}{0.5pt} -\\fi - - - -% debug the box warnings -\\showboxdepth=\\maxdimen% -\\showboxbreadth=\\maxdimen% - - -% \\pdfminorversion=5 % to allow compression ## LuaLatex does not understand this -% \\pdfobjcompresslevel=2 ## LuaLatex does not understand this - - -\\usepackage{afterpage} -\\makeatletter -\\def\\mynobreakpar{\\par\\nobreak\\@afterheading} -\\def\\mynobreakline{\\par\\nobreak\\vspace{-\\parskip}\\@afterheading\\noindent} -\\makeatother -\\newenvironment{absolutelynopagebreak} - {\\par\\nobreak\\vfil\\penalty0\\vfilneg% - \\vtop\\bgroup} - {\\par\\xdef\\tpd{\\the\\prevdepth}\\egroup% - \\prevdepth=\\tpd} -%\\begin{absolutelynopagebreak} -%\\lipsum[1-3]\\lipsum*[4] -%\\end{absolutelynopagebreak} - -%%% -%%% FONTS -%%% -% ----------------------------------------- -% Schrift -% ----------------------------------------- - -\\usepackage[scale=0.95]{opensans} - -% hyphenatable letterspacing, underlining and some derivatives such as overstriking and highlighting, soul -\\usepackage{soulutf8} -% \\so{letterspacing} l e t t e r s p a c i n g -% \\caps{CAPITALS, Small Capitals} like \\textsc{} -% \\ul{underlining} -% \\st{overstriking} -% \\hl{highlighting} - -% Damit ich mir nicht immer neuen Text ausdenken muss -\\usepackage{blindtext} - -% use: \\ce IMPORTANT: mhchem must be load before sparse and/or xpatch: l3str: \\c_backslash_str -\\usepackage[version=3]{mhchem} -\\usepackage{xparse} - -% \\tiny \\scriptsize \\footnotesize \\small -% \\normalsize (default) -% \\large \\Large \\LARGE \\huge \\Huge - -%\\usepackage[normalem]{ulem} -% \\uline{...} Underlined text, breaks over multiple lines -% \\uuline{...} double-underlined text -% \\uwave{...} wave-underlined text -% \\sout{...} ------------ -% \\xout{...} //////////// - -% remap ulem command to soul: underline -%\\renewcommand{\\uline}[1]{\\ul{#1}} -% remap ulem command to soul: overstriking -% TODO uncomment? -\\renewcommand{\\sout}[1]{\\st{#1}} -<> - - -%%% -%%% REFERENCES -%%% -% ----------------------------------------- -% Literatur -% ----------------------------------------- - -\\expandafter\\def\\expandafter\\quote\\expandafter{\\quote\\small} % Schriftverkleinerung in quote-Umgebung - -% cite, key, page numbers -\\newcommand{\\zitat}[3]{ - \\begin{quote}\\small - #1 - % \\psq: no suffixes/prefix - \\hfill\\autocite[#3\\psq]{#2} - \\end{quote} -} - -%%% -%%% ACRONYMS -%%% -% ----------------------------------------- -% Listen: Aufzählende, Acronyms -% ----------------------------------------- -\\setlength{\\leftmargini}{2\\parskip} % Listeneinzug -% how to use acronyms: -% \\ac = use acronym, first time write both, full name and acronym -% \\acf = use full name (text + acronym) -% \\acs = only use acronym -% \\acl = only use long text -% \\acp, acfp, acsp, aclp = use plural form for acronym (append 's') -% \\acsu, aclu = write + mark as used -% \\acfi = write full name in italics and acronym in normal style -% \\acused = mark acronym as used -% \\acfip = full, emphasized, plural, used -% \\iac and \\Iac = indefinite articles -\\usepackage[ - %footnote, % die Langform als Fußnote ausgeben - %nohyperlinks, % wenn hyperref geladen ist, wird die Verlinkung unterbunden - %printonlyused, % nur Abkürzungen auflisten, die tatsächlich verwendet werden. - %withpage, - %smaller, % Text soll kleiner erscheinen, das Paket relsize wird vorausgesetzt - %dua, % es wird immer die Langform ausgegeben - %nolist, % es wird keine Liste mit allen Abkürzungen ausgegeben -]{acronym} - -\\renewcommand\\acsfont{\\normalfont} -\\makeatletter -\\def\\uplabel#1{{\\normalfont{\\textsf{#1}}\\hfill}} -\\renewenvironment{acronym}[1][1]{% - \\singlespacing% - \\setstretch{0.8} - \\providecommand*{\\acro}{\\AC@acro}% - \\providecommand*{\\acroplural}{\\AC@acroplural}% - \\long\\def\\acroextra##1{##1}% - \\def\\@tempa{1}\\def\\@tempb{#1}% - \\ifx\\@tempa\\@tempb% - \\global\\expandafter\\let\\csname ac@des@mark\\endcsname\\AC@used% - \\ifAC@nolist% - \\else% - \\begin{list}{}% -% change according to your needs , 4.45 - {\\settowidth{\\labelwidth}{\\normalfont{\\textsf{#1}}\\hspace*{3.5em}}% - \\setlength{\\leftmargin}{\\labelwidth+\\parskip}% - \\addtolength{\\leftmargin}{\\labelsep}% - \\renewcommand{\\makelabel}{\\uplabel}} - \\fi% - \\else% - \\begin{AC@deflist}{#1}% - \\fi% - }% - {% - \\ifx\\AC@populated\\AC@used\\else% - \\ifAC@nolist% - \\else% - \\item[]\\relax% - \\fi% - \\fi% - \\expandafter\\ifx\\csname ac@des@mark\\endcsname\\AC@used% - \\ifAC@nolist% - \\else% - \\end{list}% - \\fi% - \\else% - \\end{AC@deflist}% - \\fi}% -\\renewenvironment{AC@deflist}[1]% - {\\ifAC@nolist% - \\else% - \\raggedright\\begin{list}{}% -% change according to your needs , 4.45 - {\\settowidth{\\labelwidth}{\\normalfont{\\textsf{#1}}\\hspace*{3.5em}}% - \\setlength{\\leftmargin}{\\labelwidth}% - \\addtolength{\\leftmargin}{\\labelsep}% - \\renewcommand{\\makelabel}{\\uplabel}}% - \\fi}% - {\\ifAC@nolist% - \\else% - \\end{list}% - \\fi}% - \\makeatother - -%%% -%%% APPENDIX -%%% -% ----------------------------------------- -% Abschnittsverzeichnisse (Anhang) -% ----------------------------------------- -\\usepackage{appendix} -\\setcounter{tocdepth}{3} -\\setcounter{secnumdepth}{3} - -% hyperref must be loaded before minitoc -\\makeatletter -\\ifthenelse{\\@scrartcl@loaded=1}{ - \\usepackage[insection,nohints]{minitoc} - \\mtcsetdepth{secttoc}{3} - %\\setlength{\\stcindent}{-16.5pt} - \\setlength{\\stcindent}{0pt} - \\mtcsetformat{secttoc}{pagenumwidth}{2em} % more space for page numbers - %\\renewcommand{\\stctitle}{} % Leer: Keine Überschrift - \\renewcommand{\\stcfont}{\\normalfont\\rmfamily\\upshape\\mdseries} -}{ - \\usepackage[nohints]{minitoc} -} -\\makeatother - -\\makeatletter -\\def\\mtc@CkFile#1{% - \\@mtc@LItrue\\@mtc@FEtrue% - \\if@mtc@checkfiles% - \\IfFileExists{#1}{% - \\immediate\\openin\\@inputcheck #1\\relax - \\mtc@While{}{\\if@mtc@LI\\relax}{\\mtc@Body}\\mtc@EndWhile% - % - }% - {\\@mtc@FEtrue}% - \\else - \\@mtc@FEfalse% - \\fi - %moved in the definition - \\closein\\@inputcheck\\relax}% -\\makeatother - -<> -% \\sffamily -\\mtcsetfont{secttoc}{subsection}{\\normalfont\\rmfamily\\upshape\\mdseries} -\\mtcsetfont{secttoc}{subsubsection}{\\normalfont\\rmfamily\\upshape\\mdseries} -% local use: \\nostcrule -\\mtcsetrules{*}{off} -%\\mtcsetpagenumbers{mini-table|*}{on|off} - -\\newcommand{\\pdfsection}[1]{ - \\addtocounter{section}{1} - \\phantomsection\\addcontentsline{toc}{section} - {\\protect\\numberline{\\thesection}#1} -} -\\newcommand{\\pdfsubsection}[1]{ - \\addtocounter{subsection}{1} - \\phantomsection\\addcontentsline{toc}{subsection} - {\\protect\\numberline{\\thesubsection}#1} -} -\\newcommand{\\pdfsubsubsection}[1]{ - \\addtocounter{subsubsection}{1} - \\phantomsection\\addcontentsline{toc}{subsubsection} - {\\protect\\numberline{\\thesubsubsection}#1} -} - -\\newcommand{\\pdfsectiona}[1]{ -% Den folgenden Inhalt nicht im großen Inhaltsverzeichnis zeigen - \\begin{mtchideinmaintoc}[-1] - \\addtocounter{section}{1} - \\phantomsection\\addcontentsline{toc}{section} - {\\protect\\numberline{\\thesection}#1} - \\end{mtchideinmaintoc} -} -\\newcommand{\\pdfsubsectiona}[1]{ -% Den folgenden Inhalt nicht im großen Inhaltsverzeichnis zeigen - \\begin{mtchideinmaintoc}[-1] - \\addtocounter{subsection}{1} - \\phantomsection\\addcontentsline{toc}{subsection} - {\\protect\\numberline{\\thesubsection}#1} - \\end{mtchideinmaintoc} -} -\\newcommand{\\pdfsubsubsectiona}[1]{ -% Den folgenden Inhalt nicht im großen Inhaltsverzeichnis zeigen - \\begin{mtchideinmaintoc}[-1] - \\addtocounter{subsubsection}{1} - \\phantomsection\\addcontentsline{toc}{subsubsection} - {\\protect\\numberline{\\thesubsubsection}#1} - \\end{mtchideinmaintoc} -} - - -%%% -%%% FIGURES -%%% -% ----------------------------------------- -% Abbildungen & Tabellen -% ----------------------------------------- -\\usepackage{float} -\\usepackage{floatflt} - -\\usepackage{subcaption} -\\usepackage{tablefootnote} - - - -% ----------------------------------------- -% Abbildungen -% ----------------------------------------- -\\usepackage[% - %draft, - %dvips, % or dvipdfm, pdftex -]{graphicx} -%\\graphicspath{{path_to_images/}} -%\\graphicspath{{the/first/path/}{the/second/path/}} -\\graphicspath{{./figures/}} -% Grafik abschneiden (links unten rechts oben): -% \\includegraphics[trim=0 0 2cm 0,clip,width=\\textwidth]{Bild} -% with px units, where is the resolution of the image: -% \\pdfpxdimen=\\dimexpr 1 in/\\relax -% \\includegraphics[trim=0 0 20px 0,clip,width=\\textwidth]{Bild} -% or use defined dpi option: -\\makeatletter - \\define@key{Gin}{dpi}{% - \\pdfpxdimen=\\dimexpr 1in/(#1)\\relax } -\\makeatother -% \\includegraphics[dpi=600,clip,trim=0 100px 200px 100px]{Figure-a} % 600 dpi - - -% Diagramme -\\usepackage[all]{xy} - -% ----------------------------------------- -% Tabellen -% ----------------------------------------- -%\\usepackage{rotating} % rotated text, vertical: \\begin{sideways} ... \\end{sideways} - -% fuer mehrspaltigen Text auf einer Seite -\\usepackage{multicol} -% fuer mehrreihigen Text auf einer Seite -\\usepackage{multirow} -% Anzahl Zeilen, Weite, Inhalt -\\newcommand{\\multirowr}[3]{\\multirow{#1}{*}{\\parbox{#2}{\\raggedright #3}}} - -\\usepackage{eqnarray} - -\\usepackage{spreadtab} % Rechenmöglichkeit in Tabellen - - - -%%% -%%% LISTINGS -%%% -% BEFORE loading tikz!? -\\lstdefinestyle{tex}{ - language=[LaTeX]tex, - tabsize=4, - breaklines=true, - breakindent=0pt, - columns=fullflexible, -% otherwise copy-and-paste won’t work - basicstyle=\\ttfamily -} -% not needed for lualatex? -\\lstset{literate=% -{Ö}{{\\\"O}}1 -{Ä}{{\\\"A}}1 -{Ü}{{\\\"U}}1 -{ß}{{\\ss}}1 -{ü}{{\\\"u}}1 -{ä}{{\\\"a}}1 -{ö}{{\\\"o}}1 -} - - -%%% -%%% MATH -%%% -% another slanted fration below at tikz - - -\\usepackage{amsthm} -\\theoremstyle{definition} -% nummeriert -\\newtheorem{tDef}{Def} -\\newtheorem{tBsp}{Bsp} -% unnummeriert -\\newtheorem*{tDef*}{Def} -\\newtheorem*{tBsp*}{Bsp} - -\\newcommand{\\undertab}[1]{\\clap{% - \\scriptsize\\begin{tabular}{@{}c@{}}#1\\end{tabular}}} -% underbrace, centered, space corrected -\\newcommand{\\ubspace}[2]{% Correct \\underbrace spacing - \\mathrlap{\\underbrace{\\phantom{\\scalebox{0.95}{$#1$}\\strut}}_{\\undertab{#2}}}#1} -% underbrace, left aligned, space corrected -\\newcommand{\\ubspacel}[2]{% Correct \\underbrace spacing - \\mathrlap{\\underbracket[0pt][0pt]{\\phantom{\\scalebox{0.95}{$#1$}\\strut}}_{\\vphantom{\\big\\mid}\\text{#2}}}\\underbrace{#1}} -% underbrace line, left aligned, space corrected -\\newcommand{\\ubspacell}[2]{ - \\mathrlap{\\underbracket[0pt][0pt]{\\phantom{#1\\strut}}_{\\text{#2}}}\\underbracket[0.5pt][0pt]{#1}} - -\\usepackage{cancel} - - -%\\begin{pmatrix}[1.5] -> \\arraystretch{1.5} -\\makeatletter -\\renewcommand*\\env@matrix[1][\\arraystretch]{% - \\edef\\arraystretch{0.8}% - \\edef\\arraystretch{#1}% - \\edef\\arraycolsep{2pt}% - \\hskip -\\arraycolsep% - \\let\\@ifnextchar\\new@ifnextchar% - \\array{*\\c@MaxMatrixCols c}} -\\makeatother - -\\newenvironment{Array}[1]{ - \\begingroup - \\arraycolsep=1pt\\def\\arraystretch{1} - \\begin{array}{@{}#1@{}} -}{\\end{array}\\endgroup} - - -%%% -%%% TIKZ -%%% -% ----------------------------------------- -% Zeichnungen -% ----------------------------------------- -\\usepackage{tabularx} - - - -\\pgfplotsset{ - % or newest, - compat=1.17, - % Komma statt Punkt als Dezimaltrennzeichen - x tick label style={/pgf/number format/use comma}, - y tick label style={/pgf/number format/use comma}, - every node near coord/.style={/pgf/number format/use comma}, - /pgfplots/annot/js fillColor={[\"RGB\",1,1,1]}, - every semilogy axis/.append style={/pgfplots/annot/point format={(\\%.1f,\\%.1e)}}, - every semilogx axis/.append style={/pgfplots/annot/point format={(\\%.1e,\\%.1f)}}, - every loglog axis/.append style={/pgfplots/annot/point format={(\\%.1e,\\%.1e)}} -} -\\usepackage{pgfplotstable} - \\colorlet{darkgreen}{green!50!black} - \\colorlet{lightgreen}{green!80!black} - \\colorlet{darkred}{red!50!black} - \\colorlet{lightred}{red!80!black} - -% this must be under the configuration of x tick label -% legend position outer south -\\makeatletter -\\pgfplotsset{ - every axis x label/.append style={ - alias=current axis xlabel - }, - legend pos/outer south/.style={ - /pgfplots/legend style={ - at={% - (% - \\@ifundefined{pgf@sh@ns@current axis xlabel}% - {xticklabel cs:0.5}% - {current axis xlabel.south}% - )% - }, - anchor=north - } - } -} -\\makeatother - - -% !!!! in tikzset sind keine Leerzeilen erlaubt !!!! -\\tikzset{ - %scale a tikzpicture including texts - global scale/.style={ - scale=#1, - every node/.style={scale=#1} - }, - %Define standard arrow tip - >=stealth', - %Define standard node - %every text node part/.style={align=left}, - % Colors -} -% Funktionsstruktur -\\tikzset{ - %Define style for boxes - punkt/.style={ - rectangle, - %rounded corners, -%very thick, - draw=black, -% gray - left color=navyblue!0, - right color=navyblue!30, - text width=6em, - minimum height=4em, - text centered}, - dummyPunkt/.style={ - rectangle, - text width=6em, - minimum height=4em}, - dummy/.style={ - rectangle, - text width=0.1em, - minimum height=4em}, - % - %Define style for node - aboveOf/.style={ - above=0.75cm of #1}, - belowOf/.style={ - below=0.75cm of #1}, -% node input - ni/.style={ - above right, - xshift=2mm}, -% node output - no/.style={ - above left, - xshift=-2mm}, - % - % Define arrow style - trans/.style={ - ->, - thick, - shorten >=0pt, - shorten <=0pt, - >=stealth}, - classical/.style={ - ->, -% semithick - thick, - double distance=1pt, - shorten >=0pt, - shorten <=0pt, - >=stealth}, - virtual/.style={ - ->, - thick, - densely dashed, - >=stealth}, -} -% Linien -\\tikzset{ - line1/.style={ - line width = 3, - line cap=round, - NavyBlue}, - line2/.style={ - line width = 3, - line cap=round, - loosely dashed, - red}, - axis/.style={thick, ->, >=stealth'}, - graph1/.style={ - thick, - line cap=round, - NavyBlue}, -} -% Graphen -\\tikzset{ - draw0/.style={ - gray}, - draw1/.style={ - very thick, - NavyBlue}, - draw2/.style={ - very thick, - red}, - draw3/.style={ - very thick, - dkgreen}, - draw4/.style={ - very thick, - orange}, - draw10/.style={ - very thick, - black}, - fill0/.style={ - fill=gray!100, - draw=none, - very nearly transparent}, - fill1/.style={ - fill=MidnightBlue!20, - draw=none}, - fill2/.style={ - fill=red!20, - draw=none}, -} -\\tikzset{ - every pin/.style={fill=white,rectangle,rounded corners=3pt,font=\\small}, - small dot/.style={fill=black,circle,scale=0.3}, -} -\\tikzset{color0/.style={color=black}} - -\\newcommand{\\FB}[7]{% - \\begin{tikzpicture}[auto, node distance=2cm,>=latex'] - \\setstretch{0.8} - \\begin{scope}[xscale=1, yscale=1, xshift=7.8cm]\\small - \\ifthenelse{\\isempty{#2}}% -% if #2 is empty - {}% -% if #2 is not empty - {\\draw[trans] (0,0.85) node[above right,yshift=-1mm,text width=2.5cm] {#2\\(_{}\\)} --(2.5,0.85) ;}% - \\ifthenelse{\\isempty{#4}} {} - {\\draw[classical] (0,0) node[above right,yshift=-1mm,text width=2.5cm] {#4\\(_{}\\)}--(2.5,0);} - \\ifthenelse{\\isempty{#6}} {} - {\\draw[virtual] (0,-0.85) node[above right,yshift=-1mm,text width=2.5cm] {#6\\(_{}\\)}--(2.5,-0.85);} - - \\ifthenelse{\\isempty{#3}} {} - {\\draw[trans] (6.25,0.85) node[above right,xshift=1mm,yshift=-1mm,text width=2.5cm] {#3\\(_{}\\)}--(8.75,0.85);} - \\ifthenelse{\\isempty{#5}} {} - {\\draw[classical] (6.25,0) node[above right,xshift=1mm,yshift=-1mm,text width=2.5cm] {#5\\(_{}\\)}--(8.75,0);} - \\ifthenelse{\\isempty{#7}} {} - {\\draw[virtual] (6.25,-0.85)node[above right,xshift=1mm,yshift=-1mm,text width=2.5cm] {#7\\(_{}\\)}--(8.75,-0.85) ;} - - \\ifthenelse{\\isempty{#1}} {} - % gray!30 - {\\node[draw=black,left color=navyblue!0,right color=navyblue!30,text width=3.5cm,minimum height=2.5cm,text centered,right=2.5cm] (f){\\normalsize#1};} - \\end{scope} - \\end{tikzpicture} -} -%% -% x axis and y axis in first quadrant -% x 0...1, 1 = 100% -% y 0...1, 1 = 100% -% \\tikzAxesQ1{x}{y}{labelX}{labelY} -\\newcommand{\\tikzAxesQi}[4]{ - \\draw[axis] (-0.1,0) -- ($(#1+.1,0)$) node(xline)[right] - {$#3$}; - \\draw[axis] (0,-0.1) -- ($(0,#2+.1)$) node(yline)[above] {$#4$}; -} -%% -% x axis and y axis -% x 0...1, 1 = 100% -% y 0...1, 1 = 100% -% \\tikzAxes{x}{y}{labelX}{labelY} -\\newcommand{\\tikzAxes}[4]{ - \\draw[axis] ($(-#1-.2,0)$) -- ($(#1+.2,0)$) node(xline)[below] - {$#3$}; - \\draw[axis] ($(0,-#2-.2)$) -- ($(0,#2+.2)$) node(yline)[left] {$#4$}; -} -%% -% x axis and y axis -% x 0...1, 1 = 100% -% y 0...1, 1 = 100% -% \\tikzAxes{x}{y}{delta x,y}{labelX}{labelY} -\\newcommand{\\tikzAxesD}[5]{ - \\draw[axis] ($(-#1-#3,0)$) -- ($(#1+#3,0)$) node(xline)[below] - {$#4$}; - \\draw[axis] ($(0,-#2-#3)$) -- ($(0,#2+#3)$) node(yline)[left] {$#5$}; -} -%% -% at given position 'x,y' an x marker with a label 'text' in math mode -% \\tikzMarkerX{x,y}{text} -\\newcommand{\\tikzMarkerX}[2]{ - \\draw($(#1)-(0,.025)$) node[below]{$#2$\\vphantom{b}} -- ($(#1)+(0,.025)$); -} -%% -% multiple x markers with labels -% \\tikzMarkersX{coordinate1/text1,coordinate2/text2,...} -\\newcommand{\\tikzMarkersX}[1]{ - \\foreach \\pos/\\text in {#1} { - \\tikzMarkerX{\\pos}{\\text} - } -} -%% -% at given position 'x,y' an y marker with a label 'text' in math mode -% \\tikzMarkerY{x,y}{text} -\\newcommand{\\tikzMarkerY}[2]{ - \\draw($(#1)-(.025,0)$) node[left]{$#2$\\vphantom{b}} -- ($(#1)+(.025,0)$); -} -%% -% multiple y markers with labels -% \\tikzMarkersY{coordinate1/text1,coordinate2/text2,...} -\\newcommand{\\tikzMarkersY}[1]{ - \\foreach \\pos/\\text in {#1} { - \\tikzMarkerX{\\pos}{\\text} - } -} -%% -% point marker at given position -% \\tikzPoint{x,y} -\\newcommand{\\tikzPoint}[1]{ - \\fill[red] (#1) circle (.4pt); -} -%% -% point markers at given positions -% \\tikzPoint{coordinate1,coordinate2,...} -\\newcommand{\\tikzPoints}[1]{ - \\foreach \\pos in {#1} { - \\tikzPoint{\\pos} - } -} - -\\def\\tikzoverlay{% - \\tikz[baseline,overlay]\\node[every overlay node] -}% -% usage: -%\\tikzoverlay[text width=6cm] at (9.3cm,5cm) {... content ...} - -%%% -%%% HYPHENATION -%%% -% ----------------------------------------- -% Silbentrennung -% ----------------------------------------- -\\hyphenation{} -% wird nach \\selectlanguage{ngerman} zurückgesetzt -% \\allowhyphens setzen reicht? -% und \\allowbreak nach einem hyphen? - -" - "Preamble options. +" "Preamble options. +Inserted after `my-org-article-latex-default-packages-alist'. Text like <<...>>> will be replaced according to `my-org-article-latex-template-plist'" :group 'my-org-export-article) diff --git a/snippets/org-mode/article b/snippets/org-mode/article index acd13bd6..0bc53c81 100644 --- a/snippets/org-mode/article +++ b/snippets/org-mode/article @@ -28,13 +28,13 @@ #+BEGIN_abstract *{{{author}}}* -*{{{title-name}}}*\\ +*{{{title-name}}}*\\\\ {{{title}}} -*{{{keyword-name}}}*\\ +*{{{keyword-name}}}*\\\\ {{{keyword(keywords)}}} -*{{{description-name}}}*\\ +*{{{description-name}}}*\\\\ {{{keyword(description)}}} #+END_abstract @@ -60,39 +60,30 @@ #+TOC: listings #+LATEX: \thispagestyle{plain} -* List of Symbols -:PROPERTIES: -:CUSTOM_ID: list-of-symbols -: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 | - -* Glossary and Acronyms :ignore: -:PROPERTIES: -:UNNUMBERED: t -:END: +* Glossary, Acronym and List of Symbols :ignore: #+name: glossary -| label | name | description | -|-------+-------+---------------| -| tree | Tree | A woody plant | -| shrub | Shrub | A woody bush | +| label | name | description | unit | +|-------+-------+-----------------------------------------------------+--------| +| tree | Tree | A woody plant | | +| shrub | Shrub | A woody bush | | +| api-g | API | An Application Programming Interface (API) is a ... | | +| w | \\(w\\) | Width | mm | +| A | \\(A\\) | Area | mm^{2} | +| L | \\(L\\) | Length | mm | +| f | \\(f\\) | Eigen frequency | Hz | #+name: acronyms -| key | abbreviation | full form | -|------+--------------+--------------------------------| -| mimo | | multiple-input multiple output | -| qos | QoS | quality-of-service | -| bb | BB | branch and bound | +| label | abbreviation | full form | +|-------+--------------+-----------------------------------| +| mimo | | multiple-input multiple output | +| qos | QoS | quality-of-service | +| bb | BB | branch and bound | +| api | API | Application Programming Interface | -[[printglossaries:]] -# \printglossary[type=\acronymtype] -# \printglossary +#+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 * EOP :ignore: #+LATEX: \newpage\pagenumbering{arabic}\setcounter{page}{1} diff --git a/snippets/org-mode/article-abstract b/snippets/org-mode/article-abstract new file mode 100644 index 00000000..a95d83dd --- /dev/null +++ b/snippets/org-mode/article-abstract @@ -0,0 +1,23 @@ +# -*- mode: snippet -*- +# name: Article Abstract +# group: Article Templates +# key: ?article-abstract +# -- +* Abstract :ignore: +:PROPERTIES: +:VISIBILITY: folded +:END: +#+LATEX: \clearpage\thispagestyle{empty} +# uses keyword document_type +#+BEGIN_abstract +*{{{author}}}* + +*{{{title-name}}}*\\\\ +{{{title}}} + +*{{{keyword-name}}}*\\\\ +{{{keyword(keywords)}}} + +*{{{description-name}}}*\\\\ +{{{keyword(description)}}} +#+END_abstract diff --git a/snippets/org-mode/article-glossaries b/snippets/org-mode/article-glossaries index 24bd5aed..0477a27b 100644 --- a/snippets/org-mode/article-glossaries +++ b/snippets/org-mode/article-glossaries @@ -1,19 +1,19 @@ # -*- mode: snippet -*- -# name: Article Glossaries +# name: Article Glossary Acronym and List of Symbols # 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 | +| label | name | description | unit | +|-------+-------+-----------------------------------------------------+--------| +| tree | Tree | A woody plant | | +| shrub | Shrub | A woody bush | | +| api-g | API | An Application Programming Interface (API) is a ... | | +| w | \\(w\\) | Width | mm | +| A | \\(A\\) | Area | mm^{2} | +| L | \\(L\\) | Length | mm | +| f | \\(f\\) | Eigen frequency | Hz | #+name: acronyms | label | abbreviation | full form |