Various config changes

master
Jonathan Hodgson 6 years ago
parent b53bb217db
commit 29cdb5a978
  1. 9
      Templates/letter.md
  2. 1
      bin/aquarius-go
  3. 13
      bin/compiler
  4. 1
      i3/config
  5. 21
      pandoc/templates/template-letter.tex

@ -7,13 +7,14 @@ address:
# return-address # From Address. You can use \email for auto configured email # return-address # From Address. You can use \email for auto configured email
# cc # cc
# ps # ps
encl: #encl:
- cv #- cv
- another letter #- another letter
opening: Dear Bob, #opening: Dear Bob,
# closing # closing
subject: My Subject subject: My Subject
# colorlinks: true # colorlinks: true
#numbersections: true
... ...
This is my letter This is my letter

@ -0,0 +1 @@
/home/jonathan/GitRepos/aquariusGo/aquarius-go

@ -29,6 +29,16 @@ textype() { \
$command --output-directory="$dir" "$base" $command --output-directory="$dir" "$base"
} }
mdtype(){ \
command=${2:-"default"}
echo "$command"
case "$command" in
"fplreport") pandoc "$file" --template fellowship.latex --pdf-engine=xelatex -o "${base}.pdf" ;;
"letter") pandoc "$file" --template template-letter.tex -o "${base}.pdf" ;;
*) pandoc "$file" -o "$base".pdf ;;
esac
}
shebangtest() { shebangtest() {
case "$shebang" in case "$shebang" in
\#\!*) "$file" ;; \#\!*) "$file" ;;
@ -42,7 +52,8 @@ case "$file" in
*\.rmd) echo "require(rmarkdown); render('$file')" | R -q --vanilla ;; *\.rmd) echo "require(rmarkdown); render('$file')" | R -q --vanilla ;;
*\.tex|*\.latex) textype "$file" ;; *\.tex|*\.latex) textype "$file" ;;
#*\.md) pandoc "$file" --pdf-engine=xelatex -o "$base".pdf ;; #*\.md) pandoc "$file" --pdf-engine=xelatex -o "$base".pdf ;;
*\.md) pandoc "$file" -o "$base".pdf ;; #*\.md) pandoc "$file" -o "$base".pdf ;;
*\.md) mdtype "$file" "$2" ;;
*config.h) make && sudo make install ;; *config.h) make && sudo make install ;;
*\.c) cc "$file" -o "$base" && "$base" ;; *\.c) cc "$file" -o "$base" && "$base" ;;
*\.py) python "$file" ;; *\.py) python "$file" ;;

@ -269,6 +269,7 @@ bindsym $mod+c exec chromium-snapshot-bin, workspace $workspace1
bindsym $mod+Shift+c exec chromium-snapshot-bin --force-device-scale-factor=2, workspace $workspace1 bindsym $mod+Shift+c exec chromium-snapshot-bin --force-device-scale-factor=2, workspace $workspace1
bindsym control+mod1+f exec thunar bindsym control+mod1+f exec thunar
bindsym $mod+z exec zeal bindsym $mod+z exec zeal
bindsym $mod+Shift+q exec qutebrowser
# Pulse Audio controls # Pulse Audio controls

@ -252,6 +252,27 @@ $if(letterhead)$
$endif$ $endif$
\usepackage{blindtext} \usepackage{blindtext}
$if(numbersections)$
\newcounter{section}
\newcounter{subsection}[section]
\setcounter{secnumdepth}{3}
$endif$
\makeatletter
\newcommand\section{\@startsection {section}{1}{\z@}%
{-3.5ex \@plus -1ex \@minus -.2ex}%
{2.3ex \@plus.2ex}%
{\normalfont\Large\bfseries}}
\newcommand\subsection{\@startsection{subsection}{2}{\z@}%
{-3.25ex\@plus -1ex \@minus -.2ex}%
{1.5ex \@plus .2ex}%
{\normalfont\large\bfseries}}
$if(numbersections)$
\renewcommand \thesection{\@arabic\c@section}
\renewcommand\thesubsection{\thesection.\@arabic\c@subsection}
$endif$
\makeatother
\begin{document} \begin{document}
$for(include-before)$ $for(include-before)$

Loading…
Cancel
Save