From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29889 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: SlyFox Newsgroups: gmane.text.pandoc Subject: Convert from Markdown to PDF and Set File Name From Metadata Title Date: Sun, 2 Jan 2022 23:50:09 -0800 (PST) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_12631_1642774249.1641196209857" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37679"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDQZJRE2YQBBBM6VZKHAMGQEIINPG2A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Jan 03 08:50:14 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f60.google.com ([209.85.161.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1n4I6f-0009aJ-NS for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 03 Jan 2022 08:50:13 +0100 Original-Received: by mail-oo1-f60.google.com with SMTP id q6-20020a4a3306000000b002daad7a3be2sf16999244ooq.11 for ; Sun, 02 Jan 2022 23:50:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=uQNDeRl9qUVkyKHssUE+IS+dNFAaCiVrLoWyasscFqg=; b=JPSaTbwUHjbEVnmysNBf1NzFeJPwb/B6EVg0MaMYPonerXzlDrnyy0AkTsnYxnyCzP kzD7EkqXMxXx0kZksrCA1zGcvC3VJkvXRAVT29Y66o5CoG3GFaayHiMcEeRm9lIIyfC1 QtdrvgrMRJbKK8HctQaTSLabJfL3oGNlMfqWcIWTdLdNPnJBZA4Ff90SAE0Ak1FTEdcZ IB8GYHtscbotd9HKtC7aemz6n1Kx9oNqqCjQh2YHHuOPnfppGqyiZFBE5TNPDOPZQwHY g2lSKTcYd8bj3DKCkYCBybZ2h8Uy5XCtr0Mnit7bQIncaJHuiL/79sIze+gknioNVxML OOCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:date:from:to:message-id:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=uQNDeRl9qUVkyKHssUE+IS+dNFAaCiVrLoWyasscFqg=; b=q6AeONVrYy/9bbOYBX5s897e5tiG+MIrevX1rAIHtQbkDC12+O3g09OB6YPgWUmiX5 FHY7cyE96s2zwdFj3br6N1mWtdA6UWXQ76JdjZP5kp9W9YyhkXrCne3PQ1mCWxDKpjgy 0FU2KVm/UhTqmX4+unmiR0VHk55ubSbK3bjCxrLOwP+E8wxlsDjJMoNUFzBNOb7oJeYA jPhpFRokHa8FE+IYeVI7vgdgNu8rARcFh5tyq6yVKTvKkYghPttYdIfsH1NN8O91cR+0 e4pNu/l1OqZzui6rPqHxfDj9pFOOjbFs0GMlM/oen1Emk9YLDcYNvOr8kaPqdWq7Pen/ a0qw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532Wovt5rJrPQSz7oeNkxvW8u0rF/yBySBTasSJlH5wO3feq9Og+ h3k/h/TAzmfFccvyiSlN+/M= X-Google-Smtp-Source: ABdhPJyf0enqFp1XaeRsana9E8L8i1gKaO4sT9mrxKV3VCof08DKeeq76hvh7ypS/pW450Efm2Pnkg== X-Received: by 2002:a4a:8746:: with SMTP id a6mr27302520ooi.93.1641196212166; Sun, 02 Jan 2022 23:50:12 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6830:906:: with SMTP id v6ls6629173ott.2.gmail; Sun, 02 Jan 2022 23:50:10 -0800 (PST) X-Received: by 2002:a9d:6094:: with SMTP id m20mr32471745otj.41.1641196210599; Sun, 02 Jan 2022 23:50:10 -0800 (PST) X-Original-Sender: ivan-M4KSPFaPddvGc7VoSCgjcw@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:29889 Archived-At: ------=_Part_12631_1642774249.1641196209857 Content-Type: multipart/alternative; boundary="----=_Part_12632_1690600940.1641196209857" ------=_Part_12632_1690600940.1641196209857 Content-Type: text/plain; charset="UTF-8" YAML Metada looks like this ``` --- Tag: tag1, tag2 title: "Title I want to use" Status: active Name: "John Smith" --- ``` I currently use this command ``` for f in *.md; do pandoc "$f" -o "${f%.md}.pdf"; done ``` How do I set the command so that the file name will be taken from the title metadata? -- 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/fd34c62a-0d28-4bc2-a736-9cef71e6423bn%40googlegroups.com. ------=_Part_12632_1690600940.1641196209857 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable YAML Metada looks like this

```
---
Tag: tag1, tag2
title: = "Title I want to use"
Status: active
Name: "John Smith"
---
```=

I currently use this command

```
for f in *.md; do pandoc= "$f" -o "${f%.md}.pdf"; done
```

How do I set the command so tha= t the file name will be taken from the title metadata?

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/fd34c62a-0d28-4bc2-a736-9cef71e6423bn%40googlegroups.= com.
------=_Part_12632_1690600940.1641196209857-- ------=_Part_12631_1642774249.1641196209857--