text-formatting.adoc 3.75 KB
Newer Older
heywon.choi's avatar
heywon.choi committed
1 2
= Text Formatting
Gildong Hong <email1@bwg.com>
heywon.choi's avatar
heywon.choi committed
3 4 5 6
:description: The document's description. This document is about the text formatting.
include::../attributes/common_attrs.adoc[]
include::../attributes/dir_attrs.adoc[]
include::../attributes/common_css.adoc[]
heywon.choi's avatar
heywon.choi committed
7 8 9 10 11 12 13 14 15

[abstract]
.문서개요
--
This document has a header that specifies the {doctitle}.
This document is about the text formatting.
--

== 굵게 (*)
heywon.choi's avatar
heywon.choi committed
16 17 18 19 20
----
A bold *word*, and a bold *phrase of text*.
Bold c**hara**cter**s** within a word.
----
====
heywon.choi's avatar
heywon.choi committed
21 22
A bold *word*, and a bold *phrase of text*.
Bold c**hara**cter**s** within a word.
heywon.choi's avatar
heywon.choi committed
23
====
heywon.choi's avatar
heywon.choi committed
24 25

== 기울임체 (_)
heywon.choi's avatar
heywon.choi committed
26 27 28 29 30
----
An italic _word_, and an italic _phrase of text_.
Italic c__hara__cter__s__ within a word.
----
====
heywon.choi's avatar
heywon.choi committed
31 32
An italic _word_, and an italic _phrase of text_.
Italic c__hara__cter__s__ within a word.
heywon.choi's avatar
heywon.choi committed
33
====
heywon.choi's avatar
heywon.choi committed
34 35

== 고정 폭 (`)
heywon.choi's avatar
heywon.choi committed
36 37 38 39 40 41 42
----
"`Wait!`" Indigo plucked a small vial from her desk's top drawer
and held it toward us.
The vial's label read: `E=mc^2^`; the `E` represents _energy_,
but also pure _genius!_
----
====
heywon.choi's avatar
heywon.choi committed
43 44 45 46
"`Wait!`" Indigo plucked a small vial from her desk's top drawer
and held it toward us.
The vial's label read: `E=mc^2^`; the `E` represents _energy_,
but also pure _genius!_
heywon.choi's avatar
heywon.choi committed
47
====
heywon.choi's avatar
heywon.choi committed
48 49

== 강조 표시 (#)
heywon.choi's avatar
heywon.choi committed
50
----
heywon.choi's avatar
heywon.choi committed
51
Mark my words, #automation is essential#.
heywon.choi's avatar
heywon.choi committed
52 53 54 55 56 57
Mark my words, auto##ma##tion is essential.
----
====
Mark my words, #automation is essential#.
Mark my words, auto##ma##tion is essential.
====
heywon.choi's avatar
heywon.choi committed
58 59

== 스타일 구문 ([.]#)
heywon.choi's avatar
heywon.choi committed
60 61 62 63 64
----
Do werewolves believe in [.small]#small print#?
[.big]##O##nce upon an infinite loop.
----
====
heywon.choi's avatar
heywon.choi committed
65 66
Do werewolves believe in [.small]#small print#?
[.big]##O##nce upon an infinite loop.
heywon.choi's avatar
heywon.choi committed
67
====
heywon.choi's avatar
heywon.choi committed
68 69

=== Text with custom role
heywon.choi's avatar
heywon.choi committed
70
....
heywon.choi's avatar
heywon.choi committed
71 72 73 74 75 76 77 78 79
This sentence contains [.userinput]*bold inline content* that's assigned a role.
=> HTML:

[source,html]
----
<p>This sentence contains <strong class="userinput">bold inline content</strong> that&#8217;s assigned a role.</p>
----
** See the link:Blocks_sample.adoc#blocks_sample[Blocks sample] for more details about the block usage.
** See the link:Links_sample.adoc#links_sample[Links sample] for more details about the link usage.
heywon.choi's avatar
heywon.choi committed
80 81 82 83 84 85 86 87 88 89 90 91
....
====
This sentence contains [.userinput]*bold inline content* that's assigned a role.
=> HTML:

[source,html]
----
<p>This sentence contains <strong class="userinput">bold inline content</strong> that&#8217;s assigned a role.</p>
----
** See the link:Blocks_sample.adoc#blocks_sample[Blocks sample] for more details about the block usage.
** See the link:Links_sample.adoc#links_sample[Links sample] for more details about the link usage.
====
heywon.choi's avatar
heywon.choi committed
92 93

== 아래 첨자 (~), 위 첨자 (^)
heywon.choi's avatar
heywon.choi committed
94 95 96 97 98 99
----
"`Well the H~2~O formula written on their whiteboard could be part
of a shopping list, but I don't think the local bodega sells
E=mc^2^,`" Lazarus replied.
----
====
heywon.choi's avatar
heywon.choi committed
100 101 102
"`Well the H~2~O formula written on their whiteboard could be part
of a shopping list, but I don't think the local bodega sells
E=mc^2^,`" Lazarus replied.
heywon.choi's avatar
heywon.choi committed
103
====
heywon.choi's avatar
heywon.choi committed
104 105

== 밑줄
heywon.choi's avatar
heywon.choi committed
106 107 108 109 110 111
----
The text pass:[<u>underline me</u>] is underlined.
----
====
The text pass:[<u>underline me</u>] is underlined.
====
heywon.choi's avatar
heywon.choi committed
112 113 114 115 116 117 118 119 120 121

== 권고 레이블
* 레이블은 대문자여야 함.
* 단락일 경우 
** 레이블 바로 뒤에 콜론(:)이 온다.
** 단락의 첫 번째 줄을 레이블에서 한 칸으로 구분
* 블록일 경우
** 속성 목록([ ])에서 레이블을 설정
** 일반적으로 예제 블록(====)에 설정
* 종류
heywon.choi's avatar
heywon.choi committed
122 123 124 125 126 127
[cols="2*"]
|===
|소스 |결과

a|
....
heywon.choi's avatar
heywon.choi committed
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154
. {blank}
+
NOTE: 단락 
      note1
      note2

. {blank}
+
[TIP]
.tips
====
* 블록
* tip1
* tip2
====

. {blank}
+
IMPORTANT: important

. {blank}
+
CAUTION: caution

. {blank}
+
WARNING: warning
heywon.choi's avatar
heywon.choi committed
155
....
heywon.choi's avatar
heywon.choi committed
156

heywon.choi's avatar
heywon.choi committed
157 158 159 160 161 162
a|
. {blank}
+
NOTE: 단락 
      note1
      note2
heywon.choi's avatar
heywon.choi committed
163

heywon.choi's avatar
heywon.choi committed
164 165 166 167 168 169 170 171 172
. {blank}
+
[TIP]
.tips
====
* 블록
* tip1
* tip2
====
heywon.choi's avatar
heywon.choi committed
173

heywon.choi's avatar
heywon.choi committed
174 175 176 177 178 179 180 181 182 183 184 185
. {blank}
+
IMPORTANT: important

. {blank}
+
CAUTION: caution

. {blank}
+
WARNING: warning
|===
heywon.choi's avatar
heywon.choi committed
186