ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>, urban.m@ca.rr.com
Subject: [NTG-context] Re: Why Difference Between \placefloat and \definefloat
Date: Mon, 29 Apr 2024 18:32:34 +0200	[thread overview]
Message-ID: <71209fda-56cb-53b4-9da4-5670df1a946e@gmail.com> (raw)
In-Reply-To: <7ca1d07dc6568b4482041f2974a3a2ffac7d78a2@webmail>

urban.m@ca.rr.com schrieb am 28.04.2024 um 19:54:
> I swear I used to understand this stuff.  I plead old age.   Why do I 
> get two different results from the float placements here:
>
> \definefloat[mysidebar][mysidebars]
> \setupfloat[mysidebar][leftmargindistance=-.25in,rightmargindistance=-.25in,outer,none]

1. You can't pass assignments and keywords to the same argument.

2. The \setupfloat command accepts only assignments as arguments, this 
means "outer" and "none" are ignored.

To set a default location for the float use 
\setupfloat[...][default={outer,none}]

> \defineframedtext [sidebartext]
> [width=.4\textwidth,bodyfont=small,corner=round,background=color,backgroundcolor=lightgray,align=flushleft]
>
> \starttext
> This is a bit of text
> \placefloat[sidebar][leftmargindistance=-.25in,rightmargindistance=-.25in,outer,none]{}{

1. You're again passing assignments and keywords with a single argument.

2. The \placefloat commands accepts only keywords and ignores all 
assignments, this means your distance settings have no effect.

Wolfgang

___________________________________________________________________________________
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-04-29 16:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-28 17:54 [NTG-context] " urban.m
2024-04-28 18:08 ` [NTG-context] " Henning Hraban Ramm
2024-04-29 16:32 ` Wolfgang Schuster [this message]
2024-04-28 18:26 urban.m

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=71209fda-56cb-53b4-9da4-5670df1a946e@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --cc=ntg-context@ntg.nl \
    --cc=urban.m@ca.rr.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).