I'm quite happy with titlesec and titleps for keeping track of sections and creating footers that are conditional on whether a chapter start or is continued, but there was a case where it wasn't straightforward to obtain a custom format. So, what I'm looking to do is decouple sectioning from its format. As a workaround, for now, I just want to disable any typesetting of \chapter{...}. In the example below, this means getting rid only of "Chapter 1\nl Fonts", such that "SOME CUST CHAP. FORMAT" comes at the top of the same page.
\documentclass{report}
\usepackage{fontawesome}
\usepackage{lastpage}
\usepackage{tabularx}
\usepackage{titlesec}
\usepackage{titleps}
\usepackage{xparse}
\newcolumntype{R}{>{\raggedleft\arraybackslash}X}
\newcolumntype{C}{>{\centering\arraybackslash}X}
\NewDocumentCommand{\thedoc}
{}% Is there not a command for `token list` in xparse?
{THIS DOC}
\NewDocumentCommand{\myheaderii}
{+mm}
{%
\begin{tabularx}{\textwidth}{@{}XR@{}}#1\end{tabularx}
}
\NewDocumentCommand{\myheaderiii}
{+mmm}
{%
\begin{tabularx}{\textwidth}{@{}X@{}C@{}R@{}}#1\end{tabularx}
}
\NewDocumentCommand{\chapterMark}{}{UNDEFINED!}
\NewDocumentCommand{\setchapterMark}{m}
{%
\RenewDocumentCommand{\chapterMark}{}{#1}
}
%\setcounter{chapter}{0}
\NewDocumentCommand{\newChapter}{mmO{}}
{%
% \stepcounter{chapter}
\chapter{#1}
\setchapterMark{#2}
SOME CUST CHAP. FORMAT%THAT NO EXISTING PACKAGE CAN EASILY MAKE
\textless#1\textgreater
}
% pagestyle--------------------------------------------------------
\newpagestyle{specialii}
{
\setfoot{%
\myheaderii{\thedoc}{\thepage/\pageref{LastPage}}%
}{}{}
}
\newpagestyle{specialiii}
{
\setfoot{%
\myheaderiii{\thedoc}{\chapterMark}{\thepage/\pageref{LastPage}}%
}{}{}
}
\assignpagestyle{\chapter}{specialii}
\begin{document}
\pagestyle{specialiii}
%\pagestyle{empty}
\begin{titlepage}\vspace*{\fill}\huge\begin{center}\thedoc\end{center}\vspace*{\fill}\end{titlepage}
\newChapter{Fonts}{\faFont}
Let's make that span\newpage another page
\end{document}












\chapterto create a chapter, just not display it. That way, I can use whatever functionality is associated with\chapter(in this case\assignpagestyle{\chapter}{specialii}), and customize the display of the chapter. – Erwann Oct 07 '19 at 08:28numberlesskey, different from the formatting and spacing for numbered chapters, if it can help. – Bernard Oct 07 '19 at 08:51titleformat? I stated explicitly it was not suitable. – Erwann Oct 07 '19 at 17:22\chaptertitlename,\thechapteretc., but disable the display of the headline associated with the chapter (label+title). That way I can create my own, totally custom headline (titleformatwon't do what I need), but continue to use functionality that sits on top of "what goes on in the background". That's what I mean by decoupling. – Erwann Oct 07 '19 at 18:16report.cls. It might suffice to redefine\@makechapterheadto do nothing, not sure yet. – Erwann Oct 07 '19 at 18:30headline, do you denote the header (managed bytitleps) ? Similarly,\chaptertitlenameis the word ‘chapter’, orappendixfor the appendix chapters. What would be the status of the text replacing the chapter line (semantically)? – Bernard Oct 07 '19 at 18:35\makeatletter\def\@makechapterhead#1{}\makeatother, which does get rid of the header, as desired, but the footer specified by\assignpagestyle{\chapter}{specialii}, which affects page 1/2, is lost. OTOH, the footer on page 2/2 remains the same, as desired. – Erwann Oct 07 '19 at 19:06