From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id sLT1J/AHwmK/2wAAbAwnHQ (envelope-from ) for ; Sun, 03 Jul 2022 23:19:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id iO8VJ/AHwmLoMwAAG6o9tA (envelope-from ) for ; Sun, 03 Jul 2022 23:19:44 +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 340C81492C for ; Sun, 3 Jul 2022 23:19:44 +0200 (CEST) Received: from localhost ([::1]:37514 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o870I-0001AQ-Pj for larch@yhetil.org; Sun, 03 Jul 2022 17:19:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52856) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o86zl-0000y4-0F for emacs-orgmode@gnu.org; Sun, 03 Jul 2022 17:19:09 -0400 Received: from gallois.livando.com ([31.170.109.33]:51206) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o86zi-00056S-TF for emacs-orgmode@gnu.org; Sun, 03 Jul 2022 17:19:08 -0400 X-PDA-ORIGIN: gallois.livando.com Received: (qmail 2855063 invoked from network); 3 Jul 2022 21:19:03 -0000 Received: by simscan 1.4.0 ppid: 2855056, pid: 2855059, t: 0.1079s scanners: clamav: 0.103.6/m:62/d:26591 Received: from unknown (HELO cantor.fritz.box) (christian@gladbachcity.de@84.44.227.189) by 0 with SMTP; 3 Jul 2022 21:19:02 -0000 Message-ID: Subject: Re: [BUG] Inline src blocks do not work for LaTeX [9.5.4 (release_9.5.4-3-g6dc785 @ /Users/salutis/src/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/)] From: Christian Heinrich To: emacs-orgmode@gnu.org Date: Sun, 03 Jul 2022 23:19:02 +0200 In-Reply-To: References: <87bku6h155.fsf@localhost> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-O37wi26ScMU00srn0tqo" User-Agent: Evolution 3.44.2-1 MIME-Version: 1.0 Received-SPF: none client-ip=31.170.109.33; envelope-from=com-orgmode-mailinglist@gladbachcity.de; helo=gallois.livando.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=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=1656883184; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=9puvOn+2e15mkuaFRruPf8gxuHKCZ3fxQWdd+Zmin8I=; b=ZupPRdtlbjzRgkh+K6ANio3oo8OP/kt5pEQDHq9vk+VZ61iIrrIja8u9800lGTf6PrYWkH 7cgExL9mHq9cRgaG/PD9DaqdNAxu4STEwFJFCLs9Bqu7mpvKvVUODPqNJYd1RaW2UD7xSo 4G7yx1PFDp5vWGU6zm855in0QQNgW1bup4PAOkrLParWYykR7Anz9OM6hiN3t1MjswHKiB z1wUj+vt4esohIFgdqYYVBR0v/FN4XwJ9Ens+RP5Y6cXl352j+SS6kveo6uASuYPgvLdZC 705OihzHglV3Ee+nt2k8Y27QwhjhDUpREFDuoLlqn/Xkj4NpjdYNelIRshO4Gg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656883184; a=rsa-sha256; cv=none; b=H0Bs/ui0fNQEPgNGVCNQhDNit6oi/zUyYL5h/3UMh1BkfABLXC/YryS5O+8qqU+LXKsou4 QLP8z+Djf6b1RrcRKNvSQGi8gU8sm9tc/WNe+ChEMAutTuZ2XdOMl6mH54zcDL0dpBl0TE ESIuz0/vd3wGeGmG0TWK26G/n3VBItsG+s8pXt5wa82z+hV5IAgDOYlE8ebmsvU9Es5z6L GgKOcjD/b5Qrrvz+11P+w+Xp82MWPV+0GcxhEtYgbZ3EQIZN972FMZwxqPTma7lZCXTM2A 9af9b5957VI/wFWL0p4nANQ1lY9cNwDjLILnVDXI6BMSazctAAEqkLppBAFCaw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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: -5.34 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: 340C81492C X-Spam-Score: -5.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: DuKrksetlDj6 --=-O37wi26ScMU00srn0tqo Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Rudolf, as to your question when to use an inline src block: I use it particularly in documents that present results from data sets. For= instance, when you calculate something (e.g., an average value), you can store it in a variabl= e =3Dfoo=3D (e.g., in R, python etc., just make sure you use the :session parameter) and access =3Df= oo=3D in an inline source block (that uses the same :session parameter). This allows you to avoid hav= ing hardcoded numbers in your documents - when the data changes, so do all the numbers in your text. As to the naming: begin_src also uses underscores, so I guess the naming sc= heme is fine... Hope this helps! Best regards Christian On Sun, 2022-07-03 at 21:11 +0200, Rudolf Adamkovi=C4=8D wrote: > Ihor Radchenko writes: >=20 > > [=E2=80=A6]=C2=A0 By default, unlike ordinary src blocks, inline src bl= ocks are > > only exported as results - code is not exported, only the result is > > exported.=C2=A0 [=E2=80=A6]=C2=A0 Further, because Org is not always ab= le to evaluate > > src blocks (when the relevant ob-*.el is not loaded), inline src > > blocks can sometimes be exported as code. >=20 > Dear Ihor, >=20 > Thank you for taking the time with your reply. >=20 > Oh, my!=C2=A0 I expected the exact opposite default for *inline* source, > namely show code and hide results.=C2=A0 But then, I noticed that these > "inline" elements do not work in tables, so I cannot use them to > syntax-highlight a table of LaTeX commands anyway.=C2=A0 Bummer! >=20 > So then, when should we use these "inline blocks" in Org?=C2=A0 I expecte= d > them to provide inline (nicely rendered) code anywhere, including in the > tables, like LaTeX provides in-line (nicely rendered) math everywhere. >=20 > (I also keep wondering why the feature uses a "special" syntax with > underscores when everything else in Org uses dashes.) >=20 > P.S. I also experimented with the src_shell some more: >=20 > With #+PROPERTY: header-args+ :exports both, src_shell{ls} exports as > "ls".=C2=A0 I did not expect that.=C2=A0 Note that I executed a normal BE= GIN_SRC > "shell" block seconds before, so Emacs must have loaded the relevant > Lisp code.=C2=A0 I then started 'emacs -Q' and tried again.=C2=A0 This ti= me,Org > exported 'src' followed by a subscript 'shell'. >=20 > Completely and utterly confused, >=20 > Rudy --=-O37wi26ScMU00srn0tqo Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE+9lGLw1S8YBUC27di84V01FvzDwFAmLCB8YACgkQi84V01Fv zDxlpw//VEmA//HH4Jd7ezkXTlpDNrN9Dltck44eQt5EC4a8n5OxebGJmrOymrfd vIkS4++pOZkETffANKqwm5lhfWJXJJbr1+A6xKN3sm3Gp8GlcG4G+ZfsLBOurHqn /ivY3H3al0AOZQqLrzRIqIjctuMKGhmAGToBkaC3r4YUEHoimFF66ycTan0HwNrn 1AgYISbeYHfkBy0jOIZofb0oxAWnCWDXAVVrpYQxnkIvl7G6/iXgDAd9OrYoGq3I BpRx/AGoQzW/WZ8+E/QY8OHVoCSKwnA9/gN01Yw2IjTx5pY1vJjuToHObrM+SLEz nxX/A7/7NG2I6d7t70iWNNfWZpoQp2MohZeYEFUr5u4NY7YGI8HDR5g/7KRRl0iw qox/dJSWKqRKy8sn3JtVtPPd8tVlJU1ZKQU6TfbFhd5qaAvSAczhOVQ+D/hgx6gl uHcyyM29Ur8E39u/VMC40/0MlqBWhCM986StUuLKdC7sWIUdwyWFwSAfe9vJ1mRn Wsx1CI7LK/bIS7UFqAEiji2ftVqzKeQquQQYsa4OlvgtJ6M0k8KSo+tn2ZWYwg8T Xa0tb97Dm5oNipu+R9bfN9hw7CNSbh1ihhaHct0irZ04/nBaNzbSPggGFxkNQcpv 0cF9BqTgO3hSOM2WlapCYXooocJhrCh3Dl+5bHvvfNX2wBHc7sM= =yJuu -----END PGP SIGNATURE----- --=-O37wi26ScMU00srn0tqo--