titlesec 包在遇到部分时会给出错误

titlesec 包在遇到部分时会给出错误

在下面的代码/文本中,titlesec 包出现错误。如果您能提供任何关于如何修复该问题的意见,我将不胜感激。

非常感谢你的帮助。

错误信息是:

!包 titlesec 错误:此命令无格式。

请参阅 titlesec 包文档以了解解释。输入 H 可立即获得帮助。...

l.270 \section{测试}

如果你(重新)设置了分段命令的类别,你可能需要用 \titleformat 来(重新)定义它的格式

! 缺失数字,视为零。} l.270 \section{test}

这里应该有一个数字;我0'. (If you can't figure out why I needed to see a number, look up在 TeXbook 索引中插入了“奇怪的错误”。)

! 非法计量单位(插入 pt)。} l.270 \section{test}

尺寸的单位可以是 em、ex、in、pt、pc、cm、mm、dd、cc、nd、nc、bp 或 sp;但您的单位是新的!我假设您指的是 pt,即打印点。要从此错误中顺利恢复,最好删除错误的单位;例如,键入“2”以删除两个字母。(请参阅 TeXbook 的第 27 章。)

! 缺失数字,视为零。} l.270 \section{test}

这里应该有一个数字;我0'. (If you can't figure out why I needed to see a number, look up在 TeXbook 索引中插入了“奇怪的错误”。)

! 非法计量单位(插入 pt)。} l.270 \section{test}

尺寸的单位可以是 em、ex、in、pt、pc、cm、mm、dd、cc、nd、nc、bp 或 sp;但您的单位是新的!我假设您指的是 pt,即打印点。要从此错误中顺利恢复,最好删除错误的单位;例如,键入“2”以删除两个字母。(请参阅 TeXbook 的第 27 章。)

\documentclass[a4paper,11pt,twoside,
headsepline,     unknownkeysallowed % Linie fuer Kopfzeile
]{scrbook}
\KOMAoptions{headings=optiontohead}
\usepackage{fancyhdr}
\pagestyle{fancy}
% Druckbereich: \areaset[BCOR]{textwidth}{textheight}
% BCOR ist "Binding Correction", also wieviel Innenrand verloren geht
% A4 hat 297mm x 210mm
% wenn keine Marginalien, dann ist Breite 15cm vielleicht besser
\areaset[1.5cm]{15cm}{25cm}
    
%% Die folgende Zeile sorgt dafuer, dass die Fussnoten eingerueckt werden,
%% und zwar um 2em (class scrbook).
    
\deffootnotemark{\textsuperscript{[\thefootnotemark]}}
\deffootnote{1.5em}{1em}{\textsuperscript{[\thefootnotemark]}}
    
\renewcommand{\thefootnote}{\roman{footnote}}
    
\usepackage{float}
    
\usepackage{verbatim}
    

\usepackage{makecell}

\usepackage{boldline, multirow}

\usepackage{caption}   
\usepackage{keyval}    

\usepackage[english]{babel}    % english titles (Figure,Table,...)
% Ansonsten 'german' einsetzen


\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}


%\usepackage{thumbpdf}          % include page preview thumbnails FIXME

%% Unterstuetzung fuer Graphiken und Farben
\usepackage[pdftex]{graphicx}
\usepackage[pdftex,table]{xcolor}
%\definecolor{DSblue}{rgb}{0,0,0.9}   % example defining a color

% cross referencing and hyperrefs
\usepackage[                % FIXME explain
pdftex,                  % Ausgabe-Medium: PDF
colorlinks=true,         % farbige Links in der Bildschirm-Version?
pdfstartview=FitV,       % wie soll Acrobat starten?
linkcolor=black,         % Farbe fuer Querverweise
citecolor=black,         % Farbe fuer Zitierungen
urlcolor=black,          % Farbe fuer Links
bookmarks=true
]{hyperref}

%% Bibliography wird im Inhaltsverzeichnis angezeigt, aber ohne Nummer;
%% notlot zusaetzlich waere no list of tables; notlof zusaetzlich waere no list of
%% figures



%% leere Seiten des Inhaltsverzeichnis usw. bekommen keine Kopf und Fusszeile
\usepackage{titlesec}

\usepackage{multido}    % FIXME ???????????
\usepackage{everysel}   % FIXME ???????????

%% besserer Flattersatz: \RaggedRight
\usepackage{ragged2e}




\hypersetup{
pdfauthor = {Bernhard Boehmler},
pdftitle = {Trivial source character tables of small finite groups},
pdfsubject = {representation theory of finite groups},
pdfkeywords = {representation theory},
pdfcreator = {LaTeX with hyperref package},
pdfproducer = {pdflatex}
}

\usepackage{rotating}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{mathrsfs}
\usepackage{eufrak}
\usepackage{amsthm}
\usepackage{amsfonts}
\usepackage{textcomp}
\usepackage{array,blkarray}
\usepackage{arydshln}
\usepackage{multirow,bigdelim}
\usepackage{enumitem}
\usepackage[normalem]{ulem}
\usepackage[arrow, matrix, curve]{xy}
\usepackage{bbm}
\usepackage{arcs}

\usepackage{typearea}





\usepackage[autostyle]{csquotes}
\usepackage{adjustbox}
\usepackage{newunicodechar}
\DeclareUnicodeCharacter{012D}{\u{\i}}

\usepackage{sagetex}

% \bibliography{Biblio} 



\usepackage{tikz}
\usetikzlibrary{patterns}
\usetikzlibrary{arrows}
\usetikzlibrary{decorations.pathmorphing}
\usetikzlibrary{decorations.pathreplacing}


\def\mystrut{\scalebox{1.4}{\strut}}


\renewcommand{\ttdefault}{pzc}

\makeatletter
\renewcommand*\env@matrix[1][\
arraystretch]{%
\edef\arraystretch{#1}%
\hskip -\arraycolsep
\let\@ifnextchar\new@ifnextchar
\array{*\c@MaxMatrixCols c}}
\makeatother





\newtheoremstyle{dotless}{}{}{}{}{\bfseries}{}{\newline}{}
\theoremstyle{dotless}

\setcounter{section}{1}

%\swapnumbers
\newtheorem{Theorem}{Theorem}[section]
%\newtheorem{example}{Example}
\numberwithin{Theorem}{section}
\newtheorem{Example}[Theorem]{Example}
\newtheorem{Proposition}[Theorem]{Proposition}
\newtheorem{Definition}[Theorem]{Definition}
\newtheorem{Lemma}[Theorem]{Lemma}
\newtheorem{Korollar}[Theorem]{Korollar}
%\newtheorem{Theorem}[example]{Theorem}
\newtheorem{examples}[Theorem]{Examples}
\newtheorem{Satz}[Theorem]{Satz}
\newtheorem{Anwendung}[Theorem]{Anwendung}
\newtheorem*{Beweis*}{Beweis}
\newtheorem*{Beweis der Bemerkung*}{Beweis der Bemerkung:}
\newtheorem{Bemerkung}[Theorem]{Bemerkung}
\newtheorem*{Definition (Direkte Summe)*}{Definition (Direkte Summe)}
\newtheorem*{Bemerkung*}{Bemerkung}
\newtheorem*{Bemerkungen*}{Bemerkungen}
\newtheorem*{Beispiel*}{Beispiel}
\newtheorem*{Beispiele*}{Beispiele}
\newtheorem*{Korollar*}{Korollar}
\newtheorem{Korollar123}[Theorem]{Korollar}
\newtheorem{Korollar12345}[Theorem]{Korollar}



\newtheorem{Green}[Theorem]{Theorem (Green correspondence)}
\newtheorem{definition}[Theorem]{Definition}
\newtheorem{lemma}[Theorem]{Lemma}
\newtheorem{lemmaFischbacher}[Theorem]{Fischbacher's reduction lemma}
\newtheorem{corollary}[Theorem]{Corollary}
\newtheorem{theorem}[Theorem]{Theorem}
\newtheorem{proposition}[Theorem]{Proposition}
\newtheorem*{proof of the remark*}{Proof of the remark:}
\newtheorem{remark}[Theorem]{Remark}
\newtheorem*{remark*}{Remark}
\newtheorem*{remarks*}{Remarks}
\newtheorem*{example*}{Example}
\newtheorem*{examples*}{Examples}
\newtheorem*{corollary*}{Corollary}
\newtheorem{corollary123}[Theorem]{Corollary}
\newtheorem{corollary12345}[Theorem]{Corollary}
\newtheorem*{theorem*}{Theorem}


\makeatletter
\renewenvironment{proof}[1][\proofname]{\par
\pushQED{\qed}%
\normalfont \topsep6\p@\@plus6\p@\relax
\trivlist
\item[\hskip\labelsep
\itshape
#1\@addpunct{.}]\mbox{}\par\noindent\ignorespaces
}{%
\popQED\endtrivlist\@endpefalse
}
\makeatother



\newcommand{\properideal}{%
\mathrel{\ooalign{$\lneq$\cr\raise.22ex\hbox{$\lhd$}\cr}}}



\DeclareFontFamily{U}{mathx}{\hyphenchar\font45}
\DeclareFontShape{U}{mathx}{m}{n}{<-> mathx10}{}
\DeclareSymbolFont{mathx}{U}{mathx}{m}{n}
\DeclareMathAccent{\widebar}{0}{mathx}{"73}


\DeclareSymbolFont{extraup}{U}{zavm}{m}{n}
\DeclareMathSymbol{\varheart}{\mathalpha}{extraup}{86}
\DeclareMathSymbol{\vardiamond}{\mathalpha}{extraup}{87}



\usepackage{hyperref}

\begin{document}

\chapter{TESTCHAPTER}

\section{test}

asd

\end{document}

相关内容