Re: [NTG-context] use parentheses in itemize

2020-06-02 Thread jk...@inradius.net

> On Jun 2, 2020, m...@murchisondrillingschools.com 
>  wrote:
> 
> …
> Anyway, I want to have a list like this:
> 
> (a)  415,668 lb
> (b)  440,668 lb
> (c)  517,000 lb
> (d)  542,000 lb
> 
> How do I get these parentheses with my itemization symbol?

This is one way (from the wiki):

\startitemize[a][left=(,right=),stopper=]
  \item 1234
  \item 5678
  \item 9876
  \stopitemize

HTH,
John


___
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] reduced space below chapter title

2020-06-02 Thread Wolfgang Schuster

jbf schrieb am 03.06.2020 um 01:21:


Thanks Wolfgang. Clearly that fixes the problem. I also came up with 
another solution which avoids the need to define a MyChapterCommand, 
by first setting up the normal chapter as:


\setuphead
  [chapter]
[header=empty,alternative=middle,style=bold,numbercommand=\groupedcommand{}{\blank[2cm]},after={\blank[3cm]}]

and then setting up a mychapter as:

\definehead[mychapter][chapter]

\setuphead[mychapter][header=empty,alternative=middle,style=bold,numbercommand=\groupedcommand{}{\blank[2cm]},after={\blank[.5cm]}]

That gives me the result I am after as well as maintaining the style 
of the standard chapter head.




You can add a check for odd/even chapter numbers and use only a single 
command.


\startsetups[chapter:after]
  \ifodd\namedheadnumber{chapter}
    \blank[4cm]
  \else
    \blank[1cm]
  \fi
\stopsetups

\setuphead
  [chapter]
  [after=\directsetup{chapter:after}]

% \setuphead
%   [title]
%   [after={\blank[...]}]

\starttext

\dorecurse{10}
  {\chapter{Chapter #1}
   \input knuth}

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


Re: [NTG-context] use parentheses in itemize

2020-06-02 Thread Aditya Mahajan

On Wed, 3 Jun 2020, Tomas Hala wrote:


Hi Mike,

use this:

\setupitemize[left=(,stopper=)]
\startitemize[a]
\item  415,668 lb
\item  415,668 lb
\stopitemize


For symmetry, I prefer

\setupitemize[left=(, right=), stopper=]

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


Re: [NTG-context] reduced space below chapter title

2020-06-02 Thread jbf
Thanks Wolfgang. Clearly that fixes the problem. I also came up with 
another solution which avoids the need to define a MyChapterCommand, by 
first setting up the normal chapter as:


\setuphead
  [chapter]
[header=empty,alternative=middle,style=bold,numbercommand=\groupedcommand{}{\blank[2cm]},after={\blank[3cm]}]

and then setting up a mychapter as:

\definehead[mychapter][chapter]

\setuphead[mychapter][header=empty,alternative=middle,style=bold,numbercommand=\groupedcommand{}{\blank[2cm]},after={\blank[.5cm]}]

That gives me the result I am after as well as maintaining the style of 
the standard chapter head.


Julian

On 3/6/20 12:58 am, Wolfgang Schuster wrote:

jbf schrieb am 02.06.2020 um 11:41:

Hi list,

I am attempting to achieve, for every second chapter, to have only 
one line of space between the chapter title and the text that follows.


I looked at the following example in the wiki:

\setuppapersize[A6][A6]
\setupbodyfont[8pt]
\def\MyChapterCommand#1#2%
   {\vbox  to 4cm\bgroup
  {#1\hskip.75em #2}
  \vss
  \egroup}
\setuphead[chapter][header=nomarking, command=\MyChapterCommand]
\starttext
\chapter{test}  \input  tufte
\stoptext

and presumed that I could adjust that to something like 1cm instead 
of 4cm.


The problem is that when I try to process the original example, I get 
a fatal error at the line which reads \chapter{test} \input tufte.


I'm not sure why that error, but that aside, would the 
\def\MyChapterCommand approach suggested above be the right way to 
achieve my purpose? In other words, I want the text that follows the 
chapter title to follow immediately for specific chapters, rather 
than the considerable vertical space that follows the default setup 
for chapter titles.


Julian


Change

    \def\MyChapterCommand#1#2%

to

    \unexpanded\def\MyChapterCommand#1#2%

or

    \define[2]\MyChapterCommand

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] use parentheses in itemize

2020-06-02 Thread Mike Cooper
Awesome!
Thank you Tomáš!



-Original Message-
From: ntg-context [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Tomas Hala
Sent: Tuesday, June 02, 2020 4:23 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] use parentheses in itemize

Hi Mike,

use this:

\setupitemize[left=(,stopper=)]
\startitemize[a]
\item  415,668 lb
\item  415,668 lb
\stopitemize

Best wishes,

Tomáš

Tue, Jun 02, 2020 ve 09:56:38PM + Mike Cooper napsal(a):
#Link: [1]File-List
#Link: [2]Edit-Time-Data
# 
#Hello list.
# 
# 
# 
#Here is the first what will no doubt be many *VERY* basic questions.  So
#far, I am having quite a difficult time finding any help in the
#documentation (not just this issue but pretty much anything, really).
# 
# 
# 
#Anyway, I want to have a list like this:
# 
# 
# 
#(a)  415,668 lb
# 
#(b)  440,668 lb
# 
#(c)  517,000 lb
# 
#(d)  542,000 lb
# 
# 
# 
#How do I get these parentheses with my itemization symbol?
# 
# 
# 
#THANKS!
# 
# 
# 
#Mike Cooper
# 
#Technical Trainer
# 
#Murchison Drilling Schools, Inc.
# 
#2501 Juan Tabo NE
# 
#Albuquerque, NM 87112
# 
#Tel: (505) 293-6271
# 
#Fax: (505) 298-5294
# 
#Email: [3]m...@murchisondrillingschools.com
# 
#Website: [4]www.murchisondrillingschools.com
# 
#[5]cid:image007.jpg@01D03ADC.BD6E6850  
[6]cid:image008.jpg@01D03ADC.BD6E6850  [7]cid:image009.jpg@01D03ADC.BD6E6850
# 
#Murchison Drilling Schools is now part of
# 
#[8]cid:image001.png@01D63515.857FD120
# 
# 
# 
# References
# 
#Visible links
#1. file:///home/thala/.mutt-tmp/cid:filelist.xml@01D638F6.65509B20
#2. file:///home/thala/.mutt-tmp/cid:editdata.mso
#3. mailto:m...@murchisondrillingschools.com
#4. http://www.murchisondrillingschools.com/
#5. 
https://www.facebook.com/pages/Murchison-Drilling-Schools/158018484232622
#6. http://www.linkedin.com/company/murchison-drilling-schools-inc-
#7. https://twitter.com/trainingmds






# 
___
# 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
___
___
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] use parentheses in itemize

2020-06-02 Thread Tomas Hala
Hi Mike,

use this:

\setupitemize[left=(,stopper=)]
\startitemize[a]
\item  415,668 lb
\item  415,668 lb
\stopitemize

Best wishes,

Tomáš

Tue, Jun 02, 2020 ve 09:56:38PM + Mike Cooper napsal(a):
#Link: [1]File-List
#Link: [2]Edit-Time-Data
# 
#Hello list.
# 
# 
# 
#Here is the first what will no doubt be many *VERY* basic questions.  So
#far, I am having quite a difficult time finding any help in the
#documentation (not just this issue but pretty much anything, really).
# 
# 
# 
#Anyway, I want to have a list like this:
# 
# 
# 
#(a)  415,668 lb
# 
#(b)  440,668 lb
# 
#(c)  517,000 lb
# 
#(d)  542,000 lb
# 
# 
# 
#How do I get these parentheses with my itemization symbol?
# 
# 
# 
#THANKS!
# 
# 
# 
#Mike Cooper
# 
#Technical Trainer
# 
#Murchison Drilling Schools, Inc.
# 
#2501 Juan Tabo NE
# 
#Albuquerque, NM 87112
# 
#Tel: (505) 293-6271
# 
#Fax: (505) 298-5294
# 
#Email: [3]m...@murchisondrillingschools.com
# 
#Website: [4]www.murchisondrillingschools.com
# 
#[5]cid:image007.jpg@01D03ADC.BD6E6850  
[6]cid:image008.jpg@01D03ADC.BD6E6850  [7]cid:image009.jpg@01D03ADC.BD6E6850
# 
#Murchison Drilling Schools is now part of
# 
#[8]cid:image001.png@01D63515.857FD120
# 
# 
# 
# References
# 
#Visible links
#1. file:///home/thala/.mutt-tmp/cid:filelist.xml@01D638F6.65509B20
#2. file:///home/thala/.mutt-tmp/cid:editdata.mso
#3. mailto:m...@murchisondrillingschools.com
#4. http://www.murchisondrillingschools.com/
#5. 
https://www.facebook.com/pages/Murchison-Drilling-Schools/158018484232622
#6. http://www.linkedin.com/company/murchison-drilling-schools-inc-
#7. https://twitter.com/trainingmds






# 
___
# 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] use parentheses in itemize

2020-06-02 Thread Mike Cooper
Hello list.

Here is the first what will no doubt be many *VERY* basic questions.  So far, I 
am having quite a difficult time finding any help in the documentation (not 
just this issue but pretty much anything, really).

Anyway, I want to have a list like this:

(a)  415,668 lb
(b)  440,668 lb
(c)  517,000 lb
(d)  542,000 lb

How do I get these parentheses with my itemization symbol?

THANKS!

Mike Cooper
Technical Trainer
Murchison Drilling Schools, Inc.
2501 Juan Tabo NE
Albuquerque, NM 87112
Tel: (505) 293-6271
Fax: (505) 298-5294
Email: 
m...@murchisondrillingschools.com
Website: 
www.murchisondrillingschools.com
[cid:image007.jpg@01D03ADC.BD6E6850]
  [cid:image008.jpg@01D03ADC.BD6E6850] 
   
[cid:image009.jpg@01D03ADC.BD6E6850] 
Murchison Drilling Schools is now part of
[cid:image001.png@01D63515.857FD120]

___
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] LMTX lua xml interface: xml.tag()?

2020-06-02 Thread Gerben Wierda
According to the mkiv manual, there is a \xmltag which I think should translate 
to xml.tag() in lua.

But while xml.name() works, xml.tag() fails:

attempt to call a nil value (field 'tag')

Should xml.tag() work?

G___
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] reduced space below chapter title

2020-06-02 Thread Wolfgang Schuster

jbf schrieb am 02.06.2020 um 11:41:

Hi list,

I am attempting to achieve, for every second chapter, to have only one 
line of space between the chapter title and the text that follows.


I looked at the following example in the wiki:

\setuppapersize[A6][A6]
\setupbodyfont[8pt]
\def\MyChapterCommand#1#2%
   {\vbox  to 4cm\bgroup
  {#1\hskip.75em #2}
  \vss
  \egroup}
\setuphead[chapter][header=nomarking, command=\MyChapterCommand]
\starttext
\chapter{test}  \input  tufte
\stoptext

and presumed that I could adjust that to something like 1cm instead of 4cm.

The problem is that when I try to process the original example, I get a 
fatal error at the line which reads \chapter{test} \input tufte.


I'm not sure why that error, but that aside, would the 
\def\MyChapterCommand approach suggested above be the right way to 
achieve my purpose? In other words, I want the text that follows the 
chapter title to follow immediately for specific chapters, rather than 
the considerable vertical space that follows the default setup for 
chapter titles.


Julian


Change

\def\MyChapterCommand#1#2%

to

\unexpanded\def\MyChapterCommand#1#2%

or

\define[2]\MyChapterCommand

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] Pre-registration for 14th ConTeXt Meeting, September 6–12, 2020

2020-06-02 Thread Jano Kula
Dear ConTeXt users!

The 14th ConTeXt Meeting  in the
Czech Republic is in preparation as originally planned. As nobody is able
to predict the situation in September, we have started pre-registration
only and will discuss conditions at the end of July via the mailing list of
pre-registered participants. We will take into account up-to-date travel
restrictions and health risks and make the final decision on July 31, 2020,
based also on the number of pre-registrations.

Till then no payment is wanted. All pre-registered participants qualify for
early bird discount to be paid during the first week of August.
Pre-registration doesn't bind you to pay or attend the meeting.

The ConTeXt Group board has discussed other options (on-line meeting,
postponing the meeting), but these are unlikely to happen, in case the
meeting is cancelled.

*14th ConTeXt Meeting*
*September 6–12, 2020, Sibřina, Czech Republic*

For the second time we will held the meeting at the friendly farm U Škodů,
at the eastern border of Prague. See the gallery from 2018
 by Frans Goddijn.

Topics will cover usage and development of LuaMetaTeX, ConTeXt, and
everything related. Each meeting is source of inspiration for everybody,
from beginner to expert. Friendly company is always looking for meeting new
participants, users of LuaTeX, LuaMetaTeX, ConTeXt, Metapost, etc.

There is a special discount for those, who attend the meeting for the first
time and for students. Also ConTeXt Group members are qualified for the
discount, so consider joining the group.

For more details and pre-registration visit the 14th ConTeXt Meeting
 page.

Hope to see you in September,
Jano
on behalf of the ConTeXt Group 
___
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] Numbers inside \sqrt are small

2020-06-02 Thread Mikael Sundqvist
Hi,

\starttext
$2+\sqrt{2}$
\stoptext

The output is attached. This happened with a release that are a bit old, as
well as with the most recent upgrade. LMTX.

/Mikael


sqrt.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] reduced space below chapter title

2020-06-02 Thread jbf

Hi list,

I am attempting to achieve, for every second chapter, to have only one 
line of space between the chapter title and the text that follows.


I looked at the following example in the wiki:

\setuppapersize[A6][A6]
\setupbodyfont[8pt]
\def\MyChapterCommand#1#2%
  {\vbox  to 4cm\bgroup
 {#1\hskip.75em #2}
 \vss
 \egroup}
\setuphead[chapter][header=nomarking, command=\MyChapterCommand]
\starttext
\chapter{test}  \input  tufte
\stoptext

and presumed that I could adjust that to something like 1cm instead of 4cm.

The problem is that when I try to process the original example, I get a 
fatal error at the line which reads \chapter{test} \input tufte.


I'm not sure why that error, but that aside, would the 
\def\MyChapterCommand approach suggested above be the right way to 
achieve my purpose? In other words, I want the text that follows the 
chapter title to follow immediately for specific chapters, rather than 
the considerable vertical space that follows the default setup for 
chapter titles.


Julian

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