dev-setup: add LaTeX installation

This commit is contained in:
Jannik Beyerstedt 2020-05-23 22:30:37 +02:00
parent 709dbf741a
commit 6c4089870c
6 changed files with 70 additions and 5 deletions

View file

@ -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