[NTG-context] copy & paste source code from documents

2016-11-25 Thread Tobias Berndt

Dear List,

currently, I have to compose technical documents with a lot of source code in 
it. There're readers demands for a way to copy&paste this source code directly 
from those documents into their terminals. I tried ConTeXt’s attachment 
functionality, it is … ok. But most people don’t like files attatched to PDFs. 
Moreover, they must open it in an editor before getting contents in terminals. 
So,

is there any possibility in ConTeXt/Lua a document reader can click on a source 
code statement and the content of an external file (the plain code, without any 
typesetting) will be loaded into the clipboard, so that they can paste this 
plain source code into their terminal programs to use it directly?


Any help is welcome,
Tobias






___
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] startxtable, stopxtable in macro

2016-11-25 Thread Pablo Rodriguez
On 11/25/2016 11:28 PM, Michael Eidenbenz wrote:
> hmm.
> I still get an error with this (ConTeXt  ver: 2016.11.24 12:05 MKIV beta)
> 
> \define\startTable{\startembeddedxtable}
> \define\stopTable{\stopembeddedxtable}
> 
> \starttext
>   \startTable
> \startxrow
>   \startxcell hallo \stopxcell
> \stopxrow
>   \stopTable
> \stoptext

Michael,

sorry, I checked that compilation was fine, but I didn’t open the
resulting file. Now I realize that the PDF document wasn’t created in
both cases.

I would say this might be a bug.

Sorry for the previous noise,

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] Different text versions in columns?

2016-11-25 Thread Arthur Reutenauer
> 1. Streams work in MkIV
> 2. The MkIV version has a command to set sync points.

  That’s \pushoutputstreams, I presume.

> Only the mechanism to create pages/columns for the stream content is
> missing.

  Can you elaborate a bit?  I’m having the following use case in mind:
exactly two streams, one on even-numbered pages, the other on the
odd-numbered ones, with infrequent synchronisations.  The two streams
could run in parallel, facing each other on the spread, and only be
resynchronised every 5 or 10 pages, say.  Is that currently not
possible?

Best,

Arthur
___
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] startxtable, stopxtable in macro

2016-11-25 Thread Hans Hagen

On 11/25/2016 11:28 PM, Michael Eidenbenz wrote:

hmm.
I still get an error with this (ConTeXt  ver: 2016.11.24 12:05 MKIV beta)

\define\startTable{\startembeddedxtable}
\define\stopTable{\stopembeddedxtable}

\starttext
  \startTable
\startxrow
  \startxcell hallo \stopxcell
\stopxrow
  \stopTable
\stoptext


because the \stopembeddedxtable is a delimiter and need to be in the 
stream, so you can't wrap it in a macro


Hans



On 25 Nov 2016, at 23:02, Pablo Rodriguez  wrote:

On 11/25/2016 08:46 PM, Michael Eidenbenz wrote:

why does this produce an TeX capacity exeeded error?
thanks


Hi Michael,

I don’t know, but replacing your definitions with the following ones
removes the error:

   \define\startTable{\startembeddedxtable}
   \define\stopTable{\stopembeddedxtable}

I hope it helps,

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
___


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




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] TwoColumns in two different languages, with alternate text on even and odd page.

2016-11-25 Thread Arthur Reutenauer
On Fri, Nov 18, 2016 at 01:16:28PM +0100, Jean-Pierre Delange wrote:
> I make a statement on a part of the Arthur's reply (" there are no real-life 
> examples of documents that use it") : in fact, there are rare examples of 
> such printing materials : scholar editing and printing of Ancient texts are 
> mainly (if I am right) such printing material (including Ancient Armenian or 
> Georgian liturgic hymns). 

  That’s not what I meant.  There is an experimental mechanism in
ConTeXt called streams that could be part of the solution to your
problem, but there are no publicly available documents that make use of
it.  The commands for creating and managing streams are in the file
page-str.mkiv; there are short examples at the end.

  I mention this because this is typically the kind of issue that need
serious input from users in order to become a meaningful feature.

Best,

Arthur
___
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] startxtable, stopxtable in macro

2016-11-25 Thread Michael Eidenbenz
hmm.
I still get an error with this (ConTeXt  ver: 2016.11.24 12:05 MKIV beta)

\define\startTable{\startembeddedxtable}
\define\stopTable{\stopembeddedxtable}

\starttext
  \startTable
\startxrow
  \startxcell hallo \stopxcell
\stopxrow
  \stopTable
\stoptext


> On 25 Nov 2016, at 23:02, Pablo Rodriguez  wrote:
> 
> On 11/25/2016 08:46 PM, Michael Eidenbenz wrote:
>> why does this produce an TeX capacity exeeded error?
>> thanks 
> 
> Hi Michael,
> 
> I don’t know, but replacing your definitions with the following ones
> removes the error:
> 
>\define\startTable{\startembeddedxtable}
>\define\stopTable{\stopembeddedxtable}
> 
> I hope it helps,
> 
> 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
> ___

___
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] startxtable, stopxtable in macro

2016-11-25 Thread Pablo Rodriguez
On 11/25/2016 08:46 PM, Michael Eidenbenz wrote:
> why does this produce an TeX capacity exeeded error?
> thanks 

Hi Michael,

I don’t know, but replacing your definitions with the following ones
removes the error:

\define\startTable{\startembeddedxtable}
\define\stopTable{\stopembeddedxtable}

I hope it helps,

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
___

[NTG-context] startxtable, stopxtable in macro

2016-11-25 Thread Michael Eidenbenz
why does this produce an TeX capacity exeeded error?
thanks 
Michael



\define\startTable{\startxtable}

\define\stopTable{\stopxtable}


\starttext
  \startTable
\startxrow
  \startxcell hello \stopxcell
\stopxrow
  \stopTable
\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
___