ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Lars <axteffekt@gmail.com>
To: ntg-context@ntg.nl
Subject: Re: Frame
Date: Wed, 20 Feb 2019 15:38:14 +0100	[thread overview]
Message-ID: <5803a3bd-c3a9-9173-01d8-a965edc0deac@gmail.com> (raw)
In-Reply-To: <9c77ddb29e954ecf911c0e4291847404@univie.ac.at>


[-- Attachment #1.1: Type: text/plain, Size: 4980 bytes --]

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' <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' <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 <ntg-context-bounces@ntg.nl> Im Auftrag von Ursula Hermann
> Gesendet: Dienstag, 19. Februar 2019 14:17
> An: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Betreff: Re: [NTG-context] Frame
>
> Hi Marco!
>
> Thanks a lot.
>
> Best regards
>
> Uschi
>
> -----Ursprüngliche Nachricht-----
> Von: ntg-context <ntg-context-bounces@ntg.nl> Im Auftrag von Marco Patzer
> Gesendet: Dienstag, 19. Februar 2019 14:11
> An: ntg-context@ntg.nl
> Betreff: Re: [NTG-context] Frame
>
> On Tue, 19 Feb 2019 13:01:35 +0000
> Ursula Hermann <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.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.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.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
> ___________________________________________________________________________________

[-- Attachment #1.2: Type: text/html, Size: 7623 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2019-02-20 14:38 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-19 13:01 Frame Ursula Hermann
2019-02-19 13:10 ` Frame Marco Patzer
2019-02-19 13:17   ` Frame Ursula Hermann
2019-02-20  9:44     ` Frame Ursula Hermann
2019-02-20 10:10     ` Frame Ursula Hermann
2019-02-20 11:31     ` Frame Ursula Hermann
2019-02-20 14:38       ` Lars [this message]
2019-02-21 10:50         ` Frame Ursula Hermann
2019-02-21 11:19           ` Frame Marco Patzer
2019-02-21 12:17             ` Frame Ursula Hermann
2019-02-21 17:24             ` Frame Wolfgang Schuster
2019-02-21 17:56               ` Frame Marco Patzer
2019-02-22  8:41               ` Frame Ursula Hermann
     [not found] <3.0.6.32.19991125223734.0099fd30@pop.wxs.nl>
     [not found] ` <Pine.GSO.3.95.991127143029.984A-200000@AMath0>
1999-11-28 19:34   ` Frame Hans Hagen
1999-11-28 20:17   ` Frame Hans Hagen

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=5803a3bd-c3a9-9173-01d8-a965edc0deac@gmail.com \
    --to=axteffekt@gmail.com \
    --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).