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 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 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 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186

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

== 굵게 (*)
----
A bold *word*, and a bold *phrase of text*.
Bold c**hara**cter**s** within a word.
----
====
A bold *word*, and a bold *phrase of text*.
Bold c**hara**cter**s** within a word.
====

== 기울임체 (_)
----
An italic _word_, and an italic _phrase of text_.
Italic c__hara__cter__s__ within a word.
----
====
An italic _word_, and an italic _phrase of text_.
Italic c__hara__cter__s__ within a word.
====

== 고정 폭 (`)
----
"`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!_
----
====
"`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!_
====

== 강조 표시 (#)
----
Mark my words, #automation is essential#.
Mark my words, auto##ma##tion is essential.
----
====
Mark my words, #automation is essential#.
Mark my words, auto##ma##tion is essential.
====

== 스타일 구문 ([.]#)
----
Do werewolves believe in [.small]#small print#?
[.big]##O##nce upon an infinite loop.
----
====
Do werewolves believe in [.small]#small print#?
[.big]##O##nce upon an infinite loop.
====

=== Text with custom role
....
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.
....
====
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.
====

== 아래 첨자 (~), 위 첨자 (^)
----
"`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.
----
====
"`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.
====

== 밑줄
----
The text pass:[<u>underline me</u>] is underlined.
----
====
The text pass:[<u>underline me</u>] is underlined.
====

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

a|
....
. {blank}
+
NOTE: 단락 
      note1
      note2

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

. {blank}
+
IMPORTANT: important

. {blank}
+
CAUTION: caution

. {blank}
+
WARNING: warning
....

a|
. {blank}
+
NOTE: 단락 
      note1
      note2

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

. {blank}
+
IMPORTANT: important

. {blank}
+
CAUTION: caution

. {blank}
+
WARNING: warning
|===