Re: [NTG-context] inmargin for only Roman-numbered items
On 3/20/19 8:50 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 20.03.19 um 20:43: >> [...] >> Is there a way with a \setupitemize (or \setupitemgroup) to configure >> only one kind of numbered (or unnumbered, for that matter) item groups? > > You have to create a new itemgroup environment/instance. > > \defineitemgroup [romanitemize] > \setupitemgroup [romanitemize] [R,inmargin] Many thanks for your help, Wolfgang. This is exactly what I needed. 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] inmargin for only Roman-numbered items
Pablo Rodriguez schrieb am 20.03.19 um 20:43: On 3/20/19 8:09 PM, Wolfgang Schuster wrote: Pablo Rodriguez schrieb am 20.03.19 um 20:03: [...] Is there a way to get only [option=inmargin] for the items that are Roman-numbered? \startitemize[I,inmargin] Many thanks for your reply, Wolfgang. I need a \setup... command, since I’m going to use it in an environment file to typeset XML sources. Is there a way with a \setupitemize (or \setupitemgroup) to configure only one kind of numbered (or unnumbered, for that matter) item groups? You have to create a new itemgroup environment/instance. \defineitemgroup [romanitemize] \setupitemgroup [romanitemize] [R,inmargin] \starttext \startromanitemize \dorecurse{5}{\item item} \stopromanitemize \startitemgroup [romanitemize] \dorecurse{5}{\item item} \stopitemgroup \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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] inmargin for only Roman-numbered items
On 3/20/19 8:09 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 20.03.19 um 20:03: >> [...] >> Is there a way to get only [option=inmargin] for the items that are >> Roman-numbered? > > \startitemize[I,inmargin] Many thanks for your reply, Wolfgang. I need a \setup... command, since I’m going to use it in an environment file to typeset XML sources. Is there a way with a \setupitemize (or \setupitemgroup) to configure only one kind of numbered (or unnumbered, for that matter) item groups? 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] inmargin for only Roman-numbered items
Pablo Rodriguez schrieb am 20.03.19 um 20:03: Dear list, I have the following sample: \showframe \setupitemize[each][option=inmargin] \starttext \startitemize[n] \dorecurse{5}{\item item} \stopitemize \startitemize \dorecurse{5}{\item item} \stopitemize \startitemize[I] \dorecurse{5}{\item item} \stopitemize \stoptext Is there a way to get only [option=inmargin] for the items that are Roman-numbered? \startitemize[I,inmargin] 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 ___
[NTG-context] inmargin for only Roman-numbered items
Dear list, I have the following sample: \showframe \setupitemize[each][option=inmargin] \starttext \startitemize[n] \dorecurse{5}{\item item} \stopitemize \startitemize \dorecurse{5}{\item item} \stopitemize \startitemize[I] \dorecurse{5}{\item item} \stopitemize \stoptext Is there a way to get only [option=inmargin] for the items that are Roman-numbered? 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 ___
[NTG-context] inmargin attachments from notes
Dear list, I have the following sample: \setupinteraction[state=start] \setupinteractionscreen[option=attachment] \setuppapersize[A9, landscape] \starttext \footnote{attachment\attachment [xml-mkiv.pdf] [location=inmargin]} \stoptext Using latest beta (from 2019.03.05 15:40), I’m afraid that inmargin attachments aren’t displayed in footnotes. It makes no difference with \setupnotation[footnote][alternative=serried] Am I missing something or have I hit a bug? 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] inmargin produces underfull hbox
You can get of the warning by changing the alignment for the \margindata entries. \setupmarginframed [inmargin] [align={flushright,broad}] \starttext Overfull\inmargin{abc} \stoptext You can produce the same message with the following example. \starttext \vbox {\hsize\leftmarginwidth \setupalign[flushright] \bf abc} \stoptext Wolfgang Hans van der Meer schrieb am 07.09.18 um 13:02: This minimal example: \starttext \currentdate-\currenttime\quad\ConTeXt-version=\contextversion\blank Testing \ConTeXt macro\ \tex{inmargin} \blank Some text to fill the body of the text.\par \inmargin{\hbox{abc}} Some text to fill the body of the text\par \stoptext produces an underfull hbox: Underfull \hbox (badness 1210) in paragraph at lines 6--6 [][][] the same happens with the line: \inmargin{abc} Underfull \hbox (badness 1210) in paragraph at lines 6--6 []<9: lmroman12-bold @ 12.0pt> abc[] addition of \hfil or \hss doesn’t help. My conclusion: this is somewhere located in \inmargin. It would be nice if this can be resolved, because in procession some 500 \inmargin’s the log is cluttered with all these messages. dr. Hans van der Meer ___ 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 ___
[NTG-context] inmargin produces underfull hbox
This minimal example: \starttext \currentdate-\currenttime\quad\ConTeXt-version=\contextversion\blank Testing \ConTeXt macro\ \tex{inmargin} \blank Some text to fill the body of the text.\par \inmargin{\hbox{abc}} Some text to fill the body of the text\par \stoptext produces an underfull hbox: Underfull \hbox (badness 1210) in paragraph at lines 6--6 [][][] the same happens with the line: \inmargin{abc} Underfull \hbox (badness 1210) in paragraph at lines 6--6 []<9: lmroman12-bold @ 12.0pt> abc[] addition of \hfil or \hss doesn’t help. My conclusion: this is somewhere located in \inmargin. It would be nice if this can be resolved, because in procession some 500 \inmargin’s the log is cluttered with all these messages. dr. Hans van der Meer ___ 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] \inmargin
Dear Syndicate, ConTeXt ver: 2014.12.30 09:48 MKIV beta This is LuaTeX, Version beta-0.79.2 (TeX Live 2014/W32TeX) The following used to work: \starttext \define[5]\EDUITEM{\framed[frame=off,align=width,width=broad] {{\bf #1 }\inmargin{\it #2}\ (#3).\crlf {\bf #4}, #5.\blank[small]}} \EDUITEM{Certificate of Proficiency}{2005}{\ConTeXt\ Studies}{\ConTeXt\ Seminary}{\TeX{ville}, \TeX{land}} \stoptext Now I get nothing in the margin. Please advise! Best wishes Idris -- Idris Samawi Hamid Professor of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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
Am 30.12.2014 um 22:15 schrieb Idris Samawi Hamid ادريس سماوي حامد isha...@colostate.edu: Dear Syndicate, ConTeXt ver: 2014.12.30 09:48 MKIV beta This is LuaTeX, Version beta-0.79.2 (TeX Live 2014/W32TeX) The following used to work: \starttext \define[5]\EDUITEM{\framed[frame=off,align=width,width=broad] {{\bf #1 }\inmargin{\it #2}\ (#3).\crlf {\bf #4}, #5.\blank[small]}} \EDUITEM{Certificate of Proficiency}{2005}{\ConTeXt\ Studies}{\ConTeXt\ Seminary}{\TeX{ville}, \TeX{land}} \stoptext Now I get nothing in the margin. Please advise! Use \inmargin[scope=local]{…} when you use the command within a box structure. 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] \inmargin
On Tue, 30 Dec 2014 14:50:25 -0700, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Use \inmargin[scope=local]{…} when you use the command within a box structure. Thanks, Wolfgang! -- Idris Samawi Hamid Professor of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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
I had a look at the garden reference of \setupinmargin. Trying to set width=70mm, I get no change. The default seems to be bold and aligned right. Changing the style works, but trying to align inner/left also has no effect. Any help? Thank you, Severin ___ 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
Am 04.03.2012 um 10:39 schrieb S Barmeier: I had a look at the garden reference of \setupinmargin. Trying to set width=70mm, I get no change. \setuplayout [backspace=8cm, leftmargin=7cm, cutspace=2cm, width=middle] \starttext \inmargin{\input ward } \input knuth \stoptext The default seems to be bold and aligned right. Changing the style works, but trying to align inner/left also has no effect. Style and color: \setupmargindata[…][style=…,color=…] Alignment: \setupmarginframed[align=…] Can be also done direct: \inmargin[style=…,color=…][align=…]{…} 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] \inmargin
Could someone savant provide me with a rough overview of how to place text in a margin these days, or else point me to a reference. (I searched the garden without success.) Many thanks, Severin ___ 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
Am 03.03.2012 um 16:59 schrieb S Barmeier: Could someone savant provide me with a rough overview of how to place text in a margin these days, or else point me to a reference. (I searched the garden without success.) You place them in the same way as you did it in the past: \starttext \input ward \inmargin{INMARGIN} \input ward \inleft {INLEFT} \inright{INRIGHT} \input ward \ininner{INNER} \inouter{OUTER} \input ward \stoptext What has changed is how to defined a new command (\defineinmargin vs. \definemargindata) and how to customize these commands (\setupinmargin vs. \setupmargindata + \setupmarginframed). 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] \inmargin
Great, thank you. Just in case I missed it on the mailing list... Is there a way of floating a margin text to the top/bottom of the page (aligning with the top/bottom of the text area)? Could someone savant provide me with a rough overview of how to place text in a margin these days, or else point me to a reference. (I searched the garden without success.) You place them in the same way as you did it in the past: \starttext \input ward \inmargin{INMARGIN} \input ward \inleft {INLEFT} \inright{INRIGHT} \input ward \ininner{INNER} \inouter{OUTER} \input ward \stoptext What has changed is how to defined a new command (\defineinmargin vs. \definemargindata) and how to customize these commands (\setupinmargin vs. \setupmargindata + \setupmarginframed). 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] inmargin problem in mkiv with luatex when specified with stack
Am 25.02.2011 um 05:20 schrieb Dinh Tran: Hello, Running the following context code doesn't seem to work with context --luatex. Works with context --xetex however. It works in a (currently private) beta but stacking isn’t perfect yet. BTW: The --luatex switch isn’t necessary to run MkIV. 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] inmargin problem in mkiv with luatex when specified with stack
Hello, Running the following context code doesn't seem to work with context --luatex. Works with context --xetex however. -- \setuplayout[backspace=5cm,margin=3cm,margindistance=.5cm,width=middle] \setupinmargin[stack=yes] \starttext A\margintext{A} B\margintext{B}. C\inmargin{C} D\inmargin{D}. \stoptext - I get the following error: 11 C\inmargin{C} D\inmargin{D}. 12 13 \stoptext 14 \ctxcommand ...\directlua \zerocount {commands.#1} \@@ar@@1 ...se \currentposition \previousposition {\scratchskip \dimexpr \MP... \redoloop -\expandrecursecontent \endofloop to be read again { inserted text 2 \dodoloop ...mexpr \recurselevel +\plusone \relax } ... l.11 C \inmargin{C} D\inmargin{D}. %Dinh stack_inmargin-xetex.pdf Description: Adobe PDF document stack_inmargin-luatex.pdf Description: Adobe PDF document ___ 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 ___
[NTG-context] \inmargin / full textwidth line interac tion (was Toward the use of inleft…)
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: 1 − I need a full textwidth black line as separator with a short title centered vertically at left 2 − This separator must be followed by text, and the inbetween vertical space must be configurable (i.e. .5lineheight or a full lineheight doesn't satisfy me) My first idea has been to combine a vertically centered line with inleft or inmargin but that introduces an annoying afterspace… Another idea could be to combine some \hairlines or full textwidth fillinline but then don't know how to vertically align my inmargin text… −−− TEST \setuplayout[reset] \setuplayout[ location=singlesided, leftedge=0mm, leftmargin=25mm, rightedge=0mm, rightmargin=0mm, backspace=40mm, topspace=10mm, bottomspace=10mm, header=0mm, headerdistance=0mm, footer=0mm, footerdistance=0mm, margindistance=0mm, height=fit, width=fit, grid=yes] \setuppagenumbering[state=stop] \setupinmargin[style=normal,align=outer] \starttext \inmargin{blurp}{\line{\leaders\hbox{\vrule width 1pt height .5\strutht depth -\dimexpr.5\strutht-\linewidth\relax} \hfil}} This is not a test \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 followed by \startlines = alignment fault?
On Thu, May 14, 2009 at 09:11:04AM +0200, Hans Hagen wrote: Corsair wrote: Hi guys, I find that the `lines' environment (or description, itemize, etc.) after text in margin does not align right. Consider the following code: in that case you can try \margintext {...} which saves the note and flushes it later Wow~ It works. Thank you very much! I should read the manual more carefully next time :-p. -- There is no emotion; there is peace. There is no ignorance; there is knowledge. There is no passion; there is serenity. There is no death; there is the Force. pgpnVkv4QZZN1.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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \inmargin followed by \startlines = alignment fault?
Hi guys, I find that the `lines' environment (or description, itemize, etc.) after text in margin does not align right. Consider the following code: \starttext \inmargin{What I want} First line \crlf Second line \vskip 1cm \inmargin{What it renders} \startlines First line Second line \stoplines \stoptext The \crlf approach is the effect I want while the `lines' approach fails to do it. So is it a feature or a bug? Or I understand something totally wrong? I know I can put the \inmargin in the `lines' environment, but this time I really need it outside. Thanks. Corsair -- There is no emotion; there is peace. There is no ignorance; there is knowledge. There is no passion; there is serenity. There is no death; there is the Force. pgp6rbvPLCobc.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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] inmargin
I was thinking that things placed in the margin (\inmargin,\inright, \inleft) would not take up vertical space, but it seems to do just that inside an itemize. Example: \starttext \textwidth=4cm \hairline %(1) \startitemize[n,joinedup] \item abc \item cde \stopitemize \hairline %(2) % This seems to me the logical place for the remark. \startitemize[n,joinedup] \inright{pqr} % squeezing spaces does not help \item abc \item cde \stopitemize \hairline %(3) \startitemize[n,joinedup] % But it has to be placed here to get the result wanted. \item abc \inright{pqr} \item cde \stopitemize \hairline \stoptext I wanted a remark in the right margin logically applying to the itemize as a whole. Placing it as in (2) looked the right way, but then the next item is placed lower on the page. That becomes a problem when a nested itemize is put there resulting in an empty line at the first itemmarker. Placing the \inright on the first item of the inner itemize seems an illogical place to me. It is, of course, not really problem because trial (3) shows how to avoid this. Still the question remains if there is some misbehaviour here in either the code for \inright or for \itemize? Therefore I am pointing this out just in case it might reveal a more or less subtle bug too more wiser ConTeXt-brains then mine. Hans van der Meer ___ 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] \inmargin footnotes
I can verify the problem, but I do not know what is wrong. Taco Charles Doherty wrote: Dear all, When I put a footnote reference within \inmargin \setupinmargin[style=\tfxx\setupinterlinespace] he sent one of his followers to the man of God to put out his rekindled fire \inmargin{This is a reference to the \italic{tellach} \footnote{Cf.\ Fergus Kelly, \slanted{A Guide to Early Irish Law}, 68.} procedure for laying claim to land.} and ordered him to be expelled from the territory. When the footnote is typeset the footnote number is placed beneath the first line of the footnote text. What can I do to have the footnote number in its normal position? Thanks, Charlie ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: FWD: [NTG-context] \inmargin, \setupindenting, and overfull boxes
Taco Hoekwater wrote: If there are a lot of margin notes, this can clutter the output considerably, and that's not so much a problem, but an annoyance. I've run into this as well, in context as well as in latex and in my own macros. The problem is usually something like: i've added a \dontcomplain to the main macro now 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: FWD: [NTG-context] \inmargin, \setupindenting, and overfull boxes
Hi Hans Could you send me/post a copy of the modified macro/file (I'm at a mission-critical stage on a project and don't want to install a new beta before it's done unless absolutely necessary-) Also, is there a similar \dontcomplain fix for \start-\stopalignment[left] (underfull hbox)? Idris = Original Message From Hans Hagen [EMAIL PROTECTED] = If there are a lot of margin notes, this can clutter the output considerably, and that's not so much a problem, but an annoyance. I've run into this as well, in context as well as in latex and in my own macros. The problem is usually something like: i've added a \dontcomplain to the main macro now Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: FWD: [NTG-context] \inmargin, \setupindenting, and overfull boxes
Idris Samawi Hamid wrote: Taco, any more hacks up your sleeve? ;-) And thank you very much for the last ones! It seems you have a working solution now, but I'll look into this next week to see if I we can come up with a more permanent solution. Greetings, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: FWD: [NTG-context] \inmargin, \setupindenting, and overfull boxes
Idris Samawi Hamid wrote: CORRECTION: should be === \let\normalinmargin\inmargin \def\inmargin#1{{\parindent0pt \normalinmargin{#1}}} \def\INMARGIN#1{{\advance\leftskip by -2\parindent \inmargin{#1} \advance\rightskip by -2\parindent}} === can you make me a minimal example showing the problem? 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: FWD: [NTG-context] \inmargin, \setupindenting, and overfull boxes
Hans Hagen wrote: can you make me a minimal example showing the problem? Idris' original example shows the 'problem': \setupindenting[medium] \starttext \input knuth \inmargin{This is a test.} \stoptext The output will be fine, but there will be one 'Overfull hbox' message printed on the terminal for each \inmargin command. If there are a lot of margin notes, this can clutter the output considerably, and that's not so much a problem, but an annoyance. I've run into this as well, in context as well as in latex and in my own macros. The problem is usually something like: \vbox{\hsize 0pt \dontleavehmode} Greetings, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
RE: FWD: [NTG-context] \inmargin, \setupindenting, and overfull boxes
= Original Message From Hans Hagen [EMAIL PROTECTED] = can you make me a minimal example showing the problem? Sure, here are 2: both produce overfull hboxes. All the best Idris == \setupoutput[pdftex]% \setupindenting[medium] \starttext \input knuth \inmargin{This is a test.} \stoptext log= systems : begin file test at line 5 (c:\CONTEXT\tex\texmf-local/tex/context/sample/knuth.tex) Overfull \hbox (17.62474pt too wide) in paragraph at lines 7--7 [][] \hbox(10.41603+4.05064)x0.0 .\hbox(0.0+0.0)x17.62474 .\hbox(10.41603+4.05064)x0.0 .\rule(10.41603+4.05064)x0.0 .\glue 0.0 plus 1.0fil minus 1.0fil .\penalty 1 .\glue(\parfillskip) 0.0 plus 1.0fil .\glue(\rightskip) 0.0 === === \setupoutput[pdftex]% \definestartstop [quote] [before={\startnarrower[1*left,1*right]\blank[big]}, after={\stopnarrower\blank[big]}] \starttext \startquote \input knuth \inmargin{This is a test.} \stopquote \stoptext == Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: FWD: [NTG-context] \inmargin, \setupindenting, and overfull boxes
Idris Samawi Hamid wrote: Hi Taco, Ok your hack works for small files but in my larger work this is causing TeX's capacity to overload (indeed, I don't think I've run into this particular overload message before; does the `255' signify some ceiling here?): The definition is not recursive, but it should not be executed more than once because it saves the definition of \inmargin. Perhaps you have the \let line inside another macro or inside a buffer that is called more than once something similar. If you can't figure out what goes wrong, send me a file please? Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: FWD: [NTG-context] \inmargin, \setupindenting, and overfull boxes
Idris Samawi Hamid wrote: I placed your definition in a \start-\stopenvironment file. The \inmargins are in \product files each of which calls the environment file in its preamble. If I compile just one product (say the second \product from the project), there appears to be no problem. But if I compile the entire project, TeX chokes on that same product. Do you think this may be the problem? Yes, because the environment file is read twice, you need a guard against redefining the redefinition. Placing a guard around it, like this, should work: \expandafter\ifx\csname normalinmargin \endcsname \relax \else \let\normalinmargin\inmargin \def\inmargin#1{{\parindent0pt \normalinmargin{#1}}} \fi (yes, that is an ugly hack, but it is one I can write withour actually having to test it before sending :)) Greetings, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
RE: FWD: [NTG-context] \inmargin, \setupindenting, and overfull boxes
Hi Taco and all, More on \inmargin and overfull boxes: If I define, e.g. a quote \start-stop the overfull boxes come back, even with Taco's definition: == \setupoutput[pdftex]% \setupindenting[medium] \let\normalinmargin\inmargin \def\inmargin#1{{\parindent0pt\normalinmargin{#1}}} \definestartstop [quote] [before={\startnarrower[1*left,1*right]\blank[big]}, after={\stopnarrower\blank[big]}] \starttext \startquote \input knuth \inmargin{This is a test.} \input knuth {\parindent0pt\inmargin{This is a test.}} \stopquote \stoptext == Taco, any more hacks up your sleeve? ;-) And thank you very much for the last ones! Best Idris Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
RE: FWD: [NTG-context] \inmargin, \setupindenting, and overfull boxes
Hi Taco and all, I found a temporary solution: Given a \start-\stopnarrower environment like === \definestartstop [quote] [before={\startnarrower[1*middle]\blank[big]}, after={\stopnarrower\blank[big]}] === Then the following will avoid the overfull box: === \let\normalinmargin\inmargin \def\inmargin#1{{\parindent0pt \normalinmargin{#1}}} \def\INMARGIN#1{\advance\leftskip by -2\parindent \inmargin{#1} \advance\rightskip by -2\parindent} === Of course this solution is not general, and depends on the actual setup of \start-\stopnarrower. The general problem with \inmargin appears to be that all parindents need to be reset. I could not find a correct way to incorporate my solution above into Taco's original definition. If any of you have a better idea, please let me know! Best Idris Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
RE: FWD: [NTG-context] \inmargin, \setupindenting, and overfull boxes
CORRECTION: should be === \let\normalinmargin\inmargin \def\inmargin#1{{\parindent0pt \normalinmargin{#1}}} \def\INMARGIN#1{{\advance\leftskip by -2\parindent \inmargin{#1} \advance\rightskip by -2\parindent}} === Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: Fwd: [NTG-context] \inmargin, \setupindenting, and overfull boxes
Hi Idris, It's definately a \parindent, but I cannot figure whence it came. Anyway, if you need an immediate fix, the following hack works: \let\normalinmargin\inmargin \def\inmargin#1{{\parindent0pt \normalinmargin{#1}}} Greetings, Taco Idris Samawi Hamid wrote: Hi gang, I sent this about ten days ago; trying again:-) Best Idris --- Forwarded message --- Dear cartel, Here is one for you-) If you uncomment the \setupindenting you will get an overfull hbox; a real nuisance when you have dozens of \inmargin's... Awaiting advice:-) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: Fwd: [NTG-context] \inmargin, \setupindenting, and overfull boxes
Hi Taco, On Fri, 06 May 2005 08:46:04 +0200, Taco Hoekwater [EMAIL PROTECTED] wrote: Hi Idris, It's definately a \parindent, but I cannot figure whence it came. Anyway, if you need an immediate fix, the following hack works: \let\normalinmargin\inmargin \def\inmargin#1{{\parindent0pt \normalinmargin{#1}}} Thank you for the fix; I'll test it after work. This is interesting, because the original output looks fine in the argument to \inmargin, there is no actual indentation going on... Thnx again Idris --- Forwarded message --- Dear cartel, Here is one for you-) If you uncomment the \setupindenting you will get an overfull hbox; a real nuisance when you have dozens of \inmargin's... -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
RE: FWD: [NTG-context] \inmargin, \setupindenting, and overfull boxes
Hi Taco, Ok your hack works for small files but in my larger work this is causing TeX's capacity to overload (indeed, I don't think I've run into this particular overload message before; does the `255' signify some ceiling here?): === ! TeX capacity exceeded, sorry [grouping levels=255]. \normalinmargin #1-{ \parindent 0pt \normalinmargin {#1}} \normalinmargin ...indent 0pt \normalinmargin {#1} } \normalinmargin ...indent 0pt \normalinmargin {#1} } \normalinmargin ...indent 0pt \normalinmargin {#1} } \normalinmargin ...indent 0pt \normalinmargin {#1} } \normalinmargin ...indent 0pt \normalinmargin {#1} } ... = Although if I implement this manually it does not overload TeX: === \setupoutput[pdftex]% \setupindenting[medium] %\let\normalinmargin\inmargin %\def\inmargin#1{{\parindent0pt \normalinmargin{#1}}} \starttext \input knuth {\parindent0pt\inmargin{This is a test.}} \stoptext === Something about that pseudo-recursive definition I suppose? It may take a while for me to narrow this new problem down to a small file, but I can privately send you the larger files if you care to look at this. Thnx 4 all your help. Best Idris = Original Message From Taco Hoekwater [EMAIL PROTECTED] = Hi Idris, It's definately a \parindent, but I cannot figure whence it came. Anyway, if you need an immediate fix, the following hack works: Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Fwd: [NTG-context] \inmargin, \setupindenting, and overfull boxes
Hi gang, I sent this about ten days ago; trying again:-) Best Idris --- Forwarded message --- Dear cartel, Here is one for you-) If you uncomment the \setupindenting you will get an overfull hbox; a real nuisance when you have dozens of \inmargin's... Awaiting advice:-) Best Idris == \setupoutput[pdftex]% %\setupindenting[medium] \starttext \input knuth \inmargin{This is a test.} \stoptext log= systems : begin file test at line 5 (c:\CONTEXT\tex\texmf-local/tex/context/sample/knuth.tex) Overfull \hbox (17.62474pt too wide) in paragraph at lines 7--7 [][] \hbox(10.41603+4.05064)x0.0 .\hbox(0.0+0.0)x17.62474 .\hbox(10.41603+4.05064)x0.0 ..\rule(10.41603+4.05064)x0.0 ..\glue 0.0 plus 1.0fil minus 1.0fil .\penalty 1 .\glue(\parfillskip) 0.0 plus 1.0fil .\glue(\rightskip) 0.0 === -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \inmargin, \setupindenting, and overfull boxes
Dear cartel, Here is one for you-) If you uncomment the \setupindenting you will get an overfull hbox; a real nuisance when you have dozens of \inmargin's... Awaiting advice:-) Best Idris == \setupoutput[pdftex]% %\setupindenting[medium] \starttext \input knuth \inmargin{This is a test.} \stoptext log= systems : begin file test at line 5 (c:\CONTEXT\tex\texmf-local/tex/context/sample/knuth.tex) Overfull \hbox (17.62474pt too wide) in paragraph at lines 7--7 [][] \hbox(10.41603+4.05064)x0.0 .\hbox(0.0+0.0)x17.62474 .\hbox(10.41603+4.05064)x0.0 ..\rule(10.41603+4.05064)x0.0 ..\glue 0.0 plus 1.0fil minus 1.0fil .\penalty 1 .\glue(\parfillskip) 0.0 plus 1.0fil .\glue(\rightskip) 0.0 === Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] inmargin text problems remain
On Thu, 16 Oct 2003 14:57:12 +0200 Willi Egger [EMAIL PROTECTED] wrote: Does anybody see the clue, how to tell Context to use the full marginwidth? The problem is that notes in the left page outer margin do not use the full margin width, right? If you change your setup to use leftmargin=18mm it will match the outer margin on the right pages, which is already set to 18mm. If this case, rightmargin and leftmargin seem to refer to the outer margins on the right and left pages, not the outer and gutter margins on a single page. -Bill -- Sattre PressThe King in Yellow http://sattre-press.com/ by Robert W. Chambers [EMAIL PROTECTED] http://kiy.sattre-press.com/ ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \inmargin{} problems with typsetting inmargin texts
On Sun, 12 Oct 2003 22:20:30 +0200 Willi Egger [EMAIL PROTECTED] wrote: The strange thing is, that on lefthandpages the inmargin text is typset in the left (outer) margin but it is typeset on two lines, indicating that the measures of the leftmargin of the righthandpage is used. Does \showframe show symmetrical left and right margin areas? I have a margin notes example on my help page. I define the right and left margin areas explicitly like so: \setuplayout[backspace=0.9375in, width=3.25in, rightmargindistance=.25in, rightmargin=1.125in, leftmargindistance=.25in, leftmargin=1.125in] \setuppagenumbering[alternative=doublesided] -Bill -- Sattre PressCuriosities of the Sky http://sattre-press.com/by Garrett Serviss [EMAIL PROTECTED]http://csky.sattre-press.com/ ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context