Re: [NTG-context] Distance between two Columns

2019-02-28 Thread Wolfgang Schuster
? \setupcombination [location=top, distance=\spaceamount] \starttext \startcombination[2*1] {\framed[width=5cm,align=flushleft]{Small}}{} {\framed[width=5cm,align=flushleft]{A really really long line that is split at 5cm}}{} \stopcombination \blank \placesidebyside

Re: [NTG-context] source code and result side by side

2017-08-04 Thread Henning Hraban Ramm
, you need to use \grabbufferdata (see buff-ini.mkiv). >>> But in this case, there is a simpler solution: >>> >>> \defineframed >>> [CodeExampleFramed] >>> [ >>> frame=off, >>> width=0.5\textwidth, >>> align=nor

Re: [NTG-context] source code and result side by side

2017-08-03 Thread Henning Hraban Ramm
gt; [CodeExampleFramed] > [ >frame=off, >width=0.5\textwidth, >align=normal, > ] > > \definebuffer >[CodeExample] > > \define\stopCodeExample >{\placesidebyside > {\CodeExampleFramed{\typeCodeExample}} > {\CodeExampleFramed{\g

Re: [NTG-context] source code and result side by side

2017-07-30 Thread Aditya Mahajan
. sourcecode beside the result. Often the shown source is exactly what I want to show, in other cases I need some additional setup that I don’t want to show. Which approach would you suggest? Combinations? \startbuffer[example-1] \stopbuffer \placesidebyside {\typebuffer[example-1

Re: [NTG-context] source code and result side by side

2017-07-30 Thread Henning Hraban Ramm
... >> >> >> i.e. sourcecode beside the result. >> >> Often the shown source is exactly what I want to show, in other cases I need >> some additional setup that I don’t want to show. >> >> Which approach would you suggest? Combinations? >

Re: [NTG-context] source code and result side by side

2017-07-29 Thread Pablo Rodriguez
On 07/29/2017 10:58 AM, Pablo Rodriguez wrote: > On 07/29/2017 12:57 AM, Aditya Mahajan wrote: >> [...] >> \placesidebyside >> {\typebuffer[example-1]} >> {\getbuffer[setups, example-1]} > [...] > Is there now hay to avoid the forced horizontal mode o

Re: [NTG-context] source code and result side by side

2017-07-29 Thread Pablo Rodriguez
On 07/29/2017 12:57 AM, Aditya Mahajan wrote: > [...] > \startbuffer[example-1] > > \stopbuffer > > > \placesidebyside > {\typebuffer[example-1]} > {\getbuffer[setups, example-1]} Many thanks for your suggestion, Aditya. I’m afraid everything is forc

Re: [NTG-context] source code and result side by side

2017-07-28 Thread Aditya Mahajan
some additional setup that I don’t want to show. Which approach would you suggest? Combinations? \startbuffer[example-1] \stopbuffer \placesidebyside {\typebuffer[example-1]} {\getbuffer[setups, example-1

Re: [NTG-context] Two figures are side by side

2014-04-17 Thread Alan BRASLAU
) the caption but in your example you have only one object > where the figure acts as caption. > > \startcombination[…] > {}{} > {}{} > \stopcombination > > Wolfgang > Alternatively, (but less gen

Re: [NTG-context] Side-by-side framed text blocks

2013-06-06 Thread Aditya Mahajan
On Fri, 7 Jun 2013, honyk wrote: Dear Marco, I'd like to type two blocks of text with different 'align' settings side by side. Here's one way to do it: \setupframed [offset=1ex, width=8cm, frame=off] \starttext \placesidebyside {\startframed[align={n

Re: [NTG-context] Side-by-side framed text blocks

2013-06-06 Thread honyk
Dear Marco, > > I'd like to type two blocks of text with different 'align' settings > side by > > side. > > Here's one way to do it: > > \setupframed > [offset=1ex, >width=8cm, >frame=off] > > \starttext > \placeside

Re: [NTG-context] Side-by-side framed text blocks

2013-06-06 Thread Marco Patzer
On 2013–06–06 honyk wrote: > I'd like to type two blocks of text with different 'align' settings side by > side. Here's one way to do it: \setupframed [offset=1ex, width=8cm, frame=off] \starttext \placesidebyside {\startframed[align={normal,left}] \

Re: [NTG-context] Table

2013-05-03 Thread Wolfgang Schuster
t and the caption but in your example the first frame is the content and the second the caption. When you want two things side by side you can use \placesidebyside{…}{…}. Wolfgang___ If your question is of interest

Re: [NTG-context] nomarking function in MKIV

2010-07-01 Thread Alan BRASLAU
t I just discovered the existence of \startfiguretext \stopfiguretext OK, there are different mechanisms behind \startfiguretext and \placefigure: it is not a float but a box: \startfiguretext [left] {none} {\externalfigure [figure] [width=w]} text \stopfiguretext akin to \placesidebyside {

Re: [NTG-context] Multiple side-by-side tables

2010-04-05 Thread Wolfgang Schuster
Am 05.04.10 15:48, schrieb Troy Henderson: I would like to put several tables side-by-side one another. Nesting \placesidebyside commands seems a bit inconvenient. Suggestions on how to make \starttable ... \stoptable not create a newline (without the \placesidebyside command) would be greatly

[NTG-context] Multiple side-by-side tables

2010-04-05 Thread Troy Henderson
I would like to put several tables side-by-side one another. Nesting \placesidebyside commands seems a bit inconvenient. Suggestions on how to make \starttable ... \stoptable not create a newline (without the \placesidebyside command) would be greatly appreciated. -- Troy Henderson

[NTG-context] placesidebyside inside combination

2009-12-03 Thread Alan BRASLAU
Hello, Nesting \placesidebyside inside \startcombination\stopcombination appears to throw-off the spacing. Alan %%% % Minimal example: % (left pair is misplaced) %%% \setupcombinations [distance=0cm] \starttext \framed [width=8cm

Re: [NTG-context] Combining figures

2009-05-09 Thread Robert Blackstone
On Sat, May 9, 2009 at 12:00 PM, Wolfgang Schuster wrote: > > > \placefigure{some title} > {\placeontopofeachother > {\externalfigure[figure 1]} > {\externalfigure[figure 2]}} > > > \placefigure{some title} > {\hbox\placesidebyside &g

Re: [NTG-context] Combining figures.

2009-05-09 Thread Wolfgang Schuster
]} {\externalfigure[figure 2]}} \placefigure{some title} {\startcombination[2*1] {\framed[width=5cm]{}}{} {\framed[width=5cm]{}}{} \stopcombination} \placefigure{some title} {\hbox\placesidebyside {\externalfigure[figure 1]} {\externalfigure[figure 2]}} Wolfgang

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
\placelayer \placelegend{text}{text} \placelist[names][settings] \placelistoffloats \placelistofsorts \placelistofsynonyms \placelocalfootnotes[settings] \placelogos[names] \placeongrid[settings{text} \placeontopofeachother{text}{text} \placereferencelist[names] \placeregister[name][settings] \pl

Re: [NTG-context] Treating underscore as a normal character

2007-02-06 Thread Berend de Boer
a \placelist. Here is a very short example: - -- \def\MyHead#1#2% {\setupframed[frame=off] \framed[width=\hsize,offset=overlay] {\placesidebyside {\doifmodeelse{*sectionnumber}% {\framed[width=.6\hsize,offset=1em,s

Re: [NTG-context] Two figures side-by-side ?

2006-04-02 Thread olivier Turlier
On Sat, 01 Apr 2006 01:33:23 +0200, Renaud AUBIN wrote: > > Hi all, > > What's the best (i.e. the CLEANEST ?) solution to put two figures > side-by-side ? (use of placefigure & startcombination ?) > > Cheers, > > Renaud Does \placesidebyside{

Re: [NTG-context] placesidebyside with aligned formula

2006-03-02 Thread Hans Hagen
Aditya Mahajan wrote: > How do I place some formula on to the right of some text. This does > not work. > > \starttext >\placesidebyside >{\framed[width=8cm,align=leftflushed]{\input knuth \relax}} >{% > \startformula\startalign >\NC a \NC= b \N

[NTG-context] placesidebyside with aligned formula

2006-03-01 Thread Aditya Mahajan
How do I place some formula on to the right of some text. This does not work. \starttext \placesidebyside {\framed[width=8cm,align=leftflushed]{\input knuth \relax}} {% \startformula\startalign \NC a \NC= b \NR \NC c \NC= d \NR \stopalign\stopformula

Re: [NTG-context] framed texts

2006-01-07 Thread Hans Hagen
=...] para 2 \startitemize etc \stopframedtext I tried some things but the two frames will not come out on one line. How to do this? \placesidebyside (context manual p.228) should work. A \hbox is another option, but maybe too unhandy for this. Greetings, Peter No, that will not work

Re: [NTG-context] framed texts

2006-01-06 Thread Hans van der Meer
etc \stopframedtext I tried some things but the two frames will not come out on one line. How to do this? \placesidebyside (context manual p.228) should work. A \hbox is another option, but maybe too unhandy for this. Greetings, Peter No, that will not work. After much probing I found the

Re: [NTG-context] framed texts

2006-01-06 Thread Peter Rolf
e > etc > \stopframedtext > > I tried some things but the two frames will not come out on one line. > How to do this? > \placesidebyside (context manual p.228) should work. A \hbox is another option, but maybe too unhandy for this. Greetin

Re: [NTG-context] Two framed texts on the same line

2005-11-25 Thread Hans Hagen
following: \defineframedtext[lepi][align=raggedright,width=fit,offset=0pt,frame=off,location=left] \defineframedtext[repi][align=raggedright,width=fit,offset=0pt,frame=off,location=right] Now, I want them to be "at the same height". However, using things like placesidebyside or even just

[NTG-context] Two framed texts on the same line

2005-11-25 Thread Giuseppe Bilotta
][align=raggedright,width=fit,offset=0pt,frame=off,location=left] \defineframedtext[repi][align=raggedright,width=fit,offset=0pt,frame=off,location=right] Now, I want them to be "at the same height". However, using things like placesidebyside or even just \startlepi ... \stoplepi

Re[2]: [NTG-context] Complex layout question

2005-09-18 Thread Giuseppe Bilotta
robably don't run into memory > problems > - or use a very narrow layout (wide page) and put all graphic in the margin > area > (i can help with setting up those layouts if needed) I went for the side-by-side option, using \start/stopcombinations because \placesidebyside put the f

Re[2]: [NTG-context] A side by side float that takes advantage of the margin

2005-09-17 Thread Giuseppe Bilotta
Friday, September 16, 2005 Hans Hagen wrote: > \startbuffer[table] > ... > \stopbuffer > \startbuffer[figure] > ... > \figure > \placetable > [here][label] > {caption} > {\centerline >{\placesidebyside > {\getbuffer[table]} >

Re: [NTG-context] A side by side float that takes advantage of the margin

2005-09-16 Thread Hans Hagen
Giuseppe Bilotta wrote: Friday, September 16, 2005 Taco Hoekwater wrote: Giuseppe Bilotta wrote: I have a situation when I have to put side by side two floats (a table and figure). My current code is \placetable[here][label]{caption}% {\\placesidebyside {table code}{figure code

Re[2]: [NTG-context] A side by side float that takes advantage of the margin

2005-09-16 Thread Giuseppe Bilotta
Friday, September 16, 2005 Taco Hoekwater wrote: > Giuseppe Bilotta wrote: >> I have a situation when I have to put side by side two >> floats (a table and figure). My current code is >> >> \placetable[here][label]{caption}% >> {\\placesidebyside >> {ta

Re: [NTG-context] A side by side float that takes advantage of the margin

2005-09-16 Thread Hans Hagen
Taco Hoekwater wrote: Giuseppe Bilotta wrote: I have a situation when I have to put side by side two floats (a table and figure). My current code is \placetable[here][label]{caption}% {\\placesidebyside {table code}{figure code} } Have you tried \centerline (may not work

Re: [NTG-context] A side by side float that takes advantage of the margin

2005-09-16 Thread Taco Hoekwater
Giuseppe Bilotta wrote: I have a situation when I have to put side by side two floats (a table and figure). My current code is \placetable[here][label]{caption}% {\\placesidebyside {table code}{figure code} } Have you tried \centerline (may not work)? \placetable[here][label]{caption

[NTG-context] A side by side float that takes advantage of the margin

2005-09-16 Thread Giuseppe Bilotta
I have a situation when I have to put side by side two floats (a table and figure). My current code is \placetable[here][label]{caption}% {\\placesidebyside {table code}{figure code} } The problem is that sometimes the combined width of table and figure is bigger than the textwidth. I would like

[NTG-context] Re: side-by-side

2004-10-31 Thread Patrick Gundlach
] \starttext \startbuffer >> x=linspace(-2,4); >> y=x.^2-2*x-3; >> plot(x,y) >> xlabel('x') >> ylabel('y') >> title('y = x^2 -2x -3') >> grid on \stopbuffer \typebuffer % test \placesidebyside{% \framed[align={lohi,righ

Re: [NTG-context] Re: side-by-side

2004-10-31 Thread David Arnold
>> title('y = x^2 -2x -3') >> grid on \stopbuffer \placesidebyside{% \framed[align={lohi,right}, frame=on, offset=10pt, background=screen, screen=0.8, foregroundcolor=darkred]{\typebuffer}} {\externalfigure[slide1.pdf]} My graphic slide1.pdf is about the right size

Re: [NTG-context] Re: side-by-side

2004-10-31 Thread David Arnold
Patrick, >Is this what you want? > > >\starttext >\startbuffer >>> x=linspace(-2,4); >>> y=x.^2-2*x-3; >>> plot(x,y) >>> xlabel('x') >>> ylabel('y') >>> title('y = x^2 -2x -3') >

[NTG-context] Re: side-by-side

2004-10-31 Thread Patrick Gundlach
d like my code > vertically centered on the left, the image on the right. Is this what you want? \starttext \startbuffer >> x=linspace(-2,4); >> y=x.^2-2*x-3; >> plot(x,y) >> xlabel('x') >> ylabel('y') >> title('y = x^2 -2x -3') &