ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Vyatcheslav Yatskovsky <yatskovsky@gmail.com>
To: "ntg-context-request@ntg.nl" <ntg-context@ntg.nl>
Subject: Success Story - II
Date: Thu, 25 Oct 2007 22:30:17 +0300	[thread overview]
Message-ID: <136784908.20071025223017@gmail.com> (raw)
In-Reply-To: <mailman.3084.1193338483.2346.ntg-context@ntg.nl>

Hello

Happy to report that Luatex made my life easier once again.  :) I've made another test papers for my students, with varying problems, and it was possible only due to Lua emedded code. Examples:

  Perform logical AND, OR and XOR under the following pair of hexadecimal numbers: 
  \startluacode 
    n = math.random(10,255)  
    m = math.random(10,255)
    tex.print(string.format("%X, %X", n, m)) 
  \stopluacode

  Encode your Name and Surname as a   
  \startluacode 
     a = {'null-terminated', 'dollar-terminated', 'Pascal'}
     tex.print( string.format('%s string.', a[math.random(1,3)]) );
  \stopluacode

Lucky, the discussion about Lua reference started in the list today, because I need more knowledge of Lua to make even more flexible assignments.

Best regards,
Vyatcheslav

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


       reply	other threads:[~2007-10-25 19:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.3084.1193338483.2346.ntg-context@ntg.nl>
2007-10-25 19:30 ` Vyatcheslav Yatskovsky [this message]
2007-10-31 13:15   ` luigi scarso
2007-10-31 14:52     ` Vyatcheslav Yatskovsky
     [not found]       ` <fe8d59da0710310918h6a60719bva1120d53edb47a8d@mail.gmail.com>
     [not found]         ` <1997183650.20071031221201@gmail.com>
2007-11-01  4:31           ` luigi scarso
2007-11-02  7:11     ` luigi scarso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=136784908.20071025223017@gmail.com \
    --to=yatskovsky@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).