ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] How to put a ___ before enumerations in ConTeXt?
       [not found] <961334425.1594797.1732580246800.ref@mail.yahoo.com>
@ 2024-11-26  0:17 ` Joel via ntg-context
  2024-11-26  0:39   ` [NTG-context] " Gavin via ntg-context
  0 siblings, 1 reply; 2+ messages in thread
From: Joel via ntg-context @ 2024-11-26  0:17 UTC (permalink / raw)
  To: Mailing List for ConTeXt Users; +Cc: Joel


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

\starttext

\defineitemgroup[numberunderlinelist]
\setupitemgroup[numberunderlinelist][symbol=n,  stopper={.~\blackrule[width=2em, height=0pt, depth=0.5pt]}, width=4em]


\startnumberunderlinelist
    \dorecurse{100}{\startitem hello \stopitem}
\stopnumberunderlinelist

\stoptext

I have used the above code to make enumerations looking like this:
1. ___ this is some text
2. ___ this is some text
3. ___ this is some text
4. ___ this is some text

The underline is there for students to enter an answer, like a-d.
The problem I find it is looks really messy putting the ___ between the numbering and text, such when you get to numbers that are wider, like 10., the ___ doesn't line up right. I also think its too confusing this way for students to know what to write. Is there a way to move the ___ bit out front of the number?
It would look like this:
____ 1. this is some text
____ 2. this is some text
--Joel

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

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

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

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

* [NTG-context] Re: How to put a ___ before enumerations in ConTeXt?
  2024-11-26  0:17 ` [NTG-context] How to put a ___ before enumerations in ConTeXt? Joel via ntg-context
@ 2024-11-26  0:39   ` Gavin via ntg-context
  0 siblings, 0 replies; 2+ messages in thread
From: Gavin via ntg-context @ 2024-11-26  0:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Gavin

Hi Joel,

I think the “left=…” key gives what you want. I found it at https://wiki.contextgarden.net/Command/_startitemgroup

\starttext

\defineitemgroup[numberunderlinelist]
\setupitemgroup[numberunderlinelist][symbol=n, left={\blackrule[width=2em, height=0pt, depth=0.5pt]~}, stopper=., width=4em]


\startnumberunderlinelist
    \dorecurse{100}{\startitem hello \stopitem}
\stopnumberunderlinelist

\stoptext

This gives me output that looks like your request.

-Gavin


> On Nov 25, 2024, at 5:17 PM, Joel via ntg-context <ntg-context@ntg.nl> wrote:
> 
> \starttext
> 
> \defineitemgroup[numberunderlinelist]
> \setupitemgroup[numberunderlinelist][symbol=n,  stopper={.~\blackrule[width=2em, height=0pt, depth=0.5pt]}, width=4em]
> 
> 
> \startnumberunderlinelist
>     \dorecurse{100}{\startitem hello \stopitem}
> \stopnumberunderlinelist
> 
> \stoptext
> 
> I have used the above code to make enumerations looking like this:
> 
> 1. ___ this is some text
> 
> 2. ___ this is some text
> 
> 3. ___ this is some text
> 
> 4. ___ this is some text
> 
> 
> The underline is there for students to enter an answer, like a-d.
> 
> The problem I find it is looks really messy putting the ___ between the numbering and text, such when you get to numbers that are wider, like 10., the ___ doesn't line up right. I also think its too confusing this way for students to know what to write. Is there a way to move the ___ bit out front of the number?
> 
> It would look like this:
> 
> ____ 1. this is some text
> 
> ____ 2. this is some text
> 
> --Joel
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________

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

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

end of thread, other threads:[~2024-11-26  0:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <961334425.1594797.1732580246800.ref@mail.yahoo.com>
2024-11-26  0:17 ` [NTG-context] How to put a ___ before enumerations in ConTeXt? Joel via ntg-context
2024-11-26  0:39   ` [NTG-context] " Gavin via ntg-context

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).