[NTG-context] blank line and \placefigure
Hi folks, how can I suppress a blank line between a text paragraph and \placefigure? I get one there, but I don't want it. Thanks and greetings on a sunny weekend Thomas ___ 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 ___
[NTG-context] Blank line after \item: MkIV vs LMTX and how to properly get rid of it
Hello. Consider the following small example: 8< -- \starttext \startitemize[n] \item \input tufte \item \placefigure[right,none]{}{\externalfigure[cow]}% \input tufte \item \blank[overlay]% \placefigure[right,none]{}{\externalfigure[cow]}% \input tufte \stopitemize \startitemize[n,intext] \item \input tufte \item \placefigure[right,none]{}{\externalfigure[cow]}% \input tufte \item \blank[overlay]% \placefigure[right,none]{}{\externalfigure[cow]}% \input tufte \stopitemize \stoptext 8< -- I see a difference in MkIV and LMTX work: - MkIV always put a blank line despite '\blank[overlay]' command; - with \blank[overlay] and 'intext' option LMTX clutters item label (number in this case). Q1: is this the expected behavior for MkIV and LMTX? I found a recipe with \blank[overlay] in the mailing list. Q2: is it expected that LMTX will clutter item label when I use \blank[overlay]? I suspect the answer is "yes" due to the option name. Q3: how to prevent blank line insertion in such case: an item with text framing a picture (on right side or on left side but the picture is below the item label)? --- WBR, Vladimir Lomov -- Without freedom of choice there is no creativity. -- Kirk, "The return of the Archons", stardate 3157.4 signature.asc Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] blank line at the beginning of the theorem or proof
Dear all, placing a figure at the right or left of the text using \placefigure[right][]{}{} insert at the begining of the paragraph under the enumerations while there is no blank line if we comment out \placefigure. See the below sample. Is there a way to make text begin from the same line of “Theorem 1” with the figure at the right? Thank you. Best regards, Dalyoung \defineenumeration[Theorem] [text={\translate[en=Theorem, kr=정리]}, style=, title=yes, prefix=yes, prefixsegments=chapter, way=bychapter, number=yes, before={\blank[big]}, after=\blank] \defineenumeration[Proof] [text={\translate[en=Proof, kr=증명]}, % headstyle=bold, alternative=hanging, titlestyle=, style=normal, number=no, closesymbol=\mathematics{\blacksquare},] \startbuffer[circleA] draw fullcircle scaled 2cm; \stopbuffer \starttext \startTheorem %\placefigure[right][]{}{\processMPbuffer[circleA]} This is a test for placing a figure in the theorem or in the proof. \tex{placefigure[right][]{}{\processMPbuffer[circleA]}} insert a blank line at the beginning of the paragraph while there is no blank line without a figure. %\placefigure[right][]{}{\processMPbuffer[circleA]} \stopTheorem \startProof %\placefigure[right][]{}{\processMPbuffer[circleA]} \input knuth \stopProof \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Blank line before placehead=empty
Hi, I have a document where I'm showing chapter titles in headers, rather than on the page in the usual place in the body text area. Using placehead=empty, what causes the blank line before the text? Is there a way to suppress it? I see there's no line when specifying placehead=no, but I want the chapter heading to appear in my TOC, so that's why I'm using placehead=empty. Or maybe there's another way to add something to the TOC without showing anything in the document. \setuphead[chapter][placehead=empty] % has an unwanted blank line %\setuphead[chapter][placehead=no] % no blank line \showgrid \showstruts \starttext \startchapter[title={Something}] cows cows hasselt \stopchapter \stoptext Thank you, -- Kate ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Blank line before placehead=empty
On 06/02/2015 07:05 PM, Kate F wrote: Hi, I have a document where I'm showing chapter titles in headers, rather than on the page in the usual place in the body text area. Using placehead=empty, what causes the blank line before the text? Is there a way to suppress it? I see there's no line when specifying placehead=no, but I want the chapter heading to appear in my TOC, so that's why I'm using placehead=empty. Or maybe there's another way to add something to the TOC without showing anything in the document. Hi Kate, as far as I know, placehead=no only affects to the heading, not to the TOC. At least, this sample works: \setuphead[chapter][placehead=no] \showgrid \showstruts \starttext \completecontent \dorecurse{10}{\startchapter [title={My Chapter}] cows cows hasselt \stopchapter} \stoptext Or have I misread your message or am I missing something? I hope it helps, Pablo -- http://www.ousia.tk ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] blank line and signals
Am 14.03.10 15:07, schrieb Andreas Harder: If one removes the blank line after \section{Section} the output is correct, otherwise \TestSpace is ignored … \def\DefineSectionBlank {\dotripleempty\doDefineSectionBlank} \def\doDefineSectionBlank[#1][#2][#3]#4% {\edef\CurrentSection{#1}% \setvalue{#1:#2:\ifthirdargument\the\dimexpr#3\relax\fi}{#4}} \def\SectionBlank#1#2% {\edef\CurrentSection{#1}% \executeifdefined{#1:#2:\LastSectionBlankSignal}{\executeifdefined{#1:#2:\the\dimexpr\zeropoint\relax}{\getvalue{#1:#2:}}}% \doif{#2}{after}{\SectionBlankSignal}} \let\LastSectionBlankSignal\zeropoint \EveryPar{\let\LastSectionBlankSignal\zeropoint} \def\SectionBlankSignal {\setevalue{LastSectionBlankSignal}{\the\dimexpr\csname\CurrentSection Signal\endcsname\relax}} % chapter \DefineSectionBlank [Chapter] [before] {\blank[force,48pt]} \DefineSectionBlank [Chapter] [after] {\blank[20pt]} \newsignal\ChapterSignal \setuphead [chapter] [before=\SectionBlank{Chapter}{before}, after=\SectionBlank{Chapter}{after}] % section \newsignal\SectionSignal \DefineSectionBlank [Section] [before] [\ChapterSignal] {\blank[18pt]} \DefineSectionBlank [Section] [before] {\blank[24pt]} \DefineSectionBlank [Section] [after] {\blank[18pt]} \setuphead [section] [before=\SectionBlank{Section}{before}, after=\SectionBlank{Section}{after}] \showgrid \starttext \chapter{Chapter} \section{Section} \chapter{Chapter}\edef\CurrentSection{Section}\SectionBlankSignal % tell \section the last header was \section too! \section{Section} \chapter{Chapter} text \section{Section} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] blank line and signals
Hi all, please have a look at the following example: \newsignal\SectionSignal \def\TestSpace% {\relax\ifdim\lastskip=\SectionSignal \blank[nowhite] \else \blank \fi} \setuphead[section] [after=\blank\vskip\SectionSignal] \setuphead[subsection][before=\TestSpace] \starttext \startcolumns \section{Section} \subsection{Subsection} \dorecurse{50}{some text, } \stopcolumns \stoptext If one removes the blank line after \section{Section} the output is correct, otherwise \TestSpace is ignored … I'm quite sure it worked a couple of weeks before. Best regards Andreas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] blank line and signals
On 14-3-2010 15:07, Andreas Harder wrote: Hi all, please have a look at the following example: \newsignal\SectionSignal \def\TestSpace% {\relax\ifdim\lastskip=\SectionSignal \blank[nowhite] \else \blank \fi} \setuphead[section] [after=\blank\vskip\SectionSignal] \setuphead[subsection][before=\TestSpace] \starttext \startcolumns \section{Section} \subsection{Subsection} \dorecurse{50}{some text, } \stopcolumns \stoptext If one removes the blank line after \section{Section} the output is correct, otherwise \TestSpace is ignored … I'm quite sure it worked a couple of weeks before. in mkiv? probbably not ... for what do you need that kind of trickery? Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] blank line and signals
Am 14.03.10 17:19, schrieb Hans Hagen: I'm quite sure it worked a couple of weeks before. in mkiv? probbably not ... for what do you need that kind of trickery? It worked before you enabled the new spacing mechanism in MKIV. The code was meant to change the distance between consecutive headers. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] blank line and signals
On 14-3-2010 17:27, Wolfgang Schuster wrote: Am 14.03.10 17:19, schrieb Hans Hagen: I'm quite sure it worked a couple of weeks before. in mkiv? probbably not ... for what do you need that kind of trickery? It worked before you enabled the new spacing mechanism in MKIV. The code was meant to change the distance between consecutive headers. using a kern instead of a vskip might work (an alternative is to look into skips with higher/lower priority) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] blank line and signals
Am 14.03.10 17:45, schrieb Hans Hagen: using a kern instead of a vskip might work the problem is not the skip of the section but the information whether the current header follows another header immediately or there is normal text before. In MKII lastskip result in 1pt after both vertical skips while in MKIV the first lastskip is the sum of the blank and the vskip. \starttext \the\lastskip \vskip1pt \the\lastskip \blank[small]\vskip1pt \the\lastskip \stoptext Since i have a solution for this which doesn't require lastskip i don't care about this difference but it would be interesting why this happens. \starttext \vskip1pt\vskip1pt \the\lastskip \stoptext MKII: 1.0pt MKIV: 2.0pt (an alternative is to look into skips with higher/lower priority) I guess this requires Lua code. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] blank line and signals
On 14-3-2010 18:00, Wolfgang Schuster wrote: \starttext \vskip1pt\vskip1pt \the\lastskip \stoptext MKII: 1.0pt MKIV: 2.0pt In mkii we only see the last skip, i.e. we get 1pt. In mkiv the skips are collapsed so we get 2pt reported. (an alternative is to look into skips with higher/lower priority) I guess this requires Lua code. \starttext test \blank[line] test \blank[4*line] \blank[1*line,strong] test \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] blank line
Hi all, I like to get blank lines (or halve lines) between mij paragraphs. I seem to misuntherstand something compleetly, because I can't get it working. Can anyone point me out?? Boris _ Een audiogesprek? Pak Messenger, niet de telefoon http://www1.imagine-msn.com/Messenger/Video.aspx ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] blank line
Boris Pedrofiets wrote: Hi all, I like to get blank lines (or halve lines) between mij paragraphs. I seem to misuntherstand something compleetly, because I can't get it working. Can anyone point me out?? For single cases: \blank [line] % one line or \blank [halfline] % half of a line or \blank [3*line] % three lines Or as a global setting : \setupwhitespace [big] Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context