-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
Command \center now has an option to center its content vertically #1898
Draft
jodros
wants to merge
2
commits into
sile-typesetter:master
Choose a base branch
from
jodros:center-vertically
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
Set paper size 595.275597 841.8897729 | ||
Begin page | ||
Mx 49.7638 | ||
My 42.0945 | ||
Mx 160.4430 | ||
My 288.5648 | ||
Set font Gentium Plus;10;400;;normal;;;LTR | ||
T 55 43 44 54 w=19.7852 (THIS) | ||
Mx 182.8707 | ||
T 51 43 53 36 54 40 w=33.0518 (PHRASE) | ||
Mx 218.5650 | ||
T 54 43 50 56 47 39 w=34.5264 (SHOULD) | ||
Mx 255.7340 | ||
T 37 40 w=10.4590 (BE) | ||
Mx 268.8356 | ||
Mx 4.9609 | ||
Mx 6.1523 | ||
Mx 5.8008 | ||
Mx 5.3613 | ||
Mx 5.5078 | ||
Mx 4.0820 | ||
Mx 5.9424 | ||
T 40 a=4.9609 59 a=6.1523 36 a=5.9521 38 a=5.3613 55 a=5.5078 47 a=4.7607 60 a=5.9424 (EXACTLY) | ||
Mx 309.2857 | ||
Mx 5.4639 | ||
Mx 5.5078 | ||
T 36 a=5.9521 55 a=5.5078 (AT) | ||
Mx 322.9000 | ||
T 55 43 40 w=17.0068 (THE) | ||
Mx 342.5494 | ||
T 48 44 39 39 47 40 w=32.6172 (MIDDLE) | ||
Mx 377.8092 | ||
T 50 41 w=10.7813 (OF) | ||
Mx 391.2330 | ||
T 55 43 40 w=17.0068 (THE) | ||
Mx 410.8824 | ||
Mx 4.6387 | ||
Mx 5.8008 | ||
Mx 5.8301 | ||
Mx 4.9609 | ||
T 51 a=5.2295 36 a=5.9521 42 a=5.8301 40 a=4.9609 (PAGE) | ||
T 4 w=2.7197 (!) | ||
Mx 295.2916 | ||
My 780.6177 | ||
T 20 w=4.6924 (1) | ||
End page | ||
Finish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
\begin{document} | ||
\center[vertical=true]{THIS PHRASE SHOULD BE EXACTLY AT THE MIDDLE OF THE PAGE!} | ||
\end{document} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A vfill won't push the content middle of the page, unless if it is a final page automatically vfill'ed (such as the final page of your example) or explicitly
\eject
'ed. Then another vfill is currently automatically added at the end of the page, resulting in centering.Personally:
EDIT: Oh, and by the way, the empty hbox is no innocuous. It introduces an empty line. With the default typesetter, this is nearly innocuous, as it has a height of 0. With any other linespacing strategy (from the eponymous package, broken, IMHO) or grid, it becomes messy.