From: "Pavel Striz" <striz@fame.utb.cz>
To: <ntg-context@ntg.nl>
Subject: withdots framing (sharing an example)
Date: Tue, 22 Mar 2011 01:02:58 +0100 [thread overview]
Message-ID: <001f01cbe824$812392d0$836ab870$@utb.cz> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1438 bytes --]
Good evening, dear ConTeXtists,
Mr. Eyre in his conference proceedings paper to be (http://striz9.fame.utb.cz/docasne/bulletin/NEtypo.pdf) applies withdots framing via TikZ as he told me. I passed him one of your ideas (Aditya Mahajan, Wolfgang Schuster) and he slightly extended it using Metapost to fit his examples.
I am just sharing it with all the sincere greetings.
Pavel Striz
http://striz9.fame.utb.cz/docasne/bulletin/framed.pdf
http://striz9.fame.utb.cz/docasne/bulletin/framed.tgz
a.k.a.
\startuniqueMPgraphic{Label}
path p; p := (0,0) -- (OverlayWidth,0) -- (OverlayWidth, OverlayHeight) -- (0, OverlayHeight) -- (0,0);
draw p withpen pencircle scaled 1pt dashed withdots;
setbounds currentpicture to boundingbox OverlayBox;
\stopuniqueMPgraphic
\defineoverlay[Label][\useMPgraphic{Label}]
\defineframed[Text][background=Label,frame=off,location=low]
\starttext
AAA \Text{BBB} CCC \Text{DDD} EEE
\def\Picture#1#2#3%
{%
\vbox to 3in%
{%
\vfil%
\placefigure[left][#3]%
{%
\hangindent=0.5pt\hangafter=1{}%
#2%
}%
{%
\hskip-11pt\hbox to 3in%
{%
\Text%
{%
\externalfigure[#1][width=3in]%
}%
\hss%
}%
}%
}%
}%
\Picture{Distract.pdf}{Caption}{Refmarker}%
\stoptext
[-- Attachment #1.2: Type: text/html, Size: 5185 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 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
___________________________________________________________________________________
next reply other threads:[~2011-03-22 0:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-22 0:02 Pavel Striz [this message]
2011-03-22 4:17 ` luigi scarso
2011-03-23 17:19 ` Wolfgang Schuster
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='001f01cbe824$812392d0$836ab870$@utb.cz' \
--to=striz@fame.utb.cz \
--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).