Difference between revisions of "Command/project"

From ConTeXt wiki
Jump to navigationJump to search
m (Typos!)
 
Line 3: Line 3:
 
|attributes=
 
|attributes=
 
}}
 
}}
 +
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>project</syntax>
  
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==

Latest revision as of 14:46, 15 November 2019

\project

Syntax (autogenerated)

\project[...]
[...]file


\project ...
... file


Syntax

\project...
... file

Description

When used inside a \startproduct or \startcomponent environment, this command is an instruction to source any \environment files linked in the project file.

Example

% 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
% first_product.tex
\startproduct
    % use the environment files mentioned in myproject.tex
    \project myproject

    \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

See Also

Help from ConTeXt-Mailinglist/Forum

All issues with: