![如何修正目录标题?](https://linux22.com/image/358565/%E5%A6%82%E4%BD%95%E4%BF%AE%E6%AD%A3%E7%9B%AE%E5%BD%95%E6%A0%87%E9%A2%98%EF%BC%9F.png)
这是我的代码:
% This file was converted to LaTeX by Writer2LaTeX ver. 1.4
% see http://writer2latex.sourceforge.net for more info
\documentclass[10pt,twoside,a4paper,fleqn]{article}
\usepackage[utf8]{inputenc}
\usepackage[T3,T1]{fontenc}
\usepackage[english]{babel}
\usepackage[noenc]{tipa}
\usepackage{tipx}
\usepackage[geometry,weather,misc,clock]{ifsym}
\usepackage{pifont}
\usepackage{eurosym}
\usepackage{amsmath}
\usepackage{wasysym}
\usepackage{amssymb,amsfonts,textcomp}
\usepackage{color}
\usepackage{array}
\usepackage{supertabular}
\usepackage{hhline}
\usepackage{hyperref}
\hypersetup{pdftex, colorlinks=true, linkcolor=blue, citecolor=blue, filecolor=blue, urlcolor=blue, pdftitle=, pdfauthor=, pdfsubject=, pdfkeywords=}
% Headings and outline numbering
\makeatletter
\renewcommand\section{\@startsection{section}{1}{0.0cm}{0.1665in}{0.0835in}{\normalfont\normalsize\normalcolor\fontsize{18.2pt}{21.84pt}\selectfont\sffamily\bfseries}}
\renewcommand\@seccntformat[1]{\csname @textstyle#1\endcsname{\csname the#1\endcsname}\csname @distance#1\endcsname}
\setcounter{secnumdepth}{0}
\newcommand\@distancesection{}
\newcommand\@textstylesection[1]{#1}
\makeatother
\makeatletter
\newcommand\arraybslash{\let\\\@arraycr}
\makeatother
\raggedbottom
% Paragraph styles
\renewcommand\familydefault{\rmdefault}
% List styles
\newcommand\writerlistleftskip{}
\newcommand\writerlistparindent{}
\newcommand\writerlistlabel{}
\newcommand\writerlistremovelabel{\aftergroup\let\aftergroup\writerlistparindent\aftergroup\relax\aftergroup\let\aftergroup\writerlistlabel\aftergroup\relax}
\setlength\tabcolsep{1mm}
\renewcommand\arraystretch{1.3}
\usepackage{palatino}
\usepackage[bluelace,screen,nopanel,sectionbreak]{pdfscreen}
%\hypersetup{pdfpagemode={FullScreen}}
\margins{0.5in}{0.5in}{0.5in}{0.5in}
\screensize{6in}{8in}
\sloppy
\title{Data Cleaning Method}
\author{Amin Karimi}
\date{2017-07-16}
\begin{document}
\tableofcontents
\section{Investigating methods of cleaning dataset in high frequency data literature}
输出如下:
为什么目录标题是.0cmcontents?
答案1
问题出在 的低级重定义上\section
。重新定义 的节格式titlesec
解决了这个问题。
我擅自用 替换color
了xcolor
,并palatino
用 替换了\newpxtext, newpxmath
,这样 palatino-clone 既可用于文本也可用于数学运算。最后一点,我评论了 4 \newcommand{\writerlistxxx}{}
,它似乎是由 编写的writer2latex
:它们什么都不做,我不知道它们在这里的用途。
\documentclass[10pt,twoside,a4paper,fleqn]{article}
\usepackage[utf8]{inputenc}
\usepackage[T3,T1]{fontenc}
\usepackage[english]{babel}
\usepackage[noenc]{tipa}
\usepackage{tipx}
\usepackage[geometry,weather,misc,clock]{ifsym}
\usepackage{pifont}
\usepackage{wasysym}
\usepackage{amsmath}
\usepackage{xcolor}
\usepackage{array, supertabular, hhline}
\usepackage{titlesec}
\usepackage{hyperref}
\hypersetup{pdftex, colorlinks=true, linkcolor=blue, citecolor=blue, filecolor=blue, urlcolor=blue, pdftitle=, pdfauthor=, pdfsubject=, pdfkeywords=}
% Headings and outline numbering
\titleformat*{\section}{\color{section0}\normalfont\fontsize{18.2pt}{21.84pt}\selectfont\sffamily\bfseries}
\setcounter{secnumdepth}{0}
\raggedbottom
% Paragraph styles
\renewcommand\familydefault{\rmdefault}
% List styles
%%% The following four commands seem to be defined by writer2latex. I don’t understand what they should do in a normal . tex file.
%%% Uncomment if necessary
%\newcommand\writerlistleftskip{}
%\newcommand\writerlistparindent{}
%\newcommand\writerlistlabel{}
%\newcommand\writerlistremovelabel{\aftergroup\let\aftergroup\writerlistparindent\aftergroup\relax\aftergroup\let\aftergroup\writerlistlabel\aftergroup\relax}
\setlength\tabcolsep{1mm}
\renewcommand\arraystretch{1.3}
\usepackage{newpxtext, newpxmath}%%% replaces palatino. Uses a -palatino clone (TeX Gyre Pagella) for text and maths. Has a euro symbol
\usepackage[bluelace,screen,nopanel,sectionbreak]{pdfscreen}%
%\hypersetup{pdfpagemode={FullScreen}}
\margins{0.5in}{0.5in}{0.5in}{0.5in}
\screensize{6in}{8in}
\sloppy
\title{Data Cleaning Method}
\author{Amin Karimi}
\date{2017-07-16}
\begin{document}
\tableofcontents
\section{Investigating methods of cleaning dataset in high frequency data literature}
Here is the output:
\end{document}