Re: [NTG-context] Question about paragraphs and hanging punctuation

2018-03-20 Thread Tomas Hala
Hi Pablo,

thank you very much, you are right.
The align={hz, hanging} is not documented on the wiki, so I did not think about 
it. 

The proper solution for my problem is this:

\setupparagraphs[align={hz, hanging}]

which sets all columns for all kinds of paragraphs defined by \defineparagraphs
(for normal text is necessary to set it separately). 

Thanks once more and wishes,

Tomáš


Tue, Mar 20, 2018 ve 08:30:24PM +0100 Pablo Rodriguez napsal(a):
# On 03/20/2018 08:17 PM, Tomas Hala wrote:
# > Hi all,
# > 
# > I used together hanging punctuation and define/setup paragraphs
# > (tested on TL2017, current CTX).
# > Unfortunately, inside the paragraph environment the hanging
# > punctuation settings is ignored.> Moreover, it seems that attributes inner= 
and command= works only for
# > the first paragraph (column).
# Hi Tomáš,
# 
# \setupparagraphs has an align key.
# 
# This command works with your sample:
# 
#   \setupparagraphs[somepars][2][align={hz, hanging}]
# 
# I hope 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://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
___

[NTG-context] \basegrid ignores color

2018-03-20 Thread Henri Menke
Dear devs,

The \basegrid macro ignores its color option.  That's kind of obvious because as
I look at the code I don't see the color being communicated to Metapost at any
point.  When you're at it, could you please also add a rulethickness parameters?
 Thanks!

Reproducible in TL2018 pertest and latest beta.  MWE is below (as always).

Cheers, Henri

---

\starttext

\basegrid[color=red]

\color[red]{\basegrid}

\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] Question about paragraphs and hanging punctuation

2018-03-20 Thread Pablo Rodriguez
On 03/20/2018 08:17 PM, Tomas Hala wrote:
> Hi all,
> 
> I used together hanging punctuation and define/setup paragraphs
> (tested on TL2017, current CTX).
> Unfortunately, inside the paragraph environment the hanging
> punctuation settings is ignored.> Moreover, it seems that attributes inner= 
> and command= works only for
> the first paragraph (column).
Hi Tomáš,

\setupparagraphs has an align key.

This command works with your sample:

  \setupparagraphs[somepars][2][align={hz, hanging}]

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

[NTG-context] Question about paragraphs and hanging punctuation

2018-03-20 Thread Tomas Hala
Hi all,

I used together hanging punctuation and define/setup paragraphs (tested on 
TL2017, current CTX).
Unfortunately, inside the paragraph environment the hanging punctuation 
settings is ignored.
Moreover, it seems that attributes inner= and command= works only for the first 
paragraph (column).

The only one way I discovered is to write manually \setupalign[hz,hanging]
command at the beginning of each column which is not very comfortable.

I would like to ask you whether is here some way to set it generally.
Or (better) to inherited it from the outer settings.

Thanks in advance,

Tomáš

--

Minimal example:

\definefontfeature[default][default][protrusion=quality,expansion=quality]

\starttext\mainlanguage[cz]

\defineparagraphs[pokus][n=2]
\setupparagraphs[pokus][1][width=10cc]
%\setupparagraphs[pokus][1][width=10cc,inner={\setupalign[hz,hanging]}] % 
command=...

\setupalign[hz,hanging] \setupbodyfont[modern,12dd]

text

\startsomepars
text
\nextsomepars
text
\stopsomepars

text

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

[NTG-context] Macro to write a vector (Metafun) is broken

2018-03-20 Thread Fabrice Couvreur
Hello Hans,
The macro you wrote to draw the arrows of the vectors does not seem to work
anymore.
Thank you
Fabrice

\useMPlibrary[mat]

% will be in meta-imp-mat.mkiv

\startMPextensions
 vardef math_stacker_arrow_shape =
 image (
 drawarrow
 (OverlayWidth,OverlayOffset) -- (0,OverlayOffset)
 withcolor
 OverlayLineColor ;
 setbounds currentpicture to boundingbox currentpicture
bottomenlarged (OverlayOffset/2) topenlarged (OverlayOffset/2) ;
 )
 enddef ;
 vardef math_stacker_leftarrow_shape =
 math_stacker_arrow_shape
 enddef ;
 vardef math_stacker_rightarrow_shape =
 math_stacker_arrow_shape rotated 180
 enddef ;
\stopMPextensions

\startuniqueMPgraphic{math:stacker:\number"2190}
 math_stacker_draw(math_stacker_leftarrow_shape) ;
\stopuniqueMPgraphic

\startuniqueMPgraphic{math:stacker:\number"2192}
 math_stacker_draw(math_stacker_rightarrow_shape) ;
\stopuniqueMPgraphic

% so far

\setupmathstackers
   [both] % vfenced]
   [color=darkred,
alternative=mp]

\setupmathstackers
   [top]
   [color=darkred,
alternative=mp]

\setupmathstackers
   [bottom]
   [color=darkred,
alternative=mp]

\starttext

$\overbracket   {a+b+c+d} \quad \underbracket{a+b+c+d} \quad
\doublebracket{a+b+c+d}$ \blank
$\overparent{a+b+c+d} \quad \underparent {a+b+c+d} \quad
\doubleparent {a+b+c+d}$ \blank
$\overbrace {a+b+c+d} \quad \underbrace  {a+b+c+d} \quad
\doublebrace  {a+b+c+d}$ \blank
$\overbar   {a+b+c+d} \quad \underbar{a+b+c+d} \quad
\doublebar{a+b+c+d}$ \blank

$\overleftarrow  {a+b+c+d} \quad \overrightarrow  {a+b+c+d} $ \blank
$\underleftarrow {a+b+c+d} \quad \underrightarrow {a+b+c+d} $ \blank

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

[NTG-context] Questions about creation of PDF's

2018-03-20 Thread Tomas Hala
Hi all,

I came across the following changes in behaviour of compilation. Using this 
minimal example

\starttext
\pdfminorversion=3
Hello!
\stoptext

I found out that since TL2010 till TL2015, the output PDF is of the version 1.3
whereas TL2016 (which I do not use), TL2017 and current ConTeXt from the
garden produce PDF of version 1.7.

Is there any other (or new) way how to set the output version directly on the 
source file? 

Simultaneously, I found out that the produced PDF by older version -- since
TL2010 till TL2015 -- contains, e.g., 

"Creator:  ConTeXt - 2015.05.18 12:26"

whereas  TL2017 and current ConTeXt contains very short information

"Creator:  LuaTeX + ConTeXt MkIV"

Is possible to extend this information adding the date of the ConTeXt, 
similarly to the older ones? 

Many thanks in advance,

Tomáš
___
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] Questions about \starttext

2018-03-20 Thread Tomas Hala
Hi all,

doing some tests I discovered two interesting facts.

The first is that commands \starttext and \stoptext do not behave as a group.

Minimal example (tested on TL2015, TL2016, TL2017, current CTX from the Garden):

\starttext
text
  \starttext
  \bf text 
  \stoptext
text  % this text is in bold, too.
\stoptext

Is this the expected behaviour, or not? 

The second interesting thing is that the unbalanced document is compiled 
without protests:

Minimal example #1 (tested on TL2015, TL2016, TL2017, current CTX from the 
Garden):

\starttext
text% in this case, the "text" is shipped out

Minimal example #2 (tested on TL2015, TL2016, TL2017, current CTX from the 
Garden):

text% in this case, the "text" is not shipped out
\stoptext

If this is ok, it does not correspond to our garden wiki
(http://wiki.contextgarden.net/Command/starttext):

"The first command takes care of a number of initializations, and the last
command tells TEX that processing can stop. When this command is left out
TEX will display a * (a star) on the command line at the end of the job. TEX
will expect a command, for example \end."


Wishes,

Tomáš




 Tomáš Hála

Mendel's University of Agriculture and Forestry,
Faculty of Business and Economics, Department of Informatics

Mendelova zemědělská a lesnická univerzita, Provozně ekonomická fakulta,
Ústav informatiky, Zemědělská 5, CZ-613 00 Brno,  tel. +420 545 13 22 28

http://www.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
___

[NTG-context] Adding a parameter to a module

2018-03-20 Thread John Grasty
Hello list,

One more question. Since I could not figure the problem with the wiki article 
for a title, I have turned my attention to modify the t-title module for my 
needs. If I want to add let's say a publication location, how would I go about 
that?

I have copied and renamed t-title.mkvi to p-mymodule.mkvi. I have changed the 
formatting to suit my needs, but I can't not figure out how to add parameters. 
What is the connection to the t-title.xml interface file?

I don't need it done for me, but I do need just a bit of help getting going in 
the right direction. :-D

Thanks so much for the help and the great software!

John Grasty
___
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] \completeindex and \setuparranging

2018-03-20 Thread Gerard

Bonjour Wolfgang !

Great ! it's perfect !

I was sad to give up my idea (music booklet in A5 format...). Too happy 8-)

Thank you for you precious help. I have a lot to learn with ConTeXt !

Gérard


Le 20/03/2018 à 10:53, Wolfgang Schuster a écrit :


Your index doesn’t work because you have no paragraphs in your 
document. When you

add \dontleavehmode before each \externalfigure the entries are correct.


___
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] \completeindex and \setuparranging

2018-03-20 Thread Wolfgang Schuster



survoje 
19. März 2018 um 21:26

Bonsoir Wolfgang !

I tried according to your method (without arrangement and extra run) 
without result, I tried others possibilities without result. The index 
page is never ok with \setuparranging... Surely I did not understand.


I wanted to make a booklet of musical scores in A5 (24 pages), just 
with successive png and index for each score : 


\starttext
\externalfigure[Alaude][width=\textwidth]\index{Alaude}
\blank
\externalfigure[Amazing][width=\textwidth]\index{Amazing}

\externalfigure[Valse_5T][width=\textwidth]\index{Valse a 5 temps}
\blank
\externalfigure[Valse8Temps][width=\textwidth]\index{Valse à 8 temps}

\externalfigure[ValseEcossaise][width=\textwidth]\index{Valse écossaise}
\page
\setupregister[index]
 [n=2,pagestyle=bold]
\completeindex
\stoptext

Your index doesn’t work because you have no paragraphs in your document. 
When you

add \dontleavehmode before each \externalfigure the entries are correct.


\setupwhitespace[line]

\defineexternalfigure[score][width=\textwidth]

\starttext

\dontleavehmode\externalfigure[Alaude][score]\index{Alaude}

\dontleavehmode\externalfigure[Amazing][score]\index{Amazing}

\dontleavehmode\externalfigure[Valse_5T][score]\index{Valse a 5 temps}

\dontleavehmode\externalfigure[Valse8Temps][score]\index{Valse à 8 temps}

\dontleavehmode\externalfigure[ValseEcossaise][score]\index{Valse écossaise}

\page

\completeindex

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

[NTG-context] decomposed u umlaut

2018-03-20 Thread Henning Hraban Ramm
Ahoi,

I’ve one annoying problem with ConTeXt: all üs (small u umlauts) seem to be 
encoded as decomposed unicode or something like that, at least every ü breaks 
into u + garbage if I copy some text from a ConTeXt PDF to an app that doesn’t 
really support Unicode.
All other characters within Latin-1, including umlauts, are no problem, that’s 
why I think the problem might be in ConTeXt’s font handling.

(Actually, this is about my invoice addresses that I copy from PDF to the 
German Post postage webshop. The site is quite new and I can’t understand how a 
big company can buy such crappy software. I already complained, there are more 
problems, but of course got only a template answer.)

Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
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
___