Douglas Bates
2012-May-08 15:56 UTC
[R-sig-Debian] Installing LaTeX class files not available in Debian packages
I apologize for abusing the list somewhat but there is some connection to R. Several of the example files in the knitr package for R use the tufte-handout class, which, AFAICS, is not available in Ubuntu or Debian packages (please correct me if I am wrong). The source files are available at tufte-latex.googlecode.com (a.k.a. code.google.com/p/tufte-latex) and I presume they should end up in a subdirectory of /usr/local/share/texmf or something like that. Is there a standard approach to adding unpackaged class files?
Dirk Eddelbuettel
2012-May-08 16:15 UTC
[R-sig-Debian] Installing LaTeX class files not available in Debian packages
Doug, On 8 May 2012 at 10:56, Douglas Bates wrote: | I apologize for abusing the list somewhat but there is some connection | to R. Several of the example files in the knitr package for R use the | tufte-handout class, which, AFAICS, is not available in Ubuntu or | Debian packages (please correct me if I am wrong). Always glad to be of assistance: edd at max:~$ locate tufte-handout.cls /usr/share/texmf-texlive/tex/latex/tufte-latex/tufte-handout.cls edd at max:~$ dpkg -S `locate tufte-handout.cls` texlive-pictures: /usr/share/texmf-texlive/tex/latex/tufte-latex/tufte-handout.cls edd at max:~$ The package is arguably named a little awkwardly but there you go: "of course" it is Debian. I reckon that the aggregate file space of all the texlive package I have installed is in excess of the disk size of my first Linux computers... edd at max:~$ dpkg -l|grep texlive|grep ^ii|cut -c-78 ii texlive-base 2009-13 ii texlive-bibtex-extra 2009-10ubuntu1 ii texlive-binaries 2009-11ubuntu1 ii texlive-common 2009-13 ii texlive-doc-base 2009-2 ii texlive-extra-utils 2009-10ubuntu1 ii texlive-font-utils 2009-10ubuntu1 ii texlive-fonts-extra 2009-10ubuntu1 ii texlive-fonts-extra-doc 2009-10ubuntu1 ii texlive-fonts-recommended 2009-13 ii texlive-fonts-recommended-doc 2009-13 ii texlive-generic-recommended 2009-13 ii texlive-latex-base 2009-13 ii texlive-latex-base-doc 2009-13 ii texlive-latex-extra 2009-10ubuntu1 ii texlive-latex-extra-doc 2009-10ubuntu1 ii texlive-latex-recommended 2009-13 ii texlive-latex-recommended-doc 2009-13 ii texlive-pictures 2009-13 ii texlive-pictures-doc 2009-13 ii texlive-pstricks 2009-10ubuntu1 ii texlive-pstricks-doc 2009-10ubuntu1 ii texlive-science 2009-10ubuntu1 ii texlive-science-doc 2009-10ubuntu1 edd at max:~$ Dirk -- R/Finance 2012 Conference on May 11 and 12, 2012 at UIC in Chicago, IL See agenda, registration details and more at http://www.RinFinance.com
Sebastian P. Luque
2012-May-08 16:30 UTC
[R-sig-Debian] Installing LaTeX class files not available in Debian packages
On Tue, 8 May 2012 10:56:10 -0500, Douglas Bates <bates at stat.wisc.edu> wrote:> I apologize for abusing the list somewhat but there is some connection > to R. Several of the example files in the knitr package for R use the > tufte-handout class, which, AFAICS, is not available in Ubuntu or > Debian packages (please correct me if I am wrong).> The source files are available at tufte-latex.googlecode.com (a.k.a. > code.google.com/p/tufte-latex) and I presume they should end up in a > subdirectory of /usr/local/share/texmf or something like that. Is > there a standard approach to adding unpackaged class files?AFAIK, the standard approach is to duplicate the directory structure of /usr/share/texmf under /usr/local/share/texmf and then place the different files of the package (LaTeX) where they belong (Peter Flynn's book, available online, has a good overview of this) under the latter. cpio is great to replicate directory structures in one fell swoop. By default in Debian, /usr/local/share/texmf is inspected by mktexlsr to update the LaTeX database, so it's run automatically by Debian packages that need to do so. However, you'd need to run it manually after placing and building the files (if necessary) to make the package immediately available. Cheers, -- Seb