0

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

  • How about this solution https://tex.stackexchange.com/questions/398166/ – PhilipPirrip Feb 16 '21 at 18:08
  • This solution also uses the \chaptermark. Since I define chapter as
    \chaptermark[head title]```
    
    I want to use the title and not the head title as headings to the list of figures. I am not sure how to access this part using a variable
    
    – Sudharshan Ravi Feb 16 '21 at 19:55
  • I don't see \chaptermark in Werner's solution, hm... – PhilipPirrip Feb 16 '21 at 22:23
  • I think his solution is building on the original question. \thechaptername is defined using \chaptermark. – Sudharshan Ravi Feb 16 '21 at 23:52
  • I believe it's the \@chapter command (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 \mychapter command that would wrap the existing one: save arg #2 in \mylongtitle, then call \chapter. – PhilipPirrip Feb 17 '21 at 14:11

0 Answers0