* [NTG-context] Vertical space between section and subsection.
@ 2024-12-17 23:25 Jeong Dal via ntg-context
2024-12-18 8:04 ` [NTG-context] " Henning Hraban Ramm
0 siblings, 1 reply; 4+ messages in thread
From: Jeong Dal via ntg-context @ 2024-12-17 23:25 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Jeong Dal
[-- Attachment #1.1: Type: text/plain, Size: 1636 bytes --]
Hi,
I use the following code to make a class material.
When I use \startcolumns … \stopcolumns, the vertical space between section title and subsection title so big.
1. Is there a way to reduce the vertical space between them?
2. Is there a way to make section command simpler?
Thank you for reading.
Best regards,
Dalyoung
\startbuffer[styleOutline]
\startuseMPgraphic{outlineT}
draw lmt_outline [
text = \MPvar{tt},
kind = "both",
width = OverlayWidth,
align = "middle",
fillcolor = "gray",
rulethickness = 1pt,
drawcolor = "dBlue"
] ;
\stopuseMPgraphic
\define[1]\outlineTitle{\useMPgraphic{outlineT}{tt="#1"}}
\setuphead[chapter,title]
[textcommand=\outlineTitle,
textstyle=\BigFontThree,
numberstyle=\BigFontThree,
numbercommand=\outlineTitle,
align=middle,%flushright,
number=yes]
\define[2]\SectionCommand%
{\framed
[frame=off,
width=\textwidth,
align={right},
background=color,
backgroundcolor=lightgray]
{\hbox to.011\textwidth{}\hbox to.05\textwidth{\strut#1}\quad
\vtop{\hsize\dimexpr\hsize-.061\textwidth-1em\relax\begstrut#2
\endstrut}}}
\setuphead[section][command=\SectionCommand,numbercolor=, style=\ss\bf]
\setuphead[subsection][command=,style=\ss\bf]%%%%%%%%%
\stopbuffer
\getbuffer[styleOutline]
\showframe
\starttext
\startcolumns
\section{First}
\subsection{firstsub}
\dorecurse{3}{\samplefile{knuth}}
\section{Second}
\subsection{secondsub}
\dorecurse{3}{\samplefile{ward}}
\stopcolumns
\stoptext
[-- Attachment #1.2: Type: text/html, Size: 10290 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] 4+ messages in thread
* [NTG-context] Re: Vertical space between section and subsection.
2024-12-17 23:25 [NTG-context] Vertical space between section and subsection Jeong Dal via ntg-context
@ 2024-12-18 8:04 ` Henning Hraban Ramm
2024-12-18 11:13 ` Jeong Dal via ntg-context
0 siblings, 1 reply; 4+ messages in thread
From: Henning Hraban Ramm @ 2024-12-18 8:04 UTC (permalink / raw)
To: ntg-context
Am 18.12.24 um 00:25 schrieb Jeong Dal via ntg-context:
> Hi,
>
> I use the following code to make a class material.
>
> When I use \startcolumns … \stopcolumns, the vertical space between
> section title and subsection title so big.
>
> 1. Is there a way to reduce the vertical space between them?
> 2. Is there a way to make section command simpler?
Be aware that columns are operating in grid mode. That means that all
lines are typeset on the next available line of the body text grid, you
can visualize it with \showgrid.
You can adapt the interlinespacing of bigger fonts (subtitles) to that
of the grid using \setupbodyfontenvironment.
More details on grid snapping are, well, in the details (details.pdf
manual).
Hraban
___________________________________________________________________________________
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] 4+ messages in thread
* [NTG-context] Re: Vertical space between section and subsection.
2024-12-18 8:04 ` [NTG-context] " Henning Hraban Ramm
@ 2024-12-18 11:13 ` Jeong Dal via ntg-context
2024-12-19 18:53 ` Henning Hraban Ramm
0 siblings, 1 reply; 4+ messages in thread
From: Jeong Dal via ntg-context @ 2024-12-18 11:13 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Jeong Dal
Dear Hraban,
Thank you for reply.
I read details.pdf.
However, it is not easy for me to understand.
And, my trial of some command is not working.
I need more study to know correctly.
Best regards,
Dalyoung
> 2024. 12. 18. 오후 5:04, Henning Hraban Ramm <texml@fiee.net> 작성:
>
> Am 18.12.24 um 00:25 schrieb Jeong Dal via ntg-context:
>> Hi,
>> I use the following code to make a class material.
>> When I use \startcolumns … \stopcolumns, the vertical space between section title and subsection title so big.
>> 1. Is there a way to reduce the vertical space between them?
>> 2. Is there a way to make section command simpler?
>
> Be aware that columns are operating in grid mode. That means that all lines are typeset on the next available line of the body text grid, you can visualize it with \showgrid.
>
> You can adapt the interlinespacing of bigger fonts (subtitles) to that of the grid using \setupbodyfontenvironment.
>
> More details on grid snapping are, well, in the details (details.pdf manual).
>
> Hraban
> ___________________________________________________________________________________
> 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] 4+ messages in thread
* [NTG-context] Re: Vertical space between section and subsection.
2024-12-18 11:13 ` Jeong Dal via ntg-context
@ 2024-12-19 18:53 ` Henning Hraban Ramm
0 siblings, 0 replies; 4+ messages in thread
From: Henning Hraban Ramm @ 2024-12-19 18:53 UTC (permalink / raw)
To: ntg-context
Am 18.12.24 um 12:13 schrieb Jeong Dal via ntg-context:
> I read details.pdf.
> However, it is not easy for me to understand.
Yes, it is quite advanced; I don’t claim to understand all of it.
But I guess several hints in that manual might apply to your problem.
> And, my trial of some command is not working.
Please report.
> I need more study to know correctly.
Good luck!
Hraban
___________________________________________________________________________________
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] 4+ messages in thread
end of thread, other threads:[~2024-12-19 18:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-17 23:25 [NTG-context] Vertical space between section and subsection Jeong Dal via ntg-context
2024-12-18 8:04 ` [NTG-context] " Henning Hraban Ramm
2024-12-18 11:13 ` Jeong Dal via ntg-context
2024-12-19 18:53 ` Henning Hraban Ramm
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).