我是一名化学工程专业的毕业生,我正在帮助我的导师排版他的书。他给了我 MS Word 中的文本和方程式,我必须将其转换为LaTeX.
我用Adobe InDesign排版,但是我对它的数学公式排版不是很满意,所以一个月前开始学习LaTex。
我在章节标题和页眉页脚方面遇到了一些格式问题。我尝试使用quotchap
、fncychap
和fancyhdr
包,但结果仍然不满意。因此,我需要知道如何手动格式化我的章节和页眉页脚。
我尝试尽可能详细地解释我的问题以便读者理解。
我的要求是,
我需要将章节号右对齐,显示为“CHAPTER-ONE”而不是“Chapter 1”,并将章节标题居中对齐,并需要 2 条水平线,第一条 0.35 毫米,第二条 0.2 毫米横跨页面。如下所示,我得到的格式如下所示。
我需要将标题设置为如下所示的特定格式。 此外,我需要一条横跨文本宽度 0.25 毫米的线。但是,当我使用
fancyhdr
包时,我得到了这个我根本不想要页脚,因为我需要空间来留脚注。
我正在使用该
geometry
软件包自定义纸张尺寸和边距。我需要知道是否可以包含出血。下面给出的图像可以给你一个想法。这是 Adobe InDesign 文档属性。
下面给出了我的序言和第一部分的代码,请告诉我我做错了什么。
\documentclass[11pt,twoside,openright]{book}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{booktabs}
%\usepackage{quotchap}
%\usepackage[Glenn]{fncychap}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage[paperheight=24.5cm,paperwidth=18cm, left=1.5cm,right=1.5cm,top=1.5cm,bottom=1.5cm,bindingoffset=7mm,includehead,includefoot]{geometry}
%\title{Heat and Mass Transfer}
%\author{Prabhu}
%\date{}
\begin{document}
%\maketitle
\chapter[]{Basics Concepts}
\section{INTRODUCTION}
Heat transfer is a discipline of thermal engineering that concerns the generation, use, conversion, and exchange of thermal energy and heat between physical systems. In engineering practice, an understanding of the modes of heat transfer is becoming increasingly important since heat transfer plays a crucial role in the design of vehicles, power plants, refrigerators, electronic devices, buildings, and bridges, among other things. The science of thermodynamics deals with the amount of heat transfer as a system undergoes a process from one equilibrium state to another, and makes no reference to how long the process will take. But in engineering, mainly interested in the rate of heat transfer, which is the topic of the science of heat transfer.
\medskip\fussy
如果有人询问我的问题,我会回答他需要澄清的问题。
我真诚地感谢每一个试图帮助我解决问题的人。我期待论坛尽快给我积极的答复。
- P·帕布([电子邮件保护])
答案1
以下是解决第 1、2 和 3 个问题的方法之一。(我把第 4 个问题放在一边,但这个问题是可以解决的很多稍后的。)
\documentclass[11pt,twoside,openright]{book}
% If we store the book title in a macro, we can use it in many places
\newcommand{\thebooktitle}{Heat and Mass Transfer}
% Fonts, encodings, languages
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
% Page dimensions
\usepackage[
paperheight=24.5cm, paperwidth=18cm,
left=1.5cm, right=1.5cm, top=1.5cm, bottom=1.5cm,
bindingoffset=7mm,
includehead,includefoot
]{geometry}
% Provides dummy text for testing purposes
\usepackage{lipsum}
% Header Style:
% booktitle | chapter-number.page-number | chapter title
\usepackage{fancyhdr}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\lhead{\thebooktitle}
\chead{\thechapter.\thepage}
\rhead{\leftmark}
% Make sure footer is empty
\lfoot{}\cfoot{}\rfoot{}
% Chapter Style:
\usepackage{titlesec}% titlesec has \titleformat, \titlerule, \filleft, \filcenter
\usepackage{fmtcount}% fmtcount has \NUMBERstring
\def\firstchaprule{\titlerule[0.35mm]}
\def\secondchaprule{\titlerule[0.2mm]}
\titleformat{\chapter}[display]
{\bfseries\Large}
{\filleft\MakeUppercase{\chaptertitlename} \NUMBERstring{chapter}}
{2ex}
{\vspace{1ex}%
\filcenter}
[\vspace{1ex}%
\firstchaprule
\vspace{1pt}%
\secondchaprule
]
\title{\thebooktitle}
\author{Prabhu}
\date{}
\begin{document}
% We want an 'empty' (or plain?) pagestyle for the front matter
\pagestyle{empty}
% \pagestyle{plain}
\maketitle
\chapter{Basics Concepts}
\pagestyle{fancy}
\section{INTRODUCTION}
\lipsum[1-20]% generates dummy text for testing purposes
\end{document}