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

2011-03-04 Thread Hans Hagen

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)



I know that \do \dodo \dododo is not the best notation, but I don't
find _ __ ___ better.


I don’t like the __ and ___ either but do you know a better way for good
names without using do, dodo, nodo, yes or nop?


we can have module_do_bla or module_x_bla module_xx_bla etc


I find that \module__command and \module___command are hard to
distinguish. For helper macros, a better idea might be:

\module_command
\module_command!
\module_command!!


or

\module_!_command
\module_!!_command


These commands are easy to distinguish visually. But this will not work
for too well for three or four levels. I think that none of the schemes
look good for three or four levels. Perhaps we could mix both existing
schemes to get something reasonable:

\module_command
\module_command!
\module_command!do
\module_command!redo

or maybe

\module_command
\module_command_one
\module_command_two
\module_command_three


or

\module_command_a
\module_command_b
\module_command_aa (used by _a)

etc

actually we can use ^ if we want:

\module_^_command
\module_^^_command

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
___


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

2011-03-04 Thread Hans Hagen

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


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


in a mkvi file we can actually support \module.command if we want as we 
can convert it into \module_command so both would be equivalent then


-
  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] One-off theorem titles

2011-03-04 Thread luigi scarso
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
?
(it's erlang style)
-- 
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
___


[NTG-context] about \framed and \inframed

2011-03-04 Thread 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.

How can I do it?

Thank you for reading.

Best regards,

Dalyoung
___
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] file dependencies

2011-03-04 Thread Hans Hagen

On 3-3-2011 8:36, Peter Münster wrote:

Hello,

Here comes a little feature request: it would be nice, if context
allowed us to write a file with dependency information, like a
C-compiler does for the dependencies of a C-file on the included header
files. The best would be, to get such dependencies directly in Makefile
syntax.

Example:

Say you have a main context file main.tex that includes an environment
file ../env.tex and a figure subdir/figure.jpg, then running

 context --dependencies=main.d main

would create main.pdf and also main.d with this line:

 main.tex: ../env.tex subdir/figure.jpg



--directives=system.dumpfiles

should do that but it's currently broken (kicks on too soon due to 
directives being initialized earlier than before) .. i'll fix it


(but no make file output, at least not now as i never used make directly 
so i have no clue what goes in there)


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] Fwd: EuroBachoTeX 2011 --registrations are open

2011-03-04 Thread Willi Egger
Beste leden, dear members and readers of the ConTeXt mailing list,

Onze Poolse vrienden hebben mij onderstaand mailtje gestuurd. Ik verzoek jullie 
actie te nemen...
Vriendelijke groeten


Our Polish friends sent me the mail which I forward to you. Please act 
accordingly.
Kind regards

Willi Egger
Secretary NTG

Begin forwarded message:

 From: Jerzy Ludwichowski jerzy.ludwichow...@uni.torun.pl
 Date: 4 March 2011 13:10:49 CET
 To: LUG boards lug-boa...@ifi.uio.no
 Subject: EuroBachoTeX 2011 --registrations are open
 Reply-To: lug-boa...@ifi.uio.no
 
 Hello,
 
 please forward this to your members:
 
 Dear Friends,
 
 since March 1 the registration for EuroBAchoTeX 2011 is open. Please hurry :-)
 
 Also, the Program Committee awaits conference papers: 
 http://www.gust.org.pl/bachotex/2011-en/cfp1-en
 
 Regards,
 -- Jerzy Ludwichowski
 

___
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] $n\choose k$-issue with OpenType math fonts

2011-03-04 Thread Andreas Harder
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?

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


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

2011-03-04 Thread 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


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
___


Re: [NTG-context] file dependencies

2011-03-04 Thread Peter Münster
Hans Hagen pra...@wxs.nl writes:

 --directives=system.dumpfiles

 should do that but it's currently broken

Indeed. That's exactly what I'd tried before sending my request.
I guess, the output file will have a special name?


 (but no make file output, at least not now as i never used make directly so i
 have no clue what goes in there)

That's good. It's even better, because more flexible. All we need, is
the list of included files, then you can do whatever you want in the
Makefile, for example: DEPS = $(shell cat dependencies.dump)

Thanks!
-- 
   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] Text to edges of page

2011-03-04 Thread John Haltiwanger
Hi all,

I would have though the following code would produce text flush to the edges
of the paper, but there is significant whitespace on the right and bottom
sides. Probably there is an obvious setting, but it eludes me now:

\definepapersize[short][width=600px,height=440px]
\setuppapersize[short][short]

\setuplayout[
backspace=0mm,
topspace=0mm,
margin=0mm,
header=0mm,
footer=0mm
]

\setupindenting[none]

\setupwhitespace[medium]
\setupinterlinespace[22pt]

\starttext

\input Tufte

\input Knuth

\input Tufte

\stoptext
___
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] Text to edges of page

2011-03-04 Thread John Haltiwanger
Nevermind, the answer is simple:

\setuplayout[

backspace=0mm,
topspace=0mm,
margin=0mm,
header=0mm,
footer=0mm
width=600px,
height=440px
]



On Fri, Mar 4, 2011 at 4:29 PM, John Haltiwanger john.haltiwan...@gmail.com
 wrote:

 Hi all,

 I would have though the following code would produce text flush to the
 edges of the paper, but there is significant whitespace on the right and
 bottom sides. Probably there is an obvious setting, but it eludes me now:

 \definepapersize[short][width=600px,height=440px]
 \setuppapersize[short][short]

 \setuplayout[
 backspace=0mm,
  topspace=0mm,
 margin=0mm,
 header=0mm,
  footer=0mm
 ]

 \setupindenting[none]

 \setupwhitespace[medium]
 \setupinterlinespace[22pt]

 \starttext

 \input Tufte

 \input Knuth

 \input Tufte

 \stoptext

___
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] Text to edges of page

2011-03-04 Thread Wolfgang Schuster

Am 04.03.2011 um 16:40 schrieb John Haltiwanger:

 Nevermind, the answer is simple:
 
 \setuplayout[
 
   backspace=0mm,
   topspace=0mm,
   margin=0mm,
   header=0mm,
   footer=0mm
 width=600px,
 height=440px
 ]

You can use “width=middle” and “height=middle” and don’t forget the “,” after 
the last value (i.e. “height=440px,”) but for a layout without margins you can 
just use “\setuplayout[page]”.

\setuplayout[page]
\starttext
\dorecurse{12}{\input tufte\par}
\stoptext

For a simple layout with equal margins you can use the fullpage module:

\usemodule[fullpage][style={margin,empty},margin=5mm]
\showframe
\starttext
\input tufte
\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
___


[NTG-context] Disable tex ligatures in MkII

2011-03-04 Thread Aditya Mahajan

How do I disable TeX ligatures in MkII. The following does not work:

\starttext
  \tttf\normalnoligatures\font
  -- ---
\stoptext

Thanks
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-04 Thread Wolfgang Schuster

Am 04.03.2011 um 11:33 schrieb Hans Hagen:

 I don’t like the __ and ___ either but do you know a better way for good
 names without using do, dodo, nodo, yes or nop?
 
 we can have module_do_bla or module_x_bla module_xx_bla etc

I think module_bla, module_bla_do, module_bla_redo etc. is better

 I find that \module__command and \module___command are hard to
 distinguish. For helper macros, a better idea might be:
 
 \module_command
 \module_command!
 \module_command!!
 
 or
 
 \module_!_command
 \module_!!_command

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

 These commands are easy to distinguish visually. But this will not work
 for too well for three or four levels. I think that none of the schemes
 look good for three or four levels. Perhaps we could mix both existing
 schemes to get something reasonable:
 
 \module_command
 \module_command!
 \module_command!do
 \module_command!redo
 
 or maybe
 
 \module_command
 \module_command_one
 \module_command_two
 \module_command_three
 
 or
 
 \module_command_a
 \module_command_b
 \module_command_aa (used by _a)

+1

 etc
 
 actually we can use ^ if we want:
 
 \module_^_command
 \module_^^_command

Just another form of module_!_command or module__command.

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] Disable tex ligatures in MkII

2011-03-04 Thread Wolfgang Schuster

Am 04.03.2011 um 18:59 schrieb Aditya Mahajan:

 How do I disable TeX ligatures in MkII. The following does not work:
 
 \starttext
  \tttf\normalnoligatures\font
  -- ---
 \stoptext

% engine=pdftex
\usetypescript[modern][texnansi]
\setupbodyfont[modern]
\starttext
{\tt -- ---}
\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] One-off theorem titles

2011-03-04 Thread Hans Hagen

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)


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
___


Re: [NTG-context] Disable tex ligatures in MkII

2011-03-04 Thread Aditya Mahajan

On Fri, 4 Mar 2011, Wolfgang Schuster wrote:



Am 04.03.2011 um 18:59 schrieb Aditya Mahajan:


How do I disable TeX ligatures in MkII. The following does not work:

\starttext
 \tttf\normalnoligatures\font
 -- ---
\stoptext


% engine=pdftex
\usetypescript[modern][texnansi]
\setupbodyfont[modern]


Thanks. That works. But I am confused why it does not work with the 
default font setup? Different encoding?


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

The placement is right for $n\above 1sp k$, only if the thickness of the par is 
set to 0, the ‚k‘ is lowered. Perhaps some patch in goodie-file is possible, so 
one could load it in a font definition.

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
___