From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 8DcPKB2BwWLRTgEAbAwnHQ (envelope-from ) for ; Sun, 03 Jul 2022 13:44:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id QDcGKB2BwWK8egEA9RJhRA (envelope-from ) for ; Sun, 03 Jul 2022 13:44:29 +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 2AB5119478 for ; Sun, 3 Jul 2022 13:44:29 +0200 (CEST) Received: from localhost ([::1]:40084 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o7y1b-0000ZR-LG for larch@yhetil.org; Sun, 03 Jul 2022 07:44:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55944) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7xzy-0000ZF-Ez for emacs-orgmode@gnu.org; Sun, 03 Jul 2022 07:42:46 -0400 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]:55273) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o7xzw-0004Vc-L5 for emacs-orgmode@gnu.org; Sun, 03 Jul 2022 07:42:46 -0400 Received: by mail-pj1-x102a.google.com with SMTP id s21so2211676pjq.4 for ; Sun, 03 Jul 2022 04:42:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=uWfgFX+t09Gb9YSKyHMI15sYSDjrTuHpWuv56qmefkI=; b=m1IEnDsSTyclM8GOBuNZmHrC1FerdjNkXyDikWLj3LIRspJzDeNVl8N0IRB7swsYAJ unCdFArDCNdAtwTYXpCUfxSdnaxj1BphMwJqtMsi6UWLdztiGo7gQOLmPVTOI5bUO4Ya g548MIa9pjDrOVEHEvMJ2ynQBI/rVx9kK7GaMevGx3CHjlA8soGY+vgFsanDa2afUTz5 PqNEe3HvfaxYYcqS8eYpdDmeQ09zwtSwT4XbWAytMHUqpteB+vomSPr3ubexhQaupBBF EXyqufrKawTUw0hZB8b/uS3kXMBRGHc2orZbeZhjHUxb+1RC6kerahKEJtIDM+aWvdtN 6ASw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=uWfgFX+t09Gb9YSKyHMI15sYSDjrTuHpWuv56qmefkI=; b=jrjETiIz/qVjDfNMNNmJYif/IljMDKQCfYR45EtgfavNdEJl0tcr2RFos0E5/aej7T kzXKCMs+D6ZjdJlbdPFSi2QzHqGiDM17zEm8S4N9SaG/BfoF8KSy5Nh0wFWmS560AB3R zS2IQe9EDyTpLdPDamg2g1JoEUuolCE7dY9i0r01dhrAllnWxwJrfrgX6XsTYJdu0q8z YBnJxldfwVko1IzYNk9ax9khzy0QUeG5wzwldl908YF8qgLdczBP8fBvVrOd+Xl1vmvZ jhCfkuHTWS10OV3lroMKU8NV+qAGi+Mkd+M8bFNKWjoQaQYSV1jKRwaS1Whj3xBjvxfD CE7g== X-Gm-Message-State: AJIora/f+GrTSKTbxy1czl4YnIsZLcXR5RCnnDiDJ5j6ler1EUxc98Mz RYcM73Zz5cu46Z0V3hsb2iElmBwobpXmhg== X-Google-Smtp-Source: AGRyM1vNgHQ3xXVCW8owikPAdjrmZm6I+U5WdPOvAYrJVCrK0th96BS1m2gkYCrka+TMoqqkVLryLw== X-Received: by 2002:a17:902:ea4f:b0:16a:cfc:7f49 with SMTP id r15-20020a170902ea4f00b0016a0cfc7f49mr29079220plg.135.1656848562687; Sun, 03 Jul 2022 04:42:42 -0700 (PDT) Received: from localhost ([104.223.86.8]) by smtp.gmail.com with ESMTPSA id w8-20020a1709026f0800b00168c523032fsm18795342plk.269.2022.07.03.04.42.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Jul 2022 04:42:42 -0700 (PDT) From: Ihor Radchenko To: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= Cc: emacs-orgmode@gnu.org 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/)] In-Reply-To: References: Date: Sun, 03 Jul 2022 19:43:50 +0800 Message-ID: <87bku6h155.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::102a; envelope-from=yantar92@gmail.com; helo=mail-pj1-x102a.google.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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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=1656848669; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=uWfgFX+t09Gb9YSKyHMI15sYSDjrTuHpWuv56qmefkI=; b=fFMacnSJ3h/vFgfU81VVhY4jfAyRN52ki2gsDSb/IdGJD2K7B/g7oB3JYe3+I+lsKCNPzY fYyiqBAkI9NdX+HJ2NFaE9ME8ub6LrGqWjCIqRIpp+UUXOX2mhfvBofE+0fLaCbnYpBXtf TV3tUy7AI6ji/hmhIadFpCQW1IilNEyr0+8YDtjGEHZX1GP5puQEg2kubvaZWMvnxvwM9y yOuad+mhe+fcRzwx51++QeWD3v/68tYPy1aOhquldVttyZGvQIXI82MDHFut5LzuDXgG2F v2crWGarSLVr/mrIPdxl5aNNUsKvsuiKcBVIVPcEEPoH49MOuGi/iT3ktMsJsA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656848669; a=rsa-sha256; cv=none; b=cwn1gyLvk9NCvz8d9oNcXGijblELIpAYSFzjH3aCTR9ermjRB2wsTqMSpfdaS2yYmGSkZy tkHKXiRMi880G1EUwPdUFU+PgYT98W0ieHggKDR6+WGEohlLrxkGPOScxOv88oLMV7N3Zn PGnD/UGmEYM/8YS/RG/IxCvWQBxz67oqREA+EZtapnOXcij+tyrVn8GuJmLUeMrYwFgbkQ 6Saxemo25bf5Ww8DgvkIH9geRXNW8T2RIyJfH2rORIyG4bvJXXsVa4tG5gN7kFMoM2BfDJ JDs7mJitEgwOtkHq48Brt5E70oiYxqVVxMirpTNkojyN9PTrzLWwt/eY+LlSfw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=m1IEnDsS; dmarc=pass (policy=none) header.from=gmail.com; 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: -8.45 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=m1IEnDsS; dmarc=pass (policy=none) header.from=gmail.com; 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: 2AB5119478 X-Spam-Score: -8.45 X-Migadu-Scanner: scn0.migadu.com X-TUID: f86ObjgoXBgu Rudolf Adamkovi=C4=8D writes: > the documentation at > > https://orgmode.org/manual/Structure-of-Code-Blocks.html > > says > > "Org offers two ways to structure source code in Org documents: in a > source code block, and directly inline. Both specifications are shown > below." > > and > > "An inline code block conforms to this structure: src_{} > =E2=80=A6 or src_[
]{}" > > So, I write > >> For instance, src_latex{a \qqtext{with} b} renders as "$a >> \qqtext{with} b$". > > I expect syntax-highlighted "a \qqtext{with} b" followed by the rendered > version. Both in HTML and LaTeX export, I do not see the former. > > Have I stumbled upon a bug, or do I not understand the syntax? > > P.S. When I change "latex" to, for example, "bash", the in-line source > block appears, albeit incorrectly highlighted. This is not a bug, but a misunderstanding + undocumented default. Src blocks, including inline src blocks, can be exported as code, results of evaluation, and both. (this is likely your misunderstanding) By default, unlike ordinary src blocks, inline src blocks are only exported as results - code is not exported, only the result is exported. (undocumented default). Further, because Org is not always able to evaluate src blocks (when the relevant ob-*.el is not loaded), inline src blocks can sometimes be exported as code. This is likely what happens when you change the blocks type to bash (I guess). The inline src block defaults should probably be documented. See https://orgmode.org/list/87ee927emf.fsf@localhost Patches are welcome. The confusing behavior about exporting results for code blocks when the corresponding ob-*.el is not loaded is trickier. We had a related discussion on this topic in https://orgmode.org/list/87mtknsdhm.fsf@localhost Though I am not sure how we can improve the situation. Ideas are welcome. Best, Ihor