[NTG-context] Re: removing whitespace

2024-02-13 Thread Wolfgang Schuster

Michael Guravage schrieb am 13.02.2024 um 14:01:
While reading the documentation I spotted something similar from which I 
derived this solution:


\setupinteraction[state=start]
\def\squeeze#1%
   {
     \goto{#1} [url(tel:\ctxlua{context(string.gsub("#1", " ", ""))})]
   }



ConTeXt has a Lua function to remove spaces.

\starttext
\cldcontext{string.nospaces("01234 56789")}
\stoptext

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: removing whitespace

2024-02-13 Thread Michael Guravage
While reading the documentation I spotted something similar from which I
derived this solution:

\setupinteraction[state=start]
\def\squeeze#1%
  {
\goto{#1} [url(tel:\ctxlua{context(string.gsub("#1", " ", ""))})]
  }

\starttext
  Call \squeeze{01234 56789}
\stoptext

With kind regards,

Michael




On Tue, Feb 13, 2024 at 2:54 AM Michael Guravage <
gurav...@literatesolutions.com> wrote:

> In the example below I pass the macro a string with a space, but the space
> should not appear in the url.
>
> I've tried using \ctxlua to invoke string substitution, but without
> success. What is the proper way to remove this space, and to perform string
> manipulation more generally?
>
> \setupinteraction[state=start]
>
> \def\squeeze#1%
>   {\goto{#1}[url(tel:#1)]}
>
> \starttext
>   Call \squeeze{01234 56789}
> \stoptext
>
> --
> With kind regards,
>
> Michael
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] removing whitespace

2024-02-12 Thread Michael Guravage
In the example below I pass the macro a string with a space, but the space
should not appear in the url.

I've tried using \ctxlua to invoke string substitution, but without
success. What is the proper way to remove this space, and to perform string
manipulation more generally?

\setupinteraction[state=start]

\def\squeeze#1%
  {\goto{#1}[url(tel:#1)]}

\starttext
  Call \squeeze{01234 56789}
\stoptext

-- 
With kind regards,

Michael
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


Re: [NTG-context] \getbuffer without extra whitespace?

2023-05-29 Thread Wolfgang Schuster via ntg-context

Gerben Wierda via ntg-context schrieb am 29.05.2023 um 16:19:

If I do something like:

\startbuffer[version]20230529a\stopbuffer
Version: \getbuffer[version]-en

I get whitespace between the content of the buffer and “-en”

What is the proper LMTX way to do this?


You need the \inlinebuffer command

\starttext

\startbuffer[version]
20230529a
\stopbuffer

Version: \inlinebuffer[version]-en

\stoptext

but buffers aren't the right tool to store strings like version information.

One alternative solution is to set the string with the \setupdocument 
command.


\setupdocument
  [version=20230529a]

\starttext

Version: \documentvariable{version}-en

\stoptext

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] \getbuffer without extra whitespace?

2023-05-29 Thread Gerben Wierda via ntg-context
If I do something like:

\startbuffer[version]20230529a\stopbuffer
Version: \getbuffer[version]-en

I get whitespace between the content of the buffer and “-en”

What is the proper LMTX way to do this?

Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>)
R Enterprise Architecture <https://ea.rna.nl/> (main site)
Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/>
Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] XML, dealing with whitespace

2022-01-17 Thread Denis Maier via ntg-context
Hi Wolfgang,

Von: Wolfgang Schuster 
Gesendet: Samstag, 15. Januar 2022 20:28
An: mailing list for ConTeXt users ; Denis Maier via 
ntg-context 
Cc: Maier, Denis Christian (UB) 
Betreff: Re: [NTG-context] XML, dealing with whitespace

Denis Maier via ntg-context schrieb am 15.01.2022 um 13:04:

Hi all,

I have sources that look like this:

%


   Bla Bla Bla
   
  
 Bla
  , Bla Bla.

%

Typesetting this with context gives me a spurious space after the underlined 
Bla in italics.

There is no spurious space, the line break is just converted to a space and I 
see no reason why this shouldn't happen. To remove space before or after 
certain parts of text within a paragraph you can use the \removeunwantedspace 
and \ignorespaces commands.

Yes, it's absolutely true. From tex's point of view, the space is not spurious. 
It's absolutely adaquate to treat the newline as a space here.

As I've outlined in my original post the problem occurs because xslt adds these 
indentations here. FWIW, I finally found this solution, which seems has been 
added to xslt 3.0 (after being available as a saxon extension: there's a new 
attribute  on xsl:output that can be used to control this:

(https://www.saxonica.com/documentation9.5/xsl-elements/output.html)

So, the solution to my problem is this:



Denis



 begin example
\starttexdefinition RemovePreceding #1
\removeunwantedspaces
#1
\stoptexdefinition

\starttexdefinition RemoveFollowing #1
#1
\ignorespaces
\stoptexdefinition

\starttext

Bla \RemovePreceding{Bla} Bla

Bla \RemoveFollowing{Bla} Bla

\stoptext
 end example

When only  following spaces are a problem a better alternative to \ignorespace 
is \autoinsertnextspace which checks the following token which ensures there is 
space when the next character is punctuation.

 begin example
\starttexdefinition Italic #1
\emphasized{#1}
\autoinsertnextspace
\stoptexdefinition

\starttexdefinition Underbar #1
\underbar{#1}
\stoptexdefinition

\starttext

Bla Bla Bla

\Underbar{\Italic{Bla} , Bla Bla.}

\stoptext
 end example

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] XML, dealing with whitespace

2022-01-15 Thread Wolfgang Schuster via ntg-context

Denis Maier via ntg-context schrieb am 15.01.2022 um 13:04:


Hi all,

I have sources that look like this:

%





   Bla Bla Bla



  

 Bla

  , Bla Bla.



%

Typesetting this with context gives me a spurious space after the 
underlined Bla in italics.




There is no spurious space, the line break is just converted to a space 
and I see no reason why this shouldn't happen. To remove space before or 
after certain parts of text within a paragraph you can use the 
\removeunwantedspace and \ignorespaces commands.


 begin example
\starttexdefinition RemovePreceding #1
    \removeunwantedspaces
    #1
\stoptexdefinition

\starttexdefinition RemoveFollowing #1
    #1
    \ignorespaces
\stoptexdefinition

\starttext

Bla \RemovePreceding{Bla} Bla

Bla \RemoveFollowing{Bla} Bla

\stoptext
 end example

When only  following spaces are a problem a better alternative to 
\ignorespace is \autoinsertnextspace which checks the following token 
which ensures there is space when the next character is punctuation.


 begin example
\starttexdefinition Italic #1
    \emphasized{#1}
    \autoinsertnextspace
\stoptexdefinition

\starttexdefinition Underbar #1
    \underbar{#1}
\stoptexdefinition

\starttext

Bla Bla Bla

\Underbar{\Italic{Bla} , Bla Bla.}

\stoptext
 end example

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] XML, dealing with whitespace

2022-01-15 Thread Denis Maier via ntg-context
Hi all,

I have sources that look like this:

%


   Bla Bla Bla
   
  
 Bla
  , Bla Bla.

%

Typesetting this with context gives me a spurious space after the underlined 
Bla in italics. Complete MWE :

%
\startxmlsetups xml:test
\xmlsetsetup{#1}{*}{-}
\xmlsetsetup{#1}{article|p|italic|underline}{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:test}

\startxmlsetups xml:article
\starttext
\xmlflush{#1}
\stoptext
\stopxmlsetups

\startxmlsetups xml:p
\xmlflush{#1}\par
\stopxmlsetups

\startxmlsetups xml:italic
\emph{\xmlflush{#1}}
\stopxmlsetups

\startxmlsetups xml:underline
\underbar{\xmlflush{#1}}
\stopxmlsetups

\startbuffer[test]


   Bla Bla Bla
   
  
 Bla
  , Bla Bla.

\stopbuffer

\xmlprocessbuffer{test}{test}{}
%

How can I get rid off spurious leading and trailing whitespace. I've found 
\xmlstrip and \xmlstripped, but I don't really understand how they work. I've 
also found out about
\ignorespaces\xmlflush{#1}\removeunwantedspaces
but this has then to be added to every definition, which would be a bit 
tedious...
There have a been a couple of similar questions by Hans van der Meer about a 
decade ago, but I couldn't find the answer.

Then, \xmlstripanywhere is also mentioned in xml-mkiv.pdf, but it's not 
explained. I found one example in the sources 
(https://source.contextgarden.net/tex/context/modules/mkiv/x-html.mkiv?search=%5Cxmlstripanywhere#l50),
 but what does that do? Is that sort of need for \xmlstrip and friends to work?

So, what would be the best way to deal with that situation? (More details 
below, perhaps there's an easier solution outside of context, because the 
problem is actually caused by xslt...)

Best,
Denis


P.S. Background:

I convert docx files with pandoc to jats xml. Pandoc does quite a decent job, 
but I need to tweak a few things with xslt. The actual transformation that I 
need works ok, but the transformation also causes other problems.
This is the original markdown file :

%%%
Bla Bla Bla

[*Bla*]{.underline} Bla Bla.
%%%

Pandoc produces a jats xml file that looks like this (simplified, empty nodes 
deleted) :

%%%



Bla Bla Bla
Bla, Bla Bla.


%%%

I use this xsl for tweaking pandoc's output

%%%

http://www.w3.org/1999/XSL/Transform 
xmlns:fo=http://www.w3.org/1999/XSL/Format>







  
 




 
   
 



%%%

This is again much simplified, I've omitted the templates that do the actual 
tweaking.
Anyway, both versions of the identity transformation produce this (using Saxon):

%%%


   
  Bla Bla Bla
  
 
Bla
 , Bla Bla.
   

%%%

I can get rid off all whitespace with indent="no", but that produces a rather 
unreadable file.
xsl:strip-space has had no effect.

Maybe someone knows a solution how to improve that step? Is there a way to 
convince an xslt-processor not to introduce the newlines after certain tags? 
Something like, treat paragraphs as a single unit or so.
Am I missing something?
___
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] Unwanted whitespace at beginning of document

2020-09-30 Thread Denis Maier

Am 29.09.2020 um 16:16 schrieb Wolfgang Schuster:

Denis Maier schrieb am 29.09.2020 um 14:26:

Hi,

I have ended up with unwanted whitespace at the beginning of my 
document. The environment definition is already quite complex, so I 
cannot easily tell where the whitespace is coming from. Any advice how 
I could track that down? Are there some tricks for this?


1. Create a dummy document where you load your environment, e.g.

\environment[myenvironment]
\starttext
I'm a placeholder!
\stoptext


2. Change the position of \stopenvironment in your style file until the 
whitespace disappears.

Thanks. That was helpful.

Denis

___
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] Unwanted whitespace at beginning of document

2020-09-29 Thread Wolfgang Schuster

Denis Maier schrieb am 29.09.2020 um 14:26:

Hi,

I have ended up with unwanted whitespace at the beginning of my 
document. The environment definition is already quite complex, so I 
cannot easily tell where the whitespace is coming from. Any advice how 
I could track that down? Are there some tricks for this?


1. Create a dummy document where you load your environment, e.g.

\environment[myenvironment]
\starttext
I'm a placeholder!
\stoptext


2. Change the position of \stopenvironment in your style file until the 
whitespace disappears.



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] Unwanted whitespace at beginning of document

2020-09-29 Thread Hans van der Meer
Of old I have found the wolf fence tactics useful: Put for example an X at the 
beginning of a suspected section and somewhat further a Y. OIf they bracket the 
culprit the offending space will be between them. Otherwise narrow the fence.

dr. Hans van der Meer


> On 29 Sep 2020, at 14:26, Denis Maier  wrote:
> 
> Hi,
> 
> I have ended up with unwanted whitespace at the beginning of my document. The 
> environment definition is already quite complex, so I cannot easily tell 
> where the whitespace is coming from. Any advice how I could track that down? 
> Are there some tricks for this?
> 
> Best,
> Denis
> 
> ___
> 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] Unwanted whitespace at beginning of document

2020-09-29 Thread Denis Maier

Hi,

I have ended up with unwanted whitespace at the beginning of my 
document. The environment definition is already quite complex, so I 
cannot easily tell where the whitespace is coming from. Any advice how I 
could track that down? Are there some tricks for this?


Best,
Denis

___
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] LMTX running on macOS Catalina; fuzzy paragraphs; unwanted whitespace

2020-03-23 Thread T. Kurt Bond
Yes, that did the trick!  Thanks!

On Mon, Mar 23, 2020 at 3:15 PM Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com> wrote:

> T. Kurt Bond schrieb am 23.03.2020 um 16:50:
> > It turns out that the extra whitespace before and after the section
> > headers in the body appears when I put \startcolumns[n=2] before the
> > body text and \stopcolumns after it.  Here's the MWE, just slightly
> > modified from your example:
> >
> >  begin example
> > [...]
> >  end example
>
> The old columns environment was replaced a while ago with the newer
> (although available since a few years) mixedcolumns environment.
>
> A big difference between the old columns code and new code is that the
> new code relies on a page grid which can lead to extra lines in the
> output, because ConTeXt adds extra space to put text on the grid.
>
> When you don't care about the grid you can disable it for the columns
> environment but this has to be done also for headers which have their
> own grid option.
>
> Another option is to try the pagecolumns environment, which is another
> environment for multi columns text but it's a very recent addition and
> lacks some features like column balancing.
>
>  begin columns
> \setuphead
>[chapter,section,subsection,subsubsection]
>[before={\blank[nowhite]},
> after={\blank[nowhite]},
> grid=no]
>
> \setupwhitespace
>[medium]
>
> \setuplist
>[chapter,section,subsection,subsubsection]
>[before={\blank[nowhite]},
> after={\blank[nowhite]}]
>
> \setupcolumns
>[grid=no]
>
> \starttext
>
> \startcolumns
>
> \completecontent
>
> \chapter{Chapter}
>
> \samplefile{knuth}
>
> \section{Section}
>
> \samplefile{weisman}
>
> \subsection{Subsection}
>
> \samplefile{weisman}
>
> \subsubsection{Subsubsection}
>
> \samplefile{weisman}
>
> \stopcolumns
>
> \stoptext
>  end columns
>
> Wolfgang
>


-- 
T. Kurt Bond, tkurtb...@gmail.com
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] LMTX running on macOS Catalina; fuzzy paragraphs; unwanted whitespace

2020-03-23 Thread Wolfgang Schuster

T. Kurt Bond schrieb am 23.03.2020 um 16:50:
It turns out that the extra whitespace before and after the section 
headers in the body appears when I put \startcolumns[n=2] before the 
body text and \stopcolumns after it.  Here's the MWE, just slightly 
modified from your example:


 begin example
[...]
 end example


The old columns environment was replaced a while ago with the newer 
(although available since a few years) mixedcolumns environment.


A big difference between the old columns code and new code is that the 
new code relies on a page grid which can lead to extra lines in the 
output, because ConTeXt adds extra space to put text on the grid.


When you don't care about the grid you can disable it for the columns 
environment but this has to be done also for headers which have their 
own grid option.


Another option is to try the pagecolumns environment, which is another 
environment for multi columns text but it's a very recent addition and 
lacks some features like column balancing.


 begin columns
\setuphead
  [chapter,section,subsection,subsubsection]
  [before={\blank[nowhite]},
   after={\blank[nowhite]},
   grid=no]

\setupwhitespace
  [medium]

\setuplist
  [chapter,section,subsection,subsubsection]
  [before={\blank[nowhite]},
   after={\blank[nowhite]}]

\setupcolumns
  [grid=no]

\starttext

\startcolumns

\completecontent

\chapter{Chapter}

\samplefile{knuth}

\section{Section}

\samplefile{weisman}

\subsection{Subsection}

\samplefile{weisman}

\subsubsection{Subsubsection}

\samplefile{weisman}

\stopcolumns

\stoptext
 end columns

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] LMTX running on macOS Catalina; fuzzy paragraphs; unwanted whitespace

2020-03-23 Thread T. Kurt Bond
It turns out that the extra whitespace before and after the section headers
in the body appears when I put \startcolumns[n=2] before the body text and
\stopcolumns after it.  Here's the MWE, just slightly modified from your
example:

 begin example
\setuphead
   [chapter,section,subsection,subsubsection]
   [before={\blank[nowhite]},
after={\blank[nowhite]}]

\setupwhitespace
   [medium]

%\showgrid

\starttext

\startcolumns[n=2]

\completecontent

\chapter{Chapter}

\samplefile{knuth}

\section{Section}

\samplefile{weisman}

\subsection{Subsection}

\samplefile{weisman}

\subsubsection{Subsubsection}

\samplefile{weisman}

\stopcolumns

\stoptext
 end example

On Sun, Mar 22, 2020 at 10:07 PM Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com> wrote:

> T. Kurt Bond schrieb am 22.03.2020 um 23:37:
> > I got LMTX running on macOS Catalina.  I followed the directions here
> > <https://wiki.contextgarden.net/Installing_ConTeXt_LMTX_on_MacOS> for
> > versions prior to Catalina, including authorizing the mtxrun script
> > through Security & Privacy General tab.  The first run of install.sh
> > stopped with the errors:
> >
> > cp: cannot stat
> >
>  '/Users/tkb/context-osx-64/tex/texmf-context/scripts/context/lua/mtxrun.lua':
> > No such file or directory
> > cp: cannot stat
> >
>  
> '/Users/tkb/context-osx-64/tex/texmf-context/scripts/context/lua/mtx-install.lua':
> > No such file or directory
> >
> >
> > So I ran install.sh again.  This time it said a bunch of things were
> > missing and downloaded them.  It seemed to finish ok, so I ran context
> > on my document and it produced a PDF!  (The ConTexT with TeXLive 2018
> > and TeXLive 2019 both died on this document with different unhelpful
> > errors, by the way.)
> >
> > Both LMTX and TeXLive 2019 ran 5 to 10 times slower than TeXLive 2018,
> > and both complain about "fuzzy paragraphs" with a list of U+
> > codepoints.  What's that mean?
> >
> > However, the PDF has unwanted whitespace in many areas.
> >
> >   * It has unwanted whitespace between the entries in the Table of
> > Contents.
> >   * It has unwanted whitespace before and after section headings,
> > despite me having "before={},after={}" in the \setuphead commands
> > for all the levels of sections.
> >   * And it had a large unwanted white space between paragraphs until I
> > \setupwhitespace[none]. I'd prefer a little bit of white space
> > between paragraphs, but I tried \setupwhitespace[0.5ex] and
> > \definemeasure[between][0.25ex] with
> > \setupwhitespace[\measure{between}], and \setupwhitespace[5pt] but
> > all those went back to way too much white space between paragraphs.
> >
> > Any ideas?
>
> Do you have a working minimal example for the problem because when I run
> the following example on my machine there is no extra whitespace.
>
>  begin example
> \setuphead
>[chapter,section,subsection,subsubsection]
>[before={\blank[nowhite]},
> after={\blank[nowhite]}]
>
> \setupwhitespace
>[medium]
>
> %\showgrid
>
> \starttext
>
> \completecontent
>
> \chapter{Chapter}
>
> \samplefile{knuth}
>
> \section{Section}
>
> \samplefile{weisman}
>
> \subsection{Subsection}
>
> \samplefile{weisman}
>
> \subsubsection{Subsubsection}
>
> \samplefile{weisman}
>
> \stoptext
>  end example
>
> Wolfgang
>
>

-- 
T. Kurt Bond, tkurtb...@gmail.com
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] LMTX running on macOS Catalina; fuzzy paragraphs; unwanted whitespace

2020-03-22 Thread Wolfgang Schuster

T. Kurt Bond schrieb am 22.03.2020 um 23:37:
I got LMTX running on macOS Catalina.  I followed the directions here 
<https://wiki.contextgarden.net/Installing_ConTeXt_LMTX_on_MacOS> for 
versions prior to Catalina, including authorizing the mtxrun script 
through Security & Privacy General tab.  The first run of install.sh 
stopped with the errors:


cp: cannot stat

'/Users/tkb/context-osx-64/tex/texmf-context/scripts/context/lua/mtxrun.lua':
No such file or directory
cp: cannot stat

'/Users/tkb/context-osx-64/tex/texmf-context/scripts/context/lua/mtx-install.lua':
No such file or directory


So I ran install.sh again.  This time it said a bunch of things were 
missing and downloaded them.  It seemed to finish ok, so I ran context 
on my document and it produced a PDF!  (The ConTexT with TeXLive 2018 
and TeXLive 2019 both died on this document with different unhelpful 
errors, by the way.)


Both LMTX and TeXLive 2019 ran 5 to 10 times slower than TeXLive 2018, 
and both complain about "fuzzy paragraphs" with a list of U+ 
codepoints.  What's that mean?


However, the PDF has unwanted whitespace in many areas.

  * It has unwanted whitespace between the entries in the Table of
Contents.
  * It has unwanted whitespace before and after section headings,
despite me having "before={},after={}" in the \setuphead commands
for all the levels of sections.
  * And it had a large unwanted white space between paragraphs until I
\setupwhitespace[none]. I'd prefer a little bit of white space
between paragraphs, but I tried \setupwhitespace[0.5ex] and
\definemeasure[between][0.25ex] with
\setupwhitespace[\measure{between}], and \setupwhitespace[5pt] but
all those went back to way too much white space between paragraphs.

Any ideas?


Do you have a working minimal example for the problem because when I run 
the following example on my machine there is no extra whitespace.


 begin example
\setuphead
  [chapter,section,subsection,subsubsection]
  [before={\blank[nowhite]},
   after={\blank[nowhite]}]

\setupwhitespace
  [medium]

%\showgrid

\starttext

\completecontent

\chapter{Chapter}

\samplefile{knuth}

\section{Section}

\samplefile{weisman}

\subsection{Subsection}

\samplefile{weisman}

\subsubsection{Subsubsection}

\samplefile{weisman}

\stoptext
 end example

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] LMTX running on macOS Catalina; fuzzy paragraphs; unwanted whitespace

2020-03-22 Thread T. Kurt Bond
I got LMTX running on macOS Catalina.  I followed the directions here
<https://wiki.contextgarden.net/Installing_ConTeXt_LMTX_on_MacOS> for
versions prior to Catalina, including authorizing the mtxrun script through
Security & Privacy General tab.  The first run of install.sh stopped with
the errors:

cp: cannot stat
'/Users/tkb/context-osx-64/tex/texmf-context/scripts/context/lua/mtxrun.lua':
No such file or directory
cp: cannot stat
'/Users/tkb/context-osx-64/tex/texmf-context/scripts/context/lua/mtx-install.lua':
No such file or directory


So I ran install.sh again.  This time it said a bunch of things were
missing and downloaded them.  It seemed to finish ok, so I ran context on
my document and it produced a PDF!  (The ConTexT with TeXLive 2018 and
TeXLive 2019 both died on this document with different unhelpful errors, by
the way.)

Both LMTX and TeXLive 2019 ran 5 to 10 times slower than TeXLive 2018, and
both complain about "fuzzy paragraphs" with a list of U+ codepoints.
What's that mean?

However, the PDF has unwanted whitespace in many areas.

   - It has unwanted whitespace between the entries in the Table of
   Contents.
   - It has unwanted whitespace before and after section headings, despite
   me having "before={},after={}" in the \setuphead commands for all the
   levels of sections.
   - And it had a large unwanted white space between paragraphs until I
   \setupwhitespace[none]. I'd prefer a little bit of white space between
   paragraphs, but I tried \setupwhitespace[0.5ex] and
   \definemeasure[between][0.25ex] with \setupwhitespace[\measure{between}],
   and \setupwhitespace[5pt] but all those went back to way too much white
   space between paragraphs.

Any ideas?
-- 
T. Kurt Bond, tkurtb...@gmail.com
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] whitespace inside a description

2018-12-01 Thread Pablo Rodriguez
On 12/1/18 9:21 AM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 30.11.18 um 19:36:
>> [...]
>> How can I get a different whitespace inside the description?
> 
> \setupdescription
>[description]
>[style={\setupwhitespace[small]}]

Many thanks for your reply, Wolfgang.

I didn’t think that whitespace could be applied to style.

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] whitespace inside a description

2018-12-01 Thread Wolfgang Schuster

Pablo Rodriguez schrieb am 30.11.18 um 19:36:

Dear list,

I have the following sample:

 \setupwhitespace[big]
 \startsetups[small:whitespace]
 \setupwhitespace[small]
 \stopsetups
 \definedescription
 [description]
 [setups={small:whitespace},
  inbetween={\directsetup[small:whitespace]}]
 \starttext
 \input knuth

 \startdescription{Knuth}
 \input knuth
 \stopdescription
 \stoptext

How can I get a different whitespace inside the description?


\setupdescription
  [description]
  [style={\setupwhitespace[small]}]

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] whitespace inside a description

2018-11-30 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\setupwhitespace[big]
\startsetups[small:whitespace]
\setupwhitespace[small]
\stopsetups
\definedescription
[description]
[setups={small:whitespace},
 inbetween={\directsetup[small:whitespace]}]
\starttext
\input knuth

\startdescription{Knuth}
\input knuth
\stopdescription
\stoptext

How can I get a different whitespace inside the description?

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] In-Margin Title + whitespace/indent bug

2018-02-20 Thread Wolfgang Schuster



Wolfgang Schuster 
19. Februar 2018 um 21:28



This is a shortened version of the original question with a section title
in the margin (\setuphead[...][alternative=margintext]) where \noindent
is part of the code (strc-ren.mkiv).

Wolfgang
Hans Hagen 
19. Februar 2018 um 22:05

ok, so there we need to use \noindentation then



There is still a empty line when parskip is zero.


\setuplayout
  [backspace=2in,
   width=middle]

\setuphead
  [section]
  [alternative=margintext,
   style=]

%\setupwhitespace[line]

\showframe[text][leftmargin,text]

\starttext

\section{Lorem ipsum dolor sit amet \unknown}
\input lorem

\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] In-Margin Title + whitespace/indent bug

2018-02-19 Thread Hans Hagen

On 2/19/2018 9:28 PM, Wolfgang Schuster wrote:




Brian Hunt 
18. Februar 2018 um 13:48
Hi all,

I reported a curiosity on tex.stackexchange.com 
 and a user noted that it appears to be 
a bug / regression that should be reported as the issue occurs in the 
latest beta (2018.02.14 22:56) but not TL2017 (2017.05.15 21:48).  You 
can see the details here:


https://tex.stackexchange.com/questions/415332

I trust there is adequate detail there to reproduce but please advise 
if more information could assist.


Best,
Brian
--

/from the personal account of:/

*Brian M Hunt *>
Direct: +1-289-684-4677
LinkedIn:https://linkedin.com/in/brianmhunt

/This e-mail may contain information that is private, privileged, 
confidential and/or exempt from disclosure. Except as per this notice 
no waiver of any kind is intended by sending this e-mail, and this 
email is intended only for the named recipient(s) or the subscribers 
of a forwarding service the email is sent directly to and to which 
service you are an authorized recipient. Use, dissemination or copying 
without authorization is prohibited. Please notify the sender and 
destroy all copies of this e-mail if you have received this email in 
error./


___
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
___
Wolfgang Schuster 
19. Februar 2018 um 20:33
I can’t provide a fix but I was able to create a minimal example which 
shows

the "disable" option for \blank produces the unwanted space.

\setuplayout
  [backspace=2in,
   width=middle]

\setupindenting [yes,medium]
\setupwhitespace[line]

\starttext

\noindent\inmargin{Ward}%
\directcheckedvspacing{disable}%
\input ward

\stoptext

Wolfgang


Hans Hagen 
19. Februar 2018 um 21:09
On 2/19/2018 8:33 PM, Wolfgang Schuster wrote:
I can’t provide a fix but I was able to create a minimal example 
which shows

the "disable" option for \blank produces the unwanted space.

\setuplayout
   [backspace=2in,
    width=middle]

\setupindenting [yes,medium]
\setupwhitespace[line]

\starttext

\noindent\inmargin{Ward}%
\directcheckedvspacing{disable}%
\input ward

\stoptext

Wolfgang


\noindentation doesn't have the side effects of \noindent


This is a shortened version of the original question with a section title
in the margin (\setuphead[...][alternative=margintext]) where \noindent
is part of the code (strc-ren.mkiv).

ok, so there we need to use \noindentation then


-
  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] In-Margin Title + whitespace/indent bug

2018-02-19 Thread Wolfgang Schuster




Brian Hunt 
18. Februar 2018 um 13:48
Hi all,

I reported a curiosity on tex.stackexchange.com 
 and a user noted that it appears to be 
a bug / regression that should be reported as the issue occurs in the 
latest beta (2018.02.14 22:56) but not TL2017 (2017.05.15 21:48).  You 
can see the details here:


https://tex.stackexchange.com/questions/415332

I trust there is adequate detail there to reproduce but please advise 
if more information could assist.


Best,
Brian
--

/from the personal account of:/

*Brian M Hunt *>
Direct: +1-289-684-4677
LinkedIn:https://linkedin.com/in/brianmhunt

/This e-mail may contain information that is private, privileged, 
confidential and/or exempt from disclosure. Except as per this notice 
no waiver of any kind is intended by sending this e-mail, and this 
email is intended only for the named recipient(s) or the subscribers 
of a forwarding service the email is sent directly to and to which 
service you are an authorized recipient. Use, dissemination or copying 
without authorization is prohibited. Please notify the sender and 
destroy all copies of this e-mail if you have received this email in 
error./


___
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
___
Wolfgang Schuster 
19. Februar 2018 um 20:33
I can’t provide a fix but I was able to create a minimal example which 
shows

the "disable" option for \blank produces the unwanted space.

\setuplayout
  [backspace=2in,
   width=middle]

\setupindenting [yes,medium]
\setupwhitespace[line]

\starttext

\noindent\inmargin{Ward}%
\directcheckedvspacing{disable}%
\input ward

\stoptext

Wolfgang


Hans Hagen 
19. Februar 2018 um 21:09
On 2/19/2018 8:33 PM, Wolfgang Schuster wrote:
I can’t provide a fix but I was able to create a minimal example 
which shows

the "disable" option for \blank produces the unwanted space.

\setuplayout
   [backspace=2in,
width=middle]

\setupindenting [yes,medium]
\setupwhitespace[line]

\starttext

\noindent\inmargin{Ward}%
\directcheckedvspacing{disable}%
\input ward

\stoptext

Wolfgang


\noindentation doesn't have the side effects of \noindent


This is a shortened version of the original question with a section title
in the margin (\setuphead[...][alternative=margintext]) where \noindent
is part of the code (strc-ren.mkiv).

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] In-Margin Title + whitespace/indent bug

2018-02-19 Thread Hans Hagen

On 2/19/2018 8:33 PM, Wolfgang Schuster wrote:

I can’t provide a fix but I was able to create a minimal example which shows
the "disable" option for \blank produces the unwanted space.

\setuplayout
   [backspace=2in,
    width=middle]

\setupindenting [yes,medium]
\setupwhitespace[line]

\starttext

\noindent\inmargin{Ward}%
\directcheckedvspacing{disable}%
\input ward

\stoptext

Wolfgang


\noindentation doesn't have the side effects of \noindent


Brian Hunt 
18. Februar 2018 um 13:48
Hi all,

I reported a curiosity on tex.stackexchange.com 
 and a user noted that it appears to be 
a bug / regression that should be reported as the issue occurs in the 
latest beta (2018.02.14 22:56) but not TL2017 (2017.05.15 21:48).  You 
can see the details here:


https://tex.stackexchange.com/questions/415332

I trust there is adequate detail there to reproduce but please advise 
if more information could assist.


Best,
Brian
--

/from the personal account of:/

*Brian M Hunt *>
Direct: +1-289-684-4677
LinkedIn:https://linkedin.com/in/brianmhunt

/This e-mail may contain information that is private, privileged, 
confidential and/or exempt from disclosure. Except as per this notice 
no waiver of any kind is intended by sending this e-mail, and this 
email is intended only for the named recipient(s) or the subscribers 
of a forwarding service the email is sent directly to and to which 
service you are an authorized recipient. Use, dissemination or copying 
without authorization is prohibited. Please notify the sender and 
destroy all copies of this e-mail if you have received this email in 
error./


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




--

-
  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] In-Margin Title + whitespace/indent bug

2018-02-19 Thread Wolfgang Schuster

I can’t provide a fix but I was able to create a minimal example which shows
the "disable" option for \blank produces the unwanted space.

\setuplayout
  [backspace=2in,
   width=middle]

\setupindenting [yes,medium]
\setupwhitespace[line]

\starttext

\noindent\inmargin{Ward}%
\directcheckedvspacing{disable}%
\input ward

\stoptext

Wolfgang


Brian Hunt 
18. Februar 2018 um 13:48
Hi all,

I reported a curiosity on tex.stackexchange.com 
 and a user noted that it appears to be 
a bug / regression that should be reported as the issue occurs in the 
latest beta (2018.02.14 22:56) but not TL2017 (2017.05.15 21:48).  You 
can see the details here:


https://tex.stackexchange.com/questions/415332

I trust there is adequate detail there to reproduce but please advise 
if more information could assist.


Best,
Brian
--

/from the personal account of:/

*Brian M Hunt *>
Direct: +1-289-684-4677
LinkedIn:https://linkedin.com/in/brianmhunt

/This e-mail may contain information that is private, privileged, 
confidential and/or exempt from disclosure. Except as per this notice 
no waiver of any kind is intended by sending this e-mail, and this 
email is intended only for the named recipient(s) or the subscribers 
of a forwarding service the email is sent directly to and to which 
service you are an authorized recipient. Use, dissemination or copying 
without authorization is prohibited. Please notify the sender and 
destroy all copies of this e-mail if you have received this email in 
error./


___
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] In-Margin Title + whitespace/indent bug

2018-02-19 Thread Brian Hunt
Hi all,

I reported a curiosity on tex.stackexchange.com and a user noted that it
appears to be a bug / regression that should be reported as the issue
occurs in the latest beta (2018.02.14 22:56) but not TL2017 (2017.05.15
21:48).  You can see the details here:

https://tex.stackexchange.com/questions/415332

I trust there is adequate detail there to reproduce but please advise if
more information could assist.

Best,
Brian
-- 

*from the personal account of:*

*Brian M Hunt *
Direct: +1-289-684-4677
LinkedIn: https://linkedin.com/in/brianmhunt

*This e-mail may contain information that is private, privileged,
confidential and/or exempt from disclosure. Except as per this notice no
waiver of any kind is intended by sending this e-mail, and this email is
intended only for the named recipient(s) or the subscribers of a forwarding
service the email is sent directly to and to which service you are an
authorized recipient. Use, dissemination or copying without authorization
is prohibited. Please notify the sender and destroy all copies of this
e-mail if you have received this email in error.*
___
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] whitespace between endnotes

2017-07-14 Thread Meer, Hans van der
Exactly what I was looking for. Thanks!

Hans van der Meer




> On 14 Jul 2017, at 17:07, Pablo Rodriguez  wrote:
> 
> On 07/14/2017 02:44 PM, Meer, Hans van der wrote:
>> \placenotes[endnote] puts a list of endnotes spaced out with the
>> setting of \setupwhitespace. Is there a means to keep
>> \setupwhitespace undisturbed but changing this for the endnotes
>> alone? Some parameter to be specified in \setupnote, \setupnotation
>> or one of its friends perhaps?
> Hans,
> 
> I guess this is what you need:
> 
>\startsetups[setups:endnotes]
>\setupwhitespace[5em]
>\stopsetups
> 
>\setupnote
>[endnote]
>[before=\directsetup{setups:endnotes}]
> 
>\starttext
>\dorecurse{5}{\input zapf\endnote{\input knuth}}
>\placenotes[endnote]
>\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
> ___

___
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] whitespace between endnotes

2017-07-14 Thread Pablo Rodriguez
On 07/14/2017 02:44 PM, Meer, Hans van der wrote:
> \placenotes[endnote] puts a list of endnotes spaced out with the
> setting of \setupwhitespace. Is there a means to keep
> \setupwhitespace undisturbed but changing this for the endnotes
> alone? Some parameter to be specified in \setupnote, \setupnotation
> or one of its friends perhaps?
Hans,

I guess this is what you need:

\startsetups[setups:endnotes]
\setupwhitespace[5em]
\stopsetups

\setupnote
[endnote]
[before=\directsetup{setups:endnotes}]

\starttext
\dorecurse{5}{\input zapf\endnote{\input knuth}}
\placenotes[endnote]
\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
___

[NTG-context] whitespace between endnotes

2017-07-14 Thread Meer, Hans van der
\placenotes[endnote] puts a list of endnotes spaced out with the setting of 
\setupwhitespace. Is there a means to keep  \setupwhitespace undisturbed 
but changing this for the endnotes alone? Some parameter to be specified in 
\setupnote, \setupnotation or one of its friends perhaps?


Hans van der Meer




___
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] whitespace before/after \startformula…\stopformula

2017-05-29 Thread Alan Bowen
Thanks also, Aditya?

Alan

On Mon, May 29, 2017 at 6:04 PM, Alan Bowen <bowenala...@gmail.com> wrote:

> Thanks, Mikael. That is just what I needed.
>
> All best, Alan
>
>
> On Mon, May 29, 2017 at 1:02 PM, Mikael P. Sundqvist <mic...@gmail.com>
> wrote:
>
>> Den 29 maj 2017 6:13 em skrev "Alan Bowen" <bowenala...@gmail.com>:
>>
>> How does one control/suppress the whitespace before and after
>> \startformula…\stopformula?
>>
>> Alan
>>
>> 
>> ___
>> If your question is of interest to others as well, please add an entry to
>> the Wiki!
>>
>> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/list
>> info/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : http://contextgarden.net
>> 
>> ___
>>
>>
>> Try \setupformulas with spacebefore and spaceafter. Example:
>>
>> \setupformulas[
>> spacebefore=0.5\baselineskip,
>> spaceafter=0.5\baselineskip,
>> ]
>>
>> /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/list
>> info/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] whitespace before/after \startformula…\stopformula

2017-05-29 Thread Alan Bowen
Thanks, Mikael. That is just what I needed.

All best, Alan


On Mon, May 29, 2017 at 1:02 PM, Mikael P. Sundqvist <mic...@gmail.com>
wrote:

> Den 29 maj 2017 6:13 em skrev "Alan Bowen" <bowenala...@gmail.com>:
>
> How does one control/suppress the whitespace before and after
> \startformula…\stopformula?
>
> Alan
>
> 
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/list
> info/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> 
> ___
>
>
> Try \setupformulas with spacebefore and spaceafter. Example:
>
> \setupformulas[
> spacebefore=0.5\baselineskip,
> spaceafter=0.5\baselineskip,
> ]
>
> /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
> 
> ___
>
___
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] whitespace before/after \startformula…\stopformula

2017-05-29 Thread Aditya Mahajan

On Mon, 29 May 2017, Alan Bowen wrote:


How does one control/suppress the whitespace before and after
\startformula…\stopformula?


Using spacebefore and spaceafter in \setupformula

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] whitespace before/after \startformula…\stopformula

2017-05-29 Thread Mikael P. Sundqvist
Den 29 maj 2017 6:13 em skrev "Alan Bowen" <bowenala...@gmail.com>:

How does one control/suppress the whitespace before and after
\startformula…\stopformula?

Alan


___
If your question is of interest to others as well, please add an entry to
the Wiki!

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

___


Try \setupformulas with spacebefore and spaceafter. Example:

\setupformulas[
spacebefore=0.5\baselineskip,
spaceafter=0.5\baselineskip,
]

/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] indenting and whitespace in framedtext

2016-11-09 Thread Meer, Hans van der
Quoting from the command reference:

\startframedtext inherits \setupframedtext
and
\setupframedtext ... indenting = inherits \setupindenting

I interprete this as \setupindenting is carried to the inside of the framedtext 
but this thus not happen. Instead one explicitely sets it on the call of 
\startframedtext.
Why doesn't \startframedtext inherit the value from the document? This is a 
problem because I need this setup for framedtexts called in an inner module.

A second, even more serious problem for me is that the framedtext is ignoring 
the \setupwhitespace.

For both problems see the example below.

Hans van der Meer


\setupindenting[yes,first,medium]
\setupwhitespace[big]
\starttext
\ConTeXt-version = \contextversion

Text for testing indenting of praragraphs. A lot of nonsense just to fill the 
paragraph so that more than one line is typeset. A lot of nonsense just to fill 
the paragraph so that more than one line is typeset.

Text for testing indenting of praragraphs. A lot of nonsense just to fill the 
paragraph so that more than one line is typeset. A lot of nonsense just to fill 
the paragraph so that more than one line is typeset.

\tex{startframedtext[width=\textwidth]}\crlf
\startframedtext[width=\textwidth]
Text for testing indenting of praragraphs. A lot of nonsense just to fill the 
paragraph so that more than one line is typeset. A lot of nonsense just to fill 
the paragraph so that more than one line is typeset.

Text for testing indenting of praragraphs. A lot of nonsense just to fill the 
paragraph so that more than one line is typeset. A lot of nonsense just to fill 
the paragraph so that more than one line is typeset.
\stopframedtext

\tex{startframedtext[width=\textwidth,indenting={yes,first,medium}]}\crlf
\startframedtext[width=\textwidth,indenting={yes,first,medium}]
\setupwhitespace[big]\tex{setupwhitespace[big]}\par
Text for testing indenting of praragraphs. A lot of nonsense just to fill the 
paragraph so that more than one line is typeset. A lot of nonsense just to fill 
the paragraph so that more than one line is typeset.

Text for testing indenting of praragraphs. A lot of nonsense just to fill the 
paragraph so that more than one line is typeset. A lot of nonsense just to fill 
the paragraph so that more than one line is typeset.
\stopframedtext
\stoptext








indenting-framedtext.pdf
Description: indenting-framedtext.pdf
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] Reduced whitespace when nesting different itemgroups

2016-10-20 Thread Florian Leupold
Dear list,

I have noticed a strange behavior when nesting different itemgroups: The 
whitespace before the lower-level group is reduced. This does not happen when 
nesting itemgroups of the same kind. And this can somehow be circumvented by 
setting [columns, one], see MWE below.

Is this expected behavior, or a bug?

Best regards,
Florian


MWE:

\starttext

\startitemize
\item Itemize 1.
\startitemize[columns, one]
\item Itemize 1.1
\item Itemize 1.2
\stopitemize
\stopitemize

\defineitemgroup[it]
\startitemize
\item Itemize 1.
\startit
\item It 1.1 (reduced whitespace above)
\item It 1.2
\stopit
\stopitemize

\startitemize
\item Itemize 1.
\startit[columns, one]
\item It 1.1
\item It 1.2
\stopit
\stopitemize

\stoptext


signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] Problem with margin figures and whitespace in text

2015-04-26 Thread Rik Kabel

On 2015-04-26 14:01, Hans Hagen wrote:

On 4/26/2015 3:32 AM, Rik Kabel wrote:

I have two problems with figures placed into the left or right margin.
When the figure is in a group, extra whitespace is inserted between the
paragraphs that precede and follow the placefigure command. This happens
for figures placed by startplacefigure/stopplacefigure and tradiitonal
placefigure commands, and paragraphs placed by
startparagraph/stopparagraph or marked by par or newlines.

When the figure is not in a group, whitespace called for by
\setupwhitespace is lost, except when the paragraphs are marked by
traditional means. That is, whitespace is lost when
startparagraph/stopparagraph is used.

Interestingly, when that is changed to bpar/epar, the problem for
ungrouped figures disappears, but as I understand it, bpar/epar is not a
real substitute for startparagraph/stopparagraph.

There is probably a simple explanation, but it eludes me. I prefer to be
able to use startparagraph/stopparagraph, and it is sometimes desirable
to place a figure into a group in order to prevent unique settings from
leaking out.


you can test with this in cont-new.mkiv

\unprotect

\def\page_sides_inject_dummy_lines
  {\begingroup
   \scratchcounter\pageshrink
   \divide\scratchcounter \baselineskip
   \advance\scratchcounter \plusone
   \parskip\zeropoint
   \dorecurse\scratchcounter{\hbox to \hsize{}}%
   \kern-\scratchcounter\baselineskip
   \penalty\zerocount
   \endgroup}

\def\page_sides_prepare_space
  {\par
  %\whitespace
   \begingroup
   \forgetall
   \reseteverypar
   \verticalstrut
   \vskip-\struttotal
   \endgroup}

\protect

Thank you, Hans. That works well, both on the example and on a more 
complex real document.


--
Rik
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Problem with margin figures and whitespace in text

2015-04-26 Thread Hans Hagen

On 4/26/2015 3:32 AM, Rik Kabel wrote:

I have two problems with figures placed into the left or right margin.
When the figure is in a group, extra whitespace is inserted between the
paragraphs that precede and follow the placefigure command. This happens
for figures placed by startplacefigure/stopplacefigure and tradiitonal
placefigure commands, and paragraphs placed by
startparagraph/stopparagraph or marked by par or newlines.

When the figure is not in a group, whitespace called for by
\setupwhitespace is lost, except when the paragraphs are marked by
traditional means. That is, whitespace is lost when
startparagraph/stopparagraph is used.

Interestingly, when that is changed to bpar/epar, the problem for
ungrouped figures disappears, but as I understand it, bpar/epar is not a
real substitute for startparagraph/stopparagraph.

There is probably a simple explanation, but it eludes me. I prefer to be
able to use startparagraph/stopparagraph, and it is sometimes desirable
to place a figure into a group in order to prevent unique settings from
leaking out.


you can test with this in cont-new.mkiv

\unprotect

\def\page_sides_inject_dummy_lines
  {\begingroup
   \scratchcounter\pageshrink
   \divide\scratchcounter \baselineskip
   \advance\scratchcounter \plusone
   \parskip\zeropoint
   \dorecurse\scratchcounter{\hbox to \hsize{}}%
   \kern-\scratchcounter\baselineskip
   \penalty\zerocount
   \endgroup}

\def\page_sides_prepare_space
  {\par
  %\whitespace
   \begingroup
   \forgetall
   \reseteverypar
   \verticalstrut
   \vskip-\struttotal
   \endgroup}

\protect



The following should demonstrate the problem. Turning on grid setting
makes it worse. I get the same result with current betas and older versions.

\useMPlibrary   [dum]
%\showgrid
\setuplayout[%grid=yes,
  backspace=151pt,leftmargin=117pt]
\setupwhitespace[big]
\define\Paragraph{\startparagraph\input khatt-en\stopparagraph}
\starttext
{
   \subject{Start/stop paragraphs and figures}
   \subsubject{Group, extra whitespace}
   \Paragraph
   \Paragraph
   \begingroup
 \startplacefigure[location={leftmargin,none}]
   \externalfigure[A]
 \stopplacefigure
   \endgroup
   \Paragraph
   \Paragraph
   \subsubject{No group, no whitespace}
   \Paragraph
   \Paragraph
   \startplacefigure[location={leftmargin,none}]
 \externalfigure[A]
   \stopplacefigure
   \Paragraph
   \Paragraph
   \Paragraph
}
   \page
{
   \subject{Start/stop paragraphs, traditional figures}
   \subsubject{Group, extra whitespace}
   \Paragraph
   \Paragraph
   {\placefigure[leftmargin,none]{}{\externalfigure[A]}}
   \Paragraph
   \Paragraph
   \subsubject{No group, no whitespace}
   \Paragraph
   \Paragraph
   \placefigure[leftmargin,none]{}{\externalfigure[A]}
   \Paragraph
   \Paragraph
   \Paragraph
}
   \page
{
   \subject{Traditional paragraphs, start/stop figures}
   \subsubject{Group, extra whitespace}
   \input khatt-en\par
   \input khatt-en\par
   \begingroup% or \bgroup or {
 \startplacefigure[location={leftmargin,none}]
   \externalfigure[A]
 \stopplacefigure
   \endgroup% or \egroup or }
   \input khatt-en\par
   \input khatt-en\par
   \subsubject{Okay}
   \input khatt-en\par
   \input khatt-en\par
   \startplacefigure[location={leftmargin,none}]
 \externalfigure[A]
   \stopplacefigure
   \input khatt-en\par
   \input khatt-en\par
   \input khatt-en\par
}
   \page
{
   \subject{Traditional paragraphs, traditional figures}
   \subsubject{Group, extra whitespace}
   \input khatt-en\par
   \input khatt-en\par
   {\placefigure[leftmargin,none]{}{\externalfigure[A]}}
   \input khatt-en\par
   \input khatt-en\par
   \subsubject{Okay}
   \input khatt-en\par
   \input khatt-en\par
   \placefigure[leftmargin,none]{}{\externalfigure[A]}
   \input khatt-en\par
   \input khatt-en\par
   \input khatt-en\par
}
\stoptext

--
Rik


___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com

[NTG-context] Problem with margin figures and whitespace in text

2015-04-25 Thread Rik Kabel
I have two problems with figures placed into the left or right margin. 
When the figure is in a group, extra whitespace is inserted between the 
paragraphs that precede and follow the placefigure command. This happens 
for figures placed by startplacefigure/stopplacefigure and tradiitonal 
placefigure commands, and paragraphs placed by 
startparagraph/stopparagraph or marked by par or newlines.


When the figure is not in a group, whitespace called for by 
\setupwhitespace is lost, except when the paragraphs are marked by 
traditional means. That is, whitespace is lost when 
startparagraph/stopparagraph is used.


Interestingly, when that is changed to bpar/epar, the problem for 
ungrouped figures disappears, but as I understand it, bpar/epar is not a 
real substitute for startparagraph/stopparagraph.


There is probably a simple explanation, but it eludes me. I prefer to be 
able to use startparagraph/stopparagraph, and it is sometimes desirable 
to place a figure into a group in order to prevent unique settings from 
leaking out.


The following should demonstrate the problem. Turning on grid setting 
makes it worse. I get the same result with current betas and older versions.


   \useMPlibrary   [dum]
   %\showgrid
   \setuplayout[%grid=yes,
 backspace=151pt,leftmargin=117pt]
   \setupwhitespace[big]
   \define\Paragraph{\startparagraph\input khatt-en\stopparagraph}
   \starttext
   {
  \subject{Start/stop paragraphs and figures}
  \subsubject{Group, extra whitespace}
  \Paragraph
  \Paragraph
  \begingroup
\startplacefigure[location={leftmargin,none}]
  \externalfigure[A]
\stopplacefigure
  \endgroup
  \Paragraph
  \Paragraph
  \subsubject{No group, no whitespace}
  \Paragraph
  \Paragraph
  \startplacefigure[location={leftmargin,none}]
\externalfigure[A]
  \stopplacefigure
  \Paragraph
  \Paragraph
  \Paragraph
   }
  \page
   {
  \subject{Start/stop paragraphs, traditional figures}
  \subsubject{Group, extra whitespace}
  \Paragraph
  \Paragraph
  {\placefigure[leftmargin,none]{}{\externalfigure[A]}}
  \Paragraph
  \Paragraph
  \subsubject{No group, no whitespace}
  \Paragraph
  \Paragraph
  \placefigure[leftmargin,none]{}{\externalfigure[A]}
  \Paragraph
  \Paragraph
  \Paragraph
   }
  \page
   {
  \subject{Traditional paragraphs, start/stop figures}
  \subsubject{Group, extra whitespace}
  \input khatt-en\par
  \input khatt-en\par
  \begingroup% or \bgroup or {
\startplacefigure[location={leftmargin,none}]
  \externalfigure[A]
\stopplacefigure
  \endgroup% or \egroup or }
  \input khatt-en\par
  \input khatt-en\par
  \subsubject{Okay}
  \input khatt-en\par
  \input khatt-en\par
  \startplacefigure[location={leftmargin,none}]
\externalfigure[A]
  \stopplacefigure
  \input khatt-en\par
  \input khatt-en\par
  \input khatt-en\par
   }
  \page
   {
  \subject{Traditional paragraphs, traditional figures}
  \subsubject{Group, extra whitespace}
  \input khatt-en\par
  \input khatt-en\par
  {\placefigure[leftmargin,none]{}{\externalfigure[A]}}
  \input khatt-en\par
  \input khatt-en\par
  \subsubject{Okay}
  \input khatt-en\par
  \input khatt-en\par
  \placefigure[leftmargin,none]{}{\externalfigure[A]}
  \input khatt-en\par
  \input khatt-en\par
  \input khatt-en\par
   }
   \stoptext

--
Rik
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] mkiv versus mkii: whitespace issues

2015-03-22 Thread Wolfgang Schuster

 Am 21.03.2015 um 19:49 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 On 20 Mar 2015, at 18:33, Wolfgang Schuster schuster.wolfg...@gmail.com 
 wrote:
 
 
 Am 20.03.2015 um 14:43 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 Sorry to ask again, but is there no solution?
 
 Can you send a *working* minimal example!
 
 I don’t know how. It happens with my project. I can’t publish my entire 
 project’s source code as it is for a book that is sold commercially.
 
 I’ll look into trying to make a minimal example. But so far I haven’t been 
 able to.

The initial is the problem but you can fix this when you replace \GotoPar with 
a different mechanism.

 begin example
\showgrid

\definelist[chaptertext][style=\itx]

\define[1]\ChapterAbstract{\doflushatpar{\writetolist[chaptertext]{}{#1}}}

\starttext

\title{\headtext{content}}

\placelist[chapter,chaptertext]

\chapter{Knuth}

\ChapterAbstract{\input ward }

\placeinitial\input knuth

\stoptext
 end example

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] mkiv versus mkii: whitespace issues

2015-03-21 Thread Gerben Wierda
On 20 Mar 2015, at 18:33, Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 
 Am 20.03.2015 um 14:43 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 Sorry to ask again, but is there no solution?
 
 Can you send a *working* minimal example!

I don’t know how. It happens with my project. I can’t publish my entire 
project’s source code as it is for a book that is sold commercially.

I’ll look into trying to make a minimal example. But so far I haven’t been able 
to.

G

 
 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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] mkiv versus mkii: whitespace issues

2015-03-20 Thread Gerben Wierda
Sorry to ask again, but is there no solution?

G

On 16 Mar 2015, at 15:03, Gerben Wierda gerben.wie...@rna.nl wrote:

 
 On 15 Mar 2015, at 23:24, Wolfgang Schuster schuster.wolfg...@gmail.com 
 wrote:
 
 
 Am 14.03.2015 um 15:54 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 I am running into two issues with my mkii-to-mkiv conversion project
 
 - The \chapter command in mkiv uses more whitespace between the header and 
 the first paragraph. How can I influence this?
 
 The different space before the \chapter is caused by the “fixed” keyword for 
 \blank
 which produce different result with MkII and MkIV and the MkIV behaviour need
 to be corrected.
 
 The space after \chapter comes from your \writetolist entry and you can 
 correct
 this with the \GotoPar command at the end of the entry as shown below.
 
  begin example
 \showgrid
 
 \setuphead[chapter][before={\blank[force,2*line]}]
 
 \starttext
 
 \chapter{Knuth}
 
 \writetolist[chapter]{}{}\GotoPar
 
 \input knuth
 
 \stoptext
  end example
 
 Thanks. I tried this
 
 % Every chapter starts with a quote on the LHS page:
 \setuphead
   [chapter]
   [page=,
before={\setups[chapter:before]},
after={\setups[chapter:after]}]
 
 \startsetups chapter:before
 \page[left]
 \noheaderandfooterlines
 \startalignment[left,nothyphenated]
   \startnarrower[4*left]
 \em \getbuffer[chapter:quote]
   \stopnarrower
 \stopalignment
 \resetsetups[quote:text]
 \page[right]
 \noheaderandfooterlines
 \blank[force,2*big]
 \stopsetups
 
 \startsetups chapter:after
 \blank[3*big]
 \stopsetups
 
 \definelist[chaptertext]
 \setuplist[chaptertext][margin=1.3em,pagecommand=\gobbleoneargument]
 \define[1]\ChapterAbstract{\writetolist[chaptertext]{}{\start\itx#1\stop}\GotoPar}
 
 
 (Adding the \GotoPar at the end) but it did not had any effect. At one place 
 (no chapter but an unnumbered title, it doesn’t work as well. Here I now have:
 
 \title[h:grief1]{Intermezzo:\\
 A short story about grief}
 \writetolist[chapter]{}{Intermezzo: A Short Story about Grief}\GotoPar
 \ChapterAbstract{A small fragment of a movie script that beautifully
 illustrates the gap between the rational and the real.}
 
 I changed it to 
 \title[h:grief1]{Intermezzo:\\
 A short story about grief}
 \writetolist[chapter]{}{Intermezzo: A Short Story about Grief}\GotoPar
 \ChapterAbstract{A small fragment of a movie script that beautifully
 illustrates the gap between the rational and the real.}\GotoPar
 
 And that works. So I changed it in another chapter to
 
 \chapter[h:loosely]{Prologue:\\Loosely Coupled Spaghetti}
 \ChapterAbstract{Starting with an example of how things can go wrong in a
 current Business-IT landscape, we notice that these kinds of problems have
 existed almost for as long as IT has existed, and that no proposed `silver
 bullet' has ever solved them. The goal of the book is introduced.}\GotoPar
 
 \placeinitial S{\kap{\bf uppose we}} have a system for the approval of loans. 
 The
 business logic has been put into a Business Rule Engine (BRE)
 system\footnote{If you are not technical and terms like `application server',
 
 But there it doesn’t. Apparently, I am still missing something. 
 
 G
 
 
 
 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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] mkiv versus mkii: whitespace issues

2015-03-20 Thread Wolfgang Schuster

 Am 20.03.2015 um 14:43 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 Sorry to ask again, but is there no solution?

Can you send a *working* minimal example!

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] mkiv versus mkii: whitespace issues

2015-03-16 Thread Gerben Wierda

On 15 Mar 2015, at 23:24, Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 
 Am 14.03.2015 um 15:54 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 I am running into two issues with my mkii-to-mkiv conversion project
 
 - The \chapter command in mkiv uses more whitespace between the header and 
 the first paragraph. How can I influence this?
 
 The different space before the \chapter is caused by the “fixed” keyword for 
 \blank
 which produce different result with MkII and MkIV and the MkIV behaviour need
 to be corrected.
 
 The space after \chapter comes from your \writetolist entry and you can 
 correct
 this with the \GotoPar command at the end of the entry as shown below.
 
  begin example
 \showgrid
 
 \setuphead[chapter][before={\blank[force,2*line]}]
 
 \starttext
 
 \chapter{Knuth}
 
 \writetolist[chapter]{}{}\GotoPar
 
 \input knuth
 
 \stoptext
  end example

Thanks. I tried this

% Every chapter starts with a quote on the LHS page:
\setuphead
  [chapter]
  [page=,
   before={\setups[chapter:before]},
   after={\setups[chapter:after]}]

\startsetups chapter:before
\page[left]
\noheaderandfooterlines
\startalignment[left,nothyphenated]
\startnarrower[4*left]
\em \getbuffer[chapter:quote]
\stopnarrower
\stopalignment
\resetsetups[quote:text]
\page[right]
\noheaderandfooterlines
\blank[force,2*big]
\stopsetups

\startsetups chapter:after
\blank[3*big]
\stopsetups

\definelist[chaptertext]
\setuplist[chaptertext][margin=1.3em,pagecommand=\gobbleoneargument]
\define[1]\ChapterAbstract{\writetolist[chaptertext]{}{\start\itx#1\stop}\GotoPar}


(Adding the \GotoPar at the end) but it did not had any effect. At one place 
(no chapter but an unnumbered title, it doesn’t work as well. Here I now have:

\title[h:grief1]{Intermezzo:\\
A short story about grief}
\writetolist[chapter]{}{Intermezzo: A Short Story about Grief}\GotoPar
\ChapterAbstract{A small fragment of a movie script that beautifully
illustrates the gap between the rational and the real.}

I changed it to 
\title[h:grief1]{Intermezzo:\\
A short story about grief}
\writetolist[chapter]{}{Intermezzo: A Short Story about Grief}\GotoPar
\ChapterAbstract{A small fragment of a movie script that beautifully
illustrates the gap between the rational and the real.}\GotoPar

And that works. So I changed it in another chapter to

\chapter[h:loosely]{Prologue:\\Loosely Coupled Spaghetti}
\ChapterAbstract{Starting with an example of how things can go wrong in a
current Business-IT landscape, we notice that these kinds of problems have
existed almost for as long as IT has existed, and that no proposed `silver
bullet' has ever solved them. The goal of the book is introduced.}\GotoPar

\placeinitial S{\kap{\bf uppose we}} have a system for the approval of loans. 
The
business logic has been put into a Business Rule Engine (BRE)
system\footnote{If you are not technical and terms like `application server',

But there it doesn’t. Apparently, I am still missing something. 

G


 
 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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] mkiv versus mkii: whitespace issues

2015-03-15 Thread Gerben Wierda
mkii result



On 14 Mar 2015, at 17:14, Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 
 Am 14.03.2015 um 15:54 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 I am running into two issues with my mkii-to-mkiv conversion project
 
 - The \chapter command in mkiv uses more whitespace between the header and 
 the first paragraph. How can I influence this?
 - \startitemize[packed,joinedup] inserts whitespace between the list and the 
 paragraph before it where mkii doesn’t
 
 How can I fix this?
 
 Do you have a example because I can’t reproduce it.
 
 \showgrid
 
 \starttext
 
 \chapter{\contextmark}
 
 \input knuth
 
 \startitemize[packed,joinedup]
 \item One
 \item Two
 \item Three
 \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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] mkiv versus mkii: whitespace issues

2015-03-15 Thread Gerben Wierda
mkiv result



On 14 Mar 2015, at 17:14, Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 
 Am 14.03.2015 um 15:54 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 I am running into two issues with my mkii-to-mkiv conversion project
 
 - The \chapter command in mkiv uses more whitespace between the header and 
 the first paragraph. How can I influence this?
 - \startitemize[packed,joinedup] inserts whitespace between the list and the 
 paragraph before it where mkii doesn’t
 
 How can I fix this?
 
 Do you have a example because I can’t reproduce it.
 
 \showgrid
 
 \starttext
 
 \chapter{\contextmark}
 
 \input knuth
 
 \startitemize[packed,joinedup]
 \item One
 \item Two
 \item Three
 \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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] mkiv versus mkii: whitespace issues

2015-03-15 Thread Gerben Wierda
][headstyle=bold,
location=hanging,indenting={yes},margin=\measure{CAindent},width=fit]

\setupnotation[footnote][numberconversion=set 
2,way=bypage,align=flushleft,indenting={yes,medium}]
\setupnotation[endnote][numberconversion=numbers,indenting={yes,medium},style={\switchtobodyfont[10pt]}]

\setupbibtex[database=gwierda,sort=author]
\setuppublications[numbering=short,sorttype=bbl,refcommand=short,autohang=yes]
\setupcite[short]

\useURL[masteringarchimateblog][http://masteringarchimate.com]
\useURL[masteringarchimatebook][http://masteringarchimate.com/mastering-archimate-edition-ii/]

\setupinteraction
 [style=,
  color=,
  contrastcolor=]

%\setupbackend[export=yes,xhtml=yes]

\definelist[chaptertext]
\setuplist[chaptertext][margin=1.3em,pagecommand=\gobbleoneargument]
\define[1]\ChapterAbstract{\writetolist[chaptertext]{}{\start\itx#1\stop}}

\stopenvironment
=

test.tex mkiv ===
\showgrid
\startcomponent c_loosely
\product prd_book
\project project_cataoia

\starttext
\starttext
\startbuffer [chapter:quote]
In software, the chain isn't as strong as its weakest link; it's as weak as
all the weak links multiplied together\crlf
{\tf Steve McConnell --- Code Complete}\crlf\crlf
Nothing is as dangerous in architecture as dealing with separated problems\crlf
{\tf Alvar Aalto}
\stopbuffer

\chapter[h:loosely]{Prologue:\\Loosely Coupled Spaghetti}
\ChapterAbstract{Starting with an example of how things can go wrong in a
current Business-IT landscape, we notice that these kinds of problems have
existed almost for as long as IT has existed, and that no proposed `silver
bullet' has ever solved them. The goal of the book is introduced.}

\placeinitial S{\kap{\bf uppose we}} have a system for the approval of loans. 
The
business logic has been put into a Business Rule Engine (BRE)
system\footnote{If you are not technical and terms like `application server',
`caught exceptions', or `web proxy' in the fragment that follows, do not
immediately get you started, do not worry: there is no need to know what I am
talking about here in a technical sense. You can read this without
understanding any of the technical references. Just skip over them, their
specifics are not important to the story. They are real enough, though.  You
can trust me on that, or ask your engineers.}. Our system has business rules
and for a certain class of prospective customers, an extra check is needed
(thus say the business rules).  This check involves sending a message to a
credit rating institute and waiting for the result. Our system will in those
cases use our Enterprise Service Bus (ESB) to send a message to a server
(which runs a service for this function, hence Service Oriented Architecture
or SOA) which then handles the interaction with the credit rating institute
via a dedicated secure link.  Since we only do this check in a small
percentage of cases, the server handling the requests and replies to the
credit institute is limited in size and our secure link is narrow as well.

\stoptext
\stopcomponent
=


G

On 14 Mar 2015, at 17:14, Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 
 Am 14.03.2015 um 15:54 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 I am running into two issues with my mkii-to-mkiv conversion project
 
 - The \chapter command in mkiv uses more whitespace between the header and 
 the first paragraph. How can I influence this?
 - \startitemize[packed,joinedup] inserts whitespace between the list and the 
 paragraph before it where mkii doesn’t
 
 How can I fix this?
 
 Do you have a example because I can’t reproduce it.
 
 \showgrid
 
 \starttext
 
 \chapter{\contextmark}
 
 \input knuth
 
 \startitemize[packed,joinedup]
 \item One
 \item Two
 \item Three
 \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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] mkiv versus mkii: whitespace issues

2015-03-15 Thread Gerben Wierda
The itemize white space issue was a difference in handling \reference. In mkii 
a \reference between \startitemize and the first item did not produce empty 
space, in mkiv it does. I moved the \reference to inside the \item

G

On 14 Mar 2015, at 17:14, Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 
 Am 14.03.2015 um 15:54 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 I am running into two issues with my mkii-to-mkiv conversion project
 
 - The \chapter command in mkiv uses more whitespace between the header and 
 the first paragraph. How can I influence this?
 - \startitemize[packed,joinedup] inserts whitespace between the list and the 
 paragraph before it where mkii doesn’t
 
 How can I fix this?
 
 Do you have a example because I can’t reproduce it.
 
 \showgrid
 
 \starttext
 
 \chapter{\contextmark}
 
 \input knuth
 
 \startitemize[packed,joinedup]
 \item One
 \item Two
 \item Three
 \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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] mkiv versus mkii: whitespace issues

2015-03-15 Thread Wolfgang Schuster

 Am 14.03.2015 um 15:54 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 I am running into two issues with my mkii-to-mkiv conversion project
 
 - The \chapter command in mkiv uses more whitespace between the header and 
 the first paragraph. How can I influence this?

The different space before the \chapter is caused by the “fixed” keyword for 
\blank
which produce different result with MkII and MkIV and the MkIV behaviour need
to be corrected.

The space after \chapter comes from your \writetolist entry and you can correct
this with the \GotoPar command at the end of the entry as shown below.

 begin example
\showgrid

\setuphead[chapter][before={\blank[force,2*line]}]

\starttext

\chapter{Knuth}

\writetolist[chapter]{}{}\GotoPar

\input knuth

\stoptext
 end example

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] mkiv versus mkii: whitespace issues

2015-03-15 Thread Wolfgang Schuster

 Am 15.03.2015 um 15:57 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 The itemize white space issue was a difference in handling \reference. In 
 mkii a \reference between \startitemize and the first item did not produce 
 empty space, in mkiv it does. I moved the \reference to inside the \item

For numbered items you can use the optional argument of \item to set a 
reference.

\starttext

\startitemize[n]
\item[item:one] First item
\item[item:two] Second item
\stopitemize

\page

Take a look at \in{item}[item:two] on \at{page}[item:two].

\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] mkiv versus mkii: whitespace issues

2015-03-14 Thread Gerben Wierda
I am running into two issues with my mkii-to-mkiv conversion project

- The \chapter command in mkiv uses more whitespace between the header and the 
first paragraph. How can I influence this?
- \startitemize[packed,joinedup] inserts whitespace between the list and the 
paragraph before it where mkii doesn’t

How can I fix this?

G
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] mkiv versus mkii: whitespace issues

2015-03-14 Thread Wolfgang Schuster

 Am 14.03.2015 um 15:54 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 I am running into two issues with my mkii-to-mkiv conversion project
 
 - The \chapter command in mkiv uses more whitespace between the header and 
 the first paragraph. How can I influence this?
 - \startitemize[packed,joinedup] inserts whitespace between the list and the 
 paragraph before it where mkii doesn’t
 
 How can I fix this?

Do you have a example because I can’t reproduce it.

\showgrid

\starttext

\chapter{\contextmark}

\input knuth

\startitemize[packed,joinedup]
\item One
\item Two
\item Three
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] \placetable whitespace problem in columnset

2014-11-02 Thread Bryor Snefjella
I have a document using columnsets to place tables near an entry in a long
list of sorts. The problem is that wherever I issue a \placetable
\placefigure etc command, I get unwanted extra whitespace between entries
where the command is issued. I have tried changing the parameters in
\setupfloats, but haven't found a setting that works.

I'm using the context version distributed with the latest texlive.

You can see the extra whitespace between entry Q and R in this example.

\definecolumnset[TwoColumns][n=2,distance=0.04\makeupwidth]

\setupindenting[yes, small]


\setupfloats[before=,after=]


\definedescription

[MyEntry][alternative=serried,width=fit,before=\indentation,indenting=yes]

 \unexpanded\def\MyCommand#1#2#3%

{\startMyEntry{\bi#2:}#3\stopMyEntry}


 \definesorting[My][Mys]




\starttext

\startcolumnset[TwoColumns]


\definecolumnsethsize{TwoColumns}{1}{1}\One


\startbuffer

\placetable[lrtb][tab:mytable]{My Table}{

\bTABLE[option=stretch,textwidth=\One,align=middle]

\bTR\bTH Foo \eTH\bTH Bar \eTH\eTR

\bTR\bTD Bar \eTD\bTD Foo \eTD\eTR

\bTR\bTD Foo \eTD\bTD Bar \eTD\eTR

\eTABLE}

\stopbuffer




\My[Q]{\input knuth\getbuffer}

\My[R]{\input knuth}

\My[C]{\input knuth}

\My[A]{\input knuth}


\placelistofsorts[My][criterium=all,command=\MyCommand]


\stopcolumnset

\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] whitespace in \setuplist[chapter]

2014-10-05 Thread Pablo Rodriguez
On 10/05/2014 02:59 AM, Thangalin wrote:
 Try:
 
 \setuplist[chapter][before={\blank[4*big]}]

Many thanks for your reply, Thangalin.

I completely forgot the before option. Of course that was the right way
to set the separation between chapter entries in the TOC.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] whitespace in \setuplist[chapter]

2014-10-04 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\startsetups[setups:chapterlist]
  \setupwhitespace[10*big]
\stopsetups
\setuplist[chapter][setups=setups:chapterlist]
\starttext
\completecontent
\dorecurse{50}{\chapter{My Chapter}}
\stoptext

I thought that setups were the right way to setup whitespace in TOC, but
it doesn’t seem to work.

Which is the right way to do it?

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] whitespace in \setuplist[chapter]

2014-10-04 Thread Thangalin
Try:

\setuplist[chapter][
  before={\blank[4*big]}
]

\starttext
  \completecontent
  \dorecurse{50}{\chapter{My Chapter}}
\stoptext

See also:

http://wiki.contextgarden.net/Command/setuplist
http://tex.stackexchange.com/questions/89758/
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \startframed spurious whitespace

2014-07-23 Thread Herbert Voss
Am 23.07.2014 03:20, schrieb Rik Kabel:
 There appears to be a bug with \startframed. In the following example,
 the instance with no optional argument sets correctly, while with the
 use of an optional argument (even empty []) a whitespace is introduced
 before the text.
 
 \starttext
 \startframed[]
 Why a space?
 \stopframed

TeX reads \startframed[] Why a space? \stopframed
A linebreak is replaced by a space and spaces at the beginning of
a line are ignored by default. Without the optional []
TeX reads \startframed Why a space? \stopframed
The first space is eaten by TeX while parsing the macro name.

 \startframed[]%   ignore the space
 Why a space?
 \stopframed

It is the same behaviour as for \startframed{} ...


 \startframed
 This is ok.
 \stopframed
 \stoptext

This is also not correct, you should use:

 \startframed
 This is ok.%
 \stopframed
 \stoptext

Otherwise you'll get a space after the dot.


Herbert
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \startframed spurious whitespace

2014-07-23 Thread Rik Kabel

On 2014-07-23 02:20, Herbert Voss wrote:

Am 23.07.2014 03:20, schrieb Rik Kabel:

There appears to be a bug with \startframed. In the following example,
the instance with no optional argument sets correctly, while with the
use of an optional argument (even empty []) a whitespace is introduced
before the text.

 \starttext
 \startframed[]
 Why a space?
 \stopframed

TeX reads \startframed[] Why a space? \stopframed
A linebreak is replaced by a space and spaces at the beginning of
a line are ignored by default. Without the optional []
TeX reads \startframed Why a space? \stopframed
The first space is eaten by TeX while parsing the macro name.

  \startframed[]%   ignore the space
  Why a space?
  \stopframed

It is the same behaviour as for \startframed{} ...


Yes. TeX does read it that way. I have written LaTeX packages and know 
the issues. ConTeXt, on the other hand, makes an extra effort, at least 
with the start/stop commands, to do it differently. That is one of the 
primary benefits, to my mind, of using 
\starttexdefinition...\stoptexdefinition instead of \def.


Perhaps I am extending my expectation of that improved behavior to 
\startframed[], but it is not, I think, an unreasonable hope.

 \startframed
 This is ok.
 \stopframed
 \stoptext

This is also not correct, you should use:

  \startframed
  This is ok.%
  \stopframed
  \stoptext

Otherwise you'll get a space after the dot.


In a real document I would likely use \par or a blank line at that 
point, but I was trying to provide a DWE (demonstrative working 
example), if not a MWE, to show the issue with the leading space. 
Line-feed hiding with % does not belong in the content of the document 
unless one chooses to drop back to TeX instead of writing within the 
ConTeXt package.

Herbert


--
Rik
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] \startframed spurious whitespace

2014-07-22 Thread Rik Kabel
There appears to be a bug with \startframed. In the following example, 
the instance with no optional argument sets correctly, while with the 
use of an optional argument (even empty []) a whitespace is introduced 
before the text.


   \starttext
   \startframed[]
   Why a space?
   \stopframed

   \startframed
   This is ok.
   \stopframed
   \stoptext

--
Rik


___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Figure whitespace overflows page

2014-07-20 Thread Rik Kabel
On 2014-03-26 19:35, Rik Kabel wrote, originally with the subject 
Caption whitespace overflows page:
How can I get rid of the space at the top of the first line of text on 
page three in the following MWE. The \setupfloats[spaceafter=none] 
masks the problem rather than addresses the problem directly. Playing 
with the size of the figures (changing them to 3cm) shows that the  
caption text is not pushed to the second page, just some whitespace 
imputed to them. This happens with TL2013 and with the latest 
(20140325) standalone beta.


I may be able to get away with the figure overflowing into the 
footnote space by avoiding footnotes, but the space on the next page 
is just ugly.


\setuppapersize[A6]
\setupexternalfigures[location={local,default}]
\setupfloats[spaceafter=none]
\starttext
\input{knuth}
\placefigure[left]{Caption}
  {\startcombination[1*3]
{\externalfigure[cow.pdf][height=2cm]}{cow}
{\externalfigure[cow.pdf][height=2cm]}{cow}
{\externalfigure[cow.pdf][height=2cm]}{cow}
  \stopcombination}
\input{knuth}

\input{knuth}
\stoptext



Can anyone suggest a fix for this, or declare that there is nothing that 
can be done except to change the page content? It is still a problem.


The problem is not with caption space /per se/, but with the space taken 
for the figure as a whole. I would think that, once the page with the 
figure is finalized, additional reserved whitespace below it can be 
discarded.


I did notice that it was also raised without apparent resolution in 
March 2007 (http://www.mail-archive.com/ntg-context%40ntg.nl/msg21269.html).


--
Rik Kabel
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Whitespace within framedtexts

2014-07-13 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

How do we activate/control whitespace (and indenting) within framed texts?  
The following seems to fail:


==
\setupframedtexts
[frame=off,
location=middle,
before={\blank[medium]\setupwhitespace[medium]},
after={\blank[medium]}]

\setupwhitespace[medium]
\setupindenting[yes,medium,first]

\starttext
\input knuth

\startframedtext
\input knuth
\stopframedtext

\input knuth
\stoptext
==

See attached. Thanks in advance and

Best wishes
Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Whitespace within framedtexts

2014-07-13 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sun, 13 Jul 2014 16:35:32 -0600, Idris Samawi Hamid ادريس   سماوي حامد  
isha...@colostate.edu wrote:



See attached.


Attached

--

Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

framedtexts.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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Whitespace within framedtexts

2014-07-13 Thread Aditya Mahajan

 On Jul 13, 2014, at 6:35 PM, Idris Samawi Hamid ادريس   سماوي حامد 
 isha...@colostate.edu wrote:
 
 Dear gang,
 
 How do we activate/control whitespace (and indenting) within framed texts? 
 The following seems to fail:
 
 ==
 \setupframedtexts
 [frame=off,
 location=middle,
 before={\blank[medium]\setupwhitespace[medium]},
 after={\blank[medium]}]
 
 \setupwhitespace[medium]
 \setupindenting[yes,medium,first]
 
 \starttext
 \input knuth
 
 \startframedtext
 \input knuth
 \stopframedtext
 
 \input knuth
 \stoptext
 ==
 
 See attached. Thanks in advance 

Untested: try indenting=yes for indentation. For white space, enclose the 
settings in a startsetups...stopsetups, and then use the setups=... key for 
framedtext.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Whitespace within framedtexts

2014-07-13 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sun, 13 Jul 2014 16:46:00 -0600, Aditya Mahajan adit...@umich.edu  
wrote:




On Jul 13, 2014, at 6:35 PM, Idris Samawi Hamid ادريس   سماوي حامد  
isha...@colostate.edu wrote:


Dear gang,

How do we activate/control whitespace (and indenting) within framed  
texts? The following seems to fail:


==
\setupframedtexts
[frame=off,
location=middle,
before={\blank[medium]\setupwhitespace[medium]},
after={\blank[medium]}]

\setupwhitespace[medium]
\setupindenting[yes,medium,first]

\starttext
\input knuth

\startframedtext
\input knuth
\stopframedtext

\input knuth
\stoptext
==

See attached. Thanks in advance


Untested: try indenting=yes for indentation. For white space, enclose  
the settings in a startsetups...stopsetups, and then use the setups=...  
key for framedtext.


Thanks Aditya. indenting=yes was a bust but the following works:

\startsetups[framedwhitespace]
\setupwhitespace[medium]
\setupindenting[yes,medium,first]
\stopsetups

Thanks again and best wishes
Idris
--

Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Empty heads after leading whitespace

2014-05-06 Thread Maggyero
 after={\blank[0em]\blank[disable]}]

Yes it also works, thank you Thangalin. So here is the final solution (I
have added the 'nowhite' keyword in the second blank to kill whitespaces
when they are active) to get real empty heads (sections here) in the
document:


\setupwhitespace[line]

\setuphead
  [section]
  [placehead=empty,
   page=yes,
   after={\blank[none]\blank[nowhite, disable]}]

\setuphead
  [subsection]
  [placehead=yes,
   before={\blank[line]},
   after={\blank[line]}]

\setupheadertexts[section]

\showframe

\starttext
   \completecontent
   \dorecurse{2}
 {\section{My section}
  \dorecurse{2}
{\subsection{My subsection}
 \input knuth}}
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Empty heads after leading whitespace

2014-05-06 Thread Hans Hagen

On 5/6/2014 7:08 AM, Thangalin wrote:

\setuphead
   [section]
   [placehead=empty,
page=yes,
after={\blank[0em]\blank[disable]}]

That works for me. I don't know if it is better, but if it works for
you as well then it is probably the way to go.

mtx-context | current version: 2014.01.03 00:40


if you want no head-related nodes interfering, use:

% \setuphead[chapter][placehead=hidden]
% \chapter {test}
%
% %(\synchronizehead{chapter}) % \getheadsyncs
% %(\getfullstructurenumber{\thenamedheadlevel{chapter}})
% %(\getspecificstructuretitle{\thenamedheadlevel{chapter}})
%
% (\placerawheaddata  [chapter])
% (\placerawheadnumber[chapter])
% (\placerawheadtext  [chapter])

at some point you need to make sure you flush but you can decide to do 
it in some safe place (a header or footer or whatever you build as 
chapter opening)



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Empty heads after leading whitespace

2014-05-05 Thread Thangalin
Avoid vskip.

http://wiki.contextgarden.net/Command/vskip
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Empty heads after leading whitespace

2014-05-05 Thread Maggyero
 Avoid vskip.

Do you have a better solution?
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Empty heads after leading whitespace

2014-05-05 Thread Thangalin
\setuphead
  [section]
  [placehead=empty,
   page=yes,
   after={\blank[0em]\blank[disable]}]

That works for me. I don't know if it is better, but if it works for
you as well then it is probably the way to go.

mtx-context | current version: 2014.01.03 00:40
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Empty heads after leading whitespace

2014-05-04 Thread Maggyero
For those who are interested, I've finally solved my problem (the vertical
space before a subsection which was not automatically swallowed at the top
of a page when the page started with an empty section) by using the pair
'after={\vskip 0em\blank[disable]}' for sections:


\setuphead
  [section]
  [placehead=empty,
   page=yes,
   after={\vskip 0em\blank[disable]}]

\setuphead
  [subsection]
  [placehead=yes,
   before={\blank[line]},
   after={\blank[line]}]

\setupheadertexts[section]

\showframe

\starttext
   \completecontent
   \dorecurse{2}
 {\section{My section}
  \dorecurse{2}
{\subsection{My subsection}
 \input knuth}}
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Empty heads after leading whitespace

2014-05-03 Thread Maggyero
A more explicit minimal example of the problem:


\setupheadertexts[section]
\setuphead[section][%
placehead=empty,
before=,
after=]
\setuphead[subsection][%
placehead=yes,
before={\blank[line]},
after={\blank[line]}]

\starttext
\showframe
\section{My section}
\subsection{My subsection (whitespace before: problem)}
\input knuth
\subsection{My subsection (whitespace before: fine)}
\input knuth
\page
\subsection{My subsection (NO whitespace before: fine)}
\input knuth
\subsection{My subsection (whitespace before: fine)}
\input knuth
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Empty heads after leading whitespace

2014-05-03 Thread Wolfgang Schuster

Am 03.05.2014 um 16:32 schrieb Maggyero maggy...@gmail.com:

 A more explicit minimal example of the problem:
 
 
 \setupheadertexts[section]
 \setuphead[section][%
 placehead=empty,
 before=,
 after=]
 \setuphead[subsection][%
 placehead=yes,
 before={\blank[line]},
 after={\blank[line]}]
 
 \starttext
 \showframe
 \section{My section}
 \subsection{My subsection (whitespace before: problem)}
 \input knuth
 \subsection{My subsection (whitespace before: fine)}
 \input knuth
 \page
 \subsection{My subsection (NO whitespace before: fine)}
 \input knuth
 \subsection{My subsection (whitespace before: fine)}
 \input knuth
 \stoptext

When you don’t need a section entry in the TOC you can use “placehead=hidden”,
the title of the section head can be accessed with the \namedstructurevariable 
command.

\setupheadertexts[\namedstructurevariable{section}{title}]

\setuphead
  [section]
  [placehead=hidden]

\setuphead
  [subsection]
  [placehead=yes,
   before={\blank[line]},
   after={\blank[line]}]

\showframe

\starttext

\dorecurse{2}
  {\page
   \section{Section #1}
   \dorecurse{2}
 {\subsection{Subsection #1.##1}
  \input knuth\par}}

\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Empty heads after leading whitespace

2014-05-03 Thread Maggyero
Thanks Wolfgang. I could even have sections in the TOC  with
'\setuptexttexts[{\placerawheaddata[section]}]'.

However, how can I start a new page at each new section? The 'page=yes'
pair does no longer work with your solution 'placehead=hidden' (since the
head is not placed I guess). I also tried 'before=\page' or 'after=\page'
without more success. Here is a minimal example showing the absence of page
breaks though I specified 'page=yes' (the section numbers are also
mismatched but if one puts manual page breaks they match again, so it's not
really a problem for me):


\setupheadertexts[\namedstructurevariable{section}{title}][]

\setuphead
  [section]
  [placehead=hidden,
   page=yes] % -- This key does NOT work.

\setuphead
  [subsection]
  [placehead=yes,
   before={\blank[line]},
   after={\blank[line]}]

\setuptexttexts[{\placerawheaddata[section]}]

\showframe

\starttext
\completecontent
\dorecurse{2}
  {\section{My section}
   \dorecurse{2}
 {\subsection{My subsection}
  \input knuth}}
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Empty heads after leading whitespace

2014-05-01 Thread Thangalin
\setuphead[section][%
placehead=empty,
before=,
after=]
\setuphead[subsection][%
placehead=yes,
before=\empty,
after={\blank[line]}]
\setupheadertexts[section]

\starttext
\showframe
\section{My section}
\subsection{My subsection (whitespace before)} % Here is my problem.
\page
\subsection{My subsection (NO whitespace before)}
\stoptext

Is that what you mean?
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Empty heads after leading whitespace

2014-05-01 Thread Maggyero
 before=\empty,

\empty is not even required. The problem with your solution (setting
'before=' i.e. empty) is that there is also no whitespace before a
subsection which doesn't start on a new page.

Any better ideas?
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Empty heads after leading whitespace

2014-04-30 Thread Maggyero
Hello,


Here after is my problem:


\setuphead[section][%
placehead=empty,
before=,
after=]
\setuphead[subsection][%
placehead=yes,
before={\blank[line]},
after={\blank[line]}]
\setupheadertexts[section]

\starttext
\showframe
\section{My section}
\subsection{My subsection (whitespace before: )} % Here is my problem.
\page
\subsection{My subsection (NO whitespace before)}
\stoptext


The mechanism that automatically removes the leading whitespace at the top
of a page doesn't work if there is an EMPTY head followed by another head
(of a different level). How can I remove that whitespace?


Best regards.
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Unwanted whitespace for tables and enumerations after \inmargin headings

2014-04-19 Thread Wolfgang Schuster

Am 19.04.2014 um 02:11 schrieb Rik Kabel cont...@rik.users.panix.com:

 On 2014-04-18 17:36, Aditya Mahajan wrote:
 On Fri, 18 Apr 2014, Thangalin wrote:
 
 Hi Rik,
 
 The example isn't quite as minimal as it could be... Here is a
 simplified version demonstrating the problem:
 
 \setuplayout[backspace=4cm]
 
 \define[2]\MarginHead{\inmargin{#1 #2}}
 
 \setuphead[section][
 alternative=text,
 command=\MarginHead,
 ]
 
 \defineitemgroup[itemz]
 \setupitemgroup[itemz][each][joinedup]
 
 \startbuffer[Item]
 \startitemz
   \item Item
   \item Item
 \stopitemz
 \stopbuffer
 
 \starttext
 \section{No Whitespace}
 No extra whitespace before items.
 \getbuffer[Item]
 
 \section{Extra Whitespace}
 \getbuffer[Item]
 Unexpected extra whitespace before items.
 \stoptext
 
 Here is one way to get rid of the extra white-space. I could not figure out 
 a clean way of adding this signal to the setup.
 
 \setuplayout[backspace=6cm, leftmargin=5.5cm]
 
 \define[2]\MarginHead{\inmargin{#1 #2}}
 
 \setuphead[section]
  [
command=\MarginHead,
alternative=text,
distance=\zeropoint,
  ]
 
 \unprotect
  \def\SIGNAL{\hskip\d_strc_itemgroups_signal}
 \protect
 \defineitemgroup[itemz]
 \setupitemgroup[itemz][each][joinedup]
 
 \startbuffer[Item]
  \startitemz
\item Item
\item Item
  \stopitemz
 \stopbuffer
 
 \starttext
  \section{No Whitespace}
  No extra whitespace before items.
  \getbuffer[Item]
 
  \section{Extra Whitespace} \SIGNAL
  \getbuffer[Item]
  Unexpected extra whitespace before items.
 \stoptext
 
 Pretty ugly, but thank you for that, Aditya.
 
 Is there a similar kludge for tabulate? (That was part of my original 
 problem, removed in the subsequent simplification of the example.)

\setuphead
  [section]
  [alternative=text,
   command=\SectionCommand,
   distance=0pt,
   insidesection={\blank[overlay]}]

\define[2]\SectionCommand
  {\inmargin{#1 – #2}}

\setuplayout[backspace=4cm]

\starttext

\startsection[title={First}]

\input ward

\stopsection

\startsection[title={Second}]

\startitemize
\item One
\item Two
\stopitemize

\stopsection

\startsection[title={Third}]

\starttabulate
\NC Knuth \NC \input{knuth} \NC\NR
\NC Tufte \NC \input{tufte} \NC\NR
\stoptabulate

\stopsection

\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Unwanted whitespace for tables and enumerations after \inmargin headings

2014-04-19 Thread Thangalin
Hi,

insidesection={\blank[overlay]}]

This appears to require the latest beta.
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Unwanted whitespace for tables and enumerations after \inmargin headings

2014-04-19 Thread Rik

On 2014-04-19 04:55, Wolfgang Schuster wrote:

\setuphead
  [section]
  [alternative=text,
   command=\SectionCommand,
   distance=0pt,
   insidesection={\blank[overlay]}]

\define[2]\SectionCommand
  {\inmargin{#1 -- #2}}

\setuplayout[backspace=4cm]

\starttext

\startsection[title={First}]

\input ward

\stopsection

\startsection[title={Second}]

\startitemize
\item One
\item Two
\stopitemize

\stopsection

\startsection[title={Third}]

\starttabulate
\NC Knuth \NC \input{knuth} \NC\NR
\NC Tufte \NC \input{tufte} \NC\NR
\stoptabulate

\stopsection

\stoptext

Wolfgang


Thank you, Wolfgang. This works mostly, but not completely, for 
start/stop sectioning (not for classic sectioning).


I do notice that there is still a problem with tabulations if you add a 
horizontal line (\HL or \FL) to the beginning of the table. New example, 
building on yours:


   \setuphead
  [section]
  [alternative=text,
   command=\SectionCommand,
   distance=0pt,
   insidesection={\blank[overlay]}]

   \define[2]\SectionCommand
  {\inmargin{#1 -- #2}}

   \setuplayout[backspace=4cm]

   \starttext

   \startsection[title={Okay with text here}]

   Text here
   \starttabulate
   \FL \NC Knuth \NC \input{knuth} \NC\NR
   \NC Tufte \NC \input{tufte} \NC\NR
   \stoptabulate

   \stopsection

   \startsection[title={Fails with no text}]

   \starttabulate
   \FL \NC Knuth \NC \input{knuth} \NC\NR
   \NC Tufte \NC \input{tufte} \NC\NR
   \stoptabulate

   \stopsection

   \stoptext


--
RIk Kabel

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Unwanted whitespace for tables and enumerations after \inmargin headings

2014-04-18 Thread Thangalin
Hi Rik,

The example isn't quite as minimal as it could be... Here is a
simplified version demonstrating the problem:

\setuplayout[backspace=4cm]

\define[2]\MarginHead{\inmargin{#1 #2}}

\setuphead[section][
  alternative=text,
  command=\MarginHead,
]

\defineitemgroup[itemz]
\setupitemgroup[itemz][each][joinedup]

\startbuffer[Item]
  \startitemz
\item Item
\item Item
  \stopitemz
\stopbuffer

\starttext
  \section{No Whitespace}
  No extra whitespace before items.
  \getbuffer[Item]

  \section{Extra Whitespace}
  \getbuffer[Item]
  Unexpected extra whitespace before items.
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Unwanted whitespace for tables and enumerations after \inmargin headings

2014-04-18 Thread Aditya Mahajan

On Fri, 18 Apr 2014, Thangalin wrote:


Hi Rik,

The example isn't quite as minimal as it could be... Here is a
simplified version demonstrating the problem:

\setuplayout[backspace=4cm]

\define[2]\MarginHead{\inmargin{#1 #2}}

\setuphead[section][
 alternative=text,
 command=\MarginHead,
]

\defineitemgroup[itemz]
\setupitemgroup[itemz][each][joinedup]

\startbuffer[Item]
 \startitemz
   \item Item
   \item Item
 \stopitemz
\stopbuffer

\starttext
 \section{No Whitespace}
 No extra whitespace before items.
 \getbuffer[Item]

 \section{Extra Whitespace}
 \getbuffer[Item]
 Unexpected extra whitespace before items.
\stoptext


Here is one way to get rid of the extra white-space. I could not figure 
out a clean way of adding this signal to the setup.


\setuplayout[backspace=6cm, leftmargin=5.5cm]

\define[2]\MarginHead{\inmargin{#1 #2}}

\setuphead[section]
  [
command=\MarginHead,
alternative=text,
distance=\zeropoint,
  ]

\unprotect
  \def\SIGNAL{\hskip\d_strc_itemgroups_signal}
\protect
\defineitemgroup[itemz]
\setupitemgroup[itemz][each][joinedup]

\startbuffer[Item]
  \startitemz
\item Item
\item Item
  \stopitemz
\stopbuffer

\starttext
  \section{No Whitespace}
  No extra whitespace before items.
  \getbuffer[Item]

  \section{Extra Whitespace} \SIGNAL
  \getbuffer[Item]
  Unexpected extra whitespace before items.
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Unwanted whitespace for tables and enumerations after \inmargin headings

2014-04-18 Thread Rik Kabel

On 2014-04-18 17:36, Aditya Mahajan wrote:

On Fri, 18 Apr 2014, Thangalin wrote:


Hi Rik,

The example isn't quite as minimal as it could be... Here is a
simplified version demonstrating the problem:

\setuplayout[backspace=4cm]

\define[2]\MarginHead{\inmargin{#1 #2}}

\setuphead[section][
 alternative=text,
 command=\MarginHead,
]

\defineitemgroup[itemz]
\setupitemgroup[itemz][each][joinedup]

\startbuffer[Item]
 \startitemz
   \item Item
   \item Item
 \stopitemz
\stopbuffer

\starttext
 \section{No Whitespace}
 No extra whitespace before items.
 \getbuffer[Item]

 \section{Extra Whitespace}
 \getbuffer[Item]
 Unexpected extra whitespace before items.
\stoptext


Here is one way to get rid of the extra white-space. I could not 
figure out a clean way of adding this signal to the setup.


\setuplayout[backspace=6cm, leftmargin=5.5cm]

\define[2]\MarginHead{\inmargin{#1 #2}}

\setuphead[section]
  [
command=\MarginHead,
alternative=text,
distance=\zeropoint,
  ]

\unprotect
  \def\SIGNAL{\hskip\d_strc_itemgroups_signal}
\protect
\defineitemgroup[itemz]
\setupitemgroup[itemz][each][joinedup]

\startbuffer[Item]
  \startitemz
\item Item
\item Item
  \stopitemz
\stopbuffer

\starttext
  \section{No Whitespace}
  No extra whitespace before items.
  \getbuffer[Item]

  \section{Extra Whitespace} \SIGNAL
  \getbuffer[Item]
  Unexpected extra whitespace before items.
\stoptext


Pretty ugly, but thank you for that, Aditya.

Is there a similar kludge for tabulate? (That was part of my original 
problem, removed in the subsequent simplification of the example.)


--
Rik
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Unwanted whitespace for tables and enumerations after \inmargin headings

2014-04-17 Thread Rik Kabel
(This appears to be the same issue which was raised by Alexandros 
Frantzis in October 2008; see the thread at 
http://www.mail-archive.com/ntg-context%40ntg.nl/msg32125.html. No 
resolution was proposed at that time, and the problem still exists.)


Extra whitespace occurs before itemizations and tabulations (and quite 
possibly other structures) which appear immediately following an 
in-margin heading. The following example illustrates this.


   \setuplayout [backspace=7cm,leftmargin=6cm]

   \setuphead   [chapter][]

   \setuphead   [subsection]
 [alternative=normal,command=,distance=1em]

   \setuphead   [subsubsection]
 [alternative=normal,command=,distance=1em]

   \setuphead   [section][distance=0pt,
  alternative=text,
  command=\MarginHead]

   \define[2]\MarginHead{\inmargin{#1 #2}}

   \startbuffer[Item]
  \startitemize
\item Item
\item Idem
  \stopitemize
   \stopbuffer
   \startbuffer[Table]
  \starttabulate[|l|l|]
\FL\NC Entry \NC one \NC\NR
   \NC Entry \NC two \NC\NR\LL
  \stoptabulate
   \stopbuffer

   \starttext

   \chapter{Itemize}

   \section{No extra whitespace}
   With text here there is no extra whitespace before the itemization.
   \getbuffer[Item]

   \subsection{No extra whitespace}
   With text here there is no extra whitespace before the itemization.
   \getbuffer[Item]

   \section{Extra whitespace}
   \getbuffer[Item]
   With no text before the itemization there is extra space after the
   heading.

   \subsection{No extra whitespace}
   \getbuffer[Item]
   With no text before the itemization there is extra space after the
   heading.

   \chapter{Tabulate}

   \section{No extra whitespace}
   With text here there is no extra whitespace before the table.
   \getbuffer[Table]

   \subsection{No extra whitespace}
   With text here there is no extra whitespace before the table.
   \getbuffer[Table]

   \section{Extra whitespace}
   \getbuffer[Table]
   With no text before the table there is extra space after the heading.

   \subsection{No extra whitespace}
   \getbuffer[Table]
   With no text before the table there is extra space after the heading.

   \stoptext

Is this unresolvable? Like Alexandros, I have tried many of the options 
that looked appropriate, but nothing seems to work.


--
Rik Kabel
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Unwanted whitespace with \startsection and in-margin headings

2014-04-17 Thread Rik Kabel
Following up on a related whitespace problem with descriptions and 
tables following in-margin headings --


I notice that \startsection behaves differently from \section when it 
comes to following whitespace for in-margin headings. This example 
demonstrates this:


   \setuplayout [backspace=6cm,leftmargin=6cm,rightmargin=1cm,cutspace=1cm]

   \setuphead   [chapter][page=no]
   \setuphead   [section][distance=0pt,
  alternative=text,
  command=\MarginHead]

   \define[2]\MarginHead{\inmargin{#1 #2}}

   \starttext

   \chapter{Traditional}

   There is no extra white space when using the traditional
   sectioning commands when the heading is placed in the margin.

   \section{No blank line}
   This text follows the section heading with no intervening space.
   No extra space has been added.

   \section{Blank line}

   This text follows the section heading with one intervening blank
   line. No extra space has been added.

   \startchapter[title={Startsection}]

   The newer sectioning commands are sensitive to the whitespace which
   follows when the heading is placed in the margin.

   \startsection[title={No blank line}]
   This text follows the section heading with no intervening space.
   No extra space has been added.

   \stopsection
   \startsection[title={Blank line ?}]

   This text follows the section heading with one intervening blank
   line. It shows the problem with startsection.

   \stopsection
   \stopchapter
   \stoptext

What can be done with the header setup to prevent this?

--
Rik Kabel
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Caption whitespace overflows page

2014-03-26 Thread Rik Kabel
How can I get rid of the space at the top of the first line of text on 
page three in the following MWE. The \setupfloats[spaceafter=none] masks 
the problem rather than addresses the problem directly. Playing with the 
size of the figures (changing them to 3cm) shows that the  caption text 
is not pushed to the second page, just some whitespace imputed to them. 
This happens with TL2013 and with the latest (20140325) standalone beta.


I may be able to get away with the figure overflowing into the footnote 
space by avoiding footnotes, but the space on the next page is just ugly.


   \setuppapersize[A6]
   \setupexternalfigures[location={local,default}]
   \setupfloats[spaceafter=none]
   \starttext
   \input{knuth}
   \placefigure[left]{Caption}
  {\startcombination[1*3]
{\externalfigure[cow.pdf][height=2cm]}{cow}
{\externalfigure[cow.pdf][height=2cm]}{cow}
{\externalfigure[cow.pdf][height=2cm]}{cow}
  \stopcombination}
   \input{knuth}

   \input{knuth}
   \stoptext

--
Rik Kabel
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] narrower and whitespace

2013-03-16 Thread H. van der Meer
I find that in

intro text
\startnarrower
narrow text
\stopnarrower
after text

blank vertical space is inserted both before and after the narrower block.
How can I avoid that?


Hans van der Meer



___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] narrower and whitespace

2013-03-16 Thread Wolfgang Schuster

Am 16.03.2013 um 12:45 schrieb H. van der Meer h.vanderm...@uva.nl:

 I find that in
 
 intro text
 \startnarrower
 narrow text
 \stopnarrower
 after text
 
 blank vertical space is inserted both before and after the narrower block.
 How can I avoid that?

I can’t see a space before/after the environment.

\starttext
intro text
\startnarrower
narrow text
\stopnarrower
after text
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] narrower and whitespace

2013-03-16 Thread Meer H. van der
Solved. Before was \setupwhitespace[small], for this I had to surround 
everything with
\start
\setupwhitespace[none]
..
\stop

Hans van der Meer



On 16 mrt. 2013, at 13:44, Wolfgang Schuster schuster.wolfg...@gmail.com 
wrote:

 
 Am 16.03.2013 um 12:45 schrieb H. van der Meer h.vanderm...@uva.nl:
 
 I find that in
 
 intro text
 \startnarrower
 narrow text
 \stopnarrower
 after text
 
 blank vertical space is inserted both before and after the narrower block.
 How can I avoid that?
 
 I can’t see a space before/after the environment.
 
 \starttext
 intro text
 \startnarrower
 narrow text
 \stopnarrower
 after text
 \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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] narrower and whitespace

2013-03-16 Thread Wolfgang Schuster

Am 16.03.2013 um 14:58 schrieb Meer H. van der h.vanderm...@uva.nl:

 Solved. Before was \setupwhitespace[small], for this I had to surround 
 everything with
 \start
 \setupwhitespace[none]
 ..
 \stop


You can also prevent the space with the following setup for the narrower 
environment.

\setupnarrower
  [before={\blank[nowhite]},
   after={\blank[nowhite]}]

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Whitespace and quotechar in database module

2012-12-18 Thread Marco Patzer
Hi,

the following two database examples produce different output due to
the white space between the field separator and the quotechar.


\usemodule [database]

\defineseparatedlist
  [CSV]
  [quotechar=,
   before={\starttabulate[|l|l|]},
   after=\stoptabulate,
   first=\NC,last=\NR,
   left=,right=\NC]

\starttext

\startCSV
  alpha, loremloremlorem
  beta,ipsum, ipsum, ipsum
\stopCSV

\startCSV
  alpha, loremloremlorem
  beta, ipsum, ipsum, ipsum
\stopCSV

\stoptext


Can the parser be made tolerant to this space?

Marco


signature.asc
Description: Digital signature
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Whitespace and quotechar in database module

2012-12-18 Thread Hans Hagen

On 12/18/2012 9:20 AM, Marco Patzer wrote:

Hi,

the following two database examples produce different output due to
the white space between the field separator and the quotechar.


\usemodule [database]

\defineseparatedlist
   [CSV]
   [quotechar=,
before={\starttabulate[|l|l|]},
after=\stoptabulate,
first=\NC,last=\NR,
left=,right=\NC]

\starttext

\startCSV
   alpha, loremloremlorem
   beta,ipsum, ipsum, ipsum
\stopCSV

\startCSV
   alpha, loremloremlorem
   beta, ipsum, ipsum, ipsum
\stopCSV

\stoptext


Can the parser be made tolerant to this space?



only before/after quote I assume

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] interlinespace and whitespace different for footnotes

2012-10-23 Thread Pablo Rodríguez
Hi there,

I have the following settings for a document.

\setupinterlinespace[line=3.2ex]
\setupwhitespace[medium]

But I would like to have diferent values for interlinear space and
between paragraphs.

strc-not.mkvi shows that the after option from \setupnotation does the
work with the space between paragraphs.

But how can I set the interlinear space value for footnotes?

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] interlinespace and whitespace different for footnotes

2012-10-23 Thread Wolfgang Schuster

Am 23.10.2012 um 20:54 schrieb Pablo Rodríguez oi...@web.de:

 Hi there,
 
 I have the following settings for a document.
 
 \setupinterlinespace[line=3.2ex]
 \setupwhitespace[medium]
 
 But I would like to have diferent values for interlinear space and
 between paragraphs.
 
 strc-not.mkvi shows that the after option from \setupnotation does the
 work with the space between paragraphs.
 
 But how can I set the interlinear space value for footnotes?

\startsetups[setups:footnote]

  \setupinterlinespace[line=2.8ex]

\stopsetups

\setupnote[footnote][setups=setups:footnote]

\starttext
…
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] interlinespace and whitespace different for footnotes

2012-10-23 Thread Pablo Rodríguez
On 23/10/12 21:19, Wolfgang Schuster wrote:
 Am 23.10.2012 um 20:54 schrieb Pablo Rodríguez oi...@web.de:
 [...]
 But I would like to have different values for interlinear space and
 between paragraphs.
 [...]
 But how can I set the interlinear space value for footnotes?
 
 \startsetups[setups:footnote]
 
   \setupinterlinespace[line=2.8ex]
 
 \stopsetups
 
 \setupnote[footnote][setups=setups:footnote]
 
 \starttext
 …
 \stoptext

Many thanks for your help, Wolfgang.

I think I wouldn't have discovered that in years.


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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] tolerance and whitespace settings inside a TEXpage

2012-09-20 Thread Marco Patzer
Hi,

inside a TEXpage the tolerance and the whitespace settings are not
applied. The whitespace can be set in a setup and the tolerance can
be set directly with \spaceskip, but that seems a bit hackish.

Is that intended and is there a cleaner solution? Example:

\setuplayout   [width=8cm]
\setupbodyfont [mono]
\startsetups [myset]
  \setupwhitespace [big]
  \setuptolerance  [space]
\stopsetups
\setups{myset}

\starttext
  \startTEXpage [setups=myset]
%% \spaceskip .5em plus .25em minus .25em
\input knuth
  \stopTEXpage

  \input knuth
\stoptext


Marco

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] tolerance and whitespace settings inside a TEXpage

2012-09-20 Thread Wolfgang Schuster

Am 20.09.2012 um 11:56 schrieb Marco Patzer home...@lavabit.com:

 Hi,
 
 inside a TEXpage the tolerance and the whitespace settings are not
 applied. The whitespace can be set in a setup and the tolerance can
 be set directly with \spaceskip, but that seems a bit hackish.
 
 Is that intended and is there a cleaner solution? Example:
 
 \setuplayout   [width=8cm]
 \setupbodyfont [mono]
 \startsetups [myset]
  \setupwhitespace [big]
  \setuptolerance  [space]
 \stopsetups
 \setups{myset}
 
 \starttext
  \startTEXpage [setups=myset]
%% \spaceskip .5em plus .25em minus .25em
\input knuth
  \stopTEXpage
 
  \input knuth
 \stoptext


The problem here is that your setups are used but the value from the align
key overwrite them which can’t be changed. One solution is to put 
\texsetup{myset}
after \startTEXpage but this has to be done for each page, the better solution 
is
to misuse the command key to flush the setups content.

\setuplayout   [width=8cm]
\setupbodyfont [mono]

\startsetups [myset]

  \setupwhitespace [big]
  \setuptolerance  [space]

\stopsetups

\setupfittingpage[TEXpage][command=\texsetup{myset}]

\starttext

\startTEXpage
\input knuth
\stopTEXpage

\input knuth

\stoptext

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] [***SPAM***] whitespace also before xtables

2012-04-07 Thread Pablo Rodríguez
Hi there,

I'm trying to add a whitespace before an xtable (just to be spaced as
any other paragraph).

I wanted to do that in the \setupxtable, before=\whitespace or
top=\whitespace don't seem to work.

Sorry, but which is the right option to do that?

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] First Line After Whitespace Styling

2011-05-27 Thread Marc Trius
Hi,
I would like to be able to specify a style that would apply to text that 
appears on the first line of a paragraph after whitespace. I have no idea how 
to go about it. 

Specifically, I have a font with an alternate glyph that can only be used after 
whitespace, and I would like to have it used automatically when appropriate. 

Thank you,
Marc Trius

-- 
Marc Trius derpay...@riseup.net

The enemy is the gramophone mind, whether or not one agrees with the record 
that is being played at the moment. --- George Orwell
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] First Line After Whitespace Styling

2011-05-27 Thread Wolfgang Schuster

Am 27.05.2011 um 18:08 schrieb Marc Trius:

 Hi,
 I would like to be able to specify a style that would apply to text that 
 appears on the first line of a paragraph after whitespace. I have no idea how 
 to go about it. 
 
 Specifically, I have a font with an alternate glyph that can only be used 
 after whitespace, and I would like to have it used automatically when 
 appropriate. 

Do you want a initial?

\setupinitial[state=start]

\starttext
\placeinitial \input knuth
\stoptext

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] First Line After Whitespace Styling

2011-05-27 Thread Marc Trius
On Fri, 27 May 2011 18:30:53 +0200
Wolfgang Schuster schuster.wolfg...@googlemail.com wrote:

 
 Am 27.05.2011 um 18:08 schrieb Marc Trius:
 
  Hi,
  I would like to be able to specify a style that would apply to text that 
  appears on the first line of a paragraph after whitespace. I have no idea 
  how to go about it. 
  
  Specifically, I have a font with an alternate glyph that can only be used 
  after whitespace, and I would like to have it used automatically when 
  appropriate. 
 
 Do you want a initial?
 
 \setupinitial[state=start]
 
 \starttext
 \placeinitial \input knuth
 \stoptext
 
 Wolfgang
 

No, what is something like:

...

\starttypescript  [Standard]
  \definetypeface [Standard] [rm] [serif] [frankruehl]   [default] 
[features=default]
  \definetypeface [Alt][rm] [serif] [frankruehl] [default] 
[features=alt]
  \stoptypescript

...

{\Alt This is the first line after a whitespace, this is the linebreak} and 
this is the rest of the paragraph. I'd like to have a macro that automatically 
styles the first line only so I don't have to guess at linebreaks every time I 
edit the text.

I need to do this because in texts that are written with the Hebrew alphabet, a 
shorter glyph of the tallest letter, 'lamed,' is used inside a block of text 
than in a first line, so that the interline space can be smaller. Employing 
this technique makes the difference between a pretty good and a really 
first-rate typesetting job :)

Thanks,
Marc

 ___
 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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___


-- 
Marc Trius derpay...@riseup.net

The enemy is the gramophone mind, whether or not one agrees with the record 
that is being played at the moment. --- George Orwell
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] First Line After Whitespace Styling

2011-05-27 Thread Wolfgang Schuster

Am 27.05.2011 um 21:08 schrieb Marc Trius:

 No, what is something like:
 
 ...
 
 \starttypescript  [Standard]
  \definetypeface [Standard] [rm] [serif] [frankruehl]   [default] 
 [features=default]
  \definetypeface [Alt][rm] [serif] [frankruehl] [default] 
 [features=alt]
  \stoptypescript
 
 ...
 
 {\Alt This is the first line after a whitespace, this is the linebreak} and 
 this is the rest of the paragraph. I'd like to have a macro that 
 automatically styles the first line only so I don't have to guess at 
 linebreaks every time I edit the text.
 
 I need to do this because in texts that are written with the Hebrew alphabet, 
 a shorter glyph of the tallest letter, 'lamed,' is used inside a block of 
 text than in a first line, so that the interline space can be smaller. 
 Employing this technique makes the difference between a pretty good and a 
 really first-rate typesetting job :)

Adapt the following to your case:

\setupbodyfont[pagella]

\definefontfeature[allcaps][smcp=yes,c2sc=yes]

\starttext

\TreatFirstLine {\addff{allcaps}} {} {} {}
The Earth, as a habitat for animal life, is in old age and has a fatal illness. 
Several, in fact. It would be happening whether humans had ever evolved or not. 
But our presence is like the effect of an old-age patient who smokes many packs 
of cigarettes per day — and we humans are the cigarettes.

\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


  1   2   3   >