From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 8O5sCZR+umJqwAAAbAwnHQ (envelope-from ) for ; Tue, 28 Jun 2022 06:07:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gIcmCZR+umKXkQAAauVa8A (envelope-from ) for ; Tue, 28 Jun 2022 06:07:48 +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 E711E24072 for ; Tue, 28 Jun 2022 06:07:47 +0200 (CEST) Received: from localhost ([::1]:42630 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o62Vu-0005JQ-O5 for larch@yhetil.org; Tue, 28 Jun 2022 00:07:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35022) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o62VS-0005JF-TX for emacs-orgmode@gnu.org; Tue, 28 Jun 2022 00:07:18 -0400 Received: from mail-pj1-x1036.google.com ([2607:f8b0:4864:20::1036]:46889) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o62VR-0001sd-B7 for emacs-orgmode@gnu.org; Tue, 28 Jun 2022 00:07:18 -0400 Received: by mail-pj1-x1036.google.com with SMTP id h9-20020a17090a648900b001ecb8596e43so11371174pjj.5 for ; Mon, 27 Jun 2022 21:07:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=BqGyIOY8Fa2qFf9UTCUDdjPTbvVvbz1KTZ7ScWUWC1g=; b=IK9Xryb97GaTW+tv1EeUDr2JG6UlAdQjYIX5+Mbcb8IaDlxAvzUUdpTnNvFKz1pw3x DnubUpBUvtt7yegLbJG6SfE5b+7oMmK0DjOLtx/6NLCOSJlz2M/gFwnwFT9JSq35CibZ 5N/AXK+pCvHX4cb+OeaJfCNL2ENacLBqwgZ4MrAlny1QR0Virs3UrI3bghw859V7UexH R/zx9g2161fq3e6ZVjzI4h6V6Z5TFYZqvoBfdet941TDJyYoC8IdjOlUimqxiRH86gob uiVlCdzaINufEC5ajxgk3vKOLDhZIhyBBYvM//F25EKfODNKWlGKn7+KpjLj2PAgs50g sW4Q== 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:cc:subject:in-reply-to:references :date:message-id:mime-version; bh=BqGyIOY8Fa2qFf9UTCUDdjPTbvVvbz1KTZ7ScWUWC1g=; b=oQfWqzR66Px9Dh0tor7A4UAapN+e2+cYq7hKlRJQwhCddfaXrDdtrCoLt8Lk8j2WTz iYCJydM3JBJLbSApZD+rGh5182S1vpVvIkvMDOJOpQWbfqs+dXL6SZuUXEonvahTnqi1 yESPxjXp2r2DioEeYrr2lEgO5ziFyT1FS09RXwAbk/vO4ZRTQchFclZUnjYFUGCZw2vT EE+ao0Y3/weO432VNZUaRiI5KIK9SKfKFuFuBDaFpuwDu8VgOhCKzTsl6lubC0eViFoy aAzF4hQHV3bT4CmoPXrCX5PrtkrhGbPmjLFDOOs6fwgELYt65xloqzDiX/xMydsTigri dnmw== X-Gm-Message-State: AJIora8ZNd28xyGiZpj8JsQlpNEOT1UPeIu2IY15fFjNh22nhOY6ATuQ 2CF11kO/ouH7J8jiVVjrYDnyw8WEOVo= X-Google-Smtp-Source: AGRyM1sQqxypSjUbGj6AdEYXedDbptW8OcmUo85qqG2/IQBvfrO3OZ5cCQrP9+m9bCS5vjoZX9TP2w== X-Received: by 2002:a17:90b:4ac9:b0:1ec:9bd1:92ff with SMTP id mh9-20020a17090b4ac900b001ec9bd192ffmr19242398pjb.178.1656389235387; Mon, 27 Jun 2022 21:07:15 -0700 (PDT) Received: from ryzen3950 (c-208-82-98-189.rev.sailinternet.net. [208.82.98.189]) by smtp.gmail.com with ESMTPSA id j2-20020a170902758200b0016a058b7547sm7886799pll.294.2022.06.27.21.07.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jun 2022 21:07:14 -0700 (PDT) From: Matt Huszagh To: Ihor Radchenko Cc: Emacs-Orgmode Cc: Subject: Re: [PATCH] Fix caption format for custom latex src block In-Reply-To: <871qvrrjh6.fsf@localhost> References: <871qvrrjh6.fsf@localhost> Date: Mon, 27 Jun 2022 21:07:13 -0700 Message-ID: <87zghxtor2.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::1036; envelope-from=huszaghmatt@gmail.com; helo=mail-pj1-x1036.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_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=1656389267; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=BqGyIOY8Fa2qFf9UTCUDdjPTbvVvbz1KTZ7ScWUWC1g=; b=jRE2hTIwF/EnYoc3DGNW4viz18tZfVWTcwVUzDIY2fh/7z+CMmElVBRhfySwJWem5e7pml MjOFl7vmV521jk0gYfUGHYwEEdoU6dEbvZJTgAZerrf0IRCaZxcOYlwLHL6UrcvmowGDag MIYkt5qpy+nZ7sTNJdP5X+y9RtEiKfEc0RHAhrMKX0NLPlSkxwaBSkZs2FuE06fUV1Ezlt rGjAcra3D40P7eH5g3OXgfKAa1ehNmBXUqglDh3+CxuuxGEPQ4WCt+9Gx8LKOSIY4pdw5Y sRSH7j3q6CZ69A7A4oPVWsI+/GYSqOQqDDQC6fjwWo+sPFBYZz/E+D1pgZ6uPw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656389267; a=rsa-sha256; cv=none; b=YP80jZS4/PztACMUz6mQUhTBUwS+8nqOsehx3qvTxeE1x4QF5Usq6g3DpV7oLeHGzpM+9D yF6k9ea5H99KcfiBrMdkNRiF/8E1YrT8Do0+icnYW2bKrsbdm+C/V6TYwcGcjYYEYSGV7o 0SvQQ0O2H2xSJSktWz9rSZu279+AT3BKU/ysoiumAQQcJ6WSHFeb5hJTWBcpJ8Y6zAVnl3 bBJjHus7MQ2RYr81bbgcCfDpXA7doLssDzNNXzrsobs/lBnBYmnKJtkQyUrp55XEnfachT t1AAQnQhzJTNpP4j4nvjrFQBgaCBxtLWR9MrFREUNxnn2Fm7KTcUsUdnN8CYDg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=IK9Xryb9; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: 7.65 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=IK9Xryb9; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: E711E24072 X-Spam-Score: 7.65 X-Migadu-Scanner: scn0.migadu.com X-TUID: YMntO1f4dMDm Ihor Radchenko writes: > 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. Changing this to (?c . ,caption-str) yields for the original example \caption{\caption{Perform inter-sample interpolation.} } I could use substring to remove the leading \caption{ and trailing }. What do you think? Matt