From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vicente Vera Subject: Re: "Minimal" LaTeX export Date: Sat, 16 Dec 2017 21:45:59 +0000 Message-ID: References: <15A14D4F-5BBB-4B45-AB4F-A32E171CE0DA@ucsd.edu> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a113d1fbcff7b3d05607c0a04" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47139) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQKHS-00019y-Fb for emacs-orgmode@gnu.org; Sat, 16 Dec 2017 16:46:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eQKHR-00032s-Ex for emacs-orgmode@gnu.org; Sat, 16 Dec 2017 16:46:02 -0500 Received: from mail-oi0-x232.google.com ([2607:f8b0:4003:c06::232]:40904) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eQKHR-00032L-9G for emacs-orgmode@gnu.org; Sat, 16 Dec 2017 16:46:01 -0500 Received: by mail-oi0-x232.google.com with SMTP id w125so8404736oie.7 for ; Sat, 16 Dec 2017 13:46:01 -0800 (PST) In-Reply-To: <15A14D4F-5BBB-4B45-AB4F-A32E171CE0DA@ucsd.edu> 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: "Charles C. Berry" Cc: emacs-orgmode --001a113d1fbcff7b3d05607c0a04 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable That is amazing. Thank you very much! Yes, that's a good idea (include files); will look into it. El dic 16, 2017 2:46 PM, "Berry, Charles" escribi=C3=B3: > On Dec 16, 2017, at 8:48 AM, Vicente Vera wrote: > > I'm trying to export a simple document to a LaTeX buffer, but just the > main content, without a preamble nor the "document" environment. You want `(org-latex-export-as-latex nil nil nil t)' or `C-c C-e C-b l L'. ,----[ C-h f org-latex-export-as-latex RET ] | org-latex-export-as-latex is an interactive autoloaded compiled Lisp | function in =E2=80=98ox-latex.el=E2=80=99. | | (org-latex-export-as-latex &optional ASYNC SUBTREEP VISIBLE-ONLY | BODY-ONLY EXT-PLIST) | | Export current buffer as a LaTeX buffer. | | [...] | | When optional argument BODY-ONLY is non-nil, only write code | between "\begin{document}" and "\end{document}". | | [...] `---- > The main objective is to export several Org documents which are parts of = a > larger LaTeX report. These parts are then included by means of the > "input" command. Why not use include keywords in the org document? They can, if needed, refer to sections in the parent document. See (info "(org) Include files") HTH, Chuck --001a113d1fbcff7b3d05607c0a04 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
That is amazing. Thank you very much!

Yes, that's a good idea (include files); will = look into it.


El dic 16, 2017 2:46 PM, "Berry, Charles" <ccberry@ucsd.edu> escribi=C3=B3:


> On Dec 16, 2017, at 8:48 AM, Vicente Vera <vicentemvp@gmail.com> wrote:
>
> I'm trying to export a simple document to a LaTeX buffer, but just= the
> main content, without a preamble nor the "document" environm= ent.

You want `(org-latex-export-as-latex nil nil nil t)' or `C-c C-e = C-b l L'.


,----[ C-h f org-latex-export-as-latex RET ]
| org-latex-export-as-latex is an interactive autoloaded compiled Lisp
| function in =E2=80=98ox-latex.el=E2=80=99.
|
| (org-latex-export-as-latex &optional ASYNC SUBTREEP VISIBLE-ONLY
| BODY-ONLY EXT-PLIST)
|
| Export current buffer as a LaTeX buffer.
|
| [...]
|
| When optional argument BODY-ONLY is non-nil, only write code
| between "\begin{document}" and "\end{document}".
|
| [...]
`----

> The main objective is to export several Org documents which are parts = of a
> larger LaTeX report. These parts are then included by means of the
> "input" command.


Why not use include keywords in the org document?=C2=A0 They can, if = needed, refer to sections in the parent document.

See (info "(org) Include files")

HTH,

Chuck

--001a113d1fbcff7b3d05607c0a04--