ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* 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

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).