[NTG-context] {Spam?} Re: setupreferenceformat questions

2008-02-17 Thread Mike Santy
Thanks, Wolfgang!


On 2/16/08 3:19 AM, Wolfgang Schuster [EMAIL PROTECTED]
wrote:

 On Fri, Feb 15, 2008 at 5:27 PM, Santy, Michael
 [EMAIL PROTECTED] wrote:
 
 Due to some fairly unique customer requirements for bibliography, we're
 using the simple bibliography discussed in the wiki
 (http://wiki.contextgarden.net/Simple_Bibliography).  While this approach
 gives us more flexibility, I'm having trouble with a couple of things...
 
  1) The code below wraps the reference number in brackets.  How would I make
 the reference number superscript (like an endnote)?
 
 \def\startHIGH{\raise.5ex\normalhbox\bgroup\tfx}
 \def\stopHIGH{\egroup}
 
 \definereferenceformat[cite][left=\startHIGH,right=\stopHIGH]
 
  2) The references in the text are numbered in the order the bibitems are
 defined in the bibliography, not the order on which they are cited in the
 text.  How would I order them according to the order in which they occur in
 the text?
 
 requires more coding.
 
  Thanks,
  Mike Santy
 
  \setupinteraction[state=start]
  \definereferenceformat[cite][left={[},right={]}]
  \defineitemgroup [bibliography] [levels=1]
  \setupitemgroup  [bibliography]
   [symbol=n,
left={[},
right={]},
width=1.5em,
stopper=,
itemalign=flushright,
inbetween={\blank[4pt]}]
  \appendtoks
\let \bibitem \itemgroupitem
  \to \itemgroupcommands
 
  \starttext
 
  Now is the time\cite[ref2] for all good men\cite[ref1].  I would like the
 citations to be numbered based on the order in which they occur in the
 document, not in the bibliography.
 
  \section{References}
 
  \startbibliography
\bibitem[ref1] This is my first reference
\bibitem[ref2] This is the second reference
  \stopbibliography
 
  \stoptext
 
 Wolfgang
 __
 _
 If your question is of interest to others as well, please add an entry to the
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 __
 _

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

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


[NTG-context] {Spam?} Re: [SPAM] \useURL third parameter

2008-01-05 Thread Mike Santy
Think of it as the query parameters of the URL.  See
http://texshow.contextgarden.net/command/detail/452

Cheers,
Mike


On 1/5/08 9:41 AM, John Culleton [EMAIL PROTECTED] wrote:

 I find in the wiki examples of \useURL. The third parameter is however a
 mystery to me. What is it used for? 

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

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


[NTG-context] Ligatures in ConTeXt minimals distribution

2007-12-03 Thread Mike Santy
Hello, 

Ligatures seem to be missing when using the ConTeXt minimals distribution
(8/8/2007) with the times font (see below example).  Note that ligatures are
rendered correctly using live.contextgarden.net, so I assume that something
needs to be configured on my end.

Could someone please be kind enough to tell me what I should configure to
get proper ligatures for the times font in the minimals distribution?

Cheers,
Mike


\usetypescript[times][ec]
\setupbodyfont[times,12pt]

\starttext

\input knuth
\blank
And this is some maths with PostScript fonts.
\startformula
{a \over b} = {c \over d} \iff ad - bc = 0,
\qquad \int_0^{2\pi}\!\!\! \sin^2(x)dx =\pi,
\qquad {\rm e}^{{\rm i}\pi} + 1 = 0,
\qquad \sum_{k=1}^{\infty}{1 \over k^2} = {\pi^2 \over 6}.
\stopformula
Some ligatures: ffi, ffl.

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


Re: [NTG-context] [SPAM] Examples of MathML in Context

2007-12-03 Thread Mike Santy
Below is a complete example:

\usemodule[mathml]
\starttext
\startXMLdata
math
 mrow
  msup mix/mimn2/mn /msup
  mo+/mo
  mrow
mn4/mnmoInvisibleTimes;/momix/mi
  /mrow
  mo+/mo
  mn4/mn
 /mrow
/math
\stopXMLdata
\stoptext

Could you please add this minimal example to the wiki page:
http://wiki.contextgarden.net/MathML_code_examples

Cheers,
Mike

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

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


[NTG-context] Whitespace significance without verbatim

2007-11-29 Thread Mike Santy
Is there an environment that preserves whitespace (like typing), but still
processes \bf \it and other text formatting commands (unlike typing).

Any thoughts?

Cheers,
Mike

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

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


Re: [NTG-context] Whitespace significance without verbatim

2007-11-29 Thread Mike Santy
Thanks.  Works like a champ.

Cheers,
Mike

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

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