\documentclass[14.49998pt, a4paper, oneside]{article}
\usepackage[english]{babel} % English language/hyphenation
\usepackage{lmodern}
\usepackage{textcomp}
\usepackage{xcolor}
\usepackage[utf8x]{inputenc}
\usepackage{xfrac}
%\usepackage[sc]{mathpazo}
\usepackage{sectsty} % Allows customizing section commands
\usepackage{tikz, pgfplots, pgfplotstable} %to plot figure
\usepackage{array, blkarray, tabularx, longtable, multirow,threeparttable, makecell, booktabs, caption}
\theadset{\renewcommand{\arraystretch}{0.6}}
\renewcommand\theadfont{\normalsize}
%\usepackage{multirow}
%\usepackage{tikz}
%\usepackage{booktabs} %to use \toprule and \bottomrule without error message
\usepackage{pgfplots, pgfplotstable} %to plot figure
\usepackage{threeparttable}
\usepackage{booktabs,tabularx,caption}
\newcolumntype{C}{>{\centering\arraybackslash}X} % centered version of "X" column type
\usepackage{booktabs,siunitx}
\sisetup{table-format=1.3} % default numerical column spec
\usepackage{multirow,tabularx}
\newcolumntype{Y}{>{\centering\arraybackslash}X}
\renewcommand\arraystretch{1.5}
\renewcommand{\tabcolsep}{5pt} % default is 6pt
\usepackage{pgfplots}
\pgfplotsset{compat=1.5}
\usepackage{subfigure} % to add subfigures
\usepackage{gensymb}
\usepackage{siunitx}
\usepackage{caption}
\newcommand*{\head}[1]{\textbf{#1}}% to make heads of table in BOLD, it is used with booktabs package and \head
\usepackage{url} \makeatletter \g@addto@macro{\UrlBreaks}{\UrlOrds} \makeatother
\usepackage{cleveref}
\usepackage{url} \makeatletter \g@addto@macro{\UrlBreaks}{\UrlOrds} \makeatother
\usepackage[justification=centering]{caption}
\PassOptionsToPackage{hyphens}{url}
%\usepackage{hyperref}
\usepackage{float}
%\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
%\usepackage[a4paper, portrait, margin=1in]{geometry}
\usepackage{adjustbox}
\usepackage{tabularx}
\usepackage{pgfplots, pgfplotstable}
\usepackage{booktabs,csvsimple}
\usepackage{pdflscape}
\usepackage{amsmath, amsfonts, amsthm} % needed for command eqref or Math packages
\usepackage{amssymb} % needed for math fonts
\usepackage[
colorlinks=true
,breaklinks
%, ngerman
] {hyperref} % needed for creating hyperlinks in the docuent, the option colorlink=true gets rid of the awful boxes, breaklinks breaks lonk links (list of figures), and the ngerman sets everthing for german s default hyperlink languages.
%\usepackage[hyphenbreaks]{breakurl}
\usepackage{cleveref}
\usepackage{xcolor}
\definecolor {c1}{rgb}{0,0, 1} % blue
\definecolor {c2}{rgb}{0.3,0.3, 0.9} % light blue
\definecolor {c3}{rgb}{0.3,0.3, 0.9} % red blue
\hypersetup{
linkcolor={c1}, % internal links
citecolor={c2}, % citations
urlcolor={c3} % external links/urls
}
%\usepackage[round, authoryear]{natbib} % needed for abbrvant bibliography style
%\usepackage[nottoc]{tocbibind} % needed for displaying bibliography and other in the table of contents
\usepackage{graphicx} % needed for\includegraphics
%\imp{graphicx}
\usepackage{longtable} % needed for long tables over pages
\usepackage{bigstrut} % needed for the command \bigstrut
\usepackage{enumerate} % needed for some options in enumerate
\usepackage{blkarray}
%\usepackage{todonotes} % needed for todos
\usepackage{makeidx} % needed for creating an index
%\usepackage{xcolor}
\usepackage{blindtext} % needed for creating dummy text passage
\usepackage{lipsum}
\usepackage{setspace}
\usepackage{fancyhdr}
\usepackage{float}
\usepackage[nottoc, notlot, notlof]{tocbibind}
\usepackage[nottoc]{tocbibind} % needed for displayng bibliography and other in the able of contents
%\usepackage{figures}
\usepackage{xspace}
\usepackage{makecell}
\usepackage{pgfplots}
\usepackage{pgfplotstable}
%\usepackage[T]{fontenc}
\usepackage{rotating,booktabs}
\usepackage{lscape}
\usepackage{array}
\usepackage{caption}
\captionsetup[figure]{font=footnotesize,
labelsep=period}
\captionsetup[table]{font={footnotesize,sc},
labelsep=newline,
justification=centering}
\makeatletter
\long\def\ifnodedefined#1#2#3{%
\@ifundefined{pgf@sh@ns@#1}{#3}{#2}%
}
\pgfplotsset{
discontinuous/.style={
scatter,
scatter/@pre marker code/.code={
\ifnodedefined{marker}{
\pgfpointdiff{\pgfpointanchor{marker}{center}}%
{\pgfpoint{0}{0}}%
\ifdim\pgf@y>0pt
\tikzset{options/.style={mark=*, fill=white}}
\draw [densely dashed,blue] (marker-|0,0) -- (0,0);
\draw plot [mark=*] coordinates {(marker-|0,0)};
\else
\tikzset{options/.style={mark=none}}
\fi
}{
\tikzset{options/.style={mark=none}}
}
\coordinate (marker) at (0,0);
\begin{scope}[options]
},
scatter/@post marker code/.code={\end{scope}}
}
}
\makeatother
%% page settings%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[top=2cm, bottom=1.8cm, left=2.5cm, right=2.5cm]{geometry} % needed for page border stteings
\parindent=0cm % for spece of first line of new text block
\sloppy % for writing with hypenless justification (tries to)
%\usepackage[round, authoryear]{natbib} % needed for cite and abbrvnat bibliograph style
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\parindent 0ex
\pagestyle{fancy}
\fancyhf{}
\fancyhead {}
\frenchspacing
\fancyfoot{}
\fancyhead[L]{\slshape \MakeUppercase {Multidimensional Poverty Index (MPI) in Ethiopia}}
\fancyfoot[C]{\thepage}
%\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\renewcommand{\baselinestretch}{1.5}%This affects the in spacing of my paragraphes
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\theadset{\renewcommand{\arraystretch}{0.6}}
\renewcommand\theadfont{\small}
\renewcommand\theadalign{bc}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\input{Section_1}
\input{Section_2}
\input{Section_3}
\input{Section_4}
\input{Section_5}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\includeonly{Chapter_1,Chapter_4} % compile just chapters 1 and 4, space characters not permitted
\begin{document}
\include{Chapter_1} % omit the '.tex' extension
\include{Chapter_2}
\include{Chapter_3}
\include{Chapter_4}
%both of these options did not help!
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\graphicspath{ {images/} }
\begin{titlepage}
\begin{center}
\vspace*{1cm}
\pagestyle{empty}
\pagestyle{plain}
\Large{\textbf{Household Well-being in Ethiopia: Multidimensional Poverty, Time Use to Work and Labor Productivity, and Nutrition Insecurity}}\\
\Large{\textbf{Multidimensional Poverty Index (MPI) in Ethiopia}}\\
\vfill
\line(1,0){400}\\ [1mm]%automatically putting vetical space btween the two elments to fill the page
\huge{\textbf{This is a sample title}}\\[3mm]
%\lipsum[1]
%{\setstretch{1.0}\color{blue}
%\lipsum[2]
%}
%\lipsum[3]
%\Large{\textbf{-This is a sample subtitle-}}\\[1mm]
\line(1,0){400}\\
\vfill %Now it is centered at the page
By WELDESLASSIE HAILAI\\
Candidate\#:{214585063}\\
Supervisor Dr. Claire Vermaak\\
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\date {\today}
%\maketitle
\end{center}
\end{titlepage}
\tableofcontents
\thispagestyle{empty} %This helps you to remove the page # in the table of contents part
\clearpage
%\chapter{Background and Justification}
\pagestyle{fancy}
%\fancyhf{}
%\fancyhead[OC]{\leftmark}
%\fancyhead[EC]{\rightmark}
%\renewcommand{\footrulewidth}{1pt} % needed to add a line at the bottom
\cfoot{\thepage}
\setcounter{page}{1} %Now the f
\section{Background and Justifications}
...............
也就是说 \include{Chapter} 、 \input{---}、 \subfile{filename}、 \documentclass{standalone} 没有帮助,或者我未能正确使用这些选项...请尽快帮忙!谢谢!
答案1
\documentclass[14.49998pt, a4paper, oneside]{article}
没有14.49998pt
选项,这必须给出警告
\usepackage[english]{babel} % English language/hyphenation
\usepackage{lmodern}
\usepackage{textcomp}
\usepackage{xcolor}
\usepackage[utf8x]{inputenc}
utf8
除非您确实需要某些功能,否则我会使用标准选项utf8x
。
\usepackage{xfrac}
%\usepackage[sc]{mathpazo}
\usepackage{sectsty} % Allows customizing section commands
\usepackage{tikz, pgfplots, pgfplotstable} %to plot figure
\usepackage{array, blkarray, tabularx, longtable,
multirow,threeparttable, makecell, booktabs, caption}
\theadset{\renewcommand{\arraystretch}{0.6}}
\renewcommand\theadfont{\normalsize}
%\usepackage{multirow}
%\usepackage{tikz}
%\usepackage{booktabs} %to use \toprule and \bottomrule without error message
上面这行什么都不做,包已加载到上面
\usepackage{pgfplots, pgfplotstable} %to plot figure
上面这行什么都不做,软件包已经加载完毕
\usepackage{threeparttable}
上面这行什么都不做,包已加载到上面
\usepackage{booktabs,tabularx,caption}
上面这一行只是加载了 caption,其他包都加载在上面
\newcolumntype{C}{>{\centering\arraybackslash}X} % centered version of "X" column type
\usepackage{booktabs,siunitx}
上面这一行只是加载了siunitx,其他包都加载在上面
\sisetup{table-format=1.3} % default numerical column spec
\usepackage{multirow,tabularx}
上面这行代码什么都没做,因为上面已经加载了包
\newcolumntype{Y}{>{\centering\arraybackslash}X}
好的,但是你定义的 Y 和 C 一样
\renewcommand\arraystretch{1.5}
\renewcommand{\tabcolsep}{5pt} % default is 6pt
\usepackage{pgfplots}
上面这行什么都没做,包已加载
\pgfplotsset{compat=1.5}
\usepackage{subfigure} % to add subfigures
\usepackage{gensymb}
\usepackage{siunitx}
上面这行什么都没做,包已加载
\usepackage{caption}
上面这行什么都没做,包已加载
\newcommand*{\head}[1]{\textbf{#1}}% to make heads of table in BOLD, it is used with booktabs package and \head
\usepackage{url} \makeatletter \g@addto@macro{\UrlBreaks}{\UrlOrds}\makeatother
\usepackage{cleveref}
\usepackage{url} \makeatletter \g@addto@macro{\UrlBreaks}{\UrlOrds}
\makeatother
\usepackage 行不执行任何操作,包已加载到上面,然后您第二次将 UrlOrds 添加到 UrlBreaks,这不会出错,但会减慢所有 url 处理速度
\usepackage[justification=centering]{caption}
这将产生错误,因为你已经在没有此选项的情况下加载了字幕
\PassOptionsToPackage{hyphens}{url}
这不会产生任何效果,因为您无法在加载包后将选项传递给包
%\usepackage{hyperref}
\usepackage{float}
%\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
%\usepackage[a4paper, portrait, margin=1in]{geometry}
\usepackage{adjustbox}
\usepackage{tabularx}
上面这行什么都没做,包已加载
\usepackage{pgfplots, pgfplotstable}
上面这行什么都不做,上面加载的包
\usepackage{booktabs,csvsimple}
上面只是加载了cvssimple,上面加载了booktabs包
\usepackage{pdflscape}
\usepackage{amsmath, amsfonts, amsthm} % needed for command eqref or Math packages
\usepackage{amssymb} % needed for math fonts
\usepackage[
colorlinks=true
,breaklinks
%, ngerman
] {hyperref} % needed for creating hyperlinks in the docuent, the option colorlink=true gets rid of the awful boxes, breaklinks breaks lonk links (list of figures), and the ngerman sets everthing for german s default hyperlink languages.
%\usepackage[hyphenbreaks]{breakurl}
\usepackage{cleveref}
上面这行什么都没做,包已加载
\usepackage{xcolor}
上面这行什么都没做,包已加载
\definecolor {c1}{rgb}{0,0, 1} % blue
\definecolor {c2}{rgb}{0.3,0.3, 0.9} % light blue
\definecolor {c3}{rgb}{0.3,0.3, 0.9} % red blue
\hypersetup{
linkcolor={c1}, % internal links
citecolor={c2}, % citations
urlcolor={c3} % external links/urls
}
%\usepackage[round, authoryear]{natbib} % needed for abbrvant bibliography style
%\usepackage[nottoc]{tocbibind} % needed for displaying bibliography and other in the table of contents
\usepackage{graphicx} % needed for\includegraphics
%\imp{graphicx}
\usepackage{longtable} % needed for long tables over pages
上面这行什么都没做,包已加载
\usepackage{bigstrut} % needed for the command \bigstrut
\usepackage{enumerate} % needed for some options in enumerate
\usepackage{blkarray}
%\usepackage{todonotes} % needed for todos
\usepackage{makeidx} % needed for creating an index
%\usepackage{xcolor}
\usepackage{blindtext} % needed for creating dummy text passage
你不应该在真正的文档中出现这个
\usepackage{lipsum}
或这个
\usepackage{setspace}
\usepackage{fancyhdr}
\usepackage{float}
\usepackage[nottoc, notlot, notlof]{tocbibind}
\usepackage[nottoc]{tocbibind} % needed for displayng bibliography and other in the able of contents
上面这行什么都没做,包已加载
%\usepackage{figures}
\usepackage{xspace}
\usepackage{makecell}
\usepackage{pgfplots}
上面这行什么都没做,包已加载
\usepackage{pgfplotstable}
上面这行什么都没做,包已加载
%\usepackage[T1]{fontenc}
虽然这个包被注释掉了,但是你应该使用它
\usepackage{rotating,booktabs}
上面只是加载了旋转的、上面加载的 booktabs 包
\usepackage{lscape}
这已被 pdflascape 收录
\usepackage{array}
上面这行什么都没做,包已加载
\usepackage{caption}
上面这行什么都没做,包已加载
\captionsetup[figure]{font=footnotesize,
labelsep=period}
\captionsetup[table]{font={footnotesize,sc},
labelsep=newline,
justification=centering}
\makeatletter
\long\def\ifnodedefined#1#2#3{%
\@ifundefined{pgf@sh@ns@#1}{#3}{#2}%
}
\pgfplotsset{
discontinuous/.style={
scatter,
scatter/@pre marker code/.code={
\ifnodedefined{marker}{
\pgfpointdiff{\pgfpointanchor{marker}{center}}%
{\pgfpoint{0}{0}}%
\ifdim\pgf@y>0pt
\tikzset{options/.style={mark=*, fill=white}}
\draw [densely dashed,blue] (marker-|0,0) -- (0,0);
\draw plot [mark=*] coordinates {(marker-|0,0)};
\else
\tikzset{options/.style={mark=none}}
\fi
}{
\tikzset{options/.style={mark=none}}
}
\coordinate (marker) at (0,0);
\begin{scope}[options]
},
scatter/@post marker code/.code={\end{scope}}
}
}
\makeatother
%% page settings%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[top=2cm, bottom=1.8cm, left=2.5cm, right=2.5cm]{geometry} % needed for page border stteings
\parindent=0cm % for spece of first line of new text block
\sloppy % for writing with hypenless justification (tries to)
%\usepackage[round, authoryear]{natbib} % needed for cite and abbrvnat bibliograph style
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\parindent 0ex
\pagestyle{fancy}
\fancyhf{}
\fancyhead {}
\frenchspacing
\fancyfoot{}
\fancyhead[L]{\slshape \MakeUppercase {Multidimensional Poverty Index (MPI) in Ethiopia}}
\fancyfoot[C]{\thepage}
%\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\renewcommand{\baselinestretch}{1.5}%This affects the in spacing of my paragraphes
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\theadset{\renewcommand{\arraystretch}{0.6}}
\renewcommand\theadfont{\small}
\renewcommand\theadalign{bc}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
闲聊结束...
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\input{Section_1}
\input{Section_2}
\input{Section_3}
\input{Section_4}
\input{Section_5}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\includeonly{Chapter_1,Chapter_4} % compile just chapters 1 and 4, space characters not permitted
\includeonly 应该放在文档序言中,而不是这里
\begin{document}
上面这行会报错,你不能有两个\begin{document}
\include{Chapter_1} % omit the '.tex' extension
\include{Chapter_2}
\include{Chapter_3}
\include{Chapter_4}
%both of these options did not help!
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\graphicspath{ {images/} }
\begin{titlepage}
\begin{center}
\vspace*{1cm}
\pagestyle{empty}
\pagestyle{plain}
\Large{\textbf{Household Well-being in Ethiopia: Multidimensional Poverty,
size 命令不接受参数,语法{\large abc}
不是\large{abc}
工作时间利用和劳动生产率以及营养不安全}}\ \埃塞俄比亚的大{\textbf{多维贫困指数 (MPI)}}\
{\Large
不是\Large{
\vfill
\line(1,0){400}\\ [1mm]%automatically putting vetical space btween the two elments to fill the page
\huge{\textbf{This is a sample title}}\\[3mm]
{\huge
不是huge{
%\lipsum[1]
%{\setstretch{1.0}\color{blue}
%\lipsum[2]
%}
%\lipsum[3]
%\Large{\textbf{-This is a sample subtitle-}}\\[1mm]
\line(1,0){400}\\
\vfill %Now it is centered at the page
By WELDESLASSIE HAILAI\\
Candidate\#:{214585063}\\
Supervisor Dr. Claire Vermaak\\
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\date {\today}
%\maketitle
\end{center}
\end{titlepage}
\tableofcontents
\thispagestyle{empty} %This helps you to remove the page # in the table of contents part
\clearpage
%\chapter{Background and Justification}
\pagestyle{fancy}
%\fancyhf{}
%\fancyhead[OC]{\leftmark}
%\fancyhead[EC]{\rightmark}
%\renewcommand{\footrulewidth}{1pt} % needed to add a line at the bottom
\cfoot{\thepage}
\setcounter{page}{1} %Now the f
\section{Background and Justifications}
...............
要制作由其他三个文档组成的文档,只需将内容排列好,使每个小文档看起来像
\documentclass{article}
\usepackage{..}
\begin{document}
\input{document_1_body}
\end{document}
其中document_1_body.tex
,, document_2_body.tex
是 document_3_body.tex
没有序言的文档文本,那么合并后的文档就是
\documentclass{book}
\usepackage{....}
\begin{document}
\chapter{doc one}
\input{document_1_body}
\chapter{doc two}
\input{document_2_body}
\chapter{doc three}
\input{document_3_body}
\end{document}