ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Yue Wang <yuleopen@gmail.com>
To: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Is there some easy way to do tufte-style side note?
Date: Sun, 22 Apr 2012 12:30:28 -0400	[thread overview]
Message-ID: <CA+C1jubD=8St3qdtqrEGC1Pf12FKULfpz92nVbNqVc0aGdH0QA@mail.gmail.com> (raw)
In-Reply-To: <085111A2-E62C-455B-85BB-817A8CB9F52B@googlemail.com>

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
<schuster.wolfgang@googlemail.com> 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
___________________________________________________________________________________


  parent reply	other threads:[~2012-04-22 16:30 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-22  7:16 Yue Wang
2012-04-22  7:33 ` S Barmeier
2012-04-22  8:17   ` Wolfgang Schuster
2012-04-22  9:55     ` Henning Hraban Ramm
2012-04-22 11:13       ` Wolfgang Schuster
2012-04-22 11:52         ` Henning Hraban Ramm
2012-04-22 16:30     ` Yue Wang [this message]
2012-04-22 18:27       ` Henning Hraban Ramm
2012-05-23 12:23 Beta breaks synonyms Marco
2012-05-23 12:32 ` Wolfgang Schuster
2012-05-23 14:09   ` Is there some easy way to do tufte-style side note? Andy Thomas
2012-05-26 12:12     ` Jano Kula
2012-05-27 14:41       ` Andy Thomas
2012-05-28 14:33         ` Jano Kula

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+C1jubD=8St3qdtqrEGC1Pf12FKULfpz92nVbNqVc0aGdH0QA@mail.gmail.com' \
    --to=yuleopen@gmail.com \
    --cc=ntg-context@ntg.nl \
    --cc=schuster.wolfgang@googlemail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).