Re: [NTG-context] What should I learn?

2008-10-21 Thread luigi scarso

 I also like to write programs (I use a really
 nice language named Haskell). Do you thing I
 could get what I want if I write or translate
 typography functions to that language, and then
 write programs to generate documents?

You will reinvent the wheel (TeX)
-- 
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Feature Request: \startitemize[text]

2008-10-21 Thread Wolfgang Schuster
On Fri, Oct 17, 2008 at 7:01 PM, Aditya Mahajan [EMAIL PROTECTED] wrote:
 Hi Wolfgang,

 On Fri, 17 Oct 2008, Wolfgang Schuster wrote:

 On Sun, Jan 13, 2008 at 11:41 PM, Aditya Mahajan [EMAIL PROTECTED] wrote:
 Hi Hans,

 I have always found the space at the beginning of each item in
 \startitemize[text] to be too large. Currently, this is hard coded to be
 \emwidth plus \intertwordstretch minus \interwordshrink (line 1132 of
 core-itm.tex with the comment new per 2006/10/20). I always end of
 copying the definition of complexdoitemgroupitem to my private modules and
 changing the emwidth in the definition to 0.5\emwidth. Can you please keep
 this key to be configurable with a key (textinbetween)?

 BTW, any particular reason not to simply say
 \removeunwantedspaces\space\ignorespaces instead of
 \removeunwantedspaces\hskip\emwidth\!!plus\interwordstretch\!!minus\interwordshrink\relax
 \stopitemgroup uses just the first variant.

 Thanks,
 Aditya

 Hi Aditya,

 what do you about the following solution, the space between each
 item is configurable with the space key, the fourth parameter
 \dostartitemgroup gobbles we get from \startitemize if we use two
 parameters.

 Thank you for looking into this old request. This does exactly what I
 want. I just have one comment regarding the default. Maybe, for
 consistency, the space key should behave as in \setupinterlinespace

 space=none|small|medium|big|dimension

\processaction
  [\getitemparameter\currentitemlevel\c!space]
  [   \v!none=\let\textitemdistance\zeropoint,
   
\s!unknown=\assignvalue\commalistelement\textitemdistance{.5\interwordspace\!!plus.5\emwidth}{\interwordspace\!!plus\emwidth}{\emwidth\!!plus\interwordstretch\!!minus\interwordshrink}]%
\removeunwantedspaces\hskip\textitemdistance\relax

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] Problem with itemize with arranging pages

2008-10-21 Thread Hans Hagen
Aditya Mahajan wrote:
 On Tue, 21 Oct 2008, Marcin Borkowski wrote:
 
 Hi all,

 itemize won't work with page arrangement.  Is this connected with this:
 http://wiki.contextgarden.net/Imposition#Caveat:_common_troubles ?
 (In other words: feature, not bug; and resolvable using
 texexec --arrange?)

 (I just want to be sure.)
 
 Itemize uses two pass data (so that \startitemize[reverse] 
 can work). Therefore itemize not working with page arrangements seems 
 reasonable. (I haven't checked yet).

it will work but the last pass (arranging) has to be done without tui 
generation (try to run texexec with --arrange  which will do the extra 
pass)

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] Changing margins mid-page?

2008-10-21 Thread Wolfgang Schuster
On Tue, Oct 14, 2008 at 10:28 PM, Alexandros Frantzis
[EMAIL PROTECTED] wrote:
 On Tue, Oct 14, 2008 at 08:50:20AM +0200, Wolfgang Schuster wrote:
 On Tue, Oct 14, 2008 at 7:31 AM, Rory Molinari
 [EMAIL PROTECTED] wrote:
  Hi,
 
  I'm sorry that the subject isn't clearer.
 
  I'm learning ConTeXt at the moment by trying to typeset a copy of my
  resume.
 
  I'd like the format to be something like this (view in fixed width):
 
 
 
  Address line 1 phone number
  Address line 2 email
  address
 
  MY NAME IN LARGE SIZE
  ---
 
  EDUCATION   Details
  of Degree 1
 
  Details
  of Degree 2
 
 
 
  WORK EXPERIENCE Details
  of
  most
  recent
  job
  many lines here
 
 
  Details
  of
  another
  job
 
 
  Yet another job
 
 
 
  ANOTHER SECTION More information
  appropriate for this
  section
 
 
 
  My first thought was to have EDUCATION, WORK EXPERIENCE, etc as
  unnumbered sections, and to arrange that section titles would appear
  in a (very large) left margin.  But then I couldn't work out how to
  have normal margins for the top of the page containing my contact
  information and name.  Margins appear to apply to the whole document.
 

 [snip]

 
  What is the right way to typeset this?

 Use descriptions, it's possible to set a left margin and break the text
 across pages.


 Hello,

 I, too, am trying to create a similar CV layout. As I have already
 reported in other emails to the list, I have been having trouble when
 the first thing after the title is an enumeration. More specifically,
 the first item of the enumeration is not aligned with the title in the
 margin (it is always placed a bit below). Unfortunately, this still
 happens when using descriptions.

 A way around this is to use something like \setupitemize[before=\vskip -20pt].
 But this is specific to the font sizes I am using and a bit ugly. I have tried
 suppressing the whitespace around itemizations (nowhite, joinedup) and/or 
 using
 stuff like \blank[disable] and \blank[back] but to no avail.

 Does anyone know of a better, more generic way of doing this or even if
 it is possible (judging from the lack of answers to my previous posts I
 am guessing this is not something trivial)?

 Thanks,
 Alexandros

 --- START CODE 
 \definedescription[desc][location=inmargin,width=broad]

 \starttext

 \startdesc{Description1}
 This is the text of desc1.
 This is the text of desc1.
 This is the text of desc1.
 This is the text of desc1.
 This is the text of desc1.
 This is the text of desc1.
 This is the text of desc1.
 \stopdesc

 \startdesc{Description2}

 \startitemize[packed,nowhite,joinedup]

\settrue\concatnextitem

 \item First item (should be right next to title)
 \item Second item
 \item Third item
 \stopitemize

 \stopdesc

 \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] Problem with itemize with arranging pages

2008-10-21 Thread Mari Voipio
Marcin Borkowski wrote:
 itemize won't work with page arrangement.  Is this connected with this:
 http://wiki.contextgarden.net/Imposition#Caveat:_common_troubles ?
 (In other words: feature, not bug; and resolvable using
 texexec --arrange?)

Quite likely - I must say that I didn't notice, but that's probably 
because I found the problem on the first page when my Table of Contents 
didn't turn up; never got as far as to the first itemize...

I use WinConteXt with SciTe and at least there *everything* falls in 
place in my A5 booklet layout when I remember to command Process and 
Arrange instead of just Process. AFAIK, that command is an equivalent 
of texexec --arrange; at least it does the trick...
(I'm still mainly running ConteXt mkII, but I tested this in WinConteXt 
mkIV a while back and it worked.)


Mari
(Motto: Never upgrade software just before deadline unless you really 
have to.)
___
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] mkiv: Bug in Right to Left numerals?

2008-10-21 Thread Otared Kavian

Hi Hans, Taco, Idriss and the mkiv team,

Since I have been unable to use mkiv until very recently I am not  
aware whether the following bug has been addressed or not (Luigi  
Scarso taught me how to install and use mkiv on Mac OS, last Sunday…).


Below is a minimal file which shows that the numerals in Right-to-Left  
text are reversed, while they shouldn't.

XeTeX and XeConTeXt behave correctly in this respect.

If the bug is known, pardon me for the noise…
Best regards: OK

%% begin file bug-RL-numerals.tex
\starttext

\definefontfeature
[testPersian]
[analyze=yes,
mode=node,
language=dflt,
script=arab,
aalt=yes,
init=yes,
medi=yes,
fina=yes,
isol=yes,
liga=yes,
mset=yes]

\font\FaarsiA=arabtype*testPersian at 36pt

\startbuffer[faarsi]
این متن در سال ۲۰۰۸ مسیحی نوشته شده است.

\stopbuffer
\pardir TLT
\textdir TLT
This file has been typeset on \currentdate{} at \currenttime, mkiv,  
ConTeXt version \contextversion,

% LuaTeX version \luatexversion,
LuaTeX revision \luatexrevision,
(LuaTeX date stamp \luatexdatestamp).
\blank[6*big]
The number input as « 2008 » in Persian is written in the output as  
« 8002 » in the following Persian text:

\blank[6*big]
\pardir TRT
\textdir TRT

\FaarsiA
\getbuffer[faarsi]
\blank[6*big]

\stoptext
%% end file bug-RL-numerals.tex



bug-RL-numerals.pdf
Description: Adobe PDF document


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

2008-10-21 Thread Wolfgang Schuster
On Fri, Oct 17, 2008 at 10:41 AM, Hans Hagen [EMAIL PROTECTED] wrote:
 Hi,

 at the context meeting it was concluded that there is no reason for mkiv
 to be fully downward compatible.

 one thing that i consider removing is the 'background=screen' option
 from \framed. After all, screens internally already are just grayscales
 and the old 'method' mechanism is no longer valid given postscript and
 pdf technologies

 in practice it means that those who use it (in mkiv) will have to use
 colors (grayscales) instead (the last time that i used screens myself is
  sometime last century)

Can you now add left|right|top|bottomoffset to \framed.

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] mkiv

2008-10-21 Thread Hans Hagen
Wolfgang Schuster wrote:
 On Fri, Oct 17, 2008 at 10:41 AM, Hans Hagen [EMAIL PROTECTED] wrote:
 Hi,

 at the context meeting it was concluded that there is no reason for mkiv
 to be fully downward compatible.

 one thing that i consider removing is the 'background=screen' option
 from \framed. After all, screens internally already are just grayscales
 and the old 'method' mechanism is no longer valid given postscript and
 pdf technologies

 in practice it means that those who use it (in mkiv) will have to use
 colors (grayscales) instead (the last time that i used screens myself is
  sometime last century)
 
 Can you now add left|right|top|bottomoffset to \framed.

maybe when core-rul gets two versions, mkii and mkiv (and even then i 
need to check for interferences); the whole structure system comes first 
(sectioning, lists, references, numbering, blocks etc)

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


[NTG-context] What's the difference between \dodoubleargument and \dodoubleempty?

2008-10-21 Thread Ruini Xue
It's difficult to understand them from the code. 

-- ruini 

___
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] What's the difference between \dodoubleargument and \dodoubleempty?

2008-10-21 Thread Hans Hagen
Ruini Xue wrote:
 It's difficult to understand them from the code. 

the first one issues a warning when no argument is given


-
   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] What's the difference between \dodoub leargument and \dodoubleempty?

2008-10-21 Thread Ruini Xue
Hans Hagen pragma at wxs.nl writes:

 
 Ruini Xue wrote:
  It's difficult to understand them from the code. 
 
 the first one issues a warning when no argument is given

You mean both of them ask the following \command to take two mandatory 
arguments? I try this example:

==
\def\test
  {\dodoubleargument\dotest} % use \dodoubleempty

\def\dotest[#1][#2]
 {\iffirstargument
   First arg: #1
  \fi
  \ifsecondargument
   Second arg: #2
  \fi}

\test[ok][ok] % 1. this is ok

\test [ok] [] % 2. warning?

\test [wrong] % 3. Error: lack one arg
==

both 1 and 2 can print First arg and Second arg, so I am confused what's 
no argument is given

-- ruini

___
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] What's the difference between \dodoubleargument and \dodoubleempty?

2008-10-21 Thread Wolfgang Schuster
On Tue, Oct 21, 2008 at 2:03 PM, Ruini Xue [EMAIL PROTECTED] wrote:
 Hans Hagen pragma at wxs.nl writes:


 Ruini Xue wrote:
  It's difficult to understand them from the code.

 the first one issues a warning when no argument is given

 You mean both of them ask the following \command to take two mandatory
 arguments? I try this example:

 ==
 \def\test
  {\dodoubleargument\dotest} % use \dodoubleempty

 \def\dotest[#1][#2]

You need a comment sign at the end of the line.

\def\dotest[#1][#2]%

  {\iffirstargument
   First arg: #1
  \fi
  \ifsecondargument
   Second arg: #2
  \fi}

 \test[ok][ok] % 1. this is ok

 \test [ok] [] % 2. warning?

This is just a empty argument.

 \test [wrong] % 3. Error: lack one arg
 ==

 both 1 and 2 can print First arg and Second arg, so I am confused what's
 no argument is given

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] What's the difference between \dodoub leargument and \dodoubleempty?

2008-10-21 Thread Ruini Xue
Wolfgang Schuster schuster.wolfgang at googlemail.com writes:
 
 You need a comment sign at the end of the line.
 
 \def\dotest[#1][#2]%
 

All my faults come from the last comment sign! :)

Thanks

-- ruini

___
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] What's the difference between \dodoubleargument and \dodoubleempty?

2008-10-21 Thread Hans Hagen
Ruini Xue wrote:
 Hans Hagen pragma at wxs.nl writes:
 
 Ruini Xue wrote:
 It's difficult to understand them from the code. 
 the first one issues a warning when no argument is given
 
 You mean both of them ask the following \command to take two mandatory 
 arguments? I try this example:

we use optimized variants for #args =3 but the error messags still 
shows up for

\doquadrupleargument\relax

\doquadrupleargument\relax[1]

\doquadrupleargument\relax[1][2]


\doquadrupleempty\relax

\doquadrupleempty\relax[1]

\doquadrupleempty\relax[1][2]


-
   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] mkiv: Bug in Right to Left numerals?

2008-10-21 Thread Khaled Hosny
This isn't actually a bug, \textdir TRT will reverse all text, try
setting \setupdirection[bidi=global] to enable the experimental
auto-bidi support.

On Mon, Oct 20, 2008 at 11:02 PM, Otared Kavian [EMAIL PROTECTED] wrote:
 Hi Hans, Taco, Idriss and the mkiv team,

 Since I have been unable to use mkiv until very recently I am not aware
 whether the following bug has been addressed or not (Luigi Scarso taught me
 how to install and use mkiv on Mac OS, last Sunday…).

 Below is a minimal file which shows that the numerals in Right-to-Left text
 are reversed, while they shouldn't.
 XeTeX and XeConTeXt behave correctly in this respect.

 If the bug is known, pardon me for the noise…
 Best regards: OK

 %% begin file bug-RL-numerals.tex
 \starttext

 \definefontfeature
 [testPersian]
 [analyze=yes,
 mode=node,
 language=dflt,
 script=arab,
 aalt=yes,
 init=yes,
 medi=yes,
 fina=yes,
 isol=yes,
 liga=yes,
 mset=yes]

 \font\FaarsiA=arabtype*testPersian at 36pt

 \startbuffer[faarsi]
 این متن در سال ۲۰۰۸ مسیحی نوشته شده است.

 \stopbuffer
 \pardir TLT
 \textdir TLT
 This file has been typeset on \currentdate{} at \currenttime, mkiv, ConTeXt
 version \contextversion,
 % LuaTeX version \luatexversion,
 LuaTeX revision \luatexrevision,
 (LuaTeX date stamp \luatexdatestamp).
 \blank[6*big]
 The number input as « 2008 » in Persian is written in the output as « 8002 »
 in the following Persian text:
 \blank[6*big]
 \pardir TRT
 \textdir TRT

 \FaarsiA
 \getbuffer[faarsi]
 \blank[6*big]

 \stoptext
 %% end file bug-RL-numerals.tex




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





-- 
  Khaled
___
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] Persian interface

2008-10-21 Thread Mehdi Omidali
Hi everyone,
I want to be able to use persian interface in context. So I tried to
create two files cont-pe.xml and cont-pe.tex for this purpose. Now my
questions are:
1- Am I supposed to just create these two files and then run context
--make cont-pe.
2- Can context accept these two files in UTF-8 encoding.
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
___


Re: [NTG-context] What should I learn?

2008-10-21 Thread Mauricio
Thanks. But typography books are not the problem. I've seen many,
many, many of them, and each one makes me unhappy because I have
nowhere to try what they say. My dad is very good at typesetting,
but he can draw very well (everything he writes is manuscript, he
don't drust a computer to do anything after a few bad
experiences). I can't draw, so I need software that gets what I
describe and makes it into PDF.

The problem is: understanding everything about PDF file format,
reading font files, knowing about all available implementations of
typesetting algorithms is far beyond my habilities.

Original Tex is not an option, since PDF, today's font formats
(and Unicode) and many algorithms didn't exist when Knuth decided
no features would be added anymore. Maybe I should hack the source
code of pdftex or luatex?  I can try that, but that's going to be
hard work and I would like to know how far I can get before
starting, or if there are easier options (like libraries to write
PDF and read OpenType and books or example code of typesetting
algorithms).

Thanks for your tips,
Maurício

  Hi Maurício,
 
  (...)
 
  Others will have different suggestions but you could start out
  reading the TeXbook by Knuth
 
  http://www-cs-faculty.stanford.edu/~uno/abcde.html
 
  and any basic book about typography.
 
  Enjoy the trip!
 
  Frans
 

  Hi,
 
  I would like to ask you some advice on what should I
  learn. (...)
 
  Context is where I get the best results, but what I really
  would like is something that allows me to do things in my own
  way, not something that's always great for reasons I don't
  understand. (...)
 
  Do you think I could get what I want if I write or translate
  typography functions to that language, and then write programs
  to generate documents? Where could I find or where could I
  learn about such functions?

___
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] Persian interface

2008-10-21 Thread Hans Hagen
Mehdi Omidali wrote:
 Hi everyone,
 I want to be able to use persian interface in context. So I tried to
 create two files cont-pe.xml and cont-pe.tex for this purpose. Now my
 questions are:
 1- Am I supposed to just create these two files and then run context
 --make cont-pe.
 2- Can context accept these two files in UTF-8 encoding.

you need to adapt mult-con and mult-com but at the same time we need to 
adapt mult-sys, so as an experiment if things work out ok, just play a 
bit with mult-con/com e.g. replace a few harmless commands in the 
english interface and see if things work ok for persian

footnote: voetnoot footnote
   fussnote poznamkapodcarou
   notapdp  notasubsol
   notepdp


eventually persian can become the 8th entry

footnote: voetnoot somethingpersian
   fussnote poznamkapodcarou
   notapdp  notasubsol
   notepdp


\somethingpersian then should give you a footnote

(we never really tested it with utf8 input so far)

(when i have time i will (for luatex) make this mechanism different i.e. 
just lua tables from which i then can generate the con/com files)



-
   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] What should I learn?

2008-10-21 Thread Hans Hagen
Mauricio wrote:

 Original Tex is not an option, since PDF, today's font formats
 (and Unicode) and many algorithms didn't exist when Knuth decided
 no features would be added anymore. Maybe I should hack the source
 code of pdftex or luatex?  I can try that, but that's going to be
 hard work and I would like to know how far I can get before
 starting, or if there are easier options (like libraries to write
 PDF and read OpenType and books or example code of typesetting
 algorithms).

you want to writ ea full blown macro package with advanced font support 
etc etc? well, it will take you a couple of man-years

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
___


[NTG-context] \setuphead and horizontal rules

2008-10-21 Thread Andrew Ho
Hi,

Let me prefix this first my saying that I'm new to ConTeXT, so 
apologies if there is an obvious solution to what I'm trying to do or 
I'm approaching it in the wrong way.  I'm trying to style chapter 
headings so that they are right justified, with a line before them *on 
the same line*.  In other words, the page should look like this, where 
vertical bars represent the edges of the text width:

|--- 1.1 Some chapter --|

Can anyone give me pointers on how to do this?  I've trawled the wiki 
and the internet at large, but an inability to precisely word this 
leaves it difficult to find any previous example of this.

Many thanks,
Andrew
___
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] mkiv: Bug in Right to Left numerals?

2008-10-21 Thread Otared Kavian
On 21 oct. 08, at 15:13, Khaled Hosny wrote:

 This isn't actually a bug, \textdir TRT will reverse all text, try
 setting \setupdirection[bidi=global] to enable the experimental
 auto-bidi support.


Thanks Khaled for your attention, but what I get is:

! Undefined control sequence.
l.21 \setupdirection
 [bidi=global]
?
Process aborted

Is this feature so experimental that it is not yet included in the  
latest beta?

Best regards: OK



 On Mon, Oct 20, 2008 at 11:02 PM, Otared Kavian [EMAIL PROTECTED]  
 wrote:
 Hi Hans, Taco, Idriss and the mkiv team,

 Since I have been unable to use mkiv until very recently I am not  
 aware
 whether the following bug has been addressed or not (Luigi Scarso  
 taught me
 how to install and use mkiv on Mac OS, last Sunday…).

 Below is a minimal file which shows that the numerals in Right-to- 
 Left text
 are reversed, while they shouldn't.
 XeTeX and XeConTeXt behave correctly in this respect.

 If the bug is known, pardon me for the noise…
 Best regards: OK

 %% begin file bug-RL-numerals.tex
 \starttext

 \definefontfeature
 [testPersian]
 [analyze=yes,
 mode=node,
 language=dflt,
 script=arab,
 aalt=yes,
 init=yes,
 medi=yes,
 fina=yes,
 isol=yes,
 liga=yes,
 mset=yes]

 \font\FaarsiA=arabtype*testPersian at 36pt

 \startbuffer[faarsi]
 این متن در سال ۲۰۰۸ مسیحی نوشته شده  
 است.

 \stopbuffer
 \pardir TLT
 \textdir TLT
 This file has been typeset on \currentdate{} at \currenttime, mkiv,  
 ConTeXt
 version \contextversion,
 % LuaTeX version \luatexversion,
 LuaTeX revision \luatexrevision,
 (LuaTeX date stamp \luatexdatestamp).
 \blank[6*big]
 The number input as « 2008 » in Persian is written in the output  
 as « 8002 »
 in the following Persian text:
 \blank[6*big]
 \pardir TRT
 \textdir TRT

 \FaarsiA
 \getbuffer[faarsi]
 \blank[6*big]

 \stoptext
 %% end file bug-RL-numerals.tex




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





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

___
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] Feature Request: \startitemize[text]

2008-10-21 Thread Hans Hagen
Aditya Mahajan wrote:

 Hans, can this be included in the core?

later, i'd rather not touch code now while i'm in the middle some major 
mkiv core code rework which will take a couple of weeks

so, fro the moment, just collect extension code

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
___


[NTG-context] new beta

2008-10-21 Thread Hans Hagen
Hi,

I uploaded a new beta. There are changes in the cached font data but 
this should not affect runs (apart from some fonts being recached). The 
memory footprint of fonts is slightly smaller, in otf we now handle 
multiple unicode - one glyph situations.

As part of redoing structure related code i rewrote the moveable block 
code which will be part of the major update later this year. It's not 
yet 100% functional compatible but faster and more flexible. I'm 
wondering, are there mkiv users out there who use the block features?

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
___


[NTG-context] new beta

2008-10-21 Thread Hans Hagen
Hi,

I uploaded a new beta. There are changes in the cached font data but 
this should not affect runs (apart from some fonts being recached). The 
memory footprint of fonts is slightly smaller, in otf we now handle 
multiple unicode - one glyph situations.

As part of redoing structure related code i rewrote the moveable block 
code which will be part of the major update later this year. It's not 
yet 100% functional compatible but faster and more flexible. I'm 
wondering, are there mkiv users out there who use the block features?

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
___


[NTG-context] PhD Thesis in ConTeXt

2008-10-21 Thread Piotr
Hello,

I have spent some time with google in order to find an answer to the
following questions. Unfortunatly, I was not satisfied with the
answers, which I now hope to find here.

It is my plan not to use the MS Office suite for the production of my
PhD thesis (in chemistry). I have used Miktex some years ago during my
studies for some project reports, and I remember beeing quite
satisfied with the results. My Master thesis, on the other hand, I
wrote in word.. and although I remember not having too many
difficulties, there were some nasty obstacles to be overcome.
Obstacles which I simply do not want to risk having repeated a second
time on a much bigger scale.
I this mailing list I read several reports of people who either had
written their thesis in Latex or ConTeXt. There was a mention of Latex
beeing designed for mathematic purposes, while ConTeXt was said to be
better suited for the intergration of graphics or larger/more complex
layout changes.

1) Finding the right context
For now I had quite some difficulties to find that proper Latex
distribution - a problem that actually led me to the existence of
ConTeXt. I am wondering which latex distribution I should choose in
order to work with ConTeXt? I am running Windows Vista (64-bit). Or is
there a ConTeXt stand alone package that will absolutely satisfy my me
in my needs? In principle, all I need is

2) The right editor
What is the preferred editor for ConTeXt? for such a project? Is there
any loss in functionality when using Texniccenter with ConTeXt than
with MikTex instead?

3) I have seen some thesis templates/examples in this mailinglist. Can
anyone point me to additional sources regarding the creation of a PhD
Thesis with ConTeXt? What is the advantage over Latex, what are the
disadvantages? Is there a win-win distribution somewhere on the table?

4) Has anyone used a typesetting suite like ContTeXt with CVS?

5) Is the ConTeXt reference system compatible with Endnote?

Is there any point to have latex installed, when context can do the
trick? Or lets ask the devils advocate the other way around: What is
the point of installing context, when latex could do the trick? Apart
that I have to re-learn latex anyway.. what is better with Context?

Regards,

  Piotr Jakubowicz
___
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] PhD Thesis in ConTeXt

2008-10-21 Thread Jeff Smith
Hi,

I will let the other, more experienced posters answer the bulk of your
questions, as they will do better than I. But about Endnote, which I
happen to use, alongside my own own doctoral dissertation writing
under ConTeXt, I can share some of my experience.

Although Endnote can export into BibTeX format, the result seems not
to be directly usable by BibTeX. Not familiar at all with BibTeX and
stuff in the beginning, I had look hard to find my answer, and I
finally did with the following link, although it's in a different
context:

http://www.mackichan.com/index.html?techtalk/558.htm~mainFrame

So I wrote a small Python program converting the keys that Endnote
exports -- and now everything works like a charm. I have no idea what
are your options, and what you are willing to do, but the bottom line
is, there is a slight obstacle going from Endnote to BibTeX, despite
appearances.

Jeff


On Tue, Oct 21, 2008 at 13:56, Piotr [EMAIL PROTECTED] wrote:
 Hello,

 I have spent some time with google in order to find an answer to the
 following questions. Unfortunatly, I was not satisfied with the
 answers, which I now hope to find here.

 It is my plan not to use the MS Office suite for the production of my
 PhD thesis (in chemistry). I have used Miktex some years ago during my
 studies for some project reports, and I remember beeing quite
 satisfied with the results. My Master thesis, on the other hand, I
 wrote in word.. and although I remember not having too many
 difficulties, there were some nasty obstacles to be overcome.
 Obstacles which I simply do not want to risk having repeated a second
 time on a much bigger scale.
 I this mailing list I read several reports of people who either had
 written their thesis in Latex or ConTeXt. There was a mention of Latex
 beeing designed for mathematic purposes, while ConTeXt was said to be
 better suited for the intergration of graphics or larger/more complex
 layout changes.

 1) Finding the right context
 For now I had quite some difficulties to find that proper Latex
 distribution - a problem that actually led me to the existence of
 ConTeXt. I am wondering which latex distribution I should choose in
 order to work with ConTeXt? I am running Windows Vista (64-bit). Or is
 there a ConTeXt stand alone package that will absolutely satisfy my me
 in my needs? In principle, all I need is

 2) The right editor
 What is the preferred editor for ConTeXt? for such a project? Is there
 any loss in functionality when using Texniccenter with ConTeXt than
 with MikTex instead?

 3) I have seen some thesis templates/examples in this mailinglist. Can
 anyone point me to additional sources regarding the creation of a PhD
 Thesis with ConTeXt? What is the advantage over Latex, what are the
 disadvantages? Is there a win-win distribution somewhere on the table?

 4) Has anyone used a typesetting suite like ContTeXt with CVS?

 5) Is the ConTeXt reference system compatible with Endnote?

 Is there any point to have latex installed, when context can do the
 trick? Or lets ask the devils advocate the other way around: What is
 the point of installing context, when latex could do the trick? Apart
 that I have to re-learn latex anyway.. what is better with Context?

 Regards,

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

___
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] What should I learn?

2008-10-21 Thread Mauricio
 Mauricio wrote:
 
 Original Tex is not an option, since PDF, today's font formats
 (and Unicode) and many algorithms didn't exist when Knuth decided
 no features would be added anymore. Maybe I should hack the source
 code of pdftex or luatex?  I can try that, but that's going to be
 hard work and I would like to know how far I can get before
 starting, or if there are easier options (like libraries to write
 PDF and read OpenType and books or example code of typesetting
 algorithms).
 
 you want to writ ea full blown macro package with advanced font support 
 etc etc? well, it will take you a couple of man-years
 

I'll never use macros, whatever the task is :)

I think I want to have enough available libraries so
that I could write small programs to generate documents.
Most of the time I would probably insert the text in
the source code, or create specialized programs that
could deal with specific series of documents (I remember
reading in an interview with Donald Knuth that this is
the way TeX was supposed to be used when it was designed.)

If that's not possible today, maybe I could at least
write a nice library of general purpose typesetting
algorithms that someone could use in the future to do
what I want. Although I don't think giants should be on
top of dwarfs...

Best,
Maurício

___
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] PhD Thesis in ConTeXt

2008-10-21 Thread Henning Hraban Ramm
Am 2008-10-21 um 19:56 schrieb Piotr:
 1) Finding the right context
 For now I had quite some difficulties to find that proper Latex
 distribution - a problem that actually led me to the existence of
 ConTeXt. I am wondering which latex distribution I should choose in
 order to work with ConTeXt? I am running Windows Vista (64-bit). Or is
 there a ConTeXt stand alone package that will absolutely satisfy my me
 in my needs? In principle, all I need is

If you don't need LaTeX or PlainTeX and just ConTeXt, go for the  
minimals (see wiki).
I don't know about Win64 versions, though. (I'm on OSX)

 2) The right editor
 What is the preferred editor for ConTeXt? for such a project? Is there
 any loss in functionality when using Texniccenter with ConTeXt than
 with MikTex instead?

Some ConTeXters use SciTE, others Emacs. I guess the ConTeXt modes of  
those are most evolved.

I mostly use TextWrangler (Mac only), that has only a rudimentary  
syntax highlighting, but it's enough for me.

see http://wiki.contextgarden.net/Text_Editors

Be sure to use an editor with proper Unicode abilities and (I'd  
suggest to) write in UTF-8 encoding.

 3) I have seen some thesis templates/examples in this mailinglist. Can
 anyone point me to additional sources regarding the creation of a PhD
 Thesis with ConTeXt? What is the advantage over Latex, what are the
 disadvantages? Is there a win-win distribution somewhere on the table?

What you need depends on the requirements of your university...

I'm no academic, so don't know what would be special with a PhD thesis.

Did you look through http://wiki.contextgarden.net/Sample_documents ?

Did you find http://wiki.contextgarden.net/Chemistry ?


 4) Has anyone used a typesetting suite like ContTeXt with CVS?

Do you mean your sources or ConTeXt itself?

Of course all TeX files are simple text files, so any versioning  
system is usable.

But I'd suggest to use SVN or another less ancient system than CVS.

 5) Is the ConTeXt reference system compatible with Endnote?

Jeff answered that.

 Is there any point to have latex installed, when context can do the
 trick?

No.

 Or lets ask the devils advocate the other way around: What is
 the point of installing context, when latex could do the trick? Apart
 that I have to re-learn latex anyway.. what is better with Context?

- ConTeXt's scripts know how often your sources need to be run
- more freedom in design (but some prefer LaTeX's fixed document  
classes)
- more coherent interface (key=value syntax)
- better support for modern features, esp. with LuaTeX
- integration of external packages like MetaPost, GNUplot etc., see 
http://modules.contextgarden.net/
- easy font installation (or no installation at all with XeTeX or  
LuaTeX)
- ...


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] What should I learn?

2008-10-21 Thread Idris Samawi Hamid ادريس سماوي ح امد
Hi,

On Tue, 21 Oct 2008 07:14:50 -0600, Mauricio [EMAIL PROTECTED]  
wrote:

 Original Tex is not an option, since PDF, today's font formats
 (and Unicode) and many algorithms didn't exist when Knuth decided
 no features would be added anymore. Maybe I should hack the source
 code of pdftex or luatex?  I can try that, but that's going to be
 hard work and I would like to know how far I can get before
 starting, or if there are easier options (like libraries to write
 PDF and read OpenType and books or example code of typesetting
 algorithms).

The beginning of the above paragraph is confused, but I have no time to  
disambiguate :-)

What you are looking for sounds like a pipe dream. OTOH, see

http://en.wikipedia.org/wiki/Lout

It is apparently a Haskell-like language that seems to roughly  
correspond to what you are looking for.

Best wishes

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] Vertically centered title page

2008-10-21 Thread Flavien Lambert
Dear all, I am trying to build a presentation with specific requirements. I
would like to have the title of the presentation on the middle (both
vertical and horizontal) of the first page. I tried, on one hand, two
\vfill, and, on the other hand, \framed[location=middle,align=middle] but
without success. The title is always on the top of the text area. Any help
is welcome !

-- 
Flavien.

Quantum objects are completely crazy but, at least, they are all crazy in
the same way. R.P. Feynman.
___
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] PhD Thesis in ConTeXt

2008-10-21 Thread Diego Depaoli
2008/10/21 Henning Hraban Ramm [EMAIL PROTECTED]:
 Or lets ask the devils advocate the other way around: What is
 the point of installing context, when latex could do the trick? Apart
 that I have to re-learn latex anyway.. what is better with Context?

 - ConTeXt's scripts know how often your sources need to be run
 - more freedom in design (but some prefer LaTeX's fixed document
 classes)
 - more coherent interface (key=value syntax)
 - better support for modern features, esp. with LuaTeX
 - integration of external packages like MetaPost, GNUplot etc., see 
 http://modules.contextgarden.net/
 - easy font installation (or no installation at all with XeTeX or
 LuaTeX)
Please don't forget...
this wonderful and helpful mailing list :-)
Welcome.

-- 
Diego Depaoli
___
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] Vertically centered title page

2008-10-21 Thread Thomas A. Schmitz

On Oct 21, 2008, at 10:22 PM, Flavien Lambert wrote:

 Dear all, I am trying to build a presentation with specific  
 requirements. I would like to have the title of the presentation on  
 the middle (both vertical and horizontal) of the first page. I  
 tried, on one hand, two \vfill, and, on the other hand,  
 \framed[location=middle,align=middle] but without success. The title  
 is always on the top of the text area. Any help is welcome !

 -- 
 Flavien.

\starttext

\framed[width=\textwidth,
 height=\textheight,
 top=\vss,
 bottom=\vss,
 align=middle]
{Hi! I'm centered!}

\stoptext

HTH

Thomas
___
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] Vertically centered title page

2008-10-21 Thread Aditya Mahajan
On Tue, 21 Oct 2008, Flavien Lambert wrote:

 Dear all, I am trying to build a presentation with specific requirements. I
 would like to have the title of the presentation on the middle (both
 vertical and horizontal) of the first page. I tried, on one hand, two
 \vfill, and, on the other hand, \framed[location=middle,align=middle] but
 without success. The title is always on the top of the text area. Any help
 is welcome !

Try either

\null\vfill
...content...
\vfill\page


or

\startstandardmakeup
...content...
\stopstandardmakeup

Aditya
___
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] Vertically centered title page

2008-10-21 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Tue, 21 Oct 2008 14:22:08 -0600, Flavien Lambert  
[EMAIL PROTECTED] wrote:

 Dear all, I am trying to build a presentation with specific  
 requirements. I
 would like to have the title of the presentation on the middle (both
 vertical and horizontal) of the first page. I tried, on one hand, two
 \vfill, and, on the other hand, \framed[location=middle,align=middle] but
 without success. The title is always on the top of the text area. Any  
 help
 is welcome !

You may play with

\starttext

\startstandardmakeup
\startalignment[middle]
test
\stopalignment
\stopstandardmakeup

\stoptext

Best wishes

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] PhD Thesis in ConTeXt

2008-10-21 Thread Marcin Borkowski
Dnia Tue, Oct 21, 2008 at 07:56:27PM +0200, Piotr napisa#322;(a):
 Hello,
 
 I have spent some time with google in order to find an answer to the
 following questions. Unfortunatly, I was not satisfied with the
 answers, which I now hope to find here.
 
 It is my plan not to use the MS Office suite for the production of my
 PhD thesis (in chemistry). I have used Miktex some years ago during my
 studies for some project reports, and I remember beeing quite
 satisfied with the results. My Master thesis, on the other hand, I
 wrote in word.. and although I remember not having too many
 difficulties, there were some nasty obstacles to be overcome.
 Obstacles which I simply do not want to risk having repeated a second
 time on a much bigger scale.
 I this mailing list I read several reports of people who either had
 written their thesis in Latex or ConTeXt. There was a mention of Latex
 beeing designed for mathematic purposes, while ConTeXt was said to be
 better suited for the intergration of graphics or larger/more complex
 layout changes.

I'm also rather a ConTeXt newbie (and I daresay that I am more of an
expert as far as plain TeX and LaTeX go), but I'll butt in with my
$3*10^{-2};).  I guess I have some right to say something here, too,
since I was first a long-time plain TeX user (about 6 years'
experience), then a LaTeX user (another 6 years or so) and now I've been
trying hard to use ConTeXt for some months.

 1) Finding the right context
 For now I had quite some difficulties to find that proper Latex
 distribution - a problem that actually led me to the existence of
 ConTeXt. I am wondering which latex distribution I should choose in
 order to work with ConTeXt? I am running Windows Vista (64-bit). Or is
 there a ConTeXt stand alone package that will absolutely satisfy my me
 in my needs? In principle, all I need is

Well, *the* TeX distribution is texlive (AFAIK, it works under unices,
windows  mac).  MikTeX is a popular alternative for windows; it should
also contain ConTeXt, although not necessarily the state-of-the-art one.
Nowadays texlive has an automatic package update (much like MikTeX).
And if you want to use the latest-and-greatest ConTeXt, the so-called
minimals are for you.  (On a day to day basis, I use ConTeXt MkII
which came with texlive, and it's enough for me; I don't use all these
fancy things like xml, opentype fonts etc.  OTOH, I have some newer
version, too, just in case I need it some day.)

 2) The right editor
 What is the preferred editor for ConTeXt? for such a project? Is there
 any loss in functionality when using Texniccenter with ConTeXt than
 with MikTex instead?

Well, my heart is breaking when I type this, but my beloved emacs;) has
rather poor ConTeXt support...  I use Emacs 22 with AUCTeX 11.84.  Well,
although it *works*, it is by no means convenient - at least not that
convenient as an emacs should be;).  Hans uses SciTE, which should
therefore be a good answer.

 3) I have seen some thesis templates/examples in this mailinglist. Can
 anyone point me to additional sources regarding the creation of a PhD
 Thesis with ConTeXt? What is the advantage over Latex, what are the
 disadvantages? Is there a win-win distribution somewhere on the table?

Well, recently I'm starting to prefer ConTeXt over LaTeX very much.  The
are quite a few reasons.  (I blogged about some of them some time ago;
you may find this post here:
http://mbork.pl/2008-08-26_Dlaczego_nie_lubię_LaTeXa; notice it's in
Polish, so of no use to most people on this list;).  I plan to translate
this into English, but this not very high on my priority list...)

To sum it up (especially for non-Polish people here;) - I assume that my
answer *might* be of interest not only to the author of this thread;)),
the problems are as follows: while LaTeX is very nice when you write a
scientific paper, it's not that nice when you write a test for students
or a letter to Aunt Henrietta;).  Another thing is an always possible
package clash, which is highly improbable in a monolithic system like
ConTeXt.  And yet another is that many, many things in LaTeX have a
somehow hacky feeling about them, and in ConTeXt they are much more
natural (take the enumerate/enumitem packages, for instance, or text
floating around graphics, or multicolumn typestting...).  And last but
not least - in LaTeX, writing content is easy, changing the way things
look is difficult (I know, this is an oversimplification and need not
always be the case, but this is my general feeling); in ConTeXt, both
are easy.

There are some caveats, too.  More about them in a moment.

 4) Has anyone used a typesetting suite like ContTeXt with CVS?

As it was pointed out, you write just plain text files, so it's not a
problem (and I would consider it highly recommended!).  Personally, I
use (another) ancient system (RCS); since I write my documencts mainly
by myself, it suffices for me.

 5) Is the ConTeXt reference system compatible with Endnote?

That I have no 

Re: [NTG-context] PhD Thesis in ConTeXt

2008-10-21 Thread Mojca Miklavec
On Tue, Oct 21, 2008 at 7:56 PM, Piotr wrote:

 For now I had quite some difficulties to find that proper Latex
 distribution

You only have MikTeX and TeX Live. (I used to be a big MikTeX fan. Not
much difference, but MikTeX is more user friendly for my biased
taste; sadly lacking ConTeXt at the moment.)

 - a problem that actually led me to the existence of
 ConTeXt. I am wondering which latex distribution I should choose in
 order to work with ConTeXt?

I like the wording a lot (which *LaTeX* distribution to choose) :) :) :)

There are three options:
a) TeX Live
b) MikTeX, but you need quite some manual tweaking and non-trivial
settings to make ConTeXt run
c) ConTeXt minimals (you can have them installed in addition to the
other distribution), no LaTeX, but (almost) no GUI, frequent updates

 Is there any point to have latex installed, when context can do the
 trick?

If you plan to use ConTeXt exclusively, you don't need to have LaTeX
installed unless you compile other people's documents.

 Or lets ask the devils advocate the other way around:
 What is the point of installing context, when latex could do the trick?

If LaTeX can do what you need, none ;)
And I seriously mean it.

 Apart
 that I have to re-learn latex anyway.. what is better with Context?

(others have answered rather well)

 There was a mention of Latex
 beeing designed for mathematic purposes, while ConTeXt was said to be
 better suited for the intergration of graphics or larger/more complex
 layout changes.

Speaking with a bit of irony  highly biased:

In LaTeX you accept the fact that you cannot do any complex layout
modifications.
Consequently you don't even try to adapt anything, so you can devote
more time to contents and don't need to fight with bugs (unless you
start including  5 packages :)

In ConTeXt it's easy to be more creative with layouts, easy to reach
the limits of what's possible, but also possible to ask for adding
some missing functionality and some bugs\footnote{also possible to ask
to remove them of course} :) :) :)
If you need some creative distraction while writing your thesis, you
have just arrived to the perfect place :)

Mojca
___
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] What should I learn?

2008-10-21 Thread Aditya Mahajan

On Tue, 21 Oct 2008, Maurí­cio wrote:


I also like to write programs (I use a really
nice language named Haskell). Do you thing I
could get what I want if I write or translate
typography functions to that language, and then
write programs to generate documents? Where
could I find or where could I learn about such
functions?


You can also have a look at ant http://ant.berlios.de/. It is not as big 
as TeX and is written in Ocaml, so you may find it easier to understand 
than the source code of TeX (a mixture of pascal, change files, and C).


Aditya
___
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] PhD Thesis in ConTeXt

2008-10-21 Thread Aditya Mahajan
On Tue, 21 Oct 2008, Piotr wrote:

 Hello,

 I have spent some time with google in order to find an answer to the
 following questions. Unfortunatly, I was not satisfied with the
 answers, which I now hope to find here.

 It is my plan not to use the MS Office suite for the production of my
 PhD thesis (in chemistry). I have used Miktex some years ago during my
 studies for some project reports, and I remember beeing quite
 satisfied with the results. My Master thesis, on the other hand, I
 wrote in word.. and although I remember not having too many
 difficulties, there were some nasty obstacles to be overcome.
 Obstacles which I simply do not want to risk having repeated a second
 time on a much bigger scale.
 I this mailing list I read several reports of people who either had
 written their thesis in Latex or ConTeXt. There was a mention of Latex
 beeing designed for mathematic purposes, while ConTeXt was said to be
 better suited for the intergration of graphics or larger/more complex
 layout changes.

 1) Finding the right context
 For now I had quite some difficulties to find that proper Latex
 distribution - a problem that actually led me to the existence of
 ConTeXt. I am wondering which latex distribution I should choose in
 order to work with ConTeXt? I am running Windows Vista (64-bit). Or is
 there a ConTeXt stand alone package that will absolutely satisfy my me
 in my needs? In principle, all I need is

 2) The right editor
 What is the preferred editor for ConTeXt? for such a project? Is there
 any loss in functionality when using Texniccenter with ConTeXt than
 with MikTex instead?

Depends on what functions you need. There are a few editors which have 
basic support for ConTeXt (compile document, view pdf, jump to error, 
etc.). Hans uses Scite and includes a context enabled scite in the 
windows distribution available on prama-ade.com. Irdis has written support 
for Notepad++. Vim and emacs have some basic support. I do not know what 
features texniccenter and winedit provide for context.

 3) I have seen some thesis templates/examples in this mailinglist. Can
 anyone point me to additional sources regarding the creation of a PhD
 Thesis with ConTeXt?

Each institute has different requirements for phd thesis, so one template 
is not going to fit the bill. I did my thesis in context, and you can have 
a look at the sources and the output:

http://www.eecs.umich.edu/~adityam/publications/thesis/thesis.pdf
http://www.eecs.umich.edu/~adityam/publications/thesis/thesis.tar.gz

The easier way to go about this will be to look at the formatting 
specifications of the thesis, and try to understand how to implement them 
in context one by one.

 What is the advantage over Latex, what are the
 disadvantages? Is there a win-win distribution somewhere on the table?

Advantage: In most cases, others have written a style for what you want, 
so you don't have to create a style on your own.

Disadvantage: When you do have to create a style on your own, it can be 
difficult, even in packages which are supposed to be easy to configure

 4) Has anyone used a typesetting suite like ContTeXt with CVS?

As others have said, the source files are simply text files. So you can 
use any version control that you want.

 5) Is the ConTeXt reference system compatible with Endnote?

I have no experience with endnote. I have seen endnote to bibtex 
converters. If you can convert to bibtex, then using the references with 
context is relatively easy.

 Is there any point to have latex installed, when context can do the
 trick?

As Mojca said, you may want to submit something to a journal which accepts 
latex files.

 Or lets ask the devils advocate the other way around: What is
 the point of installing context, when latex could do the trick?

Again I agree with what Mojca said. If latex can do the job, use it. If 
you are happy with one of the defaul latex styles, do not use too many 
figures in your document, do not want text wrapping around figures, use 
latex.

 Apart
 that I have to re-learn latex anyway.. what is better with Context?

Context has a more consistent interface to all the commands. This makes it 
easier to remember how to configure things.

Aditya
___
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] emacs (was: Re: PhD Thesis in ConTeXt)

2008-10-21 Thread Peter Münster
On Wed, Oct 22 2008, Marcin Borkowski wrote:

 Well, my heart is breaking when I type this, but my beloved emacs;) has
 rather poor ConTeXt support...  I use Emacs 22 with AUCTeX 11.84.  Well,
 although it *works*, it is by no means convenient - at least not that
 convenient as an emacs should be;).

Hello Marcin,

What are the problems with emacs?

Cheers, Peter

-- 
http://pmrb.free.fr/contact/

___
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] PhD Thesis in ConTeXt

2008-10-21 Thread Alan BRASLAU
I wrote my thesis using nroff... wouldn't want to do that again.
Good luck!
___
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
___