/test/target/ok/table.man

http://txt2tags.googlecode.com/ · Unknown · 195 lines · 151 code · 44 blank · 0 comment · 0 complexity · 3d95c836d3235da44dfe23d0f5b7bb17 MD5 · raw file

  1. .TH "" 1 "" ""
  2. .SH Simple table
  3. .TS
  4. tab(^); lll.
  5. Cell 1\-1^Cell 1\-2^Cell 1\-3
  6. Cell 2\-1^Cell 2\-2^Cell 2\-3
  7. Cell 3\-1^Cell 3\-2^Cell 3\-3
  8. .TE
  9. .SH Simple table + border
  10. .TS
  11. allbox, tab(^); lll.
  12. Cell 1\-1^Cell 1\-2^Cell 1\-3
  13. Cell 2\-1^Cell 2\-2^Cell 2\-3
  14. Cell 3\-1^Cell 3\-2^Cell 3\-3
  15. .TE
  16. .SH Simple table + heading
  17. .TS
  18. tab(^); lll.
  19. \fBHead 1\-1\fR^\fBHead 1\-2\fR^\fBHead 1\-3\fR
  20. Cell 1\-1^Cell 1\-2^Cell 1\-3
  21. Cell 2\-1^Cell 2\-2^Cell 2\-3
  22. Cell 3\-1^Cell 3\-2^Cell 3\-3
  23. .TE
  24. .SH Simple table + heading + border
  25. .TS
  26. allbox, tab(^); lll.
  27. \fBHead 1\-1\fR^\fBHead 1\-2\fR^\fBHead 1\-3\fR
  28. Cell 1\-1^Cell 1\-2^Cell 1\-3
  29. Cell 2\-1^Cell 2\-2^Cell 2\-3
  30. Cell 3\-1^Cell 3\-2^Cell 3\-3
  31. .TE
  32. .SH Simple table + heading + border + footer
  33. .TS
  34. allbox, tab(^); lll.
  35. \fBHead 1\-1\fR^\fBHead 1\-2\fR^\fBHead 1\-3\fR
  36. Cell 1\-1^Cell 1\-2^Cell 1\-3
  37. Cell 2\-1^Cell 2\-2^Cell 2\-3
  38. Cell 3\-1^Cell 3\-2^Cell 3\-3
  39. \fBFoot 1\-1\fR^\fBFoot 1\-2\fR^\fBFoot 1\-3\fR
  40. .TE
  41. .SH Simple table + heading + border + centralized
  42. .TS
  43. center, allbox, tab(^); lll.
  44. \fBHead 1\-1\fR^\fBHead 1\-2\fR^\fBHead 1\-3\fR
  45. Cell 1\-1^Cell 1\-2^Cell 1\-3
  46. Cell 2\-1^Cell 2\-2^Cell 2\-3
  47. Cell 3\-1^Cell 3\-2^Cell 3\-3
  48. .TE
  49. .SH Cell alignment
  50. .TS
  51. allbox, tab(^); ll.
  52. =======^=======
  53. <^>
  54. =^=
  55. >^<
  56. .TE
  57. .SH Heading alignment
  58. .TS
  59. allbox, tab(^); ll.
  60. \fB=======\fR^\fB=======\fR
  61. \fB<\fR^\fB>\fR
  62. \fB=\fR^\fB=\fR
  63. \fB>\fR^\fB<\fR
  64. .TE
  65. .SH Column span for cells
  66. .TS
  67. allbox, tab(^); llll.
  68. 1^2^3^4
  69. 1^2^3 + 4
  70. 1 + 2 + 3^4
  71. 1^2 + 3^4
  72. 1 + 2 + 3 + 4
  73. .TE
  74. .SH Column span for headings
  75. .TS
  76. allbox, tab(^); llll.
  77. \fB1\fR^\fB2\fR^\fB3\fR^\fB4\fR
  78. \fB1\fR^\fB2\fR^\fB3 + 4\fR
  79. \fB1 + 2 + 3\fR^\fB4\fR
  80. \fB1\fR^\fB2 + 3\fR^\fB4\fR
  81. \fB1 + 2 + 3 + 4\fR
  82. .TE
  83. .SH Cell alignment + column span
  84. .TS
  85. allbox, tab(^); lll.
  86. =======^=======^=======
  87. <^=
  88. =
  89. =^>
  90. .TE
  91. .SH Heading alignment + column span
  92. .TS
  93. allbox, tab(^); lll.
  94. \fB=======\fR^\fB=======\fR^\fB=======\fR
  95. \fB<\fR^\fB=\fR
  96. \fB=\fR
  97. \fB=\fR^\fB>\fR
  98. .TE
  99. .SH Some empty cells
  100. .TS
  101. allbox, tab(^); lllll.
  102. A^B^C^D^
  103. F^G^H^^J
  104. K^L^^N^O
  105. P^^R^S^T
  106. ^V^W^X^Y
  107. .TE
  108. .SH Lines with different number of cells, increase
  109. .TS
  110. allbox, tab(^); l.
  111. 1
  112. 1^2
  113. 1^2^3
  114. 1^2^3^4
  115. 1^2^3^4^5
  116. .TE
  117. .SH Lines with different number of cells, decrease
  118. .TS
  119. allbox, tab(^); lllll.
  120. 1^2^3^4^5
  121. 1^2^3^4
  122. 1^2^3
  123. 1^2
  124. 1
  125. .TE
  126. .SH One cell table
  127. .TS
  128. tab(^); l.
  129. Cell 1
  130. .TE
  131. .SH One cell table + border
  132. .TS
  133. allbox, tab(^); l.
  134. Cell 1
  135. .TE
  136. .SH One cell table + heading
  137. .TS
  138. tab(^); l.
  139. \fBHead 1\fR
  140. .TE
  141. .SH One cell table + heading + border
  142. .TS
  143. allbox, tab(^); l.
  144. \fBHead 1\fR
  145. .TE
  146. .SH Empty lines
  147. .TS
  148. allbox, tab(^); l.
  149. .TE
  150. .\" man code generated by txt2tags (http://txt2tags.org)
  151. .\" cmdline: txt2tags -q --no-rc -i table.t2t -t man