[NTG-context] Re: Alignments of margin notes
Gerion Entrup schrieb am 02.08.2024 um 14:10: Am Freitag, 2. August 2024, 07:42:29 MESZ schrieb Pablo Rodriguez via ntg- context: On 8/2/24 01:13, Gerion Entrup wrote: Ok, I think I understand that in principal. Thanks for the explanation. Can I somehow know in advance that a margin note makes use of \framed? Hi Gerion, there is an \ifinframed conditional, such as in: ... This may help to achieve what you want. Just in case it helps, Thanks for the answer, but we misunderstood. I'll try to formulate it clearer: If I get it right, to set margin notes, you need to specify \setupmargindata in any case. However, on the one hand, there might be notes that follow the style of the "style" argument within \setupmargindata. And on the other hand, there might be notes that internally uses \framed and follow the "style" argument within a separately specified \setupmarginframed. My question is, whether I have any chance to get in advance (when writing down the document styling) which style argument my future (not yet written) margin notes will follow to know if I need to specify a \setupmarginframed at all. Is it the style argument of \setupmargindata or \setupmarginframed or is it a good practice to _always_ specify \setupmarginframed with the same style argument as given to \setupmargindata? I have no idea what your question is but you should use \setupmarginframed only when the setup requires it, e.g. to change the alignment for blocks which use the framed mechanism. The example below shows which predefined margin blocks rely only on margindata where you can change the alignment with \etupmargindata and also the ones which require \setupmarginframed. begin example \setuppapersize[A4][A3] \setuplayout[location=middle] \starttext \doloopoverlist{ inleftmargin, inrightmargin, inoutermargin, ininnermargin, inleftedge, inrightedge, inouteredge, ininneredge, atleftmargin, atrightmargin, } { \setupmargindata[\recursestring][align=middle] \title{\tex{\recursestring}} \samplefile{lorem} \margindata[\recursestring]{Text in the margin!} \samplefile{lorem} } \doloopoverlist{ inleft, inright, inouter, ininner, inmargin, inother, } { %\setupmargindata[\recursestring][align=middle] \setupmarginframed[\recursestring][align=middle] \title{\tex{\recursestring}} \samplefile{lorem} \margindata[\recursestring]{Text in the margin!} \samplefile{lorem} } \stoptext end example 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 ___
[NTG-context] Re: Struggling with the distance and right margin text
Ursula Hermann schrieb am 22.03.2024 um 15:57: Dear Pablo, Many thanks for your example. Sorry for writing so late. At least I found out, how it works for me . This is the best way. \setuppapersize[A8,landscape] \setupbodyfont[termes, 12.50pt] \setuplayout[inrightmargin=5.1cm backspace=2.9cm, inleftmargin=0cm,width=4cm] You can shorten the layout to \setuplayout [backspace=2.9cm, width=4cm] because inleftmargin and inrightmargin don't exist as layout settings but there is leftmargin and rightmargin without the leading *in*. You can add \showlayout to see the effects on the layout. 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 ___
[NTG-context] Re: Struggling with the distance and right margin text
Dear Pablo, Many thanks for your example. Sorry for writing so late. At least I found out, how it works for me . This is the best way. \setuppapersize[A8,landscape] \setupbodyfont[termes, 12.50pt] \setuplayout[inrightmargin=5.1cm backspace=2.9cm, inleftmargin=0cm,width=4cm] \inrightmargin{\blackrule\\{3.2.2}}\par \dontleavehmode \blackrule \showframe \starttext Me \stoptext Von: Pablo Rodriguez via ntg-context Gesendet: Freitag, 15. März 2024 20:00:35 An: ntg-context@ntg.nl Cc: Pablo Rodriguez Betreff: [NTG-context] Re: Struggling with the distance and right margin text On 3/15/24 14:06, Ursula Hermann wrote: > Dear List, Dear Ursula, this might help you (it isn’t perfect, but you just seem to copy and paste fragments from your source files): %\showframe\showstruts \mainlanguage[de-at] \setuppagenumbering[alternative=doublesided] \definemargindata [MyInMargin][ininner] \definemarginframed[MyInMargin] [topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm] \defineframed[topruletitle] [width=max, frame=off, topframe=on, rulethickness=1pt, align={justify}, extras=\dontleavehmode] \starttext \topruletitle{\MyInMargin {1.1.1}\bf Beispiel 3.2.17. (Vertauschung von All- und Existenzquantor).} \par \input knuth\page \topruletitle{\MyInMargin{3.2.22}{\bf Theorem 3.2.22 (Rechenregeln für Quantoren)}. Seien \m P(\m x)und \input zapf b} \stoptext Sorry for saying that again, but please elaborate both your minimal samples and your descriptions of the issues you are experiencing. Some comments on the code fragments you sent. First of all, please include always code that can be compiled simply after being copied and pasted. This requires \starttext (most of the time) and \stoptext (mandatory to avoid stupid errors). > \definepapersize[MyBook][width=19cm,height=29.7cm] > \setuppapersize[MyBook][MyBook] % Prints on paper the size of MyBook > %\setuppapersize[MyBook][A4] %Would print MyBook-size pages on A4 paper > \setupbodyfont[modern, 12.50pt] If these lines are irrelevant for the issue you are experiencing, please don’t include them. > \definemargindata [MyInMargin][inleft] > \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm] You define this margin framed, but your sample makes no use of it. Sorry, but I don’t get it. > \defineenumeration > [theorem] > [ > text=Theorem, > title=yes, > width=fit, > distance=0.2em, > alternative=serried, > ] > \definetextbackground[GrayBackground][ > location=paragraph, > background=color, > backgroundcolor=lightgray, > leftoffset=.5\bodyfontsize, > rightoffset=.5\bodyfontsize, > topoffset=.5\bodyfontsize, > bottomoffset=.5\bodyfontsize, > frame=off,] > \margintext{\blackrule[color=black, height=0.10ex, width=1cm]\\} > \blackrule[color=black, height=0.10ex, width=13.50cm] If your sample includes no theorem or text background, please remove these definitions when sending code. BTW, avoid include text content (such as margin and body rules [but not their definitions]) before \starttext. Also, use \clrf instead of \\ (since the mailing list displays the relevant line as ("\" instead of "\\"): > \margintext{\blackrule[color=black, height=0.10ex, width=1cm]\} Here starts your text: > \starttext > \margintext {1.1.1} > {\bf Beispiel 3.2.17. (Vertauschung von All- und Existenzquantor).} \par Your margin text is undefined. Your code has a defined margin text command, but it isn’t used. > So I have here an example from the second page: Sorry, but I’m having the impression you are using ConTeXt as a kind of command-based DTP software (which I think it isn’t at all). Or, do you define commands for each page? I think it is better to define a single margin text command and use a doublesided page setup. > \definemargindata[inrightmargin][right][margin=margin,width=.50em\rightmarginwidth,style=,color=] > \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt, > width=.90cm] Again, margin text commands defined, but never used. > \blackrule[color=black, height=0.10ex, width=13.40cm] > {\blackrule[color=black, height=0.10ex, width=1cm, distance=.90cm]\par Here you open a brace that is not closed at all. At least, consider that this won’t be extremely readable for other people (this is only a sample). It also may be problematic for you, if you leave the source untouched for some weeks. > \defineenumeration > [theorem] > [ > text=Theorem, > title=yes, > width=fit, > distance=0.2em, > alternative=serried, > ] At least, it would be better not to include a definition inside content that seems to (or may) be grouped with braces. BTW, it is exactly t
Re: [NTG-context] Enumeration numbering in the left margin
kauśika via ntg-context schrieb am 20.11.2021 um 14:28: On Saturday, November 20, 2021 11:31:24 AM IST kauśika wrote: Dear list, I have the following enumeration block. \defineenumeration[verse] \setupenumeration[verse] [alternative=leftmargin, text=, width=fit, distance=1em, way=bysection] I actually want to (flush) left align the enumeration's number inside the left margin and give it a blue color. But even if I have \setupmargindata[inleftmargin][color=bblue4,align=flushleft] there is no alignment, no color. However, if I do \setupenumeration[verse] [alternative=leftmargin, text=, width=\leftmarginwidth, headcolor=bblue4, distance=0em, way=bysection] I am able to get the desired effect. Is this the 'correct' way to do it? I mean to ask, am I doing something wrong with \setupmargindata or is this expected behaviour. Thanks, kauśika Also \setupenumeration[verse] [alternative=left, text=, headcommand=\inleftmargin, distance=0em, way=bysection] along with \setupmargindata[inleftmargin][color=bblue4,align=flushleft] achieves the required effect. So then am I using alternative=leftmargin incorrectly? Provide a complete minimal example to increase your chances for an answer. 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Enumeration numbering in the left margin
On Saturday, November 20, 2021 11:31:24 AM IST kauśika wrote: > Dear list, > > I have the following enumeration block. > > \defineenumeration[verse] > \setupenumeration[verse] > [alternative=leftmargin, >text=, >width=fit, >distance=1em, >way=bysection] > > I actually want to (flush) left align the enumeration's number inside the > left margin and give it a blue color. But even if I have >\setupmargindata[inleftmargin][color=bblue4,align=flushleft] > there is no alignment, no color. > > However, if I do > \setupenumeration[verse] > [alternative=leftmargin, >text=, >width=\leftmarginwidth, >headcolor=bblue4, >distance=0em, >way=bysection] > I am able to get the desired effect. > > Is this the 'correct' way to do it? I mean to ask, am I doing something > wrong with \setupmargindata or is this expected behaviour. > > Thanks, > kauśika Also \setupenumeration[verse] [alternative=left, text=, headcommand=\inleftmargin, distance=0em, way=bysection] along with \setupmargindata[inleftmargin][color=bblue4,align=flushleft] achieves the required effect. So then am I using alternative=leftmargin incorrectly? Thanks, kauśika ___ 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] Enumeration numbering in the left margin
Dear list, I have the following enumeration block. \defineenumeration[verse] \setupenumeration[verse] [alternative=leftmargin, text=, width=fit, distance=1em, way=bysection] I actually want to (flush) left align the enumeration's number inside the left margin and give it a blue color. But even if I have \setupmargindata[inleftmargin][color=bblue4,align=flushleft] there is no alignment, no color. However, if I do \setupenumeration[verse] [alternative=leftmargin, text=, width=\leftmarginwidth, headcolor=bblue4, distance=0em, way=bysection] I am able to get the desired effect. Is this the 'correct' way to do it? I mean to ask, am I doing something wrong with \setupmargindata or is this expected behaviour. Thanks, kauśika ___ 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 ___
Re: [NTG-context] Formulanumbers in margin
Hi, So the numbercommand does work after all, I just needed to keep something in the "formulanumber" part of the textline, otherwise it wouldn't get drawn. Not sure how nice this looks, but it does work like this now: \starttext \showframe \setupformulas[numbercommand=\nbsp\inrightmargin] \startplaceformula \startformula c^2 = a^2 + b^2 \stopformula \stopplaceformula \stoptext Adam On Sun, Mar 21, 2021 at 8:41 PM Adam Reviczky wrote: > Thanks Hraban, > > That should be fine, I've tried to increase the margins as well, but not > sure that's the issue as I can perfectly place text with \inmargin > directly, just not with the numbercommand. > > MWE: > > \starttext > \setuplayout[margin=2cm, leftmargin=2cm, rightmargin=2cm] > > \showframe > \showlayout > > \setupcaption[figure][location={rightmargin}] > \startplacefigure[title=Cow] \externalfigure[cow] \stopplacefigure > > \define[1]\MyFormulaNumber{\inleftmargin{#1}} > \setupformula[numbercommand=\MyFormulaNumber] > > \inleftmargin{Left Margin Text} > \inrightmargin{Right Margin Text} > > \startplaceformula[reference=eq1] \startformula c^2 = a^2 + b^2 > \stopformula \stopplaceformula > \stoptext > > Adam > > On Sun, Mar 21, 2021 at 8:31 PM Henning Hraban Ramm > wrote: > >> >> > Am 21.03.2021 um 20:56 schrieb Adam Reviczky : >> > >> > Thanks Hraban, >> > >> > I've tried the numbercommand as well, but that also just makes the >> formula number disappear, unless I am doing something wrong. >> > >> > The framing as per the math manual (manuals/math/math-framing.tex) >> however does work, so not sure: >> > \setupformula[numbercommand={\inframed[framecolor=green]}] >> >> Are your margins actually non-zero? (\setuplayout) >> Maybe check with \showlayout >> >> Hraban >> >> ___ >> 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 >> >> ___ >> > ___ 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 ___
Re: [NTG-context] Formulanumbers in margin
Thanks Hraban, That should be fine, I've tried to increase the margins as well, but not sure that's the issue as I can perfectly place text with \inmargin directly, just not with the numbercommand. MWE: \starttext \setuplayout[margin=2cm, leftmargin=2cm, rightmargin=2cm] \showframe \showlayout \setupcaption[figure][location={rightmargin}] \startplacefigure[title=Cow] \externalfigure[cow] \stopplacefigure \define[1]\MyFormulaNumber{\inleftmargin{#1}} \setupformula[numbercommand=\MyFormulaNumber] \inleftmargin{Left Margin Text} \inrightmargin{Right Margin Text} \startplaceformula[reference=eq1] \startformula c^2 = a^2 + b^2 \stopformula \stopplaceformula \stoptext Adam On Sun, Mar 21, 2021 at 8:31 PM Henning Hraban Ramm wrote: > > > Am 21.03.2021 um 20:56 schrieb Adam Reviczky : > > > > Thanks Hraban, > > > > I've tried the numbercommand as well, but that also just makes the > formula number disappear, unless I am doing something wrong. > > > > The framing as per the math manual (manuals/math/math-framing.tex) > however does work, so not sure: > > \setupformula[numbercommand={\inframed[framecolor=green]}] > > Are your margins actually non-zero? (\setuplayout) > Maybe check with \showlayout > > Hraban > > ___ > 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 > > ___ > ___ 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 ___
Re: [NTG-context] (again) inmargin attachments in notes
On 7/29/19 10:27 PM, Hans Hagen wrote: > On 7/29/2019 9:33 PM, Pablo Rodriguez wrote: > [...] > b\footnote{x\inleftmargin[scope=local]{\attachment[location=high,file=i-context.pdf]}} Many thanks for your reply, Hans. I didn’t know that placing margin data in notes was so complex. Many thanks for your help, 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] (again) inmargin attachments in notes
On 7/29/2019 9:33 PM, Pablo Rodriguez wrote: Hi Hans, I have the following sample: \showframe\showgrid \setupinteraction[state=start] \setupinteractionscreen[option=attachment] \setupattachment[location=inmargin] \starttext a\attachment[file=xml-mkiv.pdf] b\footnote{\attachment[file=i-context.pdf]} \stoptext Inmargin attachment from notes aren’t shown in Acrobat nor displayed in margin. Files are embedded. b\footnote{x\inleftmargin[scope=local]{\attachment[location=high,file=i-context.pdf]}} - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] small abstracts in table of contents?
On 11/25/2014 8:18 AM, Otared Kavian wrote: Hi Gerben, As Wolfgang said, you can use something like this (example given by him some months ago on the mailing list): \definelist[chaptertext] \setuplist[chaptertext][style=\tfx,margin=3em,pagecommand=\gobbleoneargument] \starttext \placelist[chapter,chaptertext] \chapter{This is a chapter} \writetolist[chaptertext]{}{This is a small description of this chapter: \input ward } \input knuth.tex \stoptext The mkiv way: \starttext \unexpanded\def\ShowSummary#1#2#3% {\inleftmargin{#1}\structurelistuservariable{summary}\blank} \placelist[chapter][alternative=command,command=\ShowSummary] \startchapter [title={This is a chapter}] [summary={This is a small description of this chapter}] \input knuth.tex \stopchapter \startchapter [title={This is also a chapter}] [summary={This is a larger description of this chapter}] \input ward.tex \stopchapter \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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] Possible bug with new \start ... \stop way for title, chapter, subject, etc.?
Am 29.06.2013 um 07:46 schrieb Andres Conrado Montoya : > I was trying to implement the solution provided by this thread: > http://www.mail-archive.com/ntg-context@ntg.nl/msg51152.html and it > works very well. However, finding a problem related to this > implementation, I found that the output of the new \start ... \stop > versions of the title, section, chapter, subject, etc. commands is > different from the old \title, \chapter, \subject, etc. > As you can see in the following MWE, the new implementation indents > the first paragraph of the given section, by some amount (even > different from the default for paragraphs). > > Is this a bug or a new feature that I don't understand? It’s a sometimes unwanted side effect of arguments for commands. Even though there are ways to avoid the space you can’t add them because there are cases where you want the space. Below is a modified version of the older code which uses the new MkIV mechanism to create customized head layouts which gobbles also the space for \startsection. \defineheadalternative [head:inleftmargin] [alternative=horizontal, renderingsetup=head:inleftmargin] \startsetups[head:inleftmargin] \inleftmargin{\headtextcontent} \stopsetups \setuphead [section] [alternative=head:inleftmargin, style=bold, color=red, insidesection=\ignorespaces, distance=0pt] \showframe \starttext \section{Knuth} \input knuth \startsection[title={Tufte}] \input knuth \stopsection \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] [typo-mar.mkiv] \dosetupstrut -> \setupstrut
\dosetupstrut is undefined in mkiv. Hence in typo-mar.mkiv, line 246: - \dosetupstrut[\currentmargindatastrut]% + \setupstrut[\currentmargindatastrut]% Test document: ··· \starttext \setupmargindata[inleftmargin][strut=no] \inleftmargin{\ifvmode yes\else no\fi} bar \stoptext \endinput ··· Best regards Philipp -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgpe7FM6zlYrU.pgp 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] bad argument #1 to 'gsub'
{\hfill\getmarking[\v!section]\hfill}] \setupbodyfontenvironment [default] [em=italic] \setupsectionblock[\v!frontpart] [\c!page=\v!yes] \setupsectionblock[\v!bodypart] [\c!page=\v!yes] \setupsectionblock[\v!appendix] [\c!page=\v!yes] \setupsectionblock[\v!frontpart] [\c!before=,\c!after=] \setuphead [\v!chapter] [\c!command=\PlaceSection, \c!page=\v!yes, \c!before=, \c!header=\v!nomarking, \c!style=\bfd] \setuphead [\v!title] [\c!command=\PlaceSection, \c!page=\v!right, \c!before=, \c!header=\v!nomarking, \c!style=\bfd] \setuphead [\v!section] [\c!command=\PlaceSection, \c!inbetween=, \c!style=\bfb] \setuphead [\v!subsection] [\c!command=\PlaceSection, \c!before=\blank, \c!style=\bfa] \setuphead [\v!subsubsection] [\c!command=\PlaceSection, \c!before=\blank, \c!style=\bsa] \def\PlaceSection#1#2% {\goodbreak \vbox {\localheadsetup \begstrut \inleftmargin{\hbox to \leftmarginwidth{\hss#1\hss}}% #2}} \setupcaptions[width=14cm,align=right] \setMPtext{text}{some test text} \startusableMPgraphic{text} picture r ; r := image ( graphictext \MPstring{text} randomized .4pt scaled 6pt withfillcolor .8\MPcolor{maincolor} withpen pencircle scaled 1pt ; ) ; draw r ; \stopusableMPgraphic \setuptype [\c!option=\v!slanted] \setuptyping [\c!option=\v!slanted] \setuplist [\v!section] [\c!width=3em] \defineregister [texmacro] [texmacros] \setupregister [texmacro] [\c!indicator=\v!off, \c!distance=1em minus .25em] \setupfootnotes [\c!rule=\v!on] \setuphead [\v!chapter] [\c!header=\v!empty] \setupitemgroup[\v!itemize] [\v!each] [\c!headstyle=\v!bold] \setupitemgroup[\v!itemize] [\v!each] [\v!stopper] \setupsubpagenumber [\c!way=\v!by\v!chapter, \c!state=\v!start] \stopenvironment - /Source/Handbook.tex - \startproduct Handbook \environment Source/Environment \startfrontmatter \completecontent \stopfrontmatter \startbodymatter \component Source/Preface/Preface \stopbodymatter \startappendices \completeindex \stopappendices \startbackmatter \stopbackmatter \stopproduct - /Source/Preface/Preface.tex - \startchapter{Preface} Foo - Any help would be much appreciated. I am using ConTeXt version 2011.06.23 23:59. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com ___ 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] Problem with chem module
On Sat, 2011-06-18 at 11:32 +0200, Hans Hagen wrote: > minimal complete file needed as we need to see what is your font setup Hey Hans, The line containing the problematic chemical line is this one: \chemical{CO_2,PLUS,H_2,PLUS,GIVES,PLUS,O_2,PLUS,CO} The error is: ! Math error: parameter \Umathlimit_below_vgap\textstyle is not set. My environment follows: % The environment file is used to setup the typesetting that relate to % any product, but at present, just the crew handbook... \startenvironment Environment \preloadtypescripts \usemodule[units,chemic] % Setup PDF metadata... \setupinteraction [state=start, color=red, title=Handbook, subtitle=Bazaar revision \cldcontext{os.resultof"bzr revno"}] % Show the PDF bookmarks and expand to the chapter and section level... \placebookmarks[chapter,section,subsection][chapter,section] \setupinteractionscreen[option=bookmark] \setupbackgrounds [rightpage] [background=] % Set compression level, default is 3, so set to maximum... \setupbackend [level=9] \setupsystem [\c!random=\v!big] \setuplayout [\c!location=\v!middle, \c!style=\ss, \c!backspace=2.5cm, \c!topspace=1.5cm, \c!width=16cm, \c!margindistance=.25cm, \c!margin=2.5cm, \c!height=\v!middle] % re-defined because the default rscale=1.075 for modern doesn't % look right \starttypescript [palatino] \definetypeface [palatino] [rm] [serif] [palatino] [default] \definetypeface [palatino] [ss] [sans] [modern] [default] \definetypeface [palatino] [tt] [mono] [modern] [default] \definetypeface [palatino] [mm] [math] [palatino] [default] \stoptypescript \usetypescript[palatino][ec] \setupbodyfont[palatino,11pt] \definefontsynonym[chapternumberfont][RegularBold] \definefontsynonym[chaptertextfont] [RegularBold] \definebodyfont[11pt][rm][bfe=RegularBold at 30pt] \definebodyfont[11pt][rm][bft=RegularBold at 30pt] \definelayout [fullpage] [\c!backspace=0pt, \c!topspace=0pt, \c!width=\v!middle, \c!height=\v!middle, \c!header=0pt, \c!footer=0pt] \setuppagenumbering [\c!alternative=\v!doublesided] \def\startchapter#1% {\chapter[#1]{#1}\index{#1}\bookmark{#1}} \def\startsection#1% {\section[#1]{#1}\index{#1}\bookmark{#1}} \def\startsubsection#1% {\subsection[#1]{#1}\index{#1}\bookmark{#1}} \def\startsubsubsection#1% {\subsubsection[#1]{#1}\index{#1}\bookmark{#1}} \def \href#1#2{\useURL[#2][{#2}][][{#1}]\goto{\url[#2]}[url(#1)]} \def\ahref#1{\color[linkcolor]{\ttx \href{#1}{<#1>}}} \def\fullahref#1{\color[linkcolor]{\ttx \href{#1}{#1}}} \def\startexample {\blank \begingroup} \def\stopexample {\endgroup \blank} \def\startreality {\blank \page[\v!preference] \begingroup} \def\stopreality {\relax \endgroup \blank} \defineframedtext [MiniFile] [\c!width=25em, \c!offset=0.25ex, \c!bodyfont=7pt, \c!background=\v!color, \c!backgroundcolor=GrayColor, \c!backgroundoffset=.25ex, \c!frame=\v!off, \c!before=, \c!after=] % Number formulae etc. using the chapter number... \setupnumbering [way=bychapter] \setuppagenumbering [\c!location=] \setuptolerance [\v!verytolerant,\v!stretch] \setupblank [\v!medium] \setupwhitespace [\v!medium] \setuptyping [\c!blank=\v!medium] \setupheadertexts [\v!margin] [][\hfill\pagenumber\hfill] \setupfootertexts [\v!margin] [][{\hfill\doifnotmode{*\v!frontpart}{\getmarking[\v!chapter\v! number]}\hfill}] \setupheadertexts [\v!text] [][{\hfill\getmarking[\v!chapter]\hfill}] \setupfootertexts [\v!text] [][{\hfill\getmarking[\v!section]\hfill}] \setupbodyfontenvironment [default] [em=italic] \setupsectionblock[\v!frontpart] [\c!page=\v!yes] \setupsectionblock[\v!bodypart] [\c!page=\v!yes] \setupsectionblock[\v!appendix] [\c!page=\v!yes] \setupsectionblock[\v!frontpart] [\c!before=,\c!after=] \setuphead [\v!chapter] [\c!command=\PlaceSection, \c!page=\v!yes, \c!before=, \c!header=\v!nomarking, \c!style=\bfd] \setuphead [\v!title] [\c!command=\PlaceSection, \c!page=\v!right, \c!before=, \c!header=\v!nomarking, \c!style=\bfd] \setuphead [\v!section] [\c!command=\PlaceSection, \c!inbetween=, \c!style=\bfb] \setuphead [\v!subsection] [\c!command=\PlaceSection, \c!before=\blank, \c!style=\bfa] \setuphead [\v!subsubsection] [\c!command=\PlaceSection, \c!before=\blank, \c!style=\bsa] \def\PlaceSection#1#2% {\goodbreak \vbox {\localheadsetup \begstrut \inleftmargin{\hbox to \leftmarginwidth{\hss#1\hss}}% #2}} \setupcaptions[width=14cm,align=right] \s
[NTG-context] heading in margin + paragraph starting with float
Dear fellow contextualists, a while ago Wolfgang saved me from erratic blank lines that had kept appearing next to margin headings.[1] Now the problem arose again when starting the first paragraph with a caption. Placement does not seem to effect this (try “bottom”, but at sufficiently large sizes of the float and grid typesetting activated an additional line is inserted. How can I suppress those? ··8<· \define[2]\SectionCommand {\inleftmargin{#2}} \setuphead [section] [ alternative=text, style=bold, command=\SectionCommand, distance=0pt, before={\blank[nowhite]}, after={\blank[nowhite]}, ] \useexternalfigure[cow][cow][width=8cm] % try “8cm” \setuplayout[grid=yes] \showgrid \showframe \starttext \dorecurse{5}{ \section{Hello Cow!} \placefigure[outer]{Artistic Rendering of a Dutch Cow ({\em Bos primigenius taurus}).}{\externalfigure[cow]}% \input dawkins \par } \stoptext ··8<· [1] http://archive.contextgarden.net/message/20101121.122232.07a565dd.en.html Thanks for any advice, Philipp -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgpghcltwNkdk.pgp 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] BUG? Strange behavior (vertical space added!!!) with accentuated letters (was \inmargin / full textwidth line interaction)
Thanks to Wolfgang and Renaud for sharing all this… However, Renaud, I didn't notice what you says about having « É » in the title: it seems that everything works as expected: see http://dl.dropbox.com/u/4316076/inmargin-fullwidth-1.pdf (using, ConTeXt ver: 2010.11.26 22:49 MKIV, on MacOS 10.6.5). Best regards: OK On 26 nov. 2010, at 20:25, Renaud AUBIN wrote: > Hi Wolfgang, > > First, thank you! > > Now, if I use some accentuated letters in title (the É just after the > second subsection and before \input zapf), there is an unwanted vertical > space… Bug, feature or misuse??? > Could you confirm the bug? (the resulting pdf: > http://dl.dropbox.com/u/5289718/testWolfgang.pdf) > > I use the latest minimals on debian 64. > > Test −− > \setupbodyfont[10pt] > > \setuplayout > [leftedge=0mm, > leftmargin=45mm, > rightedge=0mm, > rightmargin=0mm, > backspace=60mm, > topspace=10mm, > bottomspace=10mm, > header=0mm, > headerdistance=0mm, > footer=0mm, > footerdistance=0mm, > margindistance=0mm, > height=middle, > width=middle, > grid=yes] > > \setuppagenumbering[state=stop] > > \setuphead[section] [style=,command=\SectionCommand] > \setuphead[subsection][style=,command=\SubsectionCommand] > > \define[2]\SectionCommand > {\inleftmargin{\leftaligned{\structuretitle}}% > \blackrule > [ width=\textwidth, > height=+.3\lineheight, > depth=-.2\lineheight]} > > \define[2]\SubsectionCommand > {\vbox\bgroup > \inleftmargin{\leftaligned{\em\structureuservariable{date}}}% > {\bfa\structuretitle}\wordright{\tfx\structureuservariable{topic}} > % \blank > {\em\structureuservariable{info}}% >\egroup} > > \starttext > > \startsection[title={A Section}] > > \startsubsection > [title={The detailled topic (which takes more than one line)}] > [date={The date},topic={Knuth’s topic},info={some text}] > > \input knuth > > \stopsubsection > > \startsubsection > [title={Éhe detailled topic (which takes more than one line)}] > [date={Another date},topic={Zapf},info={some text}] > > É > \input zapf > > \stopsubsection > > \startsubsection > [title={The detailled topic (which takes more than one line)}] > [date={Another date},topic={Zapf},info={some text}] > > \input zapf > > \stopsubsection > > \stopsection > > \startsection[title={Section}] > > \startsubsection > [title={Some details}] > [date={A date},topic={Tufte}] > > \input tufte > > \stopsubsection > > \stopsection > > \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://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ %% Otared Kavian Département de Mathématiques Université de Versailles Saint-Quentin Bâtiment Fermat 45 aveue des Etats Unis 78035 Versailles cedex Téléphone: +33 1 39 25 46 42 Secrétariat: +33 1 39 25 46 44 Secrétariat: +33 1 39 25 46 46 e-mail: otared.kav...@math.uvsq.fr ___ 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] BUG? Strange behavior (vertical space added!!!) with accentuated letters (was \inmargin / full textwidth line interaction)
Ok, that seems to be due to grid=yes… Le 26/11/2010 20:25, Renaud AUBIN a écrit : > \setupbodyfont[10pt] > > \setuplayout > [leftedge=0mm, >leftmargin=45mm, >rightedge=0mm, >rightmargin=0mm, >backspace=60mm, >topspace=10mm, >bottomspace=10mm, >header=0mm, >headerdistance=0mm, >footer=0mm, >footerdistance=0mm, >margindistance=0mm, >height=middle, >width=middle, >grid=yes] > > \setuppagenumbering[state=stop] > > \setuphead[section] [style=,command=\SectionCommand] > \setuphead[subsection][style=,command=\SubsectionCommand] > > \define[2]\SectionCommand > {\inleftmargin{\leftaligned{\structuretitle}}% >\blackrule > [ width=\textwidth, > height=+.3\lineheight, > depth=-.2\lineheight]} > > \define[2]\SubsectionCommand >{\vbox\bgroup > \inleftmargin{\leftaligned{\em\structureuservariable{date}}}% > {\bfa\structuretitle}\wordright{\tfx\structureuservariable{topic}} > % \blank > {\em\structureuservariable{info}}% > \egroup} > > \starttext > > \startsection[title={A Section}] > > \startsubsection > [title={The detailled topic (which takes more than one line)}] > [date={The date},topic={Knuth’s topic},info={some text}] > > \input knuth > > \stopsubsection > > \startsubsection > [title={Éhe detailled topic (which takes more than one line)}] > [date={Another date},topic={Zapf},info={some text}] > > É > \input zapf > > \stopsubsection > > \startsubsection > [title={The detailled topic (which takes more than one line)}] > [date={Another date},topic={Zapf},info={some text}] > > \input zapf > > \stopsubsection > > \stopsection > > \startsection[title={Section}] > > \startsubsection > [title={Some details}] > [date={A date},topic={Tufte}] > > \input tufte > > \stopsubsection > > \stopsection > > \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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] BUG? Strange behavior (vertical space added!!!) with accentuated letters (was \inmargin / full textwidth line interaction)
Hi Wolfgang, First, thank you! Now, if I use some accentuated letters in title (the É just after the second subsection and before \input zapf), there is an unwanted vertical space… Bug, feature or misuse??? Could you confirm the bug? (the resulting pdf: http://dl.dropbox.com/u/5289718/testWolfgang.pdf) I use the latest minimals on debian 64. Test −− \setupbodyfont[10pt] \setuplayout [leftedge=0mm, leftmargin=45mm, rightedge=0mm, rightmargin=0mm, backspace=60mm, topspace=10mm, bottomspace=10mm, header=0mm, headerdistance=0mm, footer=0mm, footerdistance=0mm, margindistance=0mm, height=middle, width=middle, grid=yes] \setuppagenumbering[state=stop] \setuphead[section] [style=,command=\SectionCommand] \setuphead[subsection][style=,command=\SubsectionCommand] \define[2]\SectionCommand {\inleftmargin{\leftaligned{\structuretitle}}% \blackrule [ width=\textwidth, height=+.3\lineheight, depth=-.2\lineheight]} \define[2]\SubsectionCommand {\vbox\bgroup \inleftmargin{\leftaligned{\em\structureuservariable{date}}}% {\bfa\structuretitle}\wordright{\tfx\structureuservariable{topic}} % \blank {\em\structureuservariable{info}}% \egroup} \starttext \startsection[title={A Section}] \startsubsection [title={The detailled topic (which takes more than one line)}] [date={The date},topic={Knuth’s topic},info={some text}] \input knuth \stopsubsection \startsubsection [title={Éhe detailled topic (which takes more than one line)}] [date={Another date},topic={Zapf},info={some text}] É \input zapf \stopsubsection \startsubsection [title={The detailled topic (which takes more than one line)}] [date={Another date},topic={Zapf},info={some text}] \input zapf \stopsubsection \stopsection \startsection[title={Section}] \startsubsection [title={Some details}] [date={A date},topic={Tufte}] \input tufte \stopsubsection \stopsection \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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \inmargin / full textwidth line interaction (was Toward the use of inleft…)
Am 25.11.2010 um 21:27 schrieb Renaud AUBIN: > Since my previous post doesn't seem inspiring at all (sniff), here is a > simplified and more precise description of what need to be done: > > [...] \setupbodyfont[10pt] \setuplayout [leftedge=0mm, leftmargin=45mm, rightedge=0mm, rightmargin=0mm, backspace=60mm, topspace=10mm, bottomspace=10mm, header=0mm, headerdistance=0mm, footer=0mm, footerdistance=0mm, margindistance=0mm, height=middle, width=middle, grid=yes] \setuppagenumbering[state=stop] \setuphead[section] [style=,command=\SectionCommand] \setuphead[subsection][style=,command=\SubsectionCommand] \define[2]\SectionCommand {\inleftmargin{\leftaligned{\structuretitle}}% \blackrule [ width=\textwidth, height=+.3\lineheight, depth=-.2\lineheight]} \define[2]\SubsectionCommand {\vbox\bgroup \inleftmargin{\leftaligned{\em\structureuservariable{date}}}% {\bfa\structuretitle}\wordright{\tfx\structureuservariable{topic}} \blank {\em\structureuservariable{info}}% \egroup} \starttext \startsection[title={A Section}] \startsubsection [title={The detailled topic (which takes more than one line)}] [date={The date},topic={Knuth’s topic},info={some text}] \input knuth \stopsubsection \startsubsection [title={The detailled topic (which takes more than one line)}] [date={Another date},topic={Zapf},info={some text}] \input zapf \stopsubsection \stopsection \startsection[title={Section}] \startsubsection [title={Some details}] [date={A date},topic={Tufte}] \input tufte \stopsubsection \stopsection \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 ___
Re: [NTG-context] heading in margin + grid
On 2010-11-21 <13:22:32>, Wolfgang Schuster wrote: > > Am 21.11.2010 um 12:28 schrieb Philipp Gesang: > > > Dear fellow Contexters, > > > > there are some subheadings I’d like to place in the margin > > approximately like that: > > \setuplayout[grid=yes]\showgrid > > \define[2]\SectionCommand > {\inleftmargin{#2}} > > \setuphead > [section] > [alternative=text, >style=bold, >color=red, >command=\SectionCommand, >distance=0pt, >before={\blank[nowhite]}] > > \starttext > > \dorecurse{10} > {\section{Knuth} >\input knuth\par} > > \stoptext > > Wolfgang Works like a charm, many, many thanks! > > ___ > 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 > ___ -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgp51fsWJ1EvS.pgp 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] heading in margin + grid
Am 21.11.2010 um 12:28 schrieb Philipp Gesang: > Dear fellow Contexters, > > there are some subheadings I’d like to place in the margin > approximately like that: \setuplayout[grid=yes]\showgrid \define[2]\SectionCommand {\inleftmargin{#2}} \setuphead [section] [alternative=text, style=bold, color=red, command=\SectionCommand, distance=0pt, before={\blank[nowhite]}] \starttext \dorecurse{10} {\section{Knuth} \input knuth\par} \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 ___
Re: [NTG-context] Inleft text not verticaly aligned
Eric DÉTREZ schrieb: > Hello > > I tried to get some sections without any title and with numbering in > the margin. > Here is an example of a try I made : > > %%% > \def\CommandQS#1#2{\inleft{\bf \currentheadnumber}} > \setuphead[section][alternative=text, > command=\CommandQS > ] > > \starttext > > \section{} $\displaystyle {4 \over \displaystyle {1 \over 3}}$. > > > \stoptext > %%% > > Unfortunately the numbering is aligned with the bottom of the line, > not the base line. > > Is there any cure to this ? You can try the following placebo... ;) \starttext \showframe \showgrid \def\CommandQS#1#2% {\inleftmargin{\bf\strut\currentheadnumber}} \setuphead[section] [alternative=text, command=\CommandQS, ] \starttext \section{} \ruledhbox{$\displaystyle {4 \over \displaystyle {1 \over 3}}$.} \stoptext btw: are you really starting your section with such an expression? Best wishes, Peter > > > > Eric DÉTREZ > Lycée Faidherbe Lille > Maths PC* : http://sites.google.com/site/pc1faidherbe/ > Info MP-MP* : http://sites.google.com/site/infofaidherbe/ > > > > > > ___ > 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 : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ > ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [Fwd: Line numbering]
Aditya Mahajan wrote: > Hi CVR, > > >> From: CV Radhakrishnan <[EMAIL PROTECTED]> >> Reply-To: mailing list for ConTeXt users >> To: Mailing list for ConTeXt users >> Subject: [NTG-context] Line numbering >> Date: Sat, 02 Sep 2006 10:13:31 +0530 >> >> Dear all, >> >> Forgive me if I sound naive. I searched the archives, but could not >> find the solution for my following problem: >> >> I need to have line numbers for the text formatted in two columns. The >> numbers for left column shall appear in the left side and that for right >> column shall appear in the right side of the page. location=inmargin >> option to the \setuplinenumbering doesn't help much. Please take a look >> at the following image: >> >> http://www.river-valley.com/cvr/one.png >> >> which will give you an idea of my requirement. Any help in this matter >> will be highly apprecaited and thanks in advance. >> > > I do not know how to automate what you want. An ugly solution is to > specify the column breaks yourself, something like > > \unprotect > \def\dosetuplinenumbering[#1]% >{\getparameters[\??rn][\c!start=1,\c!step=1,#1]% > %\global\linenumber\plusone > %Do not reset linenumber. Why is this here? >} > \protect > > > \starttext > \startcolumns > \setuplinenumbering[location=inleft] >\startlinenumbering > \input knuth >\stoplinenumbering >\column >\setuplinenumbering[location=inright] >\startlinenumbering[continue] > \input knuth >\stoplinenumbering > \stopcolumns > \stoptext > proof of concept: \newcounter\TestNumber \let\normaldodoplacelinenumber\dodoplacelinenumber \def\dodoplacelinenumber {\doglobal\increment\TestNumber \xypos{lnm:\TestNumber}% \ifdim\MPx{lnm:\TestNumber}>.5\makeupwidth \swapmacros\inleftmargin\inrightmargin \fi \normaldodoplacelinenumber} \setuplinenumbering[location=inleft] \startcolumns \startlinenumbering \input tufte \endgraf \input tufte \endgraf \input tufte \endgraf \stoplinenumbering \stopcolumns \stoptext in order to let this work ok (spacing) we need to write a nice patch (and also use the opportunity to clean up some code) which will take a couple of hours, so not today .. 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] bookmarks, accented caracters, breaking URLs
At 20:07 17/12/2003, you wrote: Hello, (first: Thanks, Hans for the answer, I added some space in \unknownreference and a $\blacktriangleright$, but otherwise I won't miss any reference anymore; fingers crossed.) an option is to move the mark in the margin, \inleftmargin{...} or something similar Hans ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context