Use Latex to write a graduation thesis

Source: Internet
Author: User
Tags blank page

Write a beautiful dissertation (from Wloo) in LaTeX

Have always felt the need to write such an article, because the degree paper from the format is more like a book, and the composition of the article is different, not only more than the contents of the article does not have a section, and generally to set up a header and footer for easy reading search. Schools sometimes put forward specific format requirements, although Fudan's requirements are very simple, and in fact not strictly enforced, but their own paper is their own children, or to appreciating, we all want to do a little more beautiful.

There have been a number of theses templates on the web, most of them from one or two original versions, and some changes have been made to the requirements of their respective schools. These templates are also very convenient, if they are completely satisfied with the typesetting effect, then directly to use it. However, if you want to adjust some of these formats, you will have to study their code or documentation carefully, sometimes not so easily. And the introduction of these templates or the CLS or sty files are written very long, a lot of content, as much as possible to include the features you might use, but in fact, only a part of everyone is needed. It's not always comfortable to use a template that contains "redundant" code. Of course, many people may hold a good attitude, not care. :)

This article is written for those who have special requirements for the paper format or who prefer to format themselves. If you think the paper templates available online are enough to meet your needs, and you don't have much interest in Tex itself, then you don't need to spend valuable time reading this article.

Reading this article is based on the assumption that you already know how to use latex to write regular articles. The General Tex/latex command is no longer explained, and the emphasis will be placed on the differences between the dissertation and the general article, and how to easily format it with some macro packages. Most of the content is from the network resources, reference books and the description of each macro package document, do not mention, in this together thanks!

One

Let's start by talking about the paper size and the page margin settings. According to the Fudan format requirements, paper size is A4 paper, the body with small fourth words, margins by default settings in Word. Small fourth is 12pt, and the default margin in Word is

Top margin =2.54cm, bottom margin =2.54cm, left margin =3.17cm, right margin =3.17cm

or convert it to a more easily remembered

Top margin =1in, bottom margin =1in, left margin =1.25in, right margin =1.25in

If we use the book class, the first sentence can be written

\documentclass[a4paper,12pt]{book}

Then set the margins with the Geometry macro package

\usepackage[top=1in,bottom=1in,left=1.25in,right=1.25in]{geometry}

But in fact, the page margin is very beautiful, especially the left and right symmetrical margins do not take into account the need for bookbinding, and with the header after the top margin appears too narrow. So pay attention to the beautiful words or adjust it yourself.

Note that the book class defaults to Twoside-duplex mode, which is different from the article class's default OneSide, which is the single-sided printing mode. The difference is in the position of the margins and page numbers. Single-sided mode has the same margins for each page, and double-sided mode swaps the left and right margins set on even pages. If you use single-sided printing, you can add the OneSide parameter in the square brackets of the \documentclass, and increase the left margin appropriately in the geometry option, reducing the right margin to leave the gutter position. But do not forget the binding when the right side of the general will be cut off a little edge, so the left and right margin should not be too large. If you use duplex printing, the settings in geometry are interpreted as the margins of the odd page, and the left and right margins of even pages are automatically interchanged.

There are a few caveats. First, the odd and even pages here are for the value of the current page counter, not the total number of pages in the generated file. That is, if the current page is sorted in the entire output as an even page, but the current page counter (that is, the page number displayed) is odd, the page margins for the current pages are set on an odd page.

Second, \documentclass also has a pair of options openright and Openany, the book class by default is the former, that is, each chapter (including the table of contents) will start on the odd page, if the last page of the previous chapter is an odd page, then insert a blank page, To make sure that the new chapter still starts with odd pages. This is the book typesetting specifications, do not recommend changes, paper pages less can also be used to increase the number of pages. :) This is the case with double-sided mode, this problem does not exist in single-sided mode. Often people ask why they are clearly single-sided printing, but still in the two chapters there is a blank page, please note that the book class by default is double-sided mode, unless you set as OneSide, remember to tell Tex what you want!

In addition, for easy viewing, the page number should be placed on the outside of the book. For single-sided mode, the outside is the right side, and for double-sided mode, the right side of the odd page is the outside side, even the left side of the page. How to set the page number to leave to the back of the set header, footer and then detailed.

As to whether one-sided printing or double-sided printing, see your own preferences. Fudan's paper Specification did not say, the general practice is the doctor-sided, master-sided. Anyway, the total number of pages less than 50 pages, do not double-sided, otherwise appear too thin, the contents of the spine is difficult to print.

Finally, a common question is raised. If you print with a PDF file, in the Acrobat Print dialog there is a page scaling default of fit to paper, so that the entire content is printed out and is no longer a set size. This is because the printable range of the printer can not reach the entire A4 paper, but rather smaller than the size of the A4 paper (the specific printable range is related to the printer model), fit to paper means to adjust the entire page to the printable range, to ensure that all the content on the page can be printed. Because the printable range is always smaller than the size of the A4 paper, printing will always be smaller. The proportion of the reduction is generally about 95%, and the printer model. To solve this problem, just choose page scaling to none.

Two

This section is about the problem of Chinese fonts and mixed in English. Chinese processing recommended the use of CJK or the new CCT, older CCT because of the age, there are some bugs can cause inexplicable problems, not recommended to use. This paper takes CJK as an example, the Chinese environment is

\begin{cjk*}{gbk}{song}
...
\end{cjk*}

Different from the English habit, the Chinese typesetting generally does not have the concept of bold, but uses different fonts such as Arial, blackbody, italics and imitation to enhance the text effect. In the CJK default font definition file, the arial corresponding bold is used by the \cjkbold command through the small translation of the glyph to achieve, not only to enlarge to see the sawtooth, but also does not conform to the Chinese typesetting habits. It is suggested that the bold body corresponding to the song body be set to bold, so that all bold commands in the environment in the context of bold will automatically become black body, do not need to use \cjkfamily{hei} to convert.

Font definition file for Arial c19song.fd A typical section of code is as follows

\declarefontfamily{c19}{song}{}
\declarefontshape{c19}{song}{m}{n}{<-> CJK * gbksong}{}
\declarefontshape{c19}{song}{bx}{n}{<-> cjkb * Gbksong}{\cjkbold}

\declarefontshape{c19}{song}{bx}{it}{<-> cjkb * Gbksongsl}{\cjkbold}
\declarefontshape{c19}{song}{m}{sl}{<-> CJK * gbksongsl}{}
\declarefontshape{c19}{song}{bx}{sl}{<-> cjkb * Gbksongsl}{\cjkbold}

Here C19 represents the encoding of the GBK character set, m indicates that the character's thickness and the width of the degree are medium (medium), BX indicates that the characters are coarse (bold) and Loose (expanded), N, it and SL represent normal straight stereoscopic (normal), Italian italic ( Italic) and mechanical italic (slanted). The last two parameters of \declarefontshape are font definitions and command sequences. Obviously, the above statement defines the bold body of the Arial as a \cjkbold generation. To change it to bold, simply change the code to

\declarefontfamily{c19}{song}{}
\declarefontshape{c19}{song}{m}{n}{<-> CJK * gbksong}{}
\declarefontshape{c19}{song}{bx}{n}{<-> cjkb * gbkhei}{}

\declarefontshape{c19}{song}{bx}{it}{<-> cjkb * gbkheisl}{}
\declarefontshape{c19}{song}{m}{sl}{<-> CJK * gbksongsl}{}
\declarefontshape{c19}{song}{bx}{sl}{<-> cjkb * gbkheisl}{}

In fact, formal Chinese typography should not be used in italics, but instead in italics or imitation. So you can similarly change the GBKSONGSL in the above statement to Gbkkai or GBKFS.

The above font definition command can be placed in the Sty file (the Save file name is Thesis.sty, then in the introduction area with \usepackage{thesis} reference, most of the following commands can also be placed in the sty file), without the need to change the local machine on the FD file, So that the same effect can be produced on other machines.

In addition, several short font conversion commands can be defined for convenience

\newcommand{\song}{\cjkfamily{song}}
\newcommand{\hei}{\cjkfamily{hei}}
\newcommand{\kai}{\cjkfamily{kai}}
\NEWCOMMAND{\FS}{\CJKFAMILY{FS}}

Later you can use \song, \hei, \kai and \fs in the text to convert the font.

After using \begin{cjk*}{gbk}{song} to start the Chinese environment, you should add \cjkindent and \cjktilde two sentences. The former sets the paragraph indent to the width of two Chinese characters. The latter is to solve the problem of aesthetics in Chinese and English mixed rows. The cjk* environment will swallow the spaces that follow the kanji so that line breaks in the source file do not create gaps between adjacent characters. But in this way, the Chinese and English content entered as follows

Chinese ABC Chinese

It will have the following effect

Chinese ABC Chinese

That is, ABC on both sides of the blank is not the same, very unattractive. To solve this problem, \cjktilde redefined the meaning of the tilde ~, so that the symbol no longer represents a non-breaking space, but a break of the elastic distance, plus the Chinese and English to adjust their distance. The above Chinese and English content should be entered in this way

Chinese ~abc~ Chinese

will be able to get good results. This input method is best to form a habit at the beginning, otherwise it will be troublesome later. Of course you can also enter this

Chinese ABC Chinese

In this case, although the distance between Chinese and English is too narrow, but at least symmetrical, than the first way above, is a lazy way. But if you are more concerned with the quality of typesetting, you should bear the trouble of input ~.

There are some punctuation problems to be handled in English and Chinese. The first is in the default CJK environment, the end of the Chinese punctuation can not be aligned with the boundary, because the Chinese punctuation is also considered a normal full-width characters, so it seems that the end of the line there should be no white space, which is not in line with the Chinese typesetting habits. Also, when a line of text needs to be compressed or stretched, the comma and the period should be treated differently, and the white space behind the comma should be smaller than the period. These two problems with the CJKPUNCT macro package can be a good solution, just add \usepackage{cjkpunct} can.

In addition, Chinese and English mixed in the time is the use of punctuation or English punctuation? This does not have a uniform norm. However, more reasonable and more common practice is to use Chinese punctuation after the Chinese, English after the punctuation. The more special two punctuation marks are periods and parentheses. General math articles are accustomed to using full-width solid periods as Chinese periods, so that they appear to coincide with the English period. Full-width brackets don't look good, and you can use the brackets in English uniformly, but it's best to add a tilde to the front and right brackets after the left parenthesis to make the right distance between the text and the front and back.

The points above may be trivial, but it is also the best place to see if they are well-typeset.

Three

The following sections tell you how to format chapter headings, header footers, and table of contents with the TITLESEC and TITLETOC macros package. Set header footer There is a well-known macro package FANCYHDR can also be used, but the TITLESEC provides a page design command more convenient with its chapter header commands, more powerful features. This section first tells the formatting of the chapter headings.

You can specify several formatting options when referencing the TITLESEC macro package, such as

\USEPACKAGE[BF,SMALL,CENTER,INDENTAFTER,PAGESTYLES]{TITLESEC}

where BF sets the font for chapter headings to bold, which is also the default value, can be omitted. In addition, it can be set to RM (Roman body), SF (sans serif), TT (typewriter body), MD (medium blackness), up (upright), it (Italian italic), SL (mechanical italic), SC (small capital letters).

Small sets the size of the title font and can also be set to big (default), Medium, Tiny.

Center makes the title center, can also be set to Raggedleft (left, default), Raggedright (right).

Indentafter is equivalent to the role of macro package Indentfirst, so that the first paragraph below the title is indented normally.

Pagestyles is a statement that follows to customize the page style.

Below you can use \titleformat, \titlespacing, \titlelabel and other commands to set the title format. Because Chinese is used in these commands, put an empty CJK environment before setup, such as

\begin{cjk*}{gbk}{song}
\end{cjk*}

The following \titleformat command sets the format of the chapter title

\titleformat{\chapter}[hang]{\centering\large\bfseries}{\chaptername}{1em}{}

Where \chapter can be changed to \section, \subsection and so on, set the section, subsection and other titles format.

Hang means that the header header is the same line as the header content and is the default value. The book class's default chapter title is the title header with the title content placed in two paragraphs, corresponding to the display option. There are also blocks, Runin, LeftMargin, RightMargin, frame, wrap and other options that are generally not used.

\centering\large\bfseries This piece is the formatting of the caption, which is set to center, \large size, and blackbody.

What follows is the definition of the header. The title header in the book category is in English and needs to be changed to Chinese. If you want to change to a format like "chapter One," You should first refer to the CJKNUMB macro package, which provides the command to convert Arabic numerals to Chinese numerals. Then define

\renewcommand{\chaptername}{Chapter \cjknumber{\thechapter}

Then the title header in \titleformat defines \chaptername to get the effect we want. Of course, you can also use Arabic numerals without Chinese numerals, that is, define

\renewcommand{\chaptername}{Chapter ~\thechapter~}

Following the header definition is the distance between the header and the header content, which is 1em. Note that 1em equals the width of a Chinese character in the Chinese environment.

The last curly brace is the command that executes before the typesetting title, which is vacant here.

Then use the \titlespacing or \titlespacing* command to set the title to a distance of four weeks, for example

\TITLESPACING{\CHAPTER}{0PT}{*0}{*4}

The chapter title and left, top and bottom of the content of the distance is set to 0PT, *0, * *. Here *n represents an elastic distance, equal to the upper distance of N ex Plus. 3ex minus. 06ex, the equivalent of n ex Plus. 1ex for the next distance. Elastic distance because of a certain degree of flexibility, easy to get beautiful typography. If you want to specify the flex distance defined by the keyword Plus, you can use the asterisk version of the command, which is the minus

\titlespacing*{command} {left distance} {up distance}

The command for chapter headings is set above, and the same commands can be used to format sections, subsections, and so on. But if there are no special requirements, just want to modify the header, you can use a more simple command \titlelabel to set. For example

\titlelabel{\s\thetitle\quad}

Set the chapter title to a format similar to §1 title content. Here \quad equals \hspace{1em}, which is the distance from the width of a Chinese character. Note that the definition of the \titleformat command overrides the definition of \titlelabel, and the general chapter is not the same as the section title, so as long as the \titleformat command defines the format of the chapter title, \ The definition of Titlelabel only works on the headings at the following levels of the section.

Four

This section goes on to use the commands provided by the TITLESEC macro package to set up headers and footers. The following command defines a new page style and uses that style

\newpagestyle{main}{
\sethead{}{}{\kai\small\chaptername\quad\chaptertitle\qquad\thepage}
\setfoot{}{}{}\headrule}
\pagestyle{main}

Where the \sethead command sets the header in the format

\sethead[left header [Even page header] [even page right header]
{Odd page Left header} {Header in Odd page} {Odd page Right header}

Single-sided printing mode as long as the set of surprisingly few pages, double-sided mode will need to make a left and right header exchange. The example given above is one-sided mode.

\setfoot is used to set the footer, similar in format to \sethead.

In the header, the footer can display the chapter title, the page number and so on content. As shown in the example above, the chapter headings and page numbers are displayed in the header. Note that \qquad is equivalent to two \quad, or \hspace{2em}.

\headrule is to underline the header line, similarly \footrule to underline the footer line, but relatively less use. The default header line width is 0.4pt, if not satisfied, you can use the following command to reset its width

\setheadrule{width}

In addition, there are two special cases that need to be addressed. First, although a custom page style was used with \pagestyle{main} in the example above, the first page of each chapter is not affected, and the default plain style is still used. On this page, for the sake of aesthetics, generally do not add a header, and the page number in the footer (others like not to add page numbers). So the plain style (no header, the page number in the middle of the footer) has basically met the requirements, do not have to modify. If you need to modify, you can define a new page style, and then redefine the plain style with the following command

\renewpagestyle{plain}{new Page Style}

Second, in the table of contents, references, or chapters generated with the \chapter* command, the header header in the header definition above \chaptername should not be displayed. So it is necessary to define a page style in this particular chapter to use, for example can define

\newpagestyle{special}{
\sethead{}{}{\kai\small\chaptertitle\qquad\thepage}
\setfoot{}{}{}\headrule}

Then use \pagestyle{special} in the appropriate place in the text to change the style.

Five

A catalogue is a necessary part of a dissertation. As long as the text in the appropriate place with

\tableofcontents

You can automatically generate the catalog. However, the format of the directory does not always conform to the individual's requirements, and sometimes some entries are added to it. You can easily format a directory by using the commands provided with the TITLETOC macro package.

First, you can use

\renewcommand{\contentsname}{mu \quad

Change the title of the catalog section to Chinese. Then, use the \titlecontents command to format different levels of catalog items. For example, the directory entry format for the chapter hierarchy can be set as follows

\titlecontents{chapter}[0pt]{\vspace{.5\baselineskip}\bfseries}
{Section \cjknumber{\thecontentslabel} Chapter \quad} {}
{\hspace{.5em}\titlerule*[10pt]{$\cdot$}\contentspage}

Where 0pt is the distance from the left edge of the catalog item to the core. followed by the command that was executed before the TOC entry, where \vspace{.5\baselineskip} represents a certain vertical distance from the above, which is half the current single-fold line spacing. \bfseries sets the font of the entire TOC entry to bold.

The next item is to set the header of the TOC entry, which is set to the "first chapter" format, and the distance from the width of the Chinese character is left behind. This is followed by formatting the body of the TOC item, which is empty because it is the same as the header of the catalog item.

Next is the set Fill command and page number. Here, use \hspace{.5em} to leave a little space behind the contents of the catalog item to avoid getting too close to the fill point. Then use the \titlerule* command to draw the fill point, here is the vertical center of the solid dot as a fill symbol (not accustomed to Chinese in the place of the fill point), and 10pt for the inclusion of a fill symbol of the width of the horizontal box, that is, the smaller the width, the more filling points closer. Fill the point and Add the page number \contentspage.

Similarly, you can set the section hierarchy of the directory entry format as follows

\titlecontents{section}[2em]{\vspace{.25\baselineskip}}
{\s\thecontentslabel\quad} {}
{\hspace{.5em}\titlerule*[10pt]{$\cdot$}\contentspage}

Where 2em indicates that a section hierarchy of TOC items has one indentation from the left edge. If there are subsection levels, you can define them similarly.

However, headers generated by commands such as \chapter*, \section*, and so on are not automatically entered in the directory. For example, if the Chinese summary section starts with the following command

\chapter*{pick \quad to}

Then you can immediately add

\addcontentsline{toc}{chapter}{Chinese Abstract}

You can insert the Chinese abstract as a chapter level into the directory. The English abstracts and reference sections can be treated as such. To mention it, the title of the reference section can be changed to Chinese using the following command

\renewcommand{\bibname}{References}
Six

This section speaks of some text typesetting issues that have not been mentioned in the previous sections.

The first is the setting of the line spacing. The school's dissertation specification mentions that the line spacing is 20pt. In fact, different sizes of the font line spacing is not the same, but proportional relationship. This 20pt is for the main text font. The basic line spacing in Tex is \baselineskip, for a 12pt font, this value equals 14.5pt, while the true line spacing is

\baselineskip * \baselinestretch

\baselinestretch defaults to 1, but we can reset its value, such as

\renewcommand{\baselinestretch}{1.38}

Just get the real line spacing for 14.5pt*1.38≈20pt. After this definition, the different size of the font will be the same scale factor 1.38 to enlarge the line spacing, so that the full-text layout can be coordinated.

So how does the value of \baselineskip know? Add a command to the Tex source file

\showthe\baselineskip

At compile time, it pauses to display the \baselineskip value of the current font. This method can be used to know that the 10pt font corresponds to the \baselineskip 12pt, 11pt font corresponding to the \baselineskip is 13.6pt.

As for the usual 1.5 times-fold line spacing and double line spacing, it is generally understood that 1.5 times times and twice times the font base size, for example, for 12pt fonts, 1.5 times-fold line spacing and double-line spacing should be 12pt*1.5=18pt, 12pt*2=24pt, respectively. Then \baselinestretch should be set to 18pt/14.5pt≈1.24, 24pt/14.5≈1.66, instead of 1.5 and 2, then the line spacing will appear too large.

Then talk about the setting of the homepage of the paper. Fudan's dissertation, bookbinding Place will be according to the school template production cover, do not have to do their own, but the specification in the title page to indicate the guidance group members list, and in order to maintain the integrity of the electronic version of the paper, it is best to do a simple paper home (title page).

It is not necessary to automatically generate the title of the paper with commands such as \title, \author, and \maketitle, because that may not suit your requirements. Just use

\begin{titlepage}
Title page Content
\end{titlepage}

Using some of the center environment, \vspace*, and font selection commands in the title page content makes it easy to design the format you want.

Note that there is no page number for the above title page. And the general text before the section, including the table of contents, abstracts, etc., are accustomed to the body part of a different page format, such as with Roman numerals, and starting from the first page of the text with Arabic numerals to start the calculation of page numbers. To do this, just add the title page after the

\frontmatter or \pagenumbering{roman}

And before the first chapter of the text, add

\mainmatter or \pagenumbering{arabic}

You can do it. However, it is recommended to use \frontmatter and \mainmatter, as these two commands are not limited to this purpose. As I said earlier, such non-body parts as Chinese abstracts can be joined with the \chapter* command, but when the header is set, a problem is found, and the \chaptertitle in the header is not updated synchronously. One way to solve this problem is to add a \chaptermark after the \chapter* command, for example

\chapter*{pick \quad to}\chaptermark{pick \quad to}

But if we use the \frontmatter, \mainmatter and its matching \backmatter, it does not need so much trouble, as long as directly with the \chapter command without the asterisk version, for \frontmatter and \ Mainmatter between the parts, and after the \backmatter part, the system will be automatically with the body part of the chapter to distinguish, do not add the "first chapter" such chapter header. A typical document structure example is below

\begin{document}

\begin{titlepage}
Title page Content
\end{titlepage}

\frontmatter % start the part before the body
\tableofcontents % auto-generated directory

\chapter[Chinese abstract]{pick \quad to}
The% square brackets are the content displayed in the table of contents, equivalent to the \addcontentsline used earlier
Chinese abstract content

\chapter[English Abstract]{abstract}
English abstract content

\mainmatter % start body part
\chapter{first chapter Title}
Chapter I. Content

\backmatter % start the section after the body
\begin{thebibliography}{99}\addcontentsline{toc}{chapter}{References}
Reference content
\end{thebibliography}

\chapter[Thanks]{\quad}
Content of Acknowledgements

\end{document}
Seven

In this case, the text layout is about the same. This section then speaks about theorems and the formatting of the proving environment.

A large number of theorem environments are often used in mathematical papers. Latex default theorem environment is not enough to meet the requirements, AMSTHM macro package provides a convenient command to set the format of the theorem environment. For example, the following command defines a theorem style mythm and uses it to define some common theorem environments

\newtheoremstyle{mythm}{1.5ex plus 1ex minus. 2ex}{1.5ex plus 1ex minus. 2ex}
{\kai} {\parindent} {\song\bfseries} {}{1em}{}
\theoremstyle{mythm}
\newtheorem{thm}{theorem ~}
\newtheorem{lem}{lemma ~}

\newtheorem{cor}{Inference ~}
\newtheorem{defn}{Definition ~}
\newtheorem{conj}{Guess ~}
\newtheorem{exmp}{Example ~}
\newtheorem{rem}{Note ~}

Let's explain the meaning of the parameters in the \newtheoremstyle command. The two lengths after the style name represent the distance between the theorem and the upper and the next, respectively, and are set to elastic distances. \kai is the font that sets the content of the theorem. \parindent is the indentation of the first line of the set theorem, which is equal to 2EM in the case of the previous use of \cjkindent.

The \song\bfseries is followed by a format that sets the theorem to the head, which is similar to the "Theorem 1" section, in general Chinese using boldface. Because we have already defined the bold body of the song body as bold, so here the Chinese font is set to the song body, and then with the choice of bold command \bfseries, at the same time the Chinese into a bold, English into bold. Note that if the font definition file is not modified before, and here with \hei to change the font, plus \bfseries is likely to cause "black" or bold bold, this poor text effect should not appear.

After this parameter is set immediately following the theorem of the head of the symbol, English standing for a period, and the Chinese habit does not add any symbols, so here is vacant. Then it sets the gap between the theorem head and the theorem content, which is set to 1em, which is the width of a Chinese character.

The last item is a supplementary explanation of the head of the theorem, which is vacant here. But if we want to get a theorem like "Theorem 1 (existence theorem)", then we can define a theorem style.


.2ex}{\kai}{\parindent}{\song\bfseries}{}{1em}{\thmnote{#3}}

The last item in the \thmnote{#3} indicates that the additional content in square brackets is used as the head of the theorem. Define a new theorem environment with this style (unified numbering with the previously defined THM environment)

\theoremstyle{specthm}
\newtheorem{sthm}[thm]{}

and use it in the body.

\begin{sthm}[theorem of ~\thethm~ (existence theorem)]
Theorem Content
\end{sthm}

You get the effect you want.

As for the typesetting of proofs, the Amsthm macro package provides a proof environment, but the format requires a little tweaking. The definition of proof environment in Amsthm.sty is as follows

\newenvironment{proof}[1][\proofname]{\par
\pushqed{\qed}%
\normalfont \topsep6\[email protected]\ @plus6 \[email Protected]\relax
\trivlist
\item[\hskip\labelsep
\itshape

}{%
\popqed\endtrivlist\ @endpefalse
}

In order to conform to the general Chinese proof of the layout of the environment, you can redefine the proof environment as (note, because these commands contain the @ character, you need to add \makeatletter and \makeatother before and after respectively)

\makeatletter
\renewenvironment{proof}[1][\proofname]{\par
\pushqed{\qed}%
\normalfont \topsep6\[email protected]\ @plus6 \[email protected] \labelsep1em\relax
\trivlist
\item[\hskip\labelsep\indent

}{%
\popqed\endtrivlist\ @endpefalse
}
\makeatother

and redefine \proofname as

\renewcommand{\proofname}{Proof}

The proof environment automatically adds a proof terminator to the rightmost side of the last line, and the default is a hollow block, which you can redefine \qedsymbol to modify. It is important to note that when the proof ends with a separate formula, the proof terminator appears on the far right side of the next line, not on the same line of the formula, which is not customary. Just add \qedhere in the formula environment.

Eight

Finally, I want to talk about the culture of floating graphics and tabular environment. First change figure and table to Chinese

\renewcommand{\figurename}{Diagram}
\renewcommand{\tablename}{Table}

Then you need to make a little change to the title format of the floating environment. The following definitions can be found in book.cls

\long\def\ @makecaption #1#2{%
\vskip\abovecaptionskip
\sbox\ @tempboxa {#1: #2}%
\ifdim \wd\ @tempboxa >\hsize
#1: #2 \par
\else
\global \ @minipagefalse

\fi
\vskip\belowcaptionskip}

This code includes a decision selection structure, which is displayed directly if the header is more than one line, otherwise it is centered within a line. You can ignore this, as long as you want to change the format of # # (that is, \figurename or \tablename) and # # (the title content) and the delimiter between # # and # #. For example, if you want to change # # to Bold and change the delimiter to a space, you can set

\makeatletter
\long\def\ @makecaption #1#2{%
\vskip\abovecaptionskip
\sbox\ @tempboxa {\bfseries #1}\quad #2}%
\ifdim \wd\ @tempboxa >\hsize
{\bfseries #1}\quad #2 \par
\else

\[email protected]@\hsize{\hfil\box\ @tempboxa \hfil}%
\fi
\vskip\belowcaptionskip}
\makeatother
★ ¡ï the CONCLUSION ★

Here, everyone needs to know that something has basically been introduced. If you read the text carefully, and follow it to set up your paper format, I think it should be almost. Of course, the papers of different disciplines have their own characteristics and requirements, there must be a lot of specific questions not involved. For example, the computer profession may often use the code to transcribe the environment, the humanities thesis may use the chapter end note, and so on. These questions are also frequently asked on the version, in this edition of the essence of the most can find answers, here will not repeat.

Hope that a lot of time to write these things can be helpful to everyone. Finally, I wish you all the more proficient Tex, can write beautiful papers!

From:http://blog.sciencenet.cn/blog-351115-304643.html

Use Latex to write a graduation thesis

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.