ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Andy Thomas <andythomas@web.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: images and text stacked in the margin
Date: Mon, 12 Nov 2012 14:45:49 +0100	[thread overview]
Message-ID: <C465A64A-5324-4A7E-B34E-065424F43CA9@web.de> (raw)

Dear list,

I am still struggling to achieve the page layout/look that I am trying to get. For an image of the desired page spread please look here: https://dl.dropbox.com/u/9089117/tufte-spread.png

The design is using the ample margin to place text (sidenotes), figures (images) and tables in the margin. I am unable to get both (images and text) to work properly. 


(1) put all in a \margintext
    \margintext{...} for text
	\margintext{\placefigure...} for external images
	
This option does not work if the position is close to a page break (cp. http://archive.contextgarden.net/message/20121111.191529.3fbef120.en.html)


(2) use two different macros
    \margintext{...} for text and
    \placefigure[location=margin]{}{...} for external images 
    
This option does not work because they are placed on top of each other. I also tried \startplacefigure, but also no luck.


(3) put all in a \placefigure
    \placefigure[margin,none]{}{Text Text} for text
    \placefigure[margin,none]{}{...} for external images
    
This works best, because it starts from the top and nicely stacks the marginals. But it introduces a paragraph break where the sidenote is called. This does not work, it defeats the purpose (imagine a paragraph after every footnote).


(4) use (3) and postponing
    \startpostponing [+1]%
    \startplacefigure[location={margin,none}]%
    Text text\stopplacefigure%
    \stoppostponing%
    
Now, the paragraph break is gone, but the sidenote is on the next page, which does not make sense in our case (cp. http://tex.stackexchange.com/questions/56388/avoid-line-break-after-macro). In general, I do not understand, where the paragraph break at the \placefigure... comes from. It does not seam necessary in most cases (e.g. location=top) and postponing does avoid it. Can I 'gobble' it somehow?


Does anyone have an idea, how to make it work for images as well as text combined?

Andy
___________________________________________________________________________________
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
___________________________________________________________________________________


             reply	other threads:[~2012-11-12 13:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-12 13:45 Andy Thomas [this message]
2012-11-12 14:10 ` Marco Patzer
2012-11-12 19:49   ` Andy Thomas
2012-11-12 21:19     ` Alan BRASLAU

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=C465A64A-5324-4A7E-B34E-065424F43CA9@web.de \
    --to=andythomas@web.de \
    --cc=ntg-context@ntg.nl \
    /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).