From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30823 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Abhishek Ulayil Newsgroups: gmane.text.pandoc Subject: pandoc does not read abstract from latex as meta data Date: Thu, 23 Jun 2022 23:40:17 -0700 (PDT) Message-ID: <08b609d9-c982-4f4c-8606-95dd377fae4cn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1236_590142351.1656052817761" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26184"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDQIR5HZ7MFBBU5Y2WKQMGQEEJXELWQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Jun 24 08:40:23 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-yw1-f185.google.com ([209.85.128.185]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1o4czO-0006fJ-RG for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 24 Jun 2022 08:40:22 +0200 Original-Received: by mail-yw1-f185.google.com with SMTP id 00721157ae682-31859b57239sf14709567b3.3 for ; Thu, 23 Jun 2022 23:40:22 -0700 (PDT) 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=d9fy1Et/I2xSOvuL7fkXoNbFanoiF6eGCPY7JKNSsQE=; b=MPYQvVkC9xJ4YKoBE0v+RlXipCnbj1uF/gssSZcBZMwKORlgPCbrv/o0h4Yp6njQpN 789apnLfoNhPbIejhsl6ZdhKDJMDIIS4f9G4xy9NaieJDX6PbT+hECFkBofWrswT5cyn AvIsJPahx8szxUglr/SIMnNPn/KPnzdO0HGKLGVJ+oOe0UdWnN8OWsx/NfodFTBGRHMg 9F91ieXMFUROl5d7A5D384sONTjyHUNnFV/TScJjplmcn/aQ5Aunj+R2XjA7LnPZTg1a AybF87xJny6QREFrkFW9tx1WB/K5TT79Dc98kmSid2+DJy7ehxdM3u6iSr1zGbx5X+0o 3HiQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=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=d9fy1Et/I2xSOvuL7fkXoNbFanoiF6eGCPY7JKNSsQE=; b=fTJdA1JjgBxRtSacQW6IBGxzErSjN4OPqHuTt5H87qGS/i/QJjkxbvgfKp0Lhfhfe0 vfUVhuPn5cF+dVwL4V+f/UoaY3/4T3qk7dRjZ1d1CdkUwIFazr3nuCdmE5SPgcNoB8qm Pxr8h74LqpUZdKSfzXONScIYhlqbqteX101Jl8P7IhoAY5kIDR4XQ4gyF80hH2LCY4Yz dQnbRZNzEAnnTc2m6XY96BMTWAew7/r/mms7m+1Q77yAE7L3/XUld69IJKpCyKRIuWNC 5KXjoMoEcgSLvwsYP4gJnoG+jeaCVX6JMS0KG7dxqKYM3Nuu/dYMdksSgPZNH3Y/IcBR DLPw== 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=d9fy1Et/I2xSOvuL7fkXoNbFanoiF6eGCPY7JKNSsQE=; b=b/9yWohEhGZ+gqu03+PxxauYAmqJBmhHj4nzGscdmPCZWAQYBddCa1U5XPOtoOCzw4 wo+E48Ie9HnjSsAY5bV9in11ge0eL+VFFZ8Ev3bdsmlBcAi2b9yFwh5xIjtI5LL27dus /8e+U5hbEdZQQ7d+Dl3c3Oug2Zo7tPeHthNin/9Axr64t2+3GDJ1nJTQI/6MXfemTH2w 5S/UlAnRWjJaQTGP3MRIavTTg9dvM+0FL6NZIdeL6G2WQpAhWOchTbvcrmi5CE898B+b UgNKFGZ/iaGHGH4PTjuCN0PMtcwrBTNKbkQxcYPQs+iU0cqAp+fIXbCNc8H3eTqwzSpQ 32Vg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora8lHyoSp0RB4xn7dk+AV1VjEWoqFwsGtDOLw4w9wHUToUBEmm7K YWH19YK575ziOzWNFOEaydQ= X-Google-Smtp-Source: AGRyM1uipA2lOIwG3QcjyLiAaFXgvQnqBZy+4ESbMEYyc7gMzWN3s3Thq/eZUWe82EPIU4M5sEleQg== X-Received: by 2002:a25:2d20:0:b0:668:424f:e1f with SMTP id t32-20020a252d20000000b00668424f0e1fmr496331ybt.212.1656052821884; Thu, 23 Jun 2022 23:40:21 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a81:cc3:0:b0:317:9c38:4ea8 with SMTP id 186-20020a810cc3000000b003179c384ea8ls8243811ywm.11.gmail; Thu, 23 Jun 2022 23:40:18 -0700 (PDT) X-Received: by 2002:a81:4e83:0:b0:318:6aab:8bf4 with SMTP id c125-20020a814e83000000b003186aab8bf4mr8738611ywb.471.1656052818544; Thu, 23 Jun 2022 23:40:18 -0700 (PDT) X-Original-Sender: Abhiman2000-Re5JQEeQqe8AvxtiuMwx3w@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:30823 Archived-At: ------=_Part_1236_590142351.1656052817761 Content-Type: multipart/alternative; boundary="----=_Part_1237_957003633.1656052817761" ------=_Part_1237_957003633.1656052817761 Content-Type: text/plain; charset="UTF-8" Hi everyone, I recently learned that pandoc does not read \abstract{} as raw text but as metadata. But when I try to convert a Latex file into markdown with standalone parameter, the abstract does not appear in YAML metadata headers. I cant use lua filters in any manner, because the abstract does not even appear in abstract syntax tree. Is this an intended outcome or I am missing out on something. If so how can I get the abstract content in YAML metadata. source file (example.tex): \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \author{Abhishek U} \title{\pkg{texor} Hello} \abstract{This is a sample abstract that must be included in the converted document. This is multiline example. } \begin{document} \maketitle Hello world \pkg{texor} \end{document} The command for ast pandoc +RTS -K512m -RTS example.tex --to native --output example-ast.txt -s --citeproc The command for markdown: pandoc +RTS -K512m -RTS example.tex --to markdown --output example.md -s --citeproc pandoc version 2.18 Thanks in advance -- 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/08b609d9-c982-4f4c-8606-95dd377fae4cn%40googlegroups.com. ------=_Part_1237_957003633.1656052817761 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi everyone,
 I recently learned that pandoc does not r= ead \abstract{} as raw text but as metadata.
But when I try = to convert a Latex file into markdown with standalone parameter, the abstra= ct does not appear in YAML metadata headers. I cant use lua filters in any = manner, because the abstract does not even appear in abstract syntax tree. =

Is this an intended outcome or I am missing o= ut on something. If so how can I get the abstract content in YAML metadata.=

source file (example.tex):

\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inp= utenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amss= ymb}
\author{Abhishek U}
\title{\pkg{texor} Hello}
\abstract{This = is a sample abstract that must be included in the
converted document.This is multiline example.
}
\begin{document}
\maketitle
Hello= world \pkg{texor}
\end{document}

The command for ast

pandoc +RTS -K512m -RT= S example.tex --to native --output example-ast.txt -s  --citeproc

The command for markdown:

=
pandoc +RTS -K512m -RTS example.tex --to markdown --output example.md = -s   --citeproc

pa= ndoc version 2.18

Thanks in advance

--
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/08b609d9-c982-4f4c-8606-95dd377fae4cn%40googlegroups.= com.
------=_Part_1237_957003633.1656052817761-- ------=_Part_1236_590142351.1656052817761--