Difference between revisions of "Command/component"

From Wiki
Jump to navigation Jump to search
(Created page with "Documentation for \component")
 
 
Line 35: Line 35:
 
<cd:source file="file-job.mkvi" originator="system"></cd:source>
 
<cd:source file="file-job.mkvi" originator="system"></cd:source>
 
<cd:wikipage originator="system" page="Category:Structure"></cd:wikipage>
 
<cd:wikipage originator="system" page="Category:Structure"></cd:wikipage>
<cd:commandref name="startproduct"></cd:commandref></cd:seealso>
+
<cd:commandref name="startproduct"></cd:commandref>
 +
<cd:wikipage page="Project structure"></cd:wikipage></cd:seealso>
 
</cd:commandgroup>
 
</cd:commandgroup>

Latest revision as of 12:59, 6 September 2020


\component

Summary

The command \component is used for including parts of products

Settings

\component[...]
[...]file

Settings string

\component ...
... file

Description

Includes a file (usually a chapter or part) into a product.

Examples

Example 1

Here is a product file that uses the components c_frontmatter.tex c_chapter_1.tex, and c_chapter_2.tex:

\startproduct
    \component c_frontmatter
    \component c_chapter_1
    \component c_chapter_2
\stopproduct

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: