Re: [NTG-context] Something usefull?

2009-01-25 Thread Wolfgang Schuster


tableHoursToDo.tex
Description: Binary data


Am 24.01.2009 um 13:46 schrieb Cecil Westerhof:


I made something usefull and share it with you. Maybe it is usefull
for other people also.


[...]


I also have some questions. ;-}
At the moment there are the same number of the timesheet and the lined
paper printed. That is not always what you want I think. The one time
you need more timesheets, the other time you need more lined paper. Is
there a way to ask for the number of timesheets, print those, and let
the rest be printed as lined? (I can offcourse also switch to two
different documents.)
At the moment the lined paper starts counting from 9. Is there a way
to reset it to 1?


Take a look at the attached file.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Customizing chapter heads

2009-01-25 Thread Wolfgang Schuster


Am 25.01.2009 um 00:49 schrieb Alfredo Catalina:

I am new to ConTeXt. I am trying to define a customized head for  
chapters but I am finding some problems. The sentences below are  
based on the chapter Text Elements which may be found in the ConTeXt  
manual.


Prior to setting up the title, a new Head command is defined by \def 
\HeadTitle#1#2%. It takes two arguments, the chapter number and the  
chapter title. The Head so defined will show the word C h a p t e  
r in capitals, then the chapter number at 80pt, then a horizontal  
line, and finally the title.


The definition works quite well except that both, the chapter number  
and the chapter title, are not show at the specified font size.


\definebodyfont[10pt,11pt,12pt][rm][tff=Regular at 80pt]
\definebodyfont[10pt,11pt,12pt][rm][tfe=Regular at 42pt]


\definebodyfont[10pt,11pt,12pt][ss][tfe=Sansat 42pt]


\def\HeadTitle#1#2%
{\hbox to \hsize \bgroup
{\hfill %
\setupframed[height=7cm,offset=.5em,frame=off]
 \framed[width=9cm,align=left]
{
{\tfc \sc {C~h~a~p~t~e~r}} ~~ {\tff #1}\\
\hairline
{\ss \tfe #2}


{\tfc \sc {C~h~a~p~t~e~r}} ~~ {#1}\\
\hairline
{#2}

}
}
\egroup
}

\starttext
\setuphead[chapter] [command=\HeadTitle]


\setuphead[chapter] [command=\HeadTitle,numberstyle=\tff,textstyle=\ss 
\tfe]



\chapter{An Insight\\Into Fred's Design}
\stoptext


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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Centering a defined text frame

2009-01-25 Thread Wolfgang Schuster


Am 24.01.2009 um 15:30 schrieb Bart C. Wise:

I'm trying to have a centered text frame.  There are two examples in  
the code

below.
1) This one works.  It uses a text frame that is in line in the code.
2) This one does not work! It's using a defined text frame and  
flushes the text

frame to the left.  How do I fix this?


\defineframedtext[CenteredText][width=fit,location=middle]

\starttext

\startCenteredText
  \startlines
  The quick brown fox jumps over the lazy dog.
  \stoplines
\stopCenteredText

\stoptext

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Something usefull?

2009-01-25 Thread Alan BRASLAU
 Take a look at the attached file.

missing:
\setupcolors[state=start]
___
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] New wiki

2009-01-25 Thread Patrick Gundlach
Hi Bart,

 Is the google search going to be moved to the new wiki?  I found it to be an 
 invaluable tool.

I will integrate this asap. I wonder why it isn't there anymore.

Patrick
-- 
ConTeXt wiki and more: 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Something usefull?

2009-01-25 Thread Wolfgang Schuster


Am 25.01.2009 um 13:14 schrieb Alan BRASLAU:


 Take a look at the attached file.
missing:
\setupcolors[state=start]


This wasn't in the original file and it's possible Cecil enables
color in his default module.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] backgrounds: help needed

2009-01-25 Thread Alan BRASLAU
I am still a bit confused about textbackgrounds.
So I created a wiki page http://wiki.contextgarden.net/TextBackground
(in order to try to confuse others!)

I have two questions:
1. The live conTeXt of the wiki does not show the background,
whereas the code works using the context minimals.
Why?

2. Setting background=screen as opposed to 
background=color,backgroundcolor=middlegray
doesn't work (live  minimals). Why?

Can anyone help here? Beyond details.pdf, I have not found many explanations.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Preprocessing ConTeXt file to convert from UTF-8 to ASCII ABNT

2009-01-25 Thread João Macaíba

Hi.

I've used LaTeX for a while and found articles about ConTeXt yesterday  
and decided give it a try since its different approach.


Reading the docs I've found it only works with ASCII.

So I've tried to do the convertion UTF-8 = ASCII using iconv, without  
success: it failed to convert the first 'accented character' it  
encounters.


I'm searching to solve this problem, but would like to know if there's  
any doc on 'non-ascii' editing of ConTeXt files.


If there are other people writing in portuguese, like me, and  
specially brazilians, is there a way to implement ABNT standard ?


Any docs on theses subjects: 'non-ascii' input, 'portuguese/brazilian'  
and 'ABNT', would be appreciated :)


I use 'vim' and 'textmate' as my primary editors for *TeX*, and my  
platform is MacOSX (Leopard).



Thanks in advance.
Regards.
--
João Macaíba joao.maca...@gmail.com



___
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] Preprocessing ConTeXt file to convert from UTF-8 to ASCII ABNT

2009-01-25 Thread Wolfgang Schuster


Am 25.01.2009 um 19:05 schrieb João Macaíba:

I've used LaTeX for a while and found articles about ConTeXt  
yesterday and decided give it a try since its different approach.


Reading the docs I've found it only works with ASCII.


The authors of the manual meant ConTeXt use plain text files
as input, the encoding of the files is not limited to ASCII
chars, you could use UTF-8 without problems.

If there are other people writing in portuguese, like me, and  
specially brazilians, is there a way to implement ABNT standard ?


What is ABNT?

I use 'vim' and 'textmate' as my primary editors for *TeX*, and my  
platform is MacOSX (Leopard).


For file encoding take a look at this page:

http://wiki.contextgarden.net/Encodings_and_Regimes


To tell ConTeXt your document is encoded in UTF-8, write

\enableregime[utf]
% more settings
\starttext
your text
\stoptext

in your document.


The ConTeXt wiki has also page for VIM and TextMate:

- http://wiki.contextgarden.net/Vim
- http://wiki.contextgarden.net/TextMate


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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] backgrounds: help needed

2009-01-25 Thread Wolfgang Schuster


Am 25.01.2009 um 19:23 schrieb Alan BRASLAU:


I am still a bit confused about textbackgrounds.
So I created a wiki page http://wiki.contextgarden.net/TextBackground
(in order to try to confuse others!)
I have two questions:

2. Setting background=screen as opposed to  
background=color,backgroundcolor=middlegray

doesn't work (live  minimals). Why?
Can anyone help here? Beyond details.pdf, I have not found many  
explanations.


Not supported in textbackground, it works only for framed and  
framedtext.


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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Preprocessing ConTeXt file to convert from UTF-8 to ASCII ABNT

2009-01-25 Thread Hans Hagen

João Macaíba wrote:

Hi.

I've used LaTeX for a while and found articles about ConTeXt yesterday 
and decided give it a try since its different approach.


Reading the docs I've found it only works with ASCII.


huh?

there are many input encodings supported, utf being one of them

\enableregime[utf]

should work for mkii and mkiv is utf aware by default

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Preprocessing ConTeXt file to convert from UTF-8 to ASCII ABNT

2009-01-25 Thread João Macaíba


Hi, Wolfgang.

On Jan 25, 2009, at 04:08, Wolfgang Schuster wrote:



Am 25.01.2009 um 19:05 schrieb João Macaíba:

I've used LaTeX for a while and found articles about ConTeXt  
yesterday and decided give it a try since its different approach.


Reading the docs I've found it only works with ASCII.


The authors of the manual meant ConTeXt use plain text files
as input, the encoding of the files is not limited to ASCII
chars, you could use UTF-8 without problems.


You're right. I misunderstood that.



If there are other people writing in portuguese, like me, and  
specially brazilians, is there a way to implement ABNT standard ?


What is ABNT?



ABNT == Associação Brasileira de Normas Técnicas == Brazilian  
Association for Technical Standards


ABNT has a standard layout for technical writings.


I use 'vim' and 'textmate' as my primary editors for *TeX*, and my  
platform is MacOSX (Leopard).


For file encoding take a look at this page:

http://wiki.contextgarden.net/Encodings_and_Regimes


To tell ConTeXt your document is encoded in UTF-8, write

\enableregime[utf]
% more settings
\starttext
your text
\stoptext

in your document.


The ConTeXt wiki has also page for VIM and TextMate:

- http://wiki.contextgarden.net/Vim
- http://wiki.contextgarden.net/TextMate



Great !  :)



Wolfgang



Thanks for the help and time, 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___



Regards.
--
João Macaíba joao.maca...@gmail.com



___
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] endnotes grouped by chapter in a separate chapter

2009-01-25 Thread Jesse Alama
Just a re-ask (I've not been able to figure this out yet) for the
ConTeXt experts.

Jesse Alama al...@stanford.edu writes:

 I'd like to have endnotes placed in an appendix.  I would like that
 appendix not to be one large list of notes; instead, I would like the
 notes to be grouped into sections within the appendix.  Currently, I'm
 aware of 

   \setupnotes[endnote][way=bychapter]

 and

   \placenotes[endnote]

 This setup produces a list of notes labeled in ascending numerical
 order, with numbering reset by chapters.

  Appendix A: Notes

  1 Note from chapter 1.
  2 Second note from chapter 1.
  3 Third note from chaper 1.
  1 First note from chapter 2.
  2 Second note from chapter 2.
  1 First note from chapter 3
  ...

 I'd like to have the endnotes grouped by chapter and displayed something
 like this

   Appendix A: Notes

   Notes from Chapter 1: My Great Chapter

   1 Note from chapter 1.
   2 Second note from chapter 1.
   3 Third note from chaper 1.

   Notes from Chapter 2: My Second Great Chapter  

   1 First note from chapter 2.
   2 Second note from chapter 2.

   Notes from Chapter 3: ...

   ...

 I've looked through the mailing list and the wiki, but I've not been
 able to find out how to accomplish what I'm after.  Any ideas?

 Thanks,

 Jesse

-- 
Jesse Alama (al...@stanford.edu)
___
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
___