diff --git a/dnd.sty b/dnd.sty index 235e228d..7170f0d8 100644 --- a/dnd.sty +++ b/dnd.sty @@ -93,7 +93,7 @@ % Setup for custom footer \pagestyle{fancy} -\footskip = 50pt %push the footer down so it fits with the decal from the bg-img +\footskip = 48pt %push the footer down so it fits with the decal from the bg-img \fancyhfoffset[LE]{28pt} % push the footer left on even pages so it fits the decal \fancyhfoffset[RO]{30pt} % push the footer right on odd pages so it fits the decalbg-img \renewcommand{\headrulewidth}{0.0pt} %no rule for header @@ -109,12 +109,14 @@ } \fancyfoot[RO]{ - \raisebox{12pt}{\textsc{\textcolor{uppergold}{\nouppercase\rightmark}}} + \raisebox{12pt}{\textsc{\textcolor{uppergold}{\nouppercase\leftmark}}} \hspace*{1cm} \textcolor{uppergold}{\thepage} } +\renewcommand{\chaptermark}[1]{\markboth{#1}{}} % Don not write word "chapter" +\fancypagestyle{plain}{} % Fancy DnD 5e-style hline \renewcommand{\hline}{ diff --git a/example.pdf b/example.pdf index 9a235e1a..5dc4e9d5 100644 Binary files a/example.pdf and b/example.pdf differ diff --git a/example.tex b/example.tex index e45f180d..b9c83494 100644 --- a/example.tex +++ b/example.tex @@ -1,4 +1,4 @@ -\documentclass[10pt,twoside,twocolumn]{article} +\documentclass[10pt,twoside,twocolumn,openany]{book} \usepackage[bg-letter]{dnd} % Options: bg-a4, bg-letter, bg-full, bg-print, bg-none. \usepackage[ngerman]{babel} % Trennungsregeln und autom. Überschriften in n. dt. RS \usepackage[utf8]{inputenc} @@ -9,6 +9,8 @@ % Your content goes here +\chapter{Chapter 1: Example} + \section{Main Section} \lipsum[1] % filler text diff --git a/lib/dndsections.sty b/lib/dndsections.sty index 20f408c2..7a4f7279 100644 --- a/lib/dndsections.sty +++ b/lib/dndsections.sty @@ -1,12 +1,18 @@ %Remove Numbering from section (If you want Numbering on the sections comment the following three lines and change the "0em" separation-definitions in the lower part to 1em) +\renewcommand\thechapter{} \renewcommand\thesection{} \renewcommand\thesubsection{} \renewcommand\thesubsubsection{} +% Adjust chapter formatting +\titleclass{\chapter}{top} +\titleformat{\chapter} +{\color{titlered}\normalfont\scshape\Huge}{\thechapter}{0em}{} +\titlespacing*{\chapter}{0pt}{0pt}{20pt} % Adjust section and subsection colors and font (change 0em to 1em if you commented the removal of section numbering) \titleformat{\section} -{\color{titlered}\normalfont\scshape\Huge}{\thesection}{0em}{} +{\color{titlered}\normalfont\scshape\LARGE}{\thesection}{0em}{} \titleformat{\subsection} {\color{titlered}\normalfont\scshape\Large}{\thesubsection}{0em}{}[{\titleline{\color{undergold}\titlerule[1pt]}}] diff --git a/scrot.png b/scrot.png index 9f8837e0..389e2211 100644 Binary files a/scrot.png and b/scrot.png differ