[NTG-context] [framed] how to deal with big text?

2011-03-05 Thread Milton Galo Patricio Inostroza Aguilera
Hi,

I'm a new user of context.  I'm working with \framed and I have a
problem when I try to fit a big text in it :-(.  The system cuts the
text and it doesn't display in the next page. I read the manual but I
can not find an argument of framed that can do this job.

An example of my code is the following:

\framed[align={stretch}]{

a big text..

}

Regards,

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


[NTG-context] Fwd: Personalizing a PDF generated with ConTeXt

2011-03-05 Thread Cecil Westerhof
Should have gone to the list instead of to Taco.

-- Forwarded message --
From: Cecil Westerhof cldwester...@gmail.com
Date: 2011/3/5
Subject: Re: [NTG-context] Personalizing a PDF generated with ConTeXt
To: Taco Hoekwater t...@elvenkind.com


2011/3/1 Taco Hoekwater t...@elvenkind.com

 \setvariables and \getvariables sounds like the most general solution

 in that case.

 For example, you could put the various \setvariables statements in various
 separate files and load a specific one from the context command line with
 --environment=...


I tried it and it works. Only one thing: when the variables are not set
(forgot the environment parameter, file not correctly set, ...) I would like
to set default values. How would I do that?

-- 
Cecil Westerhof



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


Re: [NTG-context] Personalizing a PDF generated with ConTeXt

2011-03-05 Thread Cecil Westerhof
2011/3/5 Cecil Westerhof cldwester...@gmail.com

 For example, you could put the various \setvariables statements in various
 separate files and load a specific one from the context command line with
 --environment=...


 I tried it and it works. Only one thing: when the variables are not set
 (forgot the environment parameter, file not correctly set, ...) I would like
 to set default values. How would I do that?


For who likes to something along the same lines: I attached a BASH script
that generates all the PDF's based on .per files. You call the script with:
compileContextPersonalised.sh TEX_FILE

One 'problem': for every generated personalised PDF, there is also a log and
tuo file. But I am using --purgeall. So why are they there?

-- 
Cecil Westerhof


compileContextPersonalised.sh
Description: Bourne shell script
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Fwd: Personalizing a PDF generated with ConTeXt

2011-03-05 Thread Wolfgang Schuster

Am 05.03.2011 um 12:25 schrieb Cecil Westerhof:

 2011/3/1 Taco Hoekwater t...@elvenkind.com
 \setvariables and \getvariables sounds like the most general solution
 
 in that case.
 
 For example, you could put the various \setvariables statements in various 
 separate files and load a specific one from the context command line with 
 --environment=...
  
 I tried it and it works. Only one thing: when the variables are not set 
 (forgot the environment parameter, file not correctly set, ...) I would like 
 to set default values. How would I do that?

%\enablemode[variables]

\startmode[variables]
\setvariables
  [test]
  [one=One,
   two=Two]
\stopmode

\starttext
\doifelsevariable{test}{one}{1: \getvariable{test}{one}}{??}\par
\doifelsevariable{test}{two}{2: \getvariable{test}{two}}{??}
\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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] [framed] how to deal with big text?

2011-03-05 Thread Wolfgang Schuster

Am 04.03.2011 um 21:47 schrieb Milton Galo Patricio Inostroza Aguilera:

 Hi,
 
 I'm a new user of context.  I'm working with \framed and I have a
 problem when I try to fit a big text in it :-(.  The system cuts the
 text and it doesn't display in the next page. I read the manual but I
 can not find an argument of framed that can do this job.


Use textbackground.

\definetextbackground
  [myframe]
  [location=paragraph,
   framecolor=black,
   background=]

\starttext
\startmyframe
\dorecurse{20}{\input knuth\par}
\stopmyframe
\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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Fwd: Personalizing a PDF generated with ConTeXt

2011-03-05 Thread Cecil Westerhof
2011/3/5 Wolfgang Schuster schuster.wolfg...@googlemail.com

 \setvariables and \getvariables sounds like the most general solution


 in that case.

 For example, you could put the various \setvariables statements in various
 separate files and load a specific one from the context command line with
 --environment=...


 I tried it and it works. Only one thing: when the variables are not set
 (forgot the environment parameter, file not correctly set, ...) I would like
 to set default values. How would I do that?


 %\enablemode[variables]

 \startmode[variables]
 \setvariables
   [test]
   [one=One,
two=Two]
 \stopmode

 \starttext
 \doifelsevariable{test}{one}{1: \getvariable{test}{one}}{??}\par
 \doifelsevariable{test}{two}{2: \getvariable{test}{two}}{??}
 \stoptext


Works. I use:
\doifelsevariable{personalise}{completeName}{}{
  \setvariables[personalise][
completeName=Cecil Westerhof,
.
.
.
  ]
}

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


Re: [NTG-context] MnSymbol in ConText

2011-03-05 Thread Steffen Wolfrum
Hi C., hi Taco,

I followed Florians path, re-generated font MnSymbol now is found.

But I am wondering, too: how can MnSymbol be made available as a true 
context-math- font, 
eg. to produce an example like C. posted it (with latex and minion-package)?


Steffen



Am 23.02.2011 um 11:59 schrieb C.:

 Ok, that explains why context is literally ignoring the font. But will the
 described procedure allow the usage like in the attached example? It's done
 with latex and the minion package. Looks beautiful to me (except maybe some
 small scaling issues with the big '(' ) Sorry for the crappy screenshot, the
 64k-Limit blocked attaching the one page 200k PDF.





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


[NTG-context] +tlig fails sometimes in mkiv

2011-03-05 Thread Ulrike Fischer

On c.t.t. there was a discussion about the TeX-ligatures -- and ---
for endash and emdash. It seems that the luaotfload/context code
fails for some font/mode combination: For some fonts +tlig works
with both modes, some works only with mode=base, and there was also
a report of font which doesn't work at all (Frutiger LT 55 Roman).

E.g. on my PC +tlig works for Arial (c:/windows/fonts/Arial.ttf)
tested with a current context minimals only with mode=base.  

\font\test=Arial:mode=node;+tlig

\font\testb=Arial:mode=base;+tlig

\starttext

\test -- --- abc %fails

\testb -- --- abc %works

\stoptext \bye




-- 
Ulrike Fischer 

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


Re: [NTG-context] [framed] how to deal with big text?

2011-03-05 Thread Milton Galo Patricio Inostroza Aguilera
2011/3/5 Wolfgang Schuster schuster.wolfg...@googlemail.com:



 Use textbackground.

 \definetextbackground
  [myframe]
  [location=paragraph,
   framecolor=black,
   background=]

 \starttext
 \startmyframe
 \dorecurse{20}{\input knuth\par}
 \stopmyframe
 \stoptext

thanks! it works like a charm :-)

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


[NTG-context] header text for each page of a chapter

2011-03-05 Thread Milton Galo Patricio Inostroza Aguilera
Hi,

I need that the name of a chapter appears in each page that belongs of
it.  For that, I use the following code:

\definepagebreak
  [mychapterpagebreak]
  [yes,header]

\setuphead
[chapter]
[page=mychapterpagebreak,
placehead=no]

\setupheadertexts[][chapter]


\starttext
  \chapter{Tarjetas} \dorecurse{10}{\input tufte }
  \chapter{Linea de credito} \dorecurse{10}{\input tufte }
\stoptext


This approach works perfectly, but I can't customize the text that
contains the name of the chapter.  I would like to show the name of
the chapter with this code:

\startnarrower[3*right]
\crlf
{\tfd \rightaligned{ CHAPTER_NAME }}
\stopnarrower

Why I'm doing that?... because I have a lot of framed and I want when
they are send to the next page the document shows the name of the
chapter that they belong (or the name of the current chapter). am I
right with my approach?

Regards,

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


[NTG-context] Gradient in table header

2011-03-05 Thread Felix Ingram
Is such a thing possible? I'd like to have a gradient changing from blue to 
white across my table header, spanning all columns. I'll probably be using the 
TABLE environment.

Regards,

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


Re: [NTG-context] Gradient in table header

2011-03-05 Thread luigi scarso
On Sat, Mar 5, 2011 at 6:12 PM, Felix Ingram f.ingram.li...@gmail.com wrote:
 Is such a thing possible? I'd like to have a gradient changing from blue to 
 white across my table header, spanning all columns. I'll probably be using 
 the TABLE environment.
you can also see columns set (search in wiki.contextgarden.net or
http://www.pragma-ade.com/general/manuals/columns.pdf
)

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


Re: [NTG-context] Composing a header/logo with layers, linebreak issues

2011-03-05 Thread Wolfgang Schuster

Am 05.03.2011 um 18:39 schrieb C.:

 Hello,
  
 I guess this is an easy one.
 How do I get the top lines to behave like the second example? Why is the 
 newline ignored in the top one?

\setlayer use a \hbox for the argument but you can around this with 
\setlayerframed, e.g.

\setlayerframed[mybg][align=right,frame=off]{…}

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


[NTG-context] Third field of useURL

2011-03-05 Thread Cecil Westerhof
At http://wiki.contextgarden.net/Reference/en/useURL there is a description
of useURL. I am using it for HTTP and e-mail referencing. But I do not
understand where the third parameter is used for,

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


Re: [NTG-context] Third field of useURL

2011-03-05 Thread Philipp Gesang
On 2011-03-05 19:33:45, Cecil Westerhof wrote:
 At http://wiki.contextgarden.net/Reference/en/useURL there is a description
 of useURL. I am using it for HTTP and e-mail referencing. But I do not
 understand where the third parameter is used for,

Good evening, Cecil

There’s a minimal explanation added by Taco a while ago to [1].
Appears to be legacy syntax by now.

Regards, Philipp

[1] http://wiki.contextgarden.net/url#Overview




 
 -- 
 Cecil Westerhof

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


-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpwPQxJYdImX.pgp
Description: PGP signature
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Arabic typesetting with ConTeXt: 'hello world'

2011-03-05 Thread R. Ermers, Midden Oosten Perspectief
Dear all,

I read Jon's, Khalid's, and Idriss' exchange of mails on typesetting Arabic a 
while ago.

Problems with typesetting Arabic in context thusfar have been my only reason 
left for not switching over to ConteXt altogether.

Idriss adviced to forget the mirroring thing as suggested on contextgarden, and 
use \setupdirections instead.

Could anyone - perhaps Jon - please tell me in more detail how the working 
'hello world' example looks like, including the references to the font 
ScheherazadeRegOT.ttf?

Thanks in advance!

Robert

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


Re: [NTG-context] about \framed and \inframed

2011-03-05 Thread Wolfgang Schuster

Am 04.03.2011 um 12:28 schrieb Jeong Dalyoung:

 Dear all,
 
 I defined Example as following:
 
 \defineenumeration[Example]
  [location=serried,
   headstyle=bold,
   command={\framed[height=1.3em]},
   text={\ss \white 예제},
   prefix=yes,
   prefixsegments=chapter,
   way=bychapter,
   width=broad,
   number=yes,
   before={\blank[big]},
   after=\blank]
 
 The problem is that the bottom of the framed text is aligned just below the 
 center of the following text lines. The vertical center is a little bit 
 higher than that of the following lines. If I use \inframed, then the top 
 line of the frame is a little bit higher than the center of the following 
 sentence, so there is almost no space between the frame and the texts in the 
 next line.
 In the manual \inframed makes vertical center alignment, but I can't make it.
 
 I'd like to make vertical center alignment framed word and the normal text 
 line which follows.

Make a minimal example!

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


[NTG-context] Layers on simpleslides

2011-03-05 Thread Vedran Miletić
Hi,

I'm trying to insert a simple logo on a simpleslides slide, but for some
reason it doesn't appear:

\usemodule[simpleslides]

\definelayer[mybg]
[x=0mm, y=0mm, width=\paperwidth, height=\paperheight]
\setlayer[mybg]
[hoffset=1cm, voffset=1cm]
{\framed[frame=on, width=3cm, height=2cm]{LAYER}}
\setupbackgrounds[page][background=mybg]


\starttext

\SlideTitle{Bla}

Bla

\stoptext

Any ideas?

Regards,

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


Re: [NTG-context] Composing a header/logo with layers, linebreak issues

2011-03-05 Thread C.
 \setlayerframed[mybg][align=right,frame=off]{.}

That does the trick :)
Thank you for your quick reply.

-Christian

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


Re: [NTG-context] Third field of useURL

2011-03-05 Thread Cecil Westerhof
2011/3/5 Philipp Gesang pges...@ix.urz.uni-heidelberg.de

 On 2011-03-05 19:33:45, Cecil Westerhof wrote:
  At http://wiki.contextgarden.net/Reference/en/useURL there is a
 description
  of useURL. I am using it for HTTP and e-mail referencing. But I do not
  understand where the third parameter is used for,

 There’s a minimal explanation added by Taco a while ago to [1].
 Appears to be legacy syntax by now.


Thanks, that made things more clear.

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


[NTG-context] I think I found a bug in \at

2011-03-05 Thread Cecil Westerhof
I have the folowing code:
\setuplanguage[nl][
  lefthyphenmin=5,
  righthyphenmin=4,
]
\mainlanguage[nl]
\language[nl]

\enableregime[utf]

\starttext

Alleen een test om te laten zien dat de verwijzing
naar \at{page}[test] niet goed gaat.

\reference[test]{}

\stoptext

I would expect that \at{page}[test] gives:
pagina 1
but it gives:
page 1

Is it a bug, or am I doing something wrong?

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


Re: [NTG-context] Layers on simpleslides

2011-03-05 Thread Thomas Schmitz

On Sat, 5 Mar 2011 19:58:47 +0100
 Vedran Mileti? riva...@gmail.com wrote:

Hi,

I'm trying to insert a simple logo on a simpleslides 
slide, but for some

reason it doesn't appear:

\usemodule[simpleslides]

\definelayer[mybg]
   [x=0mm, y=0mm, width=\paperwidth, 
height=\paperheight]

\setlayer[mybg]
   [hoffset=1cm, voffset=1cm]
   {\framed[frame=on, width=3cm, height=2cm]{LAYER}}
\setupbackgrounds[page][background=mybg]


\starttext

\SlideTitle{Bla}

Bla

\stoptext

Any ideas?

backgrounds[page] is already in use by the module. Try 
backgrounds[paper][background={foreground,mybg}].


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


Re: [NTG-context] I think I found a bug in \at

2011-03-05 Thread Peter Münster
Cecil Westerhof cldwester...@gmail.com writes:

 I would expect that \at{page}[test] gives:
     pagina 1
 but it gives:
     page 1

 Is it a bug, or am I doing something wrong?

Probably the latter.

Solution a:
\at{pagina}[test]

Solution b:
\usemodule[googletranslate]
\setupgoogletranslate[from=en, to=nl]
Problem: this module is not written yet... ;-)

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


[NTG-context] special character in filename

2011-03-05 Thread Reviczky, Adam
Hi

Context fails to run with an input (filename or directoryname) that includes 
special characters.

example files:
%%%
reviczky@arlequin ~/minimal % la
total 0
drwxrwxr-x 1 reviczky reviczky   60 2011-03-05 19:58 ./
drwxr-xr-x 1 reviczky reviczky 2148 2011-03-05 20:00 ../
drwxrwxr-x 1 reviczky reviczky   40 2011-03-05 19:59 dir~1/
drwxrwxr-x 1 reviczky reviczky   40 2011-03-05 19:59 dir+2/
-rw-rw-r-- 1 reviczky reviczky   34 2011-03-05 19:58 test~1.tex
-rw-rw-r-- 1 reviczky reviczky   34 2011-03-05 19:58 test+2.tex
%%%

fails to run for test~1.tex, output:
%%%
context test\~1.tex

mtx-context | run 1: luatex 
--fmt=/home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en
 
--lua=/home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en.lui
 --backend=pdf ./test~1.tex
This is LuaTeX, Version beta-0.66.0-2011030112 (rev 4090) 
 \write18 enabled.
! I can't find file `./test'.
to be read again 
   \penalty 
\CCC:9:126 -\penalty 
  \plustenthousand \normalspaceprimitive 
* ./test~
   1.tex
Please type another input file name: 
%%%

but giving the filename again it runs:
%%%
...
Please type another input file name: test~1.tex
(test~1.tex

ConTeXt  ver: 2011.02.25 22:03 MKIV  fmt: 2011.3.1  int: english/english

system   cont-new.mkiv loaded
(/usr/share/texmf/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   test~1.top loaded
(test~1.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
(/usr/share/texmf/tex/context/base/type-siz.mkiv) 
(/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsfallback modern rm 12pt is loaded
system   begin file test~1.tex at line 1
backend  xmp  using file 
'/usr/share/texmf/tex/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1, subpage 1
system   end file test~1.tex at line 3
 )/usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf
mkiv lua stats   used config file  - 
/usr/share/texmf/web2c/texmfcnf.lua
mkiv lua stats   used cache path   - 
/home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d
mkiv lua stats   input load time   - 0.130 seconds
mkiv lua stats   stored bytecode data  - 275 modules, 56 tables, 331 chunks
mkiv lua stats   cleaned up reserved nodes - 33 nodes, 9 lists of 411
mkiv lua stats   node memory usage - 19 glue_spec
mkiv lua stats   node list callback tasks  - 6 unique task lists, 5 instances 
(re)created, 2304 calls
mkiv lua stats   used backend  - pdf (backend for directly 
generating pdf output)
mkiv lua stats   loaded patterns   - en::2
mkiv lua stats   language load time- 0.057 seconds , nofpatterns: 1
mkiv lua stats   callbacks - 2440 direct, 2929 indirect, 5369 
total
mkiv lua stats   lxml preparation time - 0.000 seconds, 0 nodes, 11 lpath 
calls, 0 cached calls
mkiv lua stats   result saved in file  - test~1.pdf
mkiv lua stats   loaded fonts  - 33 files: stmary10.afm eufb10.tfm 
eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm 
lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf 
lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf 
lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf 
lmsans9-regular.otf lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm 
lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr7.tfm rm-lmr9.tfm
mkiv lua stats   fonts load time   - 0.506 seconds 
mkiv lua stats   luatex banner - this is luatex, version 
beta-0.66.0-2011030112 (rev 4090)
mkiv lua stats   control sequences - 29651 of 165536
mkiv lua stats   current memory usage  - 32 MB (ctx: 33 MB)
mkiv lua stats   runtime   - 54.133 seconds, 1 processed 
pages, 1 shipped pages, 0.018 pages/second
%%%

It works with the + character though.
The same problem goes for the directory names; directories with ~ in the name 
drops and error, even if the filename has no special characters in it.

Can this be fixed?

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

Re: [NTG-context] special character in filename

2011-03-05 Thread Thomas Schmitz

On Sat, 5 Mar 2011 20:09:12 +
 Reviczky, Adam adam.revic...@kcl.ac.uk wrote:



It works with the + character though.
The same problem goes for the directory names; 
directories with ~ in the name drops and error, even if 
the filename has no special characters in it.


Can this be fixed?

Yeah, please fix this ASAP. I keep all my context files in 
a directory which I call /dev/null, and for some reason, 
this doesn't really work. But I am not going to change the 
name of my directory, no, you have to rewrite your 
software!


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


Re: [NTG-context] special character in filename

2011-03-05 Thread Reviczky, Adam
 Yeah, please fix this ASAP. I keep all my context files in
 a directory which I call /dev/null, and for some reason,
 this doesn't really work. But I am not going to change the
 name of my directory, no, you have to rewrite your
 software!
 
 Thomas
Dear Thomas

I understand, that it's not a good idea, and I've seen similar issues on the 
list (http://www.ntg.nl/pipermail/ntg-context/2010/052339.html).
I ran into this by making a deb package of a software (that includes context 
files) with a version that have a ~ in it, and therefore it makes a folder 
name having this character and context fails.

So i guess the answer is then, no.

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


Re: [NTG-context] I think I found a bug in \at

2011-03-05 Thread Aditya Mahajan

On Sat, 5 Mar 2011, Peter Münster wrote:


Cecil Westerhof cldwester...@gmail.com writes:


I would expect that \at{page}[test] gives:
    pagina 1
but it gives:
    page 1

Is it a bug, or am I doing something wrong?


Probably the latter.

Solution a:
\at{pagina}[test]

Solution b:
\usemodule[googletranslate]
\setupgoogletranslate[from=en, to=nl]
Problem: this module is not written yet... ;-)


Solution c:

\at{\labeltext{page}}[test]

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


Re: [NTG-context] special character in filename

2011-03-05 Thread Thomas Schmitz

On Sat, 5 Mar 2011 20:38:13 +
 Reviczky, Adam adam.revic...@kcl.ac.uk wrote:


Dear Thomas

I understand, that it's not a good idea, and I've seen 
similar issues on the list 
(http://www.ntg.nl/pipermail/ntg-context/2010/052339.html).
I ran into this by making a deb package of a software 
(that includes context files) with a version that have a 
~ in it, and therefore it makes a folder name having 
this character and context fails.


So i guess the answer is then, no.

Hi Adam,

I didn't want to sound rude - in the end, only Hans can 
decide if this can/should be changed. It's just when you 
think about the complexity of a system like context which 
runs on many different platforms, which involves a number 
of programming languages, which passes names to and fro in 
temporary files and commands - I just would advise to 
stick to characters which you can be sure will be parsed 
correctly by all parts involved. If you want to know a bit 
more about it, have a look at all the efforts Hans makes 
to sanitize font names so they will be found in the mkiv 
font database; taking out all the spaces and periods and 
whatnot. And yet, next week, some smart font designer will 
certainly come up with an even more bizarre name which 
breaks everything. That's all I wanted to say with my 
sarcasm.


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


Re: [NTG-context] special character in filename

2011-03-05 Thread Reviczky, Adam
 only Hans can decide if this can/should be changed
I won't argue for any changes, just thought to ask about it.
A simple yes, can be done or no, its a really bad idea is perfectly enough 
for me.

I'll think about a workaround outside context.

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


Re: [NTG-context] special character in filename

2011-03-05 Thread Aditya Mahajan

On Sat, 5 Mar 2011, Reviczky, Adam wrote:


only Hans can decide if this can/should be changed

I won't argue for any changes, just thought to ask about it.

I'll think about a workaround outside context.


The error is with the backend.

luatex (and pdftex and even tex) do not like filenames with a ~ in it.

luatex test\~1.tex

tries to compile a file called test.tex! If you want to compile 
test~1.tex, you need


luatex test\string~1.tex

In ConteXt, a wrapper script mtx-context calls luatex with appropriate 
settings of format, etc. So, with


context test\~1.tex

mtx-context will call

luatex --fmt=... --lua=.. test~1.tex

which, as mentioned above, tries to compile test.tex. But you can use the 
same workaround


context test\\string~1.tex

and the file test~1.tex is correctly compiled.


A simple yes, can be done or no, its a really bad idea is perfectly enough 
for me.


I don't understand why tex (the engine) ignores ~. I will call it a bug.

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


Re: [NTG-context] special character in filename

2011-03-05 Thread Peter Münster
Reviczky, Adam adam.revic...@kcl.ac.uk writes:

 only Hans can decide if this can/should be changed
 I won't argue for any changes, just thought to ask about it.
 A simple yes, can be done or no, its a really bad idea is perfectly enough
 for me.

See also section 1.7 on page 11 of the ConTeXt manual¹.

Feel free, to send enhancements/patches for the manual here or to the
mailing list for the manual².

¹ http://pmrb.free.fr/contextref.pdf
² contextman-refere...@lists.foundry.supelec.fr. 

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


Re: [NTG-context] Gradient in table header

2011-03-05 Thread Hans Hagen

On 5-3-2011 6:27, luigi scarso wrote:

On Sat, Mar 5, 2011 at 6:12 PM, Felix Ingramf.ingram.li...@gmail.com  wrote:

Is such a thing possible? I'd like to have a gradient changing from blue to 
white across my table header, spanning all columns. I'll probably be using the 
TABLE environment.

you can also see columns set (search in wiki.contextgarden.net or
http://www.pragma-ade.com/general/manuals/columns.pdf
)


each table cell can have a background and one can put a gradient in it 
using an mp graphic


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


Re: [NTG-context] MnSymbol in ConText

2011-03-05 Thread Hans Hagen

On 5-3-2011 2:58, Steffen Wolfrum wrote:

Hi C., hi Taco,

I followed Florians path, re-generated font MnSymbol now is found.

But I am wondering, too: how can MnSymbol be made available as a true 
context-math- font,
eg. to produce an example like C. posted it (with latex and minion-package)?


sure, if you cook up the definition for the virtualization (if the 
encoding is default tex it's no big deal, otherwise some extra tables 
are needed) ...


Hans

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


[NTG-context] Left and centered text on the same line

2011-03-05 Thread C.
Good evening,

 

How can I place left aligned and centered text on one line?

So that the centered text is in the same place as with \startaligned[middle]

 

I experimented with the following code:

 

\startalignment[middle]

I'm centered % this serves as a reference, its right in the middle of the
paper

\stopalignment

% now to the tricky part

\starttabulate[|lw(\dimexpr 0.5\textwidth\relax)|c|]

\NC I'm left \NC I'm centered \NC \NR

\NC I'm also left \NC I'm also centered \NC \NR

\stoptabulate

 

I tried various versions with the dimensions, subtracting \leftmarginwidth
and what not. to no avail.

The tabulate solution is always a tad off. What am I missing here?

 

-Christian

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


Re: [NTG-context] One-off theorem titles

2011-03-05 Thread Aditya Mahajan

On Fri, 4 Mar 2011, luigi scarso wrote:


On Fri, Mar 4, 2011 at 11:33 AM, Hans Hagen pra...@wxs.nl wrote:

On 4-3-2011 12:55, Aditya Mahajan wrote:


I also like \module_command. That is better than \modulecommand
that I have been using. Of course, this means that _ should not have its
usual meaning. I haven't checked on how \unprotect works in MkII. If it
makes _ a letter, then I'll switch to \module_command.


the main disadvantage of _ (at least in the past) is that it can get
invisible on a low res screen


Another option might be to use \module.command with . having the
right catcode. That will give macro names a more OOP feel.


indeed, but unfortunately it clashes with . being other in dimensions
(althoug i can imagine that we patch luatex to accept it)

why not
\module:command


Wrong catcode :-(

I would prefer the C++ style

module::command

A single : is not visually distinct.

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


Re: [NTG-context] One-off theorem titles

2011-03-05 Thread Aditya Mahajan

On Fri, 4 Mar 2011, Hans Hagen wrote:


On 4-3-2011 7:05, Wolfgang Schuster wrote:

In which are these alternatives are better than my module__command, you 
replace only the _ by !


because an ! stands out; anyway, we should avoid multiple _ in a row

(i'll put a few mkvi modules in the core to get a feeling .. using _ does not 
always look better btw)


Here is an experiment with @ and _. I would prefer to change @ to :: 
(but for that we would need to change the ptrcatcodes).


https://github.com/adityam/filter/raw/dev/t-filter.tex

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


Re: [NTG-context] Left and centered text on the same line

2011-03-05 Thread Aditya Mahajan

On Sat, 5 Mar 2011, C. wrote:


Good evening,



How can I place left aligned and centered text on one line?


\starttext
\hbox to \textwidth{\rlap{Left aligned} \hss Center aligned \hss}
\stoptext

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


Re: [NTG-context] $n\choose k$-issue with OpenType math fonts

2011-03-05 Thread Andreas Harder

Am 04.03.2011 um 15:28 schrieb Hans Hagen:

 On 4-3-2011 2:09, Andreas Harder wrote:
 Hi all,
 
 I'm (re)tying to draw some attention to the $n\choose k$-issue with OpenType 
 math fonts.
 
 I've made some test files:
 http://dl.dropbox.com/u/151837/OpenType-Math.7z
 
 The best output is generated by LuaLaTeX (at least for Asana and Cambria). 
 Would it be possible to correct the ConTeXt output as well?
 
 It depends what correction boils down to. Normally it's the opentype font 
 parameters that control the threshold to the next step in a larger delimiter

This subject is also discussed on the LuaLaTeX mailing list.
http://tug.org/pipermail/lualatex-dev/2011-March/thread.html#1118 

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


[NTG-context] vertical alignment in simpleslides

2011-03-05 Thread Curiouslearn
Hi

Today I started making lecture slides for one of my classes and
decided to try out simpleslides. First of all, thanks to Thomas and
Aditya for writing the module.

I had a question regarding vertical alignment. Consider the following
minimal example:

   \usemodule[simpleslides][style=Swoosh]
   \starttext
   \SlideTitle{Context can be used for \dots}

  \startitemize[n]
   \item
   Writing your articles
   \item
   Making slides for presentations
  \stopitemize

  \stoptext

The two items appear at the top of the slide. Is there a command or a
setting such that items will be aligned around the center of the
screen?

Thank you for your help.

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


Re: [NTG-context] vertical alignment in simpleslides

2011-03-05 Thread Aditya Mahajan

On Sat, 5 Mar 2011, Curiouslearn wrote:


Hi

Today I started making lecture slides for one of my classes and
decided to try out simpleslides. First of all, thanks to Thomas and
Aditya for writing the module.

I had a question regarding vertical alignment. Consider the following
minimal example:

  \usemodule[simpleslides][style=Swoosh]
  \starttext
  \SlideTitle{Context can be used for \dots}

 \startitemize[n]
  \item
  Writing your articles
  \item
  Making slides for presentations
 \stopitemize

 \stoptext

The two items appear at the top of the slide. Is there a command or a
setting such that items will be aligned around the center of the
screen?


\setupitemize[before=\vfill,after=\vfill]

You can also add

\setupitemize[1][inbetween=\vfill]

Another option is:

\def\StartSlide#1%
  {\SlideTitle{#1}
   \vfill}

\def\StopSlide
  {\vfill}

and then

\StartSlide{...}
...
\StopSlide

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


Re: [NTG-context] Left and centered text on the same line

2011-03-05 Thread Wolfgang Schuster

Am 05.03.2011 um 23:01 schrieb C.:

 Good evening,
  
 How can I place left aligned and centered text on one line?
 So that the centered text is in the same place as with \startaligned[middle]

\starttext
\startoverlay
  {\leftaligned{left}}
  {\midaligned{middle}}
% {\rightaligned{right}}
\stopoverlay
\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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] vertical alignment in simpleslides

2011-03-05 Thread Curiouslearn
Thanks for the response, Aditya.

However, the first method

\setupitemize[before=\vfill,after=\vfill]

does not change anything for me. The items are still at the top.

The second one (\setupitemize[1][inbetween=\vfill]) changes things.
However, the first item is at the top of the screen and the second is
at the bottom. I would like them to be near the center. Something like
what 'middle' does for horizontal alignment with two words, I want to
do for vertical alignment.

Thanks.



On Sat, Mar 5, 2011 at 11:23 PM, Aditya Mahajan adit...@umich.edu wrote:
 On Sat, 5 Mar 2011, Curiouslearn wrote:

 Hi

 Today I started making lecture slides for one of my classes and
 decided to try out simpleslides. First of all, thanks to Thomas and
 Aditya for writing the module.

 I had a question regarding vertical alignment. Consider the following
 minimal example:

              \usemodule[simpleslides][style=Swoosh]
              \starttext
              \SlideTitle{Context can be used for \dots}

             \startitemize[n]
              \item
                  Writing your articles
              \item
                  Making slides for presentations
             \stopitemize

             \stoptext

 The two items appear at the top of the slide. Is there a command or a
 setting such that items will be aligned around the center of the
 screen?

 \setupitemize[before=\vfill,after=\vfill]

 You can also add

 \setupitemize[1][inbetween=\vfill]

 Another option is:

 \def\StartSlide#1%
  {\SlideTitle{#1}
   \vfill}

 \def\StopSlide
  {\vfill}

 and then

 \StartSlide{...}
 ...
 \StopSlide

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


Re: [NTG-context] vertical alignment in simpleslides

2011-03-05 Thread Aditya Mahajan

On Sat, 5 Mar 2011, Curiouslearn wrote:


Thanks for the response, Aditya.

However, the first method

   \setupitemize[before=\vfill,after=\vfill]

does not change anything for me. The items are still at the top.


Didn't realize that you were using the Swoosh style, that sets its title 
using a layer. Therefore you need to use


\setupitemize[before=\null\vfill, after=\vfill]


The second one (\setupitemize[1][inbetween=\vfill]) changes things.
However, the first item is at the top of the screen and the second is
at the bottom. I would like them to be near the center. Something like
what 'middle' does for horizontal alignment with two words, I want to
do for vertical alignment.


This is useful only if the previous command works. You can play around 
with the amount of fill at the start and end to create symmetric looking 
layouts. For example:


\setupitemize[1][before={\null\vskip 1ex plus 2fill},
 after={\vskip 1ex plus 3fill}]
\setupitemize[1][inbetween=\vfill]

(Actually, rather than using the low-level \vskip, it is better to use 
ConTeXt high level interface using \blank. But I do not remember how 
create \blank with vertical glue).


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


Re: [NTG-context] vertical alignment in simpleslides

2011-03-05 Thread Curiouslearn
Awesome!! This worked great. I need to understand what 2fill and 3fill
does. I will try looking at Victor Eijkhout's book. But if you know of
any other easy reference, please let me know.

Thanks for your help.

Bharat

On Sat, Mar 5, 2011 at 11:56 PM, Aditya Mahajan adit...@umich.edu wrote:
 On Sat, 5 Mar 2011, Curiouslearn wrote:

 Thanks for the response, Aditya.

 However, the first method

   \setupitemize[before=\vfill,after=\vfill]

 does not change anything for me. The items are still at the top.

 Didn't realize that you were using the Swoosh style, that sets its title
 using a layer. Therefore you need to use

 \setupitemize[before=\null\vfill, after=\vfill]

 The second one (\setupitemize[1][inbetween=\vfill]) changes things.
 However, the first item is at the top of the screen and the second is
 at the bottom. I would like them to be near the center. Something like
 what 'middle' does for horizontal alignment with two words, I want to
 do for vertical alignment.

 This is useful only if the previous command works. You can play around with
 the amount of fill at the start and end to create symmetric looking layouts.
 For example:

 \setupitemize[1][before={\null\vskip 1ex plus 2fill},
                 after={\vskip 1ex plus 3fill}]
 \setupitemize[1][inbetween=\vfill]

 (Actually, rather than using the low-level \vskip, it is better to use
 ConTeXt high level interface using \blank. But I do not remember how create
 \blank with vertical glue).

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


Re: [NTG-context] I think I found a bug in \at

2011-03-05 Thread Wolfgang Schuster

Am 05.03.2011 um 20:21 schrieb Cecil Westerhof:

 I have the folowing code:
 \setuplanguage[nl][
   lefthyphenmin=5,
   righthyphenmin=4,
 ]
 \mainlanguage[nl]
 \language[nl]
 
 \enableregime[utf]
 
 \starttext
 
 Alleen een test om te laten zien dat de verwijzing
 naar \at{page}[test] niet goed gaat.
 
 \reference[test]{}
 
 \stoptext
 
 I would expect that \at{page}[test] gives:
 pagina 1
 but it gives:
 page 1
 
 Is it a bug, or am I doing something wrong?

This just prevents a line break between the text in the braces and the 
pagenumber, for language dependent labels you need \definereferenceformat.

\mainlanguage[nl]

\definereferenceformat
  [AtPage]
  [label=page,
  %autocase=no,
   ]

\starttext

\reference[test]{\pagenumber}

\at{page}[test]

\AtPage[test]

\stoptext

@Hans: What happend with “command=\at” for \definereferenceformat?

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


Re: [NTG-context] vertical alignment in simpleslides

2011-03-05 Thread Aditya Mahajan

On Sun, 6 Mar 2011, Curiouslearn wrote:


Awesome!! This worked great. I need to understand what 2fill and 3fill
does. I will try looking at Victor Eijkhout's book. But if you know of
any other easy reference, please let me know.


Think of fill as a spring that pushes both sides. 2fill is a spring that 
pushes twice as hard. With a \vskip 1ex plus 2fill at top and \vskip 1ex 
plus 3fill at bottom, 2/5 th of the total blank space is on the top, and 
3/5 th is at the bottom.


With inbetween=\vfill, and two items, the equation changes to

2/6th of the empty space on top
1/6th of the empty space inbetween the two items
3/6th of the empty at the bottom

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


Re: [NTG-context] vertical alignment in simpleslides

2011-03-05 Thread Curiouslearn
Thanks very much!! That makes it very clear.



On Sun, Mar 6, 2011 at 12:28 AM, Aditya Mahajan adit...@umich.edu wrote:
 On Sun, 6 Mar 2011, Curiouslearn wrote:

 Awesome!! This worked great. I need to understand what 2fill and 3fill
 does. I will try looking at Victor Eijkhout's book. But if you know of
 any other easy reference, please let me know.

 Think of fill as a spring that pushes both sides. 2fill is a spring that
 pushes twice as hard. With a \vskip 1ex plus 2fill at top and \vskip 1ex
 plus 3fill at bottom, 2/5 th of the total blank space is on the top, and 3/5
 th is at the bottom.

 With inbetween=\vfill, and two items, the equation changes to

 2/6th of the empty space on top
 1/6th of the empty space inbetween the two items
 3/6th of the empty at the bottom

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


[NTG-context] Underscore catcode in MkII (was Re: One-off theorem titles)

2011-03-05 Thread Aditya Mahajan

On Sat, 5 Mar 2011, Aditya Mahajan wrote:


On Fri, 4 Mar 2011, Hans Hagen wrote:


On 4-3-2011 7:05, Wolfgang Schuster wrote:

In which are these alternatives are better than my module__command, you 
replace only the _ by !


because an ! stands out; anyway, we should avoid multiple _ in a row

(i'll put a few mkvi modules in the core to get a feeling .. using _ does 
not always look better btw)


Here is an experiment with @ and _. I would prefer to change @ to :: (but for 
that we would need to change the ptrcatcodes).


https://github.com/adityam/filter/raw/dev/t-filter.tex


@Hans: does it make sense to change the catcode of underscore to letter in 
ptrcatcodes in MkII? Or would that just open a pandora's box?


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