如何将部分的数字格式从数字 0.1 更改为数字 1,如下图所示。
\documentclass[10pt,a6paper]{book}
\usepackage[utf8]{inputenc}
\usepackage[main=slovak,english]{babel}
\usepackage[cm]{fullpage}
\usepackage[a6paper, top=15mm, left=10mm, right=10mm, bottom=10mm,foot=5mm,marginparsep=0mm]{geometry}
%showframe
\usepackage{tipa}
\usepackage{tabularx,booktabs} %\toprule
\usepackage{listings}
\usepackage{multirow}
\usepackage{longtable}
%\usepackage{lscape}
\usepackage{wasysym} % symbols
\usepackage{amssymb} % symbols
%\usepackage{pdflscape}
%\usepackage{lscape}
\usepackage{hyperref}
\usepackage{marvosym}
\usepackage{framed}
\usepackage{wasysym}
\usepackage{pdflscape}
\usepackage{graphicx}
%\usepackage{amsmath}
\usepackage{color}
\usepackage{tabularx,booktabs}
\usepackage{rotating}
\usepackage{graphicx}
\usepackage{adjustbox}
\usepackage{array,multirow,graphicx}
\newcommand*{\knihaB}{\fontfamily{bch}\selectfont}
\newcommand*{\knihaA}{\fontfamily{phv}\selectfont}
\newcommand*{\knihaC}{\fontfamily{ccr}\selectfont}
\newcommand*{\knihaM}{\fontfamily{cmr}\selectfont}
\newcommand*{\knihaEa}{\fontfamily{qag}\selectfont}
\newcommand*{\knihaEb}{\fontfamily{phv}\selectfont}
\newcommand*{\knihacc}{\fontfamily{pag}\selectfont}
\newcommand*{\knihaaa}{\fontfamily{ccr}\selectfont}
\newcommand*{\knihabb}{\fontfamily{ccr}\selectfont}
\begin{document}
\catcode`\-=12
\sloppy
\section{{\knihaEa text }}
text text text text text text
\end{document}
感谢帮助。
答案1
(我发布这个答案主要是为了使该查询被视为已得到官方答复。)
要更改节号的外观,请修改宏
\thesection
。考虑到您的既定目标,您应该运行\renewcommand{\thesection}{\arabic{section}}
请花些时间简化和精简文档的序言。目前,一些包被加载了不止一次,而其他包则不需要明确加载。例如,包会自动
rotating
加载graphicx
包 - 无需graphicx
单独加载。在下面的代码中,我还尝试为包的加载方式提供一些结构和顺序。除极少数例外,
hyperref
应加载该包最后的在序言中。请参阅帖子哪些包应该在 hyperref 之后加载而不是之前加载?对于其中一些例外情况。
\documentclass[10pt,a6paper]{book}
%% basic setup and layout
\usepackage[utf8]{inputenc}
\usepackage[main=slovak,english]{babel}
\usepackage[cm]{fullpage}
\usepackage[top=15mm, bottom=10mm, hmargin=10mm,
foot=5mm, marginparsep=0mm]{geometry}
%% various symbols
\usepackage{tipa}
\usepackage{wasysym}
\usepackage{amssymb}
\usepackage{marvosym}
%% advanced tabular layouts
\usepackage{tabularx}
\usepackage{longtable}
\usepackage{booktabs}
%% other packages
\usepackage{listings}
\usepackage{multirow}
\usepackage{framed}
\usepackage{color}
\usepackage{rotating}
\usepackage{adjustbox}
%% various font-related macros
\newcommand*{\knihaB}{\fontfamily{bch}\selectfont}
\newcommand*{\knihaA}{\fontfamily{phv}\selectfont}
\newcommand*{\knihaC}{\fontfamily{ccr}\selectfont}
\newcommand*{\knihaM}{\fontfamily{cmr}\selectfont}
\newcommand*{\knihaEa}{\fontfamily{qag}\selectfont}
\newcommand*{\knihaEb}{\fontfamily{phv}\selectfont}
\newcommand*{\knihacc}{\fontfamily{pag}\selectfont}
\newcommand*{\knihaaa}{\fontfamily{ccr}\selectfont}
\newcommand*{\knihabb}{\fontfamily{ccr}\selectfont}
%% hyperlinking -- load this package *last*
\usepackage{hyperref}
%% change the "look" of printed section-level numbers
\renewcommand{\thesection}{\arabic{section}}
\begin{document}
\catcode`\-=12
\sloppy
\section{\knihaEa text }
text text text text text text
\end{document}