ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Rudolf Bahr <quasi@quasi.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: narrowered columns on background image?
Date: Wed, 12 Feb 2014 16:50:30 +0100	[thread overview]
Message-ID: <20140212154341.GA20396@mini> (raw)

[-- Attachment #1: Type: text/plain, Size: 1700 bytes --]


Hi All,

in the following two code examples I tried to place text in columns on a background image.
The first example, partly achieved by plain TeX commands is ok, even narrowering works.
Have a look at the attached .pdf file.

The second example isn't ok. Neither narrowering nor putting the text into columns work.
Though the code of the first example is completely good enough for me, I'd like to learn where my 
mistakes in the 2. example are. Any ideas?

Greetings, Rudolf


%---1. example------------------------------------------------------------------->8---------------
\setupexternalfigures
    [location={local,global,default}]

\useexternalfigure[moe][cow.pdf][width=\hsize, height=.4\vsize]

\def\txt
        {
        \startnarrower
        \setupcolumns[n=3, rule=off, align=right, distance=10pt]
        \startcolumns
                \startcolor[darkred]
                It was a dark and stormy night. The rain came down in tons. The old captain
                said: \quotation{Antonio, come and tell us a story!} And Antonio began as follows:
                \quotation{It was a dark and stormy night. The rain ...}
                \stopcolor
        \stopcolumns
        \stopnarrower
        }


\starttext

\vbox to .4\textheight{\externalfigure[moe]}
\vskip-.35\textheight
\txt

%---2. example-----

\vskip.3\vsize

\useexternalfigure[muh][cow.pdf][width=\overlaywidth, height=\overlayheight]

\setupframed[height=.4\vsize, width=\hsize]
\defineoverlay
        [muh]
        [{\externalfigure[muh]}]

\framed
        [background=muh, align=right]
        {\txt}


\stoptext
%-------------------------------------------------------------------------------->8-----------------


[-- Attachment #2: test-5.pdf --]
[-- Type: application/pdf, Size: 13127 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
___________________________________________________________________________________

             reply	other threads:[~2014-02-12 15:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-12 15:50 Rudolf Bahr [this message]
2014-02-13  9:52 ` Wolfgang Schuster
2014-02-14  6:11   ` Rudolf Bahr
2014-02-14  9:20     ` Wolfgang Schuster
2014-02-14 12:06       ` Rudolf Bahr

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=20140212154341.GA20396@mini \
    --to=quasi@quasi.de \
    --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).