Re: [NTG-context] methods for numbered paragraphs (ii)

2017-08-06 Thread Idris Samawi Hamid ادريس سماوي حامد

On Sun, 06 Aug 2017 13:49:37 -0600, Pablo Rodriguez  wrote:


On 08/06/2017 03:54 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:

In addition to the two dropbox links above, see the following:

https://people.umass.edu/klement/tlp/tlp.html#bodytext
https://people.umass.edu/klement/tlp/tlp.pdf

The dropbox links (from Introduction to Hegel by GRG Mure) illustrate a
combination of Wittgenstein numbering with paragraph indentation. So it  
is

something of a hybrid between sectioning and paragraph numbering.

NOTE: A full implementation of Wittgenstein numbering is not required,  
and

would probably not be wise except in the context of producing a ConTeXt
edition of the Tractatus (something of zero interest to this writer).
Indeed, Wittgenstein's numbering system is inconsistent or obscure in
places... What we are looking for is something actually sane-)

Hi Idris,

I forgot to comment. If you want to reproduce the layout of the
Wittgenstein edition, margin heads would be a better approach.


No, we want the numbering, but the layout we're trying to reproduce is  
that of Introduction to Hegel (see dropbox samples in earlier message)



But for that, we need first to present to Hans a unified proposal for
paralell streams.


Ah the streams thread.. need to revisit that for other purposes as well.


I meant its layout, not the “Tractatus” itself :-).


Indeed (I'm biting my tongue here -) )


Just in case it helps (the proposal ;-)),


Many thanks!

Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___
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] methods for numbered paragraphs (ii)

2017-08-06 Thread Idris Samawi Hamid ادريس سماوي حامد

On Sun, 06 Aug 2017 13:39:50 -0600, Pablo Rodriguez  wrote:


On 08/06/2017 03:54 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:

[...]
Something along the lines of the following would be a sufficient (and
easier) first step for the current project, although we may want to
revisit the above for the future:

3  % section
3.0.1   % subsubsection

4  % section
4.1% subsection
4.1.1   % subsubsection

How can we automate this?


Hi Idris,

if you only need a printed version, I think the following approach might
help:

\setupwhitespace[big]

\setuphead[section]
[alternative=margintext,
 color=white,
 style=\tfxx,
 before=,
 after=,
 commandafter={\setupparagraphintro[first]
[{{\bf \getmarking[sectionnumber][current]
\hspace[big]}}]}]

\setuphead[subsection]
[commandafter={\setupparagraphintro[first]
[{{\bf \getmarking[subsectionnumber][current]
\hspace[big]}}]}]

\setuphead[subsubsection]
[commandafter={\setupparagraphintro[first]
[{{\bf \getmarking[subsubsectionnumber][current]
\hspace[big]}}]}]

\starttext

\dorecurse{3}{\section{}
\startpar\input ward\stoppar
\startpar\input ward\stoppar
\dorecurse{3}{\subsection{}
\startpar\input ward\stoppar
\startpar\input ward\stoppar
\dorecurse{3}{\subsubsection{}
\startpar\input ward\stoppar
\startpar\input ward\stoppar
\startpar\input ward\stoppar}
\startpar\input ward\stoppar}
\startpar\input ward\stoppar}

\stoptext


Thank you very much, Pablo. Here is a modified version:

\setupwhitespace[big]

\setuphead[section]
[alternative=margintext,
 color=white,
 style=\tfxx,
 before=,
 after=,
 commandafter={\setupparagraphintro[first]
[{{\bf \getmarking[sectionnumber][current]
\hspace[big]}}]}]

\setuphead[subsection]
[commandafter={\setupparagraphintro[first]
[{{\bf \getmarking[subsectionnumber][current]
\hspace[big]}}]}]

\setuphead[subsubsection]
[commandafter={\setupparagraphintro[first]
[{{\bf \getmarking[subsubsectionnumber][current]
\hspace[big]}}]}]

\starttext
\starttitle[title=Paper]
\dorecurse{2}{%
\startsection
\startpar\input ward\stoppar
\startparagraph\input ward\stopparagraph

\startsubsubsection{}
\startpar\input ward\stoppar
\stopsubsubsection

\dorecurse{2}{%
\startsubsection
\startpar\input ward\stoppar
\startparagraph\input ward\stopparagraph

\dorecurse{2}{%
\startsubsubsection{}
\startpar\input ward\stoppar
\startparagraph\input ward\stopparagraph
\stopsubsubsection
}

\startparagraph{\bf level 2} \input ward\stopparagraph
\stopsubsection
}

\startparagraph{\bf level 1} \input ward\stopparagraph
\stopsection
}

\stoptitle
\stoptext
Challenges:

1. How can we get automatic indentation for all heads *except* the first  
one that occurs after the \starttitle?


2. Look at the output of the adjusted version above - attached. Note that  
a subsubsection after a section gives


1.1
2.1

which are the same as those given by a subsection after a section. How can  
we get a subsubsection after a section to produce the following?


1.0.1
2.0.1

etc.

Thanks again, Pablo!
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512

numbered-paragraphs-pablo.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] concatenating attribute values in XML

2017-08-06 Thread Pablo Rodriguez
On 08/06/2017 12:05 PM, Hans Hagen wrote:
> On 8/6/2017 11:37 AM, Pablo Rodriguez wrote:
>> [...]
>> How can I define the external figure so I concatenate the image file
>> names in the code above?
>>
>> I mean, \xmlconcat is great, but I don’t see how I could make it work to
>> get values from the src attribute.
> 
> why do you want to pass multiple names to \externalfigure

Many thanks for your reply, Hans.

My code was wrong, I need two external figures, not one. I only get the
same image repeated twice. I don’t know how to solve it.

This is what I have in the XML file:



   


This is what I tried in the environment file:

\startxmlsetups xml:sidebyside
\blank\startalign[center]
\dontleavehmode
\externalfigure[\xmlattribute{#1}{./p/img}{src}]
[width=.5\textwidth]
\externalfigure[\xmlattribute{#1}{./p/img}{src}]
[width=.5\textwidth]
\stopalign\blank
\stopxmlsetups

And this is what I need in pure ConTeXt:

\blank\startalign[center]
\dontleavehmode
\externalfigure[img/first-image.png][width=.5\textwidth]
\externalfigure[img/second-image.png][width=.5\textwidth]
\stopalign\blank

How could I achieve the second? (Concatenation is the only thing that
comes to my mind.)

Many thanks for your help,

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] methods for numbered paragraphs (ii)

2017-08-06 Thread Pablo Rodriguez
On 08/06/2017 03:54 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
> In addition to the two dropbox links above, see the following:
> 
> https://people.umass.edu/klement/tlp/tlp.html#bodytext
> https://people.umass.edu/klement/tlp/tlp.pdf
> 
> The dropbox links (from Introduction to Hegel by GRG Mure) illustrate a
> combination of Wittgenstein numbering with paragraph indentation. So it is
> something of a hybrid between sectioning and paragraph numbering.
> 
> NOTE: A full implementation of Wittgenstein numbering is not required, and
> would probably not be wise except in the context of producing a ConTeXt
> edition of the Tractatus (something of zero interest to this writer).
> Indeed, Wittgenstein's numbering system is inconsistent or obscure in
> places... What we are looking for is something actually sane-)
Hi Idris,

I forgot to comment. If you want to reproduce the layout of the
Wittgenstein edition, margin heads would be a better approach.

But for that, we need first to present to Hans a unified proposal for
paralell streams.

I meant its layout, not the “Tractatus” itself :-).

Just in case it helps (the proposal ;-)),

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] methods for numbered paragraphs (ii)

2017-08-06 Thread Pablo Rodriguez
On 08/06/2017 03:54 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
> [...]
> Something along the lines of the following would be a sufficient (and
> easier) first step for the current project, although we may want to
> revisit the above for the future:
> 
> 3  % section
> 3.0.1   % subsubsection
> 
> 4  % section
> 4.1% subsection
> 4.1.1   % subsubsection
> 
> How can we automate this?

Hi Idris,

if you only need a printed version, I think the following approach might
help:

\setupwhitespace[big]

\setuphead[section]
[alternative=margintext,
 color=white,
 style=\tfxx,
 before=,
 after=,
 commandafter={\setupparagraphintro[first]
[{{\bf \getmarking[sectionnumber][current]
\hspace[big]}}]}]

\setuphead[subsection]
[commandafter={\setupparagraphintro[first]
[{{\bf \getmarking[subsectionnumber][current]
\hspace[big]}}]}]

\setuphead[subsubsection]
[commandafter={\setupparagraphintro[first]
[{{\bf \getmarking[subsubsectionnumber][current]
\hspace[big]}}]}]

\starttext

\dorecurse{3}{\section{}
\startpar\input ward\stoppar
\startpar\input ward\stoppar
\dorecurse{3}{\subsection{}
\startpar\input ward\stoppar
\startpar\input ward\stoppar
\dorecurse{3}{\subsubsection{}
\startpar\input ward\stoppar
\startpar\input ward\stoppar
\startpar\input ward\stoppar}
\startpar\input ward\stoppar}
\startpar\input ward\stoppar}

\stoptext

I hope it helps,

Pablo

-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] beta

2017-08-06 Thread Mikael P. Sundqvist
On Sun, Aug 6, 2017 at 4:11 PM, Hans Hagen  wrote:
> in next beta
>
> % \setuphead[chapter][after={\markpage[chapter][+1]}]
> \setuphead[chapter][after={\markpage[chapter]\blank[2*big]}]
>
> \defineoverlay
>   [whatever]
>   [\doifelsemarkedpage{chapter}{CHAPTER}{}]
>
> \setupbackgrounds
>   [page]
>   [background=whatever]
>
> \starttext
> test \page test \page test \chapter{OEPS}
> test \page test \page test \chapter{OEPS}
> \stoptext
>
> --
>
> -
>   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
> ___

Thank you very much, that looks useful!

/Mikael
___
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] changing pdf type

2017-08-06 Thread Mikael P. Sundqvist
On Sun, Aug 6, 2017 at 7:27 PM, John Culleton  wrote:
> I need to have pdf files for U.S. printers in " PDF/X-1a2001" format. Hans
> gave me the magic formula a few years back but I lost that reply.
> Can someone help me out?
>
> John Culleton
>
>
>
> ___
> 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
> ___

This link?

http://wiki.contextgarden.net/PDFX

/Mikael
___
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] changing pdf type

2017-08-06 Thread John Culleton
I need to have pdf files for U.S. printers in " PDF/X-1a2001" format. Hans 
gave me the magic formula a few years back but I lost that reply.
 Can someone help me out?
  
 John Culleton
  
  

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

2017-08-06 Thread Hans Hagen

in next beta

% \setuphead[chapter][after={\markpage[chapter][+1]}]
\setuphead[chapter][after={\markpage[chapter]\blank[2*big]}]

\defineoverlay
  [whatever]
  [\doifelsemarkedpage{chapter}{CHAPTER}{}]

\setupbackgrounds
  [page]
  [background=whatever]

\starttext
test \page test \page test \chapter{OEPS}
test \page test \page test \chapter{OEPS}
\stoptext

--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] methods for numbered paragraphs (ii)

2017-08-06 Thread Idris Samawi Hamid ادريس سماوي حامد

On Sat, 05 Aug 2017 21:28:30 -0600, Idris Samawi Hamid ادريس سماوي حامد
 wrote:


The parameter insidesection= helps:


\setupwhitespace[big]

\def\SPACE#1{#1\hskip2em\hbox{}}
\setuphead[section]
[style=\bf,
 after={\blank[big]},
 before={\blank[big,medium]},
 color=walayahgreen,
 alternative=text,
 insidesection=\hskip-1.2em]
 % textcommand=\SPACE]
\setuphead[subsection]
[style=\bf,
 after={\blank[big]},
 before={\blank[big,medium]},
 color=walayahgreen,
 alternative=text,
 insidesection=\hskip-1.2em]
\setuphead[subsubsection]
[style=\bf,
 after={\blank[big]},
 before={\blank[big,medium]},
 color=walayahgreen,
 alternative=text,
 insidesection=\hskip-1.2em]

\define[1]\PARHEAD {{\bf{#1}}}

\starttext
\starttitle[title=Section 1]
\startsection[title=Paragraph 1]
\input ward
\stopsection

\startsection
\PARHEAD{Paragraph 2.} \input ward

\startparagraph
\input ward
\stopparagraph

\startsubsection
\input ward
\startsubsubsection
\input ward
\stopsubsubsection
\stopsubsection
\stopsection

\startsection
\input ward
\startsubsubsection
\input ward
\stopsubsubsection
\stopsection
\stoptitle
\stoptext


Paragraph 1 shows that we cannot use the normal title= mechanism and  
maintain consistent spacing.


Paragraph 2 does not use the \start|stopparagraph mechanism, but the  
succeeding non-numbered paragraph does.


CHALLENGES:

1. See the following:

https://www.dropbox.com/s/wckt0zm0zfpx721/numbered-paragraphs-indent.pdf?dl=0

The first numbered paragraph is not indented, but the second onward is.  
How can we automate this?


2. See attached. Consider the following snippet:

\startsection
\input ward
\startsubsubsection
\input ward
\stopsubsubsection
\stopsection

The paragraph number comes out as 3, but the subsubparagraph as 1. What  
we want is


3 
3.01 

The '0' indicates that there is no subsection. Here is an example:

https://www.dropbox.com/s/gy3e93x7jqt6ivx/numbered-paragraphs-indent-01.pdf?dl=0

How can we automate this?

Thanks in advance for any guidance and pointers.


In addition to the two dropbox links above, see the following:

https://people.umass.edu/klement/tlp/tlp.html#bodytext
https://people.umass.edu/klement/tlp/tlp.pdf

The dropbox links (from Introduction to Hegel by GRG Mure) illustrate a
combination of Wittgenstein numbering with paragraph indentation. So it is
something of a hybrid between sectioning and paragraph numbering.

NOTE: A full implementation of Wittgenstein numbering is not required, and
would probably not be wise except in the context of producing a ConTeXt
edition of the Tractatus (something of zero interest to this writer).
Indeed, Wittgenstein's numbering system is inconsistent or obscure in
places... What we are looking for is something actually sane-)

1. If we take the sectioning approach outlined above, then the challenges
are

i)  indent a section after a title; and
ii) implement something not identical to but in the spirit of wittgenstein
numbers, e.g., where a subsubsection follows a section:

3  % section
3.01   % subsubsection

4  % section
4.1% subsection
4.11   % subsubsection

But this may be difficult to automate except for simple cases.

Something along the lines of the following would be a sufficient (and
easier) first step for the current project, although we may want to
revisit the above for the future:

3  % section
3.0.1   % subsubsection

4  % section
4.1% subsection
4.1.1   % subsubsection

How can we automate this?

2. There may be better approaches than the sectioning model outlined in
the previous message.

Thank you in advance for your help.

Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___
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] methods for numbered paragraphs

2017-08-06 Thread Idris Samawi Hamid ادريس سماوي حامد

Hi Wolfgang,

On Sun, 06 Aug 2017 03:09:16 -0600, Wolfgang Schuster  
 wrote:



\setupwhitespace[big]
\definelabel[ParagraphNumber][text=Paragraph,closesymbol={\hspace[big]}]
\setupparagraphintro[each][\ParagraphNumber]
\starttext
\section{Section}
\input ward
\input ward
\input ward
\stoptext


Thanks for this. Note:

===
\setupwhitespace[big]

% \definelabel[ParagraphNumber][text=Paragraph,closesymbol={\hspace[big]}]
\definelabel[ParagraphNumber][text=,closesymbol={\hspace[big]}]

\setupparagraphintro[each][\ParagraphNumber]

\starttext

\section{Section}

\input ward

\input ward

\input ward

\stoptext
===

For simple essays, this is sufficient. But see the reply to the list from  
a few hours ago ("Re: [NTG-context] methods for numbered paragraphs (ii)")  
and the two dropbox examples. We want to be able to go further, in the  
spirit of the numbering system used by Ludwig Wittgenstein in the  
Tractatus.


Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___
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] concatenating attribute values in XML

2017-08-06 Thread Hans Hagen

On 8/6/2017 11:37 AM, Pablo Rodriguez wrote:

Dear list,

I have the following definition:

 \startxmlsetups xml:image:sidebyside
 \blank\startalign[center]
 \dontleavehmode
 \externalfigure[\xmlattribute{#1}{./p/img}{src}]
 [width=.5\textwidth]
 %~ \xmlconcat{#1}{./p/img}{ }
 \stopalign\blank
 \stopxmlsetups

How can I define the external figure so I concatenate the image file
names in the code above?

I mean, \xmlconcat is great, but I don’t see how I could make it work to
get values from the src attribute.

why do you want to pass multiple names to \externalfigure

-
  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] concatenating attribute values in XML

2017-08-06 Thread Pablo Rodriguez
Dear list,

I have the following definition:

\startxmlsetups xml:image:sidebyside
\blank\startalign[center]
\dontleavehmode
\externalfigure[\xmlattribute{#1}{./p/img}{src}]
[width=.5\textwidth]
%~ \xmlconcat{#1}{./p/img}{ }
\stopalign\blank
\stopxmlsetups

How can I define the external figure so I concatenate the image file
names in the code above?

I mean, \xmlconcat is great, but I don’t see how I could make it work to
get values from the src attribute.

Many thanks for your help,

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] methods for numbered paragraphs

2017-08-06 Thread Wolfgang Schuster



Idris Samawi Hamid ادريس سماوي حامد 
4. August 2017 um 06:36
Dear syndicate,

Not sure if there is a canonical way to do numbered paragraphs. In the
following, I use subsections to mimic numbered paragraphs:

===section-intext.tex===
\setuphead[section][style=\bfa,after={\blank[big]},before={\blank[big,medium]},color=walayahblue] 

\setuphead[subsection][style=\bf,after={\blank[big]},before={\blank[big,medium]},color=walayahgreen,alternative=text,distance=0.28em] 

\setuphead[subsubsection][style=\tf,after={\blank[big]},before={\blank[big,medium]},color=walayahred,alternative=text,distance=0.28em] 



\starttext
\startsection[title=Section 1]
\startsubsection
\input ward
\stopsubsection

\startsubsection[title=Paragraph 2]
\input ward
\stopsubsection

\startsubsection
\startparagraph
\input ward
\stopparagraph
\stopsubsection
\stopsection
\stoptext
==

See attached output.

In paragraphs 1 and 2, there is too much distance between the subsection
number (subsection number + title in paragraph 2) and between the text.
The distance parameter is not appropriate here, it is the distance 
*after*

the section head that needs adjustment (even if the text portion of the
head (i.e., the section title) is empty).

Question 1: How do we fix the post-head distance?

Paragraph three shows that one apparently cannot mix this sectioning
approach with the \start-stopparagraph mechanism.

Question 2: Is there a way to mix \start-stopparagraph with the above
subsection approach to par numbering?

I suppose that as long as I maintain exactly one paragraph per 
subsection,

then structured output  (xml etc.) should look ok.

Question 3: Is there a wiser way to handle this kind of par numbering in
mkiv?


\setupwhitespace[big]

\definelabel[ParagraphNumber][text=Paragraph,closesymbol={\hspace[big]}]

\setupparagraphintro[each][\ParagraphNumber]

\starttext

\section{Section}

\input ward

\input ward

\input ward

\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] TeXworks or TeXItEasy as ConTeXt editors

2017-08-06 Thread Jean-Pierre Delange
Hi Pablo,

Indeed, TeXworks setting parameters for the first time is unclear for those who 
don't know where is ConTeXt executable :
Linux : /home/user/context/tex/texmf-linux/bin is not the first place where one 
is looking for an executable file;
it's only clearer when we understand that it is the place of most ConTeXt 
executable files (see below Windows's CTX executables) :

 
api-ms-win-crt-convert-l1-1-0.dll
api-ms-win-crt-environment-l1-1-0.dll
api-ms-win-crt-filesystem-l1-1-0.dll
api-ms-win-crt-heap-l1-1-0.dll
api-ms-win-crt-locale-l1-1-0.dll
api-ms-win-crt-math-l1-1-0.dll
api-ms-win-crt-multibyte-l1-1-0.dll
api-ms-win-crt-process-l1-1-0.dll
api-ms-win-crt-runtime-l1-1-0.dll
api-ms-win-crt-stdio-l1-1-0.dll
api-ms-win-crt-string-l1-1-0.dll
api-ms-win-crt-time-l1-1-0.dll
api-ms-win-crt-utility-l1-1-0.dll
bibtex.exe
context.exe
contextjit.exe
ctxtools.exe
dvipos.exe
dvitomp.exe
fc-cache.exe
fc-list.exe
fc-pattern.exe
fc-query.exe
fc-scan.exe
fc-validate.exe
icudt58.dll
icudt59.dll
kpathsea620w64.dll
kpathsea622w64.dll
kpathsea623w64.dll
kpseaccess.exe
kpsestat.exe
kpsewhich.exe
lua.exe
lua52w64.dll
luac.exe
luajit51w64.dll
luajittex.dll
luajittex.exe
luatex-plain.exe
luatex.dll
luatex.exe
luatools.exe
metatex.exe
mktexlsr.exe
mpost.dll
mpost.exe
mptopdf.exe
msvcp140.dll
msvcr100.dll
mtxrun.dll
mtxrun.exe
mtxrun.lua
mtxrunjit.exe
pdftex.dll
pdftex.exe
pltotf.exe
pstopdf.exe
texexec.exe
texlua.exe
texluac.exe
texluajit.exe
texluajitc.exe
texmfstart.exe
tftopl.exe
vcruntime140.dll
vftovp.exe
vptovf.exe
xdvipdfmx.exe
xetex.exe



- Mail original -
De: "Pablo Rodriguez" 
À: ntg-context@ntg.nl
Envoyé: Samedi 5 Août 2017 21:35:45
Objet: Re: [NTG-context] TeXworks or TeXItEasy as ConTeXt editors

On 08/05/2017 03:36 PM, Jean-Pierre Delange wrote:
> [...]
> You only have to configure two things : the path where texworks
> finds context executable (~/home/context/tex/texmf-linux32/bin or
> /.../linux64/bin, and the same for Microsoft Windows). And a to give
> a little parameter to TeXworks.
Many thanks for your explanation, Jean-Pierre.

I have tried to set it up before, but with the wrong path to binaries.

I thought they were located in the ~/context/bin directory, when they
actually were located in the ~/context/tex/texmf-linux/bin directory.

Everything works now as expected.

Many thanks for your help,

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
___