LaTex

LaTeX(LATEX,音译“拉泰赫”)是一种基于TeX的排版系统,由美国计算机学家莱斯利·兰伯特(Leslie Lamport)在20世纪80年代初期开发,利用这种格式,即使用户没有排版和程序设计的知识也可以充分发挥由TeX所提供的强大功能,能在几天,甚至几小时内生成很多具有书籍质量的印刷品。对于生成复杂表格和数学公式,这一点表现得尤为突出。因此它非常适用于生成高印刷质量的科技和数学类文档。这个系统同样适用于生成从简单的信件到完整书籍的所有其他种类的文档。

基本格式

\documentclass[a4paper]{book}

\usepackage{makeidx}

\begin{document}

\newpage

\section*{Chapter 4 }

\subsection*{Modeling: A Million to One}

So far, you’ve become familiar with Blender’s interface, and moved and animated some simple objects. If you want to create your own scenes—which, let’s face it, reading this book if you weren’t interested in that would be silly—you’ll need to learn to create custom objects. While there are some specialty object types, by far the most commonly used is the mesh model. In this chapter, we’ll look at several approaches to mesh modeling: polygon by polygon, tools based, box, and with modifiers. Before we actually model anything, let’s learn the terminology and basics.

\subsection*{The Building Blocks of Mesh Modeling}

When Blender renders your final image, it breaks up every surface into triangles. A triangle is the simplest object that can have a visible surface, and it is also the shape toward which decades of computer scientists have dedicated their efforts in order to quickly transform and draw. If you’re a computer, triangles are where it’s at. It should come as no surprise then that triangles will be the building blocks of your mesh model.

\end{document}

添加书名

\begin{document}
\title{Functions for KET 1}
\maketitle

\newpage 

中文支持

软件:

apt-get install latex-cjk latex-cjk-chinese latex-cjk-chinese-arphic-gbsn00lp

格式:

\documentclass[a4paper]{book} \usepackage{makeidx}

\usepackage{CJKutf8}

\begin{document}

\begin{CJK*}{UTF8}{gbsn}

\newpage

\section*{第四章 }

\subsection*{建模:以简御繁}

到目前为止,您已经熟悉了Blender的界面,移动,还会制作一些简单动画。如果您想创建自己的场景( let’s face it, reading this book if you weren’t interested in that would be silly),您还得学学创建自定义的物体。虽然Blender里有些特殊的物体类型,但目前最常用的还是Mesh(网格)模式。在本章,我们会了解不同 的Mesh建模方法:polygon(多边形)到polygon的方法,基于工具的方法,box(盒子)开始的方法,还有Modifier(修改器)的方法。在我们实际建模之前,让我们学习>点术语和基础知识。

\subsection*{Mesh建模的基石}

当Blender渲染您的最终场景时,它会把所有的面分解成三角形。三角形是最简单的对象,它可以有一个可见的表面,并且它也是几十年计算机科学家们努力的结果,这>样的构成可以让物体快速变形和绘制。如果您是台电脑的话,三角形就是您的核心所在。您将毫不犹豫的使用三角形作为您Mesh建模的基石。

\end{CJK*}

\end{document}

参考:

再提 UTF-8 下用 LaTex CJK http://www.linuxsir.org/bbs/showthread.php?t=249869

插入图片

用includegraphics宏命令(graphicx包): 首先需在latex文档的文件说明部分加上:

      \usepackage{graphicx}

然后在需要插入图片的地方引用:

      \includegraphics[height=高度]{图片文件名}
或者:  \includegraphics[width=宽度]{图片文件名}

其中的”高度”和”宽度”是指希望图片打印的高度和宽度, 必须给出单位, 可用厘米(cm)或英寸(in). 高度和宽度也可用上述格式同时给出, 这样可以改变原图的长宽比例. 上述命令中的图片文件名是指欲插入的图片文件 的文件名, 图片必需是eps格式的. 用graphicx包的includegraphics宏命令插入图片时还可以使图片旋转, 方法是:

      \includegraphics[height=高度][angle=旋转角度]{图片文件名}

参考:

在LaTeX文档中插入图片的几种常用的方法 http://hepg.sdu.edu.cn/Service/tips/latex/latexfig.html

注意:

图片文件格式必须是eps,你可以用convert转换

convert x.png x.eps

给段落加边框

加载\usepackage{boxedminipage}

\documentclass{article}
\usepackage{boxedminipage}
 
\begin{document}
 
\begin{boxedminipage}{.4\textwidth}
Each spring brings a new blossom of wildflowers in the ditches along the highway I travel daily to work.
\end{boxedminipage}
\begin{minipage}{.2\textwidth}
\hfill
\end{minipage}
\begin{minipage}{.4\textwidth}
Each spring brings a new blossom of wildflowers in the ditches along the highway I travel daily to work.
 
Each spring brings a new blossom of wildflowers in the ditches along the highway I travel daily to work. wildflowers.
\end{minipage}
 
\end{document}

参考

LaTeX技巧心得234:带边框的小页环境的使用技巧 http://blog.sina.com.cn/s/blog_5e16f1770100gwg7.html

添加列表项目

\begin{itemize}
	\item I'm sorry to have to say this but... 
	\item I'm sorry to bother you, but... 
	\item Maybe you forgot to... 
	\item I think you might have forgotten to... 
	\item Excuse me if I'm out of line, but... 
	\item There may have been a misunderstanding about... 
\end{itemize}

制作固定宽度的表格

\begin{table}[ht]
	\caption{making complains}
	\centering
	\begin{tabular}{| p{5cm} | p{5cm} | p{5cm} | }
	\hline \hline
	Formula & Example & Explanation \\
	\hline
	
	I'm sorry to have to say this but 	
	& I think we need to take another approach.\\
	
	Don't get me wrong, but I think we should 
	& concentrate on the Smith account for the moment. \\
\hline
\end{tabular}
\end{table}
office/editors/latex.txt · 最后更改: 2011/01/21 18:57 由 狐狸
[unknown link type]到顶部
GNU Free Documentation License 1.3
京ICP备05034962号 Debian Driven by DokuWiki get firefox browser Recent changes RSS feed Valid XHTML 1.0