Hello
I realy like the appearance of the short list of contents, introduced in the memoir manual. What I want is a short list of figures command changing the LoF style similarly. Centered captions followed by page numbers, without these dots.
I was trying to adopt the code of the short toc command, but it didn't work out.
It's beyond my capabilities to write such code.
Has anyone here already done this or knows how to do it?
Thx
Document Classes ⇒ Memoir Short List of Figures
NEW: TikZ book now 40% off at Amazon.com for a short time.

Memoir Short List of Figures
Hi,
please post a minimal working example showing the aspect of the short table of contents that you want to imitate.
please post a minimal working example showing the aspect of the short table of contents that you want to imitate.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Memoir Short List of Figures
Sorry. Here is the code I'm trying to adobt.
I would like to make a \setupshortlof command. A short list of figures, showing centered figure cpations followed by page numbers. Similary to the short ToC appearance.
My problems: \setupshorttoc \setupparasubsecs \setupmaintoc
are connected somehow, as they don't work out on there own.
I can't understand how this code works, so I can't make my short list of figures.
Code: Select all
Code, edit and compile here:
\documentclass [a4paper,11pt,oneside]{memoir}\setsecnumdepth{section}\setcounter{tocdepth}{3}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Short and long ToC\makeatletter\newcommand*{\setupshorttoc}{%\renewcommand*{\contentsname}{Short contents}\let\oldchangetocdepth\changetocdepth\let\oldprecistoctext\precistoctext\renewcommand{\precistoctext}[1]{}\let\oldcftchapterfillnum\cftchapterfillnum\renewcommand*{\changetocdepth}[1]{}\setcounter{tocdepth}{0}% chapters\renewcommand*{\cftchapterfont}{\hfill\sffamily}\renewcommand*{\cftchapterpagefont}{\normalfont}\renewcommand*{\cftchapterleader}{ \textperiodcentered\space}\renewcommand*{\cftchapterafterpnum}{\cftparfillskip}%% \setpnumwidth{0em}%% \setpnumwidth{1.5em}\renewcommand*{\cftchapterfillnum}[1]{%{\cftchapterleader}\nobreak\hbox to 1.5em{\cftchapterpagefont ##1\hfil}\cftchapterafterpnum\par}\setrmarg{0.3\textwidth}\setlength{\unitlength}{\@tocrmarg}\addtolength{\unitlength}{1.5em}\let\oldcftpartformatpnum\cftpartformatpnum\renewcommand*{\cftpartformatpnum}[1]{%\hbox to\unitlength{{\cftpartpagefont ##1}}}\let\oldcftbookformatpnum\cftbookformatpnum\renewcommand*{\cftbookformatpnum}[1]{%\hbox to\unitlength{{\cftbookpagefont ##1}}}}\newcommand*{\setupparasubsecs}{%\let\oldnumberline\numberline\renewcommand*{\cftsubsectionfont}{\itshape}\renewcommand*{\cftsubsectionpagefont}{\itshape}\renewcommand{\l@subsection}[2]{\ifnum\c@tocdepth > 1\relax
My problems: \setupshorttoc \setupparasubsecs \setupmaintoc
are connected somehow, as they don't work out on there own.
I can't understand how this code works, so I can't make my short list of figures.
Memoir Short List of Figures
No ideas at all? I tried a few things by myself, but so far every approach turned out to be rubbish.
e.g.
e.g.
Code: Select all
Code, edit and compile here:
\documentclass [a4paper,11pt,oneside]{memoir}%%% short LOF\makeatletter\newcommand*{\setupshortlof}{%\renewcommand*{\contentsname}{ShortLof}\let\oldchangelofdepth\changelofdepth\let\oldprecisloftext\precisloftext\renewcommand{\precisloftext}[1]{}\let\oldcftchapterfillnum\cftchapterfillnum% \renewcommand*{\changelofdepth}[1]{}%\setcounter{tocdepth}{0}% chapters\renewcommand*{\cftchapterfont}{\hfill\sffamily}\renewcommand*{\cftchapterpagefont}{\normalfont}\renewcommand*{\cftchapterleader}{ \textperiodcentered\space}\renewcommand*{\cftchapterafterpnum}{\cftparfillskip}}\makeatother\begin{document}\clearpage\setupshortlof\listoffigures\end{document}
Memoir Short List of Figures
Solution:
Code: Select all
Code, edit and compile here:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Short LoF\makeatletter\newcommand*{\setupshortlof}{%\renewcommand*{\listfigurename}{ShortLoF}%\let\oldchangelofdepth\changelofdepth%\let\oldcftfigurefillnum\cftfigurefillnum\renewcommand*{\cftfigurefont}{\hfill\sffamily}\renewcommand*{\cftfigurepagefont}{\normalfont}\renewcommand*{\cftfigureleader}{ \textperiodcentered\space}\renewcommand*{\cftfigureafterpnum}{\cftparfillskip}\renewcommand*{\cftfigurefillnum}[1]{%{\cftfigureleader}\nobreak\hbox to 1.5em{\cftfigurepagefont ##1\hfil}\cftfigureafterpnum\par}\setrmarg{0.3\textwidth}\setlength{\unitlength}{\@tocrmarg}\addtolength{\unitlength}{1.5em}\let\oldcftpartformatpnum\cftpartformatpnum\renewcommand*{\cftpartformatpnum}[1]{%\hbox to\unitlength{{\cftpartpagefont ##1}}}\let\oldcftbookformatpnum\cftbookformatpnum\renewcommand*{\cftbookformatpnum}[1]{%\hbox to\unitlength{{\cftbookpagefont ##1}}}}\makeatother
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Memoir Short List of Figures
Then please mark the topic (not the last post) accordingly as written in Section 3 of the Board Rules (to bread before posting).Pete82 wrote:Solution: […]
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10