Skip to content
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

Is it possible to justify text instead of left alignment? #28

Open
StevenCostiou opened this issue Sep 4, 2024 · 2 comments
Open

Is it possible to justify text instead of left alignment? #28

StevenCostiou opened this issue Sep 4, 2024 · 2 comments

Comments

@StevenCostiou
Copy link

It can be done simply by adding the following to sbabook.cls

%%% Page styles & folios
\justifying

I do it in my own projects, but I was wondering if that could be a default option.

@StevenCostiou
Copy link
Author

Or if it could stay left align by default but somehow have an option in the class to set it to justify?

@cdlm
Copy link
Owner

cdlm commented Sep 4, 2024

Certainly the SBAbook example documentation could mention the possibility. It's easy enough to add \justifying to your document preamble —in the main template for Pillar books.

I'm keeping \RaggedRight as a default because justification doesn't make sense for the style of most books that use the class —a few lines of prose alternating with code examples.

Besides, a class option would require the same modification to the document preamble (minus the \) plus 5–10 lines of code in the class for the option definition. The only benefit being that some other places could become justified as a result of the options (e.g. figure captions, where it doesn't make much sense to have enough to benefit from justification).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants