[NTG-context] Re: Nested itemize

2023-08-22 Thread fv leung
opitem > \stopitemize > > \samplefile{ward} > \stoptext > > A. Christe > Le 22 août 2023 à 07:12 +0200, Alexandre Christe , > a écrit : > > It’s true that \vtop{…} does the job for a single line of items, but it > doesn’t in the case there’re multiple (\vtop{}

[NTG-context] Re: Nested itemize

2023-08-22 Thread Alexandre Christe
aligns with the bottom. > > Here’s a modified MWE > > \startitemize[n][style=\bf] >   \item \godown[-\lineheight] \startitemize > [a,columns,two,packed,broad][stopper=),before={\blank[nowhite]}] >     \item $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$ >     \item $-3(x - \dfrac{1}{3})^2

[NTG-context] Re: Nested itemize

2023-08-22 Thread Mikael Sundqvist
Hi, On Tue, Aug 22, 2023 at 7:16 AM Alexandre Christe wrote: > > It’s true that \vtop{…} does the job for a single line of items, but it > doesn’t in the case there’re multiple (\vtop{}) aligns with the bottom. > > Here’s a modified MWE > > \startitemize[n][style=\

[NTG-context] Re: Nested itemize

2023-08-21 Thread Alexandre Christe
It’s true that \vtop{…} does the job for a single line of items, but it doesn’t in the case there’re multiple (\vtop{}) aligns with the bottom. Here’s a modified MWE \startitemize[n][style=\bf]   \item \godown[-\lineheight] \startitemize [a,columns,two,packed,broad][stopper=),before={\blank

[NTG-context] Re: Nested itemize

2023-08-21 Thread fv leung
solution to this issue. When > having mathematics, I'd not like to adjust by hand the factor of \linewidth > for the \godown command. > > Here's a MWE > > \starttext > > \startitemize[n][style=\bf] > \item \godown[-\lineheight] \startitemize > [a,columns,four,packed,

[NTG-context] Re: Nested itemize

2023-08-21 Thread Alexandre Christe
Dear ConTeXt users, Time goes by but I haven't yet found a nice solution to this issue. When having mathematics, I'd not like to adjust by hand the factor of \linewidth for the \godown command. Here's a MWE \starttext \startitemize[n][style=\bf] \item \godown[-\lineheight] \startitemize

[NTG-context] Trial to use LibreOffice Calc (+ python) to build ConTeXt customized environnements files

2023-04-10 Thread Garulfo via ntg-context
leur15] \setupcolors [ textcolor=CouleurPrincipale, ] \setuphead [part] [ style=\bfd, textcolor=Couleur1, numbercolor=CouleurContraste1, bodypartlabel=Part, placehead=yes, page=left, header=high, align=flushleft, alternative=middle, before={\strut\godown[

[NTG-context] Is there an "align with item on facing page" option?

2022-09-25 Thread Bruce Horrocks via ntg-context
spread) appear nicely symmetrical. Currently I'm using \godown[\dimexpr80mm-\pagetotal] (for A5 pages) between each pair which works nicely in that if the first biography is too long it overlaps and I know to edit it to be shorter. However, if the second biography is a little long, it pushes

Re: [NTG-context] Nested itemize

2022-09-02 Thread fv leung via ntg-context
\starttext \startitemize[n] \item\godown[-\lineheight] \startitemize[a,columns,packed][before={\blank[nowhite]},right=\),stopper=] \item bla \item bla \item bla \item bla \stopitemize \item\godown[-\lineheight] \startitemize[a,columns,packed][before={\blank[nowhite]},n=3,right

[NTG-context] location=outer causes bad page break in LMTX

2021-11-30 Thread Marco Patzer via ntg-context
Hi! In the following example “Lorem ipsum” sits on an otherwise empty page in LMTX. Output is as expected with MkIV. Has the interface changed or may it be a bug in LMTX? \starttext \null\godown [15.5cm] \samplefile{knuth} Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod

[NTG-context] Pagenumbering with \setupcounter[userpagenumber]

2020-07-29 Thread Willi Egger
] [{\getmarking[chapter]}] \setupfootertexts [] [\pagenumber] [\pagenumber] [] \setupmakeup[standard][top=,bottom=,doublesided=yes] \setupcounter[userpagenumber][state=stop] \starttext \startstandardmakeup[page=yes,doublesided=yes] \strut \godown

Re: [NTG-context] adding font feature tnum in the TOC

2016-03-29 Thread Willi Egger
>>> If I am correct then one should be able to enable the font feature tnum for >>> the page-numbers with “pagecommand=“. >>> >>> I have >>> >>> \setuphead >>> [section] >>> [aftersection=\page, textstyle=\bfd, numberstyle=\bfd

Re: [NTG-context] adding font feature tnum in the TOC

2016-03-29 Thread Willi Egger
>> >> If I am correct then one should be able to enable the font feature tnum for >> the page-numbers with “pagecommand=“. >> >> I have >> >> \setuphead >> [section] >> [aftersection=\page, textstyle=\bfd, numberstyle=\bfd, align=middle, >

Re: [NTG-context] adding font feature tnum in the TOC

2016-03-29 Thread Wolfgang Schuster
e=\bfd, align=middle, after={\godown[-1\lineheight]}, number=no] \setuplist[section][pagecommand={\addfeature[tnum]#1\subtractfeature[tnum]}] However if I do this then I get the pagenumber prefixed with ‘section’ e.g. bbb bar buch bühne section3 What am I doing in the wrong way? \setuplist[c

[NTG-context] adding font feature tnum in the TOC

2016-03-29 Thread Willi Egger
Hi, hm, I am a little puzzled… If I am correct then one should be able to enable the font feature tnum for the page-numbers with “pagecommand=“. I have \setuphead [section] [aftersection=\page, textstyle=\bfd, numberstyle=\bfd, align=middle, after={\godown[-1\lineheight

[NTG-context] Two column layout with footnotes do not work as expected

2015-10-23 Thread Dr. Thomas Möbius
][n=2] \starttext \title{Two Column Layout with Footnotes Spanning Page} \startabstract Footnotes start at the wrong place. And why is blank[big] ignored after this abstract? \stopabstract \godown[1em] \startcolumnset[TwoColumns] \section{The first} This is a test.\footnote{Why do footnotes only

[NTG-context] problem with buffer

2014-09-15 Thread Kenny
\writestatus{DEBUG}{--dostartsolution...finished} } \def\stopsolution{ \stopSOLUTION \writestatus{DEBUG}{--dostopsolution...1} \doif{\examshowsolutions}{no}{\godown[\solutionheight]} \writestatus{DEBUG}{--dostopsolution...finished} } \starttext \def\examshowsolutions{no} % control whether

Re: [NTG-context] Nested itemize (spaces before and after inside environment)

2013-10-24 Thread Tomas Hala
Hi Jarda and all, I tested it on my computer using CTX from TL 2010 and 2013 and I have got the same result in both cases. It seems that the content of the option before is completely ignored. I tested another values for this option (\page,\vskip,\godown...), no result. The only one way which

Re: [NTG-context] Nested itemize (spaces before and after inside environment)

2013-10-24 Thread Jaroslav Hajtmar
, I tested it on my computer using CTX from TL 2010 and 2013 and I have got the same result in both cases. It seems that the content of the option before is completely ignored. I tested another values for this option (\page,\vskip,\godown...), no result. The only one way which works is the manual

Re: [NTG-context] Set a block of content at minimum distance from top of page?

2012-02-03 Thread Peter Park Nelson
on the upper-right-corner graphic. So, I'm looking for a way to protect the graphic, or to force the Abstract to start a minimum distance from the top of the page. The Abstract can be forced down the page if necessary by manually inserting a \godown[] command before it, but I would prefer

[NTG-context] Set a block of content at minimum distance from top of page?

2012-02-02 Thread Peter Park Nelson
for a way to protect the graphic, or to force the Abstract to start a minimum distance from the top of the page. The Abstract can be forced down the page if necessary by manually inserting a \godown[] command before it, but I would prefer a programmatic solution. Floating the graphic and wrapping text

Re: [NTG-context] Set a block of content at minimum distance from top of page?

2012-02-02 Thread Wolfgang Schuster
that it encroaches on the upper-right-corner graphic. So, I'm looking for a way to protect the graphic, or to force the Abstract to start a minimum distance from the top of the page. The Abstract can be forced down the page if necessary by manually inserting a \godown[] command before it, but I would

Re: [NTG-context] Set a block of content at minimum distance from top of page?

2012-02-02 Thread Peter Park Nelson
the page if necessary by manually inserting a \godown[] command before it, but I would prefer a programmatic solution. Floating the graphic and wrapping text around it does not seem like a good option, because I want to ensure that its position is absolute and it never moves. Also, the Abstract

Re: [NTG-context] Title page for diploma thesis

2011-12-04 Thread Willi Egger
the result you desire... Not knowing wether this is better I use sometimes \godown[dimension] 2. Looking at the output it is not centered exactly and a little bit to the left. Why is this the default? Does anyone know? Looking at the manual [2] in chapter page design (p. 29, screen version

Re: [NTG-context] Title page for diploma thesis

2011-12-04 Thread Willi Egger
\godown[dimension] 2. Looking at the output it is not centered exactly and a little bit to the left. Why is this the default? Does anyone know? Looking at the manual [2] in chapter page design (p. 29, screen version) this seems to be the backspace value. Is there an easy way to center

Re: [NTG-context] Standardmakeup

2011-10-22 Thread Wolfgang Schuster
Am 21.10.2011 um 21:01 schrieb Willi Egger: Thank you Wolfgang. I do not remember but there was a time where \godown would not work without the strut. So I have mistaken this. The makeup environments put the content in a \vbox and at the begin of a \vbox a vertical skip isn’t discarded

Re: [NTG-context] Standardmakeup

2011-10-21 Thread Willi Egger
Thank you Wolfgang. I do not remember but there was a time where \godown would not work without the strut. So I have mistaken this. And indeed the result is ok whithout the start- stoplines. Thanks! Willi On 20 Oct 2011, at 15:42, Wolfgang Schuster wrote: Am 19.10.2011 um 22:03 schrieb

Re: [NTG-context] Standardmakeup

2011-10-20 Thread Wolfgang Schuster
with inserting an empty line. Add \vfill before \stopstandardmakeup. \setupmakeup[standard][top=,bottom=] \setuplines[before=,after=] \starttext \startstandardmakeup[doublesided=no,page=yes] \strut \godown[.25\textheight] \startalignment[middle] \startlines

Re: [NTG-context] Standardmakeup

2011-10-19 Thread Willi Egger
=,bottom=] \setuplines[before=,after=] \starttext \startstandardmakeup[doublesided=no,page=yes] \strut \godown[.25\textheight] \startalignment[middle] \startlines {\bfd Der Titel} \blank[line

Re: [NTG-context] Hanging indents

2010-04-05 Thread Tom
on blank pages \def\ChapterTitle#1#2{ \centerline{\switchtobodyfont[ChapterStart,18pt]{\ss\bf #2}} \godown[.5in]} \setuphead[chapter] [command= \ChapterTitle,textstyle=bold,header=empty,footer=empty, page=mychapterpagebreak, numbercommand={\switchtobodyfont[big]{\ss\sl}}] \definestartstop

Re: [NTG-context] Hanging indents

2010-04-05 Thread Wolfgang Schuster
,right] %eliminates headers on blank pages You change the style of the number but suppress it in the output, i guess there is some reason for this and i don't understand it. \def\ChapterTitle#1#2{ \centerline{\switchtobodyfont[ChapterStart,18pt]{\ss\bf #2}} \godown[.5in]} \setuphead

Re: [NTG-context] Hanging indents

2010-04-05 Thread Tom
the style of the number but suppress it in the output, i guess there is some reason for this and i don't understand it. \def\ChapterTitle#1#2{ \centerline{\switchtobodyfont[ChapterStart,18pt]{\ss\bf #2}} \godown[.5in]} \setuphead[chapter] [command= \ChapterTitle,textstyle=bold,header

[NTG-context] Figure not placed at margin

2010-02-03 Thread Tom
\Myheader#1#2{ \setupfloats[offset=none,margin=0 in] \startfiguretext [left] [fig:graphic] {none} {\externalfigure[graphic][frame=off]} {\switchtobodyfont[26pt] {\ss\bf\sl #1}} \godown[.5in] {\ss\bf #2} \stopfiguretext} Tom Benjey 717-258-9733 voice 717-243-0074

Re: [NTG-context] Figure not placed at margin

2010-02-03 Thread Hans Hagen
they are supposed to be. Any ideas? \def\Myheader#1#2{ \setupfloats[offset=none,margin=0 in] \startfiguretext [left] [fig:graphic] {none} {\externalfigure[graphic][frame=off]} {\switchtobodyfont[26pt] {\ss\bf\sl #1}} \godown[.5in] {\ss\bf #2} \stopfiguretext

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
} \framedtext[settings] \from[reference] \getbuffer[name] # \getfiguredimensionsonly # \getmarking[name][options] # \getvalue # \getvariable # \globalletvalue \godown[dimension] \goto{text}{text}[references] \gotobox{text}[references] \graycolor[text] \grid[options] # \gsaveXMLasdata \hairline \head

[NTG-context] white around descriptions

2007-06-30 Thread Hans van der Meer
I find a get a lot of whitespace around my defined descriptions. Setting \setupdescriptions[\c!before=,\c!inbetween=,\c!after=] does not much help. Is there something else that can be done. Preferably without resorting to wild guesses like before=\godown[-10pt] or the like

[NTG-context] Help with ConTeXt TaBlE

2007-04-09 Thread Jeremy Johnson
. I also can't seem to find a way to draw a fine double line: \hline \hline \\[-8pt] \HL \MR \HL skips a whole line and godown[] doesn't seem to work in table context. Thanks for any suggestions. pgpEkcGavP9NR.pgp Description: PGP signature

[NTG-context] setupthinrules

2006-01-23 Thread Hans van der Meer
to one another I tried \setupthinrules[height=2pt,depth=0pt,interlinespace=medium] \thinrule\godown[1pt]\thinrule But the natural height of the lines then interfers. Setting \godown [negative amount] will work, of course, but seems unnatural to me. At least I feel it condems me

Re: [NTG-context] \godown

2005-12-06 Thread Taco Hoekwater
having to adjust for little gaps with: \godown[-0.029\bodyfontsize] Does this ring a bell with anyone? The last time I had problems with minute offsets, it was Acrobat's fault. Do you also have problems in DVI mode? Taco ___ ntg-context mailing list

Re: [NTG-context] \godown

2005-12-06 Thread Adam Lindsay
Hans Hagen wrote: Adam Lindsay wrote: having to adjust for little gaps with: \godown[-0.029\bodyfontsize] Does this ring a bell with anyone? I would have thought \godown[0pt] was the answer, but not so, here. The font metrics seem to be right, adding up to 1000 in both directions

Re: Antwort: Re: [NTG-context] distance with \godown

2005-10-21 Thread Willi Egger
in the metafun manual. Have a good weekend Willi Jessica Holle wrote: Yes this works. Thx, But I've testet it with godown=0pt When I say this is to much distance between the kastens and comment \godown=0pt out there is the same strange thing. When I comment it on all my pages out there is a bigger

Re: Antwort: Re: [NTG-context] distance with \godown

2005-10-21 Thread Hans Hagen Test
Jessica Holle wrote: Yes this works. Thx, But I've testet it with godown=0pt When I say this is to much distance between the kastens and comment \godown=0pt out there is the same strange thing. When I comment it on all my pages out there is a bigger distance between the first and second kasten

[NTG-context] long quotation problem

2005-10-21 Thread Alan Bowen
\definestartstop[extract][ before={\godown[0.10pc] \indenting[next] \setupnarrower[left=1.5pc,right=1.5pc] \startnarrower[left,right]}, after={\stopnarrower \godown[0.25pc] \indenting[yes]}] \starttext Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi

Re: [NTG-context] long quotation problem

2005-10-21 Thread Peter Rolf
] \setupfootnotes[indenting=yes] \setupfootnotes[interaction=yes] \setupnotedefinition[footnote][indenting={big,yes}] % Extract setup \definestartstop[extract][ before={\godown[0.10pc] \blank[0.25pc,force] % 0.10pc is not enough \indenting[next

Re: [NTG-context] long quotation problem

2005-10-21 Thread Willi Egger
Hi Alan, I tried your code. I made the extract to be typeset in red.- Indeed a poor spacing. I withdrew the \godown[0.10pc]. The result looked fine to me. Then I replaced the \godown by \blank[halfline], the result was again o.k. Finally the \godown[0.10pc] was replaced with \godown[12pt

Re: [NTG-context] long quotation problem

2005-10-21 Thread Hans Hagen Test
the amount of thinking an coder has to do, and so would really like to define the startextract..\stopextract environment more effectively. don't use \godown, use \blank since it is more clever in accumulating cq. handling vertical spaces; also, \defineblank[footnotedistance][.1pc

Re: [NTG-context] long quotation problem

2005-10-21 Thread Hans Hagen Test
Willi Egger wrote: Hi Alan, I tried your code. I made the extract to be typeset in red.- Indeed a poor spacing. I withdrew the \godown[0.10pc]. The result looked fine to me. Then I replaced the \godown by \blank[halfline], the result was again o.k. Finally the \godown[0.10pc] was replaced

[NTG-context] distance with \godown

2005-10-20 Thread Jessica Holle
, use the overlay as a background and nice I have my menu. But then I make a small space with \godown and now the framed section goes down and up from page to page. This phenomenon is only when I do the link (\goto) on the whole framed. When I put the link on the text there is no problem. Hope aou

Re: [NTG-context] distance with \godown

2005-10-20 Thread Willi Egger
with this as the background. Then I defined a framed box with the same values as the graphic, use the overlay as a background and nice I have my menu. But then I make a small space with \godown and now the framed section goes down and up from page to page. This phenomenon is only when I do the link

Antwort: Re: [NTG-context] distance with \godown

2005-10-20 Thread Jessica Holle
Yes this works. Thx, But I've testet it with godown=0pt When I say this is to much distance between the kastens and comment \godown=0pt out there is the same strange thing. When I comment it on all my pages out there is a bigger distance between the first and second kasten. Why? Why only

[NTG-context] \starttabulate vertical spacing

2005-08-11 Thread Christoph Czarnetzki
for me. \godown doesnt work either. Half of a line in space would be great. I tried that with starttable too, but the \HL command in tabulate works better. The text is aligned directly under the ends of the line. So i use tabulate. And the other problem is, crlf only works if tab is set to |p

Re: [NTG-context] \starttabulate vertical spacing

2005-08-11 Thread Hans Hagen
it with \crlf, but this is too much for me. \godown doesnt work either. Half of a line in space would be great. I tried that with starttable too, but the \HL command in tabulate works better. The text is aligned directly under the ends of the line. So i use tabulate. And the other problem is, crlf only

Re: [NTG-context] \starttabulate vertical spacing

2005-08-11 Thread Christoph Czarnetzki
Hello Hans, it's better, but not the space value i want. To see the difference: \starttext \starttabulate[|l|p|] \NC Some Text \NC Other Text \NC\NR\HL \NC Some Text \NC Other Text \NC\NR \TB \NC Some Text \NC Other Text \NC\NR \NC Some Text \NC Other Text \NC\NR \stoptabulate \godown[3cm

Re: [NTG-context] \starttabulate vertical spacing

2005-08-11 Thread Hans Hagen
\stoptabulate \godown[3cm] \starttable[|l|p|] \NC Some Text \NC Other Text \NC\FR\HL \NC Some Text \NC Other Text \NC\SR \NC Some Text \NC Other Text \NC\SR \NC Some Text \NC Other Text \NC \stoptable \stoptext The best look gives \SR or \MR, but as you see, the table doesn't start at left side

Re: [NTG-context] LaTeX \newcommands in ConTeXt.

2005-07-26 Thread Hans Hagen
the problems that the ConTeXt manual warns about if we use \vskip? maybe (a patched version of \godown): \def\godown[#1]% {\ifhmode\endgraf\fi \ifvmode\nointerlineskip\vskip#1\relax} test \godown[10cm] test is \vspace accumulating? Hans

Re: [NTG-context] Setting up chapter.

2005-07-11 Thread Stuart Jansen
{\setupbodyfont[18pt]\setupinterlinespace[height=0,depth=0]Chapter}% \framed{\setupbodyfont[36pt]\setupinterlinespace[height=.1,depth=0]#1}% \godown[-1ex]\framed{\setupbodyfont[24pt]\setupinterlinespace[line=2ex]#2\par}% }} \setuphead [chapter] [command=\mychapter,textcommand=\chaptercase, textstyle=\sl

Re: [NTG-context] \godown to an absolute position

2005-01-12 Thread Duncan Hothersall
Hans wrote: quick and dirty: \setuphead[chapter][before=\vbox to 10cm\bgroup,after=\vss\egroup] \starttext \chapter{test} \input tufte \chapter{test\endgraf test} \input tufte \stoptext there are other solutions (synchronizing stuff) but that's more complex Great! This solution worked for me. I

[NTG-context] \godown to an absolute position

2005-01-11 Thread Duncan Hothersall
line after it should always start at the same vertical point. Something like -- \chapter{Chapter title} \godown[to=15pc] Start of the text of the chapter... -- would be ideal, but of course \godown starts from the current point and doesn't offer a to= option! I'm not sure that layers

Re: [NTG-context] \godown to an absolute position

2005-01-11 Thread Hans Hagen
the title takes up, the first line after it should always start at the same vertical point. Something like -- \chapter{Chapter title} \godown[to=15pc] Start of the text of the chapter... quick and dirty: \setuphead[chapter][before=\vbox to 10cm\bgroup,after=\vss\egroup] \starttext \chapter{test