Re: [NTG-context] Natural tables introduces spaces in \type

2014-11-07 Thread Alan BRASLAU
On Thu, 6 Nov 2014 16:15:36 +0100
Christoph Reller christoph.rel...@gmail.com wrote:

 Of the above characters the following are disallowed on NTFS

Not everyone uses NTFS.
___
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] Strange behavior with the command \color[]{}

2014-11-07 Thread luigi scarso
On Thu, Nov 6, 2014 at 10:28 PM, Herbert Voss herbert.v...@fu-berlin.de
wrote:

 Am 06.11.2014 um 21:16 schrieb luigi scarso:
 
  \definecolor[H1prime][c=0.50, m=0.00, y=1.00, k=0.00]
 [...]
 
 \setupTABLE[column][1][width=4cm,align={right,lohi},frame=on]%,framecolor=H1prime]



  The problem seems to be
  %,framecolor=H1prime]


 I have no problem with framecolor=H1prime setting.
 I am using ConTeXt minimal copied into my up-to-date TL 2014.

hm the I have just update the TL 2014, and there is still the error. The
latest t-tikz.tex form Hans solves the problems
both in TL 2014 and standalone.




-- 
luigi
___
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] ConTeXt gobble my mind

2014-11-07 Thread Pierre-François Bonnefoi
Hello Keith and Luigi,


On 06 Nov 2014, at 17:57, Keith J. Schultz keithjschu...@web.de wrote:

 Hi Pierre,
 
 I think you are approaching your problem from the wrong direction!
 
 The way I understand your problem is that you have certain criteria in your 
 slides
 when encountered decides whether it should be output or not.
Yes.
 
 If this is the case then what you have is a classical parsing problem.
 
 That is you start parsing the content of the slide, until you find the 
 criteria
 that excludes it or come to the end of the slide.
 If you find the criteria then you just continue reading to the end of the 
 slide and not output it,
 otherwise send the gathered content to be output.
 
Yes, beautifully expressed.

 That would be the most elegant way and can be used for dynamic content.
 
Yes, but my current solution brakes on crossing the path of C code : I use 
\gobbleinput that is defined as (according to some documentation) :
\def\gobbleuntil#1%
  {\long\def\next##1#1{}\next}
As I understand this code, the goblling is made as enclosing the text that 
you dan't want to be added to the output as the body of a function.
If the text contains some restricted characters as the %, this proposition 
brakes.
 
 Now, If you already know if the level is know a head of time the slides can 
 be given a level and you can use
 a custom mode that only outputs the slides to this level.
 
This is what I've made : I express a list of numbered slides and check if each 
slide has to be outputted or not into the final document.

 Another way is to build a database or table which is processed from which to 
 choose your slides!
 
This is the path I've followed so far with success for some of my lectures.
But, when I've applied the same process to slides containing C code, this 
process brakes.

I've tried yesterday evening to modify my slide definition to use the solution 
provided by Luigi, but I've failed.

 Or define a start/stop command that has a user level parameter and use mode 
 to decide output or not!
 this approach should not interfere with other macros you are using.
 
How do you make this ?

Please save my remaining hairs on my head !
 Hope this helps
 
 regards
   Keith.
 
Thank you very much for sparing some time to express so efficiently my problem.

best regards,
Pierre-François.
-- 
Bonnefoi Pierre-Francois|E-mail : bonne...@unilim.fr 
http://libpfb.so/
Universite de Limoges, Laboratoire XLIM |   Tel : 06 28 18 03 38
123 av Albert Thomas|  Mrs. Peel, we're needed...
87060 Limoges CEDEX - FRANCE| The Avengers.

___
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] Equivalent of os.resultof(...) in LaTeX

2014-11-07 Thread Xan
luatex --shell-escape file
will work.

It works Thanks
___
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] ConTeXt gobble my mind

2014-11-07 Thread Hans Hagen

On 11/6/2014 2:29 PM, Pierre-François Bonnefoi wrote:

I can not define a mode for each of my slide neither I can express a
list of activated slides.


On 06 Nov 2014, at 14:12, luigi scarso luigi.sca...@gmail.com
mailto:luigi.sca...@gmail.com wrote:




On Thu, Nov 6, 2014 at 1:59 PM, Pierre-François
Bonnefoibonne...@unilim.fr mailto:bonne...@unilim.frwrote:

Hello Wolfgang and Luigi,

My example lines are too small to fully understand the purpose of
using the gobbleinput instruction :
I have made some slides for my students that I can choose or not
ton include in the final presentation :

\skipSlide
\startSlide
bla bla bla
\startyping
language C code
\stoptyping
bla bla bla
\stopSlide

I've made some macros to include or not a slide according to its
number given into a list or by just putting before the macro
\skipSlide.
This is very useful as I have students of different levels.

The gobbleinput solution is the best solution : I can activate or
not a slide according to my audience.

If I use the buffer solution, I'll not be able to deactivate the
whole slide containing the typing region.

Perhaps Modes ?
http://wiki.contextgarden.net/Modes


\starttext

\definebuffer[Slide]

foo

% \skipSlide
\startSlide
bla bla bla
\startyping
language C code
\stoptyping
bla bla bla
\stopSlide

bar

\stoptext

-
  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] mail merge in mkiv?

2014-11-07 Thread Jaroslav Hajtmar

Hello Pablo.

Here is the solution of your minimal example:
http://public.hajtmar.com/?cesta=JRsVFQdsJhwoWyAdFwQROwZWBFkwERgeFzAEJjMbLSYcKAAcHxYUAS8XVkIkIhAVHyYsFgsZEzYXAw


Examples of more complex and comprehensive application of my 
t-scancsv.lua mudule are available at:

http://public.hajtmar.com/?cesta=JRsVFQdsJhwoWyAdFwQROwZWBFkwERgeFzAEJjMbLSYcKAAcHxYUAS8X


I zip the entire folder and you can download it at:
http://public.hajtmar.com/files/TeX/context/t-scancsv_ConTeXt_module/t-scancsv_ConTeXt_module.zip

Perhaps those that serve well.

Jaroslav Hajtmar










Dne 6.11.2014 18:57, Pablo Rodriguez napsal(a):

On 11/05/2014 04:42 PM, Jaroslav Hajtmar wrote:

Hello Pablo.
I do very often mailmerge using ConTeXt. I do it with my lua library and
data in my external CSV file. Unfortunately I do not have a manual to
the my lua library. If you send me a minimal example of how you imagine
it, I'll send you back solving and my lualibrary too...

Hi Jaroslav,

many thanks for your reply.

Is your library scancsv.lua and is it described at
http://public.hajtmar.com/files/TeX/TeXperience2011/knihovna_ScanCSVlua.pdf?
(I read a previous English version ;-)).

Do you have any plans to release it as a module? Or to publish it at GitHub?

The minimal sample would be envelopes such as:
\setuppapersize[C6, landscape]
\setuppagenumbering[location=]
\starttext
Name\\
Address\\
Postcode--City\\
\stoptext

csv file would be:

Name;Address;Postcode;City;
Me;Street;;Here;
You;Square;;There;

Many thanks for your help,


Pablo


___
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] ConTeXt gobble my mind

2014-11-07 Thread Pierre-François Bonnefoi
Hello Hans,

thank you for contributing to solve my problem.

I've tried your proposition : how can I get the content of the buffer afterward 
?
I've tried \getbuffer[Slide] with no success on MKIV beta that I've just 
updated.

Does a buffer work only for verbatim content ?

best regards,
Pierre-François.

On 07 Nov 2014, at 12:38, Hans Hagen pra...@wxs.nl wrote:

 
 \starttext
 
 \definebuffer[Slide]
 
 foo
 
 % \skipSlide
 \startSlide
 bla bla bla
 \startyping
 language C code
 \stoptyping
 bla bla bla
 \stopSlide
 
 bar
 
 \stoptext
 
 

-- 
Bonnefoi Pierre-Francois|E-mail : bonne...@unilim.fr 
http://libpfb.so/
Universite de Limoges, Laboratoire XLIM |   Tel : 06 28 18 03 38
123 av Albert Thomas|  Mrs. Peel, we're needed...
87060 Limoges CEDEX - FRANCE| The Avengers.

___
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] Natural tables introduces spaces in \type

2014-11-07 Thread Christoph Reller
On Fri, 7 Nov 2014 09:11:09 +0100
Alan Braslau alan.bras...@cea.fr wrote
 On Thu, 6 Nov 2014 16:15:36 +0100
 Christoph Reller christoph.rel...@gmail.com wrote:

  Of the above characters the following are disallowed on NTFS

 Not everyone uses NTFS.

Another reason for not making a file-name cleaner as such, but rather
restricting the characters to ascii.

Regards,
Christoph
___
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] Bug with custom TOC

2014-11-07 Thread Michał Goliński
The following example is taken from the wiki 
(http://wiki.contextgarden.net/Command/setuplist):


\define[3]\SectionToCEntry{
  \leftaligned\bgroup
 \hbox to 2em{#3}%
 \hskip 1em
 \vtop{\hsize\dimexpr\textwidth-3em\relax#2}%
  \egroup
}

\setuplist
  [part]
  [alternative=interactive,
   command=\SectionToCEntry]
\setuplist
  [chapter]
  [alternative=interactive,
   command=\SectionToCEntry]
\setuplist
  [section]
  [alternative=interactive,
   command=\SectionToCEntry]

\starttext

\startcolor[darkgreen]
\completecontent[criterium=all]
\stopcolor

\page[yes]

\part{I}
\chapter{1}
\section{1.1}
\section{1.2}
\section{1.3}
\stoptext

The fresh beta prints all the sections in TOC in a single line (so TOC 
has three lines only), while texlive prints it as expected: each section 
on its own line. I've tried adding \par after \egroup, but it doesn't 
help.


Curiously, it works if there are no sections in the TOC.

Best regards
Michał
___
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] ConTeXt gobble my mind

2014-11-07 Thread Hans Hagen

On 11/7/2014 2:26 PM, Pierre-François Bonnefoi wrote:

Hello Hans,

thank you for contributing to solve my problem.

I've tried your proposition : how can I get the content of the buffer
afterward ?
I've tried \getbuffer[Slide] with no success on MKIV beta that I've just
updated.


\starttext

\definebuffer[Slide]

foo

\startSlide
bla bla bla
\starttyping
language C code
\stoptyping
bla bla bla
\stopSlide

bar

\getbuffer[\thedefinedbuffer{Slide}]

\getSlide

\stoptext



Does a buffer work only for verbatim content ?


no, for everything


best regards,
Pierre-François.

On 07 Nov 2014, at 12:38, Hans Hagen pra...@wxs.nl
mailto:pra...@wxs.nl wrote:



\starttext

\definebuffer[Slide]

foo

% \skipSlide
\startSlide
bla bla bla
\startyping
language C code
\stoptyping
bla bla bla
\stopSlide

bar

\stoptext




--
Bonnefoi Pierre-Francois|E-mail : bonne...@unilim.fr
mailto:bonne...@unilim.fr http://libpfb.so/
Universite de Limoges, Laboratoire XLIM |   Tel : 06 28 18 03 38
123 av Albert Thomas|  Mrs. Peel, we're needed...
87060 Limoges CEDEX - FRANCE| The Avengers.



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




--

-
  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] Strange behavior with the command \color[]{}

2014-11-07 Thread Fabrice

Hi,

The
latest t-tikz.tex form Hans solves the problems
both in TL 2014 and standalone.

The same for me,
Fabrice
___
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] \endnote beyond \placenotes[endnote]

2014-11-07 Thread Gerben Wierda
I've got the \placenote[endnotes] as first appendix in a book but I want to 
have an \endnote in a next appendix. The number appears, but the endnote is not 
added to the actual endnotes.

Impossible to do? (I can of course put the endnotes as the last appendix)

G
___
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] Numbering in a Table

2014-11-07 Thread Fabrice Couvreur
Hi,
Is it possible to use an itemize environment in a table ?
Best regards,
Fabrice

\starttext
\startsetups[table:initialize]
  \setupTABLE[height=0.8cm,align={middle,lohi}]
  \setupTABLE[row][1][background=color,backgroundcolor=cyan]
  \setupTABLE[1][1][background=color,backgroundcolor=white]
  \setupTABLE[column][1][width=10cm,align={right,lohi}]
  \setupTABLE[column][2,3,4][width=2.5cm,align={middle,lohi}]
  \setupTABLE[1][1][frame=off]
\stopsetups
\bTABLE[setups=table:initialize]
\bTR
\bTD \eTD
\bTD Vrai \eTD
\bTD Faux \eTD
\bTD Peut-être \eTD
\eTR
\bTR
\bTD \color[red]{a.} Les droites (IJ) et (AB) sont parallèles.\eTD
\bTD \eTD
\bTD \eTD
\bTD \eTD
\eTR
\bTR
\bTD \color[red]{b.} Les droites (JK) et  (BC) sont parallèles. \eTD
\bTD \eTD
\bTD \eTD
\bTD \eTD
\eTR
\eTABLE{}
\stopmidaligned
\stopitemize
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] upate error

2014-11-07 Thread Wolfgang Werners-Lucchini
Hallo,

tried to run update from context minimal and got the following error:
-

! LuaTeX error E:/context/tex/texmf-context/tex/context/base/data-
env.lua:118: a
ttempt to index local 'luasuffixes' (a nil value)
stack traceback:
E:/context/tex/texmf-context/tex/context/base/data-
env.lua:118: in main
chunk
E:/context/tex/texmf-context/tex/context/base/luat-
cod.lua:42: in functi
on 'registercode'
[string main ctx instance]:1: in main chunk.
\registerctxluafile ...ua.registercode(#1,#2)}

l.35 \registerctxluafile{data-env}{1.001}

?
--
What can I do?

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] ConTeXt gobble my mind

2014-11-07 Thread Pierre-François Bonnefoi
Just before going to bed, I've found a solution with all your help and the help 
of Taco Hoekwater through the ntg mail archive :

\def\startSlide%
{\def\stopSlide{\checkSlide\doif{\getvariable{temp}{publish}}{yes}{\page\getbuffer[Slide]}}%
\dostartbuffer[Slide][startSlide][stopSlide]}

Let me know if it's my philosopher's stone...
I've tried it and it works so far.

No more ugly gobbling, my mind is free.

So depressing problem and so simple and elegant solution...

On 07 Nov 2014, at 16:17, Hans Hagen pra...@wxs.nl wrote:

 On 11/7/2014 2:26 PM, Pierre-François Bonnefoi wrote:
 Hello Hans,
 
 thank you for contributing to solve my problem.
 
 I've tried your proposition : how can I get the content of the buffer
 afterward ?
 I've tried \getbuffer[Slide] with no success on MKIV beta that I've just
 updated.
 
 \starttext
 
 \definebuffer[Slide]
 
 foo
 
 \startSlide
 bla bla bla
 \starttyping
 language C code
 \stoptyping
 bla bla bla
 \stopSlide
 
 bar
 
 \getbuffer[\thedefinedbuffer{Slide}]
 
 \getSlide
 
 \stoptext
 
 
 Does a buffer work only for verbatim content ?
 
 no, for everything
 
 best regards,
 Pierre-François.
 
 On 07 Nov 2014, at 12:38, Hans Hagen pra...@wxs.nl
 mailto:pra...@wxs.nl wrote:
 
 
 \starttext
 
 \definebuffer[Slide]
 
 foo
 
 % \skipSlide
 \startSlide
 bla bla bla
 \startyping
 language C code
 \stoptyping
 bla bla bla
 \stopSlide
 
 bar
 
 \stoptext
 
 
 
 --
 Bonnefoi Pierre-Francois|E-mail : bonne...@unilim.fr
 mailto:bonne...@unilim.fr http://libpfb.so/
 Universite de Limoges, Laboratoire XLIM |   Tel : 06 28 18 03 38
 123 av Albert Thomas|  Mrs. Peel, we're needed...
 87060 Limoges CEDEX - FRANCE| The Avengers.
 
 
 
 ___
 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
 ___
 
 
 
 -- 
 
 -
  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
 ___

-- 
Bonnefoi Pierre-Francois|E-mail : bonne...@unilim.fr 
http://libpfb.so/
Universite de Limoges, Laboratoire XLIM |   Tel : 06 28 18 03 38
123 av Albert Thomas|  Mrs. Peel, we're needed...
87060 Limoges CEDEX - FRANCE| The Avengers.

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