File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11---
22layout : " lesson"
3- lang : " en "
4- title : " More on: Selecting fonts and using Unicode engines "
5- description : " This lesson shows a basic example in Lua for users who want to write Lua code in their document. "
6- toc-anchor-text : " More on: Selecting fonts and using Unicode engines "
3+ lang : " zh "
4+ title : " 更多内容:选择字体和使用Unicode引擎 "
5+ description : " 本课为想要在文档中编写Lua代码的用户展示了一个基本的Lua示例。 "
6+ toc-anchor-text : " 更多内容:选择字体和使用Unicode引擎 "
77---
88
9-
10-
11-
129## Lua
1310
14- The LuaTeX engine provides access to OpenType fonts in a similar way
15- to XeTeX, and most uses of the ` fontspec ` package work equally well
16- with either engine.
11+ LuaTeX引擎提供了类似于XeTeX的OpenType字体访问方式,大多数` fontspec ` 宏包的用法在这两个引擎上都同样有效。
1712
18- LuaTeX also extends TeX in other ways, notably by embedding the Lua
19- scripting language. This may be used for programming in a style more
20- familiar to people used to ‘mainstream’ programming languages. It also
21- offers the possibility to access inner workings of the TeX system and
22- modify the behaviour by substituting new code written in Lua.
13+ LuaTeX还以其他方式扩展了TeX,特别是通过嵌入Lua脚本语言。对于那些熟悉"主流"编程语言的人来说,这提供了一种更熟悉的编程风格。它还提供了访问TeX系统内部工作机制的可能性,并通过替换用Lua编写的新代码来修改行为。
2314
24- Lua programming is not covered by this course but a simple example to
25- calculate 2π is shown here.
15+ 本课程不涵盖Lua编程,但这里展示了一个计算2π的简单示例。
2616
2717``` latex
2818%!TEX lualatex
You can’t perform that action at this time.
0 commit comments