TeX - LaTeX Asked by Jonas R on July 28, 2021
I want to build a document, where i am using memoir class, using chapters as a headline for each section.
My problem is, that there is a gap between the chapter and the "normal" text underneath, that i want to decrease. I have already tried patchcmd but i couldn’t figure it out. The code i’m using is:
documentclass[a4paper,12pt,oneside]{memoir}
usepackage{colortbl}
usepackage{lipsum}
usepackage{etoolbox}
makeatletter
newififchapternonum
makechapterstyle{jenor}{
renewcommandbeforechapskip{0pt}
renewcommandprintchaptername{}
renewcommandprintchapternum{}
renewcommandprintchapternonum{chapternonumtrue}
renewcommandchaptitlefont{fontfamily{pbk}fontseries{db}fontshape{n}fontsize{25}{35}selectfontraggedleft}
renewcommandchapnumfont{fontfamily{pbk}fontseries{m}fontshape{n}fontsize{0.5in}{0in}selectfontcolor{numbercolor}}
renewcommandprintchaptertitle[1]{%
noindent
ifchapternonum
begin{tabularx}{textwidth}{l}
{letnewlinechaptitlefont ##1par}
end{tabularx}
parvskip1mmhrule
else
begin{tabularx}{textwidth}{l}
raisebox{-5pt}{chapnumfont thechapter} {{textwidth}{chaptitlefont ##1}}
end{tabularx}
parvskip2mmhrule
fi
}
}
chapterstyle{jenor}
makepagestyle{Uni}
usepackage{geometry}
geometry{
top=1in,
inner=1in,
outer=1in,
bottom=1in,
headheight=3ex,
headsep=2ex,
footskip = 10ex,
}
begin{document}
chapter{This is a test}
lipsum[1-1]
end{document}
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP