From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Marginrule levels after \placefigure[right]
Date: Sun, 28 Aug 2016 16:59:22 -0400 (EDT) [thread overview]
Message-ID: <alpine.OSX.2.02.1608281655330.59736@nqv-znpobbx> (raw)
In-Reply-To: <alpine.OSX.2.02.1608281642140.59057@nqv-znpobbx>
[-- 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
___________________________________________________________________________________
prev parent reply other threads:[~2016-08-28 20:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-28 20:48 Aditya Mahajan
2016-08-28 20:59 ` Aditya Mahajan [this message]
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=alpine.OSX.2.02.1608281655330.59736@nqv-znpobbx \
--to=adityam@umich.edu \
--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).