Commit 9c9da063 authored by julian.gethmann's avatar julian.gethmann

Add LaTeX role

* basic LaTeX installation
* includes MS fonts (incl. Arial for KIT layout)
* JACoW and DPG templates
* Axel Bernhard's bib-file
* Neo2 UTF-8 class
parent 848fed48
texlivepackages:
- texlive.x86_64
- kile
- texmaker
- texlive-epstopdf-bin
- texlive-quotmark
- texlive-hyphen-german
- texlive-babel-german
- texlive-pgfplots
- texlive-units
- texlive-mnsymbol
- texlive-pgfgantt
- texlive-prettyref
- texlive-faktor
- texlive-overpic
# Sphinx (Python docu)
- texlive-sidecap
- texlive-framed
- texlive-threeparttable
- texlive-wrapfig
- texlive-upquote
- texlive-capt-of
- texlive-multirow
- texlive-eqparbox
# fsphys/thesisvorlage-latex
- texlive-vmargin
- texlive-floatflt
- texlive-acronym
- texlive-mhchem
# KIT-{beamer,poster,brief}
- texlive-blindtext
# Bechleunigerphysik II Übung
- texlive-siunitx
- texlive-SIunits
- texlive-was
- texlive-commath
- texlive-ulem
# system docu
- texlive-draftwatermark
# JaCoW
- texlive-sttools
- texlive-boondox
- biber
# biber dependencies
# gdbm-devel
# libdb-devel
# perl-Business-ISMN
# perl-Business-ISSN
# perl-Data-Compare
# perl-Data-Dump
# perl-Data-OptList
# perl-Date-Simple
# perl-Devel-GlobalDestruction
# perl-Dist-CheckConflicts
# perl-Email-Date-Format
# perl-Exporter-Tiny
# perl-ExtUtils-Command
# perl-ExtUtils-Install
# perl-ExtUtils-MakeMaker
# perl-ExtUtils-Manifest
# perl-ExtUtils-ParseXS
# perl-File-Find-Rule
# perl-File-Slurp
# perl-File-Slurp-Tiny
# perl-IPC-Cmd
# perl-IPC-Run3
# perl-LWP-Protocol-https
# perl-List-AllUtils
# perl-List-MoreUtils
# perl-Locale-Maketext
# perl-Locale-Maketext-Simple
# perl-Log-Dispatch
# perl-Log-Dispatch-FileRotate
# perl-Log-Log4perl
# perl-MIME-Charset
# perl-MIME-Lite
# perl-MIME-Types
# perl-Mail-Sender
# perl-Mail-Sendmail
# perl-MailTools
# perl-Module-Implementation
# perl-Module-Load
# perl-Module-Load-Conditional
# perl-Module-Metadata
# perl-Module-Runtime
# perl-Mozilla-CA
# perl-Net-SMTP-SSL
# perl-Number-Compare
# perl-Package-Generator
# perl-Params-Check
# perl-Params-Util
# perl-Params-Validate
# perl-Readonly
# perl-Regexp-Common
# perl-Sub-Exporter
# perl-Sub-Exporter-Progressive
# perl-Sub-Install
# perl-Sub-Name
# perl-Sys-Syslog
# perl-Text-BibTeX
# perl-Text-Glob
# perl-Tie-Cycle
# perl-Try-Tiny
# perl-Unicode-LineBreak
# perl-XML-LibXML
# perl-XML-LibXML-Simple
# perl-XML-LibXSLT
# perl-XML-NamespaceSupport
# perl-XML-SAX
# perl-XML-SAX-Base
# perl-XML-Writer
# perl-autovivification
# perl-devel
# rrdtool-perl
# sombok
# systemtap-sdt-devel
# Xe(La)TeX
- texlive-xetex
- texlive-collection-xetex
- texlive-xetex-def
- texlive-xetexfontinfo
- texlive-xevlna
- texlive-euenc
- texlive-unicode-math
- texlive-mathspec
- texlive-xgreek
- texlive-xecolor
- texlive-fontspec
# Thought to be usefull
- texlive-texlive-de-doc.noarch
- texlive-texlive-common-doc.noarch
- texlive-texlive-docindex-doc.noarch
- texlive-ae.noarch
- texlive-cm.noarch
- texlive-cv.noarch
- texlive-ec.noarch
- texlive-ed.noarch
- texlive-fp.noarch
- texlive-gu.noarch
- texlive-hc.noarch
- texlive-lm.noarch
- texlive-t2.noarch
- texlive-alg.noarch
- texlive-doi.noarch
- texlive-dox.noarch
- texlive-eco.noarch
- texlive-ecv.noarch
- texlive-emp.noarch
- texlive-esk.noarch
- texlive-fbs.noarch
- texlive-fmp.noarch
- texlive-gmp.noarch
- texlive-hep.noarch
- texlive-iso.noarch
- texlive-lcg.noarch
- texlive-lfb.noarch
- texlive-msg.noarch
- texlive-nag.noarch
- texlive-nuc.noarch
- texlive-ofs.noarch
- texlive-pax.noarch
- texlive-pgf.noarch
- texlive-qcm.noarch
- texlive-sfg.noarch
- texlive-svg.noarch
- texlive-svn.noarch
- texlive-tap.noarch
- texlive-ucs.noarch
- texlive-uml.noarch
- texlive-uri.noarch
- texlive-url.noarch
- texlive-vpe.noarch
- texlive-base.noarch
- texlive-abbr.noarch
- texlive-acro.noarch
- texlive-bohr.noarch
- texlive-cals.noarch
- texlive-circ.noarch
- texlive-cite.noarch
- texlive-cmap.noarch
- texlive-cmll.noarch
- texlive-cmpj.noarch
- texlive-cmsd.noarch
- texlive-cool.noarch
- texlive-crop.noarch
- texlive-dhua.noarch
- texlive-epsf.noarch
- texlive-etoc.noarch
- texlive-euro.noarch
- texlive-exam.noarch
- texlive-feyn.noarch
- texlive-fink.noarch
- texlive-mycv.noarch
- texlive-nath.noarch
- texlive-pbox.noarch
- texlive-pdfx.noarch
- texlive-spot.noarch
# to be continued
......@@ -47,6 +47,9 @@ las116.las.kit.edu
las118.las.kit.edu
las-gethmann.las.kit.edu
[latex]
las-gethmann.las.kit.edu
# semi stable
[scipy]
las114.las.kit.edu
......
- hosts: latex
roles:
- latex
#!/usr/bin/bash
sudo -i /tmp/install-getnonfreefonts
sudo -i getnonfreefonts-sys -a
sudo -i getnonfreefonts-sys -r
This diff is collapsed.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Einige ntzliche Abkrzungen
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------
% Mathematische Operatoren
%----------
\newcommand{\diff}{\mathrm{d}}
\newcommand{\deriv}[2]{\frac{\diff#1}{\diff#2}}
\newcommand{\pderiv}[2]{\frac{\partial#1}{\partial#2}}
\newcommand{\e}{\mathrm{e}}
\newcommand{\im}{\mathrm{i}}
\newcommand{\bra}[1]{\langle #1 | \,}
\newcommand{\ket}[1]{\,| #1 \rangle}
\newcommand{\braket}[2]{\langle #1 | #2 \rangle}
%----------
% Physikalische Einheiten
%----------
\newcommand{\Dim}[1]{\,\textnormal{#1}}
\newcommand{\cel}{$^{\circ}$\textnormal{C}}
\newcommand{\muks}{$\mu \mathrm{Ks^{-1}}$}
%----------
% Chemische Formeln
%----------
\newcommand{\fb}{Fe$_3$BO$_6\,$}
\newcommand{\afb}{$^{57}$Fe$_3$BO$_6\,$}
\newcommand{\fe}{$^{57}$Fe}
\newcommand{\feni}{Fe$_{\textnormal{(1-x)}}$Ni$_{\textnormal{x}}\,$}
\newcommand{\feninvar}{Fe$_{\textnormal{65}}$Ni$_{\textnormal{35}}\,$}
\newcommand{\fepd}{Fe$_{\textnormal{(1-x)}}$Pd$_{\textnormal{x}}\,$}
\newcommand{\fp}[2]{Fe$_{\textnormal{#1}}$Pd$_{\textnormal{#2}}\,$}
%\newcommand{\fe7pd3}{Fe$_{\textnormal{70}}$Pd$_{\textnormal{30}}\,$}
\newcommand{\fepinvar}{Fe$_{\textnormal{68}}$Pd$_{\textnormal{32}}\,$}
%----------
% Undulatorgroessen
%----------
\newcommand{\lambdau}{\lambda_{\mathrm{u}}}
\newcommand{\lambdaf}{\lambda_{\mathrm{u}0}}
This diff is collapsed.
---
- name: update latex
become: yes
environment:
PATH: "{{ lookup('env', 'PATH') }}"
command: mktexlsr
#- name: update latex
become: yes
# command: shell mktexlsr /usr/local/texlive/texmf-local/
#
- name: update tlmgr
become: yes
action: shell tlmgr update --self --all
environment:
PATH: "{{ lookup('env', 'PATH') }}"
- name: hash latex
become: yes
environment:
PATH: "{{ lookup('env', 'PATH') }}"
command: texhash
---
dependencies:
- { role: common }
---
- name: install Axel Bernhard's BibTeX-class for poster kurz.bst
become: yes
copy: src=kurz.bst dest=/usr/local/texlive/texmf-local/bibtex/bst/ backup=yes
notify: hash latex
tags: kurzbst
---
# should be more stateless...
- name: Download common MS fonts
get_url: dest=/tmp/ url=https://www.tug.org/fonts/getnonfreefonts/install-getnonfreefonts mode=777
register: tex_fonts_dl_ok
- name: Install getnonfreefonts
environment:
PATH: "{{ lookup('env', 'PATH') }}"
become: yes
shell: /tmp/install-getnonfreefonts
- name: Install all TeX fonts
environment:
PATH: "{{ lookup('env', 'PATH') }}"
become: yes
shell: getnonfreefonts-sys -a
- name: Register all TeX fonts
environment:
PATH: "{{ lookup('env', 'PATH') }}"
become: yes
shell: getnonfreefonts-sys -r
- name: cleanup
file: state=absent dest=/tmp/{{item}}
with_items:
- install-getnonfreefonts
---
# Install LaTeX and KIT classes on host
# not tested yet
- name: Install Fedora's LaTeX
dnf: name=texlive state=installed
become: yes
tags: latex
- name: Install LaTeX subpackages
dnf: name={{item}} state=latest
become: yes
with_items: "{{ texlivepackages }}"
# - name: profile.d (for TL {{tlyear}})
# copy: src=latex.sh dest=/etc/profile.d/latex.sh owner=root group=root mode=744
# become: yes
# tags: latex
# register: latexsh
#
# - name: run latex.sh (for TL {{tlyear}})
# action: shell bash /etc/profile.d/latex.sh
# become: yes
# tags: latex
# notify: update latex
# when: latexsh|changed
---
- name: Install DPG-Tagungen document class
become: yes
copy: src=scdpg.cls dest=/usr/local/texlive/texmf-local/tex/latex/
notify: hash latex
tags: latex
- name: Install JACoW-Tagungen document class
become: yes
copy: src=jacow.cls dest=/usr/share/texlive/texmf-local/tex/latex/
notify: hash latex
tags: latex
---
- include: LateX.yml
tags: install
- include: LaTeXfonts.yml
tags: fonts
#- include: KITLaTeX.yml
# tags: kit
- include: AxelsBST.yml
- include: dpg.yml
- include: neo2.yml
tags: neo2
---
- name: download uniinput
get_url: url={{item}} dest=/tmp
with_items:
- "http://wiki.neo-layout.org/export/HEAD/latex/Standard-LaTeX/uniinput.dtx"
- "http://wiki.neo-layout.org/export/HEAD/latex/Standard-LaTeX/uniinput.ins"
- name: compile package docu
command: pdflatex -interaction=nonstopmode uniinput.dtx chdir=/tmp
ignore_errors: yes
- name: compile package
command: latex uniinput.ins chdir=/tmp creates=/tmp/uniinput.sty
- name: create destination directories
file: path=/usr/share/texlive/texmf-local/{{item}}/latex/uniinput state=directory mode=0755
with_items:
- tex
- doc
become: yes
- name: move style to LaTeX dir
become: yes
copy: src=/tmp/uniinput.sty dest=/usr/share/texlive/texmf-local/tex/latex/uniinput/ remote_src=yes
notify: update latex
- name: move docu to LaTeX dir
become: yes
copy: src=/tmp/uniinput.pdf dest=/usr/share/texlive/texmf-local/doc/latex/uniinput/ remote_src=yes
notify: update latex
---
- include: common.yml
- include: clients.yml
tags: client
#- include: opera.yml
#- include: elegant.yml
- include: admin.yml
tags: admin
#- include: scipy.yml
#- include: server.yml
#- include: nfs.yml
#- include: update.yml
- include: desktop.yml
tags: admin
- include: latex.yml
tags: 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