Section number in the margin and the section title followed by paragraph!
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
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
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
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
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
participants (3)
-
Ali Ali
-
Pablo Rodriguez
-
Wolfgang Schuster