Text_formatting.adoc 3.84 KB
Newer Older
heywon.choi's avatar
heywon.choi committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
= Text Formatting
Gildong Hong <email1@bwg.com>
:description: The document's description. This document is about the table sample.
include::./attributes/common_attrs.adoc[]
include::./attributes/dir_attrs.adoc[]
include::./styles/userinput.css[]


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

.About {author}
This is a basic AsciiDoc document by {author}.
You can contact {firstname} at {email}.

== 굵게 (*)
heywon.choi's avatar
heywon.choi committed
21 22 23 24 25
----
A bold *word*, and a bold *phrase of text*.
Bold c**hara**cter**s** within a word.
----
====
heywon.choi's avatar
heywon.choi committed
26 27
A bold *word*, and a bold *phrase of text*.
Bold c**hara**cter**s** within a word.
heywon.choi's avatar
heywon.choi committed
28
====
heywon.choi's avatar
heywon.choi committed
29 30

== 기울임체 (_)
heywon.choi's avatar
heywon.choi committed
31 32 33 34 35
----
An italic _word_, and an italic _phrase of text_.
Italic c__hara__cter__s__ within a word.
----
====
heywon.choi's avatar
heywon.choi committed
36 37
An italic _word_, and an italic _phrase of text_.
Italic c__hara__cter__s__ within a word.
heywon.choi's avatar
heywon.choi committed
38
====
heywon.choi's avatar
heywon.choi committed
39 40

== 고정 폭 (`)
heywon.choi's avatar
heywon.choi committed
41 42 43 44 45 46 47
----
"`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
48 49 50 51
"`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
52
====
heywon.choi's avatar
heywon.choi committed
53 54

== 강조 표시 (#)
heywon.choi's avatar
heywon.choi committed
55
----
heywon.choi's avatar
heywon.choi committed
56
Mark my words, #automation is essential#.
heywon.choi's avatar
heywon.choi committed
57 58 59 60 61 62
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
63 64

== 스타일 구문 ([.]#)
heywon.choi's avatar
heywon.choi committed
65 66 67 68 69
----
Do werewolves believe in [.small]#small print#?
[.big]##O##nce upon an infinite loop.
----
====
heywon.choi's avatar
heywon.choi committed
70 71
Do werewolves believe in [.small]#small print#?
[.big]##O##nce upon an infinite loop.
heywon.choi's avatar
heywon.choi committed
72
====
heywon.choi's avatar
heywon.choi committed
73 74

=== Text with custom role
heywon.choi's avatar
heywon.choi committed
75
....
heywon.choi's avatar
heywon.choi committed
76 77 78 79 80 81 82 83 84
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
85 86 87 88 89 90 91 92 93 94 95 96
....
====
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
97 98

== 아래 첨자 (~), 위 첨자 (^)
heywon.choi's avatar
heywon.choi committed
99 100 101 102 103 104
----
"`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
105 106 107
"`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
108
====
heywon.choi's avatar
heywon.choi committed
109 110

== 밑줄
heywon.choi's avatar
heywon.choi committed
111 112 113 114 115 116
----
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
117 118 119 120 121 122 123 124 125 126

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

a|
....
heywon.choi's avatar
heywon.choi committed
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159
. {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
160
....
heywon.choi's avatar
heywon.choi committed
161

heywon.choi's avatar
heywon.choi committed
162 163 164 165 166 167
a|
. {blank}
+
NOTE: 단락 
      note1
      note2
heywon.choi's avatar
heywon.choi committed
168

heywon.choi's avatar
heywon.choi committed
169 170 171 172 173 174 175 176 177
. {blank}
+
[TIP]
.tips
====
* 블록
* tip1
* tip2
====
heywon.choi's avatar
heywon.choi committed
178

heywon.choi's avatar
heywon.choi committed
179 180 181 182 183 184 185 186 187 188 189 190
. {blank}
+
IMPORTANT: important

. {blank}
+
CAUTION: caution

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