Translation:TOCStyles
From IDMLWiki
Contents |
10.8.8 目次スタイル
目次(TOC)は、InDesignドキュメントのコンテンツのリストです。ドキュメントには、複数の目次を設定できます。例えば、章の目次と図の目次です。目次スタイルで、目次の生成方法と書式設定を行います。
IDMLドキュメントでは、<TOCStyle>エレメントにTOCのプロパティを定義する属性があります。<TOCStyle>エレメント内の<TOCStyleElement>エレメントが、目次として抽出する段落と各段落の書式を定義します。
スキーマの例126 TOCStyle
TOCStyle_Object = element TOCStyle {
attribute Self { xsd:string },
attribute TitleStyle{ xsd:string }?,
attribute Title { xsd:string }?,
attribute Name { xsd:string },
attribute RunIn{ xsd:boolean }?,
attribute IncludeHidden{ xsd:boolean }?,
attribute IncludeBookDocuments{ xsd:boolean }?,
attribute CreateBookmarks{ xsd:boolean }?,
attribute SetStoryDirection{ HorizontalOrVertical_EnumValue }?,
attribute NumberedParagraphs{ NumberedParagraphsOptions_EnumValue }?,
element Properties {element Label { element KeyValuePair{ KeyValuePair_TypeDef }*
}?
}?,(TOCStyleEntry_Object*)}
スキーマの例127 TOCStyleEntry
TOCStyleEntry_Object = element TOCStyleEntry{
attribute Self { xsd:string },
attribute Name { xsd:string }?,
attribute Level { xsd:short }?,
attribute PageNumberPosition{ PageNumberPosition_EnumValue }?,
attribute Separator { xsd:string }?,
attribute SortAlphabet{ xsd:boolean }?,
element Properties {element FormatStyle{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element PageNumberStyle{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element SeparatorStyle{(object_type, xsd:string ) |
(string_type, xsd:string )
}?
}?}
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| CreateBookmarks | boolean | trueのとき、PDFブックマークを作成 | |
| IncludeBookDocuments | boolean | trueのとき、ブックのドキュメントを含む。falseのとき、現在のドキュメントのみ。Note:現在のドキュメントがブックに登録されているときのみ | |
| IncludeHidden | boolean | trueのとき、非表示レイヤーのテキストを含む(次回生成時に適用され、現在の目次は変更されない) | |
| Name | string | TOCStyleの名前 | |
| NumberedParagraphs | NumberedParagraphsOptions_EnumValue | 段落の自動番号。IncludeFullParagraph、IncludeNumbersOnlyまたはExcludeNumbers | |
| RunIn | boolean | trueのとき、1行にまとめる | |
| SetStoryDirection | HorizontalOrVertical_EnumValue | フレームの方向。LeftToRightDirectionまたはRightToLeftDirection | |
| Title | string | タイトル | |
| TitleStyle | string | タイトルの段落スタイル |
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| Level | short | レベル | |
| Name | string | TOCStyleEntryの名前 | |
| PageNumberPosition | PageNumberPosition_EnumValue | ページ番号。AfterEntry、BeforeEntryまたはNone | |
| Self | string | ○ | オブジェクトのユニークID |
| Separator | string | 項目と番号間 | |
| SortAlphabet | boolean | trueのとき、項目をアルファベット・50音順に並べる |
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| FormatStyle | string | 目次項目に割り当てる段落スタイル。 type = "object" 参照する段落スタイルのユニークID(<ParagraphStyle>エレメントのSelf属性) または type = "string" デフォルト段落スタイル[段落スタイルなし]エレメントの参照($ID/[No paragraph style]) |
|
| PageNumberStyle | string | ページ番号に割り当てる文字スタイル。 type = "object" 参照する文字スタイルのユニークID(<CharacterStyle>エレメントのSelf属性) または type = "string" デフォルト文字スタイル[なし]エレメントの参照($ID/[No character style]) |
|
| SeparatorStyle | string | 項目と番号間に割り当てる文字スタイル。 type = "object" 参照する文字スタイルのユニークID(<CharacterStyle>エレメントのSelf属性) または type = "string" デフォルト文字スタイル[なし]エレメントの参照($ID/[No character style]) |
IDMLの例83 TOCStyle
<TOCStyle Self="TOCStyle\kDefaultTOCStyleName" TitleStyle=" ParagraphStyle\ k[No paragraph style]" Title="Contents" Name="$ID/DefaultTOCStyleName" RunIn=" false" IncludeHidden=" false" IncludeBookDocuments=" false" CreateBookmarks=" true" SetStoryDirection=" Horizontal" NumberedParagraphs=" IncludeFullParagraph"/><TOCStyle Self="TOCStyle\cExampleTOCStyle" TitleStyle=" ParagraphStyle\ cContentsTitle" Title="Contents" Name="ExampleTOCStyle" RunIn=" false" IncludeHidden=" false" IncludeBookDocuments=" false" CreateBookmarks=" true" NumberedParagraphs=" IncludeFullParagraph"><TOCStyleEntry Self="ue4TOCStyleEntry0" Name="Headings:Heading1" Level="1" PageNumberPosition=" AfterEntry" Separator="$ID/^t" SortAlphabet=" false"><Properties><FormatStyle type="object">ParagraphStyle\ TOCHeading1</FormatStyle>
<PageNumberStyle type="object">CharacterStyle\ PageNumber</ PageNumberStyle>
<SeparatorStyle type="object">CharacterStyle\ DotLeader</ SeparatorStyle>
</Properties></TOCStyleEntry><TOCStyleEntry Self="ue4TOCStyleEntry1" Name="Headings:Heading2" Level="2" PageNumberPosition=" AfterEntry" Separator="$ID/^t" SortAlphabet=" false"><Properties><FormatStyle type="object">ParagraphStyle\ TOCHeading2</FormatStyle>
<PageNumberStyle type="object">CharacterStyle\ PageNumber</ PageNumberStyle>
<SeparatorStyle type="object">CharacterStyle\ DotLeader</ SeparatorStyle>
</Properties></TOCStyleEntry><TOCStyleEntry Self="ue4TOCStyleEntry2" Name="Headings:Heading3" Level="3" PageNumberPosition=" AfterEntry" Separator="$ID/^t" SortAlphabet=" false"><Properties><FormatStyle type="object">ParagraphStyle\ TOCHeading3</FormatStyle>
<PageNumberStyle type="object">CharacterStyle\ PageNumber</ PageNumberStyle>
<SeparatorStyle type="object">CharacterStyle\ DotLeader</ SeparatorStyle>
</Properties></TOCStyleEntry></TOCStyle>

