Unwanted whitespace at beginning of document

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

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 ___________________________________________________________________________________

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

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
participants (3)
-
Denis Maier
-
Hans van der Meer
-
Wolfgang Schuster