0

I use memoir class. I want add some vertical space before chapter name or chapter number. I got that with \beforechapskip command, but this way add a fixed vertical space for all chapters. There are any \command that control height of chapter number or height of chapter name, so I can add vertical space dinamically from this \command?

  • It's not really clear what your aim is; can you add some explanations? – egreg May 24 '15 at 22:22
  • Well i ask if there are a command like \chapterheadingheight that control height of chapter heading to make \beforechapskip{\chapterheadingheight} or \beforechapskip{\textheight-\chapterheadingheight} ... I see this \newlength\chaptertitleboxheight ... \settototalheight\chaptertitleboxheight{...}, but I don't understand how works ... – juanuni May 24 '15 at 22:35
1

If I understand you correctly, you like to change vertical space before of only one chapter head. This you can obtain width:

\documentclass[openany]{memoir}
\usepackage{lipsum}
 \setlength\beforechapskip{9\baselineskip}
   \begin{document}
\chapter{one}
\lipsum[1-2]

\setlength\beforechapskip{0\baselineskip}
\chapter{two}
\setlength\beforechapskip{9\baselineskip}
\lipsum[3-4]

\chapter{three}
\lipsum[5-6]
    \end{document}
  • I use this way to add "fixed" vertical space before chapter name, and this aplies the same vertical space for all chapters. I found dinamyc vertical space from height of chapter name. (In this last way the vertical space before chapter name is not the same for all chapters). Regards – juanuni May 24 '15 at 20:14
  • Do you try my example? I change vertical space just for one chapter. with first \setlength\beforechapskip{0\baselineskip} I reduce vertical space, with second one, immediately after `chapter{two} `` it is \setlength\beforechapskip{9\baselineskip} I return it to predefined value. My test shows, that this work. If you provide MWE, I will be able to say more. – Zarko May 24 '15 at 20:46
  • I understand your example, that way is not dynamic, because change the the vertical space manually for each chapter. I could use that way, but I will need to calculate the vertical space before chapter headings every time ... – juanuni May 24 '15 at 20:51
  • Basic concept of book design is that all elements like space before headings, fonts, etc in book are equal. Dynamically changed this all the time? And what is rule for this change? You still not provided a MWE which shows your effort so far. I'm not willing to guess any more. – Zarko May 24 '15 at 21:00
  • 1
    @ChristianHupfer, yeah, you have right. I still remember my conversation (by comment) with OP. I have filling that I spoke to "black hole" ... thank you for up-vote! – Zarko Feb 5 '17 at 22:42

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.