ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \writetolist spurious space in the first line hereafter
@ 2011-03-17 10:32 Willi Egger
  2011-03-17 10:47 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Willi Egger @ 2011-03-17 10:32 UTC (permalink / raw)
  To: NTG-Context ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 314 bytes --]

Hi all,

I detected that after issuing \writetolist, that there is a unwanted space in the first line after this command. This occurs when indenting is on and off. 

Please refer to the attached minimal example.

I am using ConTeXt 2011.02.25 22:03, LuaTEX beta-0.65.0-2010121316

Kind regards

Willi


[-- Attachment #2: test-indenting.tex --]
[-- Type: application/octet-stream, Size: 1496 bytes --]

% Context file
% Filename: untitled.tex
% 
% 17-03-2011
% Copyright (c) 2011 BOEDE. All rights reserved.

\usetypescriptfile[type-seravek]
\usetypescript[Seravek]
\setupbodyfont[Seravek,ss,12pt]
\setuppagenumbering[location=]
\setuplayout
	[topspace=2.5cm,
	backspace=1.5cm,
	header=0pt,
	footer=0pt,
	height=middle,
	width=middle]
\mainlanguage[nl]

%\showframe
%\setupindenting[none]
\setupindenting[yes, small, first]

\starttext
\completecontent
\page

\writetolist[section]{De bijen bevorderen de bevruchting bij de planten}{}
Een goed landbouwer mogt, naar mijn inzien, niets verloren laten gaan,
van hetgeen zijn akker voortbrengt.

\writetolist[section]{Onkunde van vele bijenhouders}{}
Ik zou dus bijenkweeker worden; eene mij geheel onbekende zaak. Er
waren echter in mijne nabijheid verscheidene personen, die zich,
als bijmiddel van bestaan, op de bijenteelt toelegden, bij wie ik
licht hoopte te vinden in wat mij duister was.

\blank
\setupindenting[no,none]
Here without any intenting:



\writetolist[section]{De bijen bevorderen de bevruchting bij de planten}{}
Een goed landbouwer mogt, naar mijn inzien, niets verloren laten gaan,
van hetgeen zijn akker voortbrengt.

\writetolist[section]{Onkunde van vele bijenhouders}{}
Ik zou dus bijenkweeker worden; eene mij geheel onbekende zaak. Er
waren echter in mijne nabijheid verscheidene personen, die zich,
als bijmiddel van bestaan, op de bijenteelt toelegden, bij wie ik
licht hoopte te vinden in wat mij duister was.
\stoptext

[-- Attachment #3: Type: text/plain, Size: 486 bytes --]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: \writetolist spurious space in the first line hereafter
  2011-03-17 10:32 \writetolist spurious space in the first line hereafter Willi Egger
@ 2011-03-17 10:47 ` Wolfgang Schuster
  2011-03-17 12:42   ` Willi Egger
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2011-03-17 10:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 17.03.2011 um 11:32 schrieb Willi Egger:

> Hi all,
> 
> I detected that after issuing \writetolist, that there is a unwanted space in the first line after this command. This occurs when indenting is on and off. 

Add a comment after the last brace, i.e.

  \writetolist[…]{}{…}%

and write the text in the second argument, the first is for the number of the header (in your case nothing) and the second for the text.

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: \writetolist spurious space in the first line hereafter
  2011-03-17 10:47 ` Wolfgang Schuster
@ 2011-03-17 12:42   ` Willi Egger
  0 siblings, 0 replies; 3+ messages in thread
From: Willi Egger @ 2011-03-17 12:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello Wolfgang!

thank you so much for this answer. Thanks to regular expressions it is now solved throughout the whole book.

Willi
On 17 Mar 2011, at 11:47, Wolfgang Schuster wrote:

> 
> Am 17.03.2011 um 11:32 schrieb Willi Egger:
> 
>> Hi all,
>> 
>> I detected that after issuing \writetolist, that there is a unwanted space in the first line after this command. This occurs when indenting is on and off. 
> 
> Add a comment after the last brace, i.e.
> 
>  \writetolist[…]{}{…}%
> 
> and write the text in the second argument, the first is for the number of the header (in your case nothing) and the second for the text.
> 
> 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-03-17 12:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-17 10:32 \writetolist spurious space in the first line hereafter Willi Egger
2011-03-17 10:47 ` Wolfgang Schuster
2011-03-17 12:42   ` Willi Egger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).