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 mPh0GKIFqGKrRgAAbAwnHQ (envelope-from ) for ; Tue, 14 Jun 2022 05:50:58 +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 CL1tGKIFqGLmZwAA9RJhRA (envelope-from ) for ; Tue, 14 Jun 2022 05:50:58 +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 1E7F039EAC for ; Tue, 14 Jun 2022 05:50:58 +0200 (CEST) Received: from localhost ([::1]:43238 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o0xZw-0006BU-Dj for larch@yhetil.org; Mon, 13 Jun 2022 23:50:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45140) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0xYx-0006BM-E1 for emacs-orgmode@gnu.org; Mon, 13 Jun 2022 23:49:55 -0400 Received: from mail-qt1-x82c.google.com ([2607:f8b0:4864:20::82c]:40649) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o0xYw-00060E-2K for emacs-orgmode@gnu.org; Mon, 13 Jun 2022 23:49:55 -0400 Received: by mail-qt1-x82c.google.com with SMTP id hf10so5311728qtb.7 for ; Mon, 13 Jun 2022 20:49:53 -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; bh=Iw9gQX89qKfFRjwTYqtFufHiTbcEn1VZa8Xr8LNtrPI=; b=IBZvLU8Zk0H8dVBPA/8sA2M3BlQ0Z+h92hv5QXRGiIZ2BQOeYvfnrFdEe+lXa8MSi0 MOFLA+tg97ZGymZZgLsTCJ3lA3/TsT4erI9PsSPeYQYf+hOywaNnUxRQTZQTROYYaVRj 6ZlmXEisFvGqg+mWWZo73aUlrqEs+t0c7YtSQyqWeD5wwpJa7eiyOq8AU409udc3rrjz M/ORvi0xEGrYETuLr1PxXsgkuxKpC6h5WbL0CBay0GYohd7tZrHsGrWSMfVGcxNtdLXY H4dG6o5rmkNRHBYlQCNLhyufYZuJoBHdfvXBMM93wfCyKoiNLL+Mc9qDwG6cDBk3avVy lRHQ== 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; bh=Iw9gQX89qKfFRjwTYqtFufHiTbcEn1VZa8Xr8LNtrPI=; b=yMZ8mGdk6kP4l9zfV638SJ02NpPa6hKQkzMVdTZ1IAL+6KKPtvwoBvu4vvMhJdjuug eQtXDwXnDlTPhfe57F5po+FRf5ALLyfdwqOa0dQ/rjOCBT1JSsYMydeRj2MtWzEyjUuU f4YwEhxiVSlsxdlnf5qKGgIqH49QCDHWMhTL5xTyTblkCCK/4b2Zjvk5cAe7M+0OBt8f JxOHiLVyonldVRcXMwBLG9pf+VA4yk3LLmKG0fsPtsLGHG5pa6n+saseWvo/D5ShP2v8 15Rzn2eoR1ax4DVupmbrsPrYPLUsZM8UwXQNOQ/A1mLckP1+kcXSAc+QUjj3RTUtyuSt nRgQ== X-Gm-Message-State: AOAM532B25hvFtgylc2SxMph5ObI63tJgXa+ts2zDqCXVpPZML21b3D4 d+5IMBll87K+OxUATCSRA/5Bvs/cL2Y= X-Google-Smtp-Source: ABdhPJywKIKhYX4HkVlujEMfkJeh4LJThQcpA2/VCwQDsd70Qch28mJhEkEXwLUvisjyRmzAqG+ikw== X-Received: by 2002:ac8:7f8f:0:b0:304:ff91:2bdd with SMTP id z15-20020ac87f8f000000b00304ff912bddmr2565911qtj.174.1655178593223; Mon, 13 Jun 2022 20:49:53 -0700 (PDT) Received: from localhost (22.b2.a86c.ip4.static.sl-reverse.com. [108.168.178.34]) by smtp.gmail.com with ESMTPSA id ay13-20020a05620a178d00b006a6a774d27bsm7915754qkb.134.2022.06.13.20.49.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jun 2022 20:49:52 -0700 (PDT) From: Ihor Radchenko To: Matt Huszagh Cc: Emacs-Orgmode Subject: Re: [PATCH] Fix caption format for custom latex src block In-Reply-To: References: Date: Tue, 14 Jun 2022 11:51:01 +0800 Message-ID: <871qvrrjh6.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::82c; envelope-from=yantar92@gmail.com; helo=mail-qt1-x82c.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=1655178658; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Iw9gQX89qKfFRjwTYqtFufHiTbcEn1VZa8Xr8LNtrPI=; b=XwDm78RKF/38dH23m9kv+RgxGeYXdeN+EhA29T+dG3TG/j9ZBdUIx2XKiH2/m8LaBxKx02 d1d0MSyPMrCKEmX9yuGX3LdHrAyhJoXNrmHyrRl5ctsclKhbxt0AepnQzwi/Ckhceouq+s ffkX5G2EGqvo5r1cykdkvgHbBtsbmfpOMbOzX9qx4ugLAmn+IfCjfE9xstz4rUKpnJE7Z9 PBQqdWmp6eRocTbN6jCu6Guou4OL6pwAnboHsYj9x/hYXhIIEVesQtEb31hKsa7F2u6Rd5 9ZjoC1uE0iNGP6D4EoTG6YW39HB+x7vkcJ8/SBHLLJeZdoOb26Z8WliBptGe3Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655178658; a=rsa-sha256; cv=none; b=m11z/dsOFSeyBrYGNLLL4FHdR7efRHrJjgsQDAGb/95dA+aLyaqBskgUk5uMhpvHYB7bjC Y5va5b2loA8NerFdQSzFu1yyy+heRniPDPIpj4Y1F0nP9JBrzHwP8F0IadetO7mk/6jpcb jQ2o1AoWSUYuWCEmqgu7bph9pnzrF7DGuhCoXx6FO7j2qv5cgaatpIjkOtkRKeOzuufktB S/VDnPEf2Ax12AfiE3xvOPyXBWV6ht4aYKqgsaDZOsDghx3Q44Y4/r1p25Ex6Ppe+M0ODX MbA+W9coE5uH68yJC7Ylq+bnBCNz8pwX80emixirveEmEVTCOazgTFEsT1/zBw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=IBZvLU8Z; 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: -4.09 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=IBZvLU8Z; 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: 1E7F039EAC X-Spam-Score: -4.09 X-Migadu-Scanner: scn0.migadu.com X-TUID: Pr3K+Xvs9sIj Matt Huszagh writes: > This patch fixes an issue in which captions for custom listing > environments are not converted correctly. To illustrate the issue, > take the following MWE. Thanks! > - (?c . ,caption) > + (?c . ,(org-export-data (org-export-get-caption src-block) > + info)) I think that it will be better if you use org-latex--caption/label-string instead. It will take care about short captions as well. Best, Ihor