[NTG-context] about vertical alignment

2019-02-08 Thread Jeong Dal
Dear all,

I used \itemtag in \starttabulate to make columns in itemization for some 
reasons.
Actually, it works fine.

For more detailed alignment, I’d like to ask about the fine tuning of vertical 
alignment.

Here is an MWS.

%%%
\showframe
\starttext

\startitemize[n]
\item Prove the following identity.
   \startitemize[n][stopper=)]
   \item ${\displaystyle \int \tan^n x  \,dx=\frac{\tan^{n-1}x}{n-1}-\int 
\tan^{n-2}x \,dx}$ ($n>1$)
   \item  ${\displaystyle \int \sec^n x  \,dx=\frac{\sec^{n-2}x \tan 
x}{n-1}+\frac{n-2}{n-1}
   \int \sec^{n-2}x \,dx}$  $(n>1)$
   \stopitemize
\item Integration
   \startitemize[n][stopper=)]
   \starttabulate[||lw(.42\textwidth)||lw(.42\textwidth)|]
   \NC\itemtag\NC ${\displaystyle \int (2x+3)e^{-x}  \,dx}$
   \NC\itemtag\NC  ${\displaystyle \int x^2e^{x}  \,dx}$ \NC\NR\TB[halfline]
   \NC\itemtag\NC  ${\displaystyle \int x \cos x  ~d x }$
   \NC\itemtag\NC  ${\displaystyle \int x^2 \cos 2x  ~d x }$ \NC\NR\TB[halfline]
   \stoptabulate\stopitemize
\stopitemize
\stoptext


In the output, the second itemization number is aligned at the starting point 
of “Prove …”.
But the second itemization number of \itemtag is not at the starting point of 
“Integration…”
So, it looks a little bit awkward.
Of course, it is because of "lw(.42\textwidth)…” things.

Is there a method to make the starting point of \itemtag aligned to that of the 
“Integration…”?

Thank you for reading.

Best regards,

Dalyoung

___
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] Bad names

2019-02-08 Thread Alan Braslau
On Fri, 8 Feb 2019 23:26:21 +0100
Hans Hagen  wrote:

> On 2/8/2019 10:22 PM, Marco Patzer wrote:
> 
> > What is a bad name for context? Does it have any consequences if badly named
> > files are used? Just being curious.
> Bad names are names that can result i a miss when looked up on a case 
> sensitive system. When you have a workflow where images come from e.g. 
> graphic designers don't be surprised to get names with inconsistent 
> casing, one of more spaces in a row, multiple suffixes (or wrong ones), 
> etc etc ... now when images are referred to e.g. from xml files that 
> also come from someplace it can get pretty hard to find where something 
> goes miss. So, here we always normalize (az09-).
> 
> In a tex tree files with the same name can lead to wrong lookups 
> depending on the order of configured paths. There context alway has had 
> case insensitive lookups.

Because people use brain-dead file systems
we get to use brain-dead file names, case-insensitive, etc., etc.

This can be a bit frustrating for those used to working with real file systems
and real (arbitrary) file names, but it gives better results
for the least common denominator, i.e. Windows... :-(

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] Bad names

2019-02-08 Thread Hans Hagen

On 2/8/2019 10:22 PM, Marco Patzer wrote:


What is a bad name for context? Does it have any consequences if badly named
files are used? Just being curious.
Bad names are names that can result i a miss when looked up on a case 
sensitive system. When you have a workflow where images come from e.g. 
graphic designers don't be surprised to get names with inconsistent 
casing, one of more spaces in a row, multiple suffixes (or wrong ones), 
etc etc ... now when images are referred to e.g. from xml files that 
also come from someplace it can get pretty hard to find where something 
goes miss. So, here we always normalize (az09-).


In a tex tree files with the same name can lead to wrong lookups 
depending on the order of configured paths. There context alway has had 
case insensitive lookups.


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] Bad names

2019-02-08 Thread Marco Patzer
Hi!

I was wondering what context considers a “bad” file name and what consequences
that might have. From workflows-mkiv.pdf:

  “Bad names are reported and suitable action can be taken”

Indeed, every run context tells me how many files are badly named:

  mkiv lua stats  > graphics processing time: 0.021 seconds including tex, 14 
processed images, 14 unique asked, 7 bad names

A small test:

\starttext
  \externalfigure [a]   %% good
  \externalfigure [a.png]   %% good
  \externalfigure [a.b.png] %% good
  \externalfigure [a.1.png] %% bad
  \externalfigure [a-1.png] %% good
  \externalfigure [a-.1.png]%% bad
  \externalfigure [a-b.1.png]   %% bad
  \externalfigure [a-1.b.png]   %% good
  \externalfigure [A]   %% good
  \externalfigure [A.B] %% good
  \externalfigure [A.b] %% bad
  \externalfigure [A.B.png] %% bad
  \externalfigure [A.png]   %% bad
  \externalfigure [a.c-b.b.png] %% bad

  %% bad names are reported in red
  \usemodule [s-figures-names]
\stoptext

I note that “A.png” and “a.1.png” are bad file names and “a-1.b.png” and
“a-1.png” are good file names. What's the idea behind that logic? “A.png” and
“a.1.png” seem perfectly fine file names to me.

The files are included without issues, regardless of context's opinion about
the name.

What is a bad name for context? Does it have any consequences if badly named
files are used? Just being curious.

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


Re: [NTG-context] 404 error: Not found for first-setup.sh

2019-02-08 Thread Mojca Miklavec
On Fri, 8 Feb 2019 at 21:21, Taco Hoekwater wrote:
>
> After some more tweaking on my side, Marcus now reported that it works for 
> him, finally.

Thank you, it seems fixed for me as well.

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


Re: [NTG-context] 404 error: Not found for first-setup.sh

2019-02-08 Thread Taco Hoekwater
Hi,

After some more tweaking on my side, Marcus now reported that it works for him, 
finally.

Best wishes,
Taco

> On 8 Feb 2019, at 20:24, Taco Hoekwater  wrote:
> 
> Hi,
> 
> That is helpful knowledge. I am quietly confident I can fix wget tomorrow, 
> now.
> 
> I’ll report back.
> 
> Taco


___
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] 404 error: Not found for first-setup.sh

2019-02-08 Thread Alan Braslau
fetch http://minimals.contextgarden.net/setup/first-setup.sh

works as well - why do we suggest wget, a gnuism?

Alan

On Fri, 8 Feb 2019 20:24:45 +0100
Taco Hoekwater  wrote:

> Hi,
> 
> That is helpful knowledge. I am quietly confident I can fix wget tomorrow, 
> now.
> 
> I’ll report back.
> 
> Taco
> 
> > Op 8 feb. 2019 om 19:59 heeft Mohammad Hossein Bateni  
> > het volgende geschreven:
> > 
> > I ran into the same issue two days ago, where "curl -O" worked while "wget" 
> > did not.
> >   
> >> On Fri, Feb 8, 2019 at 1:51 PM Marcus Vinicius Mesquita 
> >>  wrote:
> >> Hi, Pablo
> >> 
> >> Indeed, with curl I was able to download the file. Thank you. 
> >> 
> >> In the wiki page about ConTeXt standalone 
> >> (https://wiki.contextgarden.net/ConTeXt_Standalone), the section about 
> >> single user installation suggests only the wget program, so I got stuck, 
> >> and perhaps we could avoid that for future users. 
> >> 
> >> Regards 
> >> 
> >> Marcus Vinicius 
> >>   
> >>> On Fri, Feb 8, 2019, 16:39 Pablo Rodriguez  wrote:
> >>> On 2/8/19 7:02 PM, Marcus Vinicius Mesquita wrote:  
> >>> > Hi, Taco
> >>> > 
> >>> > I tried again, but the server still answers with a 404 error.   
> >>> 
> >>> Hi Marcus,
> >>> 
> >>> I have just updated my ConTeXt Suite to its latest beta.
> >>> 
> >>> And the following command downloads the file (I don’t have wget 
> >>> installed):
> >>> 
> >>>   $ curl -O http://minimals.contextgarden.net/setup/first-setup.sh
> >>> 
> >>> 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://context.aanhet.net
> >>> archive  : https://bitbucket.org/phg/context-mirror/commits/
> >>> 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://context.aanhet.net
> >> archive  : https://bitbucket.org/phg/context-mirror/commits/
> >> 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://context.aanhet.net
> > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] 404 error: Not found for first-setup.sh

2019-02-08 Thread Taco Hoekwater
Hi,

That is helpful knowledge. I am quietly confident I can fix wget tomorrow, now.

I’ll report back.

Taco

> Op 8 feb. 2019 om 19:59 heeft Mohammad Hossein Bateni  het 
> volgende geschreven:
> 
> I ran into the same issue two days ago, where "curl -O" worked while "wget" 
> did not.
> 
>> On Fri, Feb 8, 2019 at 1:51 PM Marcus Vinicius Mesquita 
>>  wrote:
>> Hi, Pablo
>> 
>> Indeed, with curl I was able to download the file. Thank you. 
>> 
>> In the wiki page about ConTeXt standalone 
>> (https://wiki.contextgarden.net/ConTeXt_Standalone), the section about 
>> single user installation suggests only the wget program, so I got stuck, and 
>> perhaps we could avoid that for future users. 
>> 
>> Regards 
>> 
>> Marcus Vinicius 
>> 
>>> On Fri, Feb 8, 2019, 16:39 Pablo Rodriguez  wrote:
>>> On 2/8/19 7:02 PM, Marcus Vinicius Mesquita wrote:
>>> > Hi, Taco
>>> > 
>>> > I tried again, but the server still answers with a 404 error. 
>>> 
>>> Hi Marcus,
>>> 
>>> I have just updated my ConTeXt Suite to its latest beta.
>>> 
>>> And the following command downloads the file (I don’t have wget installed):
>>> 
>>>   $ curl -O http://minimals.contextgarden.net/setup/first-setup.sh
>>> 
>>> 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://context.aanhet.net
>>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>>> 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://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] 404 error: Not found for first-setup.sh

2019-02-08 Thread Mojca Miklavec
Hi,

On Fri, 8 Feb 2019 at 19:03, Marcus Vinicius Mesquita wrote:
>
> Hi, Taco
>
> I tried again, but the server still answers with a 404 error.

There seems to be some misconfiguration for http vs. https introduced
earlier today. For me it works on http, while it tries to access the
mailman page on https. However my browser additionally automatically
redirects to https, so it fails from the browser as well.

We'll try to fix it tomorrow (read as: I'll probably leave it to Taco
as I would almost certainly break something in an even worse way than
that :)

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


Re: [NTG-context] 404 error: Not found for first-setup.sh

2019-02-08 Thread Mohammad Hossein Bateni
I ran into the same issue two days ago, where "curl -O" worked while "wget"
did not.

On Fri, Feb 8, 2019 at 1:51 PM Marcus Vinicius Mesquita <
marcusvinicius.mesqu...@gmail.com> wrote:

> Hi, Pablo
>
> Indeed, with curl I was able to download the file. Thank you.
>
> In the wiki page about ConTeXt standalone (
> https://wiki.contextgarden.net/ConTeXt_Standalone), the section about
> single user installation suggests only the wget program, so I got stuck,
> and perhaps we could avoid that for future users.
>
> Regards
>
> Marcus Vinicius
>
> On Fri, Feb 8, 2019, 16:39 Pablo Rodriguez  wrote:
>
>> On 2/8/19 7:02 PM, Marcus Vinicius Mesquita wrote:
>> > Hi, Taco
>> >
>> > I tried again, but the server still answers with a 404 error.
>>
>> Hi Marcus,
>>
>> I have just updated my ConTeXt Suite to its latest beta.
>>
>> And the following command downloads the file (I don’t have wget
>> installed):
>>
>>   $ curl -O http://minimals.contextgarden.net/setup/first-setup.sh
>>
>> 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://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Creating business cards with CSV

2019-02-08 Thread Pablo Rodriguez
On 2/7/19 2:27 PM, Jan U. Hasecke wrote:
> Hi all,
> 
> I found some hints to CSV in the wiki, but they all refer to tables.
> 
> What are the building block to create business cards from a csv file?
Hi Jan Ulrich,

there is a module that does it (handlecsv, which comes with the ConTeXt
Suite [I wrote the documentation for it]):

I attach both the ConTeXt source and a sample CSV file. It could be a
good starting point.

Just in case it helps,

Pablo
-- 
http://www.ousia.tk
\usemodule[handlecsv]
\setheader
\opencsvfile{bscard.csv}

\starttext
\startbuffer[bscard]
\startTEXpage[offset=3em]
{\bf \Vorname\ \Name}\\
\Function

\blank

\Company\\
\Street\\
\PLZ-\City\\
\Country\\
Telefon: \TelNo\\
\eMail\\
\URLAddress
\stopTEXpage
\stopbuffer
\doloopif{\cA}{~=}{}{\getbuffer[bscard]}
\stoptext
"Vorname";"Name";"Function";"Company";"Street";"PLZ";"City";"Country";"TelNo";"eMail";"URLAddress"
"Mustermann";"Jan";"Assistant";"Boring";"25 Street";123;"Moscow";"Russian Federation";2323323;"j...@boring.com";"boring.com"
"Musterfrau";"Erika";"CEO";"Awesome";"993 Square Root";212;"Berlin";"Germany";8382939;"e...@awesome.com";"awesome.com"
___
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] 404 error: Not found for first-setup.sh

2019-02-08 Thread Marcus Vinicius Mesquita
Hi, Pablo

Indeed, with curl I was able to download the file. Thank you.

In the wiki page about ConTeXt standalone (
https://wiki.contextgarden.net/ConTeXt_Standalone), the section about
single user installation suggests only the wget program, so I got stuck,
and perhaps we could avoid that for future users.

Regards

Marcus Vinicius

On Fri, Feb 8, 2019, 16:39 Pablo Rodriguez  wrote:

> On 2/8/19 7:02 PM, Marcus Vinicius Mesquita wrote:
> > Hi, Taco
> >
> > I tried again, but the server still answers with a 404 error.
>
> Hi Marcus,
>
> I have just updated my ConTeXt Suite to its latest beta.
>
> And the following command downloads the file (I don’t have wget installed):
>
>   $ curl -O http://minimals.contextgarden.net/setup/first-setup.sh
>
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] 404 error: Not found for first-setup.sh

2019-02-08 Thread Pablo Rodriguez
On 2/8/19 7:02 PM, Marcus Vinicius Mesquita wrote:
> Hi, Taco
> 
> I tried again, but the server still answers with a 404 error. 

Hi Marcus,

I have just updated my ConTeXt Suite to its latest beta.

And the following command downloads the file (I don’t have wget installed):

  $ curl -O http://minimals.contextgarden.net/setup/first-setup.sh

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


Re: [NTG-context] 404 error: Not found for first-setup.sh

2019-02-08 Thread Marcus Vinicius Mesquita
Hi, Taco

I tried again, but the server still answers with a 404 error.

Marcus Vinicius

On Fri, Feb 8, 2019, 15:41 Taco Hoekwater  wrote:

> Dear Marcus,
>
> That was my fault, I messed something up in the webserver settings. It
> should be ok now.
>
> With my best apologies,
>
> Taco
>
>
>
> > On 8 Feb 2019, at 17:25, Marcus Vinicius Mesquita <
> marcusvinicius.mesqu...@gmail.com> wrote:
> >
> > Dear list,
> >
> > When I try to fetch the file first-setup.sh with
> >
> > wget http://minimals.contextgarden.net/setup/first-setup.sh
> >
> > the server answers with: 404 error: Not found.
> >
> > Marcus Vinicius
> >
> ___
> > 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
> >
> ___
>
> Taco Hoekwater
> Elvenkind BV
>
>
>
>
>
> ___
> 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
>
> ___
>
___
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] 404 error: Not found for first-setup.sh

2019-02-08 Thread Taco Hoekwater
Dear Marcus,

That was my fault, I messed something up in the webserver settings. It should 
be ok now.

With my best apologies,

Taco



> On 8 Feb 2019, at 17:25, Marcus Vinicius Mesquita 
>  wrote:
> 
> Dear list,
> 
> When I try to fetch the file first-setup.sh with
> 
> wget http://minimals.contextgarden.net/setup/first-setup.sh
> 
> the server answers with: 404 error: Not found.
> 
> Marcus Vinicius
> ___
> 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
> ___

Taco Hoekwater
Elvenkind BV




___
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] Background color with \showgrid and columns

2019-02-08 Thread Marcus Vinicius Mesquita
Thank you, Wolfgang.

Marcus Vinicius

On Fri, Feb 8, 2019, 14:53 Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com> wrote:

> Marcus Vinicius Mesquita schrieb am 08.02.19 um 17:47:
> > Dear list,
> >
> > When processing the attached mwe:
> >
> > \setuplayout[grid=yes]
> > \showgrid
> > \setupcolumns[n=2]
> >
> > \starttext
> >
> > \startcolumns
> > \input knuth
> > \column
> > \input knuth
> > \stopcolumns
> >
> > \stoptext
> >
> > in the final result there is a background color.
> > How do I get rid of it?
>
> \showgrid[reset,bottom,all,right]
>
> 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] Background color with \showgrid and columns

2019-02-08 Thread Wolfgang Schuster

Marcus Vinicius Mesquita schrieb am 08.02.19 um 17:47:

Dear list,

When processing the attached mwe:

\setuplayout[grid=yes]
\showgrid
\setupcolumns[n=2]

\starttext

\startcolumns
\input knuth
\column
\input knuth
\stopcolumns

\stoptext

in the final result there is a background color.
How do I get rid of it?


\showgrid[reset,bottom,all,right]

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] Background color with \showgrid and columns

2019-02-08 Thread Marcus Vinicius Mesquita
Dear list,

When processing the attached mwe:

\setuplayout[grid=yes]
\showgrid
\setupcolumns[n=2]

\starttext

\startcolumns
\input knuth
\column
\input knuth
\stopcolumns

\stoptext

in the final result there is a background color.
How do I get rid of it?

Marcus Vinicius


mwe.tex
Description: TeX document


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


Re: [NTG-context] outlined font using MetaFun

2019-02-08 Thread Wolfgang Schuster

Jeong Dal schrieb am 08.02.19 um 17:18:

Dear all,

The following code which is borrowed from MetaFun manual is working nicely.

%%
\setupMPvariables[outlineT][tt="Hello"]
\startuseMPgraphic{outlineT}
   draw outlinetext.b (\MPvar{tt})
   (withcolor .5white)
   (withcolor .625blue withpen pencircle scaled .2pt)
   scaled 3 ;
\stopuseMPgraphic

\starttext
\useMPgraphic{outlineT}
\stoptext


However, the next example is not working(without \setupMPvariables[]).

%%%
\startuseMPgraphic{outlineT}{tt}
   draw outlinetext.b (\MPvar{tt})
   (withcolor .5white)
   (withcolor .625blue withpen pencircle scaled .2pt)
   scaled 3 ;
\stopuseMPgraphic

\starttext
\useMPgraphic{outlineT}{tt=“Hello”}
\stoptext


So, the trial to use above code for chapter title as following didn’t work 
either.

\startuseMPgraphic{outlineT}{tt}
string tt;
   draw outlinetext.b (\MPvar{tt})
   (withcolor .5white)
   (withcolor .625blue withpen pencircle scaled .2pt)
   scaled 3 ;
\stopuseMPgraphic
\define[1]\myTest{\useMPgraphic{outlineT}{#1}}

\setuphead[chapter]
  [textcommand=\myTest,
  numbercommand=\myTest,
number=yes]

\starttext
\startchapter[title={First chapter}]

  Chapter

\stopchapter
\stoptext
%%%

Is there any way to make it work?


Drop the list with variables after \startuseMPgraphic.

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] 404 error: Not found for first-setup.sh

2019-02-08 Thread Marcus Vinicius Mesquita
Dear list,

When I try to fetch the file first-setup.sh with

wget http://minimals.contextgarden.net/setup/first-setup.sh

the server answers with: 404 error: Not found.

Marcus Vinicius
___
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] outlined font using MetaFun

2019-02-08 Thread Jeong Dal
Dear all,

The following code which is borrowed from MetaFun manual is working nicely.

%%
\setupMPvariables[outlineT][tt="Hello"]
\startuseMPgraphic{outlineT}
  draw outlinetext.b (\MPvar{tt})
  (withcolor .5white)
  (withcolor .625blue withpen pencircle scaled .2pt)
  scaled 3 ;
\stopuseMPgraphic

\starttext
\useMPgraphic{outlineT}
\stoptext


However, the next example is not working(without \setupMPvariables[]).

%%%
\startuseMPgraphic{outlineT}{tt}
  draw outlinetext.b (\MPvar{tt})
  (withcolor .5white)
  (withcolor .625blue withpen pencircle scaled .2pt)
  scaled 3 ;
\stopuseMPgraphic

\starttext
\useMPgraphic{outlineT}{tt=“Hello”}
\stoptext


So, the trial to use above code for chapter title as following didn’t work 
either.

\startuseMPgraphic{outlineT}{tt}
string tt;
  draw outlinetext.b (\MPvar{tt})
  (withcolor .5white)
  (withcolor .625blue withpen pencircle scaled .2pt)
  scaled 3 ;
\stopuseMPgraphic
\define[1]\myTest{\useMPgraphic{outlineT}{#1}}

\setuphead[chapter]
 [textcommand=\myTest,
 numbercommand=\myTest,
number=yes]

\starttext
\startchapter[title={First chapter}]

 Chapter

\stopchapter
\stoptext
%%%

Is there any way to make it work?

thank you.

Best regards,

Dalyoung

___
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] Metapost graphic in setupbackground

2019-02-08 Thread Jan U. Hasecke
Thanks a lot Wolfgang and Marco. :-)

juh

Am 08.02.19 um 12:57 schrieb Wolfgang Schuster:
> 
> 
> Jan U. Hasecke schrieb am 08.02.19 um 12:36:
>> Hi all,
>>
>> I make my first steps with Metapost.
>>
>> I would like to set the background of all pages to a Metapost graphic.
>>
>> But only the first page has the defined background.
>>
>> I also tried with
>>
>> \startuseMPgraphic
>>
>> with no success
>>
>> --- mwe ---
>>
>> \startreusableMPgraphic{kreis}
>> draw fullcircle scaled 70mm withcolor red withpen pencircle scaled 6mm;
>> \stopreusableMPgraphic
>>
>> \definelayer[kreisbackground][width=70mm,height=70mm]
> 
> \definelayer[kreisbackground][state=repeat]
> 
> 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] Metapost graphic in setupbackground

2019-02-08 Thread Wolfgang Schuster



Jan U. Hasecke schrieb am 08.02.19 um 12:36:

Hi all,

I make my first steps with Metapost.

I would like to set the background of all pages to a Metapost graphic.

But only the first page has the defined background.

I also tried with

\startuseMPgraphic

with no success

--- mwe ---

\startreusableMPgraphic{kreis}
draw fullcircle scaled 70mm withcolor red withpen pencircle scaled 6mm;
\stopreusableMPgraphic

\definelayer[kreisbackground][width=70mm,height=70mm]


\definelayer[kreisbackground][state=repeat]

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] Metapost graphic in setupbackground

2019-02-08 Thread Marco Patzer
On Fri, 8 Feb 2019 12:36:16 +0100
"Jan U. Hasecke"  wrote:

> \definelayer[kreisbackground][width=70mm,height=70mm]

\definelayer[kreisbackground][width=70mm,height=70mm, state=repeat]

start: layer appears only on the current page
stop : layer doesn't show up
repeat   : layer prints on all pages
next : layer appears on the following page
continue : layer appears on all pages except the first

> \setupbackgrounds[paper][background=kreisbackground, state=start]

\setupbackgrounds[paper][background=kreisbackground]

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


[NTG-context] Metapost graphic in setupbackground

2019-02-08 Thread Jan U. Hasecke
Hi all,

I make my first steps with Metapost.

I would like to set the background of all pages to a Metapost graphic.

But only the first page has the defined background.

I also tried with

\startuseMPgraphic

with no success

--- mwe ---

\startreusableMPgraphic{kreis}
draw fullcircle scaled 70mm withcolor red withpen pencircle scaled 6mm;
\stopreusableMPgraphic

\definelayer[kreisbackground][width=70mm,height=70mm]

\setlayer[kreisbackground]
  [x=-3mm,y=-3mm]
  {\reuseMPgraphic{kreis}}

\setupbackgrounds[paper][background=kreisbackground, state=start]

\starttext

\input lorem

\page

\input lorem

\stoptext


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


[NTG-context] context --ansi creates empty log file

2019-02-08 Thread Marco Patzer
Hi!

Is it expected behaviour that --ansi creates an empty log file?
Example:

%% foo.tex
\startext\null\stoptext

# context foo
# wc -c foo.log
7501 foo.log

# context --ansi foo
# wc -c foo.log
1 foo.log

ctx 2019.01.28 16:58

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