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
Am 08.08.2012 um 02:29 schrieb john Culleton
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
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
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 ___________________________________________________________________________________
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 -----------------------------------------------------------------
participants (4)
-
Hans Hagen
-
john Culleton
-
Sietse Brouwer
-
Wolfgang Schuster