-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
How to set a custom-style for a table? #6496
Comments
IT might be this change in 2.8:
|
If you're postprocessing anyway, you could do something like put the word "SPECIALTABLE" before the table. Postprocessing script would have to find this and strip it out. |
I tackled the problem by moving the custom-style into the first cell of the table, and having the postprocessing script checking the style of the first cell. I see that some work is planned on table styles in #4697, so maybe some day the postprocessing hack will be gone. |
Could we please reopen this issue? I had to downgrade to version 2.7.1 in order to get the old behaviour back. This is extremely annoying. With 2.7.1, you could write:
If you defined the style TD in a docx reference document, the table cells were formatted in the referenc document's TD paragraph style. The same could be done for verbatim code etc. After 2.7.1 (or so), this doesn't work anymore. Table cells, verbatim code etc. don't get formatted with the proper style. I'm not entirely sure whether 2.7.1 is the last good version. I used this based upon the above comment. I tried 2.14 and 2.17.1.1 and these versions don't work properly. |
I want this, too.
If we cannot used different table styles for different tables, all equations would be formated like other tables. |
Hello,
My task is to allow to set a Word table style (e. g. table without borders) in Pandoc Markdown.
In some previous version of pandoc (2.1.1) I used the following trick to apply a custom table style in the generated docx:
:::{custom-style=MyParagraphStyle}
, whereMyParagraphStyle
does not have any importance of its own -- it just serves as a marker for the postprocessing.MyParagraphStyle
as their paragraph style.MyTableStyle
to them. MyTableStyle is a table style properly defined in the reference docx.In Pandoc 2.9.2 and probably in 2.10, it no longer works. Pandoc no longer lets the style of the paragraph the table is in leak into the table cells.
Is this an intended change? Do I have any other ways to achieve my goal? Thanks.
The text was updated successfully, but these errors were encountered: