* [NTG-context] Why Difference Between \placefloat and \definefloat
@ 2024-04-28 17:54 urban.m
2024-04-28 18:08 ` [NTG-context] " Henning Hraban Ramm
2024-04-29 16:32 ` Wolfgang Schuster
0 siblings, 2 replies; 3+ messages in thread
From: urban.m @ 2024-04-28 17:54 UTC (permalink / raw)
To: 'ntg-context@ntg.nl'
[-- Attachment #1.1: Type: text/plain, Size: 750 bytes --]
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]
defineframedtext [sidebartext]
[width=.4textwidth,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]{}{
startsidebartext
This is a short sidebar
stopsidebartext
}
And something to follow.
A bit of text
placemysidebar{}{
startsidebartext
This is a short sidebar
stopsidebartext
}
And something to follow.
stoptext
[-- Attachment #1.2: Type: text/html, Size: 859 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* [NTG-context] Re: Why Difference Between \placefloat and \definefloat
2024-04-28 17:54 [NTG-context] Why Difference Between \placefloat and \definefloat urban.m
@ 2024-04-28 18:08 ` Henning Hraban Ramm
2024-04-29 16:32 ` Wolfgang Schuster
1 sibling, 0 replies; 3+ messages in thread
From: Henning Hraban Ramm @ 2024-04-28 18:08 UTC (permalink / raw)
To: ntg-context
Where’s the float type "sidebar" defined? AFAIK it’s not a default type.
And it might interfere with the actual sidebar stuff from
https://source.contextgarden.net/tex/context/base/mkxl/anch-bar.mkxl,
see also https://wiki.contextgarden.net/Command/setupsidebar
Hraban
Am 28.04.24 um 19:54 schrieb urban.m@ca.rr.com:
> 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]
>
> \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]{}{
> \startsidebartext
> This is a short sidebar
> \stopsidebartext
> }
> And something to follow.
>
> A bit of text
> \placemysidebar{}{
> \startsidebartext
> This is a short sidebar
> \stopsidebartext
> }
> And something to follow.
>
> \stoptext
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* [NTG-context] Re: Why Difference Between \placefloat and \definefloat
2024-04-28 17:54 [NTG-context] Why Difference Between \placefloat and \definefloat urban.m
2024-04-28 18:08 ` [NTG-context] " Henning Hraban Ramm
@ 2024-04-29 16:32 ` Wolfgang Schuster
1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Schuster @ 2024-04-29 16:32 UTC (permalink / raw)
To: mailing list for ConTeXt users, urban.m
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-04-29 16:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-28 17:54 [NTG-context] Why Difference Between \placefloat and \definefloat urban.m
2024-04-28 18:08 ` [NTG-context] " Henning Hraban Ramm
2024-04-29 16:32 ` Wolfgang Schuster
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).