Re: [NTG-context] Unexpanded texdefinition produces “Undefined control sequence”

2013-08-26 Thread Hans Hagen

On 8/25/2013 9:09 PM, Marco Patzer wrote:

On 2013–08–25 Wolfgang Schuster wrote:


The \starttexdefintion command looks for the “unexpanded” keyword
only when you apply also a argument but not when the arguments
are missing, i.e.


Thanks for the explanation. Is that a bug or expected behaviour?
I think it's odd that

   \unexpanded\def\foo{}

and

   \starttexdefintion unexpanded foo
   \stoptexdefinition

don't behave the same.


not a bug ... just not implemented (as it's pretty complex to do that 
case efficiently at the tex end)


anyhow, as it seems to be needed, i redid the code and now we have:

\starttext

\starttexdefinition unexpanded test #1
[here #1]
\stoptexdefinition

\test{oeps}

\starttexdefinition global unexpanded test
[here test]
\stoptexdefinition

\test

\scratchcounter=123

\starttexdefinition global unexpanded expanded test #oeps
[here #oeps: \the\scratchcounter]
\stoptexdefinition

\test{oeps}

\stoptext

so, three optional qualifiers (also in that order), so you'd better 
wikify it


Hans


-
  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] TOC: Chapter-titles without page-numbers

2013-08-26 Thread H. Özoguz

Hi there,

in the attachment you see an example of a toc (of some german 
bestseller) I want to reproduce in ConText.


The only problem left, I could not achieve myself, is: How to set the 
chapter-titles in the toc without pagenumbers (as you see in the 
attached jpg)?


Thanks for your help one again!

Best Regards
Huseyin
attachment: inhaltsverzeichnis.jpg___
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***] Indentation for page-numbers

2013-08-26 Thread H. Özoguz

Hello,

how to modify \setuppagenumbering to get indented page-numers?

I use:

\setuppagenumbering[alternative=doublesided,
location={footer,right},
way=bytext, sectionnumber=yes, partnumber=yes]

Is there a key indent or something to get the pagenumbers a small bit 
indented (direction: middle of the page).


Thanks!
Huseyin

___
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] Indent titles

2013-08-26 Thread Eslamica

Hi here,

3rd question today :):
How to indent titles? Should be easy, but could not find it in the wiki.

I use:

\setuphead
 [chapter]
 [style=ChapterFont,
header=empty,
number=no,
page={yes,header,footer,right},
before={{\strut\blank[line]}},
after={\strut\blank[line]},
]

Is there a indent-key or something to indent the chapter-title? 
(Nothing to find about it in the indentation-article in the wiki)


Thanks!
Huseyin
--

*Hüseyin Özoguz
**
Verlag Eslamica -- www.eslamica.de http://www.eslamica.de**
**m-haditec * GmbH Co. KG
Georg-Wulf-Str. 15
D-28199 Bremen
Telefon+49 (0) 421 1611 2763
Fax+49 (0) 421 3331667
e-Mail: h.oezo...@m-haditec.de
www.mhaditec.de http://www.m-haditec.de/


Sitz der Gesellschaft Bremen
Amtsgericht Bremen, HRA 23526
Ust-IdNr.: 237875374

Persönlich haftende Gesellschafterin
m-haditec GmbH
Sitz der Gesellschaft Bremen
Amtsgericht Bremen, HRA 22270
Geschäftsführer:
Dr.-Ing. Yavuz Özoguz
Dr.-Ing. Gürhan Özoguz

Raiffeisen-Volksbank
BLZ: 280 671 70, Kto. Nr.: 711 894 500
IBAN: DE70 2806 7170 0711 8945 00
BIC: GENODEF1GSC

___
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] Typesetting Classical Arabic Poetry

2013-08-26 Thread J. R. Schmid
Hi Idris,

thank you much for your answer and also the attached files!

I've played around with your module and ran into some problems which may
have been due to my inexperiencedness with ConTeXt (rupturing of ligatures,
at least with Scheherazade and inconsistent line height). Marco has been
helping me though, and it looks like he solved those problems while
improving on your module while doing so. He doesn't seem to be done with it
yet and perhaps he'll want to reply himself when he is, so I'll leave it at
that for now :-)

Best regards from Germany,
   Jonathan
___
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] left bracket in string.format()

2013-08-26 Thread Peter Rolf
Hi,

Not sure if this is a bug or intended behaviour. I want to fill a TABLE
row with [number], but the leading left bracket causes some problems
here. I tried the syntax 'print(string.format([%d],10)' in pure lua
and the result is as desired.

%% --
\starttext

\startluacode
context.bTABLE{}
context.bTR()
for i = 1,8 do
context.bTH() context(string.format([%d],i)) context.eTH()
end
context.eTR()
context.eTABLE()
\stopluacode

\stoptext
%% --

gives

[..]
fonts'fallback modern rm 12pt' is loaded
setuperror in line 6, namespace '354', key '1'
setuperror in line 9, namespace '354', key '2'
setuperror in line 12, namespace '354', key '3'
setuperror in line 15, namespace '354', key '4'
setuperror in line 18, namespace '354', key '5'
setuperror in line 21, namespace '354', key '6'
setuperror in line 24, namespace '354', key '7'
setuperror in line 27, namespace '354', key '8'
[..]

and empty TABLE cells. Any help welcome.


Peter
___
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] TOC: Chapter-titles without page-numbers

2013-08-26 Thread Wolfgang Schuster

Am 26.08.2013 um 12:20 schrieb H. Özoguz h.oezo...@mmnetz.de:

 Hi there,
 
 in the attachment you see an example of a toc (of some german bestseller) I 
 want to reproduce in ConText.
 
 The only problem left, I could not achieve myself, is: How to set the 
 chapter-titles in the toc without pagenumbers (as you see in the attached 
 jpg)?

\setuplist[chapter][pagenumber=no]

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] left bracket in string.format()

2013-08-26 Thread Wolfgang Schuster

Am 26.08.2013 um 17:01 schrieb Peter Rolf indi...@gmx.net:

 Hi,
 
 Not sure if this is a bug or intended behaviour. I want to fill a TABLE
 row with [number], but the leading left bracket causes some problems
 here. I tried the syntax 'print(string.format([%d],10)' in pure lua
 and the result is as desired.
 
 %% --
 \starttext
 
 \startluacode
 context.bTABLE{}
 context.bTR()
for i = 1,8 do
context.bTH() context(string.format([%d],i)) context.eTH()
end
 context.eTR()
 context.eTABLE()
 \stopluacode
 
 \stoptext
 %% --
 
 gives
 
 [..]
 fonts'fallback modern rm 12pt' is loaded
 setuperror in line 6, namespace '354', key '1'
 setuperror in line 9, namespace '354', key '2'
 setuperror in line 12, namespace '354', key '3'
 setuperror in line 15, namespace '354', key '4'
 setuperror in line 18, namespace '354', key '5'
 setuperror in line 21, namespace '354', key '6'
 setuperror in line 24, namespace '354', key '7'
 setuperror in line 27, namespace '354', key '8'
 [..]
 
 and empty TABLE cells. Any help welcome.

The \bTH command has a optional argument and when you print [number]
context take this as argument for \bTH. There are different ways to fix this,
one is to pass a empty argument to \bTH, e.g. context.bTH{} or you add \relax
after the command, e.g. context.bTH() context.relax().

BTW: You don’t need string.format because “context([%d],i) is valid input.

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] Indent titles

2013-08-26 Thread Wolfgang Schuster

Am 26.08.2013 um 14:09 schrieb Eslamica i...@eslamica.de:

 Hi here,
 
 3rd question today :):
 How to indent titles? Should be easy, but could not find it in the wiki.
 
 I use:
 
 \setuphead
  [chapter]
  [style=ChapterFont,
 header=empty,
 number=no,
 page={yes,header,footer,right},
 before={{\strut\blank[line]}},
 after={\strut\blank[line]},
 ]
 
 Is there a indent-key or something to indent the chapter-title? (Nothing to 
 find about it in the indentation-article in the wiki)

Can you be more concrete in which way titles should be indented.

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] [***SPAM***] Indentation for page-numbers

2013-08-26 Thread Wolfgang Schuster

Am 26.08.2013 um 13:25 schrieb H. Özoguz h.oezo...@mmnetz.de:

 Hello,
 
 how to modify \setuppagenumbering to get indented page-numers?
 
 I use:
 
 \setuppagenumbering[alternative=doublesided,
location={footer,right},
way=bytext, sectionnumber=yes, partnumber=yes]
 
 Is there a key indent or something to get the pagenumbers a small bit 
 indented (direction: middle of the page).

\define[1]\PagenumberCommand
  {\doifoddpageelse
 {\offset[x=-1cm]{#1}}
 {\offset[x=+1cm]{#1}}}

\setuppagenumbering[alternative=doublesided,location={footer,right},command=\PagenumberCommand]

\starttext
\dorecurse{20}{\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
___


Re: [NTG-context] [***SPAM***] Indentation for page-numbers

2013-08-26 Thread H. Özoguz

\define[1]\PagenumberCommand
   {\doifoddpageelse
  {\offset[x=-1cm]{#1}}
  {\offset[x=+1cm]{#1}}}

\setuppagenumbering[alternative=doublesided,location={footer,right},command=\PagenumberCommand]

\starttext
\dorecurse{20}{\input knuth\par}
\stoptext

Wolfgang


Thanks again Wolfgang, perfect!

Huseyin
___
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] left bracket in string.format()

2013-08-26 Thread Peter Rolf
Am 26.08.2013 17:40, schrieb Wolfgang Schuster:
 
 Am 26.08.2013 um 17:01 schrieb Peter Rolf indi...@gmx.net:
 
 Hi,

 Not sure if this is a bug or intended behaviour. I want to fill a TABLE
 row with [number], but the leading left bracket causes some problems
 here. I tried the syntax 'print(string.format([%d],10)' in pure lua
 and the result is as desired.

 %% --
 \starttext

 \startluacode
 context.bTABLE{}
 context.bTR()
for i = 1,8 do
context.bTH() context(string.format([%d],i)) context.eTH()
end
 context.eTR()
 context.eTABLE()
 \stopluacode

 \stoptext
 %% --

 gives

 [..]
 fonts'fallback modern rm 12pt' is loaded
 setuperror in line 6, namespace '354', key '1'
 setuperror in line 9, namespace '354', key '2'
 setuperror in line 12, namespace '354', key '3'
 setuperror in line 15, namespace '354', key '4'
 setuperror in line 18, namespace '354', key '5'
 setuperror in line 21, namespace '354', key '6'
 setuperror in line 24, namespace '354', key '7'
 setuperror in line 27, namespace '354', key '8'
 [..]

 and empty TABLE cells. Any help welcome.
 
 The \bTH command has a optional argument and when you print [number]
 context take this as argument for \bTH. There are different ways to fix this,
 one is to pass a empty argument to \bTH, e.g. context.bTH{} or you add 
 \relax
 after the command, e.g. context.bTH() context.relax().
 
 BTW: You don’t need string.format because “context([%d],i) is valid input.


Thanks Wolfgang for the detailed answer! :-)


 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
___

[NTG-context] Minimal word-distance?

2013-08-26 Thread H. Özoguz
Beyond the possibility to influence the tolerance by \setuptolerance, is 
it possible to declare explicit the minimal allowed word-distance? I 
ask, because in some cases the distance between consecutive words is too 
low (already using \setuptolerance[verstrict]).


Thanks.
Huseyin
___
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] Typesetting Classical Arabic Poetry

2013-08-26 Thread Marco Patzer
On 2013–08–26 J. R. Schmid wrote:

 I've played around with your module and ran into some problems
 which may have been due to my inexperiencedness with ConTeXt
 (rupturing of ligatures, at least with Scheherazade and
 inconsistent line height). Marco has been helping me though, and
 it looks like he solved those problems while improving on your
 module while doing so. He doesn't seem to be done with it yet and
 perhaps he'll want to reply himself when he is, so I'll leave it
 at that for now :-)

I don't do any Arabic typesetting myself, but I wrapped Idris' idea
into a nicer interface¹. Since I don't use it myself, I'll leave it
like that until I receive feedback or improvement suggestions.
There's no documentation yet, as I don't know how useful this is in
the first place.

In contrast to Latin script, justifying Arabic text is not solely
achieved by varying the inter-word space, but also by means of
elongating particular glyps². After having read Idris' article³ it
seems like this is a font feature. However, I have no idea which
particular feature is responsible for the elongation and how many
fonts actually have it. I could not find the mentioned Husayni font
anywhere, which seems to be able to do this. So for the time being
the justification is only done by varying the inter-word space.

Arabic is beautiful!

Marco

¹ https://github.com/mpfusion/context-arabic-verse
² http://en.wikipedia.org/wiki/Kashida
³ https://www.tug.org/TUGboat/tb31-2/tb98hamid.pdf


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] Minimal word-distance?

2013-08-26 Thread Marco Patzer
On 2013–08–26 H. Özoguz wrote:

 is it possible to declare explicit the minimal allowed
 word-distance?

\starttext
  \spaceskip=1ex plus 1ex minus .2ex
  \input knuth
\stoptext

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
___

[NTG-context] [***SPAM***] Re: Minimal word-distance?

2013-08-26 Thread H. Özoguz

\starttext
   \spaceskip=1ex plus 1ex minus .2ex
   \input knuth
\stoptext

Marco


That simply overrides protrusion and justification, forcing a constant 
distance.


The question is, only to add an minimal distance, wich has not to be 
undercut while protrusing and justifying.


Huseyin

___
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] [***SPAM***] Re: Minimal word-distance?

2013-08-26 Thread Marco Patzer
On 2013–08–26 H. Özoguz wrote:

 \starttext
\spaceskip=1ex plus 1ex minus .2ex
\input knuth
 \stoptext
 
 Marco
 
 That simply overrides protrusion and justification,

The following text has protrusion and is justified.

\setuplayout [width=6cm]
\definefontfeature [default] [default] [protrusion=pure]
\setupalign [hanging]
\showframe
\starttext
  \spaceskip=1ex plus 1ex minus .2ex
  \input knuth
\stoptext

 forcing a constant distance.

If you provide stretch and shrink the distance is not constant.

 The question is, only to add an minimal distance, wich has not to be
 undercut while protrusing and justifying.

Example please

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] Minimal word-distance?

2013-08-26 Thread H. Özoguz

The following text has protrusion and is justified.

\setuplayout [width=6cm]
\definefontfeature [default] [default] [protrusion=pure]
\setupalign [hanging]
\showframe
\starttext
   \spaceskip=1ex plus 1ex minus .2ex
   \input knuth
\stoptext

/  forcing a constant distance.
/
If you provide stretch and shrink the distance is not constant.
Thank you! I dont understand this command, what does 1ex plus 1ex minus 
.2ex  excactly mean? Does it mean the consecutive distance is element 
of the interval [0,8ex;2ex] or what?



/  The question is, only to add an minimal distance, wich has not to be
//  undercut while protrusing and justifying.
/
Example please

Marco


I am asking for the example :) Or what do you mean. Your example above is 
exactly, what I was
searching for. Only the syntax have to be understood.

Huseyin



___
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] Typesetting Classical Arabic Poetry

2013-08-26 Thread Hans Hagen

On 8/26/2013 8:06 PM, Marco Patzer wrote:


In contrast to Latin script, justifying Arabic text is not solely
achieved by varying the inter-word space, but also by means of
elongating particular glyps². After having read Idris' article³ it
seems like this is a font feature. However, I have no idea which
particular feature is responsible for the elongation and how many
fonts actually have it. I could not find the mentioned Husayni font
anywhere, which seems to be able to do this. So for the time being
the justification is only done by varying the inter-word space.


there is a special mechanism for that in context already for some years 
but it works best with arabic fonts that have an extensive featureset 
like the upcoming husayni ... once that font is ready idris will wrap up 
the systematic approach related to this font (as it depends on featuresets)


Hans

-
  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] [***SPAM***] Re: Minimal word-distance?

2013-08-26 Thread Peter Münster
On Mon, Aug 26 2013, H. Özoguz wrote:

 The question is, only to add an minimal distance, wich has not to be undercut

  \spaceskip=1ex plus 1ex minus 0ex

or just

  \spaceskip=1ex plus 1ex

-- 
   Peter
___
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] Minimal word-distance?

2013-08-26 Thread Marco Patzer
On 2013–08–26 H. Özoguz wrote:

 The following text has protrusion and is justified.
 
 \setuplayout [width=6cm]
 \definefontfeature [default] [default] [protrusion=pure]
 \setupalign [hanging]
 \showframe
 \starttext
\spaceskip=1ex plus 1ex minus .2ex
\input knuth
 \stoptext
 
 /  forcing a constant distance.
 /
 If you provide stretch and shrink the distance is not constant.
 Thank you! I dont understand this command, what does 1ex plus 1ex
 minus .2ex  excactly mean?

It's the inter-word glue, which is usually a property of the font
and is usually not altered by the user. However, \spaceskip is used
for e.g. ragged text and special alignments.

Read up about glue in your favourite TeX reference. \spaceskip is
covered in TeX by Topic¹, chapter 20. The first value is the
“natural” size. If necessary it can stretch or shrink by the given
amount which can be zero.

 I am asking for the example :)

You said it doesn't justify after I sent you a minimal example which
was justified. That's what I was talking about.

Marco

¹ http://www.eijkhout.net/texbytopic/texbytopic.html


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
___

[NTG-context] flow text around graphic: lower right

2013-08-26 Thread Lars Huttar
Hi all,
We have the small self-contained example below, in which text flows
around a graphic.
The graphic is aligned with the upper-left corner of the text paragraph
(despite \setuphanging[location=right]). We would very much like to have
the graphic align with the lower right corner of the paragraph.
Is there any way to do that?

\definecolumnset[TwoColumns][n=2]

\setupexternalfigures[location={local,default}]

\setuphanging[location=right]


\starttext

\startcolumnset[TwoColumns]


\dorecurse{3}{

\starthangaround{\externalfigure[cow][width=2cm]}

I want this cow to be in the lower right corner of the paragraph.

\input knuth

\stophangaround

}


\stopcolumnset

\stoptext



Versions: We're using mkii. But we get the same results for mkii and
mkiv on the example above.


Thanks,
Lars

___
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] Unexpanded texdefinition produces “Undefined control sequence”

2013-08-26 Thread Marco Patzer
On 2013–08–26 Hans Hagen wrote:

 not a bug ... just not implemented (as it's pretty complex to do
 that case efficiently at the tex end)
 
 anyhow, as it seems to be needed, i redid the code and now we have:
 
 […]
 
 so, three optional qualifiers (also in that order), so you'd better
 wikify it

  http://wiki.contextgarden.net/starttexdefinition

Thanks for the implementation.

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
___