Changes

Jump to navigation Jump to search
2,651 bytes added ,  13:05, 6 September 2020
Created page with "Documentation for \product"
<cd:commandgroup name="product" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc><!-- a short command summary goes here -->
The command <tt>\product</tt> lists a product in a larger project
</cd:shortdesc>
<cd:variants>
<cd:command category="structure" file="file-job.mkvi" interfacedate="2020-06-19T13:41" interfacefile="i-document.xml" level="document" name="product" variantnumber="1">
<cd:arguments>
<cd:keywords ordinal="1">
<cd:keywordsdoc></cd:keywordsdoc>
<cd:constant type="cd:file"></cd:constant>
</cd:keywords>
</cd:arguments>
</cd:command>
<cd:command category="structure" file="file-job.mkvi" interfacedate="2020-06-19T13:41" interfacefile="i-document.xml" level="document" name="product" variant="string" variantnumber="2">
<cd:arguments>
<cd:keywords delimiters="none" ordinal="1">
<cd:keywordsdoc></cd:keywordsdoc>
<cd:constant type="cd:file"></cd:constant>
</cd:keywords>
</cd:arguments>
</cd:command>
</cd:variants>
<cd:description>The command <code>\product</code> does not do anything: to link a product to a project file, one should use {{cmd|project}} inside the product. Nonetheless, the <code>\product</code> command is often used inside project files as a reminder of what products the project involves.
</cd:description>
<cd:examples><cd:example title=""><texcode>
% myproject.tex
\startproject useful_label % name for reporting purposes; should not be empty
% Any file that states \project myproj will use the following environments:
\environment env_layout
\environment env_fonts

% These \product commands do not do anything
\product first_product
\product second_product
\stopproject
</texcode>

<texcode>
% first_product.tex
\startproduct
% use the environment files mentioned in myproject.tex
\project myproj

\subject{Chapter One}

He sat, in defiance of municipal orders, astride the gun Zam-Zammah
on her brick platform opposite the old Ajaib-Gher --- the Wonder-house,
as the natives call the Lahore Museum. Who hold Zam-Zammah, that
\quote{fire-breathing dragon}, hold the Punjab; for the great
green-bronze piece is always the first of the conqueror's loot.
\stopproduct
</texcode></cd:example></cd:examples>
<cd:notes></cd:notes>
<cd:seealso>
<cd:source file="file-job.mkvi" originator="system"></cd:source>
<cd:wikipage originator="system" page="Category:Structure"></cd:wikipage>
<cd:commandref name="Project structure"></cd:commandref>
<cd:commandref name="project"></cd:commandref>
<cd:commandref name="startproject"></cd:commandref></cd:seealso>
</cd:commandgroup>

Navigation menu