-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
On utilise TeXLive latest et on installe les paquets LaTeX à partir d…
…e latex-template - On utilise la dernière version de TeXLive - On installe les paquets LaTeX à partir de latex-template - Quelques modifications cosmétiques
- Loading branch information
Showing
5 changed files
with
87 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
- name: run texhash | ||
become: true | ||
become_user: zds | ||
shell: texhash $HOME/texmf | ||
shell: "{{ texlive_binaries }}/texhash $HOME/texmf" | ||
|
||
- name: refresh font-config cache | ||
shell: fc-cache -f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,33 @@ | ||
- name: create tlmgr usertree | ||
- name: clone latex template | ||
become: true | ||
become_user: zds | ||
shell: tlmgr init-usertree | ||
args: | ||
creates: $HOME/texmf | ||
tags: | ||
- bootstrap | ||
|
||
- name: create ansible state if non-existant | ||
file: | ||
path: /opt/zds/texmf/ansible-state | ||
state: touch | ||
mode: 0666 | ||
tags: | ||
- bootstrap | ||
git: | ||
repo: "https://github.com/zestedesavoir/latex-template/" | ||
dest: "{{ template_dir }}" | ||
notify: run texhash | ||
|
||
- name: check ansible state | ||
slurp: src=/opt/zds/texmf/ansible-state | ||
register: installed_packages | ||
|
||
- name: install packages | ||
- name: install latex packages | ||
become: true | ||
become_user: zds | ||
shell: > | ||
# we make sure that tlmgr repository correspond to texlive annual release | ||
texlive_year=$(tlmgr --version) && | ||
texlive_year=$(echo -n $texlive_year | tail -c 4) && | ||
tlmgr option repository http://ftp.math.utah.edu/pub/tex/historic/systems/texlive/$texlive_year/tlnet-final && | ||
# we tell updmap to go user mode, not system mode | ||
updmap-user && | ||
# we update and install | ||
tlmgr update --list && | ||
tlmgr install {{ ' '.join(latex_packages) }} && | ||
echo {{ ' '.join(latex_packages) }} > $HOME/texmf/ansible-state | ||
when: installed_packages.content|b64decode|trim != latex_packages|join(" ") | ||
tags: | ||
- bootstrap | ||
vars: | ||
packages: "{{ template_dir }}/scripts/packages" | ||
shell: | | ||
packages=$(cat {{ packages }}) | ||
{{ texlive_binaries }}/tlmgr update --self | ||
{{ texlive_binaries }}/tlmgr install $packages | ||
args: | ||
executable: /bin/bash | ||
|
||
- name: create tabu directory | ||
become: true | ||
become_user: zds | ||
file: | ||
path: /opt/zds/texmf/tex/latex/tabu/ | ||
path: "{{ texlive_dir }}/texmf-dist/tex/latex/tabu/" | ||
state: directory | ||
tags: | ||
- bootstrap | ||
|
||
- name: install tabu package | ||
become: true | ||
become_user: zds | ||
get_url: | ||
url: https://raw.githubusercontent.com/tabu-issues-for-future-maintainer/tabu/master/tabu.sty | ||
dest: /opt/zds/texmf/tex/latex/tabu/tabu.sty | ||
tags: | ||
- bootstrap | ||
dest: "{{ texlive_dir }}/texmf-dist/tex/latex/tabu/tabu.sty" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Forked from Zeste de Savoir: | ||
# https://github.com/zestedesavoir/zds-site/blob/a16c5fc932b361cbee5c6e61b24167605e24cd8b/scripts/texlive.profile | ||
selected_scheme scheme-small | ||
TEXMFCONFIG $TEXMFSYSCONFIG | ||
TEXDIR {{ texlive_dir }} | ||
TEXMFLOCAL {{ texlive_dir }}/texmf-local | ||
TEXMFSYSCONFIG {{ texlive_dir }}/texmf-config | ||
TEXMFSYSVAR {{ texlive_dir }}/texmf-var | ||
TEXMFHOME $TEXMFLOCAL | ||
TEXMFVAR $TEXMFSYSVAR | ||
binary_x86_64-linux 1 | ||
collection-basic 1 | ||
collection-latex 1 | ||
collection-latexrecommended 1 | ||
collection-xetex 1 | ||
option_adjustrepo 1 | ||
tlpdbopt_autobackup 1 | ||
tlpdbopt_backupdir tlpkg/backups | ||
tlpdbopt_desktop_integration | ||
option_doc 1 | ||
tlpdbopt_file_assocs | ||
option_fmt 1 | ||
option_letter 0 | ||
option_path | ||
tlpdbopt_post_code 1 | ||
option_src 1 | ||
option_sys_bin /usr/local/bin | ||
option_sys_info /usr/local/share/info | ||
option_sys_man /usr/local/share/man | ||
tlpdbopt_w32_multi_user 1 | ||
portable 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters