找回密码
 注册
查看: 586|回复: 0

R语言 BiocCaseStudies包 markup()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-25 13:27:50 | 显示全部楼层 |阅读模式
markup(BiocCaseStudies)
markup()所属R语言包:BiocCaseStudies

                                        Markup commands.
                                         标记命令。

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Usage of predefined markup commands for layout of Bioc Case
布局Bioc案例预定义的标记命令的用法


Details

详情----------Details----------

The following markup commands, LaTeX makros and environments are available for controling the layout and structure of the book:
下面的标记命令,LaTeX的makros和环境是这本书的布局和结构的控制:

Ex:environment for exercise chunks.
Ex:环境运动块。

solution:environment for solutions to the exercises.
solution:练习的解决方案的环境。

\myincfig:macro for figure environments with three parameters: (1) figure filename (2) figure width (3) figure caption
\myincfig:(2)宏观数字环境有三个参数:(1),图名图宽度(3),图题

\solfig:macro for figure environments within solution chunks. This is necessary because LaTex doesn't allow for floats within minipage environments.
\solfig:宏解决方案区块内的数字环境。这是必要的,因为乳胶不允许minipage环境中的彩车。

\myref:reference to other labs/chapters. For the book this is a simplewrapper around ref ignoring the second argument, for the labs this command is replaced in the useRlabs.sty file allowing for referencing bbetween the individual documents.
\myref:参考其他实验室/章节。为这本书,这是周围的文献simplewrapper忽略第二个参数,实验室此命令取代,在useRlabs.sty允许,引用bbetween个人文件的文件。

\booklab:macro for conditional text input with two parameters. The first parameter will be used for the book while the second will be used for the labs.
\booklab:有条件的文字输入两个参数的宏。将用于这本书的第一个参数,而第二个将用于实验室。

The following makros will automatically create index entries as side effect. Apart from that they do text highlighting as well.
以下makros将自动创建索引条目副作用。除此之外,他们以及文本突出。

\R:the R language glyph (in sans serif font)
\R:R语言符号(sans serif字体)

\Rpackage:an R package (in bold font)
\Rpackage:R包(粗体)

\Rclass:an R class (in italics)
\Rclass:R类(斜体)

\Rmethod:an R method (in small typewriter font)
\Rmethod:R法(在小打字机字体)

\Rfunction:an R function (in small typewriter font)
\Rfunction:R函数(在小打字机字体)

Implicit index terms can be generated using
隐式指数计算,可以使用

\indexTerm:with the optional first argument giving the actual term and the second argument giving a string that appears in the text. E.g. indexTerm[tree]{trees} would give you "trees" in the text but create an index for "tree". Omitting the optional first argument will create an index for the same string that appears in the text.
\indexTerm:可选的第一个参数,给予实际的短期和给一个字符串,在文本中出现的第二个参数。例如indexTerm[tree]{trees}会给你在文本中的“树”,但“树”创建索引。省略了可选的第一个参数,将创建一个在文本中出现的相同的字符串的索引。

Some more usful text markup that doesn't create indices:
一些更usful文本标记不创建索引:

\Robject:an R object (in small typewriter font)
\Robject:R对象(在小打字机字体)

\Rfunarg:the agument to an R function (in italics)
\Rfunarg:R功能(斜体)agument

\code:typewriter font
\code:打字机字体

\term:whatever \{emph} is set to
\term:任何\{emph}设置为

\file:italics
\file:斜体

\reg:The registered trademark glyph
\reg:注册商标字形

The following environments are used to structure the document and for parsing . They do not impose any layout.
以下的环境中使用结构的文件,并进行解析。他们不施加任何布局。

chapterheader:this contains title, authors and abstract of the chapter/lab
chapterheader:这包含标题,作者和抽象章/实验室

chapterbody:this contains the actual chapter body
chapterbody:这包含了实际的章体

chaptertrailer:this contains session info and references for a chapter
chaptertrailer:这包含会话信息和参考一章

\yaa:This is a wrapper for input also setting the graphics include path. Its first parameter is filename, second parameter is graphics path
\yaa:这是一个包装input还设置图形包括路径。其第一个参数是文件名,第二个参数是图形路径

Color and options
颜色和选项

colors:There are some predefined colors that should be used consistantly throughout the whole book for things like histograms, barplots, etc. They are defined by BiocCaseStudies as objects lcol1, lcol2 and lcol3 for light colors, and dcol1, dcol2 and dcol3 for dark colors.
颜色:有一些预定义的颜色应该用于在整个书consistantly像直方图,barplots等事情他们定义BiocCaseStudies为对象lcol1,lcol2和lcol3光的颜色,和dcol1,dcol2和dcol3黑暗的颜色。

Sweave options:The boolean option hideme can be used in Sweave code chunks that should not be part of the Stangle output. This only effects Stangle, so a "regular" Sweave will evaluate these chunks. The intention is to have the possibility for sanity checks or conditional code evaluation which should not confuse the users when they work with the extracted code.
sweave选项:布尔选项hideme可以Sweave代码块不应该的Stangle输出部分使用。这仅影响Stangle,所以“定期”的Sweave将评估这些块。其用意是有健康检查或有条件的代码评估,不应该混淆的用户,当他们提取的代码工作的可能性。


作者(S)----------Author(s)----------


Florian Hahne

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-1-24 22:44 , Processed in 0.028912 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表