My thesis office requires an inverted pyramid for all chapter titles. Here is the code I am using to produce the result:
\newcommand{\invpyr}[1]{
\vbox{
\hsize=4.5in
\parindent=0pt
\emergencystretch=1in
\parshape 6
0.00in 4.50in
0.25in 4.00in
0.50in 3.50in
0.75in 3.00in
1.00in 2.50in
1.25in 2.00in
\leftskip=0pt plus 1fil
\rightskip=0pt plus -1fil
\parfillskip=0pt plus 2fil
#1\par
}
}
This successfully makes an inverted pyramid, but it also stretches the spacing between the words to "fill" each line of the pyramid. I need the spacing to be the same as the rest of the document. In other words, if the top line of the pyramid is 4.5" of available space, I might end up using 4" because the spaces between the words are a normal space.
\raggedright, or\RaggedRightto allow hyphenation (requires loadingragged2e). – Bernard Aug 24 '17 at 01:59\rightskipinstead ofplus -1filwhich I'm not sure why you have. (Just remove the-sign in\rightskip, and maybe change\leftskiptoo if you're not happy with the results.) – ShreevatsaR Aug 24 '17 at 02:05\documentclassand ending with\end{document}, and illustrating only the title you have and get, and describe what you want instead. – ShreevatsaR Aug 24 '17 at 02:45To cfr: You're telling me.
– tomsrobots Aug 24 '17 at 03:05\invpyr{my long title}will work the same (show the same stretching between words etc.) even with\documentclass{article}. So your minimal example can just use a standard document class. Alternatively, if your school's.styfile isn't secret (presumably if it's shared with all students in the school it isn't intended to be), then just keep it, upload it somewhere and link to it, remove everything else from your thesis, and that will be your MWE. – ShreevatsaR Aug 24 '17 at 03:21\centeringand use manual breaks with\\while preferring shorter lines at the start. Titles usually benefit from manual line breaking in any case. – David Carlisle Aug 24 '17 at 06:29