Re: [NTG-context] Feature-Request: Sort bibliography entries in alphabetical order by the entries' “short” value

2013-08-08 Thread Michael Scholtz
On 07.08.2013, at 22:13, Hans Hagen pra...@wxs.nl wrote:

 On 8/7/2013 7:40 PM, Michael Scholtz wrote:
 Hi,
 
 the publication list can be configured with `\setuppublications` to be 
 sorted by cite order (`sorttype=cite`) or the order of the publication 
 entries (`sorttype=bbl`).
 
 With the following setup the short names of the publication entries are 
 used for cite references:
 
 \setuppublications[
 criterium=text,
 sorttype=cite,  % – short?
 refcommand=short,
 numbering=short,
 ...
 ]
 
 The short names are set using the `s` attribute:
 
 \startpublication[
   s={RFC2616},
   ...
 ]
   ...
 \stoppublication
 
 A cite with this setup would look like [RFC2616].
 
 In a long bibliography list it is useful if the entries are sorted in 
 alphabetical order by these short names to allow a faster lookup of 
 publications.
 
 Currently I'm using the filter module and a Tcl script to sort the 
 publication entries ( http://tex.stackexchange.com/q/126939/7074 ), but it 
 might be useful if something like a `sorttype=short` option would be added.
 
 I added 'short' as sorttype .. untested as no example.

Great, thanks!

Here an example for testing:


\setuppublications[
alternative=apa-de,
criterium=text,
sorttype=short,
refcommand=short,  
numbering=short,  
autohang=yes,
setupinteraction=start,
]

\setuppublicationlist[
samplesize={AA},
author=\invertedauthor,
artauthor=\invertedauthor,
]

%=== entries ===

\startpublication[
  k=jd42,
  t=book,
  a={Doe},
  y=2042,
  n=1,
  s={JD42},
]
  \author[]{John}[]{}{Doe}
  \pubyear{2042}
  \title{Greetings form the future}
\stoppublication


\startpublication[
  k=bh2008,
  t=book,
  a={Bringhurst},
  y=2008,
  n=1,
  s={ELEM},
]
  \author[]{Robert}[]{}{Bringhurst}
  \pubyear{2008}
  \title{The Elements of Typographic Style}
  \edition{3.2}
  \city{Point Roberts WA, Vancouver}
\stoppublication


\startpublication[
  k=taco1999, 
  t=article,
  a=Hoekwater,
  y=1999,
  s=TH99,
  n=1
]
\artauthor[]{Taco}[T.]{}{Hoekwater}
\arttitle{\CONTEXT\ Publication Module, The user documententation} 
\journal{MAPS}
\pubyear{To appear}
\note{This article}
\pages{66--76}
\stoppublication


\startpublication [
  k=fielding2000,
  t=phdthesis,
  a={Fielding},
  y=2000,
  n=1,
  s={FIE2000},
]
  \author[]{Roy Thomas}[R. T.]{}{Fielding}
  \title{Architectural Styles and the Design of Network-based Software 
Architectures}
  \pubname{University of California, Irvine}
  \isbn{0-599-87118-0}
\stoppublication


%=== /entries ===

\starttext

Foo \cite[fielding2000]. Bar \cite[taco1999]. Baz \cite[bh2008]. Bla 
\cite[jd42].

\completepublications

\stoptext



Michael


___
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] Feature-Request: Sort bibliography entries in alphabetical order by the entries' “short” value

2013-08-08 Thread Hans Hagen

On 8/8/2013 9:29 AM, Michael Scholtz wrote:


Here an example for testing:


uploading a beta .. we now have: sorttype=cite|short|reference

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, XeTeX, special effects in Indic font for Kannada

2013-08-08 Thread Robert Zydenbos
On my Mac (Mountain Lion) I would like to use ConTeXt with a complex OpenType 
font named Kedage for the Indian language Kannada, and I thought that I could 
do this using XeTeX (because LuaTeX seems unable to handle Indic fonts at 
present).

This freely available font (found on Linux systems, for instance) comes in four 
files: Kedage-n.TTF, Kedage-b.TTF, Kedage-i.TTF, Kedage-t.TTF (normal, bold, 
italic and bolditalic, respectively).

I have been partly successful with the simple command

\definefontsynonym[kan][name:Kedage]

and then using

\definedfont[kan]

where I want to have the font in the text. Also \font\kannada=Kedage (and 
\kannada later in the text) seems to work well without any further indications 
of language, script etc.

However, I would also like to use the bold, italic and bolditalic forms of the 
font. Simply using \bold and \em does not work.

Here I see two possibilities:

(1) use the XeTeX parameters FakeSlant and FakeBold, which I have done in 
LaTeX. But I do not know how this is done in ConTeXt.

(2) use the other font files (Kedage-b.TTF etc.), and again I do not know how 
to do this.

Can anybody help me out, either way? (I have attached a sample.)

Robert



kannadacontext.pdf
Description: Adobe PDF document


kannadacontext.tex
Description: Binary data


___
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, XeTeX, special effects in Indic font for Kannada

2013-08-08 Thread Hans Hagen

On 8/8/2013 1:00 PM, Robert Zydenbos wrote:


On my Mac (Mountain Lion) I would like to use ConTeXt with a complex OpenType 
font named Kedage for the Indian language Kannada, and I thought that I could 
do this using XeTeX (because LuaTeX seems unable to handle Indic fonts at 
present).


forget about xetex, first check what context mkiv van do


This freely available font (found on Linux systems, for instance) comes in four 
files: Kedage-n.TTF, Kedage-b.TTF, Kedage-i.TTF, Kedage-t.TTF (normal, bold, 
italic and bolditalic, respectively).

I have been partly successful with the simple command

\definefontsynonym[kan][name:Kedage]

and then using

\definedfont[kan]

where I want to have the font in the text. Also \font\kannada=Kedage (and 
\kannada later in the text) seems to work well without any further indications of 
language, script etc.


it all depends on how much processing is needed

in context, there is experimental support for devanagari

\definedfont[file:kedage-n*devanagari-one]

but it all depends on what the font provides


However, I would also like to use the bold, italic and bolditalic forms of the 
font. Simply using \bold and \em does not work.

Here I see two possibilities:

(1) use the XeTeX parameters FakeSlant and FakeBold, which I have done in 
LaTeX. But I do not know how this is done in ConTeXt.


\starttext

\definefontfeature[slanted] [slant=.2]
\definefontfeature[boldened][extend=1.2]

\definedfont[file:kedage-n*default]

ಇಡೀ ಪ್ರಪಂಚದ ಜನರು ಒಂದೇ ಭಾಷೆಯನ್ನು ಮಾತಾಡುತ್ತಿ ದ್ದರು

\definedfont[file:kedage-n*default,slanted]

ಇಡೀ ಪ್ರಪಂಚದ ಜನರು ಒಂದೇ ಭಾಷೆಯನ್ನು ಮಾತಾಡುತ್ತಿ ದ್ದರು

\definedfont[file:kedage-n*default,boldened]

ಇಡೀ ಪ್ರಪಂಚದ ಜನರು ಒಂದೇ ಭಾಷೆಯನ್ನು ಮಾತಾಡುತ್ತಿ ದ್ದರು

\definedfont[Serif*default]
test
\definedfont[Serif*default,boldened]

test

\stoptext


(2) use the other font files (Kedage-b.TTF etc.), and again I do not know how 
to do this.


see type-imp-* files (or give simplefonts a try)

\definefontfeature[slanted] [slant=.2]
\definefontfeature[boldened][extend=1.2]

\starttypescript [serif] [kedage] [name]
\definefontsynonym[Serif]  [file:kedage-n]
\definefontsynonym[SerifBold] 
[file:kedage-n][features={default,boldened}]
\definefontsynonym[SerifItalic] 
[file:kedage-n][features={default,slanted}]


\definefontsynonym[SerifBoldItalic][file:kedage-n][features={default,boldened,slanted}]
\stoptypescript

\starttypescript [kedage]
\definetypeface[kedage][rm][serif][kedage][default]
\definetypeface[kedage][mm][math] [modern][default]
\stoptypescript

\setupbodyfont[kedage]

\starttext

ಇದು ಕನ್ನಡದಲ್ಲಿದೆ. ಬಹಳ ರೋಚಕವಾದುದು, ಹೀಗೆ ಬರೆಯುವುದು ಎಂದು ಭಾವಿಸುತ್ತೇನೆ.
{\bf ಈಗ ದಪ್ಪಗೆ}
, ಮತ್ತು
{\it ಕೊಂಕು}
.

ಇದು ಕನ್ನಡದಲ್ಲಿದೆ. ಬಹಳ ರೋಚಕವಾದುದು, ಹೀಗೆ ಬರೆಯುವುದು ಎಂದು ಭಾವಿಸುತ್ತೇನೆ.\par
{\bf ಈಗ ದಪ್ಪಗೆ}\par
, ಮತ್ತು\par
{\it ಕೊಂಕು}\par
.\par

\stoptext

Beware: there is bug in the luatex backend with respect to switching 
slanted/boldened that sometimes shows up.


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] ConTeXt, XeTeX, special effects in Indic font for Kannada

2013-08-08 Thread Robert Zydenbos
Hans,

Just now I tried your suggestions:

On Aug 8, 2013, at 13:51 , Hans Hagen pra...@wxs.nl wrote:

 Here I see two possibilities:
 
 (1) use the XeTeX parameters FakeSlant and FakeBold, which I have done in 
 LaTeX. But I do not know how this is done in ConTeXt.
 
 \starttext
 
 \definefontfeature[slanted] [slant=.2]
 \definefontfeature[boldened][extend=1.2]
 
 \definedfont[file:kedage-n*default] ...

The slanting and stretched effects come out nicely -- but the complex 
combinations of the signs are not supported as they are in XeTeX. XeTeX 
supports the combinations, but not the effects (see attachments 
hagen-kan-luatex.pdf and hagen-kan-xetex.pdf).

 (2) use the other font files (Kedage-b.TTF etc.), and again I do not know 
 how to do this.
 
 \definefontfeature[slanted] [slant=.2]
 \definefontfeature[boldened][extend=1.2]
 
 \starttypescript [serif] [kedage] [name] ...

No, unfortunately that one doesn't work so well (see attachment 
hagen-kan1-luatex.pdf).

 in context, there is experimental support for devanagari
 \definedfont[file:kedage-n*devanagari-one]
 
 but it all depends on what the font provides

Is there any way to find out the font's possibilities, if one doesn't have any 
technical documentation about it?

Robert



hagen-kan-luatex.pdf
Description: Adobe PDF document


hagen-kan-xetex.pdf
Description: Adobe PDF document


hagen-kan1-luatex.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] unwanted extra interline space in typing environment

2013-08-08 Thread Pablo Rodríguez
On 08/07/2013 11:04 PM, Hans Hagen wrote:
 On 8/7/2013 10:52 PM, Pablo Rodríguez wrote:
 On 08/07/2013 08:00 PM, Wolfgang Schuster wrote:
 Am 07.08.2013 um 19:47 schrieb Pablo Rodríguez oi...@web.de:
 [...]
 How can avoid the unwanted extra interline space in the typing environment?
 [...]
 you shouldn't rely on \\ as it also starts a new line with content
 
\dorecurse{38}{line\par}

Hans,

I have adapted the sample to:

\starttext
\dorecurse{41}{line\par}
\starttyping
\setuplayout[setups=*lessstrict]
\startsetups[*lessstrict]
\setup[reset]
\widowpenalty=1
\clubpenalty=1
\brokenpenalty=1
\stopsetups
\stoptyping
\stoptext

And if recursions are set to 36-42, the second line on page 2 has extra
space when the line belongs to the typing environment.

Isn’t it a bug?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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, XeTeX, special effects in Indic font for Kannada

2013-08-08 Thread Hans Hagen

On 8/8/2013 2:26 PM, Robert Zydenbos wrote:


Is there any way to find out the font's possibilities, if one doesn't have any 
technical documentation about it?


looking at tables in the font ... in fact, this font is somewhat messed 
up as it uses latin glyph names for kannaga ligatures


concerning indic scripts ... this is an ongoing project:

- kai eigner made the first setup, for devangari only but extending is a 
matter of adding more info


- i cleaned up the code and optimized it (runs reasonable fast now) and 
and probably in the process broke some things


anyhow, I added a few more entries in tables and get different output 
but also the impression that some glyphs get lost) so we're not there yet


\definefontfeature[slanted] [slant=.2]
\definefontfeature[boldened][extend=1.2]

\definefontfeature[kannada][devanagari-one][script=knda]

\starttypescript [serif] [kedage] [name]
\definefontsynonym[Serif]  [file:kedage-n][features={kannada}]
\definefontsynonym[SerifBold] 
[file:kedage-n][features={kannada,default,boldened}]
\definefontsynonym[SerifItalic] 
[file:kedage-n][features={kannada,default,slanted}]


\definefontsynonym[SerifBoldItalic][file:kedage-n][features={kannada,default,boldened,slanted}]
\stoptypescript

\starttypescript [kedage]
\definetypeface[kedage][rm][serif][kedage][default]
\definetypeface[kedage][mm][math] [modern][default]
\stoptypescript

\setupbodyfont[kedage]

\enabletrackers[otf.analyzing]

\starttext

ಇದು ಕನ್ನಡದಲ್ಲಿದೆ. ಬಹಳ ರೋಚಕವಾದುದು, ಹೀಗೆ ಬರೆಯುವುದು ಎಂದು ಭಾವಿಸುತ್ತೇನೆ.

{\definedfont[file:kedage-n]ಇದು ಕನ್ನಡದಲ್ಲಿದೆ. ಬಹಳ ರೋಚಕವಾದುದು, ಹೀಗೆ ಬರೆಯುವುದು 
ಎಂದು ಭಾವಿಸುತ್ತೇನೆ.}


% ಇದು ಕನ್ನಡದಲ್ಲಿದೆ. ಬಹಳ ರೋಚಕವಾದುದು, ಹೀಗೆ ಬರೆಯುವುದು ಎಂದು ಭಾವಿಸುತ್ತೇನೆ.\par
% {\bf ಈಗ ದಪ್ಪಗೆ}\par
% , ಮತ್ತು\par
% {\it ಕೊಂಕು}\par
% .\par

\stoptext

we can probably best move this discussion off list .. for instance we 
need to figure out what


-- 0C82 anusvara
-- 0C83 visarga
-- 0CBD avagraha
-- 0CD5 length mark
-- 0CD6 ai length mark
-- 0CE0 letter ll
-- 0CE1 letter rr
-- 0CE2 vowel sign l
-- 0CE2 vowel sign ll
-- 0CF1 sign
-- 0CF2 sign
-- OCE6 - OCEF digits

does (maybe some has to be added to some tables).

It's probably no big deal to get some more scripts working given what's 
already there ... more a matter of testing (and no, i can't read those 
scripts).


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] unwanted extra interline space in typing environment

2013-08-08 Thread Hans Hagen

On 8/8/2013 4:50 PM, Pablo Rodríguez wrote:

On 08/07/2013 11:04 PM, Hans Hagen wrote:

On 8/7/2013 10:52 PM, Pablo Rodríguez wrote:

On 08/07/2013 08:00 PM, Wolfgang Schuster wrote:

Am 07.08.2013 um 19:47 schrieb Pablo Rodríguez oi...@web.de:
[...]

How can avoid the unwanted extra interline space in the typing environment?

[...]
you shouldn't rely on \\ as it also starts a new line with content

\dorecurse{38}{line\par}


Hans,

I have adapted the sample to:

 \starttext
 \dorecurse{41}{line\par}
 \starttyping
 \setuplayout[setups=*lessstrict]
 \startsetups[*lessstrict]
 \setup[reset]
 \widowpenalty=1
 \clubpenalty=1
 \brokenpenalty=1
 \stopsetups
 \stoptyping
 \stoptext

And if recursions are set to 36-42, the second line on page 2 has extra
space when the line belongs to the typing environment.

Isn’t it a bug?


yes, but in fact a side effect of trying to fix another page-crossing 
issue ... i'll try a different trick


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] unwanted extra interline space in typing environment

2013-08-08 Thread Pablo Rodríguez
On 08/08/2013 07:24 PM, Hans Hagen wrote:
 On 8/8/2013 4:50 PM, Pablo Rodríguez wrote:
[...]
 Isn’t it a bug?
 
 yes, but in fact a side effect of trying to fix another page-crossing 
 issue ... i'll try a different trick

Many thanks for the fix, Hans.


Pablo
-- 
http://www.ousia.tk
___
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] simplefonts doesn’t select the font

2013-08-08 Thread Pablo Rodríguez
Dear list,

I have the following sample:

\starttext
\startbuffer[testbuffer]
\setuppapersize[A7]
\usemodule[simplefonts][size=10.5pt]
\setmainfont[TeX Gyre Pagella]
\starttext
This isn’t \TeX\ Gyre Pagella.
\stoptext
\stopbuffer

\typesetbuffer[testbuffer]
\stoptext

Only with decimal font sizes, simplefonts (and probably the standard
font mechanism [which I don’t know how to use it]) isn’t able to select
the font in the buffer.

I guess this might be a bug.

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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] include two pages from typesetbuffer

2013-08-08 Thread Pablo Rodríguez
Dear list,

I would like to be able to include the first two pages of a typeset
buffer (included with \typesetbuffer[sample][frame=on]).

Is there any way to do this? I’d like to avoid to save the buffer to a file.

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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] simplefonts doesn’t select the font

2013-08-08 Thread Wolfgang Schuster

Am 08.08.2013 um 20:01 schrieb Pablo Rodríguez oi...@web.de:

 Dear list,
 
 I have the following sample:
 
\starttext
\startbuffer[testbuffer]
\setuppapersize[A7]
\usemodule[simplefonts][size=10.5pt]
\setmainfont[TeX Gyre Pagella]
\starttext
This isn’t \TeX\ Gyre Pagella.
\stoptext
\stopbuffer
 
\typesetbuffer[testbuffer]
\stoptext
 
 Only with decimal font sizes, simplefonts (and probably the standard
 font mechanism [which I don’t know how to use it]) isn’t able to select
 the font in the buffer.

You can use \setupbodyfont[pagella] to load the font without the simplefonts 
module.

The problem with the wrong font can be solved by adding 
\definebodyfontenvironment[10.5pt] to the document.

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] ConTeXt, XeTeX, special effects in Indic font for Kannada

2013-08-08 Thread Rajeesh K Nambiar
On Thu, Aug 8, 2013 at 1:51 PM, Hans Hagen pra...@wxs.nl wrote:

 forget about xetex, first check what context mkiv van do


Sorry to hijack this thread, but...

Hans, it would be great to see Indic languages support in
context/mkiv. At the moment I am typesetting, for example, in
Malayalam using mkii+xetex. So I tested context (from TeXLive 2013
distribution) but found that the rendering is not correct. There are
examples and screenshots here in an old thread:
http://tex.stackexchange.com/questions/89118/context-xetex-texlive-2012-does-not-work-for-indic-scripts-like-malayalam

I am interested in helping, at least by testing, especially Malayalam
support. Harfbuzz has excellent opentype support for Malayalam now,
which could be used for comparing the rendering.


-- 
Cheers,
Rajeesh
http://rajeeshknambiar.wordpress.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] include two pages from typesetbuffer

2013-08-08 Thread Hans Hagen

On 8/8/2013 9:01 PM, Pablo Rodríguez wrote:

Dear list,

I would like to be able to include the first two pages of a typeset
buffer (included with \typesetbuffer[sample][frame=on]).

Is there any way to do this? I’d like to avoid to save the buffer to a file.


\typesetbuffer[sample][frame=on,page=1]
\typesetbuffer[sample][frame=on,page=2]

-
  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] include two pages from typesetbuffer

2013-08-08 Thread Hans Hagen

On 8/8/2013 10:15 PM, Hans Hagen wrote:

On 8/8/2013 9:01 PM, Pablo Rodríguez wrote:

Dear list,

I would like to be able to include the first two pages of a typeset
buffer (included with \typesetbuffer[sample][frame=on]).

Is there any way to do this? I’d like to avoid to save the buffer to a
file.


\typesetbuffer[sample][frame=on,page=1]
\typesetbuffer[sample][frame=on,page=2]


as that runs the buffer twice the next beta will provide  this:

\starttext

\startbuffer [sample]
\starttext
\startTEXpage[offset=10pt] one   \stopTEXpage
\startTEXpage[offset=10pt] two   \stopTEXpage
\startTEXpage[offset=10pt] three \stopTEXpage
\stoptext
\stopbuffer

\typesetbuffer[sample][frame=on,page=1]

\externalfigure[\lasttypesetbuffer][frame=on,page=2]

\typesetbuffer[*][frame=on,page=3]

\stoptext

please wikify this after testing

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] Minor date formatting issue

2013-08-08 Thread Matt Gushee
Hello, all--

I am experimenting with the \currentdate command. I am finding that

  \currentdate [weekday,{,~},month,day+,{,~},year]

which should work according to the Wiki, produces:

  Thursday, Augustday+, 2013

This command:

  \currentdate [weekday,{,~},month,day,{,~},year]

works as expected. I also tried

  \date [][weekday,{,~},month,day+,{,~},year]

but that produced the same result as above.

I have a recent stable release of the standalone ConTeXt package from
the Garden. Is there a new way to format a date with an ordinal
indicator (-st, -nd, -rd, -th), or is that just not working at the
moment? Please advise.

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