* withdots framing (sharing an example)
@ 2011-03-22 0:02 Pavel Striz
2011-03-22 4:17 ` luigi scarso
2011-03-23 17:19 ` Wolfgang Schuster
0 siblings, 2 replies; 3+ messages in thread
From: Pavel Striz @ 2011-03-22 0:02 UTC (permalink / raw)
To: ntg-context
[-- 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: withdots framing (sharing an example)
2011-03-22 0:02 withdots framing (sharing an example) Pavel Striz
@ 2011-03-22 4:17 ` luigi scarso
2011-03-23 17:19 ` Wolfgang Schuster
1 sibling, 0 replies; 3+ messages in thread
From: luigi scarso @ 2011-03-22 4:17 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Tue, Mar 22, 2011 at 1:02 AM, Pavel Striz <striz@fame.utb.cz> wrote:
> 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.
why don't you put it on the wiki ?
--
luigi
___________________________________________________________________________________
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] 3+ messages in thread
* Re: withdots framing (sharing an example)
2011-03-22 0:02 withdots framing (sharing an example) Pavel Striz
2011-03-22 4:17 ` luigi scarso
@ 2011-03-23 17:19 ` Wolfgang Schuster
1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Schuster @ 2011-03-23 17:19 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 816 bytes --]
Am 22.03.2011 um 01:02 schrieb Pavel Striz:
> \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%
> }%
> }%
> }%
> }%
\def\Picture#1#2#3%
{\placefigure
[][#3]{#2}%
{\leftaligned{\externalfigure[#1][width=3in,background=Label,backgroundoffset=1ex]}}}
or
\def\Picture#1#2#3%
{\placefigure
[][#3]{#2}%
{\framed
[align={flushleft,low},frame=off,height=3in,width=broad]
{\externalfigure[#1][width=3in,background=Label,backgroundoffset=1ex]}}}
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 6008 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-03-23 17:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-22 0:02 withdots framing (sharing an example) Pavel Striz
2011-03-22 4:17 ` luigi scarso
2011-03-23 17:19 ` 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).