ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Question about an environment
@ 2018-01-28 21:54 Fabrice Couvreur
  2018-01-31 11:17 ` Fabrice Couvreur
  2018-02-02 17:17 ` Wolfgang Schuster
  0 siblings, 2 replies; 6+ messages in thread
From: Fabrice Couvreur @ 2018-01-28 21:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 829 bytes --]

Hello,
How to make the first item on the baseline of the numbering as in the first
exercise ?
Thanks.
Fabrice

\defineframed
  [ACFRAME]
  [frame=off,
   boffset=0pt,
   width=fit,
   align=flushleft,
   location=low,
   background=color,
   backgroundcolor=MyColorA]

\defineframed
  [EXFRAME]
  [frame=off,
   offset=0pt,
   location=low,
   width=\struttotal,
   background=color,
   backgroundcolor=black,
   foregroundcolor=white,
   forgroundstyle=bold]

\defineprocessor[ACPROCESSOR][command=\EXFRAME]
\defineconversionset[ACCONVERSION][][ACPROCESSOR->n]

\defineenumeration
  [ex]
  [text=,
   width=fit,
   numberconversionset=ACCONVERSION,
   alternative=serried,
   number=yes]

\starttext
\startex
\input ward
\stopex
\startex
  \startitemize[n]
  \item One
  \item Two
  \item Three
  \stopitemize
\stopex
\stoptext

[-- Attachment #1.2: Type: text/html, Size: 1266 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

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

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

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

* Re: Question about an environment
  2018-01-28 21:54 Question about an environment Fabrice Couvreur
@ 2018-01-31 11:17 ` Fabrice Couvreur
  2018-02-02 17:17 ` Wolfgang Schuster
  1 sibling, 0 replies; 6+ messages in thread
From: Fabrice Couvreur @ 2018-01-31 11:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1329 bytes --]

Hello,
Maybe I have not been clear enough about what I would like to do ?
In the first exercise, I get this:

*Ex1* BlablaBlablaBlablaBlablaBlablaBlablaBlablaBlabla
BlablaBlablaBlablaBlablaBlablaBlablaBlablaBlabla

In the second exercise, this:

*Ex2*

1.

2.

3.

I would like to do this:

*Ex2* 1.
2.
3.

Thank you.
Fabrice

2018-01-28 22:54 GMT+01:00 Fabrice Couvreur <fabrice1.couvreur@gmail.com>:

> Hello,
> How to make the first item on the baseline of the numbering as in the
> first exercise ?
> Thanks.
> Fabrice
>
> \defineframed
>   [ACFRAME]
>   [frame=off,
>    boffset=0pt,
>    width=fit,
>    align=flushleft,
>    location=low,
>    background=color,
>    backgroundcolor=MyColorA]
>
> \defineframed
>   [EXFRAME]
>   [frame=off,
>    offset=0pt,
>    location=low,
>    width=\struttotal,
>    background=color,
>    backgroundcolor=black,
>    foregroundcolor=white,
>    forgroundstyle=bold]
>
> \defineprocessor[ACPROCESSOR][command=\EXFRAME]
> \defineconversionset[ACCONVERSION][][ACPROCESSOR->n]
>
> \defineenumeration
>   [ex]
>   [text=,
>    width=fit,
>    numberconversionset=ACCONVERSION,
>    alternative=serried,
>    number=yes]
>
> \starttext
> \startex
> \input ward
> \stopex
> \startex
>   \startitemize[n]
>   \item One
>   \item Two
>   \item Three
>   \stopitemize
> \stopex
> \stoptext
>

[-- Attachment #1.2: Type: text/html, Size: 2711 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

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

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

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

* Re: Question about an environment
  2018-01-28 21:54 Question about an environment Fabrice Couvreur
  2018-01-31 11:17 ` Fabrice Couvreur
@ 2018-02-02 17:17 ` Wolfgang Schuster
  2018-02-03 10:20   ` Fabrice Couvreur
  1 sibling, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2018-02-02 17:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 762 bytes --]



> Fabrice Couvreur <mailto:fabrice1.couvreur@gmail.com>
> 28. Januar 2018 um 22:54
> Hello,
> How to make the first item on the baseline of the numbering as in the 
> first exercise ?

You have put the item environment in a box.

\defineenumeration
   [ex]
   [alternative=serried,
    width=2em,
    distance=0pt,
    text=]

\starttext

\startex
     \dontleavehmode\beginvtop
         % to remove the overfull \hbox message reduce \hsize with
         % the width and distance values of the enumeration
         % \hsize\dimexpr\textwidth-2em\relax
         \startitemize[joinedup]
         \startitem First \stopitem
         \startitem Second \stopitem
         \startitem Third \stopitem
         \stopitemize
     \endvtop
\stopex

\stoptext


Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 2148 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

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

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

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

* Re: Question about an environment
  2018-02-02 17:17 ` Wolfgang Schuster
@ 2018-02-03 10:20   ` Fabrice Couvreur
  2018-02-03 13:29     ` Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: Fabrice Couvreur @ 2018-02-03 10:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1588 bytes --]

Hi Wolfgang,
Thank you, we get almost what I want.
With your suggestion, we have this :

1. First
    Second
    Third

Is it possible to have this :

1. First
Second
Third

Thank you.
Fabrice

2018-02-02 18:17 GMT+01:00 Wolfgang Schuster <schuster.wolfgang@gmail.com>:

>
>
> Fabrice Couvreur <fabrice1.couvreur@gmail.com>
> 28. Januar 2018 um 22:54
> Hello,
> How to make the first item on the baseline of the numbering as in the
> first exercise ?
>
>
> You have put the item environment in a box.
>
> \defineenumeration
>   [ex]
>   [alternative=serried,
>    width=2em,
>    distance=0pt,
>    text=]
>
> \starttext
>
> \startex
>     \dontleavehmode\beginvtop
>         % to remove the overfull \hbox message reduce \hsize with
>         % the width and distance values of the enumeration
>         % \hsize\dimexpr\textwidth-2em\relax
>         \startitemize[joinedup]
>         \startitem First \stopitem
>         \startitem Second \stopitem
>         \startitem Third \stopitem
>         \stopitemize
>     \endvtop
> \stopex
>
> \stoptext
>
>
> Wolfgang
>
> ____________________________________________________________
> _______________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/
> listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ____________________________________________________________
> _______________________
>

[-- Attachment #1.2: Type: text/html, Size: 4212 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

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

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

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

* Re: Question about an environment
  2018-02-03 10:20   ` Fabrice Couvreur
@ 2018-02-03 13:29     ` Wolfgang Schuster
  2018-02-04 11:50       ` Fabrice Couvreur
  0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2018-02-03 13:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 596 bytes --]


> Fabrice Couvreur <mailto:fabrice1.couvreur@gmail.com>
> 3. Februar 2018 um 11:20
> Hi Wolfgang,
> Thank you, we get almost what I want.
> With your suggestion, we have this :
>
> 1. First
> Second
> Third
>
> Is it possible to have this :
>
> 1. First
> Second
> Third

Use inline items and add \par (or a empty line) after each line.

\defineenumeration
   [ex]
   [alternative=serried,
    width=2em,
    distance=0pt,
    text=]

\starttext

\startex
     \startitemize[text]
     \item First \par
     \item Second \par
     \item Third \par
     \stopitemize
\stopex

\stoptext

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 2106 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

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

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

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

* Re: Question about an environment
  2018-02-03 13:29     ` Wolfgang Schuster
@ 2018-02-04 11:50       ` Fabrice Couvreur
  0 siblings, 0 replies; 6+ messages in thread
From: Fabrice Couvreur @ 2018-02-04 11:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1263 bytes --]

Hello Wolfgang,
Thanks.
Fabrice

2018-02-03 14:29 GMT+01:00 Wolfgang Schuster <schuster.wolfgang@gmail.com>:

>
> Fabrice Couvreur <fabrice1.couvreur@gmail.com>
> 3. Februar 2018 um 11:20
> Hi Wolfgang,
> Thank you, we get almost what I want.
> With your suggestion, we have this :
>
> 1. First
>     Second
>     Third
>
> Is it possible to have this :
>
> 1. First
> Second
> Third
>
>
> Use inline items and add \par (or a empty line) after each line.
>
> \defineenumeration
>   [ex]
>   [alternative=serried,
>    width=2em,
>    distance=0pt,
>    text=]
>
> \starttext
>
> \startex
>     \startitemize[text]
>     \item First \par
>     \item Second \par
>     \item Third \par
>     \stopitemize
> \stopex
>
> \stoptext
>
> Wolfgang
>
> ____________________________________________________________
> _______________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/
> listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ____________________________________________________________
> _______________________
>

[-- Attachment #1.2: Type: text/html, Size: 3917 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

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

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

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

end of thread, other threads:[~2018-02-04 11:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-28 21:54 Question about an environment Fabrice Couvreur
2018-01-31 11:17 ` Fabrice Couvreur
2018-02-02 17:17 ` Wolfgang Schuster
2018-02-03 10:20   ` Fabrice Couvreur
2018-02-03 13:29     ` Wolfgang Schuster
2018-02-04 11:50       ` Fabrice Couvreur

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