I am new to this forum and I hope that someone can help me with the following issue. I searched for a similar post, but could not find anything so far.
I am writing my thesis, which consists not only of chapters, but also of two parts. I used the fncychap package to make the chapter title pages look nicer, which works wonderfully. Now I also want to make the part style nicer, and here I am struggling. I'd like to have the Rejne style for parts (and NOT for chapters, as defined in the fncychap package, and I already tried the following:
Take the "fncychap.sty" and rename it to something else, replace \thechapter by \thepart, rename all new command definitions to prevent a re-definition of commands due to the inclusion of both the original "fncychap.sty" file and the modified one. However, this does not work. In fact, it messes up the chapter styles also, and the parts look the same as before.
Using code I found to manually re-define the style of parts
\titleclass{\part}{top} % make part like a chapter
\titleformat{\part}
[display]
{\centering\normalfont\Large}
{\titlerule[3pt]\vspace{3pt}\titlerule[1pt]\vspace{3pt}\MakeUppercase{\partname} \thepart}
{0pt}
{\titlerule[1pt]\vspace{3pt}\titlerule[3pt]\vspace{4pc}\Large\MakeUppercase}
%
\titlespacing*{\part}{0pt}{0pt}{20pt}
This imitates the Conny chapter style, however, I am not able to modify this to imitate the Rejne style.
I would be extremely thankful if someone could help me here.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Could you make the code snippet into a complete minimal working example, please? It will be easier to see what you have and what you want if we only need to copy and compile the code and are able to immediately can see what things look like.
\documentclass[a4paper,11pt]{book}
\usepackage[Rejne]{fncychap} %Select the Rejne style for chapters
\usepackage{titlesec}
\begin{document}
% As the fncychap package re-styles only chapters but not parts, a workaround is to redefine the \part style manually. The following imitates the Conny style, but I do not know how to imitate the Rejne style...
%%%%%%%%%%%%%%%%%%
\titleclass{\part}{top} % make part like a chapter
\titleformat{\part}
[display]
{\centering\normalfont\Large}
{\titlerule[3pt]\vspace{3pt}\titlerule[1pt]\vspace{3pt}\MakeUppercase{\partname} \thepart}
{0pt}
{\titlerule[1pt]\vspace{3pt}\titlerule[3pt]\vspace{4pc}\Large\MakeUppercase}
\titlespacing*{\part}{0pt}{0pt}{20pt}
%%%%%%%%%%%%%%%%%%
\part{Teil 1: Blablabla} %Should be styled like a chapter
\newpage
\chapter{Section 1}
\newpage
\part{Teil 2: Blablabla}
\newpage
\chapter{Section 2}
\newpage
\end{document}
chrarnold wrote:Hmm, no suggestions from anybody? What a bummer
Please no swearing! Unfortunately it happens that questions get overlooked or forgotten. That is not on purpose.
I would not use one package for chapter titles and another one for part titles. Inconsistencies are bound to happen... titlesec can be used for both. Below is an idea that uses the same style for both and tries to emulate the Rejne style...
first, thanks very much for the reply. In American English (which I am using), "What a bummer" is not a swear word at all, and I had no intention to swear, why would I? I understand fully that my issue is rather specific and is easily overlooked.
I tried to compile your code, but I have difficulties with the \usepackage{xcoffins} statement. LaTeX Error: File `xcoffins.sty' not found. How exactly do I install this experimental package manually? I downloaded the sources from CTAN, but I cannot run latex or pdflatex on the *dtx and *ins without errors. I get similar errors as the own above when doing this...
chrarnold wrote:first, thanks very much for the reply. In American English (which I am using), "What a bummer" is not a swear word at all, and I had no intention to swear, why would I? I understand fully that my issue is rather specific and is easily overlooked.
Well, maybe »swear« is the wrong wording. I'm no native speaker... to me »bummer« has unfriendly connotations. If I'm wrong then ignore my comment.
chrarnold wrote:I tried to compile your code, but I have difficulties with the \usepackage{xcoffins} statement. LaTeX Error: File `xcoffins.sty' not found. How exactly do I install this experimental package manually? I downloaded the sources from CTAN, but I cannot run latex or pdflatex on the *dtx and *ins without errors. I get similar errors as the own above when doing this...
You should best update your TeX distribution then instead of trying to manually install xcoffins. The package relies on quite a number of additional packages. xcoffins is part of both TeX Live 2012 and MiKTeX 2.9.
I want to immitate the same part style and used your code as well. However, please can you tell me what should I edit in it so that the part title would be put in the vertical center of the page rather than the header.
You can change the titlespacing, in the following i used a value of 7cm, which ia almost the center of the page. You could measure the box and center it exactly on page, but taking an eye-value seems to be better.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p