I have a question. In my work, apart from drawings, I also have photos. I know that a list of drawings is created with the command
\listoffigures
, but is it possible to number them separately and create a list for photos?Regards
\listoffigures
, but is it possible to number them separately and create a list for photos?Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
remarkbox
environment example in section 15.6 of the photo
environment similar to the given example. Alternatively see, e.g. package Code: Select all
\DeclareTOCStyleEntry [%
numwidth = 1 em%
] {tocline} {chapter}
Code: Select all
\documentclass[a4paper]{mwrep}
\usepackage {tocbasic}
\DeclareNewTOC [%
type = remarkbox,%
types = remarkboxes,%
float,%
floattype = 4,%
name = Remark,%
listname = {List of Remarks}%] {lor}
\setuptoc {lor} {chapteratlist}
\newcommand*{\listofremarkboxes}{\listoftoc {lor}}
not only a code snippet. See the link for more information.MjK wrote:If you need more help, please show aminimal working example
. Does anyone know what could be the cause?Undefined control sequence \@nnil->\@nil l. 37 ^^I]{lor}
Code: Select all
\documentclass[twoside,11pt,a4paper, openright]{mwrep}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{fontspec}
\usepackage[titles]{tocloft}
\usepackage{polski}
\usepackage[left=3 cm, right=2 cm, bottom=2.5cm, top=2.5cm]{geometry}
\usepackage{graphicx}
\usepackage{url}
\usepackage{array}
\usepackage{tabularx}
\usepackage{ltxtable}
\usepackage{multirow}
\usepackage{pdfpages}
\usepackage{longtable}
\usepackage{tabularray}
\usepackage{tabu}
\usepackage{rotating}
\usepackage{threeparttable}
\usepackage{textgreek}
\usepackage{upgreek}
\usepackage{fancyvrb}
\usepackage{fancyhdr}
\usepackage{float}
\usepackage{tocbasic}
\DeclareNewTOC[%
counterwithin=chapter,%
type=remarkbox,%
types=remarkboxes,%
float,%
floattype=4,%
name=Fot.,%
listname={List of photos},%
indent=0%
]{lor}
\setuptoc{lor}{chapteratlist}
\makeatletter
\renewcommand\@dotsep{.}
\makeatother
%\DeclareTOCStyleEntry[numwidth=2em]{tocline}{chapter}
\newcommand*{\listofphotos}{\listoftoc{lor}}
\theoremstyle{definition}
\newcommand*{\defeq}{\stackrel{\text{def}}{=}}
\RecustomVerbatimCommand{\VerbatimInput}{VerbatimInput}
{{fontsize=\tiny}, frame=lines, framesep=1em}
\usepackage{amsmath}
\usepackage[font=small, justification=centerlast, width=\textwidth, labelsep=period]{caption}
\makeatletter
\renewcommand{\@biblabel}[1]{[#1]\hfill}
\makeatother
\renewcommand*{\figurename}{Pic.}
\renewcommand*{\tablename}{Tab.}
\setcounter{secnumdepth}{3}
\renewcommand{\cftchapleader}{\bfseries\cftdotfill{\cftchapdotsep}}
\renewcommand{\cftchapdotsep}{\cftdotsep}
\renewcommand{\cftdotsep}{0.1}
\setlength{\cftfigindent}{0pt}
\setlength{\cfttabindent}{0pt}
\begin{document}
\tableofcontents
\include{Summary}
\include{Symbols}
\include{Introduction}
\include{Chapter_I}
\include{Chapter_II}
\include{End}
\include{Bibliography}
\listoftables
\listoffigures
\listofphotos
\end{document}
indent=0pt
.It works. Thank you very muchStefan Kottwitz wrote:Hi Pjotr,
there's a unit missing in line 36; simply writeindent=0pt
.
Stefan
name
in commanmd \DeclareNewTOC
to appear in the list. The idea is to add a short text before the item number in the list - the same as in the content of the work. I mean a command analogous to those used when listing figures (and tables): \renewcommand\cftfigpresnum{Fig.}
\addtolength\cftfignumwidth{15 pt}
\renewcommand\cftfigaftersnum{.}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis