[NTG-context] set-/finishregisterentry is killed

2011-02-14 Thread Steffen Wolfrum
Hi,

in current beta (2011.02.11 18:18 MKIV) set-/finishregisterentry is killed:
Empty pagenumbers only!

Please run attached example.

Steffen
---

\placeindex[method=first,criterium=all,compress=yes]

\starttext

\switchtobodyfont[50pt]

START\setregisterentry[index][label={Index_Label}]%
Test\dorecurse{10}{This is one long, long paragraph. }%
STOP\finishregisterentry[index][label={Index_Label},entries={Index entry}] Test

\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] delimitedtext, spacebefore and grid

2011-02-14 Thread Oliver Buerschaper
 Not sure if there are side effects but this works (requires mkiv and a recent 
 installation):
 
 \setuplayout[grid=yes]\showgrid
 \setupbodyfont[14pt]
 
 \usemodule[annotation]
 
 \define[2]\ZitatCommand
  {\topskip\dimexpr\topskip+\lineheight/2\relax
   \startnarrower
   “#2”%
   \stopnarrower}
 
 \defineannotation
  [zitat]
  [alternative=command,
   command=\ZitatCommand,
   spacebefore=halfline,
spaceafter=halfline]
 
 \starttext
 
 \startzitat
 \input tufte
 \stopzitat
 
 \dorecurse{2}{\input tufte\par}
 
 \startzitat
 \input tufte
 \stopzitat
 
 \dorecurse{3}{\input tufte\par}
 
 \startzitat
 \input tufte
 \stopzitat
 
 \input tufte
 
 \stoptext

Indeed, this solves the grid issue for block quotations broken across pages. 
Many thanks!

Unfortunately introducing a \blank just before the last \input tufte in the 
above example breaks grid alignment.

Oliver
___
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] Bug

2011-02-14 Thread Oliver Buerschaper
 here's a bug with quotations in 2011.02.11 18:18 MKIV:
 
 ---
 \starttext
 \startquotation
 \input tufte
 \stopquotation
 \stoptext
 ---
 
 The closing delimiter should be placed on the same line.
 
 This isn’t a bug, the included file ends the paragraph before
 \stopquotation adds the right quote and it ends up on a new line.

I was wondering because not too long ago (e.g. 2010.11.12 18:22 MKIV) this 
didn't happen… are included files now automatically terminated by an implicit 
\par? Personally I would find that confusing.

Oliver


___
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] delimitedtext, spacebefore and grid

2011-02-14 Thread Wolfgang Schuster

Am 14.02.2011 um 12:20 schrieb Oliver Buerschaper:

 Unfortunately introducing a \blank just before the last \input tufte in 
 the above example breaks grid alignment.

The afterspace-value from \stopzitat is ignored with your \blank and you get 
only one empty line while you need one and a half (one from the \blank command 
and a half from \stopzitat).

Nevertheless you can force the correct value with \blank[halfline,line]

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] Chapter Command causes ToC to not display correctly

2011-02-14 Thread Tom
The code below seems to work fine when the first MyChapterCommand is
commented out and the second one is active. However, when the first one is
active and the second one is commented out, the ToC does not display
properly. What could be causing this to happen?

I know that the first MyChapterCommand is not appropriate and use an
appropriate on in the front matter environment for the actual book.

\definetypeface [mainface] [rm] [serif] [palatino][default]
\definetypeface [mainface] [ss] [sans]  [iwona-heavy] [default]
\definetypeface [mainface] [tt] [mono]  [modern]  [default]
\definetypeface [mainface] [mm] [math]  [palatino][default]

\definetypeface [pagenumber] [ss] [sans] [iwona-light] [default]

\definetypeface [dedication] [rm] [serif] [chancery] [default]

\setupbodyfont[mainface]

%\starthiding
%Chapter number only - not appropriate for frontmatter
\def\MyChapterCommand#1#2% #1 is number, #2 is text
  {\framed[frame=off,bottomframe=on,topframe=on]
 {\vbox{\centerline{ #1 
%\stophiding

\starthiding
%lines above and below chapter number and title
\def\MyChapterCommand#1#2% #1 is number, #2 is text
  {\framed[frame=off,bottomframe=on,topframe=on]
 {\vbox{\headtext{chapter} #1\blank#2}}} 
\stophiding

% headings

\definestartstop[dedication][style={\switchtobodyfont[dedication,20pt]},befo
re=\page]
\definehead [intro] [chapter]

\setuphead[chapter][style=\ss\bfd,alternative=middle,
  command=\MyChapterCommand,
  header=empty,footer=chapter,
  after={\blank[0.5in]},before={\blank[force,1.0in]}
  \placeinitial]

\setuphead[intro][number=no]
\setuphead[dedication][incrementnumber=no]

\definecombinedlist [content][intro,chapter,section]

% pagenumbers

\setuppagenumbering
[state=start,alternative=doublesided,conversion=numbers,location=]
\setupheadertexts
 [chapter][pagenumber][pagenumber][My Book Title]
\setupheader[style={\switchtobodyfont[pagenumber,20pt]\sl}]

%turn on indentation 
\setupindenting[yes,medium,next]

\starttext
\dedication{}
\startdedication
\startalignment[middle]
To someone who inspired or supported me. Let's see how this works for
dedications that span multiple lines.
\stopalignment
\stopdedication
\completecontent
\intro{Introduction - Ag}
\input knuth
\chapter{First chapter - Ag}
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\chapter{Second Chapter - Ag}
\input knuth
\stoptext



Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com





___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] delimitedtext, spacebefore and grid

2011-02-14 Thread Oliver Buerschaper
 Unfortunately introducing a \blank just before the last \input tufte in 
 the above example breaks grid alignment.
 
 The afterspace-value from \stopzitat is ignored with your \blank and you get 
 only one empty line while you need one and a half (one from the \blank 
 command and a half from \stopzitat).
 
 Nevertheless you can force the correct value with \blank[halfline,line]

Sure, that's a good workaround.

In the long run would it be possible in grid mode to have \blank insert 1+x 
lines of vertical space where x is adjusted such that the following material is 
aligned on the grid?

Oliver
___
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] delimitedtext, spacebefore and grid

2011-02-14 Thread Oliver Buerschaper
 In the long run would it be possible in grid mode to have \blank insert 1+x 
 lines of vertical space where x is adjusted such that the following material 
 is aligned on the grid?

… or simply make it not swallow the previous halfline correction from the 
quotation?

Oliver
___
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] Bug

2011-02-14 Thread Peter Münster
Oliver Buerschaper oliver.buerscha...@mpq.mpg.de writes:

 I was wondering because not too long ago (e.g. 2010.11.12 18:22 MKIV) this
 didn't happen… are included files now automatically terminated by an implicit
 \par? Personally I would find that confusing.

No answer to your question, just a workaround:

\starttext
\section{Paragraph}
\input tufte
\input tufte

\section{No paragraph}
{\endlinechar=-1 \input tufte }
\input tufte

\section{Limitations of this workaround}
{\endlinechar=-1 \input knuth }
\input knuth
\stoptext

See also: http://wiki.contextgarden.net/How_TeX_reads_input

-- 
   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] korean (was Re: ntg-context Digest, Vol 80, Issue 49)

2011-02-14 Thread Hans Hagen

On 12-2-2011 5:08, Jeong Dalyoung wrote:


the order should be

ㄱ, ㄴ, ㄷ, ㄹ, ㅁ, ㅂ, ㅅ, ㅇ, ㅈ, ㅊ, ㅋ, ㅌ, ㅍ, ㅎ


Ok, I now use a slightly different method. There's a new beta:

- new experimental korean sorter
- reworked mp extension mechanism (to better suit Mojca's gnuplot 
torture test)

- hopefully better otf/ttf suffix mixup checking
- small datefix for willi

New feature of the day:

\starttext

\startMPpage
draw
bitmapimage(2,2,334455 667788 99aabb ccddee)
scaled 3cm
rotated 15 ;
draw
bitmapimage(2,2,33 55 77 99)
scaled 2cm
rotated 30 ;
draw
bitmapimage(2,2,ff00 ff00ff00 00ff )
scaled 1cm
rotated 45 ;
\stopMPpage

\stoptext


-
  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] delimitedtext, spacebefore and grid

2011-02-14 Thread Wolfgang Schuster

Am 14.02.2011 um 18:18 schrieb Oliver Buerschaper:

 In the long run would it be possible in grid mode to have \blank insert 1+x 
 lines of vertical space where x is adjusted such that the following material 
 is aligned on the grid?
 
 … or simply make it not swallow the previous halfline correction from the 
 quotation?


Took me a while but this does what you want:

\blank[line,category:4]

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

2011-02-14 Thread Wolfgang Schuster

Am 14.02.2011 um 12:25 schrieb Oliver Buerschaper:

 I was wondering because not too long ago (e.g. 2010.11.12 18:22 MKIV) this 
 didn't happen… are included files now automatically terminated by an implicit 
 \par? Personally I would find that confusing.

Can be a bug in luatex because i can’t find anything where context changes the 
\input command (except playing with the name).

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

2011-02-14 Thread Hans Hagen

On 14-2-2011 7:08, Wolfgang Schuster wrote:


Am 14.02.2011 um 12:25 schrieb Oliver Buerschaper:


I was wondering because not too long ago (e.g. 2010.11.12 18:22 MKIV) this didn't happen… 
are included files now automatically terminated by an implicit \par? 
Personally I would find that confusing.


Can be a bug in luatex because i can’t find anything where context changes the 
\input command (except playing with the name).


it's the \everyeof thing ..


-
  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] curly bracket different values (entries)

2011-02-14 Thread Pau
Hello,

I am trying to get something like the x_n equation here (second one):

http://latex.knobs-dials.com/images/47c5c3f63c4c9dcbdf4b4b4e362b01d00b8cb62b.100.png

but I am failing... this is my pathetic trial... any help would be
appreciated. Thanks!

\placeformula
\startformula
\phi^{N(n)}_m = \left{
\eqalign{
\phi^{R(n)}_m  {\rm inside the worldtube}\,, \cr
\phi_m {\rm outside the worldtube} \,,
}
\stopformula
___
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] using · in math mode

2011-02-14 Thread Paul Menzel
Dear ConTeXt folks,


I am using the Neo keyboard layout [1], which enables me to directly
enter several UTF-8 characters.

The dot »·« is one of those characters [2] and I like to use it in math
mode instead of `\cdot`.

But in math mode it is some kind of bold lower dot (see attachment) and
not ·. In works fine “text mode”.

\starttext
$a · b = a \cdot \text{ (\\cdot) } b = ab$

in text ·
\stoptext

Is the wrong UTF-8 character used or can ConTeXt be adapted to use »·«
as would like to?


Thanks,

Paul


[1] http://www.neo-layout.org/
[2] http://wiki.neo-layout.org/browser/A-REFERENZ-A/neo20.txt#L225


cdot.pdf
Description: Adobe PDF document
\starttext
$a · b = a \cdot \text{ (\\cdot) } b = ab$

in text ·
\stoptext


signature.asc
Description: This is a digitally signed message part
___
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] Chapters not sowing up in ToC

2011-02-14 Thread Tom
When attempting to place only the chapter number on the first page of a
chapter, the chapters do not appear in the ToC  the ToC does not display.
Inserting #2 just before the last } in the definition for MyChapterCommand
causes the ToC to appear with chapter names although it and the chapters are
ugly.

Is it necessary to include chapter names at the beginning of chapters?
Perhaps this is intended because leaving chapter names off the beginning of
chapters would reduce the value of the ToC. Maybe ToCs are not desired in
such situations.


%insert #2 before last } to cause ToC to appear although
%very ugly
\def\MyChapterCommand#1#2% #1 is number, #2 is text
  {\framed[frame=off]
 {\vbox{\centerline{\headtext{chapter} #1 

\setuphead[chapter]
 [command=\MyChapterCommand,
  header=empty,footer=chapter,page=mychapterpagebreak,
  after={\blank[0.5in]},before={\blank[force,1.0in]}]

\starttext

\completecontent
\chapter{The First Chapter}
\input knuth
\chapter{The\\Second\\Chapter}
\input knuth
\stoptext


Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com








___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Problems with (features of?) hangaround text

2011-02-14 Thread Procházka Lukáš

Hello,

I'd need to place a picture and let it be flowed by some text from the right 
side.

My observation is that only one (= the first) paragraph flows the picture correctly (see 
the \input tufte only case); see the attached example.

It there a way how to:

- enable heads (e.g. \subject) in the hang-around area (see the Ccc text 
placement)?

- enable more than one paragraph in the hang-around area (see the knuth being 
\input)?

- enable tabulate (see TTT ttt and UUU uuu lines)? (The C tabulate style is 
defined in the way that the rightmost column should have fixed width of 2 in, whilst the leftmost column should have remaining width; 
remaining in this case should mean \textwidth minus width-of-the-picture (minus some gap).)

I can imagine that \(start/stop)hangaround command is a bit limited and/or experimental in use; anyway - is 
there another way how to earmark some area for a picture and to use the remaining 
space for text flowing as usual with less restrictions?

Best regards,

Lukas

t-Hang.mkiv
Description: Binary data


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


Re: [NTG-context] curly bracket different values (entries)

2011-02-14 Thread Pau
\startformula
 \phi^{N(n)}_m = \startmathcases
 \NC \phi^{R(n)}_m \MC \text{inside the worldtube}\NR
   \MC \text{outside the worldtube}\NR
 \NC 1
\stopmathcases
\stopformula

Oh, thanks a lot, man!



On 14 February 2011 20:27, Pau vim.u...@googlemail.com wrote:
 Hello,

 I am trying to get something like the x_n equation here (second one):

 http://latex.knobs-dials.com/images/47c5c3f63c4c9dcbdf4b4b4e362b01d00b8cb62b.100.png

 but I am failing... this is my pathetic trial... any help would be
 appreciated. Thanks!

 \placeformula
 \startformula
 \phi^{N(n)}_m = \left{
 \eqalign{
 \phi^{R(n)}_m  {\rm inside the worldtube}\,, \cr
 \phi_m         {\rm outside the worldtube} \,,
 }
 \stopformula

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

2011-02-14 Thread Hans Hagen

On 14-2-2011 8:32, Florian Wobbe wrote:


Of cause, but I didn't want to include Figure in the link. Never mind, as 
long as I can work around this with a reference format.


fyi: you can say autocase=yes so that e.g. page becomes Page when it 
ends up at the beginning of a line.


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

2011-02-14 Thread Hans Hagen

On 14-2-2011 6:34, Peter Münster wrote:

Oliver Buerschaperoliver.buerscha...@mpq.mpg.de  writes:


I was wondering because not too long ago (e.g. 2010.11.12 18:22 MKIV) this
didn't happen… are included files now automatically terminated by an implicit
\par? Personally I would find that confusing.


No answer to your question, just a workaround:

\starttext
\section{Paragraph}
\input tufte
\input tufte

\section{No paragraph}
{\endlinechar=-1 \input tufte }
\input tufte

\section{Limitations of this workaround}
{\endlinechar=-1 \input knuth }
\input knuth
\stoptext



can you test again?

-
  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] using · in math mode

2011-02-14 Thread Aditya Mahajan

On Mon, 14 Feb 2011, Paul Menzel wrote:


Dear ConTeXt folks,


I am using the Neo keyboard layout [1], which enables me to directly
enter several UTF-8 characters.

The dot »·« is one of those characters [2] and I like to use it in math
mode instead of `\cdot`.

But in math mode it is some kind of bold lower dot (see attachment) and
not ·. In works fine “text mode”.

   \starttext
   $a · b = a \cdot \text{ (\\cdot) } b = ab$

   in text ·
   \stoptext

Is the wrong UTF-8 character used or can ConTeXt be adapted to use »·«
as would like to?


The dot that you have entered is 0x00B7 which is periodcentered. The cdot 
maps to 22C5.


Everything works fine if you use a unicode math font (cambria or xits). In 
LM, there is a bug in the mappings. For some reason 00B7 is mapped to 
squaresmallsolid in tex-ma. I need to check why that definition is there 
before determining how to fix it (which is relatively easy).


OT: Is there a timeline for LM OpenType Math?

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] Problems with (features of?) hangaround text

2011-02-14 Thread Aditya Mahajan

On Mon, 14 Feb 2011, Procházka Lukáš wrote:


Hello,

I'd need to place a picture and let it be flowed by some text from the right 
side.


My observation is that only one (= the first) paragraph flows the picture 
correctly (see the \input tufte only case); see the attached example.


It there a way how to:

- enable heads (e.g. \subject) in the hang-around area (see the Ccc text 
placement)?


- enable more than one paragraph in the hang-around area (see the knuth being 
\input)?


Have you tried

\placefigure[right,none]{}{\externalfigure[...]}

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] using · in math mode

2011-02-14 Thread Hans Hagen

On 15-2-2011 12:07, Aditya Mahajan wrote:

On Mon, 14 Feb 2011, Paul Menzel wrote:


Dear ConTeXt folks,


I am using the Neo keyboard layout [1], which enables me to directly
enter several UTF-8 characters.

The dot »·« is one of those characters [2] and I like to use it in math
mode instead of `\cdot`.

But in math mode it is some kind of bold lower dot (see attachment) and
not ·. In works fine “text mode”.

\starttext
$a · b = a \cdot \text{ (\\cdot) } b = ab$

in text ·
\stoptext

Is the wrong UTF-8 character used or can ConTeXt be adapted to use »·«
as would like to?


The dot that you have entered is 0x00B7 which is periodcentered. The
cdot maps to 22C5.

Everything works fine if you use a unicode math font (cambria or xits).
In LM, there is a bug in the mappings. For some reason 00B7 is mapped to
squaresmallsolid in tex-ma. I need to check why that definition is there
before determining how to fix it (which is relatively easy).


ok


OT: Is there a timeline for LM OpenType Math?


an elastic one -)

and even than, we will keep the virtual ones around as we also use them 
for torture testing that mechanism


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] Stretching chapter titles - MKII

2011-02-14 Thread Tom

Follows is some code that executes. The lines immediately following
\starttext create a sample of the desired output format. However, I want to
accomplish similar results for chapter titles via the passing of arguments
containing the chapter title and number. Numerous attempts at that have
resulted in abject failure. I am clearly missing something.


\def\MyChapterCommand#1#2
  {\switchtobodyfont[ss,30pt]
   \hbox to \hsize {\stretched{Chapter\\One}}
   \blank[small]
   \switchtobodyfont[sansbold,20pt]
   \hbox to \hsize {\stretched{It\\Was\\The\\Best\\Of\\Times}}}

\setuphead[chapter]
 [command=\MyChapterCommand,
  header=empty,footer=chapter,page=mychapterpagebreak,
  after={\blank[0.5in]},before={\blank[force,1.0in]}]
  

\starttext
\switchtobodyfont[sans,30pt]
\hbox to \hsize {\stretched{Chapter\\One}}
\blank[small]
\switchtobodyfont[sansbold,20pt]
\hbox to \hsize {\stretched{It\\Was\\The\\Best\\Of\\Times}}

\chapter{It\\Was\\The\\Best\\Of\\Times}
\input knuth
\stoptext

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com





___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Problems with (features of?) hangaround text

2011-02-14 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

thanks Aditya, \placefigure does the job:

- multiple paragraphs flow the picture - OK,

- heads may flow the picture as well (\setupheads[aligntitle=float] required) 
- OK,

- tabulate is still drawn over the picture, but it doesn't cause jumping to the bottom 
of the picture - useful. (In my actual case, this only means to not use the first column of 
tabulate which only one would overwrite the picture - that's OK.)

The final test is attached.

Thanks again.

Lukas


On Tue, 15 Feb 2011 00:09:42 +0100, Aditya Mahajan adit...@umich.edu wrote:


\placefigure[right,none]{}{\externalfigure[...]}

Aditya



--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

t-Hang.mkiv
Description: Binary data


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


Re: [NTG-context] Problems with (features of?) hangaround text (case study 2)

2011-02-14 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

still some problems inserting a tabulate next to the picture (to be flowed 
around) - see the case study:

- Case 1:

There is some (unwanted) space bellow the picture which is not occupied by the surrounding text. It 
seems the height of tabulate is added bellow the picture and creates some 
restricted area.

- Case 2:

When all cells in the first column in the tabulate are empty (\NC \NC), the first 
column is somehow ignored (?!).

- Case 3:

There must be a space (some horizontal material?) at least in one cell of the 
first column to avoid ignoring the first column.

So - is it restricted to use tabulate next to a picture to be flowed around?

- I used tabulate to align some text horizontally. In the case attached, I'd like the 
rightmost column to have 2 inches in width and to be left-aligned. And I'd need to keep this 
disposition also in the flow around area next to the picture. Is there another way to achieve this, 
if this were not possible to use tabulate?

Best regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

t-Hang2.mkiv
Description: Binary data


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


Re: [NTG-context] Stretching chapter titles - MKII

2011-02-14 Thread Hans Hagen

On 15-2-2011 1:45, Tom wrote:


Follows is some code that executes. The lines immediately following
\starttext create a sample of the desired output format. However, I want to
accomplish similar results for chapter titles via the passing of arguments
containing the chapter title and number. Numerous attempts at that have
resulted in abject failure. I am clearly missing something.


\def\MyChapterCommand#1#2
   {\switchtobodyfont[ss,30pt]
\hbox to \hsize {\stretched{Chapter\\One}}
\blank[small]
\switchtobodyfont[sansbold,20pt]
\hbox to \hsize {\stretched{It\\Was\\The\\Best\\Of\\Times}}}

\setuphead[chapter]
  [command=\MyChapterCommand,
   header=empty,footer=chapter,page=mychapterpagebreak,
   after={\blank[0.5in]},before={\blank[force,1.0in]}]


\starttext
\switchtobodyfont[sans,30pt]
\hbox to \hsize {\stretched{Chapter\\One}}
\blank[small]
\switchtobodyfont[sansbold,20pt]
\hbox to \hsize {\stretched{It\\Was\\The\\Best\\Of\\Times}}

\chapter{It\\Was\\The\\Best\\Of\\Times}
\input knuth
\stoptext


you can try deepcommand=\stretched but as this macro does parsing and 
lots of things can happen in titles there are no guarantees


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
___