Commit 79bbb452 authored by julian.gethmann's avatar julian.gethmann

Add LaTeX role

parent 06a8664d
texpath: /usr/share/texlive/texmf-local
kit_tikz:
- texlive-tikzpfeile
- texlive-tikz-feynman
- texlive-tikzmark
- texlive-tikzscale
- texlive-circuitikz
- texlive-tikzsymbols
- texlive-tikzinclude
- texlive-tikzposter
- texlive-tikz-palattice
- texlive-aobs-tikz
- texlive-tikz-3dplot
- texlive-tikz-timing
- texlive-hf-tikz
- texlive-tikzscale
- texlive-tikz-dependency
- texlive-pgfgantt
- texlive-venndiagram
- texlive-flowchart
- texlive-mycv
- texlive-pgf-spectra
texlivepackages: texlivepackages:
- texlive.x86_64 - texlive.x86_64
- kile - kile
...@@ -10,6 +33,8 @@ texlivepackages: ...@@ -10,6 +33,8 @@ texlivepackages:
- texlive-units - texlive-units
- texlive-mnsymbol - texlive-mnsymbol
- texlive-pgfgantt - texlive-pgfgantt
- texlive-pgf-umlcd
- texlive-pgf-umlsd
- texlive-prettyref - texlive-prettyref
- texlive-faktor - texlive-faktor
- texlive-overpic - texlive-overpic
......
...@@ -5,6 +5,12 @@ ...@@ -5,6 +5,12 @@
PATH: "{{ lookup('env', 'PATH') }}" PATH: "{{ lookup('env', 'PATH') }}"
command: mktexlsr command: mktexlsr
- name: update latex local
become: yes
environment:
PATH: "{{ lookup('env', 'PATH') }}"
command: mktexlsr "{{ texpath }}"
#- name: update latex #- name: update latex
# become: yes # become: yes
# command: shell mktexlsr /usr/local/texlive/texmf-local/ # command: shell mktexlsr /usr/local/texlive/texmf-local/
......
---
- name: rooting
action: shell passwd -u root
become: yes
- name: install dependencies
dnf: name="{{item}}" state=latest
become: yes
with_items:
- texlive-a0poster
- texlive-beamer
- texlive-bophook
- texlive-boxedminipage
- texlive-dinbrief
- texlive-hyperref
- texlive-lettrine
- texlive-mathpazo
- texlive-rcs
# - texlive-refcount
- texlive-sciposter
- texlive-shadow
- texlive-pgf
- texlive-xcolor
- "{{ kit_tikz }}"
# ansible 2.0
#- download current zip files
# unarchive: src="{{item}}" dest=~/ansible/roles/latex/files/ copy=no
# delegate_to: 127.0.0.1
# with_items:
# - "https://intranet.kit.edu/downloads/KIT-Vorlagen-Folien.zip"
# - "https://intranet.kit.edu/downloads/KIT-Vorlagen-Poster.zip"
# - name: Unzip KIT-Classes
# become: yes
# #shell: ls /tmp > /tmp/list
# unarchive: src={{ item }}.zip dest=/usr/share/texlive/texmf-local/
# with_items:
# - KITbase
# - KITbeamer
# - KITbrief
# - KITposter
# notify: update latex
# tags: kit
- name: clone git repo
git: repo=https://git.scc.kit.edu/gethmann/KITlatex.git dest={{ texpath }}/KIT clone=yes key_file={{ lookup('file', '/home/gethmann/.ssh/id_rsa.pub') }}
become: yes
- name: copy files
copy: src={{ texpath }}/KIT/ dest={{ texpath }}
become: yes
notify:
- update latex
# - name: cleanup
# file: state=absent dest=/tmp/{{item}}
# with_items:
# - Install-En.pdf
# - Install-De.pdf
# - Install-En.txt
# - Install-De.txt
# - KITbase.zip
# - KITbeamerXmpl.zip
# - KITbeamer.zip
# - KIT_Briefvorlagen_LaTeX.zip
# - KITbriefXmpl.zip
# - KITbrief.zip
# - KITmanualD.pdf
# - KITmanualE.pdf
# - KITposterXmpl.zip
# - KITposter.zip
# - KIT-Vorlagen-Folien-LaTeX_06-12.zip
# - KIT-Vorlagen-Poster-LaTeX_06-12.zip
# - KIT-Vorlagen-Folien.zip
# - KIT-Vorlagen-Poster.zip
# tags:
# - latex
# - kit
- name: hack Helvetica into KIT styles due to broken font installation
lineinfile: line="\\RequirePackage{helvet}" regexp="\\RequirePackage{uarial}" dest={{ texpath }}/tex/latex/KIT/{{item}} backup=yes
become: yes
with_items:
- beamerthemeKIT.sty
- KITbrief.cls
- KITfax.cls
- KITposter.cls
tags:
- latex
- kit
# TODO
# - name: download uarial
# unarchive: src="ftp://ftp.dante.de/tex-archive/fonts/urw/arial.zip" dest={{ texpath }}/KIT/arial creates={{ texpath }}/KIT/arial
# become: yes
#
# - name: create missing directories
# file: state=directory path={{ texpath }}/{{ item }}
# with_items:
# - fonts/afm/urw
# - fonts/tfm/urw
# - fonts/type1/urw
# - fonts/vf/urw
# - fonts/map/dvips/ua1
# - fonts/map/vtex
# - dvips/config
# - doc/fonts
# become: yes
# notify:
# - update latex local
# - update fonts
# - update latex
#
# - name: move afm, tfm, type1, vf dirs
# copy: src={{ item }} dest={{ texpath }}/fonts/{{ item }}/arial
# with_items:
# - afm
# - tfm
# - type1
# - vf
# become: yes
# notify:
# - update latex local
# - update fonts
# - update latex
#
# - name: copy latex dir
# copy: src=latex dest={{ texpath }}/tex/latex/ua1
# become: yes
# notify:
# - update latex local
# - update fonts
# - update latex
#
# - name: copy map dir
# copy: src={{ item.from }} dest={{ texpath }}/{{ item.to }}
# with_items:
# - {from: "map/ua1.map", to: "dvips/config"}
# - {from: "map/ua1.map", to: "fonts/map/dvips/ua1"}
# - {from: "map/ua1.ali", to: "fonts/map/vtex"}
# become: yes
# notify:
# - update latex local
# - update fonts
# - update latex
#
# - name: copy docu 1/2
# copy: src={{ item }} dest={{ texpath }}/doc/fonts/urw
# with_items:
# - doc
# - README
# become: yes
--- ---
- name: Install DPG-Tagungen document class - name: Install DPG-Tagungen document class
become: yes become: yes
copy: src=scdpg.cls dest=/usr/local/texlive/texmf-local/tex/latex/ copy: src=scdpg.cls dest={{ texpath }}/tex/latex/
notify: hash latex notify: hash latex
tags: latex tags: latex
- name: Install JACoW-Tagungen document class - name: Install JACoW-Tagungen document class
become: yes become: yes
copy: src=jacow.cls dest=/usr/share/texlive/texmf-local/tex/latex/ copy: src=jacow.cls dest={{ texpath }}/tex/latex/
notify: hash latex notify: hash latex
tags: latex tags: latex
--- ---
- include: LateX.yml - include: LateX.yml
tags: install tags: install
- include: LaTeXfonts.yml #- include: LaTeXfonts.yml
tags: fonts #tags: fonts
#- include: KITLaTeX.yml - include: KITLaTeX.yml
# tags: kit tags: kit
- include: AxelsBST.yml - include: AxelsBST.yml
- include: dpg.yml - include: dpg.yml
- include: neo2.yml - include: neo2.yml
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
become: yes become: yes
copy: copy:
src: /tmp/uniinput.sty src: /tmp/uniinput.sty
dest: "/usr/share/texlive/texmf-local/tex/latex/uniinput/" dest: "{{ texpath }}/tex/latex/uniinput/"
remote_src: yes remote_src: yes
notify: update latex notify: update latex
...@@ -44,6 +44,6 @@ ...@@ -44,6 +44,6 @@
become: yes become: yes
copy: copy:
src: /tmp/uniinput.pdf src: /tmp/uniinput.pdf
dest: "/usr/share/texlive/texmf-local/doc/latex/uniinput/" dest: "{{ texpath }}/doc/latex/uniinput/"
remote_src: yes remote_src: yes
notify: update latex notify: update latex
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment