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

2017-07-30 Thread Aditya Mahajan

On Sun, 30 Jul 2017, Henning Hraban Ramm wrote:


Am 2017-07-29 um 00:57 schrieb Aditya Mahajan <adit...@umich.edu>:


On Fri, 28 Jul 2017, Henning Hraban Ramm wrote:


Ahoi again,

I’m preparing some ConTeXt docs with a lot of examples and would like to 
reproduce what we have in the wiki as


...


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?


\startbuffer[example-1]

\stopbuffer


\placesidebyside
   {\typebuffer[example-1]}
   {\getbuffer[setups, example-1]}



Thank you again, that should be enough for most of my small examples.
I guess I never heard of or forgot about \placesidebyside as well as 
\placeontopofeachother.

But I’d like to show a lot of similar examples to explain several options.
Therefore, if I’d like to simplify my code, but this doesn’t work:

\def\CodeExample#1{%
\startbuffer[zB]
#1
\stopbuffer
\typebuffer[zB]
\getbuffer[zB]
}

\CodeExample{\framed[frame=off,leftframe=on,rulethickness=1em,framecolor=blue]{Klotz
 am Bein}}


You can't do that with buffers. If you need to define your own macros that 
behave like buffers, 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=normal,
  ]

\definebuffer
[CodeExample]

\define\stopCodeExample
{\placesidebyside
{\CodeExampleFramed{\typeCodeExample}}
{\CodeExampleFramed{\getCodeExample}}}


\starttext
\startCodeExample
\framed
  [
frame=off,
leftframe=on,
rulethickness=1em,
framecolor=blue,
  ]{Klotz am Bein}
\stopCodeExample


\stoptext

___
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
___

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

2017-07-30 Thread Henning Hraban Ramm
Am 2017-07-29 um 00:57 schrieb Aditya Mahajan <adit...@umich.edu>:

> On Fri, 28 Jul 2017, Henning Hraban Ramm wrote:
> 
>> Ahoi again,
>> 
>> I’m preparing some ConTeXt docs with a lot of examples and would like to 
>> reproduce what we have in the wiki as
>> 
>> 
>> ...
>> 
>> 
>> 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?
> 
> \startbuffer[example-1]
> 
> \stopbuffer
> 
> 
> \placesidebyside
>{\typebuffer[example-1]}
>{\getbuffer[setups, example-1]}


Thank you again, that should be enough for most of my small examples.
I guess I never heard of or forgot about \placesidebyside as well as 
\placeontopofeachother.

But I’d like to show a lot of similar examples to explain several options.
Therefore, if I’d like to simplify my code, but this doesn’t work:

\def\CodeExample#1{%
\startbuffer[zB]
#1
\stopbuffer
\typebuffer[zB]
\getbuffer[zB]
}

\CodeExample{\framed[frame=off,leftframe=on,rulethickness=1em,framecolor=blue]{Klotz
 am Bein}}


Compilation just stops, maybe some infinite loop?

Simpler:

\def\CodeExample#1{%
\startTEX
#1
\stopTEX
#1
}


Stops with the error:
Use of \m_syst_action_yes doesn't match its definition




Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

___
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
___

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 forced to be in horizontal mode:

\starttext
\startbuffer[example-1]
\setupexternalfigures[location=default]
\starttext
\ConTeXt\ is awesome!

\externalfigure[cow.pdf][scale=250]
\stoptext
\stopbuffer

\placesidebyside
 {\typebuffer[example-1]}
 {\getbuffer[setups, example-1]}
\stoptext

\placeontopofeachother has the same feature.

This causes that \placefigure cannot be used.

Is there now hay to avoid the forced horizontal mode on both sides?

Many thanks for your help,

Pablo
-- 
http://www.ousia.tk
___
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
___

Re: [NTG-context] Fieldstacks are broken

2016-01-21 Thread Jeong Dal
Thanks Hans, Wolfgang, Luigi

The new beta with Luatex 0.88 makes \fieldstacks and \startanimation work.
The following example of Wolfgang is now working well.

\def\MyGraphics#1{%
\startMPcode
path p,q;
p:=fullcircle scaled 72;
L:=length p;
N:=20;
q:=subpath (0,#1/N*L) of p;
draw q withcolor red;
fill fullcircle scaled 3 shifted point length q of q withcolor blue;
setbounds currentpicture to unitsquare shifted (-0.5,-0.5) scaled 75;
\stopMPcode}
\usemodule[animation]
\setupinteraction[state=start]

\starttext
\startanimation[menu=yes]
{\MyGraphics {5}}
{\MyGraphics {10}}
{\MyGraphics {15}}
{\MyGraphics {20}}
\stopanimation

\stoptext

One more question. Is there any convenient way to list \MyGraphics{#1}? I tried 
\dorecurse, but it just display figures one by one.  I also tried lua, but it 
stops with the error message  “unexpected symbol near ‘\'”.

\dorecurse{20}
{{\MyGraphics {\recurselevel}}

\startluacode
for i = 1, 20 do
context(“{\\MyGraphics {i}}”)
end
\stopluacode

Thanks again.

Best regards,

Dalyoung


> Today's Topics:
> 
>   1. Re: Fieldstacks are broken (Hans Hagen)
> 
> 
> --
> 
> Message: 1
> Date: Mon, 11 Jan 2016 10:53:56 +0100
> From: Hans Hagen <pra...@wxs.nl>
> To: ntg-context@ntg.nl
> Subject: Re: [NTG-context] Fieldstacks are broken
> Message-ID: <56937bb4.1070...@wxs.nl>
> Content-Type: text/plain; charset=utf-8; format=flowed
> 
> On 1/10/2016 5:01 PM, Wolfgang Schuster wrote:
>> Hi Hans,
>> 
>> the fieldstack mechanism doesn’t work anymore.
>> 
>> \setupinteraction[state=start]
>> 
>> \starttext \showframe
>> 
>> \definesymbol[frame-1][\tt 1]
>> \definesymbol[frame-2][\tt 2]
>> \definesymbol[frame-3][\tt 3]
>> 
>> \definefieldstack[frame][frame-1,frame-2,frame-3]
>> 
>> \placeontopofeachother
>> {\framed[strut=no,offset=1ex]{\fieldstack[frame]}}
>> {\goto{Play}[Walk{frame}]}
>> 
>> \stoptext
> 
> fixed in next engine update
> 
> 
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
> -

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Fieldstacks are broken

2016-01-11 Thread Hans Hagen

On 1/10/2016 5:01 PM, Wolfgang Schuster wrote:

Hi Hans,

the fieldstack mechanism doesn’t work anymore.

\setupinteraction[state=start]

\starttext \showframe

\definesymbol[frame-1][\tt 1]
\definesymbol[frame-2][\tt 2]
\definesymbol[frame-3][\tt 3]

\definefieldstack[frame][frame-1,frame-2,frame-3]

\placeontopofeachother
{\framed[strut=no,offset=1ex]{\fieldstack[frame]}}
{\goto{Play}[Walk{frame}]}

\stoptext


fixed in next engine update


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Fieldstacks are broken

2016-01-10 Thread Wolfgang Schuster

Hi Hans,

the fieldstack mechanism doesn’t work anymore.

\setupinteraction[state=start]

\starttext \showframe

\definesymbol[frame-1][\tt 1]
\definesymbol[frame-2][\tt 2]
\definesymbol[frame-3][\tt 3]

\definefieldstack[frame][frame-1,frame-2,frame-3]

\placeontopofeachother
{\framed[strut=no,offset=1ex]{\fieldstack[frame]}}
{\goto{Play}[Walk{frame}]}

\stoptext

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] options of \setupnotation and \setupnote

2013-04-15 Thread Hans Hagen

On 4/15/2013 4:30 PM, Marco Patzer wrote:

On 2013–04–15 Hans Hagen wrote:


@Hans: The module documentation fails to build for this module.

   mtxrun --script modules --process $(mtxrun core-sys.mkiv)


mtxrun --script modules --process auto:core-sys.mkiv


Thanks, I didn't know that one.


weird ... works here


Sorry, copy-paste error on my side (as Wolfgang already noticed).
It's strc-not.mkvi that fails, not core-sys.mkiv.


a more mkiv-ishc example is:

\startlocalnotes[footnote]
  \placetable
{Some Table}
\placeontopofeachother
  {\starttable[|l|r|]
   \HL
   \VL Nota\footnote{Bene} \VL Bene\footnote{Nota} \VL\SR
   \VL Bene\footnote{Nota} \VL Nota\footnote{Bene} \VL\SR
   \HL
   \stoptable}

{\setupnotation[footnote][alternative={serried},distance=.5em,after=\hskip1em]%
   \placelocalnotes[footnote]}
\stoplocalnotes




-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Index and Publications suddenly remain empty??? [not solved yet]

2012-10-15 Thread Otared Kavian

On 14 oct. 2012, at 15:52, Wolfgang Schuster wolfgang.schus...@gmail.com 
wrote:
 […]
 I don’t know if the bug was also in the stable but it’s in the beta version I 
 use. You can use the following example to check for the bug:
 
 \starttext
 \placeontopofeachother{A}{B}
 \stoptext
 

Hi I can confirm that the bug is present in recent betas, that is 
\placeontopofeachother
is broken, but Context version 2011.11.29 works fine with your example.

Best regards: OK___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Index and Publications suddenly remain empty??? [not solved yet]

2012-10-15 Thread Marco Patzer
2012-10-15 Otared Kavian:

 On 14 oct. 2012, at 15:52, Wolfgang Schuster wolfgang.schus...@gmail.com 
 wrote:
  […]
  I don’t know if the bug was also in the stable but it’s in the beta version 
  I use. You can use the following example to check for the bug:
  
  \starttext
  \placeontopofeachother{A}{B}
  \stoptext

Here is a fix (not thoroughly tested, though):

pack-com.mkiv:

- 
\def\pack_topofeachother_one{\bgroup\setbox0\box\nextbox\dowithnextboxcs\pack_topofeach_two
 \hbox}
+ 
\def\pack_topofeachother_one{\bgroup\setbox0\box\nextbox\dowithnextboxcs\pack_topofeachother_two\hbox}

- 
\def\pack_topofeachother_two{\setbox2\box\nextbox\halign{\hss\hss\cr\box0\cr\box2\cr}\egroup\egroup}
+ 
\def\pack_topofeachother_two{\setbox2\box\nextbox\halign{\hss##\hss\cr\box0\cr\box2\cr}\egroup\egroup}


Test:

\unprotect
\def\pack_topofeachother_one{\bgroup\setbox0\box\nextbox\dowithnextboxcs\pack_topofeachother_two\hbox}
\def\pack_topofeachother_two{\setbox2\box\nextbox\halign{\hss##\hss\cr\box0\cr\box2\cr}\egroup\egroup}
\protect

\starttext
\placeontopofeachother{alpha}{beta}
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Index and Publications suddenly remain empty???

2012-10-14 Thread Wolfgang Schuster

Am 13.10.2012 um 22:42 schrieb Sander Maijers s.n.maij...@student.ru.nl:

 Dear ConTeXt users,
 
 I am bothered by this seemingly simple problem that suddenly occurred these 
 days, while the same TeX code produced the Index and Publications chapters 
 properly when compiling the document last May.
 
 I use the latest stable version (from May 2012) of ConTeXt on a recent Linux 
 with TeXLive 2012 and bibtex 0.99d. The PATH is correct.
 
 The bad PDF:
 https://bitbucket.org/SMaijers/bachelor_project/src/df9027aa04ea96e846173fe35b2a2715a742ad40/bachelors_thesis.new/bachelors_thesis.pdf?at=default
  
 
 The environment:
 https://bitbucket.org/SMaijers/bachelor_project/src/df9027aa04ea96e846173fe35b2a2715a742ad40/bachelors_thesis.new/bachelors_thesis_environment.tex?at=default
  
 
 The text source files for the Publications and Index chapters:
 https://bitbucket.org/SMaijers/bachelor_project/src/df9027aa04ea96e846173fe35b2a2715a742ad40/bachelors_thesis.new/references.tex?at=default
 https://bitbucket.org/SMaijers/bachelor_project/src/df9027aa04ea96e846173fe35b2a2715a742ad40/bachelors_thesis.new/index.tex?at=default
 
 All files:
 https://bitbucket.org/SMaijers/bachelor_project/src/df9027aa04ea96e846173fe35b2a2715a742ad40/bachelors_thesis.new?at=default
  
 
 I have been trying to solve this this evening and finally I decided to move 
 from ConTeXt stable to the beta version, but now I cannot get *any* PDF 
 output anymore ...
 
 Can anyone spot problems with the TeX source code that prevent the document 
 compilation, with whichever version of ConTexT???

It’s a bug/typo in \placeontopofeachother but I sent a fix to the dev list.

BTW: Compile the product file of your document, not the project.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Index and Publications suddenly remain empty??? [not solved yet]

2012-10-14 Thread Sander Maijers
On Sun, 14 Oct 2012 09:13:58 +0200
Wolfgang Schuster wolfgang.schus...@gmail.com wrote:

 
 Am 13.10.2012 um 22:42 schrieb Sander Maijers
 s.n.maij...@student.ru.nl:
 
  Dear ConTeXt users,
  
  I am bothered by this seemingly simple problem that suddenly
  occurred these days, while the same TeX code produced the Index and
  Publications chapters properly when compiling the document last May.
  
  I use the latest stable version (from May 2012) of ConTeXt on a
  recent Linux with TeXLive 2012 and bibtex 0.99d. The PATH is
  correct.
  
  The bad PDF:
  https://bitbucket.org/SMaijers/bachelor_project/src/df9027aa04ea96e846173fe35b2a2715a742ad40/bachelors_thesis.new/bachelors_thesis.pdf?at=default
   
  
  The environment:
  https://bitbucket.org/SMaijers/bachelor_project/src/df9027aa04ea96e846173fe35b2a2715a742ad40/bachelors_thesis.new/bachelors_thesis_environment.tex?at=default
   
  
  The text source files for the Publications and Index chapters:
  https://bitbucket.org/SMaijers/bachelor_project/src/df9027aa04ea96e846173fe35b2a2715a742ad40/bachelors_thesis.new/references.tex?at=default
  https://bitbucket.org/SMaijers/bachelor_project/src/df9027aa04ea96e846173fe35b2a2715a742ad40/bachelors_thesis.new/index.tex?at=default
  
  All files:
  https://bitbucket.org/SMaijers/bachelor_project/src/df9027aa04ea96e846173fe35b2a2715a742ad40/bachelors_thesis.new?at=default
   
  
  I have been trying to solve this this evening and finally I decided
  to move from ConTeXt stable to the beta version, but now I cannot
  get *any* PDF output anymore ...
  
  Can anyone spot problems with the TeX source code that prevent the
  document compilation, with whichever version of ConTexT???
 
 It’s a bug/typo in \placeontopofeachother but I sent a fix to the dev
 list.
 
 BTW: Compile the product file of your document, not the project.

Thank you Wolfgang. I changed the algorithmic code and I from now on compile 
the product instead of the project (containing that one product). However, the 
ToC, Index and Publications have not reappeared yet.

What is the context of your comment about the \placeontopofeachother bug? Is 
that bug in the current stable or beta version or both? As I understand it, I 
am still using the same stable version that I was using in May that, despite 
the two issues that you pointed out, was compiling satisfactorily.

I hope the problem can be solved soon.

 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://tex.aanhet.net archive  :
 http://foundry.supelec.fr/projects/contextrev/ 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Index and Publications suddenly remain empty??? [not solved yet]

2012-10-14 Thread Wolfgang Schuster

Am 14.10.2012 um 14:10 schrieb Sander Maijers s.n.maij...@student.ru.nl:

 Thank you Wolfgang. I changed the algorithmic code and I from now on compile 
 the product instead of the project (containing that one product). However, 
 the ToC, Index and Publications have not reappeared yet.

I compiled your document (after commenting your \input lines in the source) 
with the last beta and I get all registers.

 What is the context of your comment about the \placeontopofeachother bug? Is 
 that bug in the current stable or beta version or both? As I understand it, I 
 am still using the same stable version that I was using in May that, despite 
 the two issues that you pointed out, was compiling satisfactorily.

I don’t know if the bug was also in the stable but it’s in the beta version I 
use. You can use the following example to check for the bug:

\starttext
\placeontopofeachother{A}{B}
\stoptext

BTW: You can remove the \par commands in your document because a empty line 
between paragraphs is enough because

example
paragraph 1

paragraph 2
/example

is the same as

example
paragraph 1
\par
paragraph 2
/example

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Index and Publications suddenly remain empty??? [not solved yet]

2012-10-14 Thread Sander Maijers
:

 
 Am 14.10.2012 um 14:10 schrieb Sander Maijers
 s.n.maij...@student.ru.nl:
 
  Thank you Wolfgang. I changed the algorithmic code and I from now
  on compile the product instead of the project (containing that one
  product). However, the ToC, Index and Publications have not
  reappeared yet.
 
 I compiled your document (after commenting your \input lines in the
 source) with the last beta and I get all registers.
 
  What is the context of your comment about the
  \placeontopofeachother bug? Is that bug in the current stable or
  beta version or both? As I understand it, I am still using the same
  stable version that I was using in May that, despite the two issues
  that you pointed out, was compiling satisfactorily.
 
 I don’t know if the bug was also in the stable but it’s in the beta
 version I use. You can use the following example to check for the bug:
 
 \starttext
 \placeontopofeachother{A}{B}
 \stoptext
 
 BTW: You can remove the \par commands in your document because a
 empty line between paragraphs is enough because
 
 example
 paragraph 1
 
 paragraph 2
 /example
 
 is the same as
 
 example
 paragraph 1
 \par
 paragraph 2
 /example
 
 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://tex.aanhet.net archive  :
 http://foundry.supelec.fr/projects/contextrev/ 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Combining figures.

2009-05-09 Thread Wolfgang Schuster


Am 08.05.2009 um 22:06 schrieb Mojca Miklavec:


\starttext
\placefigure{some title}
{\startcombination[1*2]
{\framed[width=5cm]{}}{}
{\framed[width=5cm]{}}{}
\stopcombination}


\placefigure{some title}
  {\placeontopofeachother
 {\externalfigure[figure 1]}
 {\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

___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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
  {\externalfigure[figure 1]}
  {\externalfigure[figure 2]}}

 Wolfgang


and:


 \placefigure
 [here,force][fig:Ex6]{Ux zeuhl, ma lamax quolt epp ik, korsa ozlint
 vusp urfa,.}
 \startcombination[2*1]
 {\externalfigure[Ex6a]}{}
 {\externalfigure[Ex6b]}{}
^^
 \stopcombination

 Wolfgang


Both work. Thank you.  Stupid of me to forget or neglect a pair of empty
curly braces.
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
]
\definetabulate[name][name][text]
\definetext[name][position][text][text][text]
# \definetextbackground
\definetextposition[name][settings]
# \definetextvariable[settings][???][???]
\definetype[name][settings]
# \definetypeface
\definetyping[file|typing|name][settings]
\defineversion[name][numbers]
# \defineXMLargument
# \defineXMLcommand
# \defineXMLenvironment
# \defineXMLenvironmentsave
# \defineXMLgrouped
# \defineXMLgsave
# \defineXMLgstore
# \defineXMLignore
# \defineXMLnested
# \defineXMLpickup
# \defineXMLprocess
# \defineXMLsave
# \defineXMLsavecontent
# \defineXMLsingular
# \defineXMLstore
# \defXMLstring
\description{text}text
\determineheadnumber[section]
\determinelistcharacteristics[names][settings]
# \digits
\disableinteractionmenu[position|name][references]
# \disablemode
# \doglobal
# \dogotopar
# \doif
# \doifcommon
# \doifcommonelse
# \doifdefined
# \doifdefinedelse
# \doifelse
# \doifelsenothing
# \doifelsevalue
# \doiffieldelse
# \doifflagged
# \doifinset
# \doifinsetelse
# \doifmode
# \doifmodeelse
# \doifnextcharelse
# \doifnot
# \doifnotcommon
# \doifnotflagged
# \doifnothing
# \doifnotinsetelse
# \doifnotmode
# \doifnotvalue
# \doifsomething
# \doiftext
# \doiftextelse
# \doifundefined
# \doifundefinedelse
# \doifvalue
# \doifXMLdata
# \doifXMLdataelse
# \doifXMLop
# \doifXMLparelse
# \doloop
# \donothing
# \dontleavehmode
\donttest
# \dorecurse
# \dostepwiserecurse
# \dowithnextbox
# \dowithnextboxcontent
# \empty
\emptylines[number]
# \emptytoks
# \enablemode
# \endstrut
\enumeration
# \environment
# \EQ
# \eTABLE
# \eTABLEbody
# \eTABLEfoot
# \eTABLEhead
# \eTABLEnext
# \eTD
# \eTH
# \eTR
# \exitloop
# \expanded
\externalfigure[file][settings]
\field[name]
\fieldstack[name][names][settings]
\fillinfield[text]{text}
\fillinline[settings]
\fillinrules[settings]{text}{text}
\fillintext[settings]{text}{text}
\fitfield[name]
\fixedspaces
# \FLOWchart
# \flushcollector
# \flushlayer
# \flushXMLelement
\followprofile{text}[text]
\followprofileversion{text}[text][text]
\followversion{text}[text]
\footnote[reference]{text}
\footnotetext[reference]{text}
\forceblocks[names][names]
# \forgetall
# \FR
\fraction{text}{text}
\framed[settings]{text}
\framedtext[settings]
\from[reference]
\getbuffer[name]
# \getfiguredimensionsonly
# \getmarking[name][options]
# \getvalue
# \getvariable
# \globalletvalue
\godown[dimension]
\goto{text}{text}[references]
\gotobox{text}[references]
\graycolor[text]
\grid[options]
# \gsaveXMLasdata
\hairline
\head[references]
\headnumber[section]
\headtext{text}
# \hfilll
\hideblocks[names][names]
\high{text}
# \HL
\hl[number]
# \hpos
# \hspace
# \ifconditional
# \ifdefined
# \iftrialtypesetting
# \ifundefined
\in{text}{text}[reference]
# \includeFLOWchart
# \includemenu
# \increment
\indentation
\indenting[options]
\inframed[settings]{text}
\ininner[+|-|low][reference]{text}
\inleft[+|-|low][reference]{text}
\inline[reference]
\inmargin[+|-|low][reference]{text}
\inothermargin[+|-|low][reference]{text}
\inouter[+|-|low][reference]{text}
\inright[+|-|low][reference]{text}
\installlanguage[name][options]
\interactionbar[settings]
\interactionbuttons[settings][names]
\item[references]
\items[settings]{text}
\its[references]
\keepblocks[names][all|names]
\labeling[reference]
\labels[name]
\labeltext{text}
\language[language code]
\leftaligned{text}
# \letgvalue
# \letvalue
\listsymbol[name]{text}
# \loadmapfile
\loadsorts
\loadsynonyms
# \localhsize
\logfields
\lohi[low]{text}{text}
\low{text}
# \LR
\mainlanguage[language code]
\mar[references]{text}
\marginrule[number]{text}
\margintext[+|-|low][reference]{text}
\marking[name]{text}
\markversion
\mathematics{text}
\mediaeval{text}
\midaligned{text}
\mirror{text}
\MONTH{text}
\month{text}
\moveongrid[options]
# \MR
\name{text}
# \NC
# \newcounter
# \nextbox
\nextsection
\nocap{text}
\noheaderandfooterlines
\noindenting
\nolist{text}
\nomarking{text}
\nomoreblocks
\nomorefiles
\nop
\nospace
\note[reference]
\notopandbottomlines
\nowhitespace
# \NR
\numbers{text}
\overbar{text}
\overbars{text text}
# \overlaybutton
# \overlayfigure
\overstrike{text}
\overstrikes{text text}
\packed
\page[options]
\pagereference[reference]
\pagetype[name]
\paragraph
\part[references]{text}
\periods[number]
\placebookmarks[names][names|all]
\placecombinedlist[name][settings]
\placecombinedlist[name][settings]
# \placefigure
\placefloat[options][references]{text}{text}
\placefootnotes[settings]
\placeformula[references]{text}$$ $$
# \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]
\placeregister[settings]
\placerule[name]
\placesidebyside{text}{text}
\placesubformula[references]{text}$$ $$
\placetextvariable[name]
# \plusone
# \plustwo
\position(numbers){text}
\positiontext[name]{text}
# \prependtoks