Re: [NTG-context] [OT] suggestion for books on (typo)graphic design

2008-02-21 Thread John Luciani
On Thu, Feb 21, 2008 at 5:00 AM, Andrea Valle [EMAIL PROTECTED] wrote:
  Hi to all and sorry for the OT,

 but here on the list there are some of the most competent people I know on
 the topic.
 I will start a course on graphic communication. The students are ground-zero
 programmers, all on mac, so I would like to use Nodebox
 (http://nodebox.net/).
 (Unluckily no time/space to introduce ConTeXt).
 I will focus on data visualization, so I was considering to adopt Tufte's
 classic The Visual Display etc. I've still not read Envisioning Information
 and Visual Explanations.
 Any ideas?
 I will have also to introduce basic elements of graphic communication (e.g.
 fonts, page composition, color usage etc).
 Suggestions?

You may want to ask this question at tufte.com

You will probably also find some references in the books you site.

Also at the Tufte lecture there is a recommended reading list handout.
There should be a copy online.

(* jcl *)


-- 
http://www.luciani.org
___
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] shading in metapost

2008-01-16 Thread John Luciani
There is some information on doing transparencies in
METAPOST at http://www-math.univ-poitiers.fr/~phan/metalpha.html

Using the code at the above link you should be able to produce
the effect in your jpeg.

(* jcl *)

-- 
http://www.luciani.org
___
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] Using context with cweave

2007-09-01 Thread John Luciani
On 8/31/07, luigi scarso [EMAIL PROTECTED] wrote:

 Ok, now we have a dirty screen version (better than nothing, isn't it ?)

Thanks again.

I tried both the print and the screen instructions and both compile
without error.
I will have to compare the print version output with the plain tex
output but it looks
quite close now. I will take a closer look at the screen version as well.

(* jcl *)

-- 
http://www.luciani.org
___
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] Using context with cweave

2007-08-31 Thread John Luciani
On 8/30/07, Aditya Mahajan [EMAIL PROTECTED] wrote:

 Did you try:

 http://wiki.contextgarden.net/CWEB

 (the page says cweb is broken, but you got partial success, so worth a
 try)

Using Luigi's suggestion I did the following ---

* In the tex file created by cweave replace the line

\input cwebmac

  with

\input m-cweb
\activateCWEB
\starttext

* At the end of the tex file add the line

\stoptext

* run the command

 texexec --pdf TEXFILENAME


The resultant pdf file is missing hyperlinks and the indentation is off.

(* jcl *)







-- 
http://www.luciani.org
___
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] Using context with cweave

2007-08-31 Thread John Luciani
On 8/31/07, Aditya Mahajan [EMAIL PROTECTED] wrote:
 On Fri, 31 Aug 2007, John Luciani wrote:

  On 8/30/07, Aditya Mahajan [EMAIL PROTECTED] wrote:
 
  Did you try:
 
  http://wiki.contextgarden.net/CWEB
 
  (the page says cweb is broken, but you got partial success, so worth a
  try)
 
  Using Luigi's suggestion I did the following ---
 
  * In the tex file created by cweave replace the line
 
 \input cwebmac
 
   with
 
 \input m-cweb
 \activateCWEB
 \starttext
 
  * At the end of the tex file add the line
 
 \stoptext
 
  * run the command
 
  texexec --pdf TEXFILENAME
 
 
  The resultant pdf file is missing hyperlinks and the indentation is off.

 A guess for hyperlinks. Try \setupinteraction[state=start].

That worked!!! Thanks.

I will have to browse through the documentation for the various options.

(* jcl *)

-- 
http://www.luciani.org
___
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] Using context with cweave

2007-08-31 Thread John Luciani
On 8/31/07, Hans Hagen [EMAIL PROTECTED] wrote:
 Aditya Mahajan wrote:
  On Fri, 31 Aug 2007, John Luciani wrote:
  That worked!!! Thanks.
 
  Can you update the wiki page on how to get a working cweb file using
  ConTeXt?

 i didn't join this discussion but the complication of web code is that
 it defines all those one char commands and such

 it would be nice to have a variant of cweb that spits out more verbose
 commands, so that we don't need to push/pop definitions and get rid of
 interference

That would be extremely useful.

I am using cweb to document code for embedded systems. I like to use
single character macros to typeset component reference designators and
electrical parameters. I use macro calls like:

For components --- \R{1}, \C{23}, \L{43}
For voltages and currents --- \V{1}, \I{1} etc.
For dimensions ---  \F (farads), \S (seconds), \H (henries), etc.

Since your here  Is there any chance of getting the cweb file that was
used to generate cweb-scr.pdf? I like the format and was hoping to do
something similar with my programs.

Thanks.

(* jcl *)

-- 
http://www.luciani.org
___
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] Using context with cweave

2007-08-31 Thread John Luciani
On 8/31/07, Hans Hagen [EMAIL PROTECTED] wrote:
 John Luciani wrote:

 
  Since your here  Is there any chance of getting the cweb file that was
  used to generate cweb-scr.pdf? I like the format and was hoping to do
  something similar with my programs.

 remind me in a few weeks .. to busy with other things now (new xml
 mechanisms)

Sounds great!

Thanks.

(* jcl *)

-- 
http://www.luciani.org
___
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] Using context with cweave

2007-08-28 Thread John Luciani
On 8/27/07, luigi scarso [EMAIL PROTECTED] wrote:
 On 8/28/07, John Luciani [EMAIL PROTECTED] wrote:
  I created the file hello.w containing the following lines ---
 
  @** Hello.
 
  @c
  @header files@@;
 
  int main(void) {
printf(Hello World.\n);
return(0);
  }
 
  @ Header files.
  @header files@+=
  #include stdio.h
 
  I run the commands
  cweave hello.w
  texexec --pdf --modules m-cweb hello.tex
 
  The text that is output in hello.pdf are cweb macros ---
 
  \input cwebmac
  \N{0}{1}Hello.
  \Y\B\X2:header files\X\7
 For printed version

 $ texexec --pdf test.tex
 %% hello.tex
 \input m-cweb
 \activateCWEB
 \starttext
 \N{0}{1}Hello.

 \Y\B\X2:header files\X\7
 \{int} \\{main}(\{void})\1\1\2\2\6
 ${}\{{}$\1\6
 \\{printf}(\.{Hello\ World.\\n});\6
 \{return} (\T{0});\6
 \4${}\}{}$\2\par
 \fi

 \M{2}Header files.
 \Y\B\4\X2:header files\X${}\E{}$\6
 \8\#\{include} \.{stdio.h}\par

 \U1.\fi


 \inx
 \fin
 \con
 \stoptext

Thanks. The printed version now compiles!

I noticed the following differences from the pdftex version ---
  * The first line is not indented
  * The section hyperlinks are not created
  * The @d sections and the @ @ declaration sections begin in the
 left margin.


 for screen 

???

Thanks for your help.

(* jcl *)

-- 
http://www.luciani.org
___
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] Using context with cweave

2007-08-28 Thread John Luciani
On 8/28/07, luigi scarso [EMAIL PROTECTED] wrote:
   for screen 
 
  ???
 This is a new topicct for me; to compile, I have had a quick look
 inside m-cweb but
 nothing more.
 Actually I have no idea if one can have a screen version with some macro
 like \activateCWEB, I'm sorry.

I appreciate your help. Thanks.

The screen version example that I like is at
http://www.pragma-ade.com/itdemos/internal/cweb/cweb-scr.pdf

(* jcl *)

-- 
http://www.luciani.org
___
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] Using context with cweave

2007-08-28 Thread John Luciani
On 8/28/07, luigi scarso [EMAIL PROTECTED] wrote:
  The screen version example that I like is at
  http://www.pragma-ade.com/itdemos/internal/cweb/cweb-scr.pdf
 Yes, I like it too.
 I'm really interesting about WEB, so I would like to produce something
 analogous for WEB too.
 Do youn know leo ?
 http://webpages.charter.net/edreamleo/front.html

I have not used leo. For editing tasks I default to my old friend --- EMACS ;-)
Whether editing C for an MSP430 or Coldfire chip, Perl, TeX (and friends) or SQL
I use the same tool.

For cweb editing I have been using multiple-major-mode (mmm) so that
TeX and cweb are colorized appropriately.

(* jcl *)




-- 
http://www.luciani.org
___
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] cweb-scr.pdf and m-cweb

2007-08-27 Thread John Luciani
On 8/25/07, luigi scarso [EMAIL PROTECTED] wrote:
 On 8/25/07, John Luciani [EMAIL PROTECTED] wrote:
  Are the source files that were used to create cweb-scr.pdf on the
  http://www.pragma-ade.com site available for download?
 
  I am trying to get ConTeXt working on a cweaved TeX file and
  am getting an Undefined control sequence error. A working
  example (especially the source for the cweb-scr files) would
  be extremely useful.
 

 Maybe this can help you
 http://wiki.contextgarden.net/User:Luigi.scarso#Modules::documentation

Thanks for the information.

Using texexec --pdf --modules m-cweb my cweaved file compiles without
error but the output is not correct. I will post a simple example with
a different subject line.

I was hoping to get the cweave file for cweb-scr.pdf. I like way the
screen is setup
and was hoping to use some of the macros in my programs.

(* jcl *)

-- 
http://www.luciani.org
___
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
___


[NTG-context] Using context with cweave

2007-08-27 Thread John Luciani
I created the file hello.w containing the following lines ---

@** Hello.

@c
@header files@@;

int main(void) {
  printf(Hello World.\n);
  return(0);
}

@ Header files.
@header files@+=
#include stdio.h

I run the commands
cweave hello.w
texexec --pdf --modules m-cweb hello.tex

The text that is output in hello.pdf are cweb macros ---

\input cwebmac
\N{0}{1}Hello.
\Y\B\X2:header files\X\7
.
.
.


If I run pdftex hello.tex a correct pdf file is output.

Are there other modules that I need to load to use ConTeXt with a cweave
file? Is there a documentation file that I missed? I am using he ConTeXt that
came with texlive-2007.

If there is a cweave file that produces a nice layout like
cweb-scr.pdf available
for download please let me know.

Thanks.

(* jcl *)

-- 
http://www.luciani.org
___
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
___


[NTG-context] cweb-scr.pdf

2007-08-25 Thread John Luciani
Are the source files that were used to create cweb-scr.pdf on the
http://www.pragma-ade.com site available for download?

I am trying to get ConTeXt working on a cweaved TeX file and
am getting an Undefined control sequence error. A working
example (especially the source for the cweb-scr files) would
be extremely useful.

Thanks.

(* jcl *)

-- 
http://www.luciani.org
___
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
___


[NTG-context] cweb-scr.pdf and m-cweb

2007-08-25 Thread John Luciani
Are the source files that were used to create cweb-scr.pdf on the
http://www.pragma-ade.com site available for download?

I am trying to get ConTeXt working on a cweaved TeX file and
am getting an Undefined control sequence error. A working
example (especially the source for the cweb-scr files) would
be extremely useful.

Thanks.

(* jcl *)
-- 
http://www.luciani.org
___
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
___