-
-
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
Abstract has no title when converting markdown to docx #8702
Comments
I made it use a localized term for "Abstract" (will depend on |
What I mean is to add the "Abstract" title to the output Anyway, I use a VBA macro as a workaround: Sub AbstractTitle()
Dim i As Integer
i = 0
For Each para In ActiveDocument.Paragraphs
i = i + 1
If para.Style = "Abstract" Then
ActiveDocument.Paragraphs.Add Range:=para.Range
ActiveDocument.Paragraphs(i).Range.Text = "Abstract" & vbCr
ActiveDocument.Paragraphs(i).Style = wdStyleHeading1
Exit For
End If
Next
End Sub From the Pandoc User's guide I have tried HTML output, but no abstract part is shown in the generated HTML file. For latex, A workaround to use custom abstract title for latex is: header-includes:
\renewcommand{\abstractname}{My Very Own Summary} So far, I couldn't say this is a completed feature. |
Yes, and that's exactly what it does now! (with this commit) |
|
Hello, could you add ad example in the documentation on how to use it? Because i'm trying but without success. Thanks |
Have you updated pandoc to the latest version? It does add "Abstract" now, but the added "Abstract" has the same style as the abstract content which is not desired. I want the abstract title to be bolded and center-aligned, so a macro in Word is still needed. It would be better to make abstract title the style of heading 1, just the same as the reference title. |
yes I did the update and in fact now it adds Abstract to me at the beginning.
Meanwhile, the title "Abstract" is not translated according to the language and furthermore, even adding there, the variable |
As mentioned above, |
OK understood. Sorry, I misunderstood then and I thought it worked, at least the version translated into the language of the document, even on docx files |
Localization of the term "Abstract" is supposed to occur. So if it is not, it may be a bug. |
I see the bug and I will fix it now. |
See #8702, which was only partially implemented before.
Describe your proposed improvement and the problem it solves.
Add a similarly option like
reference-section-title
to abstract section.Here's the result that I would like to have.
The text was updated successfully, but these errors were encountered: