I have been heavily reliant on Tex Stack in customising the classicthesis style. I am trying to segregate the list of figures page by splitting the figures into chapters. I tried to extract the chapter title by:
\let\Chaptermark\chaptermark
\def\chaptermark#1{\def\Chaptername{#1}\Chaptermark{#1}}
\preto\figure{%
\ifnum\value{figure}=0\addtocontents{lof}{{\spacedlowsmallcaps{\thechapter \quad \Chaptername} \vskip10pt}}\fi
}
However, I would like to extract or access the long chapter title instead of \chaptermark. I have tried the following patches but without any success.
How to get the current chapter* name, section* name, subsection* name, etc?
Accessing chapter's name in Koma-Script
how to get the current chapter name, section name, subsection name, etc?
Any suggestion would be very helpful.
Thanks
\chaptermark. Since I define chapter as – Sudharshan Ravi Feb 16 '21 at 19:55\chaptermarkin Werner's solution, hm... – PhilipPirrip Feb 16 '21 at 22:23\thechapternameis defined using\chaptermark. – Sudharshan Ravi Feb 16 '21 at 23:52\@chaptercommand (in most classes) that ''eats'' the two arguments - short and long title - so you could just patch it to save the long title for you. Check for example report.cls (or standardsections.hak if using koma-script). Other than that, you could make your own\mychaptercommand that would wrap the existing one: save arg #2 in\mylongtitle, then call\chapter. – PhilipPirrip Feb 17 '21 at 14:11