?
\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
, 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
gt; [CodeExampleFramed]
> [
>frame=off,
>width=0.5\textwidth,
>align=normal,
> ]
>
> \definebuffer
>[CodeExample]
>
> \define\stopCodeExample
>{\placesidebyside
> {\CodeExampleFramed{\typeCodeExample}}
> {\CodeExampleFramed{\g
. 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
...
>>
>>
>> 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?
>
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
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
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
) the caption but in your example you have only one object
> where the figure acts as caption.
>
> \startcombination[…]
> {}{}
> {}{}
> \stopcombination
>
> Wolfgang
>
Alternatively, (but less gen
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
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
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}] \
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
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
{
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
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
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
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
]}
{\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
\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
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
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{
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
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
=...]
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
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
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
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
][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
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
Friday, September 16, 2005 Hans Hagen wrote:
> \startbuffer[table]
> ...
> \stopbuffer
> \startbuffer[figure]
> ...
> \figure
> \placetable
> [here][label]
> {caption}
> {\centerline
>{\placesidebyside
> {\getbuffer[table]}
>
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
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
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
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
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
]
\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
>> 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
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')
>
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')
&
40 matches
Mail list logo