Debian Codegraph @

texmf-dist/doc/latex/hitszthesis/body/chapter02.tex

raw
1 % !TEX root = ../main.tex
2
3 % 中英标题:\chapter{中文标题}[英文标题]
4 \chapter{排版图片}[Typesetting pictures]
5
6 \section{引言}[Introduction]
7 图应有自明性。插图应与文字紧密配合,文图相符,内容正确。选图要力求精练,插图、照
8 片应完整清晰。机械工程图:采用第一角投影法,严格按照GB4457~GB131-83《机械制图》
9 标准规定。数据流程图、程序流程图、系统流程图等按GB1526-89标准规定。电气图:图形
10 符号、文字符号等应符合附录3所列有关标准的规定。流程图:必须采用结构化程序并正确
11 运用流程框图。对无规定符号的图形应采用该行业的常用画法。坐标图的坐标线均用细实线
12 ,粗细不得超过图中曲线;有数字标注的坐标图,必须注明坐标单位。照片图要求主题和主
13 要显示部分的轮廓鲜明,便于制版。如用放大或缩小的复制品,必须清晰,反差适中。照片
14 上应有表示目的物尺寸的标度。引用文献中的图时,除在正文文字中标注参考文献序号以外
15 ,还必须在中、英文表题的右上角标注参考文献序号。
16
17 \section{博士毕业论文双语题注}[Doctoral picture example]
18
19 博士毕业论文双语题注如\figref{golfer1}所示。
20
21 \begin{figure}[htpb]
22 \centering
23 \includegraphics[width = 0.4\textwidth]{golfer}
24 \bicaption[golfer1]{}{打高尔夫球球的人(博士论文双语题注)}{Fig.$\!$}{The person playing golf (Doctoral thesis)}
25 \end{figure}
26
27 每个图均应有图题(由图序和图名组成),图题不宜有标点符号,图名在图序之后空1个半
28 角字符排写。图序按章编排,如第1章第一个插图的图号为“图1-1”。图题置于图下,硕士论
29 文只用中文,博士论文用中、英两种文字,居中书写,中文在上,要求中文用宋体5号字,
30 英文用Times New Roman 5号字。有图注或其它说明时应置于图题之上。引用图应注明出处
31 ,在图题右上角加引用文献号。图中若有分图时,分图题置于分图之下或图题之下,可以只
32 用中文书写,分图号用a)、b)等表示。图中各部分说明应采用中文(引用的外文图除外)或
33 数字符号,各项文字说明置于图题之上(有分图时,置于分图题之上)。图中文字用宋体、
34 Times New Roman字体,字号尽量采用5号字(当字数较多时可用小5号字,以清晰表达为原
35 则,但在一个插图内字号要统一)。同一图内使用文字应统一。图表中物理量、符号用斜体
36 。
37 \subsection{本硕论文题注}[Other picture example]
38
39 本硕论文题注如\figref{fig:bm}所示。
40
41 \begin{figure}[ht]
42 \centering
43 \includegraphics[width = 0.4\textwidth]{golfer}
44 \caption{打高尔夫球的人,硕士论文要求只用汉语}
45 \label{fig:bm}
46 \end{figure}
47
48 \subsection{并排图和子图}[Abreast-picture and Sub-picture example]
49 \subsubsection{并排图}[Abreast-picture example]
50
51 使用并排图时,需要注意对齐方式。默认情况是中部对齐。这里给出中部对齐、顶部对齐
52 、图片底部对齐三种常见方式。其中,底部对齐方式有一个很巧妙的方式,将长度比较小
53 的图放在左面即可。
54
55 \lipsum[2]
56
57 \begin{figure}[htbp]
58 \centering
59 \begin{minipage}{0.4\textwidth}
60 \centering
61 \includegraphics[width=\textwidth]{golfer}
62 \bicaption[golfer2]{}{打高尔夫球的人}{Fig.$\!$}{The person playing golf}
63 \end{minipage}
64 \centering
65 \begin{minipage}{0.4\textwidth}
66 \centering
67 \includegraphics[width=\textwidth]{golfer}
68 \bicaption[golfer3]{}{打高尔夫球的人。注意,这里默认居中}{Fig.$\!$}{The person playing golf. Please note that, it is vertically center aligned by default.}
69 \end{minipage}
70 \end{figure}
71
72 \begin{figure}[htbp]
73 \centering
74 \begin{minipage}[t]{0.4\textwidth}
75 \centering
76 \includegraphics[width=\textwidth]{golfer}
77 \bicaption[golfer5]{}{打高尔夫球的人}{Fig.$\!$}{The person playing golf}
78 \end{minipage}
79 \centering
80 \begin{minipage}[t]{0.4\textwidth}
81 \centering
82 \includegraphics[width=\textwidth]{golfer}
83 \bicaption[golfer8]{}{打高尔夫球的人。注意,此图是顶部对齐}{Fig.$\!$}{The person playing golf. Please note that, it is vertically top aligned.}
84 \end{minipage}
85 \end{figure}
86
87 \begin{figure}[htbp]
88 \centering
89 \begin{minipage}[t]{0.4\textwidth}
90 \centering
91 \includegraphics[width=\textwidth,height=\textwidth]{golfer}
92 \bicaption[golfer9]{}{打高尔夫球的人。注意,此图对齐方式是图片底部对齐}{Fig.$\!$}{The person playing golf. Please note that, it is vertically bottom aligned for figure.}
93 \end{minipage}
94 \centering
95 \begin{minipage}[t]{0.4\textwidth}
96 \centering
97 \includegraphics[width=\textwidth]{golfer}
98 \bicaption[golfer6]{}{打高尔夫球的人}{Fig.$\!$}{The person playing golf}
99 \end{minipage}
100 \end{figure}
101
102 \subsubsection{子图}[Sub-picture example]
103
104 注意:子图题注也可以只用中文。规范规定“分图题置于分图之下或图题之下”,但没有给出具体的格式要求。
105 没有要求的另外一个说法就是“无论什么格式都不对”。
106 所以只有在一个图中有标注“a),b)”,无法使用\cs{subfigure}的情况下,使用最后一个图例中的格式设置方法,否则不要使用。
107 为了应对“无论什么格式都不对”,这个子图图题使用“minipage”和“description”环境,宽度,对齐方式可以按照个人喜好自由设置,是否使用双语子图图题也可以自由设置。
108
109 \lipsum[1-3]
110
111 无意义文字,每页底部不要留空白。
112
113 \lipsum[4-5]
114
115 \begin{figure}[!ht]
116 \setlength{\subfigcapskip}{-1bp}
117 \centering
118 \begin{minipage}{\textwidth}
119 \centering
120 \subfigure{\label{golfer41}}\addtocounter{subfigure}{-2}
121 \subfigure[The person playing golf]{\subfigure[打高尔夫球的人~1]{\includegraphics[width=0.4\textwidth]{golfer}}}
122 \hspace{2em}
123 \subfigure{\label{golfer42}}\addtocounter{subfigure}{-2}
124 \subfigure[The person playing golf]{\subfigure[打高尔夫球的人~2]{\includegraphics[width=0.4\textwidth]{golfer}}}
125 \end{minipage}
126 \centering
127 \begin{minipage}{\textwidth}
128 \centering
129 \subfigure{\label{golfer43}}\addtocounter{subfigure}{-2}
130 \subfigure[The person playing golf]{\subfigure[打高尔夫球的人~3]{\includegraphics[width=0.4\textwidth]{golfer}}}
131 \hspace{2em}
132 \subfigure{\label{golfer44}}\addtocounter{subfigure}{-2}
133 \subfigure[The person playing golf. Here, 'hang indent' and 'center last line' are not stipulated in the regulation.]{\subfigure[打高尔夫球的人~4。注意,规范中没有明确规定要悬挂缩进、最后一行居中。]{\includegraphics[width=0.4\textwidth]{golfer}}}
134 \end{minipage}
135 \vspace{0.2em}
136 \bicaption[golfer4]{}{打高尔夫球的人}{Fig.$\!$}{The person playing gol}
137 \end{figure}
138
139 \begin{figure}[t]
140 \centering
141 \begin{minipage}{.7\linewidth}
142 \setlength{\subfigcapskip}{-1bp}
143 \centering
144 \begin{minipage}{\textwidth}
145 \centering
146 \subfigure{\label{golfer45}}\addtocounter{subfigure}{-2}
147 \subfigure[The person playing golf]{\subfigure[打高尔夫球的人~1]{\includegraphics[width=0.4\textwidth]{golfer}}}
148 \hspace{4em}
149 \subfigure{\label{golfer46}}\addtocounter{subfigure}{-2}
150 \subfigure[The person playing golf]{\subfigure[打高尔夫球的人~2]{\includegraphics[width=0.4\textwidth]{golfer}}}
151 \end{minipage}
152 \vskip 0.2em
153 \wuhao 注意:这里是中文图注添加位置(我工要求,图注在图题之上)。
154 \vspace{0.2em}
155 \bicaption[golfer47]{}{打高尔夫球的人。注意,此处我工有另外一处要求,子图图题可以位于主图题之下。但由于没有明确说明位于下方具体是什么格式,所以这里不给出举例。}{Fig.$\!$}{The person playing golf. Please note that, although it is appropriate to put subfigures' captions under this caption as stipulated in regulation, but its format is not clearly stated.}
156 \end{minipage}
157 \end{figure}
158
159 \begin{figure}[t]
160 \centering
161 \begin{tikzpicture}
162 \node[anchor=south west,inner sep=0] (image) at (0,0) {\includegraphics[width=0.3\textwidth]{golfer}};
163 \begin{scope}[x={(image.south east)},y={(image.north west)}]
164 \node at (0.3,0.5) {a)};
165 \node at (0.8,0.2) {b)};
166 \end{scope}
167 \end{tikzpicture}
168 \bicaption[golfer0]{}{打高尔夫球球的人(博士论文双语题注)}{Fig.$\!$}{The person playing golf (Doctoral thesis)}
169 \vskip -0.4em
170 \hspace{2em}
171 \begin{minipage}[t]{0.3\textwidth}
172 \wuhao \setlist[description]{font=\normalfont}
173 \begin{description}
174 \item[(a)]子图图题
175 \end{description}
176 \end{minipage}
177 \hspace{2em}
178 \begin{minipage}[t]{0.3\textwidth}
179 \wuhao \setlist[description]{font=\normalfont}
180 \begin{description}
181 \item[(b)]子图图题
182 \item[(b)]Subfigure caption
183 \end{description}
184 \end{minipage}
185 \end{figure}
186
187
188 \begin{figure}[!ht]
189 \centering
190 \begin{sideways}
191 \begin{minipage}{\textheight}
192 \centering
193 \fbox{\includegraphics[width=0.2\textwidth]{golfer}}
194 \fbox{\includegraphics[width=0.2\textwidth]{golfer}}
195 \fbox{\includegraphics[width=0.2\textwidth]{golfer}}
196 \fbox{\includegraphics[width=0.2\textwidth]{golfer}}
197 \fbox{\includegraphics[width=0.2\textwidth]{golfer}}
198 \fbox{\includegraphics[width=0.2\textwidth]{golfer}}
199 \fbox{\includegraphics[width=0.2\textwidth]{golfer}}
200 \bicaption[golfer7]{}{打高尔夫球的人(非规范要求)}{Fig.$\!$}{The person playing golf (Not stated in the regulation)}
201 \end{minipage}
202 \end{sideways}
203 \end{figure}
204
205 \clearpage
206
207 如果不想让图片浮动到下一章节,那么在此处使用\cs{clearpage}命令。
208
209 \section{如何做出符合规范的漂亮的图}
210
211 关于作图工具在后文\ref{drawtool}中给出一些作图工具的介绍,此处不多言。
212 此处以R语言和Tikz为例说明如何做出符合规范的图。
213
214 \subsection{Tikz作图举例}
215
216 使用Tikz作图核心思想是把格式、主题、样式与内容分离,定义在全局中。
217 注意字体设置可以有两种选择,如何字少,用五号字,字多用小五。
218 使用Tikz作图不会出现字体问题,字体会自动与正文一致。
219
220 \begin{figure}[thb!]
221 \centering
222 \begin{tikzpicture}[xscale=0.8,yscale=0.3,rotate=90]
223 \small
224 \draw (-22,6.5) node[refcell]{参考基因组};
225 \draw[refline] (-23, 5) -- (27, 5);
226 \draw (-22,3.75) node[tscell]{肿瘤样本};
227 \draw (-20,3.75) node[tncell]{正常细胞};
228 \draw[tnline] (-21, 2.5) -- (27, 2.5);
229 \draw (-20,1.25) node[ttcell]{肿瘤细胞};
230 \rcell{2}{6};
231 \draw[fakeevolve] (4.5, 5.25) -- (4.5, 4.8);
232 \ncell{2}{4};
233 \draw[evolve] (4.5, 3) .. controls (4.5,2.8) and (-3.5,2.9) .. (-3.5, 2);
234 \draw[evolve] (4.5, 3) .. controls (4.5,2.8) and (11.5,2.9) .. (11.5, 2);
235 \tcellone{-6}{1.5};
236 \draw (-9, 2) node[ttcell]{1};
237 \draw[evolve] (-3.5, 0) .. controls (-3.5,-0.2) and (-12,-0.1) .. (-12, -1.5);
238 \draw[evolve] (-3.5, 0) .. controls (-3.5,-0.2) and (1.5,-0.1) .. (1.5, -1.5);
239 \tcellthree{7}{1.5};
240 \draw (4, 2) node[ttcell]{2};
241 \draw[evolve] (11, 0.5) .. controls (11,0.3) and (19,0.4) .. (19, -1.5);
242 \tcellfive{-16}{-2};
243 \draw (-19, -1.5) node[ttcell]{3};
244 \tcelltwo{-1}{-2};
245 \draw (-4, -1.5) node[ttcell]{4};
246 \tcellfour{12}{-2};
247 \draw (9, -1.5) node[ttcell]{5};
248 \end{tikzpicture}
249 \begin{minipage}{.9\linewidth}
250 \vskip 0.2em
251 \wuhao 图中,带有箭头的淡蓝色箭头表示肿瘤子种群的进化方向。一般地,从肿瘤组织中取用于进行二代测序的样本中含有一定程度的正常细胞污染,因此肿瘤的样本中含有正常细胞和肿瘤细胞。每一个子种群的基因组的模拟过程是把生殖细胞变异和体细胞变异加入到参考基因组中。
252 \vspace{0.6em}
253 \end{minipage}
254 \bicaption[tumor]{}{肿瘤组织中各个子种群的进化示意图}{Fig.$\!$}{The diagram of tumor subpopulation evolution process}
255 \end{figure}
256
257 \subsection{R作图}
258
259 R是一种极具有代表性的典型的作图工具,应用广泛。
260 与Tikz图~\ref{tumor}~不同,R作图分两种情况:(1)可以转换为Tikz码;(2)不可转换为Tikz码。
261 第一种情况图形简单,图形中不含有很多数据点,使用R语言中的Tikz包即可。
262 第二种情况是图形复杂,含有海量数据点,这时候不要转成Tikz矢量图,这会使得论文体积巨大。
263 推荐使用pdf或png非矢量图形。
264 使用非矢量图形时要注意选择好字号(五号或小五),和字体(宋体、新罗马)然后选择生成图形大小,注意此时在正文中使用\cs{includegraphics}命令导入时,不要像导入矢量图那样控制图形大小,使用图形的原本的
265 宽度和高度,这样就确保了非矢量图形中的文字与正文一致了。
266
267 为了控制\hitszthesis\ 的大小,此处不给出具体举例。
268
269 \subsection{专业绘图工具}[Processional drawing tool]
270 \label{drawtool}
271
272 推荐使用tikz包,使用tikz源码绘图的好处是,图片中的字体与正文中的字体一致。具体如
273 何使用tikz绘图不属于模板范畴。
274
275 tikz适合用来画不需要大量实验数据支撑示意图。但R语言等专业绘图工具具有画出各种、
276 专业、复杂的数据图。R语言中有tikz包,能自动生成tikz码,这样tikz几乎无所不能。
277 对于排版有极致追求的小伙伴,可以参考
278 \href{http://www.texample.net/tikz/resources/}{http://www.texample.net/tikz/resources/}
279 中所列工具,几乎所有作图软件所作的图形都可转成tikz,然后可以自由的在tikz中修改
280 图中内容,定义字体等等。实现前文窝工规范中要求的图中字体的一致性的终极目标。
281
282 \lipsum[1]
283
284 \section{本章小结}[Brief summary]
285
286 \lipsum[1]