Re: [NTG-context] Documentation for the database module

2020-09-15 Thread DesdeChaves
ontext@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] crosswords puzzles

2019-06-22 Thread DesdeChaves
Dear sirs, Is there a way to make crosswords or word puzzles in context? In my hippocampus I have a vague idea that this has already been tried, but I can't find this code anymore. Have a great day Jorge ___ If

[NTG-context] Asking for Hans Hagen candle's source code

2017-11-24 Thread DesdeChaves
Dear Sirs, If I can, where can I have access to show-gra.pdf source code (.tex file)? I would like to reproduce the Hans Hagen candle with the propose of illustration a "flame test" chemistry activity. Each salt burned have a different flame color and I would like to use Hans candle's with a

Re: [NTG-context] include google maps in context document

2017-05-04 Thread DesdeChaves
gps tracks. Thank you very much to all. Jorge 2017-05-04 15:55 GMT+01:00 Mojca Miklavec <mojca.miklavec.li...@gmail.com>: > On 4 May 2017 at 15:59, Henning Hraban Ramm wrote: > > Am 2017-05-04 um 13:46 schrieb Mojca Miklavec: > >> On 4 May 2017 at 13:30, DesdeChaves wr

Re: [NTG-context] include google maps in context document

2017-05-04 Thread DesdeChaves
com>: > Hi, > > On 3 May 2017 at 23:12, DesdeChaves wrote: > > Dear Sirs > > > > I need to justify my displacements from my school to the various > companies > > where I have students in training. For this I must include in my report a > > gloogle m

[NTG-context] include google maps in context document

2017-05-03 Thread DesdeChaves
Dear Sirs I need to justify my displacements from my school to the various companies where I have students in training. For this I must include in my report a gloogle maps image with the path and the distance covered. In the browse o found all the information that I need. For example, with an

[NTG-context] call of string.match() inside \ctxlua{}

2017-01-19 Thread DesdeChaves
Dear Sirs A have a string where I need to extract one number. But every time I run this code I found this error message: [ctxlua]:1: unfinished string near \usemodule[scancsv] \def\licann#1{% #1 - lesson number with strings \ctxlua{parsedate=thirddata.scancsv.ParseCSVLine('#1','n.º');%

[NTG-context] How to define a TeX logic function with a boolean returned from a Lua function and \edef fixed value

2017-01-18 Thread DesdeChaves
Dear sirs, Is there a way to compare, in TeX environment, a value returned from a lua function with a TeX variable? Please see this code: \def\aleatorioValue{ \startlua local nu = math.random(1,10); if nu<5 return 1 else return 0 end \stoplua } \edef\controlValue{1} \edef\inferior{Number too

Re: [NTG-context] scancsv module and lua

2017-01-16 Thread DesdeChaves
Fixed. Sorry for the noise. 2017-01-16 17:35 GMT+00:00 DesdeChaves <desdecha...@gmail.com>: > Dear sirs, > > In my project I need to format some data from a csv file. The csv file is > scanned using the scancsv module and part of this information is formatted > insid

[NTG-context] scancsv module and lua

2017-01-16 Thread DesdeChaves
Dear sirs, In my project I need to format some data from a csv file. The csv file is scanned using the scancsv module and part of this information is formatted inside luacode environment, but the text.print("") and the context("") functions don´t be able to send the formatted data to the

Re: [NTG-context] ANN: Updated Vim scripts for ConTeXt

2016-10-12 Thread DesdeChaves
n/list > info/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > -- Atentamente DesdeChaves ___

Re: [NTG-context] Buffered metapost function freezes random numbers

2016-05-25 Thread DesdeChaves
I found this solution in a old Hans post ( http://ntg-context.ntg.narkive.com/g0lT1D2A/scaling-mpgraphics) 2016-05-25 18:30 GMT+01:00 Wolfgang Schuster <schuster.wolfg...@gmail.com>: > DesdeChaves <desdecha...@gmail.com> > 25. Mai 2016 um 19:09 > For educational purpo

[NTG-context] Buffered metapost function freezes random numbers

2016-05-25 Thread DesdeChaves
For educational purposes I try to simulate a ammeter for reading practice. I would like create six or more ammeter with different readings, but i'm not able to do that because metapost create the same random number every time I call the buffer that defines my ammeter. How can I fix that? Thanks

[NTG-context] What is wrong with PocketDiary module?

2016-03-19 Thread DesdeChaves
PocketDiary module don't works anymore with the actual Context version. What is wrong? Why this module isn't more supported? Thanks Jorge context PocketDiary.tex mtx-context | run 1: luatex

Re: [NTG-context] anchor points for \inmargin

2015-11-12 Thread DesdeChaves
Thanks a lot for this great solution. 2015-11-12 18:14 GMT+00:00 Wolfgang Schuster <schuster.wolfg...@gmail.com>: > DesdeChaves <desdecha...@gmail.com> > 11. November 2015 um 19:01 > Dear Sirs, > > I'm trying to make a exam for my students. After the question I sho

[NTG-context] anchor points for \inmargin

2015-11-11 Thread DesdeChaves
Dear Sirs, I'm trying to make a exam for my students. After the question I should provide a blank space for the answer. In the margin I want write the partial scores for the answer. The problem occurs when I force a new page. In this case the text in the margin is flushed to the next page. I

[NTG-context] Form with character separators

2015-10-05 Thread DesdeChaves
I would like to produce a form with a character separators. However, my code presents two problems: first, the character box has no fixed dimensions and, two, I can't indent the text when it occupies multiple lines (ex, address field). I tried to use the starttabulate environment, but without

[NTG-context] PPCHTEX: bonds overlaps the radicals groups

2015-09-27 Thread DesdeChaves
Some time ago I wrote the code attached to create random branched organic molecules. However, with recent versions of Context the carbon-carbon bonds overwrites the radicals. How can I fix this? Another question: is there a way to change the bonds color? I would like to blank some radicals and

Re: [NTG-context] can't run external lua library

2015-07-23 Thread DesdeChaves
Luigi, you saved my day. Thanks a lot. Now all works fine. 2015-07-23 8:30 GMT+01:00 luigi scarso luigi.sca...@gmail.com: On Thu, Jul 23, 2015 at 1:37 AM, DesdeChaves desdecha...@gmail.com wrote: I'm trying to reuse a old library to generate poisson numbers. In old context versions

[NTG-context] can't run external lua library

2015-07-23 Thread DesdeChaves
I'm trying to reuse a old library to generate poisson numbers. In old context versions the library works fine, but in the current beta (ConTeXt ver: 2015.07.16 13:30 MKIV beta fmt: 2015.7.23 int: english/english) the execution fails. This code works perfectly in lua 5.3 but not in luatex.

[NTG-context] Update text variables inside metapost

2015-03-07 Thread DesdeChaves
Why the metapost not updated the value of text variables that are generated inside luacode environment? In the code below, If I have \startitemize[columns,two] then metapost draw: 1. \Bolha[size=6cm]{text1}{text2}{text3}, 2. and four \Bolha[size=4cm]{text1}{text2}{text3}, but text1, text2 and

Re: [NTG-context] Update text variables inside metapost

2015-03-07 Thread DesdeChaves
Aditaya, thanks for the clarification. Now it works perfectly. Jorge 2015-03-07 23:57 GMT+00:00 Aditya Mahajan adit...@umich.edu: On Sat, 7 Mar 2015, DesdeChaves wrote: Why the metapost not updated the value of text variables that are generated inside luacode environment? In the code

[NTG-context] Code that run in Metapost but not in starMPcode enviroment

2015-02-01 Thread DesdeChaves
I'm trying to draw some random arrows using Metapost. For that I use a piece of code from fpast that in found at stackexchange http://tex.stackexchange.com/questions/179745/generating-random-arrows-in-tikz/180111#180111 Unfortunately this code does not work in context (request for a solution

Re: [NTG-context] pgfplots.revision.tex is missing in the last ContextMinimals

2015-01-10 Thread DesdeChaves
\pgfplotsrevisiondatetime\\relax} \endgroup 2015-01-10 11:04 GMT+00:00 Mojca Miklavec mojca.miklavec.li...@gmail.com: On Mon, Jan 5, 2015 at 11:00 PM, DesdeChaves wrote: Dear Sirs In the last ContextMinimals the file pgfplots.revision.tex is missing. This file is required by the pgfplots

Re: [NTG-context] pgfplots.revision.tex is missing in the last ContextMinimals

2015-01-10 Thread DesdeChaves
Now is fine. Thanks a lot. jorge 2015-01-10 12:30 GMT+00:00 Mojca Miklavec mojca.miklavec.li...@gmail.com: On Sat, Jan 10, 2015 at 12:31 PM, DesdeChaves wrote: There are a extra \ in the beginning of the file pgfplots.revision.tex. I'm sorry. After the problem was fixed, I synced

[NTG-context] pgfplots.revision.tex is missing in the last ContextMinimals

2015-01-05 Thread DesdeChaves
Dear Sirs In the last ContextMinimals the file pgfplots.revision.tex is missing. This file is required by the pgfplots module. Happy New Year 2015 to all members Jorge ___ If your question is of interest to others

[NTG-context] MP/Lua binding information flow

2014-12-09 Thread DesdeChaves
In the code in the attachment I have intend that everytime the data generated by Lua are updated metapost should make immediately their representation. However, it insists into represent only the last data generated. How can I fix this problem? thanks Jorge calltemplates.tex Description: TeX

Re: [NTG-context] Pass a lua table to metapost

2014-12-08 Thread DesdeChaves
GMT+00:00 Hans Hagen pra...@wxs.nl: On 12/7/2014 8:25 PM, DesdeChaves wrote: I would like to pass the lua table keys and values to metapost. In the keys i have information about the paths names and in the values i have information about the label that should be draw in the center of each

Re: [NTG-context] Pass a lua table to metapost

2014-12-08 Thread DesdeChaves
/spac-ver.lua:933: attempt to index field 'properties' (a nil value) Why context minimals don't coming with the last luatex? Thanks for your support 2014-12-08 12:19 GMT+00:00 Hans Hagen pra...@wxs.nl: On 12/8/2014 12:27 PM, DesdeChaves wrote: Thanks, but I'm not able to run this code in my

Re: [NTG-context] Pass a lua table to metapost

2014-12-08 Thread DesdeChaves
Sorry for the noise. My LuaTeX version is 0.79.1. I'm using MacOSX This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972) 2014-12-08 15:48 GMT+00:00 Mojca Miklavec mojca.miklavec.li...@gmail.com: On Mon, Dec 8, 2014 at 4:34 PM, DesdeChaves wrote: I use the last context minimals

Re: [NTG-context] Pass a lua table to metapost

2014-12-08 Thread DesdeChaves
MacOSX intel 2014-12-08 16:03 GMT+00:00 DesdeChaves desdecha...@gmail.com: Sorry for the noise. My LuaTeX version is 0.79.1. I'm using MacOSX This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972) 2014-12-08 15:48 GMT+00:00 Mojca Miklavec mojca.miklavec.li...@gmail.com

Re: [NTG-context] Pass a lua table to metapost

2014-12-08 Thread DesdeChaves
After the update to new ConTeXT minimals -- luatex beta-0.79.2 (rev 5084) -- the code runs perfectly. Thanks to all. Jorge 2014-12-08 16:05 GMT+00:00 DesdeChaves desdecha...@gmail.com: MacOSX intel 2014-12-08 16:03 GMT+00:00 DesdeChaves desdecha...@gmail.com: Sorry for the noise. My

[NTG-context] Pass a lua table to metapost

2014-12-07 Thread DesdeChaves
I would like to pass the lua table keys and values to metapost. In the keys i have information about the paths names and in the values i have information about the label that should be draw in the center of each path (unitsquare). In my code (see attach) the table in question is

[NTG-context] Tikz calendar translation

2014-12-03 Thread DesdeChaves
Dear Sirs I need to represent a calendar in Portuguese language. You want to use the Tikz calendar package, but the result is unsatisfactory (please see attach). The problem is in the translation of the names of months and days of the week. How can I fix this problem? Thanks in advance. Jorge

[NTG-context] framed and placefigure

2014-10-26 Thread DesdeChaves
why this happens: After a specification of the foregroundcolor the figures are behind a framed color. \setupframed[offset=2mm, corner=round, background=color, backgroundcolor=blue, foregroundcolor=yellow, frame=off, strut=no, align=normal, location=top,

[NTG-context] first xcell dimension to large in xtable with external figure.

2014-05-06 Thread DesdeChaves
Dear Sirs, I would like to write a tecnhical document that looks like the DIN standards style. I found in this Wolfgang's message ( http://www.ntg.nl/pipermail/ntg-context/2013/076348.html) inspiration for do that. All works great if the sentence \externalfigure[cow.pdf][height=3cm] are

[NTG-context] Draw eletrical circuits in ConTeXt (Circuitikz or mpcirc.mp)

2014-03-25 Thread DesdeChaves
Dear Sirs I need to draw some simple eletrical circuits. I try metapost (mpcirc.mp) and cicruitikz, but i found error messages in both. Is there a way to draw eletrical circuits in ConTeXt? Thanks in advance for your support. Jorge ConTeXt ver: 2014.02.14 17:07 MKIV beta fmt: 2014.2.15

Re: [NTG-context] Pgfplots - passing point coordinates by Lua

2014-02-16 Thread DesdeChaves
/ listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- Atentamente DesdeChaves

[NTG-context] Strange output from linear_shade (METAPOST)

2014-02-14 Thread DesdeChaves
I need to create some graphics to teach energy. One of the illustrations is about the sound energy that I represent using linear_shade function. In the following example the first illustration is represented correctly, but the second call of the function SoundEnergy implies the loss of gradient.

[NTG-context] draw random branched hydrocarbons

2014-02-04 Thread DesdeChaves
I wrote this code to randomly draw organic branched structures. Since the organic structures have different dimensions I'm using the scale function to normalize the width. The result is a rather ugly because the structures are displayed with fonts with different sizes. Is there a way to normalize

[NTG-context] (no subject)

2014-01-28 Thread DesdeChaves
Some features of m-steps does not work in mkiv. For example, I can not change colors and the shapes (first example), add steps from the cell (n) to the cell (n+m, m=2,3,4...) and reverse steps. \usemodule[steps,mathml] \starttext \startSTEPtable \setupSTEPcells [alternative=5, framecolor=red]

[NTG-context] m-steps on mkiv

2014-01-28 Thread DesdeChaves
Some features of m-steps does not work in mkiv. For example, I can not change colors and the shapes (first example), add steps from the cell (n) to the cell (n+m, m=2,3,4...) and reverse steps. \usemodule[steps,mathml] \starttext \startSTEPtable \setupSTEPcells [alternative=5, framecolor=red]

[NTG-context] align text in nodes (tikz)

2014-01-20 Thread DesdeChaves
How i can fix that: This works: \starttikzpicture[mynode/.style={rectangle,fill=red!10,text width=4cm}] \node[mynode] (A) at (5cm, 8cm) {This\\ works}; \stoptikzpicture This don´t works: \starttikzpicture[mynode/.style={rectangle,fill=red!10,text width=4cm, align=center}] \node[mynode] (A)

Re: [NTG-context] align text in nodes (tikz)

2014-01-20 Thread DesdeChaves
I found this solution: \starttikzpicture[mynode/.style={rectangle,fill=red!10,text width=4cm}] \node[mynode] (A) at (5cm, 8cm) {\framed[width=4cm,location=middle,align=center]{it's\\ (framed )}}; \stoptikzpicture Jorge 2014/1/20 DesdeChaves desdecha...@gmail.com How i can fix

Re: [NTG-context] reset blocks with dorecurse

2014-01-15 Thread DesdeChaves
Please, can someone provide some assistance in resolving this problem, if possible. I need to prepare a worksheet for Friday and I'm having this problem, ie, each worksheet show the hints and the answers of all worksheets. thanks in advance Jorge 2014/1/14 DesdeChaves desdecha...@gmail.com

Re: [NTG-context] reset blocks with dorecurse

2014-01-15 Thread DesdeChaves
Thank you. Jorge 2014/1/15 Wolfgang Schuster schuster.wolfg...@gmail.com Am 15.01.2014 um 15:06 schrieb DesdeChaves desdecha...@gmail.com: Please, can someone provide some assistance in resolving this problem, if possible. I need to prepare a worksheet for Friday and I'm having

[NTG-context] reset blocks with dorecurse

2014-01-14 Thread DesdeChaves
Is there a way to empty the blocks after each recurse cycle. If i make three exams with the command \dorecurse[3], in the first exam i found the hints and the answers of all exams. I try with the commands \resetnumber[hint, answer], but don't work. begin question-hint-answer-blocks.tex

Re: [NTG-context] Statistical module for Metapost

2013-12-24 Thread DesdeChaves
Thanks a lot. Merry Christmas Jorge 2013/12/24 Hans Hagen pra...@wxs.nl On 12/23/2013 7:55 PM, DesdeChaves wrote: I'm trying play with the statistical package** for metapost from Anthony Phan. I found this strange problem: This code runs fine: \startMPcode label.bot(btex Metapost

Re: [NTG-context] Request for metapost

2013-12-23 Thread DesdeChaves
Thanks very much for your support. Jorge 2013/12/22 Hans Hagen pra...@wxs.nl On 12/22/2013 3:57 PM, Hans Hagen wrote: On 12/21/2013 12:50 PM, DesdeChaves wrote: I know that metapost can send the variables version, number, string, point, quad, boolean and path to Context. triplet

[NTG-context] Statistical module for Metapost

2013-12-23 Thread DesdeChaves
I'm trying play with the statistical package** for metapost from Anthony Phan. I found this strange problem: This code runs fine: \startMPcode label.bot(btex Metapost and Statistics etex,(5mm,0)) ; \stopMPcode Also, this code run fine: \startMPcode input mps-core.mp; draw fullcircle scaled

[NTG-context] Request for metapost

2013-12-21 Thread DesdeChaves
I know that metapost can send the variables version, number, string, point, quad, boolean and path to Context. triplet variable can't pass. It will be very usefull if metapost can send a array to context. \startMPcode numeric x[]; for i = 1 upto 10: x[i]:=random; endfor passvariable(array,x);

[NTG-context] luatex lunatic

2013-12-18 Thread DesdeChaves
Dear sirs I would like to try luatex lunatic ( http://wiki.contextgarden.net/User:Luigi.scarso/luatex_lunatic) but i d'ont find the luatex-0.42. I'm looking in https://foundry.supelec.fr/frs/?group_id=10release_id=406#luatex-beta-0.76.0-title-content I've been looking for a way to simulate data

[NTG-context] gsl in luatex

2013-12-15 Thread DesdeChaves
Dear Sirs Is there a way to call external lua modules inside luatex. In particular I would like to call gsl libray using a gsl-lua binding ( http://www.stefanom.org/devel/gsl-lua)/. I'm not talking about gsl-shell that needs luajit. I'm working in MacOSX with minimals. My LUAINPUTS are:

[NTG-context] ctxluacode inside bTABLE

2013-11-27 Thread DesdeChaves
I try make a table with some random numbers but I found a problem with this code: \starttext \ctxluacode{v=math.random(400,600)/10;context(%0.1f,v) ;} \bTABLE \bTR\bTD Distance (cm) \eTD\bTD $\Delta t$ (s) \eTD\eTR \bTR\bTD[nr=3] \ctxluacode{v=math.random(400,600)/10;context(%0.1f,v) ;}

Re: [NTG-context] ctxluacode inside bTABLE

2013-11-27 Thread DesdeChaves
\bTD t2 \eTD \eTR \bTR \bTD t3 \eTD \eTR \eTABLE \stoptext 2013/11/27 Philipp Gesang philipp.ges...@alumni.uni-heidelberg.de Hi Jorge, ···date: 2013-11-27, Wednesday···from: DesdeChaves··· I try make a table

[NTG-context] pstrics module again

2013-11-25 Thread DesdeChaves
Dear sirs The pstrics module don't work anymore. I tried to run this simple code but I found a lot of errors. \usemodule[pstric] \starttext \startPSTRICKS \pspicture(0,0)(20,20) \psline(0,0)(20,20) \psline(1,1)(10,10) \endpspicture \stopPSTRICKS \stoptext This module is no longer supported?

Re: [NTG-context] pstrics module again

2013-11-25 Thread DesdeChaves
) \rput(2,1){Hydrogen spetrum} \endpspicture \stopPSTRICKS \stoptext 2013/11/25 DesdeChaves desdecha...@gmail.com radical solution Download and unpack the PSTRicks-TDS.tar to a directory cp ./PSTricks-TDS/tex/generic/*/*.tex . perl -pi.back -e 's/\ifx!#1/\ifx !#1/g;' *.tex rm -rf

[NTG-context] pst-spectra and some other pstricks packages in context

2013-11-21 Thread DesdeChaves
Dear Sirs Tanks a lot for the context software. I use it so much. I'm a physics/chemistry teacher and for making personalized exams with random numbers/questions the math.random() from lua is great. For draw schematic diagrams/graphs with random arguments I use tikz inside luacode, like

[NTG-context] Drawing chemical structures

2013-11-21 Thread DesdeChaves
Dear Sirs, I'm trying to run some code from the ppchtex manual, however, the chemical structures are not correctly drawn. See the example: https://www.dropbox.com/s/w7v8kouc4glndf0/chemicerror.pdf. I found this problem en Minimals (last version) and on TexLive 2013. \setupbodyfont[11pt]