ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \product tag
@ 2012-08-08  0:29 john Culleton
  2012-08-08  3:32 ` Wolfgang Schuster
  2012-08-08 14:28 ` Sietse Brouwer
  0 siblings, 2 replies; 4+ messages in thread
From: john Culleton @ 2012-08-08  0:29 UTC (permalink / raw)
  To: NTG-Context ConTeXt users

In a MKIV file using the approved method of structuring projects,
does the \product tag do anything or is it just internal
documentation for the source file? When I process a file called
book.tex and containing the tag:
\product foobar
the result is a file called book.pdf, just as if the tag did not
exist. 

-- 
John Culleton
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
Police Procedural and Expose: "Death Wore Black"
"Create Book Covers with Scribus"
http://www.booklocker.com/books/4055.html
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: \product tag
  2012-08-08  0:29 \product tag john Culleton
@ 2012-08-08  3:32 ` Wolfgang Schuster
  2012-08-08 14:28 ` Sietse Brouwer
  1 sibling, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2012-08-08  3:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 08.08.2012 um 02:29 schrieb john Culleton <John@wexfordpress.com>:

> In a MKIV file using the approved method of structuring projects,
> does the \product tag do anything or is it just internal
> documentation for the source file? When I process a file called
> book.tex and containing the tag:
> \product foobar
> the result is a file called book.pdf, just as if the tag did not
> exist. 

The name of the output file is always the name of the main input file
and you can only change this with the result option for context/texexec scripts.

The \product command is a special version of \input and the given file
is only read when the command appears in a project file and since it is
no longer recommended to use a project as main file the command has
no real purpose except a internal reference (in a component) to the parent file.

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: \product tag
  2012-08-08  0:29 \product tag john Culleton
  2012-08-08  3:32 ` Wolfgang Schuster
@ 2012-08-08 14:28 ` Sietse Brouwer
  2012-08-08 21:45   ` Hans Hagen
  1 sibling, 1 reply; 4+ messages in thread
From: Sietse Brouwer @ 2012-08-08 14:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi John,

What Wolfgang said: `\product X` should be processed once inside
`\startproject` environments, and never otherwise. And you should
probably have products as your build targets, not projects.

@Hans: when I looked at the `processors` table in file-job.lua, I
found some discrepancies between the processing commands and the
reporting strings. Here is the table edited to show just the
discrepancies:

local processors = utilities.storage.allocate {
    -- [we_are_inside_startthis] = {
    --     [we_encounter_this] = { "string_for_message",
processing_command }, -- comment
    -- }
    [v_text] = {
        [v_project]     = { "none", context.processfileonce }, -- none
        [v_product]     = { "none", context.processfileonce }, -- none
    },
    [v_project] = {
        [v_product]     = { "once", context.processfilenone }, -- once
        -- consistent, but strange comment
        [v_component]   = { "none", context.processfilenone }, -- many *
    },
    [v_product] = {
        [v_product]     = { "none", context.processfilemany }, -- none
    },
}

Is this all right? In general, the reporing strings are the ones
consistent with the table at the bottom of
http://wiki.contextgarden.net/Project_structure
which is taken from page 3 of
http://pragma-ade.com/general/magazines/mag-1101.pdf

Cheers,

Sietse


On Wed, Aug 8, 2012 at 2:29 AM, john Culleton <John@wexfordpress.com> wrote:
> In a MKIV file using the approved method of structuring projects,
> does the \product tag do anything or is it just internal
> documentation for the source file? When I process a file called
> book.tex and containing the tag:
> \product foobar
> the result is a file called book.pdf, just as if the tag did not
> exist.
>
> --
> John Culleton
> Free list of books for self-publishers:
> http://wexfordpress.net/shortlist.html
> Police Procedural and Expose: "Death Wore Black"
> "Create Book Covers with Scribus"
> http://www.booklocker.com/books/4055.html
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: \product tag
  2012-08-08 14:28 ` Sietse Brouwer
@ 2012-08-08 21:45   ` Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2012-08-08 21:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 8-8-2012 16:28, Sietse Brouwer wrote:

> Is this all right? In general, the reporing strings are the ones

I've removed the comment.

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-08-08 21:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-08  0:29 \product tag john Culleton
2012-08-08  3:32 ` Wolfgang Schuster
2012-08-08 14:28 ` Sietse Brouwer
2012-08-08 21:45   ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).