大家来学latex

 

多行注释

 

/iffalse  %注释开始
%
需要注释掉的内容
……..
/fi
   %注释结束

 

 

 

/.../ 写法

 

This is my first /LaTeX typesetting example.

 

会被被释成:

 

This is my first LATEXtypesetting example.

 

LATEX typesetting 连起来了,要使中间有空格要这样:

 

This is my first {/LaTeX} typesetting example.

This is my first /LaTeX{} typesetting example.

This is my first /LaTeX/ typesetting example.

 

///

 

% 除注释以外的用法

a try 分行写,而且它们是连起来

 

This is my fisrt /LaTeX/ document. Give /LaTeX/ a%

try.

 

会被被释成:

 

      This is my fisrt LATEX document. Give LATEX atry.

 

~ /  强迫插入一个较小的字间空白

 

~  /  几乎是一样的,但是/ 表示不可以在这里进行换行。

 

~ TeX里表示tie ,就是绑住的意思

 

I am Mr.~Edward G.J. Lee, G.J. is a abbreviation of my name.

I am Mr./ Edward G.J. Lee, G.J. is a abbreviation of my name.

生成:

I am Mr. Edward G.J. Lee, G.J. is an abbreviation of my name.

I am Mr. Edward G.J. Lee, G.J. is an abbreviation of my name.

 

/null 表示后面的标点表示句子结束,所以标点后要加稍大点的空白

 

Please see Appendix A. We will be there soon.

Please see Appendix A/null. We will be there soon.

 

 

 

/ldots /dots 省略号

 

I’m not a good man ..., but a good husband .... 错误示范

I’m not a good /ldots/ man /ldots, but a good husband /ldots.

I’m not a good /dots/ man /dots, but a good husband /dots.

 

- -- --- 破折号

 

$-5$ 减号

 

$-5$ 输出5

 

 

蓝色字体

 

/documentclass{article}

/usepackage{color}

/begin{document}

/textcolor{blue}{This is blue color.}

/end{document}

 

 

 

 

 

LaTeX 文档结构

 

/documentclass{article}

这里是preamble

/begin{document}

这里是文本区

/end{document}

/documentclass{article}

 

 

会影响整篇文档的指令,通常是放在preamble 区:

 

 

/linespread 将行距扩大1.36

 

/linespread{1.36} 

 

/parindent=0pt

 

 

/parindent 将全文缩排设成0

 

/parindent=0pt

 

/noindent 下指令的地方缩排设成0

 

 

 

  

//[1cm] 换行,行间间距一厘米

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值