diff options
author | Minijackson <minijackson@riseup.net> | 2021-11-04 10:12:42 +0100 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2021-11-04 10:12:42 +0100 |
commit | 99e04d26dbd1a1056d8664c8cbeb96a06a1dbe11 (patch) | |
tree | fdd06499c8d8888fdd38a7507b401554b1821b13 /default.latex | |
parent | 7a882201db01a8af8988ac252357b8eefdcb3bfe (diff) | |
download | pandoc-templates-99e04d26dbd1a1056d8664c8cbeb96a06a1dbe11.tar.gz pandoc-templates-99e04d26dbd1a1056d8664c8cbeb96a06a1dbe11.zip |
import latex template from pandoc-nix-templates
Diffstat (limited to 'default.latex')
-rw-r--r-- | default.latex | 79 |
1 files changed, 78 insertions, 1 deletions
diff --git a/default.latex b/default.latex index 3874813..42ee9bf 100644 --- a/default.latex +++ b/default.latex | |||
@@ -172,7 +172,7 @@ $if(theme)$ | |||
172 | \usetheme[$for(themeoptions)$$themeoptions$$sep$,$endfor$]{$theme$} | 172 | \usetheme[$for(themeoptions)$$themeoptions$$sep$,$endfor$]{$theme$} |
173 | $endif$ | 173 | $endif$ |
174 | $if(colortheme)$ | 174 | $if(colortheme)$ |
175 | \usecolortheme{$colortheme$} | 175 | \usecolortheme[$for(colorthemeoptions)$$colorthemeoptions$$sep$,$endfor$]{$colortheme$} |
176 | $endif$ | 176 | $endif$ |
177 | $if(fonttheme)$ | 177 | $if(fonttheme)$ |
178 | \usefonttheme{$fonttheme$} | 178 | \usefonttheme{$fonttheme$} |
@@ -376,6 +376,83 @@ $endfor$ | |||
376 | \let\LanguageShortHands\languageshorthands | 376 | \let\LanguageShortHands\languageshorthands |
377 | \def\languageshorthands#1{} | 377 | \def\languageshorthands#1{} |
378 | $endif$ | 378 | $endif$ |
379 | $if(beamer)$ | ||
380 | % Make toc brighter | ||
381 | \setbeamercolor{section in toc}{ | ||
382 | use=normal text, | ||
383 | fg=normal text.fg | ||
384 | } | ||
385 | \setbeamercolor{subsection in toc}{ | ||
386 | use=normal text, | ||
387 | fg=normal text.fg | ||
388 | } | ||
389 | % Add background to blocks | ||
390 | \setbeamercolor*{block title}{ | ||
391 | bg=normal text.bg!80!normal text.fg, | ||
392 | } | ||
393 | \setbeamercolor*{block body}{ | ||
394 | bg=normal text.bg!90!normal text.fg, | ||
395 | } | ||
396 | $else$ | ||
397 | \definecolor{normal text.fg}{named}{black} | ||
398 | \definecolor{normal text.bg}{named}{white} | ||
399 | % From Owl | ||
400 | \definecolor{OwlRed}{RGB}{ 255, 92, 168} | ||
401 | \definecolor{OwlGreen}{RGB}{ 90, 168, 0} | ||
402 | \definecolor{OwlBlue}{RGB}{ 0, 152, 233} | ||
403 | \definecolor{OwlYellow}{RGB}{ 242, 147, 24} | ||
404 | \colorlet{OwlViolet}{OwlRed!50!OwlBlue} | ||
405 | \colorlet{OwlBrown}{OwlRed!50!OwlGreen} | ||
406 | \colorlet{OwlOrange}{OwlRed!50!OwlYellow} | ||
407 | \colorlet{OwlCyan}{OwlGreen!50!OwlBlue} | ||
408 | \colorlet{red}{OwlRed} | ||
409 | \colorlet{green}{OwlGreen} | ||
410 | \colorlet{blue}{OwlBlue} | ||
411 | \colorlet{yellow}{OwlYellow} | ||
412 | \colorlet{violet}{OwlViolet} | ||
413 | \colorlet{brown}{OwlBrown} | ||
414 | \colorlet{orange}{OwlOrange} | ||
415 | \colorlet{cyan}{OwlCyan} | ||
416 | $endif$ | ||
417 | |||
418 | \usepackage[outputdir=build]{minted} | ||
419 | \usemintedstyle{$if(minted.style)$$minted.style$$else$$if(beamer)$inkpot$else$perldoc$endif$$endif$} | ||
420 | \setminted{tabsize=4,breaklines,numbersep=3mm,linenos,highlightcolor=violet!40!normal text.bg} | ||
421 | |||
422 | \setmonofont{Fira Code}[ | ||
423 | Scale=0.87096774193548387, % 459/527 | ||
424 | ItalicFont={Latin Modern Mono 10 Italic}, | ||
425 | Contextuals=Alternate, | ||
426 | StylisticSet={6,8}, | ||
427 | ] | ||
428 | |||
429 | \usepackage{tcolorbox} | ||
430 | \tcbuselibrary{skins,breakable} | ||
431 | |||
432 | \renewcommand{\theFancyVerbLine}{\ttfamily\scriptsize\textcolor{normal text.fg!60!normal text.bg}{\arabic{FancyVerbLine}}} | ||
433 | |||
434 | \BeforeBeginEnvironment{minted}{\begin{tcolorbox}[ | ||
435 | breakable, | ||
436 | tile, | ||
437 | enhanced, | ||
438 | left=6mm, | ||
439 | colbacktitle=normal text.bg!80!normal text.fg, | ||
440 | coltitle=normal text.fg, | ||
441 | coltext=normal text.fg, | ||
442 | fonttitle=\ttfamily\bfseries, | ||
443 | colback=normal text.bg!90!normal text.fg, | ||
444 | overlay={ | ||
445 | \begin{tcbclipinterior} | ||
446 | \fill[normal text.bg!85!normal text.fg] (frame.south west) rectangle ([xshift=5mm]frame.north west); | ||
447 | \end{tcbclipinterior} | ||
448 | } | ||
449 | ]} | ||
450 | \AfterEndEnvironment{minted}{\end{tcolorbox}} | ||
451 | |||
452 | \makeatletter | ||
453 | \def\verbatim@nolig@list{} | ||
454 | \makeatother | ||
455 | |||
379 | $for(header-includes)$ | 456 | $for(header-includes)$ |
380 | $header-includes$ | 457 | $header-includes$ |
381 | $endfor$ | 458 | $endfor$ |