创建模块化文档

创建模块化文档

我已经创建了 25 个不同的文件,希望将它们包含在一个长文档中。我的第一次尝试如下所示:

\documentclass[10pt, twoside,letterpaper]{report}
\usepackage{amsmath,amssymb,amsfonts} % Typical maths resource packages
\usepackage{graphics}                 % Packages to allow inclusion of graphics
\usepackage{color}                    % For creating coloured text and background
\usepackage{hyperref}               % For creating hyperlinks in cross references
\usepackage{xfrac}                     % For creating inline fractions        
\usepackage{caption}
\usepackage{subcaption}
\usepackage[explicit]{titlesec}
\usepackage{lipsum}
\usepackage{helvet}
\usepackage{wrapfig}
\usepackage{titlesec} 
\usepackage{fancyhdr}
\usepackage[utf8]{inputenc}
\usepackage{mathptmx}
\usepackage{lmodern}

%\setlength{\headheight}{12pt}

\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}

\numberwithin{equation}{chapter}
\graphicspath{my_images}
\makeindex

\begin{document}

\input{./title.tex}

\input{Chapter1.2}

\end{document}

文件Chapter1.2为:

\chapter{Contravariant and Covariant Tensors - Part 1}
Let's begin with two curvilinear coordinates systems as shown in Figure 1.1 
\begin{figure}[ht]
\begin{center}
\includegraphics[width=0.65\textwidth]{Curv_Coord}
\caption{Curvilinear Coordinate systems}
\end{center}
\label{myfig1.1}
\end{figure}
and assume that we know how to transform from one system to the other so that if we know the components of a contravariant tensor in the x-coordinate system, we know its components in the y-coordiante system by an equation such as:

我遇到的困难是,我想让章节标题的字体大小变小 - 逆变和协变张量 - 第 1 部分 - 此外,我应该在哪里写入允许这种字体更改的命令,在 main.tex 中还是在章节 1.2.tx 中

不幸的是,经过几个小时的反复尝试后,我不得不承认失败。

有人能帮忙解决这个问题吗?非常感谢

答案1

我建议在主文件中更改字体:

\commandtochangechapterfont %for example from `titlesec`
\input{Chapter1.2}
\commandtochangechapterfontback %depends on the first command

如果您更改处理章节排版的方式,则可能会在主文件中执行此操作。如果发生这种情况,在主文件中找到此代码比在章节文件中更容易。

“上周我更改了哪一章的字体大小?”

相关内容