-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
* There is no abstract outputed into docx with command option "--metadata=abstract:METADATA"? #4900
Comments
What version of pandoc are you using? Can you provide exact command? |
The pandoc version is 2.2.3.2.
The whole command is "pandoc -f org -t docx -o test.docx --bibliography=2.bib --metadata=toc-title:toc --metadata=abstract:METADATA --toc --csl=ieee-transactions-on-signal-processing.csl --reference-doc=pandoc-reference-doc.docx --standalone test.tmpgEceNL.org"
|
Ah, this is because when setting metadata with the command line, the values are strings, instead of But more generally, we should probably solve this as part of #1960. |
As string abstract in command line can not be identified, is there a way to set the abstract in the orgmode file? |
Not that I know of... for your usecase, I would just put the abstract in the body text... that's effectively what the docx writer does as well. If you need the proper style, see http://pandoc.org/MANUAL.html#custom-styles-in-docx |
The bracketed_spans syntax is used in markdown and seems not work in
orgmode. The snippet below
`[Get out]{custom-style="Emphatically"}, hesaid.`
is converted to the same text with normal style in the docx file.
|
Ah, I'm not sure how to do that in org-mode... @tarleb ? |
Incidentally, somebody recently asked a question on how to add an abstract in the ox-pandoc project. TL;DR: either set it via |
The lua filter works for me. Thanks. |
A little change to the filter in Org Abstract Block Export to make it identify more than one abstract -- file: abstract-div-to-meta.lua
local abstract = {}
function Div (div)
if div.classes:includes 'ABSTRACT' then
if abstract == {} then
abstract = div.content
else
for i=1,#div.content do
abstract[#abstract+1] = div.content[i]
end
end
return {}
end
end
function Meta (meta)
meta.abstract = pandoc.MetaBlocks(abstract)
return meta
end |
The command option "--metadata=toc-title:toc" works fine. But there is no abstract outputed into docx with command option "--metadata=abstract:METADATA".
The text was updated successfully, but these errors were encountered: