-
Notifications
You must be signed in to change notification settings - Fork 5
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
Word report: justify text orientation #747
Comments
I don't see a difference... |
Still don't understand the issue. Are you complaining about the text font? |
Ok, got it know. Never knew that option is called "Justify" :) |
Setting default alignment to Justify can be done by Modifying the styles of the reference document. After some investigation, it is also possible to create new styles in the docx reference document with specific alignments (left, center, right, justify). For instance, if you create a style named "Centered" in your reference document that use a center alignment, the line below in the markdown document will create a centered paragraph. ::: {custom-style="Centered"}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
::: |
…n-Systems-Pharmacology#748 Open-Systems-Pharmacology#749 Open-Systems-Pharmacology#750 Open-Systems-Pharmacology#754 default reference document styles In the new reference document - Default line spacing is 1.5 - Default font is Arial and not bold - Default alignment is Justify - Tables use borders, first row and column only in bold
* Fixes #963 Adapt pandoc options to version * Fixes #746 #747 #748 #749 #750 #754 default reference document styles In the new reference document - Default line spacing is 1.5 - Default font is Arial and not bold - Default alignment is Justify - Tables use borders, first row and column only in bold * Unfix #747 back to left aligned paragraphs
Following up on that if we want to implement at some point. The user or RE would only have to create for instance <div align="right"> This is right aligned text </div> translated into this `<w:pPr><w:jc w:val="right"/></w:pPr>`{=openxml}This is right aligned text and rendering specified align text in both documents This is right aligned text
Also, translation of div alignment to inline raw openxml also works for tables |header 1|<div align="right"> long header 2 </div>|<div align="center"> very long header 3 </div>|
|----|-----|-----|
|a |<div align="right"> b </div> | <div align="center"> c </div> | translated into this |header 1|`<w:pPr><w:jc w:val="right"/></w:pPr>`{=openxml} long header 2 |`<w:pPr><w:jc w:val="center"/></w:pPr>`{=openxml} very long header 3|
|----|-----|-----|
|a |`<w:pPr><w:jc w:val="right"/></w:pPr>`{=openxml} b |`<w:pPr><w:jc w:val="center"/></w:pPr>`{=openxml} c | and rendering specified alignments in tables of both documents
|
Fixed by PR #1065 There is an article documenting how to leverage html tags for word conversion |
vs
The text was updated successfully, but these errors were encountered: