I'm writing a book using tufte-book and pdflatex through ShareLaTeX, and I want to have multiple parts for that book, with the part label centered horizontally in the page. The standard tufte style is to center it horizontally in the text area, and this text area is not centered horizontally in the page due to the large margin for notes, so the part label is not centered absolutely in the page. I want to fix this for just the part labels and not for chapters/sections/regular text.

I tried using the fullwidth environment, but that put an empty page before the "new part page", which is not desired.

Also, I'm incorporating a pgfornament into the part label, and irregardless of whether I use fullwidth or not, the pgfornament is not centered relative to the text. I want it to be centered.

How can I fix this?




\titleformat% Formatting the part header
  {\part} % command
  [block] % shape
  {\bfseries\sc\Huge} % format
  {} % label
  {0pt} % sep
  { \formatpart


\part{The Part To Fix}

\part{The Part To Fix 2}


Update: As per @godbyk's comment, moving the \begin{fullwidth} ... \end{fullwidth} code to the beginning and end of the \formatpart macro and removing the \hfil commands gives the desired appearance.

  • 2
    If you move the \begin{fullwidth} ... \end{fullwidth} code to the beginning and end of the \formatpart macro and remove the \hfil commands, does it give you the desired appearance? – godbyk May 5 '18 at 0:48
  • @neoconcinnity: I'm having the same issue, but I don't understand exactly how the solution would look like. Could you please update your code to show that? I must be missing something obvious here. – Laplace's Demon Feb 26 '19 at 17:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.