Tables
This document has a header that specifies the Tables.
This document is about the table.
1. 기본
.테이블 제목 [cols=""] |=== |헤더1열 |헤더2열 |1행1열 |1행2열 |2행1열 |2행2열 |=== |
-
결과
테이블 제목 헤더1열 헤더2열 1행 1열
1행 2열
2행 1열
2행 2열
2. 열
2.1. 열 너비
[cols="1,1,1,1"] |
|
[cols="4*"] |
|
[cols="25,25,25,25"] |
|
2.2. 열 정렬
정렬 연산자는 열 지정자에 적용되고 cols 속성에 할당됩니다.
< |
왼쪽 정렬 |
|
> |
오른쪽 정렬 |
|
^ |
가운데 정렬 |
.< |
위쪽 정렬 |
|
.> |
아래쪽 정렬 |
|
.^ |
가운데 정렬 |
2.3. 열 서식
서식 | 연산자 | 설명 |
---|---|---|
AsciiDoc |
a |
|
Default(기본) |
d |
단락에서 허용되는 모든 태그(예: 인라인 서식, 인라인 매크로) 지원 |
Header |
h |
머리글 의미와 스타일을 텍스트와 셀 테두리에 적용 |
Literal |
l |
리터럴 블록 안에 있는 것처럼 처리 |
Monospace |
m |
|
기울임 |
e |
텍스트 기울임꼴로 표시 |
굵게 |
s |
텍스트 굵게 표시 |
-
서식 연산자는 항상 열의 지정자 또는 승수의 마지막 위치에 배치
-
[cols=">1e,.^3s"]
-
[cols="3*.>m"]
-
-
특정 셀에만 서식을 지정할 때는 셀 구분자 세로 막대(|) 앞에 서식 연산자 지정
-
a| : 블록 요소 지원
-
e| : 텍스트 기울임꼴
-
3. 행
|
1 | 여는 구분 기호(|===) 바로 뒤의 줄에서 첫 번째 행의 모든 셀을 한 줄에 입력합니다.
|
||||||
2 | 머리글 행 바로 뒤의 줄은 비워 둡니다. | ||||||
3 | 새 셀을 만들려면 Shift+|. 세로 막대(|) 뒤에 해당 셀에 표시할 내용을 입력합니다. | ||||||
4 | 새 줄에서 다른 셀을 입력합니다. | ||||||
5 | 행은 하나 이상의 빈 줄로 구분됩니다.
|
4. 셀
-
셀 지정자 순서
<factor><span(+) 또는 중복(*)연산자><가로정렬연산자><세로정렬연산자><서식연산자>|<셀내용> |
4.1. 셀 병합
-
열 병합
열 범위 인수(n
)와 범위 연산자(``)를 입력합니다. 예) 2 -
행 병합
행 범위 인수(.n
)와 범위 연산자(``)를 입력합니다. 예) .2
|
-
결과
Column 1,
header rowColumn 2,
header rowColumn 3,
header rowColumn 4,
header rowCell in column 1, row 2
This cell spans columns 2 and 3 and rows 2, 3, and 4 because its specifier contains a span of
2.3+
Cell in column 4, row 2
Cell in column 1, row 3
Cell in column 4, row 3
Cell in column 1, row 4
Cell in column 4, row 4
4.2. 셀 정렬
셀의 내용을 가로로 가운데에 맞추려면 셀의 구분 기호(|) 앞에 연산자를 배치합니다.
|
-
결과
column 1 column 2 column 3 This cell spans two rows(
.2+
), and its content is aligned to the right (>
) and the bottom(.>
).This cell spans two columns(
2+
), and its content is horizontally centered(^
).This content is duplicated in two adjacent columns(
2*
). It’s content is aligned to the left of the cell by default.This content is duplicated in two adjacent columns(
2*
). It’s content is aligned to the left of the cell by default.
4.3. 셀 서식
서식 연산자는 항상 셀 지정자의 마지막에 입력됩니다.
셀의 구분 기호(|)와 연산자 사이에 공백을 삽입하지 마세요.
import os
|
-
결과
Column 1 Column 2 This cell spans 3 rows (
3+
).
The content is centered horizontally (^
), vertically aligned to the bottom of the cell (.>
), and styled as strong (s
).This content is italicized (
e
).This content is rendered using a monospace font (
m
).This content is bold (
s
).This cell supports block elements (
a
).
* List item 1
* List item 2import os print "%s" %(os.uname())