latex tabular自动换行
生活随笔
收集整理的這篇文章主要介紹了
latex tabular自动换行
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
轉(zhuǎn)載自:https://tex.stackexchange.com/questions/166743/automatic-line-break-in-tabular
使用tabularx
\documentclass[danish,a4paper,twoside,11pt]{report}\usepackage{tabularx}\begin{document} \begin{table}[h] \begin{tabularx}{\textwidth}{|l|X|} Use Case Navn: & Opret Server \\ Scenarie: & At oprette en server med bestemte regler som tillader folk at spille sammen. More Text more text More Text \\ \end{tabularx} \end{table} \end{document}
其中X表示占滿剩下的寬度。
其實(shí)tabularx可以在table環(huán)境外使用,像tabular一樣。所以上面的代碼可以簡(jiǎn)化為
\documentclass[danish,a4paper,twoside,11pt]{report}\usepackage{tabularx}\begin{document} \begin{tabularx}{\textwidth}{|l|X|} Use Case Navn: & Opret Server \\ Scenarie: & At oprette en server med bestemte regler som tillader folk at spille sammen. More Text more text More Text \\ \end{tabularx} \end{document}總結(jié)
以上是生活随笔為你收集整理的latex tabular自动换行的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: bat循环执行带参数_C++:main处
- 下一篇: caffe caffe.cpp 程序入口