Page LayoutStyling a chapter based on it's name?

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
chrisanthropic
Posts: 1
Joined: Thu Mar 31, 2016 6:13 pm

Styling a chapter based on it's name?

Post by chrisanthropic »

Hi,

I'm working on a "Novel" template with some custom pages (\titlepage and a custom Copyright page). Now I'm looking to customize fonts, etc. of a specific chapter based on the chapter title.

More specifically I'd like something along the lines of:

Code: Select all

if \@chapapp{About the Author} then \small
for example.

I'm actually creating a LaTeX template for use with Pandoc and Pandoc puts all of the content in with it's own

Code: Select all

$body$
variable so I'm not able to easily style sections or chapters via a LaTeX structured template with sections etc. Given the method I'm using I get an 'about the author' and 'license' page at the end and I'd like a way to style them differently from the actual chapters of the book.

As an example, I'm importing my content using a custom macro \body, the contents of which are 7 chapters. I'd like to change the font family, font size, and margins of the contents of "Chapter 6: About the Author" but not affect the other chapters. Is this possible given my limitations?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
Post Reply