Hello Lars!
Here is my example:
\setuppapersize[A5]
\setupcolors[state=start]
{\framed
[width=10cm,
background=color,backgroundcolor=darkblue,
foreground=color,foregroundcolor=white,
align={flushleft}]
{The Earth, as a habitat for animal life, is in old age and has a fatal illness. Several, in fact.\par
\setupindenting[yes, small]
It would be happening whether humans had ever evolved or not.
\externalfigure[cow.pdf][width=1cm]}
\setupwhitespace[small]
\starttext
Below, we have two separate columns; but up here, for the nonce, we have but the one.
\startcolumns[n=2] % Two columns, please
Text, text, text \dots
all in the first column
\column
Words, words, words \dots
all in the second column.
And look ye here! Even more words!
\stopcolumns
\stoptext
Why can‘t I see the cow?
Many Regards
Uschi
Von: ntg-context Im Auftrag von Lars
Gesendet: Mittwoch, 20. Februar 2019 15:38
An: ntg-context@ntg.nl
Betreff: Re: [NTG-context] Frame
It's the same as with text, but instead of text you put
\externalfigure[path/to-figure.pdf][setup=value]
inside the parenthesis { }:
\setuppapersize[A5]
\starttext
{\framed
[width=10cm,
background=color,backgroundcolor=darkblue,
foreground=color,foregroundcolor=white,
align={flushleft}]
{The Earth, as a habitat for animal life, is
in old age and has a fatal illness. Several,
in fact.\par
\setupindenting[yes, small]
It would be happening whether humans had ever evolved or not.}
\blank
{\framed
[width=10cm,
background=color,backgroundcolor=darkblue,
foreground=color,foregroundcolor=white,
align=middle]
{\externalfigure[path/to-figure.pdf][width=.8\textwidth]}
\stoptext
You don't need the \setupcolors[state=start] command in ConTeXt mkiv by the way.
Am 20/02/2019 um 12:31 schrieb Ursula Hermann:
Hi Marco!
I have another question to Frame. How is the process, if i have to take Figures in a Frame? Sorry, here I have no example, because I dont know, how to write it.
Many thanks
Uschi
-----Ursprüngliche Nachricht-----
Von: Ursula Hermann
Gesendet: Mittwoch, 20. Februar 2019 11:10
An: 'mailing list for ConTeXt users' mailto:ntg-context@ntg.nl
Betreff: AW: [NTG-context] Frame
Hi, Marco!
With colour:
\setuppapersize[A5]
\setupcolors[state=start]
{\framed
[width=10cm,
background=color,backgroundcolor=darkblue,
foreground=color,foregroundcolor=white,
align={flushleft}]
{The Earth, as a habitat for animal life, is in old age and has a fatal illness. Several, in fact.\par \setupindenting[yes, small] It would be happening whether humans had ever evolved or not.}
Many Regards
Uschi
-----Ursprüngliche Nachricht-----
Von: Ursula Hermann
Gesendet: Mittwoch, 20. Februar 2019 10:44
An: 'mailing list for ConTeXt users' mailto:ntg-context@ntg.nl
Betreff: AW: [NTG-context] Frame
Hello Marco!
It works, like I wanted:
\setuppapersize[A5]
{\framed
[width=10cm,
align={flushleft}]
{The Earth, as a habitat for animal life, is in old age and has a fatal illness. Several, in fact.\par \setupindenting[yes, small] It would be happening whether humans had ever evolved or not.}
Thank you for helping
Uschi
-----Ursprüngliche Nachricht-----
Von: ntg-context mailto:ntg-context-bounces@ntg.nl Im Auftrag von Ursula Hermann
Gesendet: Dienstag, 19. Februar 2019 14:17
An: mailing list for ConTeXt users mailto:ntg-context@ntg.nl
Betreff: Re: [NTG-context] Frame
Hi Marco!
Thanks a lot.
Best regards
Uschi
-----Ursprüngliche Nachricht-----
Von: ntg-context mailto:ntg-context-bounces@ntg.nl Im Auftrag von Marco Patzer
Gesendet: Dienstag, 19. Februar 2019 14:11
An: ntg-context@ntg.nlmailto:ntg-context@ntg.nl
Betreff: Re: [NTG-context] Frame
On Tue, 19 Feb 2019 13:01:35 +0000
Ursula Hermann mailto:ursula.hermann@univie.ac.at wrote:
I have:
\framed
[height=3em,
width=.5\textwidth,
foregroundcolor=red,
framecolor=blue,
rulethickness=2pt,
background=color,
backgroundcolor=green]
\starttext
{Ich bin da.\par Du auch}
\stoptext
Move the \starttext to the beginning:
\starttext
\framed
[height=3em,
width=.5\textwidth,
foregroundcolor=red,
framecolor=blue,
rulethickness=2pt,
background=color,
backgroundcolor=green]
{Ich bin da.\par Du auch}
\stoptext
Marco
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nlmailto:ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nlmailto:ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nlmailto:ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________