Re: [NTG-context] Error with spaces in Argument of \startproduct

2020-11-25 Thread Henning Hraban Ramm

> Am 24.11.2020 um 22:38 schrieb Wolfgang Schuster 
> :
> 
> Jannik Voges schrieb am 24.11.2020 um 22:24:
>> Hello,
>> as the title suggested, I get an error when using spaces in the argument of 
>> \startproduct. For example typesetting
>> \startproduct{foo bar}
> 
> You can have a filename with a space use
> 
>\startproduct [foo bar]
> 
> but you don't even need the filename when you replace it with *, e.g.
> 
>\startproduct *
> 
> or
> 
>\startproduct [*]

Since I learned about *, I used it extensively, but then I recognized, I can’t 
refer to the component filename with \currentcomponent any more. (I use it for 
filter-generated contents like LilyPond music.)
Just as a warning, in case you stumble upon that.

Hraban
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Error with spaces in Argument of \startproduct

2020-11-24 Thread Jannik Voges

Hello,


as the title suggested, I get an error when using spaces in the argument 
of \startproduct. For example typesetting



\startproduct{foo bar}


\starttext

foo

\stoptext

\stopproduct


results in an error:

tex error   > tex error on line 2 in file ./foo bar.tex: Too many }'s


Best regards

Jannik Voges
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Error with spaces in Argument of \startproduct

2020-11-24 Thread Wolfgang Schuster

Jannik Voges schrieb am 24.11.2020 um 22:24:

Hello,

as the title suggested, I get an error when using spaces in the argument 
of \startproduct. For example typesetting


\startproduct{foo bar}


You can have a filename with a space use

\startproduct [foo bar]

but you don't even need the filename when you replace it with *, e.g.

\startproduct *

or

\startproduct [*]

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] \startcomponent, \startproduct... + automatic file name

2012-08-09 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Great, thank you.

Lukas


On Thu, 09 Aug 2012 11:27:08 +0200, Hans Hagen pra...@wxs.nl wrote:


in the current beta you can say

\startcomponent *

Hans



--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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
___


Re: [NTG-context] \startcomponent, \startproduct... + automatic file name

2012-08-09 Thread Sietse Brouwer
 On Thu, 09 Aug 2012 11:27:08 +0200, Hans Hagen pra...@wxs.nl wrote:
 in the current beta you can say

 \startcomponent *

 Hans

Wikified at http://wiki.contextgarden.net/Command/startcomponent. This
trick also works for startproject, startenvironment, and startproduct,
I assume?

And for the general case, what about
`\ctxlua{commands.processedfile}`? That looks like it should print the
current filename, as long as any inclusions use the ConTeXt commands
and not \input.

--Sietse

On Thu, Aug 9, 2012 at 1:24 PM, Procházka Lukáš Ing. - Pontex s. r. o.
l...@pontex.cz wrote:
 Great, thank you.

 Lukas


 On Thu, 09 Aug 2012 11:27:08 +0200, Hans Hagen pra...@wxs.nl wrote:

 in the current beta you can say

 \startcomponent *

 Hans



 --
 Ing. Lukáš Procházka [mailto:l...@pontex.cz]
 Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
 Bezová 1658
 147 14 Praha 4

 Tel: +420 244 062 238
 Fax: +420 244 461 038

 ___
 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
___

Re: [NTG-context] \startcomponent, \startproduct... + automatic file name

2012-08-09 Thread Wolfgang Schuster

Am 09.08.2012 um 15:08 schrieb Sietse Brouwer sbbrou...@gmail.com:

 On Thu, 09 Aug 2012 11:27:08 +0200, Hans Hagen pra...@wxs.nl wrote:
 in the current beta you can say
 
 \startcomponent *
 
 Hans
 
 Wikified at http://wiki.contextgarden.net/Command/startcomponent. This
 trick also works for startproject, startenvironment, and startproduct,
 I assume?
 
 And for the general case, what about
 `\ctxlua{commands.processedfile}`? That looks like it should print the
 current filename, as long as any inclusions use the ConTeXt commands
 and not \input.

You can use \currentcomponent, \currentproduct and \currentproject to print the 
name of the 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
___


Re: [NTG-context] \startcomponent, \startproduct... + automatic file name

2012-08-09 Thread Sietse Brouwer
Wolfgang wrote:
 You can use \currentcomponent, \currentproduct and \currentproject to print 
 the name of the file.

Another secret unearthed! All wikified, together with \processedfile
and \processedfiles. Sans examples, but at least the info's there.
Thank you, Wolfgang.

Cheers,
Sietse
___
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
___


[NTG-context] \startcomponent, \startproduct... + automatic file name

2012-08-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

just a brief question -

- is there a way how to obtain the current file name; to be possible to write 
e.g.

 C1.tex
\startcomponent \thisfilename % Instead of \startcomponent C1


and

 P1.tex
\startproduct \thisfilename % Instead of \startproduct P1


so that \thisfilename yields C1.tex or C1, P1.tex or P1?

Or - is it possible to use Lua for this purpose?

 C1.tex
\startcomponent \directlua{context(... trackers ... resolvers ... finders ... 
whatever ... - to get the current file name)}


TIA.

Best regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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
___


[NTG-context] \environment before vs. after \startproduct

2011-07-16 Thread Andreas Harder
Hi,

here is another problem regarding \environments.

% \setupbodyfont[palatino] % OK
\starttext
  \setupbodyfont[palatino] % not OK

  \startformula
\binom{n}{0}
  \stopformula
\stoptext

To avoid it, I'd have to use something like the following?

\environment font-setups
\startproduct
\environment blank-setups


Greeting
Andreas
___
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
___


Re: [NTG-context] \environment before vs. after \startproduct

2011-07-16 Thread Wolfgang Schuster

Am 16.07.2011 um 15:00 schrieb Andreas Harder:

 Hi,
 
 here is another problem regarding \environments.
 
 % \setupbodyfont[palatino] % OK
 \starttext
  \setupbodyfont[palatino] % not OK
 
  \startformula
\binom{n}{0}
  \stopformula
 \stoptext
 
 To avoid it, I'd have to use something like the following?
 
 \environment font-setups
 \startproduct
 \environment blank-setups

It’s a bug when Latin Modern is loaded before Pagella.

\setupbodyfont[modern]
\setupbodyfont[palatino]

\starttext

\startformula
\binom{n}{0}
\stopformula

\stoptext

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
___


Re: [NTG-context] reference error with startproduct

2005-02-18 Thread Hans Hagen
\useencoding[ffr]
this command should come first (i.e. even before any \startproject or so since 
it set an internal separator (has to do with active french quotes); some day i 
will change that to a more convenient method

Hans
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] reference error with startproduct

2005-02-18 Thread Willi Egger
Hi, yes indeed I changed the code of Peter in that sense and made a 
separate file of the product-code before testing. I did this not because 
I knew it, but it looked just more Context-like to me ;-)

Willi
\setupoutput[pdftex]
\useencoding[ffr]
\mainlanguage[fr]
% This is the project file:
\starttext
\startproject project
\product product
\stopproject
\stoptext
Hans Hagen wrote:
\useencoding[ffr]

this command should come first (i.e. even before any \startproject or so 
since it set an internal separator (has to do with active french 
quotes); some day i will change that to a more convenient method

Hans
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] reference error with startproduct

2005-02-18 Thread Peter Münster
On Fri, 18 Feb 2005, Hans Hagen wrote:

  \useencoding[ffr]
 
 this command should come first (i.e. even before any \startproject or so 
 since 
 it set an internal separator (has to do with active french quotes); some day 
 i 
 will change that to a more convenient method

Thanks for your explanations. My goal is, to write things like
\useencoding[ffr] and \mainlanguage[fr] only once in an environment file,
and not in every product.

What do you think about the following method, can I get other kinds of
problems?

Product file:

\startproduct product
\project project

\section[bla:bla]{bla}
test: \in[bla]

\section[bla]{bla}
test: \in[bla:bla]

hallo «hallo» hallo «hallo», hallo
hallo: hallo; hallo? hallo! hallo
\stopproduct

Project file:

\startproject project
\enableregime[il1]
\mainlanguage[fr]
\defineactivecharacter « {\leftguillemot\,}
\defineactivecharacter » {\,\rightguillemot}
\defineactivecharacter ! {\,\string!}
\defineactivecharacter ? {\,\string?}
\defineactivecharacter : {\,\string:}
\defineactivecharacter ; {\,\string;}

\product product

\stopproject

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] reference error with startproduct

2005-02-17 Thread Willi Egger
Hi Peter,
your code works if you say \in{section}[bla]. \in is normally used with 
a indicator what you are referencing.

\at{page}[bla]
\about[bla]
Using
 TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
 pdfeTeXk, Version 3.141592-1.20a-2.2 (Web2c 7.5.3)
 ConTeXt  ver: 2005.01.26  fmt: 2005.1.26  int: english  mes: english
Willi
Peter Münster wrote:
Hello,
when I compile the following product, I get this error:
unknown reference [][bla]
\startproduct product
\project project
\section[bla]{bla}
test: \in[bla]
\stopproduct
This is the project file:
\startproject project
\useencoding[ffr]
\mainlanguage[fr]
\product product
\stopproject
Could someone help please?
Greetings, Peter
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] reference error with startproduct

2005-02-17 Thread Peter Münster
On Thu, 17 Feb 2005, Willi Egger wrote:

 your code works if you say \in{section}[bla]. \in is normally used with 
 a indicator what you are referencing.
 
 \at{page}[bla]
 \about[bla]
 
 Using
   TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
   pdfeTeXk, Version 3.141592-1.20a-2.2 (Web2c 7.5.3)
   ConTeXt  ver: 2005.01.26  fmt: 2005.1.26  int: english  mes: english

Hi Willi,
even with \in{section}[bla] I get an error...

Using:
TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
ConTeXt  ver: 2005.01.31  fmt: 2005.2.17  int: english  mes: english

So, should I downgrade???

Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] reference error with startproduct

2005-02-17 Thread Willi Egger
Hi Peter,
I would definitely not downgrade!
I tried your example with the alpha-version and the result is ok.
 TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
 pdfeTeX, Version 3.141592-1.20a-2.2 (Web2c 7.5.3)
 ConTeXt  ver: 2005.02.14  fmt: 2005.2.15  int: english  mes: english
Best,
Willi
Peter Münster wrote:
On Thu, 17 Feb 2005, Willi Egger wrote:

your code works if you say \in{section}[bla]. \in is normally used with 
a indicator what you are referencing.

\at{page}[bla]
\about[bla]
Using
 TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
 pdfeTeXk, Version 3.141592-1.20a-2.2 (Web2c 7.5.3)
 ConTeXt  ver: 2005.01.26  fmt: 2005.1.26  int: english  mes: english

Hi Willi,
even with \in{section}[bla] I get an error...
Using:
TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
ConTeXt  ver: 2005.01.31  fmt: 2005.2.17  int: english  mes: english
So, should I downgrade???
Peter
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context