Re: [NTG-context] Recommendation for including MATLAB-scripts
On Sun, 22 Apr 2012, Xenia wrote: On 19.04.2012 21:11, Aditya Mahajan wrote: On Thu, 19 Apr 2012, Xenia wrote: Dear context-folks, I have to write some short protocols including some matlab-code. Do you have a recommendation for an easy way to include '.m'-files and diaries as code? I'd recommend to use the vim module, which uses vim to generate syntax highlighted source code. [...] You need both the filter module and the vim module for this to work, and also need the vim binary in your path. Thank you. I get the following error message: ! Undefined control sequence. system > tex > error on line 5 in file 2.tex: Undefined control sequence ... Sorry, that should be \typeMATLABfile{...} See the vim module documentation for details: https://github.com/adityam/filter/blob/master/vim-README.md All files are attached. I use the current version: 2012.04.19 23:18. What is the problem here? The log file was empty. Aditya ___ 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] \footnote in \startlines[space=on] overflows
Philipp Gesang writes: > On 2012-04-22 19:38, Marco Pessotto wrote: >> Thanks! Still there is the problem of the footnote. I can live with some >> random space (expecially if there is the workaround!), but the footnotes >> are quite an issue. > > Took some code digging but finally: And indeed it works like a charm. Thanks a lot. > > \startsetups get_back_my_spacing > \activatespacehandler{off} > \stopsetups > > \setupnote[footnote][setups=get_back_my_spacing] > > \starttext > > \startlines[space=on] > > this is a {\em test} with a long long long long > line\footnote{this is a test with a long long long long line this is a test > with a long long long long line this is a test with a long long long long > line this is a test with a long long long long line} > another line, obeying spaces once more > this is no haiku > > \stoplines > > \stoptext > > > (NB the “setups” parameter is declared “experimental” in > strc-not.mkvi; it might misbehave some time in the future ...) > > Regards > Philipp -- Marco ___ 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] \footnote in \startlines[space=on] overflows
On 2012-04-22 19:38, Marco Pessotto wrote: > Philipp Gesang writes: > > > On 2012-04-22 17:16, Marco Pessotto wrote: > > > n> I remember I brought this up a while ago: > > http://archive.contextgarden.net/message/20100916.124413.0e12af0e.en.html > > Seems like one can avoid the spaces through grouping (or with > > “\gobbleoneargument”; or by using a single-argument wrapper > > instead of a font switch; or by using an active character for > > termination of the macro name; refer to spac-lin.mkiv, lines > > 18--31, for the official options). > > Thanks! Still there is the problem of the footnote. I can live with some > random space (expecially if there is the workaround!), but the footnotes > are quite an issue. Took some code digging but finally: \startsetups get_back_my_spacing \activatespacehandler{off} \stopsetups \setupnote[footnote][setups=get_back_my_spacing] \starttext \startlines[space=on] this is a {\em test} with a long long long long line\footnote{this is a test with a long long long long line this is a test with a long long long long line this is a test with a long long long long line this is a test with a long long long long line} another line, obeying spaces once more this is no haiku \stoplines \stoptext (NB the “setups” parameter is declared “experimental” in strc-not.mkvi; it might misbehave some time in the future ...) Regards Philipp > > -- > Marco > > ___ > 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 pgp7Y3XU7r0bp.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] Recommendation for including MATLAB-scripts
On 19.04.2012 21:11, Aditya Mahajan wrote: > On Thu, 19 Apr 2012, Xenia wrote: > >> Dear context-folks, >> >> I have to write some short protocols including some matlab-code. Do you >> have a recommendation for an easy way to include '.m'-files and diaries >> as code? > > I'd recommend to use the vim module, which uses vim to generate syntax > highlighted source code. [...] > You need both the filter module and the vim module for this to work, and > also need the vim binary in your path. Thank you. I get the following error message: ! Undefined control sequence. system > tex > error on line 5 in file 2.tex: Undefined control sequence ... All files are attached. I use the current version: 2012.04.19 23:18. What is the problem here? Thanks, Xenia \usemodule[vim] \definevimtyping[MATLAB][syntax=matlab] \starttext \includeMATLABfile{aufg1.m} \stoptext % runtime options files (command line driven) \unprotect % feedback and basic job control % handy for special styles \startluacode document = document or { } document.arguments={ } document.files={ "2", } \stopluacode % process info \setupsystem[inputfile=2] \setupsystem[\c!n=1,\c!m=1] % modes % options (not that important) \startsetups *runtime:options \stopsetups % styles and modules \startsetups *runtime:modules \stopsetups % done \protect \endinput ___ 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] Pagenumbers doublesided
Delete the blank after marginedge. Always? I have to clean up my code … ___ 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] Pagenumbers doublesided
\setuppagenumbering [alternative=doublesided, location=margin] % location={header,margin} I need »marginedge«, but with this option I get pagenumbers starting on the left side. In an earlier project I used »marginedge« well. Ignore this, it was a patch for the core which is already applied. Ok. ___ 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] Pagenumbers doublesided
Delete the blank after marginedge. Matthias On Apr 22, 2012, at 2:50 PM, Markus Finke wrote: > Hi, > > I can’t get simple pagenumbers starting right-left-right-etc. > > This minimal example results in middle pagenumbers (ConTeXt ver: 2012.04.19): > > --- > > \setuppagenumbering [ alternative=doublesided, > location=marginedge ] > \starttext > \dorecurse{20}{\input knuth \par} > \stoptext > > --- > > This solution doesn’t work for me (How to used it? – I copied the code in my > preamble): > > http://archive.contextgarden.net/message/20120202.175424.41cbe6f3.en.html#context > > TIA! > ___ > 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 > ___ ___ 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] Pagenumbers doublesided
Am 22.04.2012 um 20:50 schrieb Markus Finke: > Hi, > > I can’t get simple pagenumbers starting right-left-right-etc. > > This minimal example results in middle pagenumbers (ConTeXt ver: 2012.04.19): > > --- > > \setuppagenumbering [ alternative=doublesided, > location=marginedge ] > \starttext > \dorecurse{20}{\input knuth \par} > \stoptext > > --- \setuppagenumbering [alternative=doublesided, location=margin] % location={header,margin} \starttext \dorecurse{20}{\input knuth\par} \stoptext > This solution doesn’t work for me (How to used it? – I copied the code in my > preamble): > > http://archive.contextgarden.net/message/20120202.175424.41cbe6f3.en.html#context Ignore this, it was a patch for the core which is already applied. 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] Pagenumbers doublesided
Hi, I can’t get simple pagenumbers starting right-left-right-etc. This minimal example results in middle pagenumbers (ConTeXt ver: 2012.04.19): --- \setuppagenumbering [ alternative=doublesided, location=marginedge ] \starttext \dorecurse{20}{\input knuth \par} \stoptext --- This solution doesn’t work for me (How to used it? – I copied the code in my preamble): http://archive.contextgarden.net/message/20120202.175424.41cbe6f3.en.html#context TIA! ___ 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] Is there some easy way to do tufte-style side note?
Am 2012-04-22 um 18:30 schrieb Yue Wang: There are many styles available on the context-garden site (http://wiki.contextgarden.net/Sample_documents) which are really helpful to help newcomers to learn how to define styles in context. Wouldn't it be great to add tufte's and bringhurst's as extra examples? Of course - just do it. Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] Changing navigation symbol
When I run this example I don’t get the symbol unless I enable the indicator: %\setupnote[footnote][indicator=yes] This was an unknown option for me, it wasn’t used in the document. My old ConTeXt ver: 2012.03.05 is updated now and without indicator=no it’s solved now. Thank you! ___ 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] \footnote in \startlines[space=on] overflows
Philipp Gesang writes: > On 2012-04-22 17:16, Marco Pessotto wrote: > n> I remember I brought this up a while ago: > http://archive.contextgarden.net/message/20100916.124413.0e12af0e.en.html > Seems like one can avoid the spaces through grouping (or with > “\gobbleoneargument”; or by using a single-argument wrapper > instead of a font switch; or by using an active character for > termination of the macro name; refer to spac-lin.mkiv, lines > 18--31, for the official options). Thanks! Still there is the problem of the footnote. I can live with some random space (expecially if there is the workaround!), but the footnotes are quite an issue. -- Marco ___ 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] \footnote in \startlines[space=on] overflows
On 2012-04-22 17:16, Marco Pessotto wrote: > > Dear list, > > I use \(start|stop)lines[spaces=on] to typeset poetry, which seems the > right thing to do to preserve eventual initial whitespace. > > Anyway, I encounter the following issues: > > = cut here = % > \starttext > > this is normal text. > > \startlines[space=on] > > this is a {\em test} with a long long long long line\footnote{this is >a test with a long long long long line this is a test with a long >long long long line this is a test with a long long long long line >this is a test with a long long long long line} > > \stoplines > > Normal text again. > > \stoptext > = cut here = % > > First, the {\em test} consumes a whitespace, even if after a command the > space is supposed to be eaten. Hi Marco, I remember I brought this up a while ago: http://archive.contextgarden.net/message/20100916.124413.0e12af0e.en.html Seems like one can avoid the spaces through grouping (or with “\gobbleoneargument”; or by using a single-argument wrapper instead of a font switch; or by using an active character for termination of the macro name; refer to spac-lin.mkiv, lines 18--31, for the official options). Hth Philipp -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgpgp0fX3GS1M.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] Is there some easy way to do tufte-style side note?
There are many styles available on the context-garden site (http://wiki.contextgarden.net/Sample_documents) which are really helpful to help newcomers to learn how to define styles in context. Wouldn't it be great to add tufte's and bringhurst's as extra examples? On Sun, Apr 22, 2012 at 4:17 AM, Wolfgang Schuster wrote: > > Am 22.04.2012 um 09:33 schrieb S Barmeier: > >> On 04/22/2012 04:16 PM, Yue Wang wrote: >>> Dear powerful ConTeXt users: >>> >>> Is there some way to do tufte style side notes? I googled and did >>> found Wolfgang's solution >>> >> (http://archive.contextgarden.net/message/20110906.202722.f501f115.en.html) >>> but it's just too simple and cannot be used for production. Side notes >>> will cluttered or fall out of pages. >>> >>> LaTeX does provide a good solution for this style. I am wondering if >>> this is possible to do in context. >>> >>> I am also curious to know simple way to do multiple float style in >>> ConTeXt (like graphics spanning text and margin and many others). >>> >>> Yue Wang >> >> Well, I am no powerful ConTeXt user, but \inmargin and derivatives >> (\inouter \ininner \inright \inleft) have an option stack=yes to avoid >> overlapping and stack=continue to avoid ... overlapping. As I understand >> it, the former is for shorter margin notes, the latter for use with >> paragraph-sized notes. >> >> There is also \startmarginblock ... \stopmarginblock and it exceed my >> ConTeXt user powers to be able to tell you the difference. My guess is, >> that this type of margin note is a block, which maybe enjoys features of >> textblocks...? But I, too, would be interested to understand the >> difference in any detail. >> >> I also use margin notes extensively (or at least hope the final version >> of my document will be able to), but as of now, there seems to be no way >> to float margin notes to the top/bottom of the page and no way to >> prevent longer notes, attached to a line near the bottom of a page, to >> exceed the margin and be typeset even beyond the page boundaries... >> (Forgive me, if I'm wrong). > > All of the mechanisms are added at different times in the process to make > from text a page. > > Margindata (\inmargin etc.) is added to the line where you have it in your > and doesn’t move from this position but you prevent overlapping of two > different texts in the line with “stack=yes”. > > Marginblocks are added after ConTeXt has finished the entire page. > > As you can see in the example below it’s possible to have text > at different levels on the same position. > > \setupmarginblock[color=green] > > \setupnote [footnote][location=none] > \setupnotation[footnote][color=blue] > > \setuptexttexts > [margin] > [] > [{\framed[frame=off,height=\textheight,width=broad,offset=none,align=high]{\placenotes[footnote][before=]}}] > > \starttext > > \inright[color=red]{Paragraph 1} > > \input knuth\footnote{Footnote 1} > > \startmarginblock > \input ward > \stopmarginblock > > \inright[color=red]{Paragraph 2} > > \input knuth > > \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] \footnote in \startlines[space=on] overflows
Dear list, I use \(start|stop)lines[spaces=on] to typeset poetry, which seems the right thing to do to preserve eventual initial whitespace. Anyway, I encounter the following issues: = cut here = % \starttext this is normal text. \startlines[space=on] this is a {\em test} with a long long long long line\footnote{this is a test with a long long long long line this is a test with a long long long long line this is a test with a long long long long line this is a test with a long long long long line} \stoplines Normal text again. \stoptext = cut here = % First, the {\em test} consumes a whitespace, even if after a command the space is supposed to be eaten. Second, the footnote overflows. (Tested with the latest beta). Thanks in advance. Best regards -- Marco ___ 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] \goto[]…\reference[] in component files query
I understand that there was a problem with cross-references within components of a product structure that use \goto[…] and \reference[…]. Has this been fixed yet? I have not been able to get them to work with the latest ConTeXt standalone and thought I should check. My \at[] and \in[] cross-references are OK. Alan ___ 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] Is there some easy way to do tufte-style side note?
Am 2012-04-22 um 13:13 schrieb Wolfgang Schuster: - footnotes appear doubled in margin and in footer, even with "location=none" in both setups I noticed this and this does also happen with \endnotes etc. - numbering is by document (at least not by page, if I setup "way=bypage") Did you use \setupnotation to change the counter setting? \setupnotation[footnote][way=bypage] No, sorry, I had it in \setupnote like before; it works in \setupnotation, thank you. Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] Is there some easy way to do tufte-style side note?
Am 22.04.2012 um 11:55 schrieb Henning Hraban Ramm: > Thank you for the example, I need the same, and my setup worked some months > before, but ConTeXt (latest beta) seems broken in that regard: > > - footnotes appear doubled in margin and in footer, even with "location=none" > in both setups I noticed this and this does also happen with \endnotes etc. > - numbering is by document (at least not by page, if I setup "way=bypage") Did you use \setupnotation to change the counter setting? \setupnotation[footnote][way=bypage] \starttext \dorecurse{10}{\input knuth\footnote{Footnote \recurselevel}\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] Is there some easy way to do tufte-style side note?
Am 2012-04-22 um 10:17 schrieb Wolfgang Schuster: All of the mechanisms are added at different times in the process to make from text a page. Margindata (\inmargin etc.) is added to the line where you have it in your and doesn’t move from this position but you prevent overlapping of two different texts in the line with “stack=yes”. Marginblocks are added after ConTeXt has finished the entire page. As you can see in the example below it’s possible to have text at different levels on the same position. \setupmarginblock[color=green] \setupnote[footnote][location=none] \setupnotation[footnote][color=blue] \setuptexttexts [margin] [] [{\framed[frame=off,height= \textheight,width=broad,offset=none,align=high]{\placenotes[footnote] [before=]}}] \starttext \inright[color=red]{Paragraph 1} \input knuth\footnote{Footnote 1} \startmarginblock \input ward \stopmarginblock \inright[color=red]{Paragraph 2} \input knuth \stoptext Thank you for the example, I need the same, and my setup worked some months before, but ConTeXt (latest beta) seems broken in that regard: - footnotes appear doubled in margin and in footer, even with "location=none" in both setups - numbering is by document (at least not by page, if I setup "way=bypage") Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] Is there some easy way to do tufte-style side note?
Am 22.04.2012 um 09:33 schrieb S Barmeier: > On 04/22/2012 04:16 PM, Yue Wang wrote: >> Dear powerful ConTeXt users: >> >> Is there some way to do tufte style side notes? I googled and did >> found Wolfgang's solution >> > (http://archive.contextgarden.net/message/20110906.202722.f501f115.en.html) >> but it's just too simple and cannot be used for production. Side notes >> will cluttered or fall out of pages. >> >> LaTeX does provide a good solution for this style. I am wondering if >> this is possible to do in context. >> >> I am also curious to know simple way to do multiple float style in >> ConTeXt (like graphics spanning text and margin and many others). >> >> Yue Wang > > Well, I am no powerful ConTeXt user, but \inmargin and derivatives > (\inouter \ininner \inright \inleft) have an option stack=yes to avoid > overlapping and stack=continue to avoid ... overlapping. As I understand > it, the former is for shorter margin notes, the latter for use with > paragraph-sized notes. > > There is also \startmarginblock ... \stopmarginblock and it exceed my > ConTeXt user powers to be able to tell you the difference. My guess is, > that this type of margin note is a block, which maybe enjoys features of > textblocks...? But I, too, would be interested to understand the > difference in any detail. > > I also use margin notes extensively (or at least hope the final version > of my document will be able to), but as of now, there seems to be no way > to float margin notes to the top/bottom of the page and no way to > prevent longer notes, attached to a line near the bottom of a page, to > exceed the margin and be typeset even beyond the page boundaries... > (Forgive me, if I'm wrong). All of the mechanisms are added at different times in the process to make from text a page. Margindata (\inmargin etc.) is added to the line where you have it in your and doesn’t move from this position but you prevent overlapping of two different texts in the line with “stack=yes”. Marginblocks are added after ConTeXt has finished the entire page. As you can see in the example below it’s possible to have text at different levels on the same position. \setupmarginblock[color=green] \setupnote[footnote][location=none] \setupnotation[footnote][color=blue] \setuptexttexts [margin] [] [{\framed[frame=off,height=\textheight,width=broad,offset=none,align=high]{\placenotes[footnote][before=]}}] \starttext \inright[color=red]{Paragraph 1} \input knuth\footnote{Footnote 1} \startmarginblock \input ward \stopmarginblock \inright[color=red]{Paragraph 2} \input knuth \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] Is there some easy way to do tufte-style side note?
On 04/22/2012 04:16 PM, Yue Wang wrote: > Dear powerful ConTeXt users: > > Is there some way to do tufte style side notes? I googled and did > found Wolfgang's solution > (http://archive.contextgarden.net/message/20110906.202722.f501f115.en.html) > but it's just too simple and cannot be used for production. Side notes > will cluttered or fall out of pages. > > LaTeX does provide a good solution for this style. I am wondering if > this is possible to do in context. > > I am also curious to know simple way to do multiple float style in > ConTeXt (like graphics spanning text and margin and many others). > > Yue Wang Well, I am no powerful ConTeXt user, but \inmargin and derivatives (\inouter \ininner \inright \inleft) have an option stack=yes to avoid overlapping and stack=continue to avoid ... overlapping. As I understand it, the former is for shorter margin notes, the latter for use with paragraph-sized notes. There is also \startmarginblock ... \stopmarginblock and it exceed my ConTeXt user powers to be able to tell you the difference. My guess is, that this type of margin note is a block, which maybe enjoys features of textblocks...? But I, too, would be interested to understand the difference in any detail. I also use margin notes extensively (or at least hope the final version of my document will be able to), but as of now, there seems to be no way to float margin notes to the top/bottom of the page and no way to prevent longer notes, attached to a line near the bottom of a page, to exceed the margin and be typeset even beyond the page boundaries... (Forgive me, if I'm wrong). 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 ___
[NTG-context] Is there some easy way to do tufte-style side note?
Dear powerful ConTeXt users: Is there some way to do tufte style side notes? I googled and did found Wolfgang's solution (http://archive.contextgarden.net/message/20110906.202722.f501f115.en.html) but it's just too simple and cannot be used for production. Side notes will cluttered or fall out of pages. LaTeX does provide a good solution for this style. I am wondering if this is possible to do in context. I am also curious to know simple way to do multiple float style in ConTeXt (like graphics spanning text and margin and many others). Yue Wang ___ 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 ___