diff options
author | Toby Vincent <tobyv13@gmail.com> | 2021-10-13 14:10:05 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2021-10-13 14:10:05 -0500 |
commit | d8e7356f57ba420dd9708f4c1051703ec117e187 (patch) | |
tree | 044b0edc491c28056c1308431e482d12bae5f1c5 | |
parent | 3fb4cb5696ec9ab4ccb94ba1e5f36f865bc79d41 (diff) |
refactor: moved latex files to github gist
-rw-r--r-- | install.conf.yaml | 1 | ||||
-rw-r--r-- | latex/header.sty | 34 | ||||
-rw-r--r-- | latex/section.sty | 50 | ||||
-rw-r--r-- | latex/title.sty | 29 | ||||
-rwxr-xr-x | scripts/latex-init.sh | 11 | ||||
-rw-r--r-- | shell/aliases.sh | 7 |
6 files changed, 16 insertions, 116 deletions
diff --git a/install.conf.yaml b/install.conf.yaml index 889dc3d..85e607b 100644 --- a/install.conf.yaml +++ b/install.conf.yaml @@ -25,7 +25,6 @@ ~/.p10k.zsh: ~/.gitconfig: ~/.ssh/config: ssh/config - ~/texmf/tex/latex/local: latex ~/.gnupg/: glob: true path: gnupg/*.conf diff --git a/latex/header.sty b/latex/header.sty deleted file mode 100644 index 4607356..0000000 --- a/latex/header.sty +++ /dev/null @@ -1,34 +0,0 @@ -\NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{header}[2021/09/29 Header style] - -% ┌───────────────────────────────────┐ -% │ Title: Subtitle │ ──┬─ [Header] -% │ Author │ ──┘ -% │ Title │ ──┬─ Title -% │ Subtitle │ ──┘ -% │ │ -% │ A Section │ ──┬─ Sections -% │ ... │ │ -% │ 1.1 A Subsection │ ──┤ -% │ ... │ │ -% │ Another Section │ ──┤ -% │ ... │ │ -% │ 2.1 A Subsection │ ──┤ -% │ ... │ │ -% │ 2.2 Another Subsection │ ──┘ -% │ ... │ -% │ │ -% │ │ -% └───────────────────────────────────┘ - -\pagestyle{myheadings} - -\newsavebox{\headingbox} -\sbox{\headingbox}{% - \begin{minipage}[b]{0.5\textwidth} - \begin{flushright} - \@title: \@subtitle \\ - \@author \\ - \end{flushright} - \end{minipage}} -\markright{\hfill\usebox{\headingbox}} diff --git a/latex/section.sty b/latex/section.sty deleted file mode 100644 index 1b9e2ae..0000000 --- a/latex/section.sty +++ /dev/null @@ -1,50 +0,0 @@ -\NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{section}[2021/09/29 Section style] - -% ┌───────────────────────────────────┐ -% │ Title: Subtitle │ ──┬─ Header -% │ Author │ ──┘ -% │ Title │ ──┬─ Title -% │ Subtitle │ ──┘ -% │ │ -% │ A Section │ ──┬─ [Sections] -% │ ... │ │ -% │ 1.1 A Subsection │ ──┤ -% │ ... │ │ -% │ Another Section │ ──┤ -% │ ... │ │ -% │ 2.1 A Subsection │ ──┤ -% │ ... │ │ -% │ 2.2 Another Subsection │ ──┘ -% │ ... │ -% │ │ -% │ │ -% └───────────────────────────────────┘ - -\RequirePackage{indentfirst} -% \RequirePackage{titlesec} -% \titlespacing*{\section}{0pt}{1.1\baselineskip}{\baselineskip} - -% Paragraph spacing -\setlength{\parskip}{1em} - -\RedeclareSectionCommand[ - afterindent=false, - beforeskip=.5\baselineskip, - afterskip=.5\baselineskip -]{section} - -% Section style - Hides main section numbers - -% First section -% 1.1 First subsection -% Another section -% 2.2 Another subsection -% \renewcommand{\thesection}{} -% \renewcommand{\thesubsection}{\arabic{section}.\arabic{subsection}} -% \makeatletter -% \def\@seccntformat#1{\csname #1ignore\expandafter\endcsname\csname the#1\endcsname\quad} -% \let\sectionignore\@gobbletwo -% \let\latex@numberline\numberline -% \def\numberline#1{\if\relax#1\relax\else\latex@numberline{#1}\fi} -% \makeatother diff --git a/latex/title.sty b/latex/title.sty deleted file mode 100644 index b6b54a3..0000000 --- a/latex/title.sty +++ /dev/null @@ -1,29 +0,0 @@ -\NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{title}[2021/09/29 Title style] - -% ┌───────────────────────────────────┐ -% │ Title: Subtitle │ ──┬─ Header -% │ Author │ ──┘ -% │ Title │ ──┬─ [Title] -% │ Subtitle │ ──┘ -% │ │ -% │ A Section │ ──┬─ Sections -% │ ... │ │ -% │ 1.1 A Subsection │ ──┤ -% │ ... │ │ -% │ Another Section │ ──┤ -% │ ... │ │ -% │ 2.1 A Subsection │ ──┤ -% │ ... │ │ -% │ 2.2 Another Subsection │ ──┘ -% │ ... │ -% │ │ -% │ │ -% └───────────────────────────────────┘ - -\renewcommand{\maketitle}{ - \begin{flushleft} - {\Huge \bfseries \sffamily \@title }\\[2ex] - {\Large \sffamily \@subtitle }\\[4ex] - \end{flushleft} -} diff --git a/scripts/latex-init.sh b/scripts/latex-init.sh new file mode 100755 index 0000000..7b8125e --- /dev/null +++ b/scripts/latex-init.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +USER="tobyvin" +GIST_ID="c94716d1106256e4ab0e27aed398a0a2" + +curl -Ls "https://gist.github.com/${USER}/${GIST_ID}/download" -o tempFile +unzip -q tempFile +rm -rf tempFile +mv "${GIST_ID}-master" styles +mv styles/template.tex "$(basename "$(pwd)").tex" +mv styles/table.tex . diff --git a/shell/aliases.sh b/shell/aliases.sh index 94b3543..9f23cfa 100644 --- a/shell/aliases.sh +++ b/shell/aliases.sh @@ -1,7 +1,5 @@ #!/usr/bin/env bash -alias dfi="$DOTFILES/install" -alias dfu="$DOTFILES/update" alias ls='ls --color=tty' alias l='ls -lah' alias la='ls -lAh' @@ -14,6 +12,10 @@ alias ipa="ip -s -c -h a" alias untar="tar -zxvf " alias update="sudo apt update && apt list --upgradable" alias upgrade="sudo apt upgrade -y" +# scripts +alias dfi="$DOTFILES/install" +alias dfu="$DOTFILES/update" +alias init="init-script" alias cht="cht.sh" # docker alias dexec="docker exec -it" @@ -34,3 +36,4 @@ alias dma="docker-machine active" alias dmi="docker-machine inspect" alias dmu="docker-machine-use" docker-machine-use() { eval $(docker-machine env ${1:=-u}); } +init-script() { "$DOTFILES/scripts/${1}-init.sh"; } |