字典翻译 问答 其它 latex文本居中问题想在生成的table下面加入文字:2013年5月10日,文字居中,该怎么写代码?documentclass{article}usepackage{amsmath,amssymb}usepackage{latexsym}usepackage{graphicx}usepackage{CJK}begin{document}begin{CJK*
问题标题:
latex文本居中问题想在生成的table下面加入文字:2013年5月10日,文字居中,该怎么写代码?documentclass{article}usepackage{amsmath,amssymb}usepackage{latexsym}usepackage{graphicx}usepackage{CJK}begin{document}begin{CJK*
问题描述:

latex文本居中问题

想在生成的table下面加入文字:2013年5月10日,文字居中,该怎么写代码?

documentclass{article}

usepackage{amsmath,amssymb}

usepackage{latexsym}

usepackage{graphicx}

usepackage{CJK}

begin{document}

begin{CJK*}{GBK}{song}

begin{table}

centering

begin{tabular}{p{120pt}p{180pt}}

makebox[120pt][s]{LARGE姓名}&

makebox[180pt][c]{largeXXX}

cline{2-2}

makebox[120pt][s]{LARGE院系}&

makebox[180pt][c]{largeXXX}

cline{2-2}

makebox[120pt][s]{LARGE专业}&

makebox[180pt][c]{largeXXX}

cline{2-2}

makebox[120pt][s]{LARGE年级}&

makebox[180pt][c]{largeXXX}

cline{2-2}

end{tabular}

end{table}

end{CJK*}

end{document}

还有为什么新输入文字后,这个表格就不在第一页跑到第二页去了?

陈绍敦回答:
  表格移位,是因为使用了浮动体table的缘故,自动安排合适的位置.   “2013年5月10日”是你的表格标题吗?可以用caption{2013年5月10日}指令.   如果不是标题想居中一行文本,可以用centerline{2013年5月10日}
点击显示
其它推荐
热门其它推荐
  • 其它