[NTG-context] Problems with Mark IV (MacTeX 2009)

2010-06-25 Thread David Abdurachmanov

Hi,
After finding out that line numbering works different in Mark IV I tried using 
this version on Mac OS X via MacTeX 2009. I modified TeXworks to use texexec 
--lua $filename as for ConTeXt. I have updated MacTeX to latest version and 
actually I still cant' make it work. I tried following this guide: 
http://wiki.contextgarden.net/Install_Mark_IV Except I didn't set any 
environment variables and ctxtools fails: CtxTools | unable to fetch 
cont-tmf.zip
When updating MacTeX I got multiple failed messages in log regarding luatex, 
pdftext and etc. Overall all update failed in MacTex re-configuration.
I will can make standard ConTeXt document (don't know how to call them), but 
not the new ones with Lua support (Mark IV, I think it's called).
It looks like Mark IV does not work by default?
Thanks,david  
_
Hotmail: Trusted email with powerful SPAM protection.
https://signup.live.com/signup.aspx?id=60969___
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] Dutch interface for starttablehead starttabletail

2010-06-25 Thread Peter Van Kranenburg

On 6/25/10 5:17 AM, Wolfgang Schuster wrote:

Am 25.06.10 00:31, schrieb Peter Van Kranenburg:

Hello all,

Can someone tell me the Dutch commands for \starttablehead and
\starttabletail? I can't find it. Context gives an error message when
I use the English commands.


\starttablehead : \starttabelkop
\starttabletail : \starttabelstaart


Thanks!

So, in mult-def.lua I have to look for tablehead instead of 
starttablehead. I did a 'grep starttablehead mult-def.lua', which 
returns no match. Good to know.


Peter



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
___





___
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] Problems with Mark IV (MacTeX 2009)

2010-06-25 Thread Hans Hagen

On 25-6-2010 9:06, David Abdurachmanov wrote:


After finding out that line numbering works different in Mark IV I tried using this 
version on Mac OS X via MacTeX 2009. I modified TeXworks to use texexec --lua 
$filename as for ConTeXt. I have updated MacTeX to latest version and actually I 
still cant' make it work. I tried following this guide: 
http://wiki.contextgarden.net/Install_Mark_IV Except I didn't set any environment 
variables and ctxtools fails: CtxTools | unable to fetch cont-tmf.zip
When updating MacTeX I got multiple failed messages in log regarding luatex, 
pdftext and etc. Overall all update failed in MacTex re-configuration.
I will can make standard ConTeXt document (don't know how to call them), but 
not the new ones with Lua support (Mark IV, I think it's called).
It looks like Mark IV does not work by default?


First this:

- the right command to run mkiv is 'context' and in an editor you can 
best use:


  mtxrun --script context --autogenerate .

  or just

  context --autogenerate .

- formats are generated automatically (also after an update) so that 
should be no problem


- the same is true for the font database

- you can still process mkii documents if you add

  % engine=pdtfex

at the top of your file (eventually i'll do the bit that mkii needs in 
lua as wel so that we no longer need ruby)


Now concerning texworks. The problem is that (at least last time i 
looked into it which is quite a while ago) much is hard coded and that 
configurations files are auto generated. And, as it's mostly a latex 
oriented editor, it's hard to make it context friendly.


There is mtxrun --script texworks --start that (at least on windows) 
should start up texworks in 'context only' mode. There are configuration 
files in the distribution under root/context/data that you can give a 
try.


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
___


Re: [NTG-context] Problems with Mark IV (MacTeX 2009)

2010-06-25 Thread Mojca Miklavec
2010/6/25 David Abdurachmanov wrote:
 Hi,
 After finding out that line numbering works different in Mark IV I tried
 using this version on Mac OS X via MacTeX 2009.

Don't. MacTeX 2009 doesn't work with Mark IV, and even if it would,
it's way too old.

If you want to install and use MacTeX, download it from one of the
servers mentioned in
http://tug.org/texlive/pretest.html

For example this one:
http://ftp.cstug.cz/pub/tex/local/tlpretest/

But it's probably better to also try to install ConTeXt minimals (you
can easily switch between both - you just need to set PATH in
.bash_profile or on the fly).

I didn't install MacTeX this time, but rather a normal TeX Live with
ConTeXt scheme (2GB was a lot).

Mojca
___
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] Problems with Mark IV (MacTeX 2009)

2010-06-25 Thread David Abdurachmanov

I had earlier problems with line numbering, after cleaning MacTeX from my Mac 
and fully reinstalling and updating (I even updated ConTeXt to the latest 
version as described in wiki and regenerated everything) and again have 
problems. The good sign is that ConTeXt works without problems, but behavior is 
different. All my line numberings are gone.
Looks like \startlinenumbering only numbers that lines that are longer and does 
not fit to the page. If the line is shorter it's not numbered. Mostly all lines 
at the end of paragraph are not numbered and source code examples too.
Is that default behavior in latest version?
I am still new in TeX world, but ConTeXt looks quite good compared to LaTeX, 
but I keep bumping into problems.
That ConTeXt minimals give full support of ConTeXt?
BTW, any good syntax highlighters for ConTeXt (C#, F#, etc.)? Looks at 
http://www.pragma-ade.com/general/manuals/cont-enp.pdf 100th page I see, that 
you have minimal support for some languages. 
david

 Date: Fri, 25 Jun 2010 11:38:55 +0200
 From: mojca.miklavec.li...@gmail.com
 To: ntg-context@ntg.nl
 Subject: Re: [NTG-context] Problems with Mark IV (MacTeX 2009)
 
 2010/6/25 David Abdurachmanov wrote:
  Hi,
  After finding out that line numbering works different in Mark IV I tried
  using this version on Mac OS X via MacTeX 2009.
 
 Don't. MacTeX 2009 doesn't work with Mark IV, and even if it would,
 it's way too old.
 
 If you want to install and use MacTeX, download it from one of the
 servers mentioned in
 http://tug.org/texlive/pretest.html
 
 For example this one:
 http://ftp.cstug.cz/pub/tex/local/tlpretest/
 
 But it's probably better to also try to install ConTeXt minimals (you
 can easily switch between both - you just need to set PATH in
 .bash_profile or on the fly).
 
 I didn't install MacTeX this time, but rather a normal TeX Live with
 ConTeXt scheme (2GB was a lot).
 
 Mojca
 ___
 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
 ___
  
_
Hotmail: Trusted email with powerful SPAM protection.
https://signup.live.com/signup.aspx?id=60969___
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] Problems with Mark IV (MacTeX 2009)

2010-06-25 Thread Hans Hagen

On 25-6-2010 12:09, David Abdurachmanov wrote:


I had earlier problems with line numbering, after cleaning MacTeX from my Mac 
and fully reinstalling and updating (I even updated ConTeXt to the latest 
version as described in wiki and regenerated everything) and again have 
problems. The good sign is that ConTeXt works without problems, but behavior is 
different. All my line numberings are gone.
Looks like \startlinenumbering only numbers that lines that are longer and does 
not fit to the page. If the line is shorter it's not numbered. Mostly all lines 
at the end of paragraph are not numbered and source code examples too.
Is that default behavior in latest version?
I am still new in TeX world, but ConTeXt looks quite good compared to LaTeX, 
but I keep bumping into problems.
That ConTeXt minimals give full support of ConTeXt?


example code needed

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


Re: [NTG-context] Problems with Mark IV (MacTeX 2009)

2010-06-25 Thread David Abdurachmanov

No more needed. I removed MacTeX 2009 completely again and installed ConTeXt 
minimal distribution. Installation was flawless and it worked fine again. Maybe 
updating ConTeXt under MacTeX 2009 using this guide 
http://wiki.contextgarden.net/Running_Mark_IV (Update ConTeXt section) did 
something wrong?
 Date: Fri, 25 Jun 2010 12:55:21 +0200
 From: pra...@wxs.nl
 To: ntg-context@ntg.nl
 CC: cyba...@hotmail.com
 Subject: Re: [NTG-context] Problems with Mark IV (MacTeX 2009)
 
 On 25-6-2010 12:09, David Abdurachmanov wrote:
 
  I had earlier problems with line numbering, after cleaning MacTeX from my 
  Mac and fully reinstalling and updating (I even updated ConTeXt to the 
  latest version as described in wiki and regenerated everything) and again 
  have problems. The good sign is that ConTeXt works without problems, but 
  behavior is different. All my line numberings are gone.
  Looks like \startlinenumbering only numbers that lines that are longer and 
  does not fit to the page. If the line is shorter it's not numbered. Mostly 
  all lines at the end of paragraph are not numbered and source code examples 
  too.
  Is that default behavior in latest version?
  I am still new in TeX world, but ConTeXt looks quite good compared to 
  LaTeX, but I keep bumping into problems.
  That ConTeXt minimals give full support of ConTeXt?
 
 example code needed
 
 -
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
 -
  
_
Hotmail: Free, trusted and rich email service.
https://signup.live.com/signup.aspx?id=60969___
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] two languages hyphenation

2010-06-25 Thread Vyatcheslav Yatskovsky

Hello,

I have two languages in my document: English and Russian, and want to 
enable hyphenation for both. (By default, only English words are 
hyphenated). How to achive this?


Rgrds,
Vyatcheslav
___
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] two languages hyphenation

2010-06-25 Thread Mojca Miklavec
On Fri, Jun 25, 2010 at 14:19, Vyatcheslav Yatskovsky wrote:
 Hello,

 I have two languages in my document: English and Russian, and want to enable
 hyphenation for both. (By default, only English words are hyphenated). How
 to achive this?

\mainlanguage[ru]

\starttext
some russian text {\language[en] and some english ...} some russian
again {\language[en] and again some english}
\stoptext

Since they are written in two different scripts you can theoretically
enable them simultaneously (but I'm not sure if this is supported by
default).

Mojca
___
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] Dutch interface for starttablehead starttabletail

2010-06-25 Thread Wolfgang Schuster

Am 25.06.10 09:23, schrieb Peter Van Kranenburg:

On 6/25/10 5:17 AM, Wolfgang Schuster wrote:

Am 25.06.10 00:31, schrieb Peter Van Kranenburg:

Hello all,

Can someone tell me the Dutch commands for \starttablehead and
\starttabletail? I can't find it. Context gives an error message when
I use the English commands.


\starttablehead : \starttabelkop
\starttabletail : \starttabelstaart


Thanks!

So, in mult-def.lua I have to look for tablehead instead of 
starttablehead. I did a 'grep starttablehead mult-def.lua', which 
returns no match. Good to know.


The search result depends on the way how the command was defined, for 
\starttable you can search 'starttable' because this is the internal 
command name and the dutch interface defines \starttabel as 
\def\starttabel{\starttable} but \starttabelkop is generated with the 
format generation. When you take a look into the code you can see the 
command is defined with '\setvalue{\e!start\v!tablehead}' and the two 
values \e!start and \v!tablehead are replaced with their dutch words 
'start' and 'tabelkop'.


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] two languages hyphenation

2010-06-25 Thread Vyatcheslav Yatskovsky

On 25.06.2010 15:40, ntg-context-requ...@ntg.nl wrote:

Since they are written in two different scripts you can theoretically
enable them simultaneously (but I'm not sure if this is supported by
default).


Interesting, how?

--
Best Regards,
Vyatcheslav Yatskovsky
___
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] checking for an undefined constant

2010-06-25 Thread Vyatcheslav Yatskovsky

Hi,

Now I check for an undefined constant like this:

\ifx \Homeworks \undefined \else Home works -- {\Homeworks} \fi

The useful part is in else clause.  How to swap this check so that 
else is not needed?


Rgrds,
Vyatcheslav
___
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] checking for an undefined constant

2010-06-25 Thread Aditya Mahajan

On Fri, 25 Jun 2010, Vyatcheslav Yatskovsky wrote:


Hi,

Now I check for an undefined constant like this:

\ifx \Homeworks \undefined \else Home works -- {\Homeworks} \fi

The useful part is in else clause.  How to swap this check so that else 
is not needed?


From syst-gen.mkii


%D \macros
%D   {doifundefined,doifdefined,
%Ddoifundefinedelse,doifdefinedelse,
%Ddoifalldefinedelse}
%D
%D The standard way of testing if a macro is defined is
%D comparing its meaning with another undefined one, usually
%D \type{\undefined}. To garantee correct working of the next
%D set of macros, \type{\undefined} may never be defined!
%D
%D \starttyping
%D \doifundefined  {string}{...}
%D \doifdefined{string}{...}
%D \doifundefinedelse  {string}{then ...} {else ...}
%D \doifdefinedelse{string}{then ...} {else ...}
%D \doifalldefinedelse {commalist} {then ...} {else ...}
%D \stoptyping
%D

So

\doifdefined{Homeworks}{...}

Aditya
___
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] two languages hyphenation

2010-06-25 Thread Hans Hagen

On 25-6-2010 2:24, Mojca Miklavec wrote:

On Fri, Jun 25, 2010 at 14:19, Vyatcheslav Yatskovsky wrote:

Hello,

I have two languages in my document: English and Russian, and want to enable
hyphenation for both. (By default, only English words are hyphenated). How
to achive this?


\mainlanguage[ru]

\starttext
some russian text {\language[en] and some english ...} some russian
again {\language[en] and again some english}
\stoptext

Since they are written in two different scripts you can theoretically
enable them simultaneously (but I'm not sure if this is supported by
default).


interesting and quite trivial to support ... do you have a test file?

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


Re: [NTG-context] two languages hyphenation

2010-06-25 Thread Yury G. Kudryashov
Hans Hagen wrote:

 On 25-6-2010 2:24, Mojca Miklavec wrote:
 Since they are written in two different scripts you can theoretically
 enable them simultaneously (but I'm not sure if this is supported by
 default).
 
 interesting and quite trivial to support ... do you have a test file?
I do.

% Just \usetypescript[xits] doesn't work for me (I have xits fonts in 
~/.fonts). Probably, it is already fixed in the latest beta.
\starttypescript [math] [xits] [name]
  \definefontsynonym[MathRoman][name:xitsmath] 
[features=math\mathsizesuffix]
\stoptypescript

\starttypescript [serif] [xits] [name]
  \definefontsynonym[Serif]  [name:xitsregular]
[features=default]
  \definefontsynonym[SerifBold]  [name:xitsbold]   
[features=default]
  \definefontsynonym[SerifItalic][name:xitsitalic] 
[features=default]
  \definefontsynonym[SerifBoldItalic][name:xitsbolditalic] 
[features=default]
\stoptypescript

\starttypescript[xits]
  \definetypeface [xits] [rm] [serif] [xits]   [default]
  \definetypeface [xits] [ss] [sans]  [heros]  [default] [rscale=0.9]
  \definetypeface [xits] [tt] [mono]  [modern] [default] [rscale=1.05]
  \definetypeface [xits] [mm] [math]  [xits]   [default]
\stoptypescript

\setupbodyfont[xits,12pt]

\starttext
% Hyphenated
{\language[ru]
\dorecurse{50}{русский текст }
}
% Not hyphenated
{\language[en]
\dorecurse{50}{русский текст }
}
% Not hyphenated
{\language[ru]
\dorecurse{50}{Multilingual }
}
% Hyphenated
{\language[en]
\dorecurse{50}{Multilingual }
}
\stoptext

___
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] two languages hyphenation

2010-06-25 Thread Khaled Hosny
On Fri, Jun 25, 2010 at 08:28:26PM +0400, Yury G. Kudryashov wrote:
 Hans Hagen wrote:
 
  On 25-6-2010 2:24, Mojca Miklavec wrote:
  Since they are written in two different scripts you can theoretically
  enable them simultaneously (but I'm not sure if this is supported by
  default).
  
  interesting and quite trivial to support ... do you have a test file?
 I do.
 
 % Just \usetypescript[xits] doesn't work for me (I have xits fonts in 
 ~/.fonts). Probably, it is already fixed in the latest beta.

xits typescript uses file names, however OS fonts (i.e. those under
~/.fonts) can only be found by file names.

Since file and font names are essentially the same, once normalized, in
case of xits, I suggest that font names are used so it works for both
scenarios (system vs. texmf installation).

(I myself have a self may typescript just for that)

Regards,
 Khaled

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
___
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] checking for an undefined constant

2010-06-25 Thread Wolfgang Schuster

Am 25.06.10 15:39, schrieb Aditya Mahajan:

On Fri, 25 Jun 2010, Vyatcheslav Yatskovsky wrote:


Hi,

Now I check for an undefined constant like this:

\ifx \Homeworks \undefined \else Home works -- {\Homeworks} \fi

The useful part is in else clause.  How to swap this check so that 
else is not needed?


From syst-gen.mkii


%D \macros
%D   {doifundefined,doifdefined,
%Ddoifundefinedelse,doifdefinedelse,
%Ddoifalldefinedelse}
%D
%D The standard way of testing if a macro is defined is
%D comparing its meaning with another undefined one, usually
%D \type{\undefined}. To garantee correct working of the next
%D set of macros, \type{\undefined} may never be defined!
%D
%D \starttyping
%D \doifundefined  {string}{...}
%D \doifdefined{string}{...}
%D \doifundefinedelse  {string}{then ...} {else ...}
%D \doifdefinedelse{string}{then ...} {else ...}
%D \doifalldefinedelse {commalist} {then ...} {else ...}
%D \stoptyping
%D

So

\doifdefined{Homeworks}{...}


Low level (etex) solutions:

\ifdefined\Homeworks ... \fi

\unless\ifx\Homeworks\undefined ... \fi

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
___


[NTG-context] vim syntax highlighting in MKIV

2010-06-25 Thread Martin 'golodhrim' Scholz
Hi Hans, Mojca, Aditya and List,

just tried to use the vim Syntax Highlighting module in ConTeXt MKIV, but 
if running the documents complains it searches a file called

filename-vimsyntax.tmp-vimsyntax.tmp

sure that file not exists but there is a file called

filename-vimsyntax.tmp

is there a way to do a workaround so that the vim Syntaxhighlighting 
module would work in MKIV or does it need to be rewriten completedly?

Greetings
-- 
---
Martin 'golodhrim' Scholz
Auf dem Sattler 4
34516 Ederbringhausen
Phone: +49 6454 799623
mobile: +49 176 63301749
Fax: +49 6454 
e-Mail: scholz@googlemail.com

Think sideways!
-- Ed De Bono

___
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] vim syntax highlighting in MKIV

2010-06-25 Thread Hans Hagen

On 25-6-2010 9:48, Martin 'golodhrim' Scholz wrote:

Hi Hans, Mojca, Aditya and List,

just tried to use the vim Syntax Highlighting module in ConTeXt MKIV, but
if running the documents complains it searches a file called

filename-vimsyntax.tmp-vimsyntax.tmp

sure that file not exists but there is a file called

filename-vimsyntax.tmp

is there a way to do a workaround so that the vim Syntaxhighlighting
module would work in MKIV or does it need to be rewriten completedly?


probably something that M or A can fix easily

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
___


Re: [NTG-context] checking for an undefined constant

2010-06-25 Thread Vyatcheslav Yatskovsky

Thank you all for such a variety of solutions! Gonna look into it. ))


%D \macros
%D   {doifundefined,doifdefined,
%Ddoifundefinedelse,doifdefinedelse,
%Ddoifalldefinedelse}
%D
%D The standard way of testing if a macro is defined is
%D comparing its meaning with another undefined one, usually
%D \type{\undefined}. To garantee correct working of the next
%D set of macros, \type{\undefined} may never be defined!
%D
%D \starttyping
%D \doifundefined  {string}{...}
%D \doifdefined{string}{...}
%D \doifundefinedelse  {string}{then ...} {else ...}
%D \doifdefinedelse{string}{then ...} {else ...}
%D \doifalldefinedelse {commalist} {then ...} {else ...}
%D \stoptyping
%D

\doifdefined{Homeworks}{...}





Low level (etex) solutions:

\ifdefined\Homeworks ... \fi

\unless\ifx\Homeworks\undefined ... \fi


--
Best Regards,
Vyatcheslav Yatskovsky
___
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] producing a pdf/X-1a:2001 file

2010-06-25 Thread Ciro
The company that is printing my book requires format
PDF/X-1a:2001.  The file produced by LuaTex is PDF 1.5.

I wonder if there will be a problem, and if so, how can I do the
conversion to X-1a:2001?

thank you

Ciro
___
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] producing a pdf/X-1a:2001 file

2010-06-25 Thread luigi scarso
On Sat, Jun 26, 2010 at 2:34 AM, Ciro c...@kavyata.com wrote:
 The company that is printing my book requires format
 PDF/X-1a:2001.  The file produced by LuaTex is PDF 1.5.

 I wonder if there will be a problem, and if so, how can I do the
 conversion to X-1a:2001?
It's a complex subject, I fear that you need acrobat to be sure or
defend your result

Anyway
http://www.tug.org/pipermail/pdftex/2009-June/thread.html#8050
-- 
luigi
___
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
___