ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henning Hraban Ramm <texml@fiee.net>
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: Text in Margin
Date: Tue, 20 Feb 2024 08:39:33 +0100	[thread overview]
Message-ID: <daa41710-7ac5-4095-83bf-260b7c98102f@fiee.net> (raw)
In-Reply-To: <CAPtmdbPeJhPfT6UaqBsmPBCmRb4Y0_HUuamKMCZtX2L4u7sb-w@mail.gmail.com>

Am 19.02.24 um 14:14 schrieb Jeroen:
> In a textbook I am looking to place a large left margin at every page of 
> each chapter. At left printed pages a left margin and at right printed 
> pages a right margin, so like a double sided construction. In this 
> margin I would like to place:
> 
> 1. Keywords and small descriptions to emphasize some text from the textflow
> 2. Figures
> 3. An expansion of a table that is placed in the main textflow but that 
> needs to cover a wider range then the text area so it expands into the 
> margin
> 
> What is the the easiest way to achieve this?

Generally, you use \inmargin, \inouter etc.

Additional to Wolfgang’s suggestions:

If you need sidefloats that cover not only the margin but should 
decrease the text width, you can move sidefloats into the margin like:

\startplacefigure[title={},location=outer]
\offset[rightoffset=-\marginwidth]{\externalfigure[cow][width=0.5\textwidth]}
\stopplacefigure

Beware: it doesn’t work well with captions (I’ve still no solution that 
always works), and \offset understands only rightoffset and leftoffset, 
not outeroffset.
The example is on a right page; you must “pull” the image into the 
margin (rightmargin with negative value), if you try „pushing“ with 
leftoffset=\marginwidth, the text flow is wrong.

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

  parent reply	other threads:[~2024-02-20  7:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-19 13:14 [NTG-context] " Jeroen
2024-02-19 21:00 ` [NTG-context] " Wolfgang Schuster
2024-02-20  7:39 ` Henning Hraban Ramm [this message]
2024-02-20  2:22 Andres Conrado Montoya

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=daa41710-7ac5-4095-83bf-260b7c98102f@fiee.net \
    --to=texml@fiee.net \
    --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).