
.docgen.0.0.12.source-code.default.xlstemplate Maven / Gradle / Ivy
The newest version!
#*
Word文档
*#
#macro(wordDocument)
$bodyContent
#end
#*
文档属性,只能放在wordDocument中
*#
#macro(documentProperties)
$bodyContent
#end
#*
作者,只能放在documentProperties中
*#
#macro(author $author)
$author
#end
#*
最后作者,只能放在documentProperties中
*#
#macro(lastAuthor $author)
$author
#end
#*
defaultFont有如下属性
name:字体名称
ansi:ansi字体名称
fareast:远东字体名称
ascii:ascii字体名称
*#
#macro(fonts $defaultFont)
$bodyContent
#end
#*
*#
#*
字体预定义,只能放在fonts标签下
*#
#macro(fontPredefine
$fontInfo)
#if($fontInfo.panose)
#end
#if($fontInfo.charset)
#end
#if($fontInfo.family)
#end
#if($fontInfo.pitch)
#end
#end
#*
文档主体
*#
#macro(body)
$bodyContent
#end
#macro(table)
$bodyContent
#end
#*
表的列定义
*#
#macro(tableColumns)
$bodyContent
#end
#*
定义具体的一列的宽度
*#
#macro(tableColumn $width)
#end
#*
定义具体的一行
*#
#macro(tr)
$bodyContent
#end
#*
span,合并信息
colspan表示几列合并
rowStart表示列合并开始
rowContinue表示列合并开始
*#
#macro(td $span)
#if($span.colspan)
#end
#if($span.start)
#end
#if($span.rowContinue)
#end
$bodyContent
#end
#*
段落
content是指段落的内容
style是段落的格式
indent:缩进
bold加粗
strike删除线
italic斜线
underline下划线
font字体
headingSize第几号标题
align对齐方式
*#
#macro(paragraph
$content
$style)
#if($style.align)
#align($style.align)
#end
#if($style.indent)
#indent($style.indent)
#end
#if(style.bold)
#end
#if(style.strike)
#end
#if(style.font)
#font(style.font)
#end
#if(style.italic)
#end
#if(style.underline)
#end
#if($style.headingSize)
#header($style.headingSize)
#end
$content
#end
#macro(align $alignInfo)
#end
#*
fontInfo包含以下内容
name:字体名字
size字体大小
*#
#macro(font $fontInfo)
#if($font.name)
#end
#if($font.size)
#end
#end
#*
listInfo包含两个内容:
index序号
char紧跟的字符
font编号字体
*#
#macro(list
$listInfo)
#end
#*
bullets包含两个内容:
index序号
char紧跟的字符
font编号字体
*#
#macro(bullets
$bulletsInfo)
#end
#*
缩进
left:表示左缩进
firstLine:表示首行缩进
*#
#macro(indent $indentInfo)
#end
#macro(header $size)
#end
© 2015 - 2025 Weber Informatics LLC | Privacy Policy