Skip to content

Commit

Permalink
style: don't mix indentation styles in preamble
Browse files Browse the repository at this point in the history
  • Loading branch information
vEnhance committed Nov 18, 2023
1 parent 2aa3078 commit a980977
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions tex/preamble.tex
Original file line number Diff line number Diff line change
Expand Up @@ -50,22 +50,22 @@
% https://tex.stackexchange.com/questions/514451/how-to-define-a-new-hooked-arrow
\makeatletter
\pgfdeclarearrow{
name=xGlyph,
cache=false,
bending mode=none,
parameters={\tikzcd@glyph@len,\tikzcd@glyph@shorten},
setup code={%
\pgfarrowssettipend{\tikzcd@glyph@len\advance\pgf@x by\tikzcd@glyph@shorten}},
defaults={
glyph axis=axis_height,
glyph length=+1.55ex,
glyph shorten=+-0.1ex},
drawing code={%
\pgfpathrectangle{\pgfpoint{+0pt}{+-1.5ex}}{\pgfpoint{+\tikzcd@glyph@len}{+3ex}}%
\pgfusepathqclip%
\pgftransformxshift{+\tikzcd@glyph@len}%
\pgftransformyshift{+-\tikzcd@glyph@axis}%
\pgftext[right,base]{\tikzcd@glyph}}}
name=xGlyph,
cache=false,
bending mode=none,
parameters={\tikzcd@glyph@len,\tikzcd@glyph@shorten},
setup code={%
\pgfarrowssettipend{\tikzcd@glyph@len\advance\pgf@x by\tikzcd@glyph@shorten}},
defaults={
glyph axis=axis_height,
glyph length=+1.55ex,
glyph shorten=+-0.1ex},
drawing code={%
\pgfpathrectangle{\pgfpoint{+0pt}{+-1.5ex}}{\pgfpoint{+\tikzcd@glyph@len}{+3ex}}%
\pgfusepathqclip%
\pgftransformxshift{+\tikzcd@glyph@len}%
\pgftransformyshift{+-\tikzcd@glyph@axis}%
\pgftext[right,base]{\tikzcd@glyph}}}
\makeatother
\tikzcdset{
arrow style=tikz,
Expand Down Expand Up @@ -238,8 +238,8 @@
\makeatletter
\usepackage{etoolbox}
\pretocmd{\tableofcontents}{%
\if@openright\cleardoublepage\else\clearpage\fi
\pdfbookmark[0]{\contentsname}{toc}%
\if@openright\cleardoublepage\else\clearpage\fi
\pdfbookmark[0]{\contentsname}{toc}%
}{}{}%
\makeatother
\setcounter{tocdepth}{1}
Expand Down

0 comments on commit a980977

Please sign in to comment.