GNU TeXmacsUser manualReferenceAboutEnglish·Français·Deutsch·Español·Italiano·Português·Polski·中文
属性标记

属性标记是文本中最简单的结构之一。插入\(\rightarrow\)内容标记下拉菜单列出了所有的属性标记。属性标记表明一段文字具有特殊性质或者为特殊目的服务。比如,重要的文本应当用strong来标记。该标记默认将字体渲染成粗体。需要注意的是,文档样式不同,加强文本后渲染效果也会有所不同。比如在幻灯片中,加强文本的渲染效果可能是带点透明效果的不同的颜色。下面是最常用的一些属性标记及其目的:

表格 1. 常用属性标记一览。

标记 例子 目的
strong this is important 加粗文本以显示其重要性
em the real thing 强调一段文本
dfn A gnu is a horny beast 一些概念的定义
samp the ae ligature æ 字母序列
name the Linux system 某物的名称
person I am Joris 某人的名字
cite* Melville's Moby Dick 参考书目
abbr I work at the C.N.R.S. 缩写
acronym the HTML format 首字母缩写
verbatim the program said hello 纯文本,比如计算机程序的输出
kbd Please type return 应当用键盘输入的文本
code* cout << 1+1; yields 2 代码
var cp src-file dest-file 程序中的变量
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".