预定义(amsbook?)数字列表中的数字宽度太宽 - 自定义列表可以

预定义(amsbook?)数字列表中的数字宽度太宽 - 自定义列表可以

首先,很抱歉写了这么长一段话 - 我想把我用到的一切都包括进去,这样有人就可以看到潜在的冲突。

我根据文档类 amsbook 制作了此书。我还将添加“证明列表”部分...

我已经看到了一些关于调整图表列表中数字宽度的参考资料(尽管我不认为他们有

 \numberswithin{figures}{subsubsection}

细节程度。有些依靠

 \usepackage{tocloft}

这听起来不错,但我无法在实现该包时修复新闻错误。我还发现了一个(如何修改目录中章节标题的数字和文本之间的间距?)试图修复它(在书籍类中),没有那个包,依靠与

 \makeatletter
 \renewcommand*\l@subsection{\@dottedtocline{2}{1.8em}{3.2 em}}
 \makeatother

但我的文件抱怨它本身未定义所以我把它拿出来了- 我猜它是与 tocloft 包一起提供的?

这种方法在一定程度上起了作用,直到出现了更多(对我来说)难以理解的错误,所以我也把这个拿出来了...

\let\listofdefinitions\relax
\let\endlistofdefinitions\relax
\let\listofexamples\relax
\let\endlistofexamples\relax
\let\listofremarks\relax
\let\endlistofremarks\relax
\usepackage{tocloft}

我想使用

 tocloft

包,所以我带着我的 150 页笔记本去了“MWE”,看看是否有人知道为什么它不起作用。

这是序言的开始。

\documentclass{amsbook}%{scrbook}%{book}

    \usepackage{amsthm,varwidth,array,ragged2e}%amsmath
    \usepackage[fleqn]{mathtools}

\newtheoremstyle{mystyle}
  {\topsep}{\topsep}{}{}{\bfseries}{:}{\newline}
  {\thmname{#1}\thmnumber{ #2}\thmnote{ (#3)}%
     \ifstrempty{#3}%
      {\addcontentsline{def}{subsection}{#1~\themydef}}%
      {\addcontentsline{def}{subsection}{#1~\themydef~(#3)}}}
%
\theoremstyle{mystyle}
\newtheorem{mydef}{Definition}
%
\makeatletter
\newcommand\definitionname{Definition}
\newcommand\listdefinitionname{List of Definitions and Theorems}
\newcommand\listofdefinitions{%
  \section*{\listdefinitionname}\@starttoc{def}}
\makeatother

\newtheoremstyle{myotherstyle}
  {\topsep}{\topsep}{}{-3pt}{\bfseries}{:}{\newline}% -3 indents the header
  {\thmname{#1}\thmnumber{ #2}\thmnote{ ({\color{black}{#3}})}%
     \ifstrempty{#3}%
      {\addcontentsline{rem}{subsection}{#1~\themyrem}}%
      {\addcontentsline{rem}{subsection}{#1~\themyrem~(#3)}}}
%
\theoremstyle{myotherstyle}
\newtheorem{myrem}{Remark}
%
\makeatletter
\newcommand\remarkname{Remark}
\newcommand\listremarkname{List of Remarks}
\newcommand\listofremarks{%
  \section*{\listremarkname}\@starttoc{rem}}
\makeatother

\newtheoremstyle{myotherstyleT}
  {\topsep}{\topsep}{}{-3pt}{\bfseries}{:}{\newline}% -3 indents the header
  {\thmname{#1}\thmnumber{ #2}\thmnote{ (#3)}%
     \ifstrempty{#3}%
      {\addcontentsline{def}{subsection}{#1~\themydef}}%
      {\addcontentsline{def}{subsection}{#1~\themydef~(#3)}}}
%
\theoremstyle{myotherstyleT}
\newtheorem{mythm}{Theorem}

    \usepackage[usenames,dvipsnames,table]{xcolor}

    \usepackage{mdframed}
    \usepackage{cancel}
    \usepackage{amssymb}
    \usepackage[strict]{changepage}

    \usepackage[top=1.2in, left=0.9in, bottom=1.2in, right=0.9in,heightrounded,marginparwidth=2cm,marginparsep=2mm]{geometry}

    \usepackage{thmtools} 

    \usepackage{hyperref}
    \hypersetup{
        pdffitwindow=true,
        %linkcolor=LightSkyBlue,
        citecolor=Sienna,
        urlcolor=Navy,
        menucolor=black,
        colorlinks = true,
        linkcolor=Violet,
        %linkbordercolor = {white},
        %filebordercolor={red},
        linkbordercolor=blue,
        hidelinks = false,
        frenchlinks=true, %eventually comment out
        bookmarks=true,
        bookmarksnumbered=true,
        hypertexnames=false,
        breaklinks=true,
        backref=true,
        hyperindex=true,
        pdfauthor={hellslfjkdsl},
        final,
        %pdftitle={PHYS 5300},
        pagebackref=true,
        linktocpage=false,
        }
    \RequirePackage[hyperpageref]{backref}
        \renewcommand*{\backref}[1]{}
        \renewcommand*{\backrefalt}[4]{
            \ifcase #1
                No cited.
            \or
                Cited on page #2.
            \else
                Cited on pages #2.
            \fi}

    \usepackage{amsmath}

    \usepackage{tikz}

    \usepackage{tikz-cd}

    \usepackage{marginfix}

    \usepackage{natbib}

    \usepackage[capitalize,nameinlink]{cleveref}

    \usepackage{wrapfig}
    \usepackage{mathabx}

    \usepackage{scrextend}

    \usepackage{mathdots}

    \usepackage{pdfpages}
    \usepackage{grffile}    
    \usepackage{stmaryrd}

    \usepackage{etoolbox}   

    \newmdtheoremenv{theo}{Theorem} % has to be after mdframed package

    \usepackage[parfill]{parskip}

    \usepackage{pdfpages}

    \usepackage{multicol}

    \usepackage{booktabs}
    \usepackage{tabularx}
    \usepackage{colortbl,array} % für farbige cells
    \usepackage{multirow,bigdelim}


    \usepackage[hang,small,bf]{caption}
    \setlength{\captionmargin}{25pt}
    \usepackage{subcaption} %clashes with subfigure :(

    \usepackage{scalefnt} %for controlling font scale in tikz ppg pictures.

    \usepackage[xindy,counter=section,sanitize={name=false}]{glossaries} %[toc]% %\glstoctrue
    \usepackage{nomencl}
        \makeglossaries %has to be after \usepackage{hyperref}              
        %
                \glossarystyle{long3col}            
                %\glossarystyle{super3col}

                \setlength{\glsdescwidth}{0.6\textwidth}
                \setlength{\glspagelistwidth}{0.15\textwidth}               
            \newglossaryentry{RM}
                {
                    name=Reidemeister move,
                    description={Refer}
                }
            \newglossaryentry{RieSurf}
                {
                    name=Riemann Surface,
                    description={}
                }


    \usepackage{footmisc}

    \usepackage[normalem]{ulem}

    \setcounter{tocdepth}{5}


    \usepackage[all,knot,poly,cmtip]{xy}
    \usepackage{empheq}


\newcommand{\blankbox}[2]{%
  \parbox{\columnwidth}{\centering

    \setlength{\fboxsep}{0pt}%
    \fbox{\raisebox{0pt}[#2]{\hspace{#1}}}%
  }%
}

\newtheorem{theorem}{Theorem}[chapter]
\newtheorem{lemma}[theorem]{Lemma}
%
\theoremstyle{definition}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{example}[theorem]{Example}

\newtheorem{xca}[theorem]{Exercise}
%
\theoremstyle{remark}
\newtheorem{remark}[theorem]{Remark}
%
\numberwithin{section}{chapter}
\numberwithin{equation}{chapter}

\numberwithin{figure}{subsubsection}

\newtheoremstyle{exx}
  {\topsep}{\topsep}{}{}{\bfseries}{:}{\newline}
  {\thmname{#1}\thmnumber{ #2}\thmnote{ (#3)}
  \ifstrempty{#3}
    {\addcontentsline{exx}{subsection}{#1~\theexx}}
    {\addcontentsline{exx}{subsection}{#1~\theexx~(#3)}}}
\theoremstyle{exx}
\newtheorem{exx}{Example}

    \makeatletter  
    \newcommand\examplename{Example}
    \newcommand\listexamplename{List of Examples}
    \newcommand\listofexamples{
        \section*{\listexamplename}\@starttoc{exx}}
    \makeatother

\usepackage{lipsum}

\makeindex

这是文件的开头,在序言之后

\begin{document}   
\frontmatter
\title{Literature Review f .......}

\maketitle

%    Change page number to 7 if a dedication is present.
\setcounter{page}{5}

    %\hypertarget{toc}{} not sure what this does...
\tableofcontents
    \newpage
    \listoffigures
    \newpage
    \listofdefinitions %see \newtheoremstyle{mystyle}
    \newpage
    \listofexamples
    \newpage
    \listofremarks


\part{Rjdlkfj lkdjsalf jlj fldksjaf lj fdlksja flkdj lkjd f lksdj fkdj skflajsfskjf oi falj aijf l ejf jself jselij flie sjlgfij gski}


\section{one one one one one one one one one one one one one one one one one one one one one one one one one one one }  a
\section{one} b

\subsection{oneA}1

\subsubsection{stuff to do}a

\begin{figure}
\centering
  \rule{2cm}{2cm}
  \caption{Really long explanation of a picture that doesn't exist but if it did it would still require a really long explanation and please let me worry about the aesthetics of such a beast and I promise to never ever do it again!}
\end{figure}

\subsubsection{stuff to do}n
\subsubsection{stuff to do}o

\begin{figure}
\centering
  \rule{2cm}{2cm}
  \blankbox{3cm}{3cm}
\end{figure}

\begin{mydef}[stuff what happens if this is really long? Does it just wrap around or does it affect the indentation of neighboring stuff?]
I define nothing!
\end{mydef}

\begin{mythm}[stuff what happens if this is really long? Does it just wrap around or does it affect the indentation of neighboring stuff?]
Nothing matters.
\end{mythm}

\begin{proof}[fjl fkls dlsfk jldk flkj fkdlj flj fsj fdkl fdjfsl fjl sf flks flk flkfj ls lf fsl lfs jflksj fslj fslj fslj fslkj f jfslkj fsljfs lkfsj lkfsj flsk fks jfsofs jl]
stuff
\end{proof}

\chapter{``Introduction''}

`state' is defined by tholynomial.
\begin{myrem}[Automatically Lagrfkdlsaj ksalfj afdkla lajd  falsd fldasf lasfj ld dorm]
nothing
\end{myrem}

 even up to leading order.
\begin{exx}[Q dsajf lji kl ldskkdl fkds alkf  fkl alsj fjls ja fdlksj  lkads fldjs fajkf jdsalkf dsja fldsja jd sadls fksla dlsamute]
a

\end{exx}
tes \index{Choice n}, that es'\index{Canoaes} 

\subsection{Cano fjasl sjal f lfajf a falsdjf aklf dlka fl aflkjda fdksjalf dla fdaf dla flkdsa fldsajf da flasmetry}

e \S 3.2 of \cite{RolfBerndt2001} 

\begin{myrem}[Choice of Pola]
Inde:
\begin{equation*}
\partial\,u
\end{equation*}
wes.
\end{myrem}
\index{here is something}

            \newgeometry{left=5mm,bottom=15mm,top=15mm,right=5mm}
            \glsaddall % if want to print all glossary entries
            \printglossaries
            \restoregeometry

\appendix
\backmatter
\bibliographystyle{alpha}%plain, abbrv, alpha, unsrt, acm, {plainnat}%{amsplain}
\bibliography{/Users/sbh/MainBibliography}%{../MathHomework}%MathHomework.bib
\printindex

\end{document}

答案1

amsbook.cls

\def\l@figure{\@tocline{0}{3pt plus2pt}{0pt}{1.5pc}{}}

并且1.5pc在您的情况下空间太小,因为您将图形计数器置于计数器之下subsubsection;您可以使用更高的第四个参数值来增加间距\@tocline,并在序言中添加类似以下几行的内容:

\makeatletter
\def\l@figure{\@tocline{0}{3pt plus2pt}{0pt}{5pc}{}}
\makeatother

tocloft包和 AMS 类不兼容(AMS 类有自己的机制来处理 ToC、LoF、LoT 条目)。

顺便说一句(与问题无关),您加载的顺序hyperref不是最标准的顺序。

相关内容