From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: do you need a separate LaTeX installation to export org mode files to pdf? Date: Mon, 22 Jan 2018 17:32:26 +0100 Message-ID: <871sihj1lx.fsf@gmx.us> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edf1i-0000vU-IR for emacs-orgmode@gnu.org; Mon, 22 Jan 2018 11:32:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1edf1e-0003If-KO for emacs-orgmode@gnu.org; Mon, 22 Jan 2018 11:32:54 -0500 Received: from [195.159.176.226] (port=34459 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1edf1e-0003GS-Da for emacs-orgmode@gnu.org; Mon, 22 Jan 2018 11:32:50 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1edezT-00047e-5k for emacs-orgmode@gnu.org; Mon, 22 Jan 2018 17:30:35 +0100 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: emacs-orgmode@gnu.org Christopher W Ryan writes: > I'm a longtime LaTeX user and a more recent org mode user. So I've always > had LaTeX installed on any computer on which I was using org mode. I'd like > to introduce org mode to a co-worker unfamiliar with the whole concept of > plain text files, markup, and literate programming, etc. Would they need > to install LaTeX too, or is org mode self-contained and able to export to > pdf without LaTeX an friends installed? You /could/ use latexonline. I think it even supports bibtex. https://github.com/aslushnikov/latex-online Here’s a minimal example. * TODO headline *bf* /emph/ etc. | a | #+begin_src emacs-lisp (let ((str (mapconcat 'identity '("tar -cj %f" "|" "curl -L --post301 --post302 --post303 -F file=@-" "\"https://latexonline.cc/data?command=%latex&target=%f\"" "> %b.pdf") '" "))) (setq org-latex-pdf-process (list str))) #+end_src How to include all document dependencies (e.g. images) in the tar file is left as an exercise for the motivated reader. One could probably make a "dumb" but effective solution by finding all instances of certain file types in the project folder. Needless to say, if you use this with real-life documents, you will probably want to set up your own instance of latexonline. Rasmus -- There are known knowns; there are things we know that we know