[NTG-context] align=end not working

2018-11-09 Thread Aditya Mahajan

Hi,

According to an old thread 
(https://mailman.ntg.nl/pipermail/ntg-context/2016/085877.html), the 
option `align=end` should align the last line to be flush right. However, 
that is not working. The example from that thread:


\starttext

\showframe \showboxes

\setupalign[end]

\dostepwiserecurse{5}{8}{1}{
 \hsize #1cm
 What does happen with a short paragraph?\par
}

\stoptext

gives the attached pdf.

Thanks,
Aditya

test.pdf
Description: Adobe PDF document
___
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] index problem with \setupcolumnset

2018-11-09 Thread Peter Rolf
Hi,

I run into this error after updating my ConTeXt version.
Small (but not minimal) example attached.

mtx-context | current version: 2018.10.18 00:07


Peter
\startuniqueMPgraphic{column:bg}
fill OverlayBox withcolor yellow;
\stopuniqueMPgraphic
\defineoverlay[columnbg][\uniqueMPgraphic{column:bg}]


\definecolumnset[TOC][n=4]
%\setupcolumnset[TOC][background=columnbg]% works ok
\setupcolumnset[TOC][1][background=columnbg]% any indexed setup fails
% in my real world example the complete third argument is printed instead


\starttext
\startcolumnset[TOC]
\input tufte.tex
\stopcolumnset
\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Colormanagement

2018-11-09 Thread luigi scarso
On Fri, Nov 9, 2018 at 4:24 PM Jan U. Hasecke 
wrote:

> Hi all,
>
> I defined some colors with \definecolor like this:
>
> \definecolor [myblue] [r=0.000, g=0.314, b=0.580, c=0.98,  m=0.67,
> y=0.03, k=0.12]
>
> \startnotmode[print]
> \setupcolors[cmyk=no,rgb=yes]
> \stopnotmode
>
> \startmode[print]
> \setupcolors[cmyk=yes,rgb=no]
> \setupbackend[
> format=PDF/X-3:2003,
>intent={ISO Coated v2 300\letterpercent\space (ECI)},
>]
> \stopmode
>
> When I use "context" or "context --mode=print" everything works as
> expected.
>
> But! I have SVG icons I want to use in the document. They contain the
> above defined rgb colors.
>
> When I use --mode=print I get different colors for the SVG icons.
>
> So context converts the SVG files to PDFs but does not change the colors
> accordingly to CMYK.
>
> What are my options? Do I miss something?
>
> 1. Let the designer produce icons in pdf with the given cmyk colors.
>
> 2. Don't use cmyk colors at all.
>
> In fact on my home printer the printed rgb colors look brighter than the
> cmyk colors. This might change in the print shop when they print with
> the right color profile, but it makes me nervous.
>

I think you should use the best colorspace (rgb )
and let the print shop do its job -- of course this means that you have
signed  their sample (hard proof) of your project.


Hraban ?

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

Re: [NTG-context] Colormanagement

2018-11-09 Thread Tomas Hala
Hi, 

by default, really not.

At http://wiki.inkscape.org/wiki/index.php/Color_management
and http://wiki.inkscape.org/wiki/index.php/ExportPDFCMYK
there some instructions how to convert files to CMYK,
or how to install some extension, respectively.
But I have not test these ways yet.

Best wishes,

Tomáš

Fri, Nov 09, 2018 ve 05:03:43PM +0100 Hans Hagen napsal(a):
# On 11/9/2018 4:24 PM, Jan U. Hasecke wrote:
# 
# >So context converts the SVG files to PDFs but does not change the colors
# >accordingly to CMYK.
# i don't know if inkscape has a switch for conversion
# 
# Hans
# 
# -
#   Hans Hagen | PRAGMA ADE
#   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
#tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
# archive  : https://bitbucket.org/phg/context-mirror/commits/
# wiki : http://contextgarden.net
# 
___

 Tomáš Hála

Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky
Zemědělská 1, CZ-613 00 Brno,  tel. +420 545 13 22 28

http://akela.mendelu.cz/~thala

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

2018-11-09 Thread Hans Hagen

On 11/9/2018 4:24 PM, Jan U. Hasecke wrote:


So context converts the SVG files to PDFs but does not change the colors
accordingly to CMYK.

i don't know if inkscape has a switch for conversion

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] spacing

2018-11-09 Thread Hans Hagen

On 11/9/2018 2:40 PM, Henning Hraban Ramm wrote:

Am 2018-11-08 um 23:51 schrieb Henri Menke :


Clearly you haven't understood the meaning of “beta”.


Thank you for educating me.


If you don't want your documents to break, don't update.


Since when?
I started using ConTeXt in 1999 and don’t expect my MkII code to work any more.
I’m still kind of an evangelist for ConTeXt, but that doesn’t protect me from 
getting very frustrated at times.

It seems to me that the replacement of the column layout code was premature, 
when it breaks heading setup, frame handling and can’t handle columns that 
don’t start at the top of a page.
- the new columnset code has been around for a while now and has become 
default ... the old code is a module


- the new mixed column code has been around for even longer (and always 
was default on my machine) btu the old code is available as module


both old mechanism were only partially adapted to mkiv and i bet that 
there were side effects


- the new page columns mode is the way to go for columns with floats etc

so we have three mkiv column models and two old ones available as 
modules (i expect them to keep working more or less ok but nothing will 
be changed in them)


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Colormanagement

2018-11-09 Thread Jan U. Hasecke
Hi all,

I defined some colors with \definecolor like this:

\definecolor [myblue] [r=0.000, g=0.314, b=0.580, c=0.98,  m=0.67,
y=0.03, k=0.12]

\startnotmode[print]
\setupcolors[cmyk=no,rgb=yes]
\stopnotmode

\startmode[print]
\setupcolors[cmyk=yes,rgb=no]
\setupbackend[
format=PDF/X-3:2003,
   intent={ISO Coated v2 300\letterpercent\space (ECI)},
   ]
\stopmode

When I use "context" or "context --mode=print" everything works as expected.

But! I have SVG icons I want to use in the document. They contain the
above defined rgb colors.

When I use --mode=print I get different colors for the SVG icons.

So context converts the SVG files to PDFs but does not change the colors
accordingly to CMYK.

What are my options? Do I miss something?

1. Let the designer produce icons in pdf with the given cmyk colors.

2. Don't use cmyk colors at all.

In fact on my home printer the printed rgb colors look brighter than the
cmyk colors. This might change in the print shop when they print with
the right color profile, but it makes me nervous.

juh


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

2018-11-09 Thread Alan Braslau
On Fri, 9 Nov 2018 15:05:59 +0100
Tomas Hala  wrote:

> I solve the same problem for ages... I decided for fixed time points

If it may be useful: I keep a very short-term backup so that when
things "break" or change, I can easily backtrack to a working copy.
I update using the following shell script:

#!/bin/sh
CONTEXTHOME=${HOME}/context
if [ ! -d ${CONTEXTHOME}/beta ] ; then
mkdir -p ${CONTEXTHOME}/beta
fi
if [ ! -d ${CONTEXTHOME}/previous ] ; then
mkdir -p ${CONTEXTHOME}/previous
fi
cd ${CONTEXTHOME}/beta
echo "*** move current to previous ***"
rsync -av --delete --progress . ../previous
echo "*** update beta ***"
rsync -ptv --progress rsync://contextgarden.net/minimals/setup/first-setup.sh . 
2>&1 | tee first-setup.log

./first-setup.sh --modules=all --fonts=all --engine=luatex 2>&1 | tee -a 
first-setup.log



This will not help against any undetected changes that may go unnoticed
for a while between different projects, but does protect me against
immediate "bugs".

Hans has suggested keeping a ConTeXt standalone copy in each separate
project file, as it is small enough that such duplication does not take
up too much space. (As we strip-down the distribution and as storage
space becomes bigger and bigger, this should not be a problem.) The
advantage of having a copy associated with a project is that one can
come back, years later even, and produce *exactly* the same output.

Alan
___
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] spacing

2018-11-09 Thread Hans Hagen

On 11/9/2018 1:50 PM, Clyde Johnston wrote:

Clearly you haven't understood the meaning of “beta”.
If you don't want your documents to break, don't update.


Does ConTeXt have an LTS (long-term stable) release?


just save your tree (or multiple)

Hans


--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] spacing

2018-11-09 Thread Tomas Hala
Hi,

I solve the same problem for ages... I decided for fixed time points related
with new edition of TeXlive. 

Advantages:

TeXlive versions (from my point of view) are most stable.
You really can compile your files repeatedly getting the same result.

Disadvantages:

You have to store all TeXlive editions.
All TeXlive editions are space demanding.
You have make notes on your files/projects which version was used.
You cannot use new features if you are going to refresh the project.

This is my way but maybe there is something better.
[I work ConTeXt since 2010 and only with MkIV.]

Best wishes,

Tomas



Fri, Nov 09, 2018 ve 02:40:30PM +0100 Henning Hraban Ramm napsal(a):
# Am 2018-11-08 um 23:51 schrieb Henri Menke :
# 
# > Clearly you haven't understood the meaning of “beta”.
# 
# Thank you for educating me.
# 
# > If you don't want your documents to break, don't update.
# 
# Since when?
# I started using ConTeXt in 1999 and don’t expect my MkII code to work any 
more.
# I’m still kind of an evangelist for ConTeXt, but that doesn’t protect me from 
getting very frustrated at times.
# 
# It seems to me that the replacement of the column layout code was premature, 
when it breaks heading setup, frame handling and can’t handle columns that 
don’t start at the top of a page.
# 
# 
# Greetlings, Hraban
# ---
# https://www.fiee.net
# http://wiki.contextgarden.net
# https://www.dreiviertelhaus.de
# GPG Key ID 1C9B22FD
# 
# 
___
# 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
# 
___

 Tomáš Hála

Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky
Zemědělská 1, CZ-613 00 Brno,  tel. +420 545 13 22 28

http://akela.mendelu.cz/~thala
___
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] spacing

2018-11-09 Thread Henning Hraban Ramm
Am 2018-11-08 um 23:51 schrieb Henri Menke :

> Clearly you haven't understood the meaning of “beta”.

Thank you for educating me.

> If you don't want your documents to break, don't update.

Since when?
I started using ConTeXt in 1999 and don’t expect my MkII code to work any more.
I’m still kind of an evangelist for ConTeXt, but that doesn’t protect me from 
getting very frustrated at times.

It seems to me that the replacement of the column layout code was premature, 
when it breaks heading setup, frame handling and can’t handle columns that 
don’t start at the top of a page.


Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

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

2018-11-09 Thread Clyde Johnston
> Clearly you haven't understood the meaning of “beta”.
> If you don't want your documents to break, don't update.

Does ConTeXt have an LTS (long-term stable) release?


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