英文:
LaTeX ERROR: "Missing number, treated as zero" & "Illegal unit of measure (pt inserted)."
问题
我无法解决我的LaTeX项目中出现的这些问题。特别是,错误如下:
我尝试注释文档中的每个“可疑包”,但没有任何变化。这是我的导言部分:
\documentclass[11pt, twocolumn, a4paper]{article}
\usepackage[colorlinks, linkcolor=black]{hyperref}
\usepackage[italian]{babel}
\usepackage[utf8]{inputenc}
\usepackage[landscape, margin=1.5 cm]{geometry}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{calc}
\usepackage{fancyhdr}
\usepackage{capt-of}
\usepackage{booktabs}
\usepackage{fontenc}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pagenumbering{arabic}
\setlength{\columnsep}{1cm}
\pagestyle{fancy}
\fancyhead{}
\fancyhead[L]{\rightmark}
\fancyfoot{}
\fancyfoot[R]{\thepage\ }
\renewcommand{\headrulewidth}{}
\renewcommand{\footrulewidth}{}
\renewcommand{\thefigure}{\arabic{figure}}
\renewcommand{\thetable}{\arabic{table}}
\renewcommand{\familydefault}{\sfdefault}
\fontfamily{qag}\selectfont
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\begin{titlepage}
%我的个人模板标题
\end{titlepage}
\end{document}
问题出现在以下命令中:(i) \newpage,(ii) \subsubsection 和 (iii) \paragraph。
感谢您可能提供的任何答案。
英文:
I can't solve these problems with my latex project. In particular, the errors are:
Missing number, treated as zero.
Illegal unit of measure (pt inserted).
I tried to comment every 'suspect package' in my document but anything changed. This is my preamble:
\documentclass[11pt, twocolumn, a4paper]{article}
\usepackage[colorlinks, linkcolor=black]{hyperref}
\usepackage[italian]{babel}
\usepackage[utf8]{inputenc}
\usepackage[landscape, margin=1.5 cm]{geometry}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{calc}
\usepackage{fancyhdr}
\usepackage{capt-of}
\usepackage{booktabs}
\usepackage{fontenc}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pagenumbering{arabic}
\setlength{\columnsep}{1cm}
\pagestyle{fancy}
\fancyhead{}
\fancyhead[L]{\rightmark}
\fancyfoot{}
\fancyfoot[R]{\thepage\ }
\renewcommand{\headrulewidth}{}
\renewcommand{\footrulewidth}{}
\renewcommand{\thefigure}{\arabic{figure}}
\renewcommand{\thetable}{\arabic{table}}
\renewcommand{\familydefault}{\sfdefault}
\fontfamily{qag}\selectfont
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\begin{titlepage}
%my personal template title
\end{titlepage}
\end{document}
Problems appear with commands: (i) \newpage , (ii) \subsubsection and (iii) \paragraph.
Thank you for any possible answers.
答案1
得分: 0
你不能重新定义以下部分的内容为空:
\renewcommand{\headrulewidth}{}
\renewcommand{\footrulewidth}{}
如果你想移除页眉和页脚的水平线,可以将它们的宽度设置为零,如下所示:
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
这样就可以去掉页眉和页脚的水平线了。
英文:
You can't redefine
\renewcommand{\headrulewidth}{}
\renewcommand{\footrulewidth}{}
to be empty. If you want to remove the head- and footrule, set their widths to zero instead:
\documentclass[11pt, twocolumn, a4paper]{article}
\usepackage[colorlinks, linkcolor=black]{hyperref}
\usepackage[italian]{babel}
\usepackage[utf8]{inputenc}
\usepackage[landscape, margin=1.5 cm]{geometry}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{calc}
\usepackage{fancyhdr}
\usepackage{capt-of}
\usepackage{booktabs}
\usepackage{fontenc}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pagenumbering{arabic}
\setlength{\columnsep}{1cm}
\pagestyle{fancy}
\fancyhead{}
\fancyhead[L]{\rightmark}
\fancyfoot{}
\fancyfoot[R]{\thepage\ }
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\renewcommand{\thefigure}{\arabic{figure}}
\renewcommand{\thetable}{\arabic{table}}
\renewcommand{\familydefault}{\sfdefault}
\fontfamily{qag}\selectfont
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\begin{titlepage}
my personal template title
\end{titlepage}
\newpage
test
\end{document}
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论