diff --git a/README.md b/README.md index f00da2e..e1e3ca3 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ For a GUI/ Desktop machine, you can enable to install and configure VS Code: - `user_lang_python`: Boolean to install Python dev tools and configure VS Code (default: false) - `user_lang_golang`: Boolean to install Golang dev tools and configure VS Code (default: false) * `user_lang_golang_gopath`: Install path for golang (default: "{{ ansible_user_dir }}/Development/go") +- `user_lang_latex`: Boolean to install a LaTeX distribution and configure VS Code (default: false) By default, this role will run updates, install some essential tools, set up the user's shell and copy the dotfiles. If you just want to have the dotfiles managed by ansible, set `common_settingsonly` to true! diff --git a/defaults/main.yml b/defaults/main.yml index 63dfee7..f5703fa 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -19,3 +19,4 @@ user_lang_cpp: false user_lang_python: false user_lang_golang: false user_lang_golang_gopath: "{{ ansible_user_dir }}/Development/go" +user_lang_latex: false diff --git a/tasks/devel-Archlinux.yml b/tasks/devel-Archlinux.yml index c2f6212..8cf783d 100644 --- a/tasks/devel-Archlinux.yml +++ b/tasks/devel-Archlinux.yml @@ -50,3 +50,19 @@ packages: - go when: user_lang_golang == true + +# Dev Env - LaTeX Distribution +- name: devel - LaTeX + block: + - name: devel - LaTeX - Install basic TeX distribution + package: + name: "{{ packages }}" + state: present + vars: + packages: + - texlive-core + # - texlive-bibtexextra + # - texlive-science + # - texlive-fontsextra + - biber + when: user_lang_latex == true diff --git a/tasks/devel-Darwin.yml b/tasks/devel-Darwin.yml index 2ad4c1c..f6eb15a 100644 --- a/tasks/devel-Darwin.yml +++ b/tasks/devel-Darwin.yml @@ -57,3 +57,16 @@ packages: - go when: user_lang_golang == true + +# Dev Env - LaTeX Distribution +- name: devel - LaTeX + block: + - name: devel - LaTeX - Install basic TeX distribution + homebrew_cask: + name: "{{ packages }}" + state: present + vars: + packages: + - basictex + - tex-live-utility + when: user_vscode == true and user_lang_latex == true diff --git a/tasks/devel-Debian.yml b/tasks/devel-Debian.yml index 9dd31fd..8ad024d 100644 --- a/tasks/devel-Debian.yml +++ b/tasks/devel-Debian.yml @@ -55,3 +55,19 @@ packages: - golang when: user_lang_golang == true + +# Dev Env - LaTeX Distribution +- name: devel - LaTeX + block: + - name: devel - LaTeX - Install basic TeX distribution + package: + name: "{{ packages }}" + state: present + vars: + packages: + - texlive-base + # - texlive-bibtex-extra + # - texlive-science + # - texlive-fonts-extra + - biber + when: user_lang_latex == true diff --git a/tasks/devel.yml b/tasks/devel.yml index 12d5a3f..f0614ec 100644 --- a/tasks/devel.yml +++ b/tasks/devel.yml @@ -11,6 +11,7 @@ # - user_lang_python: Boolean for Python # - user_lang_golang: Boolean for Golang # - user_lang_golang_gopath: Go workspace directory +# - user_lang_latex: Boolean for LaTeX - name: vscode - Install and configure VS Code include_tasks: "{{ item }}" @@ -30,9 +31,8 @@ code --install-extension yzane.markdown-pdf code --install-extension jebbs.plantuml - - # code --install-extension james-yu.latex-workshop - # code --install-extension ban.spellright + code --install-extension mechatroner.rainbow-csv + code --install-extension grapecity.gc-excelviewer when: user_vscode == true # VS Code - C/C++ Development Tools @@ -47,7 +47,7 @@ when: user_vscode == true and user_lang_cpp == true # VS Code - Python Development Tools -- name: vscode - Python - Install python dev packages +- name: devel - Python - Install python dev packages pip: name: - autopep8 @@ -86,7 +86,7 @@ line: "export PATH=$PATH:{{ user_lang_golang_gopath }}/bin" state: present backup: yes - # TODO: make this resilient agains changes + # TODO: make this resilient against changes # and group all golang stuff in one section inside zshrc-host when: user_lang_golang == true @@ -97,3 +97,21 @@ PATH=/usr/local/bin:$PATH code --install-extension ms-vscode.go when: user_vscode == true and user_lang_golang == true + +# VS Code - LaTeX Distribution +- name: devel - LaTeX - Install TeX packages + become: yes + shell: | + PATH=/Library/TeX/textbin:$PATH + tlmgr install latexmk latexindent biblatex logreq xstring biber + tlmgr install collection-fontsextra collection-fontsrecommended collection-fontutils collection-langgerman collection-langenglish collection-mathscience + tlmgr install todonotes textpos lipsum pgfopts xpatch enumitem nomencl glossaries glossaries-german glossaries-english datatool mfirstuc xfor substr tracklang placeins placeins-plain csquotes appendixnumberbeamer fontaxes + when: user_lang_latex == true +- name: vscode - LaTeX + block: + - name: vscode - Basics - Configure + shell: | + PATH=/usr/local/bin:$PATH + code --install-extension james-yu.latex-workshop + code --install-extension ban.spellright + when: user_vscode == true and user_lang_latex == true