Tutorial
|
Onetastic Macro Documentation >
>
Bulleted and numbered lists
Bulleted and Numbered Lists
Paragraph objects can be part of bulleted or numbered lists. To check whether a paragraph is part of a bulleted or numbered list, you can use one of the following properties:
isPartOfList (read-only)
isPartOfBulletedList
isPartOfNumberedList
You can set isPartOfBulletedList or isPartOfNumberedList property to true to create a bulleted or numbered paragraph. Setting them to false will remove the bullet or number.
Bullet Types
Paragraph objects that are part of a bulleted list have the bulletType property indicating what type of bullet they are displaying. Valid bullet type values are given below:
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 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 |
 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Below is an example of how to create bulleted lists:
Copied!
$outline = GetCurrentPage().outlines[0]
$p = InsertObject($outline, "Paragraph", -1)
$p.indent = 1
$p.text = "Main Item 1"
$p.isPartOfBulletedList = true
$p.bulletType = 2
$p = InsertObject($outline, "Paragraph", -1)
$p.indent = 2
$p.text = "Sub Item 1"
$p.isPartOfBulletedList = true
$p.bulletType = 3
$p = InsertObject($outline, "Paragraph", -1)
$p.indent = 2
$p.text = "Sub Item 2"
$p.isPartOfBulletedList = true
$p.bulletType = 3
$p = InsertObject($outline, "Paragraph", -1)
$p.indent = 1
$p.text = "Main Item 2"
$p.isPartOfBulletedList = true
$p.bulletType = 2
Number Sequences
Paragraph objects that are part of a numbered list have the numberSequence property indicating what type of number sequence they are displaying. Valid number sequence values are given below:
English
| Seq | Name | Example |
| 0 | Arabic | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10. |
| 1 | Roman Capital | I, II, III, IV, V, VI, VII, VIII, IX, X. |
| 2 | Roman Small | i, ii, iii, iv, v, vi, vii, viii, ix, x. |
| 3 | Letter Capital | A, B, C, D, E, F, G, H, I, J. |
| 4 | Letter Small | a, b, c, d, e, f, g, h, i, j. |
| 5 | Ordinal | 1st, 2nd, 3rd, 4th, 5th, 6th, 7th, 8th, 9th, 10th. |
| 6 | Cardinal Text | One, Two, Three, Four, Five, Six, Seven, Eight, Nine, Ten. |
| 7 | Ordinal Text | First, Second, Third, Fourth, Fifth, Sixth, Seventh, Eighth, Ninth, Tenth. |
| 8 | Hexadecimal | 1, 2, 3, 4, 5, 6, 7, 8, 9, A. |
| 9 | Chicago Manual of Style | *, †, ‡, §, **, ††, ‡‡, §§, ***, †††. |
Japanese
| Seq | Name | Example |
| 10 | Ideograph Digital | 一, 二, 三, 四, 五, 六, 七, 八, 九, 一〇. |
| 11 | Japanese Counting | 一, 二, 三, 四, 五, 六, 七, 八, 九, 十. |
| 12 | Aiueo | ア, イ, ウ, エ, オ, カ, キ, ク, ケ, コ. |
| 13 | Iroha | イ, ロ, ハ, ニ, ホ, ヘ, ト, チ, リ, ヌ. |
| 14 | Decimal Full Width | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10. |
| 15 | Decimal Half Width | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10. |
| 16 | Japanese Legal | 壱, 弐, 参, 四, 伍, 六, 七, 八, 九, 壱拾. |
| 17 | Japanese Digital Ten Thousand | 一, 二, 三, 四, 五, 六, 七, 八, 九, 一〇. |
| 18 | Decimal Enclosed Circle | ①, ②, ③, ④, ⑤, ⑥, ⑦, ⑧, ⑨, ⑩. |
| 19 | Decimal Full Width 2 | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10. |
| 20 | Aiueo Full Width | ア, イ, ウ, エ, オ, カ, キ, ク, ケ, コ. |
| 21 | Iroha Full Width | イ, ロ, ハ, ニ, ホ, ヘ, ト, チ, リ, ヌ. |
Chinese
| Seq | Name | Example |
| 26 | Decimal Enclosed Full stop | ⒈, ⒉, ⒊, ⒋, ⒌, ⒍, ⒎, ⒏, ⒐, ⒑. |
| 27 | Decimal Enclosed Parenthesis | ⑴, ⑵, ⑶, ⑷, ⑸, ⑹, ⑺, ⑻, ⑼, ⑽. |
| 28 | Decimal Enclosed Circle | ①, ②, ③, ④, ⑤, ⑥, ⑦, ⑧, ⑨, ⑩. |
| 29 | Ideograph Enclosed Circle | ㈠, ㈡, ㈢, ㈣, ㈤, ㈥, ㈦, ㈧, ㈨, ㈩. |
| 30 | Ideograph Traditional | 甲, 乙, 丙, 丁, 戊, 己, 庚, 辛, 壬, 癸. |
| 31 | Ideograph Zodiac | 子, 丑, 寅, 卯, 辰, 巳, 午, 未, 申, 酉. |
| 32 | Ideograph Zodiac Traditional | 甲子, 乙丑, 丙寅, 丁卯, 戊辰, 己巳, 庚午, 辛未, 壬申, 癸酉. |
| 33 | Taiwanese Counting | 一, 二, 三, 四, 五, 六, 七, 八, 九, 十. |
| 34 | Ideograph Legal Traditional | 壹, 貳, 參, 肆, 伍, 陸, 柒, 捌, 玖, 壹拾. |
| 35 | Taiwanese Counting Thousand | 一, 二, 三, 四, 五, 六, 七, 八, 九, 十. |
| 36 | Taiwanese Digital | 一, 二, 三, 四, 五, 六, 七, 八, 九, 一○. |
| 37 | Chinese Counting | 一, 二, 三, 四, 五, 六, 七, 八, 九, 十. |
| 38 | Chinese Legal Simplified | 壹, 贰, 叁, 肆, 伍, 陆, 柒, 捌, 玖, 壹拾. |
| 39 | Chinese Counting Thousand | 一, 二, 三, 四, 五, 六, 七, 八, 九, 十. |
| 40 | Decimal | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10. |
Korean
| Seq | Name | Example |
| 24 | Ganada | 가, 나, 다, 라, 마, 바, 사, 아, 자, 차. |
| 25 | Chosung | ㄱ, ㄴ, ㄷ, ㄹ, ㅁ, ㅂ, ㅅ, ㅇ, ㅈ, ㅊ. |
| 41 | Korean Digital | 일, 이, 삼, 사, 오, 육, 칠, 팔, 구, 일영. |
| 42 | Korean Counting | 일, 이, 삼, 사, 오, 육, 칠, 팔, 구, 십. |
| 43 | Korean Legal | 하나, 둘, 셋, 넷, 다섯, 여섯, 일곱, 여덟, 아홉, 열. |
| 44 | Korean Digital 2 | 一, 二, 三, 四, 五, 六, 七, 八, 九, 一零. |
Hebrew
| Seq | Name | Example |
| 45 | Hebrew 1 | א, ב, ג, ד, ה, ו, ז, ח, ט, י. |
| 47 | Hebrew 2 | א, ב, ג, ד, ה, ו, ז, ח, ט, י. |
Arabic
| Seq | Name | Example |
| 46 | Arabic Letters | أ, ب, ت, ث, ج, ح, خ, د, ذ, ر. |
| 48 | Arabic Abjad | أ, ب, ج, د, ه, و, ز, ح, ط, ي. |
Hindi
| Seq | Name | Example |
| 49 | Hindi Vowels | क, ख, ग, घ, ङ, च, छ, ज, झ, ञ. |
| 50 | Hindi Consonants | अ, आ, इ, ई, उ, ऊ, ऋ, ऌ, ऍ, ऎ. |
| 51 | Hindi Numbers | १, २, ३, ४, ५, ६, ७, ८, ९, १०. |
| 52 | Hindi Counting | एक, दो, तीन, चार, पाँच, छः, सात, आठ, नौ, दस. |
Thai
| Seq | Name | Example |
| 53 | Thai Letters | ก, ข, ค, ง, จ, ฉ, ช, ซ, ฌ, ญ. |
| 54 | Thai Numbers | ๑, ๒, ๓, ๔, ๕, ๖, ๗, ๘, ๙, ๑๐. |
| 55 | Thai Counting | หนึ่ง, สอง, สาม, สี่, ห้า, หก, เจ็ด, แปด, เก้า, สิบ. |
Vietnamese
| Seq | Name | Example |
| 56 | Vietnamese Counting | một, hai, ba, bốn, năm, sáu, bảy, tám, chín, mười. |
Russian
| Seq | Name | Example |
| 58 | Russian Small | а, б, в, г, д, е, ж, з, и, к. |
| 59 | Russian Capital | А, Б, В, Г, Д, Е, Ж, З, И, К. |
Greek
| Seq | Name | Example |
| 60 | Greek Small | α, β, γ, δ, ε, στ, ζ, η, θ, ι. |
| 61 | Greek Capital | Α, Β, Γ, Δ, Ε, ΣΤ, Ζ, Η, Θ, Ι. |
Number Format
In addition to the different number sequences you can get by setting the numberSequence property, you can also customize numbered lists by setting a format through the numberFormat property. This property is a string that contains "##" for the number sequence and any other characters to be displayed in the numbered list. The default value for numberFormat property is "##.". Below are some examples:
##. | 1., 2., 3. |
##) | 1), 2), 3) |
(##) | (1), (2), (3) |
##: | 1:, 2:, 3: |
Item # ## | Item # 1, Item # 2, Item # 3 |
For a paragraph in a numbered list, the resulting number text from the specified number format can be obtained by checking the read-only property numberText.
|
Reference
|