summary refs log tree commit diff
path: root/doc/languages-frameworks/texlive.xml
blob: fdee1e405ecc073be8b09e6898f23a46fcdced63 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<section xmlns="http://docbook.org/ns/docbook"
         xmlns:xlink="http://www.w3.org/1999/xlink"
         xml:id="sec-language-texlive">

<title>TeX Live</title>

<para>Since release 15.09 there is a new TeX Live packaging that lives entirely under attribute <varname>texlive</varname>.</para>
<section><title>User's guide</title>
  <itemizedlist>
    <listitem><para>
      For basic usage just pull <varname>texlive.combined.scheme-basic</varname> for an environment with basic LaTeX support.</para></listitem>
    <listitem><para>
      It typically won't work to use separately installed packages together.
      Instead, you can build a custom set of packages like this:
      <programlisting>
texlive.combine {
  inherit (texlive) scheme-small collection-langkorean algorithms cm-super;
}
      </programlisting>
      There are all the schemes, collections and a few thousand packages, as defined upstream (perhaps with tiny differences).
    </para></listitem>
    <listitem><para>
      By default you only get executables and files needed during runtime, and a little documentation for the core packages.  To change that, you need to add <varname>pkgFilter</varname> function to <varname>combine</varname>.
      <programlisting>
texlive.combine {
  # inherit (texlive) whatever-you-want;
  pkgFilter = pkg:
    pkg.tlType == "run" || pkg.tlType == "bin" || pkg.pname == "cm-super";
  # elem tlType [ "run" "bin" "doc" "source" ]
  # there are also other attributes: version, name
}
      </programlisting>
    </para></listitem>
    <listitem><para>
      You can list packages e.g. by <command>nix-repl</command>.
      <programlisting>
$ nix-repl
nix-repl> :l &lt;nixpkgs>
nix-repl> texlive.collection-&lt;TAB>
      </programlisting>
    </para></listitem>
  </itemizedlist>
</section>

<section><title>Known problems</title>
  <itemizedlist>
    <listitem><para>
      Some tools are still missing, e.g. luajittex;</para></listitem>
    <listitem><para>
      some apps aren't packaged/tested yet (asymptote, biber, etc.);</para></listitem>
    <listitem><para>
      feature/bug: when a package is rejected by <varname>pkgFilter</varname>, its dependencies are still propagated;</para></listitem>
    <listitem><para>
      in case of any bugs or feature requests, file a github issue or better a pull request and /cc @vcunat.</para></listitem>
  </itemizedlist>
</section>


</section>