* Marginrule levels after \placefigure[right]
@ 2016-08-28 20:48 Aditya Mahajan
2016-08-28 20:59 ` Aditya Mahajan
0 siblings, 1 reply; 2+ messages in thread
From: Aditya Mahajan @ 2016-08-28 20:48 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: TEXT/PLAIN, Size: 616 bytes --]
Hi,
This is based on a question on TeX.SE
https://tex.stackexchange.com/questions/326653/context-wrapfigure-interacts-with-marginrule
All marginrules except those of level 1 stop working after
\placefigure[right]. Here is a minimal example:
\useexternalfigure[ctanlion][http://www.ctan.org/lion/ctan_lion_350x350.png][width=4cm]
\starttext
\placefigure[here,none,right]{}{\externalfigure[ctanlion]}
\input knuth
\startmarginrule[2]
\input ward
\stopmarginrule
\startmarginrule[1]
\input ward
\stopmarginrule
\startmarginrule[3]
\input ward
\stopmarginrule
\stoptext
The output is attached.
Aditya
[-- Attachment #2: Type: APPLICATION/pdf, Size: 62831 bytes --]
[-- Attachment #3: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Marginrule levels after \placefigure[right]
2016-08-28 20:48 Marginrule levels after \placefigure[right] Aditya Mahajan
@ 2016-08-28 20:59 ` Aditya Mahajan
0 siblings, 0 replies; 2+ messages in thread
From: Aditya Mahajan @ 2016-08-28 20:59 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: TEXT/PLAIN, Size: 745 bytes --]
On Sun, 28 Aug 2016, Aditya Mahajan wrote:
> Hi,
>
> This is based on a question on TeX.SE
> https://tex.stackexchange.com/questions/326653/context-wrapfigure-interacts-with-marginrule
>
> All marginrules except those of level 1 stop working after
> \placefigure[right]. Here is a minimal example:
>
> \useexternalfigure[ctanlion][http://www.ctan.org/lion/ctan_lion_350x350.png][width=4cm]
> \starttext
>
> \placefigure[here,none,right]{}{\externalfigure[ctanlion]}
> \input knuth
>
> \startmarginrule[2]
> \input ward
> \stopmarginrule
>
> \startmarginrule[1]
> \input ward
> \stopmarginrule
>
> \startmarginrule[3]
> \input ward
> \stopmarginrule
>
> \stoptext
>
> The output is attached.
The attached patch seems to fix the bug.
Aditya
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: TEXT/x-diff; name=anch-bar.patch, Size: 853 bytes --]
*** /opt/context-minimals/tex/texmf-context/tex/context/base/mkiv/anch-bar.mkiv 2016-08-28 16:55:00.000000000 -0400
--- anch-bar.mkiv 2016-08-28 16:52:47.000000000 -0400
***************
*** 111,118 ****
\advance\d_anch_sidebars_distance\scratchdistance\relax
\fi
\else
\ifnum\m_level=\plusone
- \scratchdimen\sidebarparameter\c!leftmargindistance\relax
\ifdim\scratchdimen=\zeropoint
\advance\d_anch_sidebars_distance\scratchdistance\relax
\else
--- 111,118 ----
\advance\d_anch_sidebars_distance\scratchdistance\relax
\fi
\else
+ \scratchdimen\sidebarparameter\c!leftmargindistance\relax
\ifnum\m_level=\plusone
\ifdim\scratchdimen=\zeropoint
\advance\d_anch_sidebars_distance\scratchdistance\relax
\else
[-- Attachment #3: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-08-28 20:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-28 20:48 Marginrule levels after \placefigure[right] Aditya Mahajan
2016-08-28 20:59 ` Aditya Mahajan
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).