I've been looking for a way to justify the text in my gitbook, but haven't had any luck finding a solution. I've attempted:
Adding "text-align: justified" to the CSS right after the YAML Header:
<style> body { text-align: justify } </style>
Unfortunately, this didn't work.
Applying "text-align: justify" to a div tag for the entire text:
<div style="text-align:justify;"> my whole text </div>
This approach did justify the text, but it caused the topic numbering to disappear (along with other features I haven't quite figured out).
The key is that I want to maintain all the standard features of the output from bookdown::gitbook while only adjusting the text alignment to "justified."
Additionally, manually adding a div tag to every sentence would be too time-consuming. Any suggestions?
Thanks in advance!