From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Alsinet Subject: Re: do you need a separate LaTeX installation to export org mode files to pdf? Date: Mon, 22 Jan 2018 15:44:35 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a1147222e3c61dc05635f4f88" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36384) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edeHD-0007uC-CV for emacs-orgmode@gnu.org; Mon, 22 Jan 2018 10:44:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1edeH9-0007ef-Eb for emacs-orgmode@gnu.org; Mon, 22 Jan 2018 10:44:51 -0500 Received: from mail-ot0-f176.google.com ([74.125.82.176]:46924) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1edeH9-0007eA-6a for emacs-orgmode@gnu.org; Mon, 22 Jan 2018 10:44:47 -0500 Received: by mail-ot0-f176.google.com with SMTP id t35so7812303otd.13 for ; Mon, 22 Jan 2018 07:44:46 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Kaushal Modi Cc: emacs-orgmode@gnu.org, Christopher W Ryan --001a1147222e3c61dc05635f4f88 Content-Type: text/plain; charset="UTF-8" Hello Christopher I have a docker image with LaTeX installed in order not to "pollute" my local filesystem with the 4GB of additional libraries a full LaTeX installation requires. If your co-worker is a software developer you could use that approach. Here is mi Dockerfile for LaTeX: FROM ubuntu:xenial MAINTAINER Martin Alsinet ENV DEBIAN_FRONTEND noninteractive RUN apt-get update -q RUN apt-get install -y texlive-full gnuplot python-pygments RUN apt-get clean RUN rm -rf /var/lib/apt/lists/* Save that in a file named *Dockerfile* in a blank folder and run *docker build -t latex .* This will create a docker image named latex with all the libraries and executables neatly tucked away. Then, in order to use it, you can save the following script in ~/bin/pdflatex #!/bin/sh export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin docker run --rm \ -v $(pwd):$(pwd) \ -v ~/.ssh:/root/.ssh \ -w $(pwd) \ latex \ pdflatex $@ rm *.log *.aux rm -f *.ent rm -Rf _minted-* With that you can use the *pdflatex* command as usual, and docker creates a temporary container (docker run --rm ...) from the image, runs the pdflatex command and removes the container after execution. bash-3.2$ pdflatex --version pdfTeX 3.14159265-2.6-1.40.16 (TeX Live 2015/Debian) kpathsea version 6.2.1 Copyright 2015 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX). There is NO warranty. Redistribution of this software is covered by the terms of both the pdfTeX copyright and the Lesser GNU General Public License. For more information about these matters, see the file named COPYING and the pdfTeX source. Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX). Compiled with libpng 1.6.17; using libpng 1.6.17 Compiled with zlib 1.2.8; using zlib 1.2.8 Compiled with poppler version 0.41.0 rm: *.log: No such file or directory rm: *.aux: No such file or directory Martin On Mon, Jan 22, 2018 at 10:23 AM Kaushal Modi wrote: > On Mon, Jan 22, 2018 at 9:57 AM Christopher W Ryan > wrote: > >> Would they need to install LaTeX too, or is org mode self-contained and >> able to export to pdf without LaTeX an friends installed? >> > > Yes, they'd need to have a LaTeX distribution installed on their system. > In my experience, installing the full latest version of TexLive is the > easiest way. > > > -- > > Kaushal Modi > --001a1147222e3c61dc05635f4f88 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Christopher

I have a docker image= with LaTeX installed in order not to "pollute" my local filesyst= em with the 4GB of additional libraries a full LaTeX installation requires.=
If your co-worker is a software developer you could use that app= roach.

Here is mi Dockerfile for LaTeX:
=
FROM ubuntu:xenial<= /font>
MAINTAINER Martin Alsi= net <martin@alsinet>

ENV DEBIAN= _FRONTEND noninteractive

RUN apt-get up= date -q
RUN apt-get in= stall -y texlive-full gnuplot python-pygments
RUN apt-get clean
RUN rm -rf /var/lib/apt/lists/*

Save that in a file named Dockerfile in a blank folder and run=C2=A0docker build -t latex .
This w= ill create a docker image named latex with all the libraries and executable= s neatly tucked away.
Then, in order to use it, you can save the = following script in ~/bin/pdflatex

#!/bin/sh
export PATH=3D/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/= usr/local/bin
docker r= un --rm \
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0-v $(pwd):$(pwd) \
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0-v ~/.= ssh:/root/.ssh \
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0-w $(pwd) \
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0latex = \
=C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0pdflatex $@
rm *.log *.aux=C2=A0
rm -f *.ent
= rm -Rf _minted-*

With that you can us= e the pdflatex command as usual, and docker creates a temporary cont= ainer (docker run --rm ...) from the image, runs the pdflatex command and r= emoves the container after execution.

bash-3.2$ pdflatex --version
= pdfTeX 3.14159265-2.6-1.40.16 (TeX Live= 2015/Debian)
kpathsea= version 6.2.1
Copyrig= ht 2015 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
There is NO warranty.=C2=A0 Redistribu= tion of this software is
covered by the terms of both the pdfTeX copyright and
<= font face=3D"monospace" size=3D"2">the Lesser GNU General Public License.
For more information ab= out these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Peter Breitenlohner (eT= eX)/Han The Thanh (pdfTeX).
Compiled with libpng 1.6.17; using libpng 1.6.17
Compiled with zlib 1.2.8; using zlib 1.2.= 8
Compiled with popple= r version 0.41.0
rm: *= .log: No such file or directory
rm: *.aux: No such file or directory

<= /div>


Martin

On Mon, Jan 22, 2018 at 10:23= AM Kaushal Modi <kaushal.modi= @gmail.com> wrote:
On Mon, Jan 22, 2018 a= t 9:57 AM Christopher W Ryan <cryan@binghamton.edu> wrote:
Would they need to install LaTe= X too, or is org mode self-contained and able to export to pdf without LaTe= X an friends installed?

Yes, they'd = need to have a LaTeX distribution installed on their system. In my experien= ce, installing the full latest version of TexLive is the easiest way.
<= /div>


--

Kaushal Modi

--001a1147222e3c61dc05635f4f88--