public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* pandoc does not read abstract from latex as meta data
@ 2022-06-24  6:40 Abhishek Ulayil
  0 siblings, 0 replies; only message in thread
From: Abhishek Ulayil @ 2022-06-24  6:40 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1533 bytes --]

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.

[-- Attachment #1.2: Type: text/html, Size: 2618 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-24  6:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-24  6:40 pandoc does not read abstract from latex as meta data Abhishek Ulayil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).