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 The mistake after compiling: Command Line: context.exe --synctex=-1 "Frame ward.tex" Startup Folder: \\ub.univie.ac.at\U_Dom\Users G-L\Hermann\Documents\My Documents mtx-context | run 1: luatex --fmt="C:/texlive/2018/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en" --jobname="Frame ward" --lua="C:/texlive/2018/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en.lui" --no-parse-first-line --c:currentrun=1 --c:fulljobname="./Frame ward.tex" --c:input="./Frame ward.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:synctex="-1" "cont-yes.mkiv" This is LuaTeX, Version 1.07.0 (TeX Live 2018/W32TeX) system commands enabled. open source > level 1, order 1, name 'C:/texlive/2018/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv' system > system > ConTeXt ver: 2018.04.04 00:51 MKIV beta fmt: 2018.6.15 int: english/english system > system > 'cont-new.mkiv' loaded open source > level 2, order 2, name 'C:/texlive/2018/texmf-dist/tex/context/base/mkiv/cont-new.mkiv' close source > level 2, order 2, name 'C:/texlive/2018/texmf-dist/tex/context/base/mkiv/cont-new.mkiv' system > files > jobname 'Frame ward', input './Frame ward', result 'Frame ward' fonts > latin modern fonts are not preloaded languages > language 'en' is active system > synctex functionality is enabled, expect 5-10 pct runtime overhead! open source > level 2, order 3, name '//ub.univie.ac.at/U_Dom/Users G-L/Hermann/Documents/My Documents/Frame ward.tex' fonts > beware: no fonts are loaded yet, using 'lm mono' in box system > invalid \starttext ... \stoptext structure tex error > tex error on line 1 in file //ub.univie.ac.at/U_Dom/Users G-L/Hermann/Documents/My Documents/Frame ward.tex: ! You can't use `\end' in internal vertical mode \dostoptext ... \writeline }\donothing \normalend l.1 \dostoptext \clf_stoptext ->\luafunction \16>>clf_stoptext l.11 \stoptext 1 >> \framed 2 [height=3em, 3 width=.5\textwidth, 4 foregroundcolor=red, 5 framecolor=blue, 6 rulethickness=2pt, 7 background=color, 8 backgroundcolor=green] 9 \starttext 10 {Ich bin da.\par Du auch} 11 \stoptext ? I wanted to try some frames with text and paragraphs. But there is something wrong, and I dont know why. Many regards Uschi
On Tue, 19 Feb 2019 13:01:35 +0000
Ursula Hermann
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
Hi Marco!
Thanks a lot.
Best regards
Uschi
-----Ursprüngliche Nachricht-----
Von: ntg-context
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 ___________________________________________________________________________________
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
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 ___________________________________________________________________________________
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'
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 ___________________________________________________________________________________
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'
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 ___________________________________________________________________________________
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'
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'
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
Im Auftrag von Ursula Hermann Gesendet: Dienstag, 19. Februar 2019 14:17 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] Frame Hi Marco!
Thanks a lot.
Best regards
Uschi
-----Ursprüngliche Nachricht----- Von: ntg-context
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
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 ___________________________________________________________________________________
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
On Thu, 21 Feb 2019 10:50:21 +0000
Ursula Hermann
Here is my example:
\setuppapersize[A5] \setupcolors[state=start]
This is the default, no need to start the colours any longer.
{\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?
You're missing \setupexternalfigures [location=default] Without setting the location context doesn't check the system directories for the sample images. Furthermore, you're typesetting before \starttext. That's why your font is monospaced. And I try to separate content from style. That's why I move all style information before \starttext and after \starttext comes only content and markup (if possible). Nothing wrong with mixing it, but it's easier to read and easier to change the layout after the fact. I'd write your example as follows. \setuppapersize [A5] \setupexternalfigures [location=default] \setupindenting [yes, small] \setupwhitespace [small] \defineframedtext [prettyblock] [width=10cm, indenting={yes, small}, background=color, backgroundcolor=darkblue, foreground=color, foregroundcolor=white, offset=2mm, align=flushleft] \starttext \startprettyblock \noindentation The Earth, as a habitat for animal life, is in old age and has a fatal illness. Several, in fact. It would be happening whether humans had ever evolved or not. \externalfigure[cow][width=1cm] \stopprettyblock Below, we have two separate columns; but up here, for the nonce, we have but the one. \startcolumns [n=2] 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 Marco
Hello Marco!
Thanks a lot, that worked.
Many regards
Uschi
-----Ursprüngliche Nachricht-----
Von: ntg-context
Here is my example:
\setuppapersize[A5] \setupcolors[state=start]
This is the default, no need to start the colours any longer.
{\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?
You're missing \setupexternalfigures [location=default] Without setting the location context doesn't check the system directories for the sample images. Furthermore, you're typesetting before \starttext. That's why your font is monospaced. And I try to separate content from style. That's why I move all style information before \starttext and after \starttext comes only content and markup (if possible). Nothing wrong with mixing it, but it's easier to read and easier to change the layout after the fact. I'd write your example as follows. \setuppapersize [A5] \setupexternalfigures [location=default] \setupindenting [yes, small] \setupwhitespace [small] \defineframedtext [prettyblock] [width=10cm, indenting={yes, small}, background=color, backgroundcolor=darkblue, foreground=color, foregroundcolor=white, offset=2mm, align=flushleft] \starttext \startprettyblock \noindentation The Earth, as a habitat for animal life, is in old age and has a fatal illness. Several, in fact. It would be happening whether humans had ever evolved or not. \externalfigure[cow][width=1cm] \stopprettyblock Below, we have two separate columns; but up here, for the nonce, we have but the one. \startcolumns [n=2] 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 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 ___________________________________________________________________________________
Marco Patzer schrieb am 21.02.19 um 12:19:
On Thu, 21 Feb 2019 10:50:21 +0000 Ursula Hermann
wrote: Here is my example:
\setuppapersize[A5] \setupcolors[state=start] This is the default, no need to start the colours any longer.
{\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? You're missing
\setupexternalfigures [location=default]
Without setting the location context doesn't check the system directories for the sample images.
Furthermore, you're typesetting before \starttext. That's why your font is monospaced.
And I try to separate content from style. That's why I move all style information before \starttext and after \starttext comes only content and markup (if possible). Nothing wrong with mixing it, but it's easier to read and easier to change the layout after the fact. I'd write your example as follows.
\setuppapersize [A5]
\setupexternalfigures [location=default]
\setupindenting [yes, small]
\setupwhitespace [small]
\defineframedtext [prettyblock] [width=10cm, indenting={yes, small}, background=color, backgroundcolor=darkblue, foreground=color, foregroundcolor=white, offset=2mm, align=flushleft]
\starttext
\startprettyblock \noindentation
You don’t need \noindentation when you add “next” to the indenting options. Wolfgang
High list!
Another example, instead oft he cow, I took another figure:
\setuppapersize
[A5]
\setupexternalfigures
[location=default]
\setupindenting
[yes, small]
\setupwhitespace
[small]
\defineframedtext
[prettyblock]
[width=10cm,
indenting={yes, small},
background=color, backgroundcolor=lightgreen,
foreground=color, foregroundcolor=black,
offset=2mm,
align=flushleft]
\starttext
\startprettyblock
\setupindenting[next]
The Earth, as a habitat for animal life, is in old age and has a fatal
illness. Several, in fact.
It would be happening whether humans had ever evolved or not.
\placefigure
[][fig:church]
{Stephanus Church.}
{\externalfigure[ma-cb-24][width=.4\textwidth]}
\stopprettyblock
\setupindenting[next]
Below, we have two separate columns; but up here, for the nonce, we have but the one.
\startcolumns [n=2]
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
Works great.
Many Regards
Uschi
-----Ursprüngliche Nachricht-----
Von: ntg-context
On Thu, 21 Feb 2019 10:50:21 +0000 Ursula Hermann
wrote: Here is my example:
\setuppapersize[A5] \setupcolors[state=start] This is the default, no need to start the colours any longer.
{\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? You're missing
\setupexternalfigures [location=default]
Without setting the location context doesn't check the system directories for the sample images.
Furthermore, you're typesetting before \starttext. That's why your font is monospaced.
And I try to separate content from style. That's why I move all style information before \starttext and after \starttext comes only content and markup (if possible). Nothing wrong with mixing it, but it's easier to read and easier to change the layout after the fact. I'd write your example as follows.
\setuppapersize [A5]
\setupexternalfigures [location=default]
\setupindenting [yes, small]
\setupwhitespace [small]
\defineframedtext [prettyblock] [width=10cm, indenting={yes, small}, background=color, backgroundcolor=darkblue, foreground=color, foregroundcolor=white, offset=2mm, align=flushleft]
\starttext
\startprettyblock \noindentation
You don’t need \noindentation when you add “next” to the indenting options. Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________
participants (4)
-
Lars
-
Marco Patzer
-
Ursula Hermann
-
Wolfgang Schuster