[NTG-context] keeping content chunks on same page

2020-08-24 Thread Mike Cooper
Just about to have these homework files finished!

My final problem (I hope) is keeping question/answer blocks together.

The questions are currently defined via \defineenumeration with a \testpage 
(see below).  I fiddled with the \testpage and found that \testpage[6] gave me 
the best results but there are still some question/answer blocks that get split 
across pages.  The content chunks can be as small as a single line question 
with T/F answer options, or as large as seven lines for the question and seven 
for the answer options (although I don't think both of these occur together).

In my searching for solutions, I thought I'd found something helpful with 
\startframed but I can't figure any way to combine the framed and enumeration...

Anyway, here's some code.  It doesn't demonstrate the page-break problem but 
gives an idea of the different possible sizes of question/answer chunks.

\defineenumeration[question]
   [text=,
headstyle=normal,
right=.,
alternative=left,
distance=1em,
width=fit,
before={\testpage[6]\blank[2em]},
after={\blank}
]

\defineitemgroup[achoices]
   [option={packed,a,broad},
left=(, right=), stopper=]

\starttext
\startquestion Before a joint of pipe is laid down, the thread protector should 
be installed.
\startachoices
\startitem True \stopitem
\startitem False \stopitem
\stopachoices
\stopquestion

\startquestion The hardest part of the drilling program for young drilling 
engineers to plan is the section on hole stability because they have not had 
much hole problem exposure and have not been told that this particular shale is 
a "twenty-day shale". The most likely reason for the breakdown in 
communications is:
\startachoices
\startitem Inadequate case history data and poorly completed field 
records and NO trend charts \stopitem
\startitem Mud company representatives are only calling on drilling 
superintendents and managers \stopitem
\startitem Drilling engineers cannot read "between the lines" on 
morning reports and therefore miss the point many times. \stopitem
\startitem Too few hours to do adequate offset well record check 
\stopitem
\stopachoices
\stopquestion

\startquestion If the toolpusher noted the following trend while RIH with drill 
pipe, what should he instruct the driller to do?
\setuptabulate[header=none]
\starttabulate[|c|c|c|]
\NC Stands \NC Increments required vs. actual \NC Trend \NC \NR
\NC 0-5 \NC 3.57 vs. 3.57 \NC ~0 \NC \NR
\NC 6-10\NC 3.57 vs. 2.57 \NC -1 \NC \NR
\NC 11-15\NC 3.57 vs. 1.57 \NC -2 \NC \NR
\stoptabulate
\startachoices
\startitem Continue to RIH to the casing shoe and observe the well 
\stopitem
\startitem Stop and break circulation every 12 stands \stopitem
\startitem Slow down because it looks like we are losing mud to the 
formation \stopitem
\startitem RIH quickly because it looks like the hole is trying to 
flow \stopitem
\stopachoices
\stopquestion

\stoptext


THANKS FOR YOUR HELP!


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<mailto:m...@murchisondrillingschools.com>
Website: 
www.murchisondrillingschools.com<http://www.murchisondrillingschools.com/>
[cid:image007.jpg@01D03ADC.BD6E6850]<https://www.facebook.com/pages/Murchison-Drilling-Schools/158018484232622>
  [cid:image008.jpg@01D03ADC.BD6E6850] 
<http://www.linkedin.com/company/murchison-drilling-schools-inc->   
[cid:image009.jpg@01D03ADC.BD6E6850] <https://twitter.com/trainingmds>
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
___


Re: [NTG-context] custom header/footer for 1st/other pages of section

2020-08-20 Thread Mike Cooper
Thank you Wolfgang!!

I was taken away to other work for several days and just got back to this now.

Works great!
THANKS!



> -Original Message-
> From: Wolfgang Schuster [mailto:wolfgang.schuster.li...@gmail.com]
> Sent: Tuesday, August 11, 2020 12:07 PM
> To: mailing list for ConTeXt users
> Cc: Mike Cooper
> Subject: Re: [NTG-context] custom header/footer for 1st/other pages of section
> 
> Mike Cooper schrieb am 11.08.2020 um 19:20:
> >
> >
> >> -Original Message-
> >> From: Wolfgang Schuster [mailto:wolfgang.schuster.li...@gmail.com]
> >> Sent: Tuesday, August 11, 2020 10:07 AM
> >> To: mailing list for ConTeXt users
> >> Cc: Mike Cooper
> >> Subject: Re: [NTG-context] custom header/footer for 1st/other pages of 
> >> section
> >>
> >>
> >> Mike Cooper schrieb am 10.08.2020 um 23:40:
> >>>
> >>>
> >>> Thank you Wolfgang!
> >>>
> >>> I tried to change your code from chapters to sections (since that's what 
> >>> I was
> >> already using) but it didn't work.  So, I switched my sections to chapters 
> >> and it
> >> works great!  But it also caused me to run into other things I'd set up 
> >> manually
> that
> >> I'm having to figure out---good way to learn!  Haha!
> >>
> >> You can only set header or footer settings when the section starts on a
> >> new page. Permitting these two values for every section without this
> >> restrictions can lead to problems because there can be cases where you
> >> have different section levels on the same page and the setting from the
> >> last command on the page counts.
> >
> > That makes sense.  I wasn't really thinking of my sections as "chapters" 
> > per se.
> And I was forcing sections (each >5 pages) to start on new (odd) pages.  But
> switching to chapters is fine and takes care of some other stuff I was 
> forcing.
> 
> 
> You don't have to use \chapter as first level section which starts on a
> new page, you can do the same with \section when you use
> 
>\setuphead
>  [section]
>  [page={yes,odd}]
> 
> 
> >>> One thing I *CANNOT* figure out:  I've been using \doifoddpageelse to put 
> >>> in a
> >> blank/empty page at the end of a section (if needed) so that new sections
> always
> >> start on an odd page.  This is still working with the change to chapters 
> >> from
> >> sections, EXCEPT for the first chapter (after TOC)!  Totally stuck with 
> >> that one...
> >>
> >> Let me guess you divide your document into section blocks (frontmatter,
> >> bodymatter etc.).
> >>
> >> When this is the case you have to first disable the page setting for
> >> these blocks because they interfere with the header/footer setting. To
> >> disable the page breaks add
> >>
> >> \setupsectionblock
> >>   [frontpart,bodypart]
> >>   [page=no]
> >>
> >> to your document setups.
> >
> > How does this interact with \startsectionblockenvrironment?  I found this on
> wiki.contextgarden.net/Table_of_Contents for suppressing header/footer on 
> TOC.  I
> did not specify frontmatter before, but moving the header/footer content into 
> the
> environment file messed up my formerly clean TOC page.  :-)   So, I've 
> currently
> got:
> >
> > \startsectionblockenvironment[frontpart]
> >\setupheader[state=none]
> >\setupfooter[state=none]
> > \stopsectionblockenvironment
> >
> > Do I keep this and also include your code above?  Or can both things be 
> > taken
> care of together somehow?
> 
> 
> Both a different setups for different purposes.
> 
> 
> In my setup I tell ConTeXt not to force a page break when it encounters
> \startfrontmatter or \stopfrontmatter because I insert the break with
> \chapter.
> 
> 
> With the sectionblockenvironment-environment you can set a list of
> settings which are inserted at the start of block, i.e. your settings
> above do the same as
> 
>\startfrontmatter
> 
>\setupheader[...]
>\setupfooter[...]
> 
>...
> 
>\stopfrontmatter
> 
> where I added the setting to the start of the block. The advantage of
> \startsectionblockenvironment is that you have separated the layout from
> the content.
> 
> 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] custom header/footer for 1st/other pages of section

2020-08-11 Thread Mike Cooper


> -Original Message-
> From: Wolfgang Schuster [mailto:wolfgang.schuster.li...@gmail.com]
> Sent: Tuesday, August 11, 2020 11:15 AM
> To: mailing list for ConTeXt users
> Cc: Mike Cooper
> Subject: Re: [NTG-context] custom header/footer for 1st/other pages of section
> 
> Mike Cooper schrieb am 11.08.2020 um 19:01:
> >
> >
> >>
> >> Ehm... Why don’t you just use \setuphead[section][page=right] ?
> >>
> >> Hraban
> >
> >
> > Haha!  Well...  because I never found that approach in my searching.
> >
> > But now, I'm not using it because it doesn't work for me.  I was in the 
> > middle of
> > guessing I needed to set up doublesided or some such in order for it to 
> > work when
> > Wolfgang's other solution came in.
> 
> When you use "page=left" or "page=right" you need a doublesided document
> but for a singlesided document you can use "page=even" or "page=odd".
> 
> 
> There is also another layout method which combines both. The layout is
> taken from a singlesided document which means the left and right margins
> are the same on odd and even page but checks for left or right pages
> work like in a doublesided document.
> 
> You can test this with the example below when you uncomment the second
> and third pagenumbering setup-
> 
> \setuppagenumbering
>[alternative={singlesided,doublesided}]
> 
> %\setuppagenumbering
> %  [alternative=singlesided]
> 
> %\setuppagenumbering
> %  [alternative=doublesided]
> 
> \setuphead
>[chapter]
>[page=right]
> 
> \showframe
> 
> \starttext
> 
> \dorecurse{3}
>{\expanded{\chapter{Chapter \recurselevel}}
> \dorecurse{4}{\samplefile{weisman}}}
> 
> \stoptext
> 
> Wolfgang

Interesting!  Thank you!

___
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] custom header/footer for 1st/other pages of section

2020-08-11 Thread Mike Cooper


> -Original Message-
> From: Wolfgang Schuster [mailto:wolfgang.schuster.li...@gmail.com]
> Sent: Tuesday, August 11, 2020 10:07 AM
> To: mailing list for ConTeXt users
> Cc: Mike Cooper
> Subject: Re: [NTG-context] custom header/footer for 1st/other pages of section
> 
> 
> Mike Cooper schrieb am 10.08.2020 um 23:40:
> >
> >
> > Thank you Wolfgang!
> >
> > I tried to change your code from chapters to sections (since that's what I 
> > was
> already using) but it didn't work.  So, I switched my sections to chapters 
> and it
> works great!  But it also caused me to run into other things I'd set up 
> manually that
> I'm having to figure out---good way to learn!  Haha!
> 
> You can only set header or footer settings when the section starts on a
> new page. Permitting these two values for every section without this
> restrictions can lead to problems because there can be cases where you
> have different section levels on the same page and the setting from the
> last command on the page counts.

That makes sense.  I wasn't really thinking of my sections as "chapters" per 
se.  And I was forcing sections (each >5 pages) to start on new (odd) pages.  
But switching to chapters is fine and takes care of some other stuff I was 
forcing.

THANKS!

 
> > One thing I *CANNOT* figure out:  I've been using \doifoddpageelse to put 
> > in a
> blank/empty page at the end of a section (if needed) so that new sections 
> always
> start on an odd page.  This is still working with the change to chapters from
> sections, EXCEPT for the first chapter (after TOC)!  Totally stuck with that 
> one...
> 
> Let me guess you divide your document into section blocks (frontmatter,
> bodymatter etc.).
> 
> When this is the case you have to first disable the page setting for
> these blocks because they interfere with the header/footer setting. To
> disable the page breaks add
> 
>\setupsectionblock
>  [frontpart,bodypart]
>  [page=no]
> 
> to your document setups.

How does this interact with \startsectionblockenvrironment?  I found this on 
wiki.contextgarden.net/Table_of_Contents for suppressing header/footer on TOC.  
I did not specify frontmatter before, but moving the header/footer content into 
the environment file messed up my formerly clean TOC page.  :-)   So, I've 
currently got:

   \startsectionblockenvironment[frontpart]
  \setupheader[state=none]
  \setupfooter[state=none]
   \stopsectionblockenvironment

Do I keep this and also include your code above?  Or can both things be taken 
care of together somehow?

 
> No you can change the settings for the page break at the begin of each
> chapter to
> 
>\setuphead
>  [chapter]
>  [page={yes,header,footer,right}]
> 
> which
> 
>1. Finishes the last page of the previous chapter
>2. Disables the header and footer for the next (empty) page
>3. Adds a empty page when necessary to start the new chapter on a right 
> page

Excited to try this once I know what to do with the sectionblock stuff.

Going to fiddle...

THANKS!!!


___
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] custom header/footer for 1st/other pages of section

2020-08-11 Thread Mike Cooper


> -Original Message-
> From: ntg-context [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Henning
> Hraban Ramm
> Sent: Tuesday, August 11, 2020 12:37 AM
> To: mailing list for ConTeXt users
> Subject: Re: [NTG-context] custom header/footer for 1st/other pages of section
> 
> > One thing I *CANNOT* figure out:  I've been using \doifoddpageelse to put 
> > in a
> blank/empty page at the end of a section (if needed) so that new sections 
> always
> start on an odd page.  This is still working with the change to chapters from
> sections, EXCEPT for the first chapter (after TOC)!  Totally stuck with that 
> one...
> 
> Ehm... Why don’t you just use \setuphead[section][page=right] ?
> 
> Hraban


Haha!  Well...  because I never found that approach in my searching.

But now, I'm not using it because it doesn't work for me.  I was in the middle 
of guessing I needed to set up doublesided or some such in order for it to work 
when Wolfgang's other solution came in.

Thanks for your help!

___
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] custom header/footer for 1st/other pages of section

2020-08-10 Thread Mike Cooper


> -Original Message-
> From: ntg-context [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Wolfgang
> Schuster
> Sent: Thursday, August 06, 2020 2:58 PM
> To: mailing list for ConTeXt users
> Subject: Re: [NTG-context] custom header/footer for 1st/other pages of section
> 
> Mike Cooper schrieb am 06.08.2020 um 17:15:
> > Hola,
> >
> > I imagine this is probably simple but I can’t find it…
> >
> > I want the first page only of each section to have particular content in
> > header/footer, then all the following pages to different specific
> > content.Right now, I am manually entering it in each section.I’m hoping
> > there’s a way to automate this; put it into the environment file for all
> > sections.
> 
> Of course you can set different header/footer layouts for chapter pages.
> 
> With  \setupheadertexts and \setupfootertexts you set first the text
> which should appear on regular pages.
> 
> To have a different text on a chapter page you can use the \definetext
> command to set them (third first argument is the name of the setup and
> the second argument the location). These setups than can applied to the
> chapter with the header and footer key in \setuphead.
> 
>  begin example
> \setupheadertexts
>[Page \userpagenumber\ of \lastuserpagenumber]
> 
> \definetext
>[chapterheader] % name
>[header] % vertical position
>[This is a chapter page] % content
> 
> \definetext
>[chapterfooter]
>[footer]
>[pagenumber]
> 
> \setuphead
>[chapter]
>[header=chapterheader,
> footer=chapterfooter]
> 
> \starttext
> 
> \dorecurse{10}
>{\expanded{\chapter{Chapter \recurselevel}}
> \dorecurse{\numexpr2*\recurselevel\relax}{\samplefile{knuth}}}
> 
> \stoptext
>  end example
> 
> Wolfgang


Thank you Wolfgang!

I tried to change your code from chapters to sections (since that's what I was 
already using) but it didn't work.  So, I switched my sections to chapters and 
it works great!  But it also caused me to run into other things I'd set up 
manually that I'm having to figure out---good way to learn!  Haha!

One thing I *CANNOT* figure out:  I've been using \doifoddpageelse to put in a 
blank/empty page at the end of a section (if needed) so that new sections 
always start on an odd page.  This is still working with the change to chapters 
from sections, EXCEPT for the first chapter (after TOC)!  Totally stuck with 
that one...

Thanks again!

hasta,
Mike

___
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] custom header/footer for 1st/other pages of section

2020-08-06 Thread Mike Cooper
Hola,

I imagine this is probably simple but I can't find it...

I want the first page only of each section to have particular content in 
header/footer, then all the following pages to different specific content.  
Right now, I am manually entering it in each section.  I'm hoping there's a way 
to automate this; put it into the environment file for all sections.

THANKS FOR YOUR HELP!


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<mailto:m...@murchisondrillingschools.com>
Website: 
www.murchisondrillingschools.com<http://www.murchisondrillingschools.com/>
[cid:image007.jpg@01D03ADC.BD6E6850]<https://www.facebook.com/pages/Murchison-Drilling-Schools/158018484232622>
  [cid:image008.jpg@01D03ADC.BD6E6850] 
<http://www.linkedin.com/company/murchison-drilling-schools-inc->   
[cid:image009.jpg@01D03ADC.BD6E6850] <https://twitter.com/trainingmds>
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
___


Re: [NTG-context] tabulate inside itemize

2020-07-29 Thread Mike Cooper
THANKS ADITYA!
I got Wolfgang's solution first and it works great.
But I think there are some things in your solution that I should try to learn 
about.  :)


> -Original Message-
> From: ntg-context [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Aditya
> Mahajan
> Sent: Wednesday, July 29, 2020 11:12 AM
> To: mailing list for ConTeXt users
> Subject: Re: [NTG-context] tabulate inside itemize
> 
> On Wed, 29 Jul 2020, Mike Cooper wrote:
> 
> > I would normally use tab stops and line breaks to achieve the following in a
> numbered list:
> >
> > 1.  DC =  3.20 bbl =   420 ft
> >HWDP   =  3.90 bbl =   450 ft
> >DP = 34.63 bbl = 2,037 ft
> >Totals = 41.73 bbl = 2,907 ft
> >
> > 2.  [next step …]
> >
> >
> > This is what I tried, but the output has a blank line at the number.  I 
> > can’t find
> anything about tabulate inside itemize.
> >
> > \starttext
> >
> > \startitemize[n]
> >\startitem \starttabulate[|l|l|r|l|r|]
> >\NC DC \NC = \NC 3.20 bbl \NC = \NC 420 
> > ft \NC \NR
> >\NC HWDP \NC = \NC 3.90 bbl \NC = \NC 
> > 450 ft \NC \NR
> >\NC DP \NC = \NC 34.63 bbl \NC =  \NC 
> > 2,037 ft \NC \NR
> >\NC DC \NC = \NC 41.73 bbl \NC =  \NC 
> > 2,907 ft \NC \NR
> >\stoptabulate \stopitem
> >\startitem Convert 2,907 to TVD: \\TVD = 2,907 × cosine 45° = 
> > 2,907 ×
> 0.707 = 2,056 ft \stopitem
> >\startitem ΔP = 2,056 ft × 0.052 × (15 - 7.2) = 834 psi
> > \stopitemize
> >
> > \stoptext
> 
> Naive solution: Add a \hbox around tabulate:
> 
> 
> \defineframed[tabulateframed][location=top,frame=off]
> 
> \starttext
> 
> \startitemize[n]
>  \startitem \dontleavehmode
>\tabulateframed{\starttabulate[|l|l|r|l|r|]
>  \NC DC \NC = \NC 3.20 bbl \NC = \NC 420 
> ft \NC \NR
>  \NC HWDP \NC = \NC 3.90 bbl \NC = \NC 
> 450 ft \NC \NR
>  \NC DP \NC = \NC 34.63 bbl \NC =  \NC 
> 2,037 ft \NC \NR
>  \NC DC \NC = \NC 41.73 bbl \NC =  \NC 
> 2,907 ft \NC \NR
>  \stoptabulate} \stopitem
>  \startitem Convert 2,907 to TVD: \\TVD = 2,907 × cosine 45° = 
> 2,907 ×
> 0.707 = 2,056 ft \stopitem
>  \startitem ΔP = 2,056 ft × 0.052 × (15 - 7.2) = 834 psi 
> \stopitemize
> 
> \stoptext
> 
> Normally, you can fix such issues by appending a \dontleavehmode in front of 
> the
> command but that doesn't work here. The offending code is line 1300 of tabl-
> tbl.mkxl:
> 
> \unexpanded\def\tabl_tabulate_outside_before
>{\ifhmode\par\fi
> \ifhmode
>   \vbox\bgroup
>   \let\tabl_tabulate_outside_after\egroup
>   \let\tabl_tabulate_outside_inbetween\relax
> \orelse\ifinner
>   \let\tabl_tabulate_outside_after\relax
>   \let\tabl_tabulate_outside_inbetween\relax
> \else
>   \whitespace
>   \tabulationparameter\c!before
>   \relax
>   \let\tabl_tabulate_outside_after\tabl_tabulate_outside_after_indeed
>   
> \let\tabl_tabulate_outside_inbetween\tabl_tabulate_outside_inbetween_indeed
> \fi}
> \protect
> 
> When you use \dontleavehmode\starttabulate, \starttabulate starts in 
> horizontal
> mode but the first \par in the above command takes it back to vertical mode. 
> The
> next \ifhmode then evaluates to false, \ifinner also evaluates to false, so 
> we enter
> the \else loop which inserts a \whitespace.
> 
> The reason why adding a \hbox{...} (which is what \framed without an align key
> does) works is because inside an \hbox{...} \par doesn't take TeX back to 
> vertical
> mode. So, we enter the first branch.
> 
> 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] tabulate inside itemize

2020-07-29 Thread Mike Cooper
THANKS HANS!
I got Wolfgang's solution first and it works great.



> -Original Message-
> From: ntg-context [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Hans Hagen
> Sent: Wednesday, July 29, 2020 11:11 AM
> To: mailing list for ConTeXt users
> Subject: Re: [NTG-context] tabulate inside itemize
> 
> On 7/29/2020 6:38 PM, Mike Cooper wrote:
>  > I would normally use tab stops and line breaks to achieve the following
>  > in a numbered list:
> I know this looks terrible:
> 
> \define\MyTabulateHack{\vskip-\lineheight\blank[disable]}
> 
> \startitemize[n]
> 
>  \startitem \MyTabulateHack
>  \starttabulate[|l|l|r|l|r|]
> 
> but it kind of works ok in your case.
> 
> 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
> ___
> 
___
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] tabulate inside itemize

2020-07-29 Thread Mike Cooper
I would normally use tab stops and line breaks to achieve the following in a 
numbered list:

1.  DC =  3.20 bbl =   420 ft
HWDP   =  3.90 bbl =   450 ft
DP = 34.63 bbl = 2,037 ft
Totals = 41.73 bbl = 2,907 ft

2.  [next step …]


This is what I tried, but the output has a blank line at the number.  I can’t 
find anything about tabulate inside itemize.

\starttext

\startitemize[n]
\startitem \starttabulate[|l|l|r|l|r|]
\NC DC \NC = \NC 3.20 bbl \NC = \NC 420 ft 
\NC \NR
\NC HWDP \NC = \NC 3.90 bbl \NC = \NC 450 
ft \NC \NR
\NC DP \NC = \NC 34.63 bbl \NC =  \NC 2,037 
ft \NC \NR
\NC DC \NC = \NC 41.73 bbl \NC =  \NC 2,907 
ft \NC \NR
\stoptabulate \stopitem
\startitem Convert 2,907 to TVD: \\TVD = 2,907 × cosine 45° = 2,907 
× 0.707 = 2,056 ft \stopitem
\startitem ΔP = 2,056 ft × 0.052 × (15 - 7.2) = 834 psi
\stopitemize

\stoptext

Is there some way to stop the blank line or should I use an entirely different 
approach?

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<mailto:m...@murchisondrillingschools.com>
Website: 
www.murchisondrillingschools.com<http://www.murchisondrillingschools.com/>
[cid:image007.jpg@01D03ADC.BD6E6850]<https://www.facebook.com/pages/Murchison-Drilling-Schools/158018484232622>
  [cid:image008.jpg@01D03ADC.BD6E6850] 
<http://www.linkedin.com/company/murchison-drilling-schools-inc->   
[cid:image009.jpg@01D03ADC.BD6E6850] <https://twitter.com/trainingmds>
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
___


Re: [NTG-context] something between packed and "small"??

2020-07-01 Thread Mike Cooper


> -Original Message-
> From: ntg-context [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Henning
> Hraban Ramm
> Sent: Wednesday, July 01, 2020 1:30 PM
> To: mailing list for ConTeXt users
> Subject: Re: [NTG-context] something between packed and "small"??
> 
> 
> > Am 01.07.2020 um 21:04 schrieb Mike Cooper
> :
> >
> > Me again…
> >
> > I’ve got an itemize that needs to fit on one page.  I’ve been using
> inbetween={\blank[small]} for all the other analogous lists but this one is 
> longer and
> with that spacing, it goes about one inch onto the next page.  But if I use 
> packed,
> the list is way too crammed together and there’s about 2.5 inches of extra 
> space on
> the page!
> >
> > How do I go smaller than small?  Is there a “lightly packed”?  Or other 
> > degrees?
> >
> > I’ve tried \blank[1mm] and other dimensions but nothing will go smaller than
> small…  :-(
> 
> \blank understands an arbitrary measure, e.g. \blank[3pt] or \blank[0.25em]
> 
> Probably also \blank[0.5*small] works (didn’t check, but \blank[3*big] works).
> 
> Otherwise see https://wiki.contextgarden.net/Command/blank
> 
> Hraban


Thanks Hraban,

These don't work though...  It appears that a decimal will work with a 
dimension (like em) but not with small.  \blank[0.5*small] causes this "fatal 
error":

 ["lasttexerror"]="! Illegal unit of measure (pt inserted)",

I had tried em then pt, then mm.  But it won't get any smaller than small = 3mm 
= 10pt = 0.9em = small.  Except packed, that is...

Surely there is something in between small and packed??

I looked at the Command/blank page multiple times and searched the wiki and the 
web in every way I could think of.  I only ask the list when I absolutely can't 
find anything.  (Of course, at least once, it was there where I had already 
looked but I didn't understand enough to realize it!)  I even gave searching 
the mailing list archives a shot.

Thanks again!



___
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] something between packed and "small"??

2020-07-01 Thread Mike Cooper
Me again...

I've got an itemize that needs to fit on one page.  I've been using 
inbetween={\blank[small]} for all the other analogous lists but this one is 
longer and with that spacing, it goes about one inch onto the next page.  But 
if I use packed, the list is way too crammed together and there's about 2.5 
inches of extra space on the page!

How do I go smaller than small?  Is there a "lightly packed"?  Or other degrees?

I've tried \blank[1mm] and other dimensions but nothing will go smaller than 
small...  :-(

THANKS FOR YOUR HELP!!


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<mailto:m...@murchisondrillingschools.com>
Website: 
www.murchisondrillingschools.com<http://www.murchisondrillingschools.com/>
[cid:image007.jpg@01D03ADC.BD6E6850]<https://www.facebook.com/pages/Murchison-Drilling-Schools/158018484232622>
  [cid:image008.jpg@01D03ADC.BD6E6850] 
<http://www.linkedin.com/company/murchison-drilling-schools-inc->   
[cid:image009.jpg@01D03ADC.BD6E6850] <https://twitter.com/trainingmds>
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
___


Re: [NTG-context] spacing before items

2020-06-29 Thread Mike Cooper


> -Original Message-
> From: ntg-context [mailto:ntg-context-boun...@ntg.nl] On Behalf Of David
> Rogers
> Sent: Thursday, June 25, 2020 12:29 PM
>
> 
> You may already be doing what I'm about to suggest. If so, please
> disregard.
> 

Thanks again David!  IIRC, I did find one solution this way.  I think the 
biggest challenge with this approach is, as you mention, learning the best 
search keywords.  I think that should improve over time.

Thank you for this good advice!


___
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] latest silly question - insert unicode character?

2020-06-24 Thread Mike Cooper
Hi.  Me again.

How does one insert/use a special character?  At this particular time, I want 
Double Prime: Unicode 02BA.

How??

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<mailto:m...@murchisondrillingschools.com>
Website: 
www.murchisondrillingschools.com<http://www.murchisondrillingschools.com/>
[cid:image007.jpg@01D03ADC.BD6E6850]<https://www.facebook.com/pages/Murchison-Drilling-Schools/158018484232622>
  [cid:image008.jpg@01D03ADC.BD6E6850] 
<http://www.linkedin.com/company/murchison-drilling-schools-inc->   
[cid:image009.jpg@01D03ADC.BD6E6850] <https://twitter.com/trainingmds>
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
___


Re: [NTG-context] spacing before items

2020-06-24 Thread Mike Cooper


> -Original Message-
> From: ntg-context [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Henning
> Hraban Ramm
> Sent: Wednesday, June 24, 2020 2:20 PM
> To: mailing list for ConTeXt users
> Subject: Re: [NTG-context] spacing before items
> 
> 
> 
> Most of you know I’m writing at this German ConTeXt book since years...
> I use the incomplete version myself a lot, and I very much hope that at least 
> every
> second German TeX user will buy it ;)

Awesome!  Keep at it!
Maybe when there's an English version, I'll still need it!  :-)


> 
> Googling is necessary and helpful for LaTeX, but there aren’t so many blog or
> forum entries about ConTeXt.

Yes, this has been kind of frustrating too.  It's certainly challenged my 
searching skills to find and separate ConTeXt from LaTeX.


> 
> With TeX, footnotes, ToCs and indexes are beginner stuff, while they’re quite
> advanced with InDesign or Word. Styling your work is much easier in a visual
> programm – while you do it manually.

Hmmm...  I don't find those things to be at all advanced in Word.   ???


> 
> There is more beginner level documentation for ConTeXt than for ObjC, but we 
> still
> assume a basic familiarity with TeX and principles of design and typography.

Yes, this is exactly what I've found in just about everything labeled 
"beginner" or "basic" for ConTeXt documentation.  Maybe it would be "beginner" 
for someone who already knows some other typesetting code...  The best beginner 
thing I found was Willi Egger's "ConTeXt for Beginners" (TUGboat, Volume 38 
(2017), No. 3).  Only it's too short!  And I think my own background in 
HTML/CSS made it easier than it would be for someone who comes from an 
average-Word-user background.


> 
> >>I spent my whole day yesterday figuring out how to do some very basic
> >> formatting/layout that would have taken 5-10 minutes in Word or HTML/CSS.
> 
> But I’m quite sure if you figured it out on your own, you know how to do it 
> next
> time. Or if you forget, you can look for your own solution (I recur to my old
> environments all the time).

Yes, that at least is a consolation!


> 
> May I ask what kind of job requires you to learn ConTeXt? That’s rare.

Haha!  I now work with Jan Willem Flamma (who is on this list) in the training 
industry.  He tells me that using ConTeXt with XML will give us a modularity to 
our training content such that a modification in one place is more or less 
automatically taken care of for every course manual that uses that content.  
(At least that's my current understanding.)  So I've been trying to learn 
ConTeXt and now slowly chipping away at coding one of our smaller homework 
chapters.


> 
> > I've always found w3chools.com to be especially helpful with HTML/CSS
> because they give plenty of examples and explanation.
> 
> Please don’t use w3fools! It’s full of errors and bad practice. (At least it 
> was some
> years before; I can’t imagine it got fundamentally better.)

Oh interesting!  I've always found it very helpful.  Probably, I haven't 
attempted the more advanced features/coding.  ??


> 
> > 
>   I spent *days* trying to figure out how to add more whitespace
> around a floated graphic (the default is too cramped in my opinion).  I 
> finally just
> threw up my hands and decided that no one else has this opinion but me so
> nobody has ever "fixed" it and thus, no solution exists.
> 
> Hm, did you try the margin options of
> https://wiki.contextgarden.net/Command/setupfloat ?

I don't remember what all I tried at this point.  I think it's been over two 
months since I just gave up on that one.  I'll take another look.  Thanks!


> 
> The learning curve *is* steep and stays steep for a long while, depending on 
> your
> requirements.
> 
> 
> Good luck!
> Hraban

THANKS HRABAN!!


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

2020-06-24 Thread Mike Cooper


> -Original Message-
> From: ntg-context [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Hans Hagen
> Sent: Wednesday, June 24, 2020 12:50 AM
> To: mailing list for ConTeXt users
> Subject: Re: [NTG-context] spacing before items
> 
> On 6/24/2020 12:00 AM, Mike Cooper wrote:
> >
> >
> >> -Original Message-
> >> From: On Behalf Of David Rogers
> >> Sent: Tuesday, June 23, 2020 3:18 PM
> >>
> >>
> >> Mike Cooper  writes:
> >>
> >>> Thanks Tomáš!
> >>>
> >>> 1.  Where can this solution be found?
> >>
> >>
> >> Mike, I know how you feel. 
> 
>  >> David
> 
> Indeed. It's all volunteer work that doesn't pay the bills. Sitting down
> and starting to write a big manual simply doesn't pay off so it has to
> happen in free time. And that being the case, it is more attactive to
> work on some new challenge.
> 
> Concerning manuals: I sometimes wonder if they are really read. So, how
> to set up one that works for all, build up explanations, etc ... isn't
> it more about googling a solution nowadays (ok, not entirely true i
> guess, as one then has to learn how to distinguish the wrong solutions
> from the good, but i suppose one can just test it).

I started out maybe a little bit hodge-podge, looking through some 
documentation recommended to me.  The basic concept is very straightforward.  
No problem.  But implementation has been extremely challenging (but it's 
probably just me!).  Then I was pointed to Henri Menke's "Definitive Guide" 
post.  I read the entire Excursion (though I confess I did not *practice* as I 
went along (partly because SciTe was such a pain)).  The Excursion is not for 
(true) beginners.  And, no offense, but I thought it was poorly typeset as 
well...

Then I went through Aditya's "amazing tutorial" (mostly with a good bit of help 
from Aditya just to be able to get started!) and definitely learned more.  But 
at the end I felt like it was mostly an exercise in "slow-motion copy/paste" (I 
retyped all the code).  Of course, when I got the code right, I got the 
intended output.  I did fiddle with options a little bit as I went.  No doubt, 
I should have done more.  There was too much of what I had "successfully" done 
that I still didn't really understand at the end of it.


> 
> It has been said before: one can have manuals, wikis, mailing lists,
> journals ... once they cross the beginners level they also become large
> and hard to navigate. One can have 'beginners' and 'advanced' but who
> wants to be a 'beginner' ... when is the line crossed. Maybe on the wiky
> we should actually have that distinction.
> 
> > Thanks David!
> >
> > I don't think I've ever been quite so frustrated at trying to learn 
> > anything else in
> my life!  If it wasn't required by my job, I wouldn't have made it past the 
> first day or
> two (3 months ago).  But I'm slogging away and it's gradually coming together 
> (I
> think).  I spent my whole day yesterday figuring out how to do some very basic
> formatting/layout that would have taken 5-10 minutes in Word or HTML/CSS.
> >
> > People have been very helpful and patient with me!!  Thanks to all of you 
> > for
> that!
> 
> Let me challenge you: how would your solution translate to a wiki page
> for a beginner with the sam eproblem to solve ... content but also the
> 'how to get there aspect'

This is more general than about "my specific problem".  There have been a 
number of different ones.  They are all basic formatting/layout.  I've resorted 
to asking about a couple of them on the mailing list after no joy anywhere else.

Off the top of my head, I would suggest more explanation/description and 
especially more examples of what each option/key/whatever does.  I've always 
found w3chools.com to be especially helpful with HTML/CSS because they give 
plenty of examples and explanation.

I don't know if it's really feasible to do anything about it but another thing 
is the jargon.  I probably mainly think in terms of HTML/CSS lingo and then MS 
Word.  When I hunt through the wiki or the manuals or Google for solutions, I 
naturally use the terms I know.  But it seems that the things I've wanted are 
referred to differently in ConTeXt.  I spent *days* trying to figure out how to 
add more whitespace around a floated graphic (the default is too cramped in my 
opinion).  I finally just threw up my hands and decided that no one else has 
this opinion but me so nobody has ever "fixed" it and thus, no solution exists.


> 
> > And thanks David for this explanation of the situation.
> There are a couple of things that you need to keep in mind when you
> start with somethin

Re: [NTG-context] spacing before items

2020-06-23 Thread Mike Cooper


> -Original Message-
> From: On Behalf Of David Rogers
> Sent: Tuesday, June 23, 2020 3:18 PM
>
> 
> Mike Cooper  writes:
> 
> > Thanks Tomáš!
> >
> > 1.  Where can this solution be found?
> 
> 
> Mike, I know how you feel. The reasons that the documentation is
> so sparse and difficult to find are the same reasons behind a lot
> of things: time, money, and ability. Good documentation requires
> all three of those things to be brought together at the same time.
> Some people reading and responding here have two out of the three,
> but it's rare to find someone who has all three at the same time.
> 
> On second thought, there are at least five things required: time,
> money, ability, desire, and a workable plan. And with ConTeXt
> being developed by a relatively tiny group, even if a brilliant
> and kind organizer came along and said "I want excellent
> documentation for ConTeXt, and I'll pay a fortune to the person
> who knows how to write it - see, here's the money" - there's no
> way of guaranteeing that someone would actually take the offer.
> 
> --
> David


Thanks David!

I don't think I've ever been quite so frustrated at trying to learn anything 
else in my life!  If it wasn't required by my job, I wouldn't have made it past 
the first day or two (3 months ago).  But I'm slogging away and it's gradually 
coming together (I think).  I spent my whole day yesterday figuring out how to 
do some very basic formatting/layout that would have taken 5-10 minutes in Word 
or HTML/CSS.

People have been very helpful and patient with me!!  Thanks to all of you for 
that!

And thanks David for this explanation of the situation.

regards,
Mike

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

2020-06-17 Thread Mike Cooper
OK.  I'm not sure how I'm supposed to guess that.  I am a rank beginner and 
while there are breakthroughs now and then, frustration is still the main thing 
I experience trying to learn/use ConTeXt...

In any case, my original question is still not solved.  The before/inbetween 
keys add space everywhere.  I only want space between top-level items.  

Here is something like what I need, with the spacing exaggerated:


1.  Multi-line, involved question… Multi-line, involved question… Multi-line, 
involved question… Multi-line, involved question… Multi-line, involved 
question… Multi-line, involved question… Multi-line, involved question… 
Multi-line, involved question… Multi-line, involved question… Multi-line, 
involved question… Multi-line, involved question… Multi-line, involved 
question… Multi-line, involved question… Multi-line, involved question… 
What’s the answer?

a. An answer that may well wrap onto a second or even third line but is usually 
half a line or less.
b. By the time the data has been accurately analyzed, critical failure has 
already occurred.
c. Seven bands must be hired to adequately bring the funk.



2.  Another question with detailed data and information and scenario. Another 
question with detailed data and information and scenario. Another question with 
detailed data and information and scenario. Another question with detailed data 
and information and scenario. Another question with detailed data and 
information and scenario. Another question with detailed data and information 
and scenario. Another question with detailed data and information and scenario. 
Another question with detailed data and information and scenario.
What’s the correct action to take?

a. Create a spreadsheet which compiles the salient data into a logical 
order/layout, perform calculations and analysis then search the internet for a 
solution.
b. Immediately report the data to the supervisory team.
c. File the data in the relevant, appropriate locations, complete a 
standardized company report form, notify all vested parties, raise the flags, 
abandon ship.



3.  Yet another of the same. Yet another of the same. Yet another of the same. 
Yet another of the same. Yet another of the same. Yet another of the same. Yet 
another of the same. Yet another of the same. Yet another of the same. Yet 
another of the same. Yet another of the same. Yet another of the same. Yet 
another of the same. Yet another of the same. Yet another of the same. Yet 
another of the same.
What would you do?

a. Run
b. Walk
c. Crawl


I want the top-level chunks to be visually separated for better readability, 
etc.



-Original Message-
From: ntg-context [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Wolfgang 
Schuster
Sent: Wednesday, June 17, 2020 2:45 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] spacing before items

Mike Cooper schrieb am 17.06.2020 um 21:50:
> I really should have fiddled with this before thanking you, Wolfgang.  I was 
> focused on catching up on email etc. this morning.
> 
> Thanks for trying though!
> 
> Your "answer" is pretty much coded code to me.  I don't understand it and 
> don't have the first notion of how to implement it in my file.  For one 
> thing,  I have no clue what "ttbf" means.  Can't find it on the wiki or in 
> the manuals.  Google says it's the Texas Teen Book Festival but I'm guessing 
> that ain't it.  ???

My example shows which key is used for which space around each item.

To insert vertical space you have to use the \blank command and set a 
value in the optional argument, e.g. \blank[1cm].

To insert now a space of 1cm before the first item you need the "before" 
key with \blank as argument:

 \setupitemgroup[mdshw][1][before={\blank[1cm]}]

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

2020-06-17 Thread Mike Cooper
Yes, I did try it.  It put "[before]" (in ttbf (thanks for the hint!)) on the 
previously blank line before the first top-level item.  And it put 
"[inbetween]" in the other previously blank lines between both level of items, 
and "[after]" into the previously blank line after the last item.  

Spacing was not affected at all, only mysterious words in square brackets 
showed up in the output.

??


-Original Message-
From: ntg-context [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Henning 
Hraban Ramm
Sent: Wednesday, June 17, 2020 2:27 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] spacing before items



> Am 17.06.2020 um 21:50 schrieb Mike Cooper 
> :
> 
> For one thing,  I have no clue what "ttbf" means.  Can't find it on the wiki 
> or in the manuals.  Google says it's the Texas Teen Book Festival but I'm 
> guessing that ain't it.  ???

Did you try it?

(Hint: There’s \tt and \bf ...)

HR
___
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] spacing before items

2020-06-17 Thread Mike Cooper
I really should have fiddled with this before thanking you, Wolfgang.  I was 
focused on catching up on email etc. this morning.

Thanks for trying though!

Your "answer" is pretty much coded code to me.  I don't understand it and don't 
have the first notion of how to implement it in my file.  For one thing,  I 
have no clue what "ttbf" means.  Can't find it on the wiki or in the manuals.  
Google says it's the Texas Teen Book Festival but I'm guessing that ain't it.  
???

Thanks anyway!



-Original Message-
From: ntg-context [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Wolfgang 
Schuster
Sent: Tuesday, June 16, 2020 1:14 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] spacing before items

Mike Cooper schrieb am 16.06.2020 um 19:51:
> Hello list,
> 
> Another very simple issue—no doubt the answer is right in front of me 
> but I can’t find it or figure it out…
> 
> (Please let me know where it is!)
> 
> I want more space before each top-level item.MWE:
> 
> \defineitemgroup[mdshw][levels=2]
> 
> \setupitemgroup[mdshw][1][n]
> 
> \setupitemgroup[mdshw][2][a, packed, 1*broad][left=(, right=), stopper=]
> 
> \starttext
> 
> \startsection{First Section}

\startsection[title={...}]


The first entry uses the "before" value while inner entries use "inbetween".

\starttext

\setupitemgroup
   [itemize][1]
   [   before={\endgraf{\ttbf[before]}\endgraf},
inbetween={\endgraf{\ttbf [inbetween]}\endgraf},
after={\endgraf{\ttbf [after]}\endgraf}]

\startitemize
 \startitem Choose the correct answer.
 \startitemize
 \item This one
 \item This one
 \stopitemize
 \stopitem
 \startitem Choose the correct answer.
 \startitemize
 \item This one
 \item This one
 \stopitemize
 \stopitem
\stopitemize

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

2020-06-17 Thread Mike Cooper
Thanks Tomáš!

1.  Where can this solution be found?

2.  This solution also adds space between the top-level and second-level 
lists...  
 I only want some visual separation between the top-level chunks.

Thanks!



-Original Message-
From: ntg-context [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Tomas Hala
Sent: Tuesday, June 16, 2020 1:18 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] spacing before items

Hi Mike,

\setupitemgroup[youritems][1][inbetween={\blank[5*big]}]
could help you.

Best wishes,

Tomáš


Tue, Jun 16, 2020 ve 05:51:20PM + Mike Cooper napsal(a):
#Link: [1]File-List
#Link: [2]Edit-Time-Data
# 
#Hello list,
# 
# 
# 
#Another very simple issue—no doubt the answer is right in front of me but
#I can’t find it or figure it out… 
# 
#(Please let me know where it is!)
# 
# 
# 
#I want more space before each top-level item.  MWE:
# 
# 
# 
#\defineitemgroup[mdshw][levels=2]
# 
# \setupitemgroup[mdshw][1][n]
# 
# \setupitemgroup[mdshw][2][a, packed, 1*broad][left=(, right=),
#stopper=]
# 
# 
# 
# 
# 
#\starttext
# 
# 
# 
#\startsection{First Section}
# 
# 
# 
#\startmdshw
# 
# \item Choose the correct answer.
# 
#  \startmdshw
# 
#  \item This one
# 
#  \item This one
# 
#  \item This one
# 
#  \stopmdshw
# 
# 
# 
# \item Choose the correct answer.
# 
#  \startmdshw
# 
#  \item This one
# 
#  \item This one
# 
#  \item This one
# 
#  \stopmdshw
# 
# 
# 
# \item Choose the correct answer.
# 
#  \startmdshw
# 
#  \item This one
# 
#  \item This one
# 
#  \item This one
# 
#  \stopmdshw
# 
# 
# 
#\startmdshw
# 
# 
# 
#\stoptext
# 
# 
# 
# 
# 
#THANK YOU!!
# 
# 
# 
#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@01D643D4.723482A0
#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] spacing before items

2020-06-17 Thread Mike Cooper
Thanks Wolfgang!

1. Where can this solution be found?  (wiki or elsewhere)

2. I'm guessing that you're saying that my \startsection should have 
[title={...}] instead of what I gave?



-Original Message-
From: ntg-context [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Wolfgang 
Schuster
Sent: Tuesday, June 16, 2020 1:14 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] spacing before items

Mike Cooper schrieb am 16.06.2020 um 19:51:
> Hello list,
> 
> Another very simple issue—no doubt the answer is right in front of me 
> but I can’t find it or figure it out…
> 
> (Please let me know where it is!)
> 
> I want more space before each top-level item.MWE:
> 
> \defineitemgroup[mdshw][levels=2]
> 
> \setupitemgroup[mdshw][1][n]
> 
> \setupitemgroup[mdshw][2][a, packed, 1*broad][left=(, right=), stopper=]
> 
> \starttext
> 
> \startsection{First Section}

\startsection[title={...}]


The first entry uses the "before" value while inner entries use "inbetween".

\starttext

\setupitemgroup
   [itemize][1]
   [   before={\endgraf{\ttbf[before]}\endgraf},
inbetween={\endgraf{\ttbf [inbetween]}\endgraf},
after={\endgraf{\ttbf [after]}\endgraf}]

\startitemize
 \startitem Choose the correct answer.
 \startitemize
 \item This one
 \item This one
 \stopitemize
 \stopitem
 \startitem Choose the correct answer.
 \startitemize
 \item This one
 \item This one
 \stopitemize
 \stopitem
\stopitemize

\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
___
___
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] spacing before items

2020-06-16 Thread Mike Cooper
Hello list,

Another very simple issue-no doubt the answer is right in front of me but I 
can't find it or figure it out...
(Please let me know where it is!)

I want more space before each top-level item.  MWE:

\defineitemgroup[mdshw][levels=2]
 \setupitemgroup[mdshw][1][n]
 \setupitemgroup[mdshw][2][a, packed, 1*broad][left=(, right=), stopper=]


\starttext

\startsection{First Section}

\startmdshw
 \item Choose the correct answer.
  \startmdshw
  \item This one
  \item This one
  \item This one
  \stopmdshw

 \item Choose the correct answer.
  \startmdshw
  \item This one
  \item This one
  \item This one
  \stopmdshw

 \item Choose the correct answer.
  \startmdshw
  \item This one
  \item This one
  \item This one
  \stopmdshw

\startmdshw

\stoptext


THANK YOU!!

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<mailto:m...@murchisondrillingschools.com>
Website: 
www.murchisondrillingschools.com<http://www.murchisondrillingschools.com/>
[cid:image007.jpg@01D03ADC.BD6E6850]<https://www.facebook.com/pages/Murchison-Drilling-Schools/158018484232622>
  [cid:image008.jpg@01D03ADC.BD6E6850] 
<http://www.linkedin.com/company/murchison-drilling-schools-inc->   
[cid:image009.jpg@01D03ADC.BD6E6850] <https://twitter.com/trainingmds>
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
___


Re: [NTG-context] use parentheses in itemize

2020-06-08 Thread Mike Cooper
Thanks David!

I also realized (with some help! Thanks John!) that I was completely 
overlooking the answers to my original question, as well as "what is stopper?" 
on the wiki.



-Original Message-
From: ntg-context [mailto:ntg-context-boun...@ntg.nl] On Behalf Of David Rogers
Sent: Friday, June 05, 2020 9:24 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] use parentheses in itemize

On June 3, 2020 7:01:57 a.m. PDT, Mike Cooper 
 wrote:
>The logic in that approach is obvious.  Thanks Aditya.
>
>But then, what is "stopper"?  What's it for?  What happens if you just
>leave it out?

When you leave it out, it's simply not used. In broad general terms, ConTeXt is 
set up to allow you to just ignore any features you don't need.

Stopper is for when you want

(1.)
(2.)

or

(1:)
(2:)

or any other thing that suits you, to be placed after each number. "Nothing" is 
certainly one of the legitimate and common choices for this purpose, and Aditya 
took the step of actually defining it as "nothing" by typing "stopper=". (After 
the equals sign comes... you guessed it.) :) 

Doing such a "define it to be nothing" step would be especially 
helpful/important if you DID have it defined as something for a different part 
of your document, and then wanted to change styles part way through.

-- 
David
___
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-03 Thread Mike Cooper
The logic in that approach is obvious.  Thanks Aditya.

But then, what is "stopper"?  What's it for?  What happens if you just leave it 
out?



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

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


[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<mailto:m...@murchisondrillingschools.com>
Website: 
www.murchisondrillingschools.com<http://www.murchisondrillingschools.com/>
[cid:image007.jpg@01D03ADC.BD6E6850]<https://www.facebook.com/pages/Murchison-Drilling-Schools/158018484232622>
  [cid:image008.jpg@01D03ADC.BD6E6850] 
<http://www.linkedin.com/company/murchison-drilling-schools-inc->   
[cid:image009.jpg@01D03ADC.BD6E6850] <https://twitter.com/trainingmds>
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
___