Re: [NTG-context] define vs setup

2012-07-26 Thread Hans Hagen

On 26-7-2012 05:21, S Barmeier wrote:

You can \setup what you \define|d yourself and \setup what is
pre\define|d, but not \setup something that is not \define|d.

Maybe ;)


it depends .. often it's:

\definexx[whatever]
\definexx[whatever][settings]
\definexx[another][parent]
\definexx[another][parent][settings]

\setupxx[settings]
\setupxx[another][settings]
\setupxx[whatever][settings]

sometimes there are no defines because a feature is generic or global in 
nature. often a define generates a command (\whatever, \startwhatever), etc


btw, a redefine does not reset already set parameters (in mkii that is 
often the case but not in mkiv)


it all depends on what kind of functionality you're dealing with

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] define vs setup

2012-07-26 Thread Bill Meahan

On 07/26/2012 04:13 AM, Hans Hagen wrote:

On 26-7-2012 05:21, S Barmeier wrote:

You can \setup what you \define|d yourself and \setup what is
pre\define|d, but not \setup something that is not \define|d.

Maybe ;)


it depends .. often it's:

\definexx[whatever]
\definexx[whatever][settings]
\definexx[another][parent]
\definexx[another][parent][settings]

\setupxx[settings]
\setupxx[another][settings]
\setupxx[whatever][settings]

sometimes there are no defines because a feature is generic or global in
nature. often a define generates a command (\whatever, \startwhatever), etc

btw, a redefine does not reset already set parameters (in mkii that is
often the case but not in mkiv)

it all depends on what kind of functionality you're dealing with

Hans



OK, let's deal with a specific use case.

I'm publisher/editor/reporter/photographer/mailer/janitor/coffeemaker 
for an organizational newsletter. I've done lots of other newsletters 
before but using DTP programs. I really want to use ConTeXt for this one
because the layout is (required to be) absolutely identical from one 
issue to the next.


Like a traditional newspaper, the front page will contain the masthead, 
headline and (for this one) a mandatory Privacy Act Notification. I'm 
virtually certain I can handle the three special bits using layers and
which will leave the margins and text area the same as the rest of the 
pages albeit with no header or footer. Hence, by definition, the front 
page is a makeup page for which the examples on the wiki are a bit, 
shall we say, sparse.


Without the makeup page, a \setuplayout [settings] works just 
wonderfully - I have a dummy with which I'm doing testing so I actually 
tried it. :)


Would I correctly, then, do the following:

% Global layout
\setuplayout
[settings]

\definelayout
[frontpage]
[settings]   % Only those things that are different from the global

\definemakeup
[frontpage]

% other definitions, fonts yadda, yadda, yadda

\starttext

\startmakeup [frontpage]
% place the layers

% content

\stopmakup

% continue content as required

\stoptext

Sorry for the length of this note but I thought it better to explain the 
whole thing upfront than in bits and pieces.


Thanks for all the help. I'm really loving ConTeXt but switching after
mumble years of using LaTeX and DTP programs is proving a little more 
of a challenge than I expected. Old dogs *can* learn new tricks but it 
takes a bit more work. :)


--
Bill Meahan, Westland, Michigan USA

“Writing is a combination of intangible
  creative fantasy and appallingly
  hard work.”

  —Anthony Powell


This message is digitally signed with an X.509 certificate
to prove it is from me and has not been altered since it was sent.



smime.p7s
Description: S/MIME Cryptographic Signature
___
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] define vs setup

2012-07-26 Thread Marco Patzer
On 2012-07-26 Bill Meahan wmeaha...@gmail.com wrote:

Hi Bill,

it's a typo:

 \stopmakup

\stopmakeup


Marco

___
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] define vs setup

2012-07-26 Thread Bill Meahan

On 07/26/2012 11:34 AM, Marco Patzer wrote:

On 2012-07-26 Bill Meahan wmeaha...@gmail.com wrote:

Hi Bill,

it's a typo:


\stopmakup


\stopmakeup



Sorry 'bout that. :)

I've never been a good typist even though I can dump a lot of text 
into a file in a short time. It *is* correct in my actual test file.



--
Bill Meahan, Westland, Michigan USA

“Writing is a combination of intangible
  creative fantasy and appallingly
  hard work.”

  —Anthony Powell


This message is digitally signed with an X.509 certificate
to prove it is from me and has not been altered since it was sent.



smime.p7s
Description: S/MIME Cryptographic Signature
___
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] how to avoid CID Identity-H encoding?

2012-07-26 Thread Steffen Wolfrum
Hi Hans, hi friends,

while the PDF that are produced by MkIV show no problems, some applications 
that use these PDF files for post-processing have big problems with 
CID/Encoding Identity-H.

For example (as far as I have understood) german umlauts eg. ä are not 
recognized anymore but split in eg. a and diaeresis (with a space between?).

I was told, that other PDF creators have an option to avoid using this kind of 
encoding.

Is this also possible with MkIV?

Thanks, Steffen
___
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] define vs setup

2012-07-26 Thread Mojca Miklavec
On Thu, Jul 26, 2012 at 5:04 PM, Bill Meahan wrote:

 I really want to use ConTeXt for this one
 because the layout is (required to be) absolutely identical from one issue
 to the next.

There is one thing that I warmly suggest you to do, and that is making
backups of ConTeXt versions that you use for production. ConTeXt is
lightweight enough, so you can easily afford storing the versions you
use along with content, and then try to compile your documents both
with the latest  greatest version as well as some backup version,
just to make sure that everything is still perfectly fine in both.
MKII is stable, but MKIV is still a moving target and from time to
time one or the other thing changes (LaTeX is in a sense way more
stable, but on the other hand 99.9% of the time you have no chance
that anyone would implement any feature request to make your life
easier).

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] define vs setup

2012-07-26 Thread Khaled Hosny
On Thu, Jul 26, 2012 at 06:15:31PM +0200, Mojca Miklavec wrote:
 LaTeX is in a sense way more stable

Which is mostly an illusion, packages do change all the time,
hyphenation patterns change, fonts change and engines change (even
pdfTeX), and unlike ConTeXt backups are much harder to take (short of
backing up your whole TeX Live installation).

Regards,
 Khaled
___
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] how to avoid CID Identity-H encoding?

2012-07-26 Thread Hans Hagen

On 26-7-2012 17:59, Steffen Wolfrum wrote:

Hi Hans, hi friends,

while the PDF that are produced by MkIV show no problems, some applications 
that use these PDF files for post-processing have big problems with 
CID/Encoding Identity-H.

For example (as far as I have understood) german umlauts eg. ä are not recognized 
anymore but split in eg. a and diaeresis (with a space between?).

I was told, that other PDF creators have an option to avoid using this kind of 
encoding.

Is this also possible with MkIV?


afaik context output the right tounicode info so i have no clue what 
goes wrong there


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
___


[NTG-context] Struggling with custom title command

2012-07-26 Thread Steffen Fritzsche
Hi,

my document was compiling fine with an old beta (guess it was from late may - 
early june). Today I updated to the latest beta and now I've got a problem with 
my custom chapter command:

\def\ChapterCmd#1#2% #1 is number, #2 is text
  {\vbox{#1\blank#2}}

\setuphead [chapter][command=\ChapterCmd, style={\ss\bfc}, page=right, 
number=yes, frame=off, placehead=yes, align=left, before={}, 
after={\blank[3*line]}, header=nomarking]

The resulting error is:

! Argument of \ChapterCmd has an extra }.
system   tex  error on line 103 in file main.tex: Argument of  …

Any idea what's wrong? The error message does not mean anything to me.

Thanks in advance!

Cheers,
Steffen



smime.p7s
Description: S/MIME cryptographic signature
___
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] new beta

2012-07-26 Thread Hans Hagen

Hi,

I uploaded a beta. There is also an updated status-mkiv document:

files done644
files todo314
files pending  21 (some day)
obsolete2
total 981

So, I have some files to go (mostly lua files) before I pick up the 
column thread.


The memory footprint should be somewhat smaller for non cjk usage. 
(format generation as well as runtime) and the format file is some 
10-15% smaller now.


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] Struggling with custom title command

2012-07-26 Thread Aditya Mahajan

On Thu, 26 Jul 2012, Steffen Fritzsche wrote:


Hi,

my document was compiling fine with an old beta (guess it was from late may - 
early june). Today I updated to the latest beta and now I've got a problem with 
my custom chapter command:

\def\ChapterCmd#1#2% #1 is number, #2 is text
 {\vbox{#1\blank#2}}


Use

\unexpanded\def\Cha

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] Struggling with custom title command

2012-07-26 Thread Wolfgang Schuster

Am 26.07.2012 um 20:11 schrieb Steffen Fritzsche:

 Hi,
 
 my document was compiling fine with an old beta (guess it was from late may - 
 early june). Today I updated to the latest beta and now I've got a problem 
 with my custom chapter command:
 
 \def\ChapterCmd#1#2% #1 is number, #2 is text
  {\vbox{#1\blank#2}}

\define[2]\ChapterCmd
  {\vbox{#1\blank#2}}

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] Struggling with custom title command

2012-07-26 Thread Steffen Fritzsche
Thank you Aditya for your quick response! Now, it's compiling again :)

Steffen


Am 26.07.2012 um 20:16 schrieb Aditya Mahajan adit...@umich.edu:

 On Thu, 26 Jul 2012, Steffen Fritzsche wrote:
 
 Hi,
 
 my document was compiling fine with an old beta (guess it was from late may 
 - early june). Today I updated to the latest beta and now I've got a problem 
 with my custom chapter command:
 
 \def\ChapterCmd#1#2% #1 is number, #2 is text
 {\vbox{#1\blank#2}}
 
 Use
 
 \unexpanded\def\Cha
 
 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
 ___
 



smime.p7s
Description: S/MIME cryptographic signature
___
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] new beta

2012-07-26 Thread Pablo Rodríguez
On 26/07/12 20:12, Hans Hagen wrote:
 Hi,
 
 I uploaded a beta. There is also an updated status-mkiv document:
 
 files done644
 files todo314
 files pending  21 (some day)
 obsolete2
 total 981
 
 So, I have some files to go (mostly lua files) before I pick up the 
 column thread.
 
 The memory footprint should be somewhat smaller for non cjk usage. 
 (format generation as well as runtime) and the format file is some 
 10-15% smaller now.

Many thanks for the new beta, Hans.

I'm not sure whether this is important, but
http://www.pragma-ade.com/general/qrcs/setup-en.pdf#page=3 contains the
date July z, 2012

Just in case it helps,


Pablo
-- 
http://www.ousia.tk
___
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] Struggling with custom title command

2012-07-26 Thread Hans Hagen

On 26-7-2012 20:25, Steffen Fritzsche wrote:

Thank you Aditya for your quick response! Now, it's compiling again :)


This is the upcoming but already working new method (th eold will also 
keep working):


\defineheadalternative
  [mine]
  [alternative=vertical,
   renderingsetup=minetoo,
   left=(,
   right=)]

\startsetups[minetoo]
\headsetupspacing
\ifconditional\headshownumber
\headalternativeparameter{left}
\headnumbercontent
\headalternativeparameter{right}
\fi
\quad
\headtextcontent
\stopsetups

\setuphead[section][alternative=mine]

\starttext

\section{test}

\stoptext

So, we move towards using setups and caling up content by name

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] new beta

2012-07-26 Thread 李延瑞
2012/7/27 Hans Hagen pra...@wxs.nl:
 The memory footprint should be somewhat smaller for non cjk usage. (format
 generation as well as runtime) and the format file is some 10-15% smaller
 now.

The fonts fallback can not work.

This is a minmal example:

\definefontsynonym[song][name:adobesongstd]
\definefontfallback[hereos][name:texgyreherosregular][0x-0x0400]
\definefontsynonym[fbsong][song][fallbacks=hereos]
\definefont[newsong][fbsong]
\starttext
\newsong 夹杂 English 的中文文本
\stoptext

When I compile it, i get an error:

error: ...text/tex/texmf-context/tex/context/base/font-col.lua:213:
Invalid field id font for node type hlist (3)

-- 
Best regards,

Li Yanrui (李延瑞)
___
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
___