From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id ENiSAtBToGKIzAAAbAwnHQ (envelope-from ) for ; Wed, 08 Jun 2022 09:46:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id yFqaAdBToGKWHwEAG6o9tA (envelope-from ) for ; Wed, 08 Jun 2022 09:46:24 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2DA79108CB for ; Wed, 8 Jun 2022 09:46:23 +0200 (CEST) Received: from localhost ([::1]:34828 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nyqOT-0008LQ-Jy for larch@yhetil.org; Wed, 08 Jun 2022 03:46:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51988) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyqM7-0008Jz-Lu for emacs-orgmode@gnu.org; Wed, 08 Jun 2022 03:43:56 -0400 Received: from mout-p-202.mailbox.org ([80.241.56.172]:52150) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1nyqM5-0006Qf-K4 for emacs-orgmode@gnu.org; Wed, 08 Jun 2022 03:43:55 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4LHzkB3Pmbz9sv4 for ; Wed, 8 Jun 2022 09:43:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1654674226; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ReJ20VeMGKNsEDmTv6db3lWIpUrZ01vY+4TfuzhmtBw=; b=velR3Tq+G1c9V57APWTaliKQrlssbxgZfr7JyPC5rjKHtd4ZZ5OIGodaTl5DyeGVL8Sr1o xO2Zr4jCGyruMiPjxffeq+JbA6TtXbhW7Rt32b91+7flugpUkYKAgM65LrqY2lMJNc7G5+ i529YoPKW+0yjcJENfyJyFIa4lvzobiCb+zGtozlQnWbItoCWt0O9YmAi2TujbyHjPvwWs c0cjGqz9oTuAzKRO3yPhUvPQvNsEFeaRV4OXrs4RizFUERigwa+qeL6bf8rdCc9+sf6u3a vxKDPLTqEe35igtdN3nxuDFSgtKoDWlPnOqNm3UyFwAZUR8pZpQw9Vx0JCPjig== Message-ID: <5bbc01ae-360e-2de6-5858-0b816d743b99@mailbox.org> Date: Wed, 8 Jun 2022 09:43:46 +0200 MIME-Version: 1.0 To: Org Mode List From: Denis Maier Subject: Include LaTeX source and compiled result Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-MBO-RS-META: pemujsypuwoznu1hrdih713gnq5fbuyd X-MBO-RS-ID: aea6af84e90aca4b7b2 Received-SPF: pass client-ip=80.241.56.172; envelope-from=denismaier@mailbox.org; helo=mout-p-202.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1654674383; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ReJ20VeMGKNsEDmTv6db3lWIpUrZ01vY+4TfuzhmtBw=; b=cl6DxboUeF0qx4oEFj/2n11q0y3qmWBdcMKMg63bA34gT2vtTT2xg2nt8EJUOHHDhvaw8X Tgt2aCxmJlPH2bDMFQeZKLKYgXGh/Qy1DpHRzTA/RgohXNp+PGZFrumwwUdSdGhLLcDz0L KjwUMDVXnVcxKAaAaxn5G7c+QQl1R3II16ZOdxYZm1B+EbR52d7rE7fODksMMp2zVJ35vg WmIsN4DRKywzmdgfin6lhtVVFN5/p9KC2j8jA9cU4LnD2ZvRUW9OmnRxbqZWIIXvQYH1pF RSjTmD4YQAePPKNDN182lmSQk1BgGARTITTbufA7+RfNDCgUpFBLxtg1fPik5Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654674383; a=rsa-sha256; cv=none; b=nLWJW7UifUjE1cmtuPSW1+OEF0Oj5NT+dxaXaBcwezH0CeDw2PU/qhezEo4nZJnoXpHXmu abpJzHWXc11aI+wPaXbeYWGLPAXFekVmtyvuSNg7xuddqA7AZuFMX5kHtI33RJSP63CAUG ZrOItbLHeu5WHvDjjRQWgRxRUP9j+FNjibVTGO7BBNGxyXk4f5xqONsroNS6r8Tuw0+BDh +Mqzcl6d791uFORQkyvRmU89CFsDtY0VnnPZsffORdl1qJMCACweRmft8g4CLAOLNj3Vwg T4qrPFRW3pWzT7QgUZR5DdDLbQXSMh8SCi3Jrij+3lZ7wLdD6lZVF9mkzubOzg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=mailbox.org header.s=mail20150812 header.b=velR3Tq+; dmarc=pass (policy=reject) header.from=mailbox.org; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -9.31 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=mailbox.org header.s=mail20150812 header.b=velR3Tq+; dmarc=pass (policy=reject) header.from=mailbox.org; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 2DA79108CB X-Spam-Score: -9.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: JF6hOQuyISFW Hi everyone, for the documentation of my LaTeX courses I use examples that show the output next to the source code. I'm contemplating whether I should convert the documentation and examples to org, and use org-babel to include the examples. I think this should be possible with org-babel. However, I cannot manage to get this to work: #+begin_example Blabla #+begin_src latex :file test.pdf \documentclass{article} \begin{document} This is a test \end{document} #+end_src Blabla #+end_example Looking at the temporary latex file (see below) the reason is clear: Org babel exports this as a complete latex file although the example itself is already complete. Can I tell org somehow that this is not a fragment and should be compiled as is? Best, Denis \documentclass{article} \usepackage[usenames]{color} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{longtable} \usepackage{wrapfig} \usepackage{rotating} \usepackage[normalem]{ulem} \usepackage{amsmath} \usepackage{amssymb} \usepackage{capt-of} \pagestyle{empty} % do not remove % The settings below are copied from fullpage.sty \setlength{\textwidth}{\paperwidth} \addtolength{\textwidth}{-3cm} \setlength{\oddsidemargin}{1.5cm} \addtolength{\oddsidemargin}{-2.54cm} \setlength{\evensidemargin}{\oddsidemargin} \setlength{\textheight}{\paperheight} \addtolength{\textheight}{-\headheight} \addtolength{\textheight}{-\headsep} \addtolength{\textheight}{-\footskip} \addtolength{\textheight}{-3cm} \setlength{\topmargin}{1.5cm} \addtolength{\topmargin}{-2.54cm} \begin{document} \documentclass{article} \begin{document} This is a test \end{document} \end{document}