[NTG-context] howto set maxitemdepth

2011-02-27 Thread Florian Wobbe
Hi,

what is the preferred way to set the maximum item depth for itemization with 
symbols? I can decrease the default value of 6 with \setcounter. However, 
increasing to values higher than 6 results in an error: Missing number, 
treated as zero.

Thanks,
Florian

___
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] defined symbols - question/feature suggestion

2011-02-27 Thread Florian Wobbe
 a next beta will have
 
 \definesymbol [bullet][\textormathchar{2022}] % • \bullet
 \definesymbol [dash]  [\textormathchar{2013}] % –
 \definesymbol [star]  [\textormathchar{22C6}] % ✴ \star
 \definesymbol [triangle]  [\textormathchar{22B3}] % ⊳ \triangleright
 \definesymbol [circle][\textormathchar{2218}] % ∘ \circ
 \definesymbol [square][\textormathchar{25A1}] % □ \square
 \definesymbol [diamond]   [\textormathchar{22C4}] % ⋄ \diamond
 \definesymbol [checkmark] [\textormathchar{2713}] % ✓ \checkmark
 
 \definesymbol [blacktriangle] [\textormathchar{25B6}] % ▶
 \definesymbol [blacksquare]   [\textormathchar{25A0}] % ■
 \definesymbol [blackdiamond]  [\textormathchar{25C6}] % ◆
 
 but it's experimental (and fonts like cambria don't have all of them)

Thanks Hans,

\startsymbolset and \setupsymbolset are very convenient to quickly change 
between different sets of symbols.

Florian

___
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] howto set maxitemdepth

2011-02-27 Thread Wolfgang Schuster

Am 27.02.2011 um 11:01 schrieb Florian Wobbe:

 Hi,
 
 what is the preferred way to set the maximum item depth for itemization with 
 symbols?

With MkII it was possible to increase the itemlevel with the “levels” key but 
MkIV has a fixed depth which can’t be changed.

 I can decrease the default value of 6 with \setcounter. However, increasing 
 to values higher than 6 results in an error: Missing number, treated as 
 zero.

\maxitemdepth is a real counter and \setcounter won’t work here. The only thing 
you can do is to ask Hans to implement the “levels” key in MkIV. What you have 
to know is that this key is only used when you define a new list with 
\defineitemgroup, for a already existing group like “itemize” you can increase 
the depth.

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] \definelistplacement + margin

2011-02-27 Thread Wolfgang Schuster

Am 26.02.2011 um 20:46 schrieb Andreas Harder:

 Hi all,
 
 please have a look at the following example. The first chapter entry in the 
 table of contents looks good, but the following entries adopt the margin 
 setting from \setuplist[section][margin=3em] and I can't get rid of it … Any 
 hint?

Use the “command” alternative.

\define[3]\ChapterList
  {\inframed[width=broad]{#1\emspace#2\hfill#3}}
% {\inframed[width=broad]{#1\hspace[big]#2\wordright{#3}}}

\setuplist[chapter][alternative=command,command=\ChapterList]

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] \definelistplacement + margin

2011-02-27 Thread Andreas Harder
Am 27.02.2011 um 11:58 schrieb Wolfgang Schuster:

 
 Am 26.02.2011 um 20:46 schrieb Andreas Harder:
 
 Hi all,
 
 please have a look at the following example. The first chapter entry in the 
 table of contents looks good, but the following entries adopt the margin 
 setting from \setuplist[section][margin=3em] and I can't get rid of it … Any 
 hint?
 
 Use the “command” alternative.
 
 \define[3]\ChapterList
  {\inframed[width=broad]{#1\emspace#2\hfill#3}}
 % {\inframed[width=broad]{#1\hspace[big]#2\wordright{#3}}}
 
 \setuplist[chapter][alternative=command,command=\ChapterList]

Hi Wolfgang,

I'm aware of this, but the benefit of \definelistplacement is that interaction 
can be used.

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] \definelistplacement + margin

2011-02-27 Thread Wolfgang Schuster

Am 27.02.2011 um 12:02 schrieb Andreas Harder:

 I'm aware of this, but the benefit of \definelistplacement is that 
 interaction can be used.

If interaction is the important factor i suggest to add a “margin” key to the 
“none”, “horizontal” and “vertical” alternatives. All three support the 
“command” key and you can make your own layout.

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] howto set maxitemdepth

2011-02-27 Thread Florian Wobbe
 Hi,
 
 what is the preferred way to set the maximum item depth for itemization with 
 symbols?
 
 With MkII it was possible to increase the itemlevel with the “levels” key but 
 MkIV has a fixed depth which can’t be changed.

Strange, I tried \defineitemgroup[myitm][levels=11] in MKII but still I get 
currently no more than 6 levels in itemizations. Levels do not seem to work 
anymore.

 I can decrease the default value of 6 with \setcounter. However, increasing 
 to values higher than 6 results in an error: Missing number, treated as 
 zero.
 
 \maxitemdepth is a real counter and \setcounter won’t work here. The only 
 thing you can do is to ask Hans to implement the “levels” key in MkIV. What 
 you have to know is that this key is only used when you define a new list 
 with \defineitemgroup, for a already existing group like “itemize” you can 
 increase the depth.

OK. What I don't understand is why is there a hardcoded limit? The indentation 
of depth greater than 6 is working all right only the symbols are kept constant 
(\definesymbol[6]) for all depth  6.

Florian

___
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] \definelistplacement + margin

2011-02-27 Thread Andreas Harder

Am 27.02.2011 um 12:13 schrieb Wolfgang Schuster:

 
 Am 27.02.2011 um 12:02 schrieb Andreas Harder:
 
 I'm aware of this, but the benefit of \definelistplacement is that 
 interaction can be used.
 
 If interaction is the important factor i suggest to add a “margin” key to the 
 “none”, “horizontal” and “vertical” alternatives. All three support the 
 “command” key and you can make your own layout.

It's not that important, but I thought it would be nice to have. 

Anyway I'm not sure what you suggests. To add \leftskip\listparameter\c!margin 
to \dodofreehlistelement (like it is defined for \dodofixdlistelementABC)?

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] \definelistplacement + margin

2011-02-27 Thread Wolfgang Schuster

Am 27.02.2011 um 13:25 schrieb Andreas Harder:

 Anyway I'm not sure what you suggests. To add 
 \leftskip\listparameter\c!margin to \dodofreehlistelement (like it is defined 
 for \dodofixdlistelementABC)?

Yes

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] howto set maxitemdepth

2011-02-27 Thread Hans Hagen

On 27-2-2011 12:34, Florian Wobbe wrote:


OK. What I don't understand is why is there a hardcoded limit? The indentation of 
depth greater than 6 is working all right only the symbols are kept constant 
(\definesymbol[6]) for all depth  6.


it has to do with the fact that there can be settings set for 'each' 
level so the number of levels should be known then


i'll add a levels key as well as auto level support but don't complain 
when you have to redo settings after incrementing levels


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] ConTeXt and Drupal

2011-02-27 Thread Bowen Alan C.
Does anyone know of a project or literature addressing the possibility of 
running ConTeXt in a Drupal environment? There is a DruTeX module already in 
place but that, so far as I can tell, it is limited to LaTeX.

Alan



___
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] MathML broken in mkiv?

2011-02-27 Thread Reviczky, Adam
Hi

I'm trying to use MathML with mkiv (latest beta), but I'm getting errors.
I'm attaching the minimal example (borrowed from the wiki) and the log file.

Adam
\usemodule[mathml]
\starttext
test
\xmlprocessdata{}{
math xmlns='http://www.w3.org/1998/Math/MathML'
 mrow
  msup mix/mimn2/mn /msup
  mo+/mo
  mrow
mn4/mnmix/mi
  /mrow
  mo+/mo
  mn4/mn
 /mrow
/math
}{}
\stoptext
(mathml.tex

ConTeXt  ver: 2011.02.25 22:03 MKIV  fmt: 2011.2.26  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   mathml.top loaded
system   options  begin of optionfile
system   options 
system   options  % runtime options files (command line driven)
system   options  \unprotect
system   options  % feedback and basic job control
system   options  % handy for special styles
system   options  \startluacode
system   options  document = document or { }
system   options  document.arguments={
system   options  }
system   options  document.files={
system   options   mathml.tex,
system   options  }
system   options  \stopluacode
system   options  % process info
system   options  \setupsystem[inputfile=mathml.tex]
system   options  \setupsystem[\c!n=1,\c!m=1]
system   options  % modes
system   options  % options (not that important)
system   options  \startsetups *runtime:options
system   options  \stopsetups
system   options  % styles and modules
system   options  \startsetups *runtime:modules
system   options  \stopsetups
system   options  % done
system   options  \protect \endinput
system   options 
system   options  end of optionfile
(mathml.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
resolversmodules  loaded: 'mathml'
(/usr/share/texmf/tex/context/base/x-mathml.mkiv
loading  ConTeXt XML Macros / MathML Renderer
- /usr/share/texmf/tex/context/base/x-mathml.lua
resolversmodules  loaded: 'calcmath'
(/usr/share/texmf/tex/context/base/x-calcmath.mkiv+ /usr/share/texmf/tex/context/base/x-calcmath.lua)){/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 mathml.tex at line 2
xml  lpath  unknown function 'remapopenmath'
xml  lpath  unknown function 'remapmmlbind'
xml  lpath  unknown function 'remapmmlcsymbol'
! LuaTeX error main ctx instance:1: attempt to index field 'mathml' (a nil value)
stack traceback:
	main ctx instance:1: in main chunk.

system   tex  error on line 7 in file mathml.tex: LuaTeX error  ...

 1 \usemodule[mathml]
 2 \starttext
 3 test
 4 \xmlprocessdata{}{
 5 math xmlns='http://www.w3.org/1998/Math/MathML'
 6  mrow
 7 msup mix/mimn2/mn /msup
 8   mo+/mo
 9   mrow
10 mn4/mnmix/mi
11   /mrow
12   mo+/mo
13   mn4/mn
14  /mrow
15 /math
16 }{}
17 \stoptext


\ctxmodulemathml ...rocount {moduledata.mathml.#1}
  
\@@su:mml:mo ...miter }\ctxmodulemathml {mo(#1)}
  \setfalse \mmlignoredelimi...
l.7 }
 
\ctxlxml #1-\directlua \zerocount {lxml.#1}

\checkdelimiters ...\right \rightfakedelimiter $#1
  \expandafter $\expandafter...
argument ...kdelimiters {\xmlall {::3}{/mml:mo}}
  \fakeleftdelimiter \xmlflu...
...
l.16 }{}

? q
OK, entering \batchmode...
! LuaTeX error main ctx instance:1: attempt to index field 'mathml' (a nil value)
stack traceback:
	main ctx instance:1: in main chunk.


system   tex  error on line 14 in file mathml.tex: LuaTeX error  ...

 4 \xmlprocessdata{}{
 5 math xmlns='http://www.w3.org/1998/Math/MathML'
 6  mrow
 7   msup mix/mimn2/mn /msup
 8   mo+/mo
 9   mrow
10 mn4/mnmix/mi
11   /mrow
12   mo+/mo
13   mn4/mn
14/mrow
15 /math
16 }{}
17 \stoptext
18 


\ctxmodulemathml ...rocount {moduledata.mathml.#1}
  
\@@su:mml:mo ...miter }\ctxmodulemathml {mo(#1)}
  \setfalse \mmlignoredelimi...
l.14 }
  
\ctxlxml #1-\directlua \zerocount {lxml.#1}

\checkdelimiters ...\right 

[NTG-context] how to keep inmargin texts above the base of the page

2011-02-27 Thread Dinh Tran
Hello.

If I have a lot of inmargin or margintext, they will extend into the base of
the page (defined by bottomspace).  Is there a way to remedy this by some
setup?  This was compiled with xetex option b/c inmargin stack doesn't fully
work in mkiv.

Thanks,
Dinh

--
\setuppapersize[letter][letter]

% margins etc.
\setuplayout[location=middle,
  topspace=1.87cm,
  header=0cm,
  width=middle,
  cutspace=3.1cm, %From right edge of paper to right of text area
  height=fit,
  backspace=6.1cm, %from left edge of paper to left of text area
  rightmargin=1.5cm,
  leftmargin=3.7cm,
  leftmargindistance=1cm, %from right of leftmargin to left of textbody
  bottomspace=1.62cm,
  footer=1.49cm,
%  grid=yes, % to align text on a grid.  If this is on, setupwhitespace and
setupinterlinespace doesn't work.
  setup=strict]

\showframe

\setupinmargin[stack=yes]

\starttext

\dorecurse{25}{This is some text in the page.\margintext{This is text in the
margin.} \par}

\stoptext


sample-inmargin_exceed_boundary.pdf
Description: Adobe PDF document


sample-margintext_exceed_boundary.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] MathML broken in mkiv?

2011-02-27 Thread Hans Hagen

On 27-2-2011 3:40, Reviczky, Adam wrote:

Hi

I'm trying to use MathML with mkiv (latest beta), but I'm getting errors.
I'm attaching the minimal example (borrowed from the wiki) and the log file..


remove line 20 in x-mathml.lua

-
  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] [t-vim] Line numbers

2011-02-27 Thread Marco
On 2011-02-26 Aditya Mahajan adit...@umich.edu wrote:

  So after the project is done one can run context --purgeall filename to
  get a clean directory structure without having to archive 30 temporary
  files.
 
 I don't know how to implement this functionality and still provide a 
 working pdf.

No problem. I'm very satisfied with the module at this state. It would just be
a nice-to-have feature.

 To save time, t-vim (actually t-filter with continue=yes) 
 runs the external filter only in the first run; in the subsequent runs the 
 cached file is used. So, if I want to delete the temporary files, they 
 must be deleted in the last run. Right now, there is no means of detecting 
 the last run in MkIV.

The only thing that comes to my mind is to delete the files (of course only
when --purgeall is set) after *every* run. That's quite inefficient (since vim
is run every time again) but it would produce correct ouput and delete the
files.

 Even if the mode could be detected, asking context to delete temporary files
 forces another run,

I don't understand the reason behind this behaviour. Does it make sense?


Marco


___
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] [t-vim] Line numbers

2011-02-27 Thread Aditya Mahajan

On Sun, 27 Feb 2011, Marco wrote:


To save time, t-vim (actually t-filter with continue=yes)
runs the external filter only in the first run; in the subsequent runs the
cached file is used. So, if I want to delete the temporary files, they
must be deleted in the last run. Right now, there is no means of detecting
the last run in MkIV.


The only thing that comes to my mind is to delete the files (of course only
when --purgeall is set) after *every* run. That's quite inefficient (since vim
is run every time again) but it would produce correct ouput and delete the
files.


The next version of t-filter will name the generated files as:

\jobname-temp-filtername.filterextension

and these files will be deleted by context --purge (in the next beta). 
Note that this will **not** delete the files in the temp directory. 
Neither will it delete filename.ext.md5 if you use


   \typevimfile{filename.ext}

Perhaps, in the future, it might be better to store the md5 sums in the 
tuc files; but, right now, that is a low priority feature.


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] ConTeXt and Drupal

2011-02-27 Thread Otared Kavian
Hi Alan,

Some time ago I asked the same question, but I could not solve it in a clear 
manner: see the threads

http://archive.contextgarden.net/message/20101122.222652.67cec1ae.en.html
and the older one

http://archive.contextgarden.net/message/20080330.180742.0b2cd7cf.en.html

Best regards: OK

On 27 févr. 2011, at 15:04, Bowen Alan C. wrote:

 Does anyone know of a project or literature addressing the possibility of 
 running ConTeXt in a Drupal environment? There is a DruTeX module already in 
 place but that, so far as I can tell, it is limited to LaTeX.
 
 Alan
 


___
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] Comma spacing in math mode

2011-02-27 Thread Aditya Mahajan

On Sun, 27 Feb 2011, S Barmeier wrote:


I don't know if anyone feels the same, but I'm not happy with the
spacing of commas in math mode (pictures attached). For instance,
typesetting H^1(X,F), the comma seems to be closer to the F than to the
X. Equal spacing on both sides or setting the comma closer to the X are
I guess a matter of taste (inserting a \neghairspace after the X
achieves the latter). In any case, I would kind of prefer equal spacing.


\setupmathematics[autopunctuation=no]

@Hans: I would suggest that this should be made the default.


Also, it seems odd that adding a negative space \neghairspace does not
change the length of the total formula - I had expected the modified one
to be slightly shorter...?


I don't know about this.


On a related issue, the spacing for lists, e.g. (0,0,...,0), is not
satisfactory. LaTeX provides a command \dotsc for dots between commas
(and other commands like \dotsm, \dotsi, \dotsb). I don't know if all of
these are necessary, but \dotsc and its cousins are not defined in
ConTeXt and both using \ldots or just ... give unsatisfactory results.
(It is also curious that the spacing after the first comma and the
spacing after the last comma in (0,0,...,0) is evidently different...)
Personally, I think I favour something approximating (0, 0, ..., 0) and
I find \ldots is spaced too widely, ... too closely, and in any case,
the spacing of the dots doesn't match with the spacing of the commas.

Any second opinions?


Adding the \dots(m|i|b|) etc from amsmath is a good idea. I will look into 
that.



P.S.: I'm also confused about \colon and : - the latter looks better to
me in $i: A \to B$. The spacing for projective coordinates [1:0: ... :0]
is wide but still acceptable. The index of a subgroup |G:H| is far too
widely spaced, but \colon only gives asymmetrical spacing.
The semicolon seems to undergo the same spacing as the comma, with the
same problems mentioned above.


I think that the spacing of $i \colon A \to B$ is correct. (Compare from 
plain TeX output). I don't know what do you expect from |G:H|. : is 
defined as a relation and \colon is defined as a punctuation. Does |G{:}H| 
look better? (which forces : to be a math ord).



P.P.S.: \hairspace does not seem to have any effect in math mode, while
\neghairspace does. Bug or feature?


Don't know.

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] ConTeXt and Drupal

2011-02-27 Thread Bowen Alan C.
Thanks, Otared. We have asked the same question, I see.

My aim is to facilitate online collaboration (e.g., annotation/translation and 
a technical  text in Greek, say). It would be great if there were a way to 
develop the translation using ConTeXt. The DruTeX module is promising, but it’s 
not ConTeXt.

Cheers, Alan

On Feb 27, 2011, at 2:53 PM, Otared Kavian wrote:

 Hi Alan,
 
 Some time ago I asked the same question, but I could not solve it in a clear 
 manner: see the threads
   
 http://archive.contextgarden.net/message/20101122.222652.67cec1ae.en.html
 and the older one
   
 http://archive.contextgarden.net/message/20080330.180742.0b2cd7cf.en.html
 
 Best regards: OK
 
 On 27 févr. 2011, at 15:04, Bowen Alan C. wrote:
 
 Does anyone know of a project or literature addressing the possibility of 
 running ConTeXt in a Drupal environment? There is a DruTeX module already in 
 place but that, so far as I can tell, it is limited to LaTeX.
 
 Alan
 
 
 
 ___
 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] Bibliography bug

2011-02-27 Thread Pontus Lurcock
After some further staring at the code and bibmod-doc, I've come up with 
the following patch:

--- bibl-apa.tex.orig   2011-02-28 11:32:05.996248627 +1300
+++ bibl-apa.tex2011-02-28 11:32:47.576251922 +1300
@@ -133,13 +133,13 @@
 
 \def\insertorg#1#2#3%
{\insertorganization
{\insertcity
 {#1}
-{\insertcountry{, }{}{#2}: }%
-{\insertcountry{}{: }{#2}}}%
-   {}%
+{\insertcountry{, }{}{}: }%
+{\insertcountry{}{: }{}}}%
+   {#2}%
{\insertcity
 {#1}
 {\insertcountry{, }{}{#2}}%
 {\insertcountry{}{#2}{#3}}}%
 }

This fixes my example, and makes (to me) better sense according to the
semantics of the \insert... commands: the after argument to
\insertorg gets passed down to the after of \insertcity rather than
spliced into the before. It's also closer to the definition of
\insertpublisher immediately preceding it in the file.

I hope that this can be integrated into the next beta, if it doesn't
turn out to be a horrendous mistake...

Regards,

Pont

On Sun 27 Feb 2011, Pontus Lurcock wrote:

 Greetings everyone,
 
 Since this is my first post here, I would like to start by saying
 thank you to all the ConTeXt developers and documenters for a great
 system. I'm using ConTeXt to typeset my doctoral dissertation, with
 (so far) reasonable success. But I've run into what I think is a minor
 bug in the default bibliography style. Minimal example:
 
 ---8---
 
 \startpublication[k=test,t=inproceedings,a=Smith,y=2000]
 \author[]{John}[J.]{}{Smith}
 \pubyear{2000}
 \arttitle{A fascinating exposition}
 \editor[]{Adam}[A.]{}{Jones}
 \title{Proceedings of Something}
 \city{London}
 \pages{123--132}
 \organization{Institute of Whatever}
 \stoppublication
 
 \starttext
 \placepublications[criterium=all]
 \stoptext
 
 ---8---
 
 Using Linux minimals, context Mark IV, v. 2011.02.25 22:03, this gives
 me:
 
   Smith, J. (2000). A fascinating exposition. In Jones, A., editor,
   Proceedings of Something, pages 123–132. London.: Institute of
   Whatever
 
 I think that London.: Institute of Whatever should be London:
 Institute of Whatever. with full stop after organization rather than
 city.
 
 I assume the fix is simple, but I swiftly got lost when I tried
 jumping into the bibliography code, so I hope that someone else can
 help here.
 
 Thanks,
 
 Pont
___
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] Comma spacing in math mode

2011-02-27 Thread Stefan Müller

Hi!

On 27.02.2011 20:58, Aditya Mahajan wrote:

On Sun, 27 Feb 2011, S Barmeier wrote:


I don't know if anyone feels the same, but I'm not happy with the
spacing of commas in math mode (pictures attached). For instance,
typesetting H^1(X,F), the comma seems to be closer to the F than to the
X. Equal spacing on both sides or setting the comma closer to the X are
I guess a matter of taste (inserting a \neghairspace after the X
achieves the latter). In any case, I would kind of prefer equal spacing.


\setupmathematics[autopunctuation=no]

@Hans: I would suggest that this should be made the default.


IMO this does only partially help, consider the following example:

\starttext
$(B, Y, R, X)$
\setupmathematics[autopunctuation=no]
$(B, Y, R, X)$
\stoptext

In both lines the spacing after Y is way to big. I don't know if 
that's a bug or just ugly. (version 2011.02.15 16:11)



Also, it seems odd that adding a negative space \neghairspace does not
change the length of the total formula - I had expected the modified one
to be slightly shorter...?


I don't know about this.


On a related issue, the spacing for lists, e.g. (0,0,...,0), is not
satisfactory. LaTeX provides a command \dotsc for dots between commas
(and other commands like \dotsm, \dotsi, \dotsb). I don't know if all of
these are necessary, but \dotsc and its cousins are not defined in
ConTeXt and both using \ldots or just ... give unsatisfactory results.
(It is also curious that the spacing after the first comma and the
spacing after the last comma in (0,0,...,0) is evidently different...)
Personally, I think I favour something approximating (0, 0, ..., 0) and
I find \ldots is spaced too widely, ... too closely, and in any case,
the spacing of the dots doesn't match with the spacing of the commas.

Any second opinions?


Adding the \dots(m|i|b|) etc from amsmath is a good idea. I will look
into that.


+1. I normally use $x, \dots\, ,x$ because then the spacing between 
the periods looks the same as between the commas and the periods, which 
I prefer. I personally appreciate the wider spacing in \dots.


Stefan
___
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] Comma spacing in math mode

2011-02-27 Thread Mojca Miklavec
On Sun, Feb 27, 2011 at 23:49, Stefan Müller warrence@gmx.de wrote:
 Hi!

 On 27.02.2011 20:58, Aditya Mahajan wrote:

 On Sun, 27 Feb 2011, S Barmeier wrote:

 I don't know if anyone feels the same, but I'm not happy with the
 spacing of commas in math mode (pictures attached). For instance,
 typesetting H^1(X,F), the comma seems to be closer to the F than to the
 X. Equal spacing on both sides or setting the comma closer to the X are
 I guess a matter of taste (inserting a \neghairspace after the X
 achieves the latter). In any case, I would kind of prefer equal spacing.

 \setupmathematics[autopunctuation=no]

 @Hans: I would suggest that this should be made the default.

 IMO this does only partially help, consider the following example:

 \starttext
 $(B, Y, R, X)$
 \setupmathematics[autopunctuation=no]
 $(B, Y, R, X)$
 \stoptext

 In both lines the spacing after Y is way to big. I don't know if that's a
 bug or just ugly. (version 2011.02.15 16:11)

In text parts this is known as kerning. In OpenType math there are
complex bounding boxes.

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

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


Re: [NTG-context] Comma spacing in math mode

2011-02-27 Thread Mojca Miklavec
On Mon, Feb 28, 2011 at 00:10, Mojca Miklavec wrote:
 On Sun, Feb 27, 2011 at 23:49, Stefan Müller wrote:

 \starttext
 $(B, Y, R, X)$
 \setupmathematics[autopunctuation=no]
 $(B, Y, R, X)$
 \stoptext

 In both lines the spacing after Y is way to big. I don't know if that's a
 bug or just ugly. (version 2011.02.15 16:11)

 In text parts this is known as kerning. In OpenType math there are
 complex bounding boxes.

(I accidentally sent the email too early.)

I wanted to add that unless/until somebody implements complex bounding
boxes (OpenType Math font for whatever font you are using), you cannot
avoid the problem. TeX has no idea how big Y is, it only knows its
rectangular bounding box. Cases like this one have to be manually
tuned.

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

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


Re: [NTG-context] Comma spacing in math mode

2011-02-27 Thread Aditya Mahajan

On Mon, 28 Feb 2011, Mojca Miklavec wrote:


On Sun, Feb 27, 2011 at 23:49, Stefan Müller warrence@gmx.de wrote:

Hi!

On 27.02.2011 20:58, Aditya Mahajan wrote:


On Sun, 27 Feb 2011, S Barmeier wrote:


I don't know if anyone feels the same, but I'm not happy with the
spacing of commas in math mode (pictures attached). For instance,
typesetting H^1(X,F), the comma seems to be closer to the F than to the
X. Equal spacing on both sides or setting the comma closer to the X are
I guess a matter of taste (inserting a \neghairspace after the X
achieves the latter). In any case, I would kind of prefer equal spacing.


\setupmathematics[autopunctuation=no]

@Hans: I would suggest that this should be made the default.


IMO this does only partially help, consider the following example:

\starttext
$(B, Y, R, X)$
\setupmathematics[autopunctuation=no]
$(B, Y, R, X)$
\stoptext

In both lines the spacing after Y is way to big. I don't know if that's a
bug or just ugly. (version 2011.02.15 16:11)


In text parts this is known as kerning. In OpenType math there are
complex bounding boxes.


I would call it a bug. The spacing is OK with cambria, but not with xits.

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] Comma spacing in math mode

2011-02-27 Thread Andreas Harder

Am 28.02.2011 um 00:14 schrieb Aditya Mahajan:

 On Mon, 28 Feb 2011, Mojca Miklavec wrote:
 
 On Sun, Feb 27, 2011 at 23:49, Stefan Müller warrence@gmx.de wrote:
 Hi!
 
 On 27.02.2011 20:58, Aditya Mahajan wrote:
 
 On Sun, 27 Feb 2011, S Barmeier wrote:
 
 I don't know if anyone feels the same, but I'm not happy with the
 spacing of commas in math mode (pictures attached). For instance,
 typesetting H^1(X,F), the comma seems to be closer to the F than to the
 X. Equal spacing on both sides or setting the comma closer to the X are
 I guess a matter of taste (inserting a \neghairspace after the X
 achieves the latter). In any case, I would kind of prefer equal spacing.
 
 \setupmathematics[autopunctuation=no]
 
 @Hans: I would suggest that this should be made the default.
 
 IMO this does only partially help, consider the following example:
 
 \starttext
 $(B, Y, R, X)$
 \setupmathematics[autopunctuation=no]
 $(B, Y, R, X)$
 \stoptext
 
 In both lines the spacing after Y is way to big. I don't know if that's a
 bug or just ugly. (version 2011.02.15 16:11)
 
 In text parts this is known as kerning. In OpenType math there are
 complex bounding boxes.
 
 I would call it a bug. The spacing is OK with cambria, but not with xits.

As it comes to math, there is still this ugly rendering of $n\choose k$ … with 
all OpenType math fonts. 

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] Comma spacing in math mode

2011-02-27 Thread Mojca Miklavec
On Mon, Feb 28, 2011 at 00:14, Aditya Mahajan adit...@umich.edu wrote:
 On Mon, 28 Feb 2011, Mojca Miklavec wrote:

 On Sun, Feb 27, 2011 at 23:49, Stefan Müller warrence@gmx.de wrote:

 Hi!

 On 27.02.2011 20:58, Aditya Mahajan wrote:

 On Sun, 27 Feb 2011, S Barmeier wrote:

 I don't know if anyone feels the same, but I'm not happy with the
 spacing of commas in math mode (pictures attached). For instance,
 typesetting H^1(X,F), the comma seems to be closer to the F than to the
 X. Equal spacing on both sides or setting the comma closer to the X are
 I guess a matter of taste (inserting a \neghairspace after the X
 achieves the latter). In any case, I would kind of prefer equal
 spacing.

 \setupmathematics[autopunctuation=no]

 @Hans: I would suggest that this should be made the default.

 IMO this does only partially help, consider the following example:

 \starttext
 $(B, Y, R, X)$
 \setupmathematics[autopunctuation=no]
 $(B, Y, R, X)$
 \stoptext

 In both lines the spacing after Y is way to big. I don't know if that's
 a
 bug or just ugly. (version 2011.02.15 16:11)

 In text parts this is known as kerning. In OpenType math there are
 complex bounding boxes.

 I would call it a bug. The spacing is OK with cambria, but not with xits.

But that is probably a bug in font, not in ConTeXt; and something
that cannot really be handled in LM or in MKII at all.

I already sent a similar report to Khaled (when I was testing XITS in
Word), but he was somehow reluctant to change metrics (it has to be
done carefully for the whole font, it needs a lot of time  work;
might become obsolete with next release of stix; and just fixing two
out of thousand such bugs doesn't really help).

Mojca (who didn't try out the examples)
___
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] Comma spacing in math mode

2011-02-27 Thread Khaled Hosny
On Sun, Feb 27, 2011 at 06:14:36PM -0500, Aditya Mahajan wrote:
 On Mon, 28 Feb 2011, Mojca Miklavec wrote:
 IMO this does only partially help, consider the following example:
 
 \starttext
 $(B, Y, R, X)$
 \setupmathematics[autopunctuation=no]
 $(B, Y, R, X)$
 \stoptext
 
 In both lines the spacing after Y is way to big. I don't know if that's a
 bug or just ugly. (version 2011.02.15 16:11)
 
 In text parts this is known as kerning. In OpenType math there are
 complex bounding boxes.
 
 I would call it a bug. The spacing is OK with cambria, but not with xits.

Because Cambria implements math kerning that Mojca is referring too,
XITS don't (and will not in the near future unless someone steps to
implement it; pretty tedious job).

Regards,
 Khaled

-- 
 Khaled Hosny
 Egyptian
 Arab
___
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] how to make chapter starts from odd page always?

2011-02-27 Thread Jeong Dalyoung
Dear Hans and Wolfgang,

Thank you for the help.
The contents of a book is already fixed and nowI tired to make a book in a 
better shape.

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
___


[NTG-context] [***SPAM***] \type works differently in MKIV than MKII

2011-02-27 Thread Tom
The following code creates the desired output in MKII but the \par commands
appear to be ignored by MKIV:

\starttext

\type+{\framed[frame=off,align=middle]+ \par
\type+  \{\placefigure [here]+ \par
\type+   {none}+ \par
\type+   {\externalfigure[frontispiece][width=\textwidth]}}}+ \par
\par

\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] Letters in head; disabling parental numbers

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

Hello,

thank you for the piece of code.


\definestructureconversionset[myconversion][numbers,Characters][numbers]
\setupheads[sectionconversionset=myconversion]


Could you describe the meaning of the second and the third parameter? I found 
only this on wiki (http://wiki.contextgarden.net/Table_of_Contents), but this 
is not a full description.

Another question - is it possible to hide (don't display) parental numbers in a 
head?

I'd need to get the following sequence:

A. PartA
B. PartB
B.1 Section1
B.2 Section2
1 Subsection1 - Here the chapter and section numbers are to be omitted
2 Subsection2

I tried:

\setuphead[subsection,subsubject][number=no,ownnumber=yes]

But number=no disables the number completely (as expected) and 
ownnumber=yes causes an Ctx error.

So is there another way?

BTW: I'm not typesetting normal (book-like) text, but I' generating some 
tree-like lists of documentation. And the kind how heads look is given a priori.

Thanks in advance.

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

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