ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Section number in the margin and the section title followed by paragraph!
@ 2024-01-27  5:03 Ali Ali
  2024-01-27  8:33 ` [NTG-context] " Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Ali Ali @ 2024-01-27  5:03 UTC (permalink / raw)
  To: ntg-context

I've able to achieve the results I wanted by trial/errrr using the code shown below.
"""
\def\subsecnumwrapper#1{\llap{#1\hskip8pt}}
\setuphead[subsection][alternative=text,numbercommand=\subsecnumwrapper,distance=0pt]
"""

I just wanted to know if there already an option defined to achieve the desired result.

Best regards,
Ali
___________________________________________________________________________________
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] 5+ messages in thread

* [NTG-context] Re: Section number in the margin and the section title followed by paragraph!
  2024-01-27  5:03 [NTG-context] Section number in the margin and the section title followed by paragraph! Ali Ali
@ 2024-01-27  8:33 ` Wolfgang Schuster
  2024-01-27 16:40   ` Ali Ali
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2024-01-27  8:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Ali Ali

Ali Ali schrieb am 27.01.2024 um 06:03:
> I've able to achieve the results I wanted by trial/errrr using the code shown below.
> """
> \def\subsecnumwrapper#1{\llap{#1\hskip8pt}}
> \setuphead[subsection][alternative=text,numbercommand=\subsecnumwrapper,distance=0pt]
> """
>
> I just wanted to know if there already an option defined to achieve the desired result.

\setuphead [subsection] [alternative=margin]
%\setuphead [subsection] [alternative=inmargin]
%\setuphead [subsection] [alternative=margintext]

Wolfgang

___________________________________________________________________________________
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] 5+ messages in thread

* [NTG-context] Re: Section number in the margin and the section title followed by paragraph!
  2024-01-27  8:33 ` [NTG-context] " Wolfgang Schuster
@ 2024-01-27 16:40   ` Ali Ali
  2024-01-27 17:40     ` Pablo Rodriguez via ntg-context
  0 siblings, 1 reply; 5+ messages in thread
From: Ali Ali @ 2024-01-27 16:40 UTC (permalink / raw)
  To: ntg-context

Thanks, those seems close to what I wanted but not exactly.

The ASCII graphic (better in typewriter font) may explain what I desired,
```
                    text width
     |<------------------------------------>|

##.   SECTION TITLE     paragraph............
      .......................................
      .................

|<-->|
margin
```
I wanted paragraph to begin on the same line the section title lies.

Best regards,
Ali
___________________________________________________________________________________
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] 5+ messages in thread

* [NTG-context] Re: Section number in the margin and the section title followed by paragraph!
  2024-01-27 16:40   ` Ali Ali
@ 2024-01-27 17:40     ` Pablo Rodriguez via ntg-context
  2024-01-28  9:29       ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2024-01-27 17:40 UTC (permalink / raw)
  To: ntg-context; +Cc: Pablo Rodriguez

On 1/27/24 17:40, Ali Ali wrote:
> Thanks, those seems close to what I wanted but not exactly.
>
> The ASCII graphic (better in typewriter font) may explain what I desired,
> ```
>                     text width
>      |<------------------------------------>|
>
> ##.   SECTION TITLE     paragraph............
>       .......................................
>       .................
>
> |<-->|
> margin
> ```
> I wanted paragraph to begin on the same line the section title lies.

Hi Ali,

from what I understand, you need both alternative=inmargin (or margin)
and alternative=text.

I’m afraid they are mutually exclusive alternative modes.

Just in case it might help,

Pablo

___________________________________________________________________________________
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] 5+ messages in thread

* [NTG-context] Re: Section number in the margin and the section title followed by paragraph!
  2024-01-27 17:40     ` Pablo Rodriguez via ntg-context
@ 2024-01-28  9:29       ` Wolfgang Schuster
  0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Schuster @ 2024-01-28  9:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Pablo Rodriguez via ntg-context
  Cc: Pablo Rodriguez

Pablo Rodriguez via ntg-context schrieb am 27.01.2024 um 18:40:
> On 1/27/24 17:40, Ali Ali wrote:
>> Thanks, those seems close to what I wanted but not exactly.
>>
>> The ASCII graphic (better in typewriter font) may explain what I desired,
>> ```
>>                      text width
>>       |<------------------------------------>|
>>
>> ##.   SECTION TITLE     paragraph............
>>        .......................................
>>        .................
>>
>> |<-->|
>> margin
>> ```
>> I wanted paragraph to begin on the same line the section title lies.

\define[1]\SectionNumberCommand
   {\margindata[inmargin][scope=local]{#1}}

\setuphead
   [section]
   [alternative=text,
    numbercommand=\SectionNumberCommand,
    distance=0pt]

\starttext

\section{Lorem}

\samplefile{lorem}

\stoptext

Wolfgang

___________________________________________________________________________________
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] 5+ messages in thread

end of thread, other threads:[~2024-01-28  9:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-27  5:03 [NTG-context] Section number in the margin and the section title followed by paragraph! Ali Ali
2024-01-27  8:33 ` [NTG-context] " Wolfgang Schuster
2024-01-27 16:40   ` Ali Ali
2024-01-27 17:40     ` Pablo Rodriguez via ntg-context
2024-01-28  9:29       ` Wolfgang Schuster

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