From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28719 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: How to get \section[Short title]{Long title} in LaTeX output Date: Tue, 29 Jun 2021 16:36:44 -0700 Message-ID: References: <4p2Sx0e_CqUgNm9ZcXR064fya9gybYYDVBTVMMIL9p1m2ynHgBzs30shkkVJnu0l2RqSKghQo5oi10jSV33BS6IBsvIhBhtyoExu-d3p3Kc=@protonmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12906"; mail-complaints-to="usenet@ciao.gmane.io" To: 'Nick Bart' via pandoc-discuss , "pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org" Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBGW552DAMGQEGMTCZQY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jun 30 01:37:00 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qk1-f184.google.com ([209.85.222.184]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lyNHo-000394-6M for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 30 Jun 2021 01:37:00 +0200 Original-Received: by mail-qk1-f184.google.com with SMTP id e13-20020a37e50d0000b02903ad5730c883sf266759qkg.22 for ; Tue, 29 Jun 2021 16:37:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1625009819; cv=pass; d=google.com; s=arc-20160816; b=kNQwlSkGvoc4MYrZ4SoESmR5Hff8imiRSrZtpw/jk0TDhf2cZMX8BV50Nmm7c2hL5L xBsRGDp6FDHY5jBkSqszWe+3H502rJBkZFrf4R6rxolXFEyQxWZO3NxzuZfM/O7cg2JR u2UiCAwqUxVzvMjKY4/peHeToimDXQI+73QMSDErtM3VxVftBltPgpNgH0YGyvdAqBWu JxUYLS3yFeIWAn2oAWHTTUIGfSc9WffkEX831P1Oot9PGH1MRQa+oUsaST612TnaEVnV uvEtKhS0H2zkmffzqxEa8fxkfdcoU/w2EXce3OobgodCaI6ev8CL9BflDu3dHR8Xa55/ 42Pw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version:message-id :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=JVHfRDIp5dUENyR61KfSe8LdZWwCo67f9I5EZGiEZAg=; b=sKBnXIB6RmT9RIcKwYinUBtKe7r6R3ZKv6zMnCtYXL6Iq7yw+oIJYRkJtmjh59Rm+S BYZWtdUen0+fB8XkVBun9rujrGtAhWP5eQUwbdASMO76BRb0SSj0OWtWR8AdWvNg/Yba VlHmoUANKjvtnuwuB+yExJIdP30pauEtKDuJYN2aS10rHgbXrWnwm6N02a3X9w78gg3/ rDAlr16/47OUhZFfLPcPLra2oOgKzr5/n3sLicqepCXkXTo8FnB9Mf+44RwGGFJDsX+w eYKIs6x2C/U4rmvOyLlDEYcNCJOj6nG1nRSY/p67XIId8YsrjM9s86D36AdQ31q2GxZW 38xA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=rKtxgP5r; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::529 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=JVHfRDIp5dUENyR61KfSe8LdZWwCo67f9I5EZGiEZAg=; b=n+0G9JE2FwotR+M/TRkQsCf6lR78F1wDc/iawLJP0B6nTU8d0ZXA8iPo56ox2ev/DQ wnQVW2KKmlfUW05lX1ccPlK/y/eJSkR53ZdrvSSAthJvMEnInVnExcCY6wrxxgpOsPYj rMh1X2QAxESsdfoz2bMcJSllvJMZkubiDoRdgWrEL4vOIgFa4D2JdQ92WX7JiRbvoJYz Zl5Bw6sdzfj88Wm8rew6Tkeuci495AKNqK2umAed4iCytw0e3l8A8KGYGzxwdREhYdP2 0qIlCPJ+AOg5e4BHYtq/y37tz7wwgzspKjzRO6Cd/3KUGU0mXU5PzcD/bU+w82OoMC7N 3RxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=JVHfRDIp5dUENyR61KfSe8LdZWwCo67f9I5EZGiEZAg=; b=SSFC9GU7QXSjnYPJNVH5YomLfJShygpWvqrFKLgqb70QSvnB83z/F05gx5i1xMuLHn MjTElzWjZ8q0s9qE517WZDuZ3KmRfnF4fMVHJj8Tbx5DnAatSUbYhtMOoGnoW/304SY4 ao95OGt6V97DyIo+IZEFd5HJgevHxNayVK4DUp53Nfw5iLwp/GB25keaiVxuuvBBNCbq vzio5GSOchWvaMIK1uWouvvmPJ+C1Bbu8e7y0gPGrGGv8A5tXElADiBQakvufRCb7/z7 iRVwLxImlwPgA/wtu5KfO4sB6OShboVZtgudbUdea8zzHnebW5OcT+6MtCmiesi2QmSB Eg1w== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530PTvXsdPz7diyG4JMyIsqevP55eoiLJHoeLPU+f6NAQHTnadyX 3t6xmSsj2C+WMf0htcf956o= X-Google-Smtp-Source: ABdhPJwstX+wqWIC8p0w0Pe9EZnbbn64B8ilW90ou6FqjwO38TlqOWYhRnHTL0IHpiKIm0QMIsxtow== X-Received: by 2002:a05:622a:1a97:: with SMTP id s23mr28839808qtc.75.1625009819324; Tue, 29 Jun 2021 16:36:59 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:622a:15c6:: with SMTP id d6ls222502qty.6.gmail; Tue, 29 Jun 2021 16:36:57 -0700 (PDT) X-Received: by 2002:ac8:1106:: with SMTP id c6mr29178295qtj.20.1625009817644; Tue, 29 Jun 2021 16:36:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625009817; cv=none; d=google.com; s=arc-20160816; b=l5dWc510E8EtS/zysi8bWhYLzPhuhO2n3VcEGcw3DLXnAYgLqXrrj4CkeFIoh3dmAf AGvTbDdMxPDPnVH2R5KQ7VGYVwZZJpxGCKvBRk+zy6m7hefvSgrbQKVqKD0pQ1/FmhIC j3woBdcdPyqVM8/zo3S6z+VQbVtPReGkzVFh8xU6r07gZXefx6NugkC+5yES8zgN0xYG v/xE3FtwVJvJQEnwSuv4HDGVBorTHmROCm/aSTqmAFIbHa2Y0HBpJj0Q2UYDFZhU6Ewo G6GxFR5fl7dHYGX4KDMm7khw6oN3S88ZCxd3VAeH8Mo71sL/wYQDZhE4l6wOv+u6Ug5L aoWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=o1fqrtgMhjLNbvVTsq6W0s066ppZiBBFiKxL6e4EGVI=; b=oil7V81aJ1JT8AMcwNUKz2iWjxmNNFhIXtNddpZCu2B79btnDPcIT+uTzsOrVcYxag vumNiEKs5pbGRR+melzix3eyCea5uhCIkM104bX6LPhzP75JXyY7u9ABeKwobEFDqEJl c8KzKGxpg2KE+Wa0iaKKojBy1GuqtxLaCACyhaYs6aA47q75ydexbocS8HmRiAOFdXPy bBsP6Mp7pQcD+cgM3ur2A89m78lZrdNwGrFgIxYSkhcrpf8L49heH2VEYeaT1hkIx0hz 98tt2RKRxBSTpCLISu5UFfpFO7Io2Jt/9umXqZvYv0CzPYUjyMFKKbxw2n0bx/JEXnAa AcZg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=rKtxgP5r; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::529 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com. [2607:f8b0:4864:20::529]) by gmr-mx.google.com with ESMTPS id m6si2744561qkg.2.2021.06.29.16.36.57 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 29 Jun 2021 16:36:57 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::529 as permitted sender) client-ip=2607:f8b0:4864:20::529; Original-Received: by mail-pg1-x529.google.com with SMTP id a2so303686pgi.6 for ; Tue, 29 Jun 2021 16:36:57 -0700 (PDT) X-Received: by 2002:a63:af07:: with SMTP id w7mr31474605pge.287.1625009816298; Tue, 29 Jun 2021 16:36:56 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id l10sm4468278pjk.15.2021.06.29.16.36.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Jun 2021 16:36:55 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id D414FA249; Tue, 29 Jun 2021 19:36:44 -0400 (EDT) In-Reply-To: <4p2Sx0e_CqUgNm9ZcXR064fya9gybYYDVBTVMMIL9p1m2ynHgBzs30shkkVJnu0l2RqSKghQo5oi10jSV33BS6IBsvIhBhtyoExu-d3p3Kc=@protonmail.com> X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=rKtxgP5r; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::529 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:28719 Archived-At: Not easy. You could write a filter that builds the relevant section command, but that might break other things because the LaTeX writer won't see a heading there (not sure). It might be a good idea to have pandoc do this automatically. "'Nick Bart' via pandoc-discuss" writes: > Is there any way to have pandoc output LaTeX code like > > \section[Short Section Title]{Long Section Title} > > from pandoc markdown containing both versions as in the following (but not necessarily given in this exact syntax)? > > # Long Section Title {short_title="Short Section Title"} > > -- > You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/4p2Sx0e_CqUgNm9ZcXR064fya9gybYYDVBTVMMIL9p1m2ynHgBzs30shkkVJnu0l2RqSKghQo5oi10jSV33BS6IBsvIhBhtyoExu-d3p3Kc%3D%40protonmail.com.