[NTG-context] Indentation in headings

2024-09-14 Thread Kirill Davidov
Greetings,

As per Russian GOST standards, numbered section headings are flush left
and start with the paragraph indent. Is there a proper way to indent a
section heading? The code simulates what I want visually, but it
unfortunately causes the heading to poke out into the margins. That can
be troublesome if the title is long enough.

Example code to tinker with:

\setupindenting[yes, 2.5em, first]
\setuphead[section][
    style=\bf,
    align=flushleft,
    distance=1em,
    indentnext=yes,
]

\showframe

\startdocument

\startsection[title=Foo]

\input dijkstra

\stopsection

\startsection[title=Very long section title that makes you question the
author's writing capabilities]

\input dijkstra

\stopsection

\setuphead[section][
    style=\bf,
    align=flushleft,
    distance=1em,
    indentnext=yes,
    before=\blank[2*big]\indentation,
]

\startsection[title=Foo]

\input dijkstra

\stopsection

\startsection[title=Very long section title that makes you question the
author's writing capabilities]

\input dijkstra

\stopsection

\stopdocument

___
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] Indentation inside \framed won't go away

2021-10-21 Thread Ramkumar KB via ntg-context
FV / Massi / Hans,

Thank you so much for the valuable tips.

I will find a suitable place in the Wiki and add this information / nugget.

best regards,
Ramkumar

On Thu, Oct 21, 2021 at 5:10 PM Hans Hagen  wrote:

> On 10/21/2021 10:32 AM, Ramkumar KB via ntg-context wrote:
> > Hello,
> >
> > I have this nagging issue of indentation (in the 1st line) showing up
> > inside \framed in spite of all the commands to skip indentation (see
> > attached PDF).
> >
> > It appears that *\setupindenting[no]* is not playing any role here and
> > some other parameter is overriding  this.
> >
> > Any tips would be appreciated.
> >
> > best regards,
> > Ramkumar
> >
> > \definepapersize[a4-portrait][A4][A4]
> > \setuppapersize[a4-portrait]
> >
> \setuplayout[topspace=10mm,backspace=15mm,header=50pt,footer=50pt,textwidth=165mm,height=middle,width=middle]
> >
> > \starttext
> >
> > \offset[x=\dimexpr11mm\relax,y=\dimexpr23mm\relax]
> > {\framed[frame=on,offset=none,align=flushleft]
> > {
> > % \startparagraph[align=high]
> > \setupindenting[no]
> > Chief Vitalstatistix\\
> > Getafix\\
> > Dogmatix\\
> > Asterix\\
> > Obelix\\
> > }
> > }
> > \stoptext
> you get what you ask for: spaces
>
> {\framed[frame=on,offset=none,align=flushleft]
> {%
> \setupindenting[no]%
> Chief Vitalstatistix\\
>
> or
>
> \offset[x=11mm,y=23mm] \bgroup
>  \framed[frame=on,offset=none,align=flushleft] \bgroup
>  \setupindenting[no]%
>  Chief Vitalstatistix\\
>  Getafix\\
>  Dogmatix\\
>  Asterix\\
>  Obelix\\
>  \egroup
> \egroup
>
>
>
> -
>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] Indentation inside \framed won't go away

2021-10-21 Thread Hans Hagen via ntg-context

On 10/21/2021 10:32 AM, Ramkumar KB via ntg-context wrote:

Hello,

I have this nagging issue of indentation (in the 1st line) showing up 
inside \framed in spite of all the commands to skip indentation (see 
attached PDF).


It appears that *\setupindenting[no]* is not playing any role here and 
some other parameter is overriding  this.


Any tips would be appreciated.

best regards,
Ramkumar

\definepapersize[a4-portrait][A4][A4]
\setuppapersize[a4-portrait]
\setuplayout[topspace=10mm,backspace=15mm,header=50pt,footer=50pt,textwidth=165mm,height=middle,width=middle]

\starttext

\offset[x=\dimexpr11mm\relax,y=\dimexpr23mm\relax]
{\framed[frame=on,offset=none,align=flushleft]
{
% \startparagraph[align=high]
\setupindenting[no]
Chief Vitalstatistix\\
Getafix\\
Dogmatix\\
Asterix\\
Obelix\\
}
}
\stoptext

you get what you ask for: spaces

{\framed[frame=on,offset=none,align=flushleft]
{%
\setupindenting[no]%
Chief Vitalstatistix\\

or

\offset[x=11mm,y=23mm] \bgroup
\framed[frame=on,offset=none,align=flushleft] \bgroup
\setupindenting[no]%
Chief Vitalstatistix\\
Getafix\\
Dogmatix\\
Asterix\\
Obelix\\
\egroup
\egroup



-
  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] Indentation inside \framed won't go away

2021-10-21 Thread mf via ntg-context

\definepapersize[a4-portrait][A4][A4]
\setuppapersize[a4-portrait]
\setuplayout[topspace=10mm,backspace=15mm,header=50pt,footer=50pt,textwidth=165mm,height=middle,width=middle]

\starttext

\offset[x=\dimexpr11mm\relax,y=\dimexpr23mm\relax]
{\framed[frame=on,offset=none,align=flushleft]
{% percent sign here, otherwise you get a space
Chief Vitalstatistix\\
Getafix\\
Dogmatix\\
Asterix\\
Obelix\\
}
}
\stoptext

Massi

Il 21/10/21 10:32, Ramkumar KB via ntg-context ha scritto:

Hello,

I have this nagging issue of indentation (in the 1st line) showing up 
inside \framed in spite of all the commands to skip indentation (see 
attached PDF).


It appears that *\setupindenting[no]* is not playing any role here and 
some other parameter is overriding  this.


Any tips would be appreciated.

best regards,
Ramkumar

\definepapersize[a4-portrait][A4][A4]
\setuppapersize[a4-portrait]
\setuplayout[topspace=10mm,backspace=15mm,header=50pt,footer=50pt,textwidth=165mm,height=middle,width=middle]

\starttext

\offset[x=\dimexpr11mm\relax,y=\dimexpr23mm\relax]
{\framed[frame=on,offset=none,align=flushleft]
{
% \startparagraph[align=high]
\setupindenting[no]
Chief Vitalstatistix\\
Getafix\\
Dogmatix\\
Asterix\\
Obelix\\
}
}
\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://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] Indentation inside \framed won't go away

2021-10-21 Thread fv leung via ntg-context
I use

\removeunwantedspaces

in this case.

Ramkumar KB via ntg-context  於 2021年10月21日 週四 下午4:32寫道:

> Hello,
>
> I have this nagging issue of indentation (in the 1st line) showing up
> inside \framed in spite of all the commands to skip indentation (see
> attached PDF).
>
> It appears that *\setupindenting[no]* is not playing any role here and
> some other parameter is overriding  this.
>
> Any tips would be appreciated.
>
> best regards,
> Ramkumar
>
> \definepapersize[a4-portrait][A4][A4]
> \setuppapersize[a4-portrait]
> \setuplayout
> [topspace=10mm,backspace=15mm,header=50pt,footer=50pt,textwidth=165mm,height=middle,width=middle]
>
> \starttext
>
> \offset[x=\dimexpr11mm\relax,y=\dimexpr23mm\relax]
> {\framed[frame=on,offset=none,align=flushleft]
> {
> % \startparagraph[align=high]
> \setupindenting[no]
> Chief Vitalstatistix\\
> Getafix\\
> Dogmatix\\
> Asterix\\
> Obelix\\
> }
> }
> \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://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] Indentation inside \framed won't go away

2021-10-21 Thread Ramkumar KB via ntg-context
Hello,

I have this nagging issue of indentation (in the 1st line) showing up
inside \framed in spite of all the commands to skip indentation (see
attached PDF).

It appears that *\setupindenting[no]* is not playing any role here and some
other parameter is overriding  this.

Any tips would be appreciated.

best regards,
Ramkumar

\definepapersize[a4-portrait][A4][A4]
\setuppapersize[a4-portrait]
\setuplayout
[topspace=10mm,backspace=15mm,header=50pt,footer=50pt,textwidth=165mm,height=middle,width=middle]

\starttext

\offset[x=\dimexpr11mm\relax,y=\dimexpr23mm\relax]
{\framed[frame=on,offset=none,align=flushleft]
{
% \startparagraph[align=high]
\setupindenting[no]
Chief Vitalstatistix\\
Getafix\\
Dogmatix\\
Asterix\\
Obelix\\
}
}
\stoptext


indent_in_framed.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Indentation after \placefigure

2020-11-10 Thread Sylvain Hubert
On Tue, 10 Nov 2020 at 18:05, Aditya Mahajan  wrote:

> On Tue, 10 Nov 2020, mf wrote:
>
> > Il 10/11/20 09:42, Sylvain Hubert ha scritto:
> > > Dear List,
> > >
> > > Does anyone know how to indent the paragraph beneath \placefigure in
> the
> > > following example?
> > >
> > >  \indenting[2em]
> > >  \setupindenting[yes]
> > >
> > >  \starttext
> > >
> > >  \dorecurse{50}{a b c }
> > >
> > >  \placefigure[here,none][indentnext=yes]{}{
> > >  \startMPcode
> > >  draw fullcircle scaled 1cm;
> > >  \stopMPcode
> > >  }
> > >
> > >  \dorecurse{50}{d e f } % not indented
> > >
> > >  \dorecurse{50}{g h i }
> > >  \stoptext
> > >
> >
> > The second bracket group of \placefigure is for references.
> > Instead of
> >
> > \placefigure[here,none][indentnext=yes]{}{...
> >
> > write
> >
> > \setupfloat[figure][indentnext=yes]
> > \placefigure[here,none]{}{...
> >
> > That way you enable indentation after every figure.
>
> If you want to change the behavior for a particular figure, you can also
> use the \start...stop variant:
>
> \startplacefigure[location={here,none}, indentnext=yes]
>
> \stopplacefigure
>

Thanks for the information, Aditya!

Sylvain
___
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] Indentation after \placefigure

2020-11-10 Thread Aditya Mahajan
On Tue, 10 Nov 2020, mf wrote:

> Il 10/11/20 09:42, Sylvain Hubert ha scritto:
> > Dear List,
> > 
> > Does anyone know how to indent the paragraph beneath \placefigure in the 
> > following example?
> > 
> >      \indenting[2em]
> >      \setupindenting[yes]
> > 
> >      \starttext
> > 
> >      \dorecurse{50}{a b c }
> > 
> >      \placefigure[here,none][indentnext=yes]{}{
> >      \startMPcode
> >      draw fullcircle scaled 1cm;
> >      \stopMPcode
> >      }
> > 
> >      \dorecurse{50}{d e f } % not indented
> > 
> >      \dorecurse{50}{g h i }
> >      \stoptext
> > 
> 
> The second bracket group of \placefigure is for references.
> Instead of
> 
> \placefigure[here,none][indentnext=yes]{}{...
> 
> write
> 
> \setupfloat[figure][indentnext=yes]
> \placefigure[here,none]{}{...
> 
> That way you enable indentation after every figure.

If you want to change the behavior for a particular figure, you can also use 
the \start...stop variant:

\startplacefigure[location={here,none}, indentnext=yes]
   
\stopplacefigure

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] Indentation after \placefigure

2020-11-10 Thread Sylvain Hubert
On Tue, 10 Nov 2020 at 10:05, mf  wrote:

> Il 10/11/20 09:42, Sylvain Hubert ha scritto:
> > Dear List,
> >
> > Does anyone know how to indent the paragraph beneath \placefigure in the
> > following example?
> >
> >  \indenting[2em]
> >  \setupindenting[yes]
> >
> >  \starttext
> >
> >  \dorecurse{50}{a b c }
> >
> >  \placefigure[here,none][indentnext=yes]{}{
> >  \startMPcode
> >  draw fullcircle scaled 1cm;
> >  \stopMPcode
> >  }
> >
> >  \dorecurse{50}{d e f } % not indented
> >
> >  \dorecurse{50}{g h i }
> >  \stoptext
> >
>
> The second bracket group of \placefigure is for references.
> Instead of
>
> \placefigure[here,none][indentnext=yes]{}{...
>
> write
>
> \setupfloat[figure][indentnext=yes]
> \placefigure[here,none]{}{...
>
> That way you enable indentation after every figure.
>
> Massi
>

Hi Massi,

It works! Thanks for the help!

Sylvain
___
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] Indentation after \placefigure

2020-11-10 Thread mf

Il 10/11/20 09:42, Sylvain Hubert ha scritto:

Dear List,

Does anyone know how to indent the paragraph beneath \placefigure in the 
following example?


     \indenting[2em]
     \setupindenting[yes]

     \starttext

     \dorecurse{50}{a b c }

     \placefigure[here,none][indentnext=yes]{}{
     \startMPcode
     draw fullcircle scaled 1cm;
     \stopMPcode
     }

     \dorecurse{50}{d e f } % not indented

     \dorecurse{50}{g h i }
     \stoptext



The second bracket group of \placefigure is for references.
Instead of

\placefigure[here,none][indentnext=yes]{}{...

write

\setupfloat[figure][indentnext=yes]
\placefigure[here,none]{}{...

That way you enable indentation after every figure.

Massi
___
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] Indentation after \placefigure

2020-11-10 Thread Sylvain Hubert
Dear List,

Does anyone know how to indent the paragraph beneath \placefigure in the
following example?

\indenting[2em]
\setupindenting[yes]

\starttext

\dorecurse{50}{a b c }

\placefigure[here,none][indentnext=yes]{}{
\startMPcode
draw fullcircle scaled 1cm;
\stopMPcode
}

\dorecurse{50}{d e f } % not indented

\dorecurse{50}{g h i }
\stoptext

Thanks!

Best,
Sylvain
___
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] indentation of item separators

2020-11-09 Thread Sylvain Hubert
On Mon, 9 Nov 2020 at 20:35, Pablo Rodriguez  wrote:

> On 11/9/20 8:09 PM, Sylvain Hubert wrote:
> > Dear List,
> >
> > In the following example, what is indented is the text instead of the
> > numbers.
> > [...]
> > Does anyone know how to indent the whole item group altogether?
>
> Hi Sylvain,
>
> margin is the option here, not indenting.
>
> You can see the difference:
>
>   \showframe\showgrid
>   \starttext
>   \startitemize[n, packed][indenting=2em]
>   \item abc
>   \stopitemize
>   \startitemize[n, packed][margin=2em]
>   \item def
>   \stopitemize
>   \startitemize[n, packed][margin=2em,indenting=2em]
>   \item ghi
>   \stopitemize
>   \stoptext
>
> I hope it helps,
>

Thanks again for the help, Pablo!

Sylvain
___
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] indentation of item separators

2020-11-09 Thread Pablo Rodriguez
On 11/9/20 8:09 PM, Sylvain Hubert wrote:
> Dear List,
>
> In the following example, what is indented is the text instead of the
> numbers.
> [...]
> Does anyone know how to indent the whole item group altogether?

Hi Sylvain,

margin is the option here, not indenting.

You can see the difference:

  \showframe\showgrid
  \starttext
  \startitemize[n, packed][indenting=2em]
  \item abc
  \stopitemize
  \startitemize[n, packed][margin=2em]
  \item def
  \stopitemize
  \startitemize[n, packed][margin=2em,indenting=2em]
  \item ghi
  \stopitemize
  \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] indentation of item separators

2020-11-09 Thread Sylvain Hubert
Dear List,

In the following example, what is indented is the text instead of the
numbers.

\starttext
\startitemize[n, packed][indenting=2em]
\item abc
\item def
\item ghi
\stopitemize
\stoptext

Does anyone know how to indent the whole item group altogether?

Thanks!

Best,
Sylvain
___
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] Indentation problem inside enumeration

2020-01-02 Thread Mikael P. Sundqvist
On Tue, Dec 17, 2019 at 8:39 AM Mikael P. Sundqvist 
wrote:

> Hi!
>
> I've met a strange problem with indentation in consecutive enumerations.
> It seems to me that if
>
> 1) the first enumeration uses indentnext=no
> AND
> 2) the next enumeration uses a background
>
> then the second(?) paragraph of the second enumeration is not indented.
>
> Here is a small example (see what lines to comment to avoid the problem).
>
> %%%
> \defineenumeration[losning][
> text=Lösning,
> title=yes,
> alternative=serried,
> width=fit,
> number=no,
> headstyle={\em},
> titlestyle=,
> indentnext=no,% another way to get indentation is to comment this line
> indenting={yes,medium},
> ]
>
> \defineframedtext[anmärkningsbakgrunden][
> width=\textwidth,
> background=color,
> backgroundcolor=gray,
> ]
>
> \defineenumeration[anmarkning][
> text=Anmärkning,
> title=yes,
> headstyle={\definedfont[Bold*default]\WORD},
> alternative=serried,
> width=fit,
> number=no,
> prefix=no,
> indentnext=no,
> indenting={yes,medium},
> before={\startanmärkningsbakgrunden},% if these two lines are commented
> then
> after={\stopanmärkningsbakgrunden},% the indentation works
> ]
>
> \starttext
>
> \startlosning
> This environment destroys indentation in the next.
> \stoplosning
>
> \startanmarkning
> This is just a first paragraph.
>
> This paragraph should be indented.
>
> This paragraph is always indented.
> \stopanmarkning
> \stoptext
> %%%
>
> (This is a stripped down example with some settings removed. But it shows
> the point.)
>
> Am I doing something wrong? The resulting pdf is attached.
>
> /Mikael
>
> PS I think I saw this problem both with mkiv and lmtx.
>
>
Bump. (Am I doing something wrong?)

/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] Indentation problem inside enumeration

2019-12-16 Thread Mikael P. Sundqvist
Hi!

I've met a strange problem with indentation in consecutive enumerations. It
seems to me that if

1) the first enumeration uses indentnext=no
AND
2) the next enumeration uses a background

then the second(?) paragraph of the second enumeration is not indented.

Here is a small example (see what lines to comment to avoid the problem).

%%%
\defineenumeration[losning][
text=Lösning,
title=yes,
alternative=serried,
width=fit,
number=no,
headstyle={\em},
titlestyle=,
indentnext=no,% another way to get indentation is to comment this line
indenting={yes,medium},
]

\defineframedtext[anmärkningsbakgrunden][
width=\textwidth,
background=color,
backgroundcolor=gray,
]

\defineenumeration[anmarkning][
text=Anmärkning,
title=yes,
headstyle={\definedfont[Bold*default]\WORD},
alternative=serried,
width=fit,
number=no,
prefix=no,
indentnext=no,
indenting={yes,medium},
before={\startanmärkningsbakgrunden},% if these two lines are commented then
after={\stopanmärkningsbakgrunden},% the indentation works
]

\starttext

\startlosning
This environment destroys indentation in the next.
\stoplosning

\startanmarkning
This is just a first paragraph.

This paragraph should be indented.

This paragraph is always indented.
\stopanmarkning
\stoptext
%%%

(This is a stripped down example with some settings removed. But it shows
the point.)

Am I doing something wrong? The resulting pdf is attached.

/Mikael

PS I think I saw this problem both with mkiv and lmtx.


debugging.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Indentation in multiline footnote

2019-10-05 Thread Javier Villate
Hello,

This is my first post.

I want to get indented paragraphs in the footnotes that contain several 
paragraphs. I now have indented paragraphs with this setting:

\setupnotation
[footnote]
[alternative=left, hang=1, indentnext=yes]

Thanks.

Javier
___
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] Indentation after formula

2016-09-14 Thread Hans Åberg

> On 14 Sep 2016, at 15:43, Wolfgang Schuster  
> wrote:
> 
>> Hans Åberg 14. September 2016 um 15:39
>> 
>> OK. Thanks.
>> 
>> There is both \setupformulas and \setupformula. Are they the same?
> Yes.

Great. :-)


___
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] Indentation after formula

2016-09-14 Thread Wolfgang Schuster

Hans Åberg 
14. September 2016 um 15:39

OK. Thanks.

There is both \setupformulas and \setupformula. Are they the same?

Yes.

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] Indentation after formula

2016-09-14 Thread Hans Åberg

> On 14 Sep 2016, at 15:24, Wolfgang Schuster  
> wrote:
> 
>> Hans Åberg 14. September 2016 um 15:20
>> Looks like a bug:
>> 
>> If there is no text immediately following a formula, the following paragraph 
>> is not treated as such, but as the text following it.
> \setupformula[indentnext=auto]

OK. Thanks.

There is both \setupformulas and \setupformula. Are they the same?



___
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] Indentation after formula

2016-09-14 Thread Wolfgang Schuster

Hans Åberg 
14. September 2016 um 15:20
Looks like a bug:

If there is no text immediately following a formula, the following 
paragraph is not treated as such, but as the text following it.

\setupformula[indentnext=auto]

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] Indentation after formula

2016-09-14 Thread Hans Åberg
Looks like a bug:

If there is no text immediately following a formula, the following paragraph is 
not treated as such, but as the text following it.


\setupbodyfont[xits,10pt]

\setupmathematics[integral=nolimits, lcgreek=normal, default=normal]

\setupindenting[yes,medium,next]

\starttext

Formula without following text
\startformula
  e^{i𝛼} = \cos 𝛼 + i\sin 𝛼
\stopformula

New paragraph, but not indented.

Formula with following text
\startformula
  e^{i𝛼} = \cos 𝛼 + i\sin 𝛼
\stopformula
ends here.

New paragraph; indented.

\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] Indentation after margin float with caption

2016-09-07 Thread Aditya Mahajan

On Tue, 6 Sep 2016, Mikael P. Sundqvist wrote:


\unprotect
\def\page_one_place_float_auto
{\page_one_place_float_otherwise\nonoindentation}
\def\page_one_place_float_bottom
{\page_one_place_float_otherwise\nonoindentation}
\def\page_one_place_float_margin
{\page_margin_blocks_process_float\nonoindentation}
\def\page_one_place_float_leftmargin
{\page_one_place_float_side_indeed\page_sides_process_float_leftmargin\nonoindentation}
\def\page_one_place_float_rightmargin{\page_one_place_float_side_indeed\page_sides_process_float_rightmargin\nonoindentation}
\protect


Actually, this should be:


\unprotect
\def\page_one_place_float_auto 
{\page_one_place_float_otherwise\useindentnextparameter\floatparameter}
\def\page_one_place_float_bottom 
{\page_one_place_float_otherwise\useindentnextparameter\floatparameter}
\def\page_one_place_float_margin 
{\page_margin_blocks_process_float\useindentnextparameter\floatparameter}
\def\page_one_place_float_leftmargin 
{\page_one_place_float_side_indeed\page_sides_process_float_leftmargin\useindentnextparameter\floatparameter}

\def\page_one_place_float_rightmargin{\page_one_place_float_side_indeed\page_sides_process_float_rightmargin\useindentnextparameter\floatparameter}
\protect

so that indentation is not forced, rather depends on indentnext key.

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] Indentation after margin float with caption

2016-09-06 Thread Aditya Mahajan

On Tue, 6 Sep 2016, Wolfgang Schuster wrote:


 Mikael P. Sundqvist 
 6. September 2016 um 21:07

 Dear all,

 since I got no answer here I cross posted on stackexchange (see
 http://tex.stackexchange.com/q/328147/52406). Now, I got a solution to
 this from Aditya. It seems that it is not yet clear to me (or Aditya,
 as far as I understand from the reply) which float placements that
 respects the \setupfloats[indentnext=yes] and which not. Or more
 importantly, why.

 To make this email thread more complete, the solution of Aditya adds

 \unprotect
 \def\page_one_place_float_auto
 {\page_one_place_float_otherwise\nonoindentation}
 \def\page_one_place_float_bottom
 {\page_one_place_float_otherwise\nonoindentation}
 \def\page_one_place_float_margin
 {\page_margin_blocks_process_float\nonoindentation}
 \def\page_one_place_float_leftmargin
 
{\page_one_place_float_side_indeed\page_sides_process_float_leftmargin\nonoindentation}
 
\def\page_one_place_float_rightmargin{\page_one_place_float_side_indeed\page_sides_process_float_rightmargin\nonoindentation}
 \protect
When backwards compatiblity is a reason for not changing this adding a hook 
can be solution, e.g.


-\def\page_one_place_float_auto   {\page_one_place_float_otherwise}
+\def\page_one_place_float_auto 
{\page_one_place_float_otherwise\rootfloatparameter\c!next}


which can be used with \setupfloat[next=\indentation]


In the move to MkII to MkIV, there have been many changes that are not 
backward compatible. So, I am not in favor of adding a new key when we 
already have an indentnext key just for the sake of backward 
compatibility.


It will be nice if all the location alternatives in setupfloat honored the 
indentnext key. It is really awkaward that when indentnext=yes (or auto) 
location=top and location=bottom behave differently.


If backward compatibility is really important, we could add a mechanism to 
control the indentnext key for each location; but that would add too much 
complexity to the code for very little benefit. If one wants to mix floats 
that indent the next paragraph with floats that don't indent the next 
paragraph, it is possible to define different types of floats (with the 
same counters and lists) such that indentnext=yes for one type and 
indentnext=no for the other.


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] Indentation after margin float with caption

2016-09-06 Thread Wolfgang Schuster

Mikael P. Sundqvist 
6. September 2016 um 21:07

Dear all,

since I got no answer here I cross posted on stackexchange (see
http://tex.stackexchange.com/q/328147/52406). Now, I got a solution to
this from Aditya. It seems that it is not yet clear to me (or Aditya,
as far as I understand from the reply) which float placements that
respects the \setupfloats[indentnext=yes] and which not. Or more
importantly, why.

To make this email thread more complete, the solution of Aditya adds

\unprotect
\def\page_one_place_float_auto
{\page_one_place_float_otherwise\nonoindentation}
\def\page_one_place_float_bottom
{\page_one_place_float_otherwise\nonoindentation}
\def\page_one_place_float_margin
{\page_margin_blocks_process_float\nonoindentation}
\def\page_one_place_float_leftmargin
{\page_one_place_float_side_indeed\page_sides_process_float_leftmargin\nonoindentation}
\def\page_one_place_float_rightmargin{\page_one_place_float_side_indeed\page_sides_process_float_rightmargin\nonoindentation}
\protect
When backwards compatiblity is a reason for not changing this adding a 
hook can be solution, e.g.


-\def\page_one_place_float_auto   {\page_one_place_float_otherwise}
+\def\page_one_place_float_auto   
{\page_one_place_float_otherwise\rootfloatparameter\c!next}


which can be used with \setupfloat[next=\indentation]

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] Indentation after margin float with caption

2016-09-06 Thread Mikael P. Sundqvist
On Fri, Sep 2, 2016 at 9:47 AM, Mikael P. Sundqvist  wrote:
> Dear list,
>
> is it possible to have a margin figure with caption, and automatically
> have the next paragraph indented? Look at the example below (pdf
> result attached). If I add the none argument to the float, then the
> next paragraph is indented. Otherwise not. Is it a bug or a feature?
>
> Best regards, Mikael
>
> \setupindenting[yes,medium]
>
> \setupfloats[indentafter=yes]
>
> \starttext
>
> \input tufte
>
> \placefigure[outermargin,middle]{}{\blackrule[width=1cm,height=1cm]}
>
> This should be indented, but it is not! \input tufte
>
> \input tufte
>
> \placefigure[outermargin,middle,none]{}{\blackrule[width=1cm,height=1cm]}
>
> This should be indented, and it is! But I want the caption. \input tufte
> \stoptext

Dear all,

since I got no answer here I cross posted on stackexchange (see
http://tex.stackexchange.com/q/328147/52406). Now, I got a solution to
this from Aditya. It seems that it is not yet clear to me (or Aditya,
as far as I understand from the reply) which float placements that
respects the \setupfloats[indentnext=yes] and which not. Or more
importantly, why.

To make this email thread more complete, the solution of Aditya adds

\unprotect
\def\page_one_place_float_auto
{\page_one_place_float_otherwise\nonoindentation}
\def\page_one_place_float_bottom
{\page_one_place_float_otherwise\nonoindentation}
\def\page_one_place_float_margin
{\page_margin_blocks_process_float\nonoindentation}
\def\page_one_place_float_leftmargin
{\page_one_place_float_side_indeed\page_sides_process_float_leftmargin\nonoindentation}
\def\page_one_place_float_rightmargin{\page_one_place_float_side_indeed\page_sides_process_float_rightmargin\nonoindentation}
\protect

(this kind of solution was also suggested in 2011 in an old thread,
see https://mailman.ntg.nl/pipermail/ntg-context/2011/058152.html)

/Mikael

PS I have a couple of more questions on the list that has not got any
response. I hope you don't mind me cross posting on stackexchange in
these cases.
___
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] Indentation after margin float with caption

2016-09-02 Thread Mikael P. Sundqvist
Dear list,

is it possible to have a margin figure with caption, and automatically
have the next paragraph indented? Look at the example below (pdf
result attached). If I add the none argument to the float, then the
next paragraph is indented. Otherwise not. Is it a bug or a feature?

Best regards, Mikael

\setupindenting[yes,medium]

\setupfloats[indentafter=yes]

\starttext

\input tufte

\placefigure[outermargin,middle]{}{\blackrule[width=1cm,height=1cm]}

This should be indented, but it is not! \input tufte

\input tufte

\placefigure[outermargin,middle,none]{}{\blackrule[width=1cm,height=1cm]}

This should be indented, and it is! But I want the caption. \input tufte
\stoptext


ctx-example9.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] Indentation within footnotes

2015-03-16 Thread Pablo Rodriguez
 03/15/2015 10:37 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
> On Sun, 15 Mar 2015 15:07:57 -0600, Pablo Rodriguez wrote:
> 
>> I’m not sure whether this is clearer to me. It seems that your approach
>> enables indenting by setting vertical space in paragraphs.
>> I may be missing something, since I’d bet that the setups for notes
>> approach is clearer.
> 
> Didn't mean to confuse you, all you need is
> 
> \setupnotation[footnote][indenting={yes,big}] % no "next"

Many thanks for the explanation, Idris.

I forgot to add big to indenting in \setupnotation.

This was the reason why it didn’t work. And why setups aren’t needed there.

Best


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] Indentation within footnotes

2015-03-15 Thread Wolfgang Schuster

> Am 15.03.2015 um 22:58 schrieb Idris Samawi Hamid ادريس سماوي حامد 
> :
> 
> On Sun, 15 Mar 2015 15:43:47 -0600, Wolfgang Schuster 
> mailto:schuster.wolfg...@gmail.com>> wrote:
> 
>> 
>>> Am 15.03.2015 um 19:19 schrieb Idris Samawi Hamid ادريس سماوي حامد 
>>> :
>>> 
>>> Hi Pablo,
>>> 
>>> On Sun, 15 Mar 2015 11:24:47 -0600, Pablo Rodriguez  wrote:
>>> 
 Changing indenting to {yes, next} only the third
 paragraph in the footnote is indented.
>>> 
>>> My guess is that the first "next" is already hardwired into the footnote 
>>> mechanism. If you remove the "next" it should work. So this works here:
>>> 
>>> % \setupnotation[footnote][indenting={yes,big,next}]
>>> \setupnotation[footnote][indenting={yes,big}]
>>> 
>>> When I had the "next" I got the same result as you.
>> 
>> 
>> I will show below the reason for the unexpected behaviour of the next 
>> keyword. What you should
>> keep in mind is that context uses the same mechanism for enumerations, 
>> description and note
>> entries.
>> 
>> In older versions of the mechanism indentation was set before the title and 
>> content where placed
>> but this produces unwanted results when you used the “next” keyword because 
>> the title itself
>> was recognised as first paragraph (see page 1). After moving the indentation 
>> setting between
>> the title and the content (see page 2) the “next” keyword produced the 
>> expected output.
>> 
>> The problem is now when make the title part of the first paragraph because 
>> the indentation
>> is changed until we start the second paragraph and the “next” keyword 
>> applies now to the third
>> paragraph.
>> 
>>  begin example
>> \setuppapersize[A5]
>> 
>> \starttext
>> 
>> % Page 1
>> 
>> \start \setupindenting[yes,medium,next]
>> 
>> \noindent{\bf Description Title}
>> 
>> \input knuth
>> 
>> \stop
>> 
>> \page
>> 
>> % Page 2
>> 
>> \start
>> 
>> \noindent{\bf Description Title}
>> 
>> \setupindenting[yes,medium,next]
>> 
>> \input knuth
>> 
>> \stop
>> 
>> \page
>> 
>> % Page 3
>> 
>> \start
>> 
>> \noindent{\bf Description Title}
>> \setupindenting[yes,medium,next]
>> \input knuth
>> 
>> \stop
>> 
>> \stoptext
>>  end example
> 
> Thanks, Wolfgang -- or is it Hans? ;-) -- for this very instructive example!
> 
> I just made one change: \noindentation instead of \noindent (my understanding 
> is that we're supposed to avoid very low-level indenting commands).
> 
> So the first paragraph of a footnote insertion contains an implicit title, or 
> does the footnote numeral function as title? Anyway, very interesting!

The footnote number is placed as title.

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] Indentation within footnotes

2015-03-15 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sun, 15 Mar 2015 15:43:47 -0600, Wolfgang Schuster  
 wrote:




Am 15.03.2015 um 19:19 schrieb Idris Samawi Hamid ادريس سماوي حامد  
:


Hi Pablo,

On Sun, 15 Mar 2015 11:24:47 -0600, Pablo Rodriguez   
wrote:



Changing indenting to {yes, next} only the third
paragraph in the footnote is indented.


My guess is that the first "next" is already hardwired into the  
footnote mechanism. If you remove the "next" it should work. So this  
works here:


% \setupnotation[footnote][indenting={yes,big,next}]
\setupnotation[footnote][indenting={yes,big}]

When I had the "next" I got the same result as you.



I will show below the reason for the unexpected behaviour of the next  
keyword. What you should
keep in mind is that context uses the same mechanism for enumerations,  
description and note

entries.

In older versions of the mechanism indentation was set before the title  
and content where placed
but this produces unwanted results when you used the “next” keyword  
because the title itself
was recognised as first paragraph (see page 1). After moving the  
indentation setting between
the title and the content (see page 2) the “next” keyword produced the  
expected output.


The problem is now when make the title part of the first paragraph  
because the indentation
is changed until we start the second paragraph and the “next” keyword  
applies now to the third

paragraph.

 begin example
\setuppapersize[A5]

\starttext

% Page 1

\start \setupindenting[yes,medium,next]

\noindent{\bf Description Title}

\input knuth

\stop

\page

% Page 2

\start

\noindent{\bf Description Title}

\setupindenting[yes,medium,next]

\input knuth

\stop

\page

% Page 3

\start

\noindent{\bf Description Title}
\setupindenting[yes,medium,next]
\input knuth

\stop

\stoptext
 end example


Thanks, Wolfgang -- or is it Hans? ;-) -- for this very instructive  
example!


I just made one change: \noindentation instead of \noindent (my  
understanding is that we're supposed to avoid very low-level indenting  
commands).


So the first paragraph of a footnote insertion contains an implicit title,  
or does the footnote numeral function as title? Anyway, very interesting!  
Thanks again and


Best wishes
Idris
--
Idris Samawi Hamid
Professor 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] Indentation within footnotes

2015-03-15 Thread Wolfgang Schuster

> Am 15.03.2015 um 19:19 schrieb Idris Samawi Hamid ادريس سماوي حامد 
> :
> 
> Hi Pablo,
> 
> On Sun, 15 Mar 2015 11:24:47 -0600, Pablo Rodriguez  wrote:
> 
>> Changing indenting to {yes, next} only the third
>> paragraph in the footnote is indented.
> 
> My guess is that the first "next" is already hardwired into the footnote 
> mechanism. If you remove the "next" it should work. So this works here:
> 
> % \setupnotation[footnote][indenting={yes,big,next}]
> \setupnotation[footnote][indenting={yes,big}]
> 
> When I had the "next" I got the same result as you.


I will show below the reason for the unexpected behaviour of the next keyword. 
What you should
keep in mind is that context uses the same mechanism for enumerations, 
description and note
entries.

In older versions of the mechanism indentation was set before the title and 
content where placed
but this produces unwanted results when you used the “next” keyword because the 
title itself
was recognised as first paragraph (see page 1). After moving the indentation 
setting between
the title and the content (see page 2) the “next” keyword produced the expected 
output.

The problem is now when make the title part of the first paragraph because the 
indentation
is changed until we start the second paragraph and the “next” keyword applies 
now to the third
paragraph.

 begin example
\setuppapersize[A5]

\starttext

% Page 1

\start \setupindenting[yes,medium,next]

\noindent{\bf Description Title}

\input knuth

\stop

\page

% Page 2

\start

\noindent{\bf Description Title}

\setupindenting[yes,medium,next]

\input knuth

\stop

\page

% Page 3

\start

\noindent{\bf Description Title}
\setupindenting[yes,medium,next]
\input knuth

\stop

\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] Indentation within footnotes

2015-03-15 Thread Idris Samawi Hamid ادريس سماوي حامد

On Sun, 15 Mar 2015 15:07:57 -0600, Pablo Rodriguez  wrote:


I’m not sure whether this is clearer to me. It seems that your approach
enables indenting by setting vertical space in paragraphs.
I may be missing something, since I’d bet that the setups for notes
approach is clearer.


Didn't mean to confuse you, all you need is

\setupnotation[footnote][indenting={yes,big}] % no "next"

The other two options were just to show other things you could do with  
\setupnotation. Thanks again for your help and


Best wishes
Idris
--
Idris Samawi Hamid
Professor 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] Indentation within footnotes

2015-03-15 Thread Alan BRASLAU
> > And I still suspect Wolfgang is just Hans in disguise :D  
> 
> It is Hans in his Superman disguise , :D.

The ConTeXt meetings are a great opportunity to ask BOTH Hans and
Wolfgang everything that you might have wanted to know about ConTeXt
(and were afraid to ask on the mailing list).

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

Re: [NTG-context] Indentation within footnotes

2015-03-15 Thread Pablo Rodriguez
On 03/15/2015 07:36 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
> On Sun, 15 Mar 2015 10:29:25 -0600, Pablo Rodriguez wrote:
>> On 03/15/2015 03:16 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
>>> [...]
>>> will give me what I want. But can anyone explain why *both* commands are
>>> needed? Toggling these two commands doesn't work.
>>
>> \setupindenting[big,yes]
>> \startsetups[footnote:indenting]
>> \setupindenting[big,yes]
>> \stopsetups
>> \setupheads[indentnext=no]
>> \setupnote[footnote][setups=footnote:indenting]
>> \setupnotation[footnote][indenting=yes,next]
> 
> Fortunately, it's much easier that that ;-)
> 
> % Argument to after= controls vertical space between notes
> \setupnotation
> [footnote][before={\setupwhitespace[big]},indenting={yes,big},after={\blank[small]}]

Hi Idris,

I’m not sure whether this is clearer to me. It seems that your approach
enables indenting by setting vertical space in paragraphs.

I may be missing something, since I’d bet that the setups for notes
approach is clearer.

>> (you are a ConTeXt expert and I’m only a long-term newbie :-))
> 
> Well, all users are long-term ConTeXt newbies, now and forever... The only  
> exception is Wolfgang ;-)
> 
> And I still suspect Wolfgang is just Hans in disguise :D

Good point.

It is Hans in his Superman disguise , :D.


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] Indentation within footnotes

2015-03-15 Thread Idris Samawi Hamid ادريس سماوي حامد

Hi Pablo,

On Sun, 15 Mar 2015 10:29:25 -0600, Pablo Rodriguez  wrote:


On 03/15/2015 03:16 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:

[...]
\setupnotation[footnote][indenting=yes,next]
\setupfootnotedefinition[before={\setupindenting[big,yes]}]

will give me what I want. But can anyone explain why *both* commands are
needed? Toggling these two commands doesn't work.





\setupindenting[big,yes]
\startsetups[footnote:indenting]
\setupindenting[big,yes]
\stopsetups
\setupheads[indentnext=no]
\setupnote[footnote][setups=footnote:indenting]
\setupnotation[footnote][indenting=yes,next]


Fortunately, it's much easier that that ;-)

% Argument to after= controls vertical space between notes
\setupnotation
[footnote][before={\setupwhitespace[big]},indenting={yes,big},after={\blank[small]}]

As mentioned in the other email, the first "next" is apparently already  
built in, no no need for it.



(you are a ConTeXt expert and I’m only a long-term newbie :-))


Well, all users are long-term ConTeXt newbies, now and forever... The only  
exception is Wolfgang ;-)


And I still suspect Wolfgang is just Hans in disguise :D

Best wishes
Idris
--
Idris Samawi Hamid
Professor 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] Indentation within footnotes

2015-03-15 Thread Idris Samawi Hamid ادريس سماوي حامد

Hi Pablo,

On Sun, 15 Mar 2015 11:24:47 -0600, Pablo Rodriguez  wrote:


Changing indenting to {yes, next} only the third
paragraph in the footnote is indented.


My guess is that the first "next" is already hardwired into the footnote  
mechanism. If you remove the "next" it should work. So this works here:


% \setupnotation[footnote][indenting={yes,big,next}]
\setupnotation[footnote][indenting={yes,big}]

When I had the "next" I got the same result as you.

Best wishes
Idris
--
Idris Samawi Hamid
Professor 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] Indentation within footnotes

2015-03-15 Thread Pablo Rodriguez
On 03/15/2015 05:55 PM, Wolfgang Schuster wrote:
>> Am 15.03.2015 um 14:42 schrieb Idris Samawi Hamid ادريس سماوي حامد:
>>
>> Dear gang,
>>
>> In the attached example: For a given footnote I would like for the
>> first line of each paragraph after paragraph one to be indented. What do
>> I need to do to get this right? Thanks in advance, and
>>
>> Best wishes
>> Idris
>>
>> 
>> \setupindenting[big,yes]
>> \setupheads[indentnext=no]
>> \setupnotation[footnote][command={\setupindenting[big,yes]},indenting=yes,next]
> 
> 1. You have to put braces around the arguments for the indenting key.
> 
> 2. Change the notation setup to
> \setupnotation[footnote][indenting={yes,big}] because notes ignore the
> global indent value.

Hi Wolfgang,

with the following sample:

\setupindenting[big,yes]
\startsetups[footnote:indenting]
\setupindenting[big,yes]
\stopsetups
\setupheads[indentnext=no]
\setupnote[footnote][setups=footnote:indenting]
\setupnotation[footnote][indenting={yes}]
\starttext
\input ward\footnote{\dorecurse{3}{\input ward\par}}

\input ward
\stoptext

it works as expected. Changing indenting to {yes, next} only the third
paragraph in the footnote is indented.

Isn’t it a bug?

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] Indentation within footnotes

2015-03-15 Thread Wolfgang Schuster

> Am 15.03.2015 um 14:42 schrieb Idris Samawi Hamid ادريس سماوي حامد 
> :
> 
> Dear gang,
> 
> In the attached example: For a given footnote I would like for the first line 
> of each paragraph after paragraph one to be indented. What do I need to do to 
> get this right? Thanks in advance, and
> 
> Best wishes
> Idris
> 
> 
> \setupindenting[big,yes]
> \setupheads[indentnext=no]
> \setupnotation[footnote][command={\setupindenting[big,yes]},indenting=yes,next]

1. You have to put braces around the arguments for the indenting key.

2. Change the notation setup to \setupnotation[footnote][indenting={yes,big}] 
because notes ignore the global indent value.

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] Indentation within footnotes

2015-03-15 Thread Pablo Rodriguez
On 03/15/2015 03:16 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
> [...]
> \setupnotation[footnote][indenting=yes,next]
> \setupfootnotedefinition[before={\setupindenting[big,yes]}]
> 
> will give me what I want. But can anyone explain why *both* commands are  
> needed? Toggling these two commands doesn't work.

Hi Idris,

this does what you need:

\setupindenting[big,yes]
\startsetups[footnote:indenting]
\setupindenting[big,yes]
\stopsetups
\setupheads[indentnext=no]
\setupnote[footnote][setups=footnote:indenting]
\setupnotation[footnote][indenting=yes,next]

\starttext
\startsubject[title=Indentation Within a Footnote]
\input ward
\startfootnote
\input ward

\input ward

\input ward
\stopfootnote

The explanation (you are a ConTeXt expert and I’m only a long-term
newbie :-)) is that setups are required.

Setups belong to \setupnote and indenting belongs to \setupnotation.

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

Re: [NTG-context] Indentation within footnotes

2015-03-15 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sun, 15 Mar 2015 07:42:11 -0600, Idris Samawi Hamid ادريس سماوي حامد  
 wrote:



Dear gang,

In the attached example: For a given footnote I would like for the first
line of each paragraph after paragraph one to be indented. What do I need
to do to get this right? Thanks in advance, and

Best wishes
Idris


\setupindenting[big,yes]
\setupheads[indentnext=no]
\setupnotation[footnote][command={\setupindenting[big,yes]},indenting=yes,next]

\starttext
\startsubject[title=Indentation Within a Footnote]
\input ward
\startfootnote
\input ward

\input ward

\input ward
\stopfootnote

\input ward
\stopsubject
\stoptext



\setupnotation[footnote][indenting=yes,next]
\setupfootnotedefinition[before={\setupindenting[big,yes]}]

will give me what I want. But can anyone explain why *both* commands are  
needed? Toggling these two commands doesn't work.


Best wishes
Idris

--
Idris Samawi Hamid
Professor 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] Indentation within footnotes

2015-03-15 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

In the attached example: For a given footnote I would like for the first  
line of each paragraph after paragraph one to be indented. What do I need  
to do to get this right? Thanks in advance, and


Best wishes
Idris


\setupindenting[big,yes]
\setupheads[indentnext=no]
\setupnotation[footnote][command={\setupindenting[big,yes]},indenting=yes,next]

\starttext
\startsubject[title=Indentation Within a Footnote]
\input ward
\startfootnote
\input ward

\input ward

\input ward
\stopfootnote

\input ward
\stopsubject
\stoptext

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

test-noteindent.pdf
Description: Adobe PDF document


test-noteindent.tex
Description: TeX 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] Indentation inside environment

2015-01-31 Thread Fabrice

Hi Wolfgang,
It is very clear, as usual.
Thank you again,
Fabrice
___
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] Indentation inside environment

2015-01-30 Thread Wolfgang Schuster

> Am 30.01.2015 um 19:56 schrieb Fabrice :
> 
> Hi Wolfgang,
> For the first option, it's ok, thank you.
> Can you clarify for the second option?

Something like (untested):

\defineenumeration[FirstLevel][numberconversion=A,alternative=top]

\starttext

\startFirstLevel
\startitemize[n]
\item
\item
\item
\stopitemize
\stopFirstLevel

\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] Indentation inside environment

2015-01-30 Thread Fabrice

Hi Wolfgang,
For the first option, it's ok, thank you.
Can you clarify for the second option?
Best regards,
Fabrice
___
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] Indentation inside environment

2015-01-30 Thread Wolfgang Schuster

> Am 30.01.2015 um 12:59 schrieb Fabrice Couvreur :
> 
> Hi,
> I would have no indentation for the text (ward)
> thank you,
> Fabrice
> 
> \starttext
> \startitemize[A][stopper={.},style=bold]
> \iem  

   
   \item

> \blank[big]
> \input ward
> \startitemize[n][stopper={.},style=bold]
> \item 
> \item 
> \item 
> \stopitemize
> \item 
> \blank[big]
> \input ward
> \startitemize[n][stopper={.},style=bold]
> \item 
> \item 
> \item 
> \stopitemize
> \stopitemize
> \stoptext

You can use the “intent” keyword (i.e. \startitemize[intext][..,..=..,..]) or 
as alternative
use a enumeration for the outer level of your list.

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] Indentation inside environment

2015-01-30 Thread Fabrice Couvreur
Hi,
I would have no indentation for the text (ward)
thank you,
Fabrice

\starttext
\startitemize[A][stopper={.},style=bold]
\iem
\blank[big]
\input ward
\startitemize[n][stopper={.},style=bold]
\item
\item
\item
\stopitemize
\item
\blank[big]
\input ward
\startitemize[n][stopper={.},style=bold]
\item
\item
\item
\stopitemize
\stopitemize
\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] Indentation in floats

2013-06-03 Thread Marco Patzer
On 2013–06–03 Wolfgang Schuster wrote:

> > how to disable indentation inside floats without using \noindenting
> > each time?
> > […]
>
> There is no key for \setupfloat the disable the indentation because floats 
> are only
> a container for other objects, e.g. figures or tables. For text objects like 
> verbatim
> text indentation has to be part of the object and in your case you should use 
> a
> environment which has a option for this.

I use the algorithmic environment. Using

  \setupalgorithmic [before=\noindenting]

works. Maybe you can consider adding this as default, since I don't
think it ever makes sense to use indentation within this
environment.

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] Indentation in floats

2013-06-03 Thread Wolfgang Schuster

Am 03.06.2013 um 16:59 schrieb Marco Patzer :

> Hi,
> 
> how to disable indentation inside floats without using \noindenting
> each time?
> 
> \setupindenting [yes, medium]
> \starttext
> \input ward
> 
> \startplacefigure
>  foo\par bar
> \stopplacefigure
> 
> \startplacefigure
>  alpha\par beta
> \stopplacefigure
> 
> \startplacefigure
>  \noindenting
>  a manual\par\tex{noindenting}\par works
> \stopplacefigure
> 
> \input ward
> \stoptext

There is no key for \setupfloat the disable the indentation because floats are 
only
a container for other objects, e.g. figures or tables. For text objects like 
verbatim
text indentation has to be part of the object and in your case you should use a
environment which has a option for this.

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] Indentation in floats

2013-06-03 Thread Marco Patzer
Hi,

how to disable indentation inside floats without using \noindenting
each time?

\setupindenting [yes, medium]
\starttext
\input ward

\startplacefigure
  foo\par bar
\stopplacefigure

\startplacefigure
  alpha\par beta
\stopplacefigure

\startplacefigure
  \noindenting
  a manual\par\tex{noindenting}\par works
\stopplacefigure

\input ward
\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
___

Re: [NTG-context] Indentation in TOC

2013-02-04 Thread Devendra Ghate


On 02/05/2013 01:47 AM, Wolfgang Schuster wrote:

Am 04.02.2013 um 21:11 schrieb Devendra Ghate :


Hello,

I am trying to indent my section/subsection etc. progressively. I am using 
*numbercommand*
and added *hspace* before the numbers. But the section title is not moved to 
the right along with
the section number and overlaps with it. I tried adding *loffset=2cm* (since 
all the options of *\framed* are
valid for *setuplist*) also, but doesn't seem to have any effect.

Please point out the mistake.

Regards,
Devendra

*MWE*

\definehspace[myem][2em]
\def\secnum#1{\hspace[myem]#1}
\setuplist
  [section]
   [numbercommand={\secnum}]

\setuplist[…][margin=2em]

Wolfgang

Thank you very much.

Devendra








___
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] Indentation in TOC

2013-02-04 Thread Wolfgang Schuster

Am 04.02.2013 um 21:11 schrieb Devendra Ghate :

> Hello,
> 
> I am trying to indent my section/subsection etc. progressively. I am using 
> *numbercommand*
> and added *hspace* before the numbers. But the section title is not moved to 
> the right along with
> the section number and overlaps with it. I tried adding *loffset=2cm* (since 
> all the options of *\framed* are
> valid for *setuplist*) also, but doesn't seem to have any effect.
> 
> Please point out the mistake.
> 
> Regards,
> Devendra
> 
> *MWE*
> 
> \definehspace[myem][2em]
> \def\secnum#1{\hspace[myem]#1}
> \setuplist
>  [section]
>   [numbercommand={\secnum}]

\setuplist[…][margin=2em]

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] Indentation in TOC

2013-02-04 Thread Devendra Ghate

Hello,

I am trying to indent my section/subsection etc. progressively. I am 
using *numbercommand*
and added *hspace* before the numbers. But the section title is not 
moved to the right along with
the section number and overlaps with it. I tried adding *loffset=2cm* 
(since all the options of *\framed* are

valid for *setuplist*) also, but doesn't seem to have any effect.

Please point out the mistake.

Regards,
Devendra

*MWE*

\definehspace[myem][2em]
\def\secnum#1{\hspace[myem]#1}
\setuplist
  [section]
   [numbercommand={\secnum}]

\starttext
   \completecontent[alternative=c]
   \chapter{A}
   \section{B}
\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] Indentation for beginner

2012-05-03 Thread hwitloc

Marco,
  thank you for kindly showing me how to do the resume section : itemize format 
that I needed in a very clear way.  The example you provided works very well.  

I appreciate your help.

Regards,
  hwitloc



  
Marco  wrote:
> On 2012-05-02 hwit...@gmail.com wrote:
> 
> > %Whereas I want it to be like this:
> > 
> > 
> >   EDUCATION* bozo the clown
> >* is here today
> > 
> >   WORK * UCLA BoA
> >   EXPERIENCE   * LMU BSCS
> > 
> > In other words I want the first item of an itemization to line up with the
> > resume section description header's first or last line.
> 
> \defineparagraphs [rpara] [n=2]
> \setupparagraphs  [rpara] [1] [width=3cm, style=\sc]
> \setupitemize [5, packed]
> 
> \starttext
> 
> \startrpara
>   Education
> \nextrpara
>   \startitemize
>   \startitem bozo the clown \stopitem
>   \startitem is here today  \stopitem
>   \stopitemize
> \stoprpara
> 
> \startrpara
>   Work\crlf Experience % or use \startlines … \stoplines
> \nextrpara
>   \startitemize
>   \startitem UCLA BoA \stopitem
>   \startitem LMU BSCS \stopitem
>   \stopitemize
> \stoprpara
> 
> \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
> ___
___
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] Indentation the other way? SOLVED

2012-01-10 Thread Verhaag, G.C.H.M.

On 01/10/2012 12:14 PM, Aditya Mahajan wrote:

On Jan 10, 2012, at 4:48 AM, "Verhaag, G.C.H.M."  wrote:

   

Hi ConTeXt User's,

I'm wondering whether it is possible to indent ALL lines in a paragraph EXCEPT 
the very FIRST one, using the current indentation features of ConTeXt?
 

Choose a negative value for indentation.

Aditya

   


Hi,

Thanks for the tip, very simple indeed!

Regards,
Gerard Verhaag
___
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] Indentation the other way?

2012-01-10 Thread Aditya Mahajan
On Jan 10, 2012, at 4:48 AM, "Verhaag, G.C.H.M."  wrote:

> Hi ConTeXt User's,
> 
> I'm wondering whether it is possible to indent ALL lines in a paragraph 
> EXCEPT the very FIRST one, using the current indentation features of ConTeXt?

Choose a negative value for indentation. 

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
___


[NTG-context] Indentation the other way?

2012-01-10 Thread Verhaag, G.C.H.M.

Hi ConTeXt User's,

I'm wondering whether it is possible to indent ALL lines in a paragraph 
EXCEPT the very FIRST one, using the current indentation features of 
ConTeXt?


Regards,
Gerard Verhaag

P.S. Currently using: ConTeXt  ver: 2011.12.23 09:52 MKIV  fmt: 
2011.12.27  int: english/english

___
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] Indentation as in itemize

2011-08-06 Thread Wolfgang Schuster

Am 06.08.2011 um 14:59 schrieb Cecil Westerhof:

> You can also make an extra column only for the bullet.
> 
> Will not work in my case. Sometimes there is placed something without a 
> bullet. I could then merge the two columns, but that would even be more ugly 
> as the current solution.

I thought you hide the table code in your own commands, when this is the case 
you can make different commands for entries with and without bullets where the 
second place a empty column and the first a bullet in the extra column.

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] Indentation as in itemize

2011-08-06 Thread Cecil Westerhof
2011/8/6 Wolfgang Schuster 

> > When you use itemize text is neatly put under each-other.
>
> > I have the folowing in a macro:
>> > \bTR \RowWorkTable{}{\bullet\space #1} \eTR
>> >
>> > When text is overflowing to the following line, the text starts under
>> the bullet. I would like it to start under the character after the space,
>> just like in itemize. How would I do this?
>>
>> You can use descriptions with “location=left”.
>>
>
> I tried that, but it did not work. I think I'll stay with the 'ugly'
> solution. It is only in the macro itself. So I live with it. (For the moment
> being.)
>
>>
> You can also make an extra column only for the bullet.
>

Will not work in my case. Sometimes there is placed something without a
bullet. I could then merge the two columns, but that would even be more ugly
as the current solution.



> As a hack I now use:
> > \bTR \RowWorkTable{}{\startitemize \item #1 \stopitemize} \eTR
> >
> > This does what I want, but I do not find it very pretty. (I have also the
> feeling that it makes the compilation time longer.)
>
> It’s slower but you won’t notice a difference of a few microseconds.
>

Sometimes ConTeXt takes a lot longer to compile. (Two to three times. Do not
ask me why.) It looks like this happened when I made the change. So I will
not bother about it.


> Itemize writes the number of entries of each environment to the auxilary
> file and when there is a change in this file you get two or three runs.
>

Aaah, that explains it. Thanks.

-- 
Cecil Westerhof
___
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] Indentation as in itemize

2011-08-06 Thread Wolfgang Schuster

Am 06.08.2011 um 11:50 schrieb Cecil Westerhof:

> 2011/8/5 Wolfgang Schuster 
> 
> Am 05.08.2011 um 09:02 schrieb Cecil Westerhof:
> 
> > When you use itemize text is neatly put under each-other.
> > I have the folowing in a macro:
> > \bTR \RowWorkTable{}{\bullet\space #1} \eTR
> >
> > When text is overflowing to the following line, the text starts under the 
> > bullet. I would like it to start under the character after the space, just 
> > like in itemize. How would I do this?
> 
> You can use descriptions with “location=left”.
> 
> I tried that, but it did not work. I think I'll stay with the 'ugly' 
> solution. It is only in the macro itself. So I live with it. (For the moment 
> being.)

You can also make an extra column only for the bullet.

> > As a hack I now use:
> > \bTR \RowWorkTable{}{\startitemize \item #1 \stopitemize} \eTR
> >
> > This does what I want, but I do not find it very pretty. (I have also the 
> > feeling that it makes the compilation time longer.)
> 
> It’s slower but you won’t notice a difference of a few microseconds.
> 
> Sometimes ConTeXt takes a lot longer to compile. (Two to three times. Do not 
> ask me why.) It looks like this happened when I made the change. So I will 
> not bother about it.

Itemize writes the number of entries of each environment to the auxilary file 
and when there is a change in this file you get two or three runs.

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] Indentation as in itemize

2011-08-06 Thread Cecil Westerhof
2011/8/5 Wolfgang Schuster 

>
> Am 05.08.2011 um 09:02 schrieb Cecil Westerhof:
>
> > When you use itemize text is neatly put under each-other.
> > I have the folowing in a macro:
> > \bTR \RowWorkTable{}{\bullet\space #1} \eTR
> >
> > When text is overflowing to the following line, the text starts under the
> bullet. I would like it to start under the character after the space, just
> like in itemize. How would I do this?
>
> You can use descriptions with “location=left”.
>

I tried that, but it did not work. I think I'll stay with the 'ugly'
solution. It is only in the macro itself. So I live with it. (For the moment
being.)



> > As a hack I now use:
> > \bTR \RowWorkTable{}{\startitemize \item #1 \stopitemize} \eTR
> >
> > This does what I want, but I do not find it very pretty. (I have also the
> feeling that it makes the compilation time longer.)
>
> It’s slower but you won’t notice a difference of a few microseconds.
>

Sometimes ConTeXt takes a lot longer to compile. (Two to three times. Do not
ask me why.) It looks like this happened when I made the change. So I will
not bother about it.

-- 
Cecil Westerhof
___
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] Indentation as in itemize

2011-08-05 Thread Wolfgang Schuster

Am 05.08.2011 um 09:02 schrieb Cecil Westerhof:

> When you use itemize text is neatly put under each-other.
> I have the folowing in a macro:
> \bTR \RowWorkTable{}{\bullet\space #1} \eTR
> 
> When text is overflowing to the following line, the text starts under the 
> bullet. I would like it to start under the character after the space, just 
> like in itemize. How would I do this?

You can use descriptions with “location=left”.

> As a hack I now use:
> \bTR \RowWorkTable{}{\startitemize \item #1 \stopitemize} \eTR
> 
> This does what I want, but I do not find it very pretty. (I have also the 
> feeling that it makes the compilation time longer.)

It’s slower but you won’t notice a difference of a few microseconds.

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] Indentation as in itemize

2011-08-05 Thread Cecil Westerhof
When you use itemize text is neatly put under each-other.
I have the folowing in a macro:
\bTR \RowWorkTable{}{\bullet\space #1} \eTR

When text is overflowing to the following line, the text starts under the
bullet. I would like it to start under the character after the space, just
like in itemize. How would I do this?

As a hack I now use:
\bTR \RowWorkTable{}{\startitemize \item #1 \stopitemize} \eTR

This does what I want, but I do not find it very pretty. (I have also the
feeling that it makes the compilation time longer.)

-- 
Cecil Westerhof
___
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] Indentation

2009-11-28 Thread commb07



\startnarrower[left]
\stopnarrower 



that was quick, thank you!
just what i was looking for but couldn´t find.


tobias

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

2009-11-27 Thread Taco Hoekwater


comm...@googlemail.com wrote:
> 
> i have tried vtop, which works ok, but looks ugly, and splitting proofs
> across multiple pages is a pain. is there a better way to do this?

\startnarrower[left]
  \startnarrower[left] ...
  \stopnarrower
\stopnarrower


Best wishes,
Taco
___
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] Indentation

2009-11-27 Thread commb07

Hi @all,

i´m new to context and so far i like it a lot more than messy latex.

i try to write some mathematical proofs and have a layout in mind which
i can´t implement in a nice way:
i want to write the proofs in a tree-like structure, where a 'subproof'
for a statement is indented below the statement. it should be possible
to do this on more than five levels, for more complex proofs, and across
pages would be nice.

Example:{
The mapping f is continous, because:
   f is a linear functional:
   it maps a vectorspace into its field and
   it is linear: f(a*x+b*y)=..
   =a*f(x)+b*f(y).
   and its null space is closed:
   .
   .
   so by theorem xy, f is continous
}

i have tried vtop, which works ok, but looks ugly, and splitting proofs
across multiple pages is a pain. is there a better way to do this?


tobias


___
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] Indentation in itemize

2009-01-11 Thread Curious
Derek CORDEIRO  gmail.com> writes:


> Maybe \setupitemize[margin=1cm] will give the top level a 1cm indentation? I'm
not sure if thats what your looking out for.(I'm a novice too) 
> -- _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
> Blog: http://www.derekcordeiro.comFollow Me: http://twitter.com/derekcordeiro

Beautiful! Thanks Derek. That worked great.

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


Re: [NTG-context] Indentation in itemize

2009-01-10 Thread Derek CORDEIRO
On Sat, Jan 10, 2009 at 7:51 PM, Curious  wrote:

> Hello Folks,
>
> Is there a way to have the first level of items indented. The second and
> subsequent levels are indented by default, but how does one achieve
> indentation
> of the first level. I looked at the options in the Context manual and I see
> that
> the default value of indentnext is yes. However, I think that applies
> second
> level onwards.
>
> Thanks in advance.
>


Maybe \setupitemize[margin=1cm] will give the top level a 1cm indentation?
I'm not sure if thats what your looking out for.(I'm a novice too)

-- 
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Blog: http://www.derekcordeiro.com
Follow Me: http://twitter.com/derekcordeiro
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Indentation in itemize

2009-01-10 Thread Curious
Hello Folks,

Is there a way to have the first level of items indented. The second and
subsequent levels are indented by default, but how does one achieve indentation
of the first level. I looked at the options in the Context manual and I see that
the default value of indentnext is yes. However, I think that applies second
level onwards.

Thanks in advance.

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


Re: [NTG-context] Indentation bug ? Sample

2006-08-02 Thread Hans Hagen
Alan Bowen wrote:
>
> Renaud�no bug. The problem (I am guessing) lies in the peculiarities  
> of my source file, specifically, in the fact that I was trying to  
> place a figure at the bottom of a page in a text that has lengthy  
> footnotes before and after the figure, with \setupfootnotes 
> [split=verystrict]. In any case,  removing some of the text before  
> the figure obviated the problem and gave a very fine result�though in  
> that case there was no difference between the results obtained with  
> the top, here, and bottom options of \placefigure, perhaps again  
> because of the footnotes. As for the original file�the author would  
> not have been pleased if I had excised some of his text�I simply  
> indented the paragraph �manually� with \qquad (big indent) and plowed  
> ahead.
>   
this indentation around floats needs some improvement anyway; 

the current implementation is not watertight

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Indentation bug ? Sample

2006-08-02 Thread Alan Bowen
On Aug 2, 2006, at 5:07 AM, Renaud AUBIN wrote:

> Hi all,
>
> Here is a test document with "french" indentation (placefigure and
> placetable are tested with bottom, here, top and auto options):
>
> \setupindenting[medium,yes]
> \setupformulas[indentnext=yes]
> \setupheads[indentnext=yes]
> \setupfloats[indentnext=yes]
>
> \starttext
>
> \startuseMPgraphic{dummygraph}
> numeric u; u:=2cm;
> draw (-u,-u)--(u,u);
> draw ((-u,-u)--(u,u)) rotated 90;
> \stopuseMPgraphic
>
> \chapter{placefigure}
> \section{bottom option}
>
> \input knuth
>
> \placefigure[bottom]{none}{\useMPgraphic{dummygraph}}
>
> \input knuth
>
> \page
>
> \section{top option}
>
> \input knuth
>
> \placefigure[top]{none}{\useMPgraphic{dummygraph}}
>
> \input knuth
>
> \page
>
> \section{here option}
>
> \input knuth
>
> \placefigure[here]{none}{\useMPgraphic{dummygraph}}
>
> \input knuth
>
> \page
>
> \section{here, force, nonumber option}
>
> \input knuth
>
> \placefigure[here,force,nonumber]{none}{\useMPgraphic{dummygraph}}
>
> \input knuth
>
> \page
>
> \section{auto option}
>
> \input knuth
>
> \placefigure[auto]{none}{\useMPgraphic{dummygraph}}
>
> \input knuth
>
> \chapter{placetable}
>
> \startbuffer
> \setupTABLE[row][odd][background=color,backgroundcolor=red,
> width=.2\textwidth]
> \bTABLE[split=yes]
> \bTR \bTD[nr=3] 1 \eTD \bTD[nc=2] 2/3 \eTD \bTD[nr=3] 4 \eTD \eTR
> \bTR \bTD 2 \eTD \bTD 3 \eTD \eTR
> \bTR \bTD 2 \eTD \bTD 3 \eTD \eTR
> \bTR \bTD[nc=3] 1/2/3 \eTD \bTD 4 \eTD \eTR
> \bTR \bTD 1 \eTD \bTD 2 \eTD \bTD 3 \eTD \bTD 4 \eTD \eTR
> \eTABLE
> \stopbuffer
>
> \section{bottom option}
>
> \input knuth
>
> \placetable[bottom]{none}{\getbuffer}
>
> \input knuth
>
> \page
>
> \section{here option}
>
> \input knuth
>
> \placetable[here]{none}{\getbuffer}
>
> \input knuth
>
> \page
>
> \section{top option}
>
> \input knuth
>
> \placetable[top]{none}{\getbuffer}
>
> \input knuth
>
> \page
>
> \section{auto option}
>
> \input knuth
>
> \placetable[auto]{none}{\getbuffer}
>
> \input knuth
>
> \stoptext
>
>
> Alan, I cannot reproduce the problem you described, maybe I
> misunderstood... Please, try with my sample file and repost if you
> obtain a bug...
> You can see the result: http://renojrl.lrv.uvsq.fr/testbed/indent.pdf
>
> texexec --check gives:
>
> TeXExec | runtime: 0.509941
> TeXExec | end of analysis
> TeXExec |
> TeXExec | TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD
> TeXExec | TeXUtil   | version 9.1.0 - 1997-2005 - PRAGMA ADE/POD
> TeXExec | CtxTools | version 1.3.3 - 2004/2006 - PRAGMA ADE/POD
> TeXExec |
> TeXExec | testing interface en
> TeXExec | pdfeTeX Version 3.141592-1.30.6-2.2 (Web2C 7.5.5)
> TeXExec | ConTeXt ver: 2006.07.28 23:56 fmt: 2006.8.1 int: english  
> mes:
> english
> TeXExec |
> TeXExec | testing interface fr
> TeXExec | pdfeTeX Version 3.141592-1.30.6-2.2 (Web2C 7.5.5)
> TeXExec | ConTeXt ver: 2006.07.28 23:56 fmt: 2006.8.1 int: french mes:
> french
> TeXExec |
> TeXExec | testing interface nl
> TeXExec | pdfeTeX Version 3.141592-1.30.6-2.2 (Web2C 7.5.5)
> TeXExec | ConTeXt ver: 2006.07.28 23:56 fmt: 2006.8.1 int: dutch  
> mes: dutch
>
> Cheers,
>
>
> Renaud

Renaud—no bug. The problem (I am guessing) lies in the peculiarities  
of my source file, specifically, in the fact that I was trying to  
place a figure at the bottom of a page in a text that has lengthy  
footnotes before and after the figure, with \setupfootnotes 
[split=verystrict]. In any case,  removing some of the text before  
the figure obviated the problem and gave a very fine result—though in  
that case there was no difference between the results obtained with  
the top, here, and bottom options of \placefigure, perhaps again  
because of the footnotes. As for the original file—the author would  
not have been pleased if I had excised some of his text—I simply  
indented the paragraph “manually” with \qquad (big indent) and plowed  
ahead.

Thanks for looking into this.

Best, Alan
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Indentation bug ? Sample

2006-08-02 Thread Renaud AUBIN
Hi all,

Here is a test document with "french" indentation (placefigure and
placetable are tested with bottom, here, top and auto options):

\setupindenting[medium,yes]
\setupformulas[indentnext=yes]
\setupheads[indentnext=yes]
\setupfloats[indentnext=yes]

\starttext

\startuseMPgraphic{dummygraph}
numeric u; u:=2cm;
draw (-u,-u)--(u,u);
draw ((-u,-u)--(u,u)) rotated 90;
\stopuseMPgraphic

\chapter{placefigure}
\section{bottom option}

\input knuth

\placefigure[bottom]{none}{\useMPgraphic{dummygraph}}

\input knuth

\page

\section{top option}

\input knuth

\placefigure[top]{none}{\useMPgraphic{dummygraph}}

\input knuth

\page

\section{here option}

\input knuth

\placefigure[here]{none}{\useMPgraphic{dummygraph}}

\input knuth

\page

\section{here, force, nonumber option}

\input knuth

\placefigure[here,force,nonumber]{none}{\useMPgraphic{dummygraph}}

\input knuth

\page

\section{auto option}

\input knuth

\placefigure[auto]{none}{\useMPgraphic{dummygraph}}

\input knuth

\chapter{placetable}

\startbuffer
\setupTABLE[row][odd][background=color,backgroundcolor=red,
width=.2\textwidth]
\bTABLE[split=yes]
\bTR \bTD[nr=3] 1 \eTD \bTD[nc=2] 2/3 \eTD \bTD[nr=3] 4 \eTD \eTR
\bTR \bTD 2 \eTD \bTD 3 \eTD \eTR
\bTR \bTD 2 \eTD \bTD 3 \eTD \eTR
\bTR \bTD[nc=3] 1/2/3 \eTD \bTD 4 \eTD \eTR
\bTR \bTD 1 \eTD \bTD 2 \eTD \bTD 3 \eTD \bTD 4 \eTD \eTR
\eTABLE
\stopbuffer

\section{bottom option}

\input knuth

\placetable[bottom]{none}{\getbuffer}

\input knuth

\page

\section{here option}

\input knuth

\placetable[here]{none}{\getbuffer}

\input knuth

\page

\section{top option}

\input knuth

\placetable[top]{none}{\getbuffer}

\input knuth

\page

\section{auto option}

\input knuth

\placetable[auto]{none}{\getbuffer}

\input knuth

\stoptext


Alan, I cannot reproduce the problem you described, maybe I
misunderstood... Please, try with my sample file and repost if you
obtain a bug...
You can see the result: http://renojrl.lrv.uvsq.fr/testbed/indent.pdf

texexec --check gives:

TeXExec | runtime: 0.509941
TeXExec | end of analysis
TeXExec |
TeXExec | TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD
TeXExec | TeXUtil   | version 9.1.0 - 1997-2005 - PRAGMA ADE/POD
TeXExec | CtxTools | version 1.3.3 - 2004/2006 - PRAGMA ADE/POD
TeXExec |
TeXExec | testing interface en
TeXExec | pdfeTeX Version 3.141592-1.30.6-2.2 (Web2C 7.5.5)
TeXExec | ConTeXt ver: 2006.07.28 23:56 fmt: 2006.8.1 int: english mes:
english
TeXExec |
TeXExec | testing interface fr
TeXExec | pdfeTeX Version 3.141592-1.30.6-2.2 (Web2C 7.5.5)
TeXExec | ConTeXt ver: 2006.07.28 23:56 fmt: 2006.8.1 int: french mes:
french
TeXExec |
TeXExec | testing interface nl
TeXExec | pdfeTeX Version 3.141592-1.30.6-2.2 (Web2C 7.5.5)
TeXExec | ConTeXt ver: 2006.07.28 23:56 fmt: 2006.8.1 int: dutch mes: dutch

Cheers,


Renaud

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Indentation bug ?

2006-08-01 Thread Alan Bowen
On Aug 1, 2006, at 4:03 AM, Renaud AUBIN wrote: Hi all,  Same problem when \placefigure[auto] is used...  Is there a chance that this bug will be corrected before the beginning of september ? ;) (if this is a bug...)  Renaud AUBIN a écrit :   Hi all,   Considering the following example: %%% \setupindenting[medium,yes] \setupformulas[indentnext=yes] \setupheads[indentnext=yes] \setupfloats[indentnext=yes]   \starttext   \startuseMPgraphic{mympgraph} numeric u; u:=2cm; draw (-u,-u)--(u,u); draw ((-u,-u)--(u,u)) rotated 90; \stopuseMPgraphic   \section{A section} La liaison inter-modulaire conçue par TDA pour le prototype est une liaison pivot d'axe vertical. En effet, même si elle dispose de possibilités de débattements angulaires, ces débattements admissibles sont relativement faibles. De plus, seul la rotation suivant l'axe de la liaison pivot peut être actionné et, en l'état, les débattements ne peuvent en aucun cas être pilotés. Néanmoins, le problème posé par cette articulation ne se pose pas si l'on se restreint à des déplacements sur des surfaces planes ou régulières relativement aux grandeurs du robot. Nous ne présenterons pas ici la conception mécanique de cette liaison.   \placefigure[bottom]{none}{\useMPgraphic{mymmpgraph}}   La liaison inter-modulaire conçue par TDA pour le prototype est une liaison pivot d'axe vertical. En effet, même si elle dispose de possibilités de débattements angulaires, ces débattements admissibles sont relativement faibles. De plus, seul la rotation suivant l'axe de la liaison pivot peut être actionné et, en l'état, les débattements ne peuvent en aucun cas être pilotés. Néanmoins, le problème posé par cette articulation ne se pose pas si l'on se restreint à des déplacements sur des surfaces planes ou régulières relativement aux grandeurs du robot. Nous ne présenterons pas ici la conception mécanique de cette liaison.   \page \section{A second section} \input knuth   \placefigure[bottom]{none}{\useMPgraphic{mymmpgraph}}   \input knuth   \stoptext %%   Paragraphs next to \placefigure calls are not indented when [bottom] is used. They are indented correctly when one use [top] or [here].   Strange... ;) Cheers,   Renaud   PS to Hans: U3D ?I am not getting indenting with the first paragraph following the [here] option; that is, with the first paragraph following\useexternalfigure[Graphic][NP.pdf][] \placefigure		[here,force,nonumber]		[]		{x}		{\externalfigure[NP.pdf][type=pdf]}I am using ConTeXt  ver: 2006.07.22 18:35  fmt: 2006.7.23 Best, Alan ___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Indentation bug ?

2006-08-01 Thread Renaud AUBIN




Hi all,

Same problem when \placefigure[auto] is used...

Is there a chance that this bug will be corrected before the beginning
of september ? ;)
(if this is a bug...)

Renaud AUBIN a écrit :

  
  
  Hi all,
  
Considering the following example:
%%%
\setupindenting[medium,yes]
\setupformulas[indentnext=yes]
\setupheads[indentnext=yes]
\setupfloats[indentnext=yes]
  
\starttext
  
\startuseMPgraphic{mympgraph}
numeric u; u:=2cm;
draw (-u,-u)--(u,u);
draw ((-u,-u)--(u,u)) rotated 90;
\stopuseMPgraphic
  
\section{A section}
La liaison inter-modulaire conçue par TDA pour le prototype
est une liaison pivot d'axe vertical. En effet, même si elle dispose
de possibilités de débattements angulaires, ces débattements
admissibles sont relativement faibles. De plus, seul la rotation
suivant l'axe de la liaison pivot peut être actionné et, en l'état,
les débattements ne peuvent en aucun cas être pilotés. Néanmoins, le
problème posé par cette articulation ne se pose pas si l'on se
restreint à des déplacements sur des surfaces planes ou régulières
relativement aux grandeurs du robot. Nous ne présenterons pas ici la
conception mécanique de cette liaison.
  
\placefigure[bottom]{none}{\useMPgraphic{mymmpgraph}}
  
La liaison inter-modulaire conçue par TDA pour le prototype
est une liaison pivot d'axe vertical. En effet, même si elle dispose
de possibilités de débattements angulaires, ces débattements
admissibles sont relativement faibles. De plus, seul la rotation
suivant l'axe de la liaison pivot peut être actionné et, en l'état,
les débattements ne peuvent en aucun cas être pilotés. Néanmoins, le
problème posé par cette articulation ne se pose pas si l'on se
restreint à des déplacements sur des surfaces planes ou régulières
relativement aux grandeurs du robot. Nous ne présenterons pas ici la
conception mécanique de cette liaison.
  
\page
\section{A second section}
\input knuth
  
\placefigure[bottom]{none}{\useMPgraphic{mymmpgraph}}
  
\input knuth
  
\stoptext
%%
  
Paragraphs next to \placefigure calls are not indented when [bottom] is
used. They are indented correctly when one use [top] or [here].
  
Strange... ;)
  
  
Cheers,
  
Renaud
  
PS to Hans: U3D ?
  
  
  
  

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
  




___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Indentation bug ?

2006-07-25 Thread Renaud AUBIN
Peter Münster a écrit :

>On Tue, 25 Jul 2006, Renaud AUBIN wrote:
>  
>
>Perhaps related to http://context.literatesolutions.com/collector/65 ?
>Cheers, Peter
>  
>
Maybe, but dunno... These problems are probably due to the same bug...

Renaud
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Indentation bug ?

2006-07-25 Thread Peter Münster
On Tue, 25 Jul 2006, Renaud AUBIN wrote:

> Paragraphs next to \placefigure calls are not indented when [bottom] is
> used. They are indented correctly when one use [top] or [here].

Perhaps related to http://context.literatesolutions.com/collector/65 ?
Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Indentation bug ?

2006-07-25 Thread Renaud AUBIN




Hi all,

Considering the following example:
%%%
\setupindenting[medium,yes]
\setupformulas[indentnext=yes]
\setupheads[indentnext=yes]
\setupfloats[indentnext=yes]

\starttext

\startuseMPgraphic{mympgraph}
numeric u; u:=2cm;
draw (-u,-u)--(u,u);
draw ((-u,-u)--(u,u)) rotated 90;
\stopuseMPgraphic

\section{A section}
La liaison inter-modulaire conçue par TDA pour le prototype
est une liaison pivot d'axe vertical. En effet, même si elle dispose
de possibilités de débattements angulaires, ces débattements
admissibles sont relativement faibles. De plus, seul la rotation
suivant l'axe de la liaison pivot peut être actionné et, en l'état,
les débattements ne peuvent en aucun cas être pilotés. Néanmoins, le
problème posé par cette articulation ne se pose pas si l'on se
restreint à des déplacements sur des surfaces planes ou régulières
relativement aux grandeurs du robot. Nous ne présenterons pas ici la
conception mécanique de cette liaison.

\placefigure[bottom]{none}{\useMPgraphic{mymmpgraph}}

La liaison inter-modulaire conçue par TDA pour le prototype
est une liaison pivot d'axe vertical. En effet, même si elle dispose
de possibilités de débattements angulaires, ces débattements
admissibles sont relativement faibles. De plus, seul la rotation
suivant l'axe de la liaison pivot peut être actionné et, en l'état,
les débattements ne peuvent en aucun cas être pilotés. Néanmoins, le
problème posé par cette articulation ne se pose pas si l'on se
restreint à des déplacements sur des surfaces planes ou régulières
relativement aux grandeurs du robot. Nous ne présenterons pas ici la
conception mécanique de cette liaison.

\page
\section{A second section}
\input knuth

\placefigure[bottom]{none}{\useMPgraphic{mymmpgraph}}

\input knuth

\stoptext
%%

Paragraphs next to \placefigure calls are not indented when [bottom] is
used. They are indented correctly when one use [top] or [here].

Strange... ;)


Cheers,

Renaud

PS to Hans: U3D ?





___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] indentation + YandY Lucida on TeXlive2005+debian

2005-11-28 Thread Hans Hagen

Renaud AUBIN wrote:

First of all, thanks for Lucida tips... It work now with my debian 
install of texlive 2005.


I'm working now on the layout and structure of my phd thesis. Due to 
the fact that my thesis is in french I need to setup indentation of 
the first paragraph and I've got a problem with \setupindenting \indenting


I


it's now one command:

\setupindenting[medium,yes]

(the split became too fuzy when we added fancy things like first, next, 
odd, even, even)


Hans
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] indentation + YandY Lucida on TeXlive2005+debian

2005-11-28 Thread Renaud AUBIN




First of all, thanks for Lucida tips...
It work now with my debian install of texlive 2005.

I'm working now on the layout and structure of my phd thesis. Due to
the fact that my thesis is in french I need to setup indentation of the
first paragraph and I've got a problem with \setupindenting \indenting

I have followed the structure given in cont-eni.pdf :

__phd.tex_begin
%% Set output to pdf
\setupoutput[pdftex]
%% Activate txt in METAPOST
\useMPlibrary[txt]
%% Activate colors
\setupcolors[state=start]

% fr settings
\setuppapersize[A4][A4]
\enableregime[il9]
\useencoding[ffr]
\mainlanguage[fr]

% Fonts
\usetypescriptfile[type-buy]
\loadmapfile[ec-bh-lucida.map]
\usetypescript[lucida][ec]
\setupbodyfont[lucida]

\startproject phd

\environment phdenv
\product phdprod

\stopproject
__phd.tex_end


__phdend.tex_begin
\startenvironment phdenv

\setupwhitespace[big]
\setupindenting[first,medium]
\indenting[first,always]
\setupfootertexts[part][chapter]

\stopenvironment
__phdend.tex_end


__phdprod.tex_begin
\startproduct phdprod

\project phd

\startfrontmatter
\completecontent
\stopfrontmatter

\startbodymatter
\component first
\component second
\stopbodymatter

\startbackmatter
\completecontent
\stopbackmatter

\stopproduct
__phdprod.tex_end


__first.tex_begin
\startcomponent first

\part{One}
\completecontent
\chapter{First}

\section{Section1}
This is a cut-down version of the below Unicode Symbols package,
designed to be simple and usable with any pdfTeX-centric \ConTeXt\
installation. Little installation, minimal usage effort, and you gain
over a hundred symbols for use in ConTeXt. The PDF file documents how
to use the PDF native ZapfDingbats font along with a catalogue of the
available symbols, and the zip file includes all that's necessary for
an installation, including a modified encoding, a tfm file, and a
ConTeXt support file. No Unicode knowledge necessary.

This is a cut-down version of the below Unicode Symbols package,
designed to be simple and usable with any pdfTeX-centric \ConTeXt\
installation. Little installation, minimal usage effort, and you gain
over a hundred symbols for use in ConTeXt. The PDF file documents how
to use the PDF native ZapfDingbats font along with a catalogue of the
available symbols, and the zip file includes all that's necessary for
an installation, including a modified encoding, a tfm file, and a
ConTeXt support file. No Unicode knowledge necessary.

\chapter{Second}
Another test text.

\completeindex

\stopcomponent
__first.tex_end


As you can see I use \setupindenting[first,medium]
and \indenting[first,always] in my phdenv environment but the first
paragraph in my output file isn't indented. I have tried local
invocation of \setupindenting or \indenting as \par but nothing works...

What's wrong ?

I suspect that I need to improve my ConTeXt practice...

I have got my ConTeXt working with Y&Y Lucida on GNU Linux Debian +
TeXlive2005, I can send my installation trace if it can help for
contextgarden wiki...

Best regards,




___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Re : [NTG-context] Re: Re : [NTG-context] Indentation after formulas

2004-01-21 Thread Giuseppe Bilotta
Wednesday, January 21, 2004 David Munger wrote:

>> Try \setupformulas[indentnext=yes], rather. Of course, you do
>> know that indenting the text following a formula when the text refers to
>> the formula is not a typographical/structural good idea, don't
>> you? ;)

> Ahhh... It works fine with \setupformulas[indentnext=no]. Thanks.

> Actually, I was not trying to indent text following formulas, but rather to
> remove such indentation, which seems to be the default behavior.

> I noticed a \setupformulas[indentnext=auto] in t-amsl.tex. Is it intended to
> indent on a paragraph change following a formula and to make no indentation if
> there's no paragraph change, just like in LaTeX? If it is, I might have to
> upgrade again.

You got the meaning of indentnext=auto correctly. That's the
default, so it *should* work this way: if there is an empty
line after the \], then indent next text; if there is no empty
line, then don't indent next line.

OTOH, I'm thinking there is probably a bug somewhere in there,
because of the \ignorespaces I'm using in the definition of \];
I'll have to look into this.

-- 
Giuseppe "Oblomov" Bilotta


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re : [NTG-context] Re: Re : [NTG-context] Indentation after formulas

2004-01-21 Thread David Munger
Try \setupformulas[indentnext=yes], rather. Of course, you do
know that indenting the text following a formula when the text refers to
the formula is not a typographical/structural good idea, don't
you? ;)
Ahhh... It works fine with \setupformulas[indentnext=no]. Thanks.

Actually, I was not trying to indent text following formulas, but rather to  
remove such indentation, which seems to be the default behavior.

I noticed a \setupformulas[indentnext=auto] in t-amsl.tex. Is it intended to  
indent on a paragraph change following a formula and to make no indentation if  
there's no paragraph change, just like in LaTeX? If it is, I might have to  
upgrade again.

David
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Re : [NTG-context] Indentation after formulas

2004-01-21 Thread Giuseppe Bilotta
Tuesday, January 20, 2004 David Munger wrote:


>> Let
>> \placeformula
>> \[
>> f(x) = x^2,
>> \]
>> where $x$ means nothing.


> I've found that inserting

> \let\startformula\startmpformula
> \let\stopformula\stopmpformula

> before \usemodule[nath] does the trick. But I feel it's not a very good idea.
> Any advice?

It's not a good idea indeed.

Try \setupformulas[indentnext=yes], rather. Of course, you do
know that indenting the text following a formula when the text refers to
the formula is not a typographical/structural good idea, don't
you? ;)

-- 
Giuseppe "Oblomov" Bilotta

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re : [NTG-context] Indentation after formulas

2004-01-20 Thread David Munger

Let
\placeformula
\[
f(x) = x^2,
\]
where $x$ means nothing.


I've found that inserting

\let\startformula\startmpformula
\let\stopformula\stopmpformula
before \usemodule[nath] does the trick. But I feel it's not a very good idea.  
Any advice?

David
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Indentation after formulas

2004-01-15 Thread David Munger
Hello,

Compiling the following results in indented text following the formula:

% interface=en tex=pdfetex output=pdftex
\usemodule [nath]
\setupindenting [medium]
\starttext
\section{Some section}
Let
\placeformula
\[
 f(x) = x^2,
\]
where $x$ means nothing.
\stoptext
I'd like "where $x$ means nothing." not to be indented as a new paragraph.

Am I doing something wrong?

David
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Indentation after formulas

2004-01-15 Thread David Munger
Hello,

Compiling the following results in indented text following the formula:

% interface=en tex=pdfetex output=pdftex
\usemodule [nath]
\setupindenting [medium]
\starttext
\section{Some section}
Let
\placeformula
\[
f(x) = x^2,
\]
where $x$ means nothing.
\stoptext
I'd like "where $x$ means nothing." not to be indented as a new paragraph.

Am I doing something wrong?

David
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context