[NTG-context] latest beta

2010-12-10 Thread Thomas Schmitz

Hi Hans,

the latest beta is looking for files

! I can't find file 
`/mnt/shared/context/tex/texmf-context/tex/context/base/symb-mis.tex'.


and

! I can't find file 
`/mnt/shared/context/tex/texmf-context/tex/context/base/symb-nav.tex'.


only symb-mis.mki(i|v) and symb-nav.mki(i|v) are present.

All best

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

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


[NTG-context] Fwd: bug: no overfullrule in footnotes!

2010-12-10 Thread Steffen Wolfrum


Anfang der weitergeleiteten E-Mail:

 Von: Steffen Wolfrum cont...@st.estfiles.de
 Datum: 7. Dezember 2010 12:34:00 MEZ
 An: mailing list for ConTeXt users ntg-context@ntg.nl
 Kopie: Hans Hagen pra...@wxs.nl
 Betreff: [NTG-context] bug: no overfullrule in footnotes!
 Antwort an: mailing list for ConTeXt users ntg-context@ntg.nl
 
 Hi,
 
 please have a look at this minimal example below:
 the version temporary gives an overfullrule for body text but not for 
 footnotes!
 
 Is there something can be done (for the short term)?
 
 Regards,
 Steffen
 ---
 
 
 
 \version[temporary]
 \showframe
 
 
 \starttext
 
 Test \hbox{text text text text text text text text text text text text text 
 text text text text text}.
 \startfootnote[ftn007]
 Test \hbox{text text text text text text text text text text text text text 
 text text text text text text text text}.
 \stopfootnote
 
 
 \stoptext



PS: The overfullrule for footnotes is only missing in MKIV !

Steffen

___
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] Different color for external URLs

2010-12-10 Thread Khaled Hosny
How can I set a different color for external URLs than that used for
internal (in document) links?

\setupinteraction[state=start,color=red]
\starttext
\section[1]{One}
In \in{section}[1] and url \goto{example.com}[url(http://example.com)].
\stoptext

P.S. I can't use \setURL \useURL for several reasons.

Regards,
 Khaled

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
___
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] Module Namespaces

2010-12-10 Thread Philipp Gesang
Dear Hans,

On 2010-12-06 17:50:15, Hans Hagen wrote:
 On 29-11-2010 7:52, Philipp Gesang wrote:
 
 If I may add to this question: I am using “job.variables” as kind
 of base for my private use area (not for modules, though) -- bad
 habit or valid alternative?
 
 bad habit .. use documentdata.pg or so

you once[1] recommended “job.variables.tobesaved” for situations
where something has to be stored for successive runs.

Is the “more robus user space” for this that you mentioned
already implemented?

Regards, Philipp


[1] http://archive.contextgarden.net/message/20100427.214703.0d3775c4.en.html

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpx85Jl279wU.pgp
Description: PGP signature
___
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] bib problems

2010-12-10 Thread Matija Šuklje
Dne sreda 8. decembra 2010 ob 10:08:19 je Robert Blackstone napisal(a):
 On Tue, Dec 7, 2010 at 8:10 PM,  Mojca Miklavec
 
 mojca.miklavec.li...@gmail.com wrote:
  Send ntg-context mailing list submissions to
  
  I have a tiny feature request.
  
  I would like to have a separate bibliography for, say, list of
  figures. Basically all I ask for is the ability to have a separate
  named bibliography as opposed to a single list.
 
 I too would be very happy with the possibility to produce a
 Bibliography with various sections.

+1 on that.

I would need to separate it by type of medium — monographies, articles, links 
etc.


Cheers,
Matija

-- 
gsm:+386 41 849 552
www:http://matija.suklje.name
xmpp:   matija.suk...@gabbler.org


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
___


Re: [NTG-context] Fwd: bug: no overfullrule in footnotes!

2010-12-10 Thread Hans Hagen

On 8-12-2010 2:14, Steffen Wolfrum wrote:


PS: The overfullrule for footnotes is only missing in MKIV !


no overfull rules in mkiv (no plans either)

-
  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 spaces removing

2010-12-10 Thread Johannes Graumann
\setupknowledge[gaps=none]

;)

Joh

Jaroslav Hajtmar wrote:

 Great. How easy!!! It works very well now!
 I have gaps in basic knowledges ...
 
 Thanx very much to Peter !!!
 
 Jaroslav Hajtmar
 
 
 Dne 7.12.2010 13:09, Peter Münster napsal(a):
 \setupfloats[spacebefore=none, spaceafter=none]
 \starttext
 \input knuth
 \placefigure[here, none]{}{\externalfigure[cow]}
 \input tufte
 \stoptext

 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
 
___


___
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] Tooltips in PDF

2010-12-10 Thread Jonas Stein
Can i create tooltips in interactive PDF Files?

The mouse moves over the word earth and
a description just another planet appears.

Kind regards,

-- 
Jonas Stein n...@jonasstein.de

___
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] Saveable PDF-Files for Adobe Reader

2010-12-10 Thread Daniel Grycman
Hi list,

how can I create saveable PDF-Files with ConTeXt for Adobe Reader?

Daniel


___
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: no overfullrule in footnotes!

2010-12-10 Thread Hans Hagen

On 9-12-2010 6:15, Steffen Wolfrum wrote:


Am 09.12.2010 um 17:20 schrieb Hans Hagen:


On 8-12-2010 2:14, Steffen Wolfrum wrote:


PS: The overfullrule for footnotes is only missing in MKIV !


no overfull rules in mkiv (no plans either)




is this a well-founded decision?


well, i never ever use(d) overfull rules myself ... so, in order to 
support it i'd also have to look at interference with recent mkiv node 
list parsing based solutions, so it has a real low priority (I will 
probably provide other means to check such things)


-
  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] TEI - conTeXt

2010-12-10 Thread Jon Crump
All,

More naive questions about xml and context. I'm finding this slow
going and documentation opaque or just thin on the ground. I have XML
markup like this:

ref target=#N003-06 reference term/ref

where the reference text is in

div xml:id=notes
note xml:id=N003-06reference text/note
.
.
. etc.
/div

I need to set this as an endnote reference. Can anyone give me a hint
as to how a context environment file should look to achieve this?

Thomas's excellent tutorial at http://wiki.contextgarden.net/TEI_xml
is a great help, but my grasp of the underlying protocols is fragile.
More practical examples of TEI (or other xml texts)- ConTeXt - PDF
would sure come in handy.

thanks,
jon
___
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] facing-page translation

2010-12-10 Thread Jon Crump
All,

More naive questions about xml and context. I'm finding this slow
going and documentation opaque, or just thin on the ground.

Posting as a separate question:

I've trawled through the documentation for help in typesetting TEI
marked-up documents as facing-page translations. What little I've
found there that I can understand is not encouraging. Does anyone know
of examples of XML - ConTeXt - PDF that could give me a clue as to
how this might be done?

thanks,
jon
___
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] Math and bold font: \definetypeface

2010-12-10 Thread Florian Wobbe
 To get back to my problem:
 
 The default Ctx bodyfont (CMR) is all right for me, I don't need to change it 
 (but it's possible, if it should simplify something).

If you don't need CMR, than simply don't use. It does not have greek 
boldmath/upright anyway.

 If I understand well, the default Ctx font - CMR - is used for typesetting 
 [bold]math as well. But the problem is that it fails when typesetting bold 
 Greek letters.

Right.

 What code - \typescript, \define???font??? - to use?
 
 Just to make the code $Abc \alpha = {\aSwitchToBoldMath Abc \alpha} = or 
 \aCommandToTypeBoldMath{Abc \alpha}$ work.

Minimal example that uses Tex Gyre Pagella and Heros for serif and sans, and 
either Cambria, Asana, Neo Euler, or XITS for math (comment in your choice and 
make sure that context finds the fonts):

\starttypescript [myface]
  \definetypeface [\typescriptone] [rm] [serif] [pagella] [default]
  \definetypeface [\typescriptone] [ss] [sans]  [heros] [default]
  \definetypeface [\typescriptone] [tt] [mono]  [modern] [default]
  %\definetypeface [\typescriptone] [mm] [math]  [cambria][default]
  %\definetypeface [\typescriptone] [mm] [math]  [asana][default]
  %\definetypeface [\typescriptone] [mm] [math]  [euler][default]
  \definetypeface [\typescriptone] [mm] [math]  [xits][default]
\stoptypescript

\setupbodyfont[myface]

\starttext
  Pagella \par
  {\ss Heros} \par
  {\tt Modern Typewriter} \par
  $Abc \beta = {{\bi Abc} \bf Abc \beta \mathgreekupright \beta}$
\stoptext

Note that Neo Euler does not have italics and there are no fallbacks for 
bold/greek italic. So ${\bi A} \bf \beta$ will be displayed as $A \beta$.

Best wishes,
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
___


[NTG-context] No references

2010-12-10 Thread Andreas Harder
Hello Hans,

I've updated to todays beta and the indenting bug is gone; thanks again. But 
now there seems to be a problem with referencing.

\starttext
\placefigure[here][ref:fig]{}{}  \in{Fig.}[ref:fig]
\stoptext

Greeting
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] \SetTableToWidth undefined?

2010-12-10 Thread Vedran Miletić
2010/12/7 Hans Hagen pra...@wxs.nl

 On 7-12-2010 2:00, Khaled Hosny wrote:

  But I'm using \SetTableToWidth right now to set the width for all tables
 at once, what is replacement of that (I'm using texlive right now, and I
 hate to break the brand new document when I switch back to minimals).


 just do \setuptables[textwidth=...] then (once)


Why setuptables, why not just setuptable?

Regards,

Vedran Miletić
___
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: no overfullrule in footnotes!

2010-12-10 Thread Steffen Wolfrum

Am 09.12.2010 um 19:39 schrieb Hans Hagen:

 On 9-12-2010 6:15, Steffen Wolfrum wrote:
 
 Am 09.12.2010 um 17:20 schrieb Hans Hagen:
 
 On 8-12-2010 2:14, Steffen Wolfrum wrote:
 
 PS: The overfullrule for footnotes is only missing in MKIV !
 
 no overfull rules in mkiv (no plans either)
 
 
 
 is this a well-founded decision?
 
 well, i never ever use(d) overfull rules myself ... so, in order to support 
 it i'd also have to look at interference with recent mkiv node list parsing 
 based solutions, so it has a real low priority (I will probably provide other 
 means to check such things)


of course, any means is welcome!
we only really need an eye-caching way to skim if lines are overfull.
as it is easy to typeset hundreds (or thousands?) of pages with context ... how 
to easily check where (by any reason) a line couldn't break and shot over 
textwidth, for instance?!

Steffen
___
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] colors for pretty-printing

2010-12-10 Thread Renaud AUBIN
I need to not redefine.

Quoting Hans: maybe you should protect the color names as for instance
redefining darkred might not be the intention

In fact, I just need to find unique names for my colors to not overload
the existing ones…

Renaud

 I still don't understand. Where do you need to redefine darkred?
 Cheers, 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] TABLE help

2010-12-10 Thread barney schwartz
Wolfgang,

In MKIV using TABLE:

All seems to work well enough UNTIL I use \placetable. I have enormous table
that run pages in length. I need them split0 repeat and that works fine
until I add:

\placetable[here][tab:five]{Descriptive Statistics for Salaried Men \
Women}
{
.
.
.
.
.
.
.
.
.
}

I lose ALL page breaks and the table dissappears off the bottom of the page.
LOST no breaks. Think you could help?

barney
___
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] tiny bug in table (or my code?)

2010-12-10 Thread Mojca Miklavec
Dear Hans,

There is something wrong in this example, but I'm not able to figure
out if it's a problem in my code or a bug (with MKII it works just
fine).

When compiled with MKIV, I get extra space on the right, as if a
column on the right was missing.

\def\mymacro#1#2#3{\VL #1 \NC #2 \NC #3 \VL\AR}
\starttable[|cp(2em)|rp(2em)|rp(2em)|]
\HL
\VL 1 \NC 2 \NC 3 \VL\AR
\mymacro123
\HL
\stoptable

Mojca

PS: \startTEXpage ... \stopTEXpage around the code behaves as if table
was infinitely small. Is that OK?


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


[NTG-context] equation numbering: subfurmulas

2010-12-10 Thread Mojca Miklavec
I took the following document as a source:
http://wiki.contextgarden.net/images/b/b4/Mathalign.pdf
(Btw: Aditya, why isn't the latest version also on
http://dl.contextgarden.net/myway/mathalign.pdf?)

Section 4.2 says one thing and does the other ...

I want to have my equations numbered as
  a_1 = (1,0,0)(1a)
  a_2 = (0,1,0)(1b)
  a_3 = (0,0,1)(1c)
and then reference them as equation (1).

The example from Aditya's document says the following:

\placesubformula
\startformula \startalign
\NC a_1 x + b_1 y \NC = c_1 \NR[+][a]
\NC a_2 x + b_2 y \NC = c_2 \NR[+][b]
\stopalign \stopformula

But if I try that in MKII, I get (0a) and (0b), while if I try that in
MKIV, I get (1) and (2). How do I get (1a) and (1b) with both MKII and
MKIV?

Mojca

(I'm asking about MKII since I have a completely different problem
with every new MKIV version released and I really need to finish that
document even if MKIV crashes or a nuclear war starts ... :) :) :)
___
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] TABLE

2010-12-10 Thread barney schwartz
Wolfgang,

  \placetable
 {Caption}
 {\bTABLE
  ...
  \eTABLE}

BUT I have a Long split=repeat table and when I use {} the table passes the
end of the page. If I remove {} it splits properly but then I have no
caption.

What to do?

barney
___
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] bib problems

2010-12-10 Thread Florian Wobbe
On Dec 7, 2010, at 15:26 , Mojca Miklavec wrote:

 I have a tiny feature request.
 
 I would like to have a separate bibliography for, say, list of
 figures. Basically all I ask for is the ability to have a separate
 named bibliography as opposed to a single list.

Hi,

I would also like to support the ability to put an arbitrary number of 
reference lists in different locations inside one document. I once had a report 
that had individual reference lists at the end of several sections.

I'm not sure about the best way of implementing this. E.g. how do I select 
which publications are in which list. One could define a special key as 
suggested by Hans, or select by existing BibTeX keys like author, year, 
publisher etc. Another possibility would be to put all references which are in 
a specific bib-file in one list (when you have multiple bib-files).

Also, as a feature request/bug report I repeat an earlier message:

In BibTeX databases ranges of numbers are usually listed with a single dash 
(e.g. 3-7) for compatibility reasons. Therefore the standard BibTeX styles 
convert a single dash in page numbers or range of numbers to a double dash 
(3--7). It would be great to have this functionality for \volume \issue \pages 
in context as well.

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
___


[NTG-context] Redefine symbols for new command \morse{.-..}

2010-12-10 Thread Jonas Stein
i'd like to define a new command

\define[]\short{\dontleavehmode \blackrule[width=0.4em]\ }
\define[]\long {\dontleavehmode \blackrule[width=1.4em]\ }
\define[1] \morse {MAGIC}

\morse{.-..} 
should create a \short for every '.' and \long for every '-'
But this transcription should be only active in the 
morse environment

Is that possible? Who knows the MAGIC?

Kind regards,

-- 
Jonas Stein n...@jonasstein.de

___
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] Saveable PDF-Files for Adobe Reader

2010-12-10 Thread Martin Schröder
2010/12/8 Daniel Grycman daniel.gryc...@rub.de:
 how can I create saveable PDF-Files with ConTeXt for Adobe Reader?

You can not (if you mean adding comments or saving form fields).
Please complain to Adobe about this.

Best
   Martin
___
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] bib problems

2010-12-10 Thread Thomas Schmitz

On Wed, 8 Dec 2010 11:47:09 +0100
 Matija Šuklje mat...@suklje.name wrote:
Dne sreda 8. decembra 2010 ob 10:08:19 je Robert 
Blackstone napisal(a):

On Tue, Dec 7, 2010 at 8:10 PM,  Mojca Miklavec

mojca.miklavec.li...@gmail.com wrote:



 I have a tiny feature request.
 
 I would like to have a separate bibliography for, 
say, list of
 figures. Basically all I ask for is the ability to 
have a separate

 named bibliography as opposed to a single list.

I too would be very happy with the possibility to 
produce a

Bibliography with various sections.


+1 on that.

I would need to separate it by type of medium — 
monographies, articles, links 
etc.


This is not a bug report, so I won't include it in my test 
files, but just to comment on this: for a project I'm 
doing with ConTeXt, I will need to the ability to have a 
bibliography with several sections. I've discussed this 
with Hans, and he will write code to support filtering by 
keywords. We haven't yet discussed the interface etc., but 
this is something that will come in the spring at the very 
latest. Mojca, this is not the same as your original 
suggestion, but this looks like it would take care of the 
two +1 messages, right?


Thomas
___
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: no overfullrule in footnotes!

2010-12-10 Thread Steffen Wolfrum

Am 09.12.2010 um 17:20 schrieb Hans Hagen:

 On 8-12-2010 2:14, Steffen Wolfrum wrote:
 
 PS: The overfullrule for footnotes is only missing in MKIV !
 
 no overfull rules in mkiv (no plans either)



is this a well-founded decision?

in footnotes there is often used non-breakable url and fixed spaces (\, etc.) 
in abbreviations.
so overfull lines are very likely!

how can these be adjusted when they are not indicated as overfull any more?


maybe you could revise your opinion

Steffen
___
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] Proposal for math mappings

2010-12-10 Thread Aditya Mahajan

This is a proposal for a new way of selecting math mappings in MkIV. I want
to get input from other math users whether this syntax would take care of all
scenarios or not.

There are five different ranges in mathematics:
- digits (0..9)
- lower case Latin (abc..z)
- upper case Latin (ABC..Z)
- lower case Greek (αβγ..ζ)
- upper case Greek (ΑΒΓ..Z)

A user may want to control what each range is mapped to. So, I suggest a setup
command

\setupmathmappings
  [
 digits={style,alternative},
lclatin={style,alternative},
uclatin={style,alternative},
lcgreek={style,alternative},
ucgreek={style,alternative},
  ]

where the options for style are

  normal, bold

while the options for alternative are

  normal, italic, sans, sansitalic, blackboard, script

This command will the mappings for each range. **NOTE**: All combinations are 
not valid.

A companion command

\definemathmappings
  [whatever]
  []

can be used to define multiple mappings. These mappings can be used by

\setupmathmappings[whatever]

(An alternative is that these mappings are activated using \whatever ...)

For example, we can define a command to typeset vectors using

\definemathmappings
  [vectors]
  [ digits={bold,normal},
   lclatin={bold,normal},
   uclatin={bold,normal},
   lcgreek={bold,normal},
   ucgreek={bold,normal}]

\def\VEC{\groupedcommand{\setupmathmappings[vector]}{}}

If later, we want to represent vectors as sans serif, we can use


\definemathmappings
  [vectors]
  [ digits={normal,sans},
   lclatin={normal,sans},
   uclatin={normal,sans},
   lcgreek={normal,sans},
   ucgreek={normal,sans}]

This interface makes it easy to switch math fonts for disiplines that want
different style for different alphabet ranges.

It is relatively easy to implement the above interface. All we need is 
some bookkeeping to set the right attributes. The default math mapping 
commands can be reimplmeneted using \definemappings. Before implementing 
this, I want to ask the opinion of other math users.


Would the above interface take care of different use cases, or is it missing
something?

Finally, I am not too happy with the syntax. There are only a few ConTeXt
commands in which the keys take a pair of values. Another option is to allow all
12 valid options

  normal, italic, sans, sansitalic, blackboard, script,
  bold, bolditlaic, boldsans, boldsansitalic, boldblackboard, boldscript

with the variants sansitalic-italicsans, boldsans-sansbold, etc. as synonmyms.

Which way of specifying the keys do you prefer?

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
___


[NTG-context] Featurerequest: \contextversion

2010-12-10 Thread Jonas Stein
It would be nice to have a command 

\contextversion
\luaversion
\pdftexversion

that prints the current context version numbers.
That could be a great deal for trouble shooting in the 
fast growing context world.

I could not find a similar command in the wiki.

Is that possible?

-- 
Jonas Stein n...@jonasstein.de

___
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: no overfullrule in footnotes!

2010-12-10 Thread Marco Pessotto
Steffen Wolfrum cont...@st.estfiles.de writes:

 Am 09.12.2010 um 19:39 schrieb Hans Hagen:

 On 9-12-2010 6:15, Steffen Wolfrum wrote:
 
 Am 09.12.2010 um 17:20 schrieb Hans Hagen:
 
 On 8-12-2010 2:14, Steffen Wolfrum wrote:
 
 PS: The overfullrule for footnotes is only missing in MKIV !
 
 no overfull rules in mkiv (no plans either)
 
 
 
 is this a well-founded decision?
 
 well, i never ever use(d) overfull rules myself ... so, in order to support 
 it i'd also have to look at interference with recent mkiv node list parsing 
 based solutions, so it has a real low priority (I will probably provide 
 other means to check such things)


 of course, any means is welcome!
 we only really need an eye-caching way to skim if lines are overfull.
 as it is easy to typeset hundreds (or thousands?) of pages with context ... 
 how to easily check where (by any reason) a line couldn't break and shot over 
 textwidth, for instance?!

 Steffen
 

I used \showframe and grep against the log file.

Bests

-- 
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] colors for pretty-printing

2010-12-10 Thread Peter Münster
On Wed, Dec 08 2010, Renaud AUBIN wrote:

 In fact, I just need to find unique names for my colors to not overload
 the existing ones…

\doifcolorelse{new funny color}
  {Error: funny color already exists!}
  {\definecolor[new funny color][...]}

With \setupcolor[ema] or \setupcolor[ema, x11, xwi] there are already a lot of
predefined colors, so I don't think that you need new color definitions in the
module.

Peter

-- 
Contact information: http://pmrb.free.fr/contact/
___
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] Bug in fontswitching

2010-12-10 Thread Willi Egger
Hi,

There seems to be a bug in the font switching mechanism. 

When using the fonts at small sizes up to 12pt everything is fine. However I 
detected while developing a title page, that larger sizes will not be honored.  
I.e. that the font where it is switched to is not loaded at all.

See attached minimal example.

Kind regards
Willi



test-fontswitch.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] colors for pretty-printing

2010-12-10 Thread Renaud AUBIN
Ok but then why did you define a specific color palet?

local function color_init()
color = 0
local def_colors = -- \setupcolor[ema] introduces new line...
\\definecolor [darkred]   [r=.545098] ..
\\definecolor [orchid][r=.854902,g=.439216,b=.839216] ..
\\definecolor [rosybrown] [r=.737255,g=.560784,b=.560784] ..
\\definecolor [forestgreen]   [r=.13,g=.545098,b=.13] ..
…

Renaud
 With \setupcolor[ema] or \setupcolor[ema, x11, xwi] there are already a lot of
 predefined colors, so I don't think that you need new color definitions in the
 module
___
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] colors for pretty-printing

2010-12-10 Thread Peter Münster
On Fri, Dec 10 2010, Renaud AUBIN wrote:

 Ok but then why did you define a specific color palet?
 
 local function color_init()
 color = 0
 local def_colors = -- \setupcolor[ema] introduces new line...

The comment says it: \setupcolor[ema] introduces new line and that's annoying
when you do inline typing: bla bla \typeC{int main(){}} bla bla

The \definecolor[] lines (dirty workaround) were just copied from
colo-ema.tex.

The problem with the pretty-c.lua was, that color_init() was called at every
\typeC{} or \startC.

In your t-pretty-c.mkiv you can use \setupcolor[ema] without problems.

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/
___
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] Saveable PDF-Files for Adobe Reader

2010-12-10 Thread Daniel Grycman
Using Foxit Reader helps a lot... :-)

On 10.12.10 11:21, Martin Schröder mar...@oneiros.de wrote:

2010/12/8 Daniel Grycman daniel.gryc...@rub.de:
 how can I create saveable PDF-Files with ConTeXt for Adobe Reader?

You can not (if you mean adding comments or saving form fields).
Please complain to Adobe about this.

Best
   Martin
__
_
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] Bug in fontswitching

2010-12-10 Thread Thomas Schmitz

On Fri, 10 Dec 2010 11:51:54 +0100
 Willi Egger w.eg...@boede.nl wrote:

Hi,

There seems to be a bug in the font switching mechanism. 

I was just preparing a minimal example for a similar 
problem :-) Switching to italic fonts doesn't work at all. 
Here is an example:


\starttext

This is regular, {\it and this not italic} {\bf (and this 
is bold).}


\stoptext

All best

Thomas
___
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] \SetTableToWidth undefined?

2010-12-10 Thread Hans Hagen

On 8-12-2010 1:00, Vedran Miletić wrote:

2010/12/7 Hans Hagenpra...@wxs.nl


On 7-12-2010 2:00, Khaled Hosny wrote:

  But I'm using \SetTableToWidth right now to set the width for all tables

at once, what is replacement of that (I'm using texlive right now, and I
hate to break the brand new document when I switch back to minimals).



just do \setuptables[textwidth=...] then (once)



Why setuptables, why not just setuptable?


has always been the case .. you set them up all at once

-
  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] colors for pretty-printing

2010-12-10 Thread Renaud AUBIN
Done and committed on
http://gitorious.org/c-pretty-printer-module-for-context-mark-iv
 In your t-pretty-c.mkiv you can use \setupcolor[ema] without problems.
___
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: no overfullrule in footnotes!

2010-12-10 Thread Hans Hagen

On 9-12-2010 11:38, Steffen Wolfrum wrote:


as it is easy to typeset hundreds (or thousands?) of pages with context  
how to easily check where (by any reason) a line couldn't break and shot over 
textwidth, for instance?!


i never check ... just set the tolerance to verytolerant and stretch

-
  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] equation numbering: subfurmulas

2010-12-10 Thread Leo Razoumov
On Wed, Dec 8, 2010 at 10:12, Mojca Miklavec
mojca.miklavec.li...@gmail.com wrote:
 I took the following document as a source:
    http://wiki.contextgarden.net/images/b/b4/Mathalign.pdf
 (Btw: Aditya, why isn't the latest version also on
 http://dl.contextgarden.net/myway/mathalign.pdf?)

 Section 4.2 says one thing and does the other ...


Indeed. I just downloaded the 30 May 2010 version of Mathalign.pdf
from the link you provided and visual inspection of the section 4.2
reveals no subformula equation labels in the examples. All tags are
numbered from (10) to (28) and non is in the form of  (1a). It seems
that subformulas did not work for the author either.

--Leo--
___
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] Redefine symbols for new command \morse{.-..}

2010-12-10 Thread Hans Hagen

On 10-12-2010 11:17, Jonas Stein wrote:

\define[]\short{\dontleavehmode \blackrule[width=0.4em]\ }
\define[]\long {\dontleavehmode \blackrule[width=1.4em]\ }
\define[1] \morse {MAGIC}

\morse{.-..}


up to you to complete the tables ... after that I'll clean up the code a 
bit



-
  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
-
\startluacode
moduledata.morse = moduledata.morse or { }

local morsecodes = {
[A] = ·—,
[B] = —···,
[C] = —·—·,
[D] = —··,
[E] = ·,
[F] = ··—·,
[G] = ——·,
[H] = ····,
[I] = ··,
[J] = ·———,
[K] = —·—,
[L] = ·—··,
[M] = ——,
[N] = —·,
[O] = ———,
[P] = ·——·,
[Q] = ——·—,
[R] = ·—·,
[S] = ···,
[T] = —,
[U] = ··—,
[V] = ···—,
[W] = ·——,
[X] = —··—,
[Y] = —·——,
[Z] = ——··,
[0] = —————,
[1] = ·————,
[2] = ··———,
[3] = ···——,
[4] = ····—,
[5] = ·····,
[6] = —····,
[7] = ——···,
[8] = ———··,
[9] = ————·,
[.] = ·—·—·—,
[,] = ——··——,
[?] = ··——··,
[-] = —····—,
[/] = —··—· ,
[:] = ———···,
['] = ·————·,
[-] = —····—,
[)] = —·——·—,
[;] = —·—·— ,
[(] = —·——·,
[=] = —···—,
[@] = ·——·—·,
}

local simplecodes = {
[.] = ·,
[-] = —,
}

function moduledata.morse.tomorse(str,translate)
if translate then
str = utf.gsub(string.upper(str),.,morsecodes)
else
str = utf.gsub(str,.,simplecodes)
end
context.ignorespaces()
for s in string.utfcharacters(str) do
if s == · then
context.MorseShort()
elseif s == — then
context.MorseLong()
elseif s == \n or s ==   then
context.MorseSpace()
else
context.MorseUnknown(s)
end
end
context.removeunwantedspaces()
end

function moduledata.morse.filetomorse(name,translate)
moduledata.morse.tomorse(resolvers.loadtexfile(name),translate)
end

\stopluacode

\unprotect

\def\MorseShort{\dontleavehmode\blackrule[\c!width=0.4em]\space}
\def\MorseLong {\dontleavehmode\blackrule[\c!width=1.4em]\space}
\def\MorseSpace{\emspace}
\def\MorseUnknown#1{\emspace}
\def\MorseCode   #1{\ctxlua{moduledata.morse.tomorse(#1)}}
\def\Morse   #1{\ctxlua{moduledata.morse.tomorse(#1,true)}}
\def\MorseFile   #1{\ctxlua{moduledata.morse.filetomorse(#1,true)}}

\unprotect

\starttext

\MorseCode{.-..}

\Morse{CONTEXT}

\MorseFile{tufte}

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

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


Re: [NTG-context] Proposal for math mappings

2010-12-10 Thread Vladimir Lomov
Hi.

** Aditya Mahajan [2010-12-09 23:49:26 -0500]:

 This is a proposal for a new way of selecting math mappings in MkIV. I want
 to get input from other math users whether this syntax would take care of all
 scenarios or not.
 
 There are five different ranges in mathematics:
 - digits (0..9)
 - lower case Latin (abc..z)
 - upper case Latin (ABC..Z)
 - lower case Greek (αβγ..ζ)
 - upper case Greek (ΑΒΓ..Z)
Should be: αβγ..ω
and ΑΒΓ..Ω
 A user may want to control what each range is mapped to. So, I suggest a setup
 command
 
 \setupmathmappings
   [
  digits={style,alternative},
 lclatin={style,alternative},
 uclatin={style,alternative},
 lcgreek={style,alternative},
 ucgreek={style,alternative},
   ]
 
 where the options for style are
 
   normal, bold
 
 while the options for alternative are
 
   normal, italic, sans, sansitalic, blackboard, script
 
 This command will the mappings for each range. **NOTE**: All combinations are 
 not valid.
 
 A companion command
 
 \definemathmappings
   [whatever]
   []
 
 can be used to define multiple mappings. These mappings can be used by
 
 \setupmathmappings[whatever]
 
 (An alternative is that these mappings are activated using \whatever ...)
 
 For example, we can define a command to typeset vectors using
 
 \definemathmappings
   [vectors]
   [ digits={bold,normal},
lclatin={bold,normal},
uclatin={bold,normal},
lcgreek={bold,normal},
ucgreek={bold,normal}]
 
 \def\VEC{\groupedcommand{\setupmathmappings[vector]}{}}
Is it should be
\def\VEC{\groupedcommand{\setupmathmappings[vectors]}{}}
?
 
 If later, we want to represent vectors as sans serif, we can use
 
 
 \definemathmappings
   [vectors]
   [ digits={normal,sans},
lclatin={normal,sans},
uclatin={normal,sans},
lcgreek={normal,sans},
ucgreek={normal,sans}]
 
 This interface makes it easy to switch math fonts for disiplines that want
 different style for different alphabet ranges.
 
 It is relatively easy to implement the above interface. All we need
 is some bookkeeping to set the right attributes. The default math
 mapping commands can be reimplmeneted using \definemappings. Before
 implementing this, I want to ask the opinion of other math users.
 
 Would the above interface take care of different use cases, or is it missing
 something?
IMHO, style is already used so it is normal.
 Finally, I am not too happy with the syntax. There are only a few ConTeXt
 commands in which the keys take a pair of values. Another option is to allow 
 all
 12 valid options
 
   normal, italic, sans, sansitalic, blackboard, script,
   bold, bolditlaic, boldsans, boldsansitalic, boldblackboard, boldscript
This very depends on used fonts. 
 with the variants sansitalic-italicsans, boldsans-sansbold, etc. as synonmyms.
 
 Which way of specifying the keys do you prefer?
 
 Aditya
Actually I don't get what you try to do. I thought that 'font
switching' command should take care of font switching either in math or
text modes (if typescript is set properly). Right now the only good
example of usage of proposed mechanism is \VEC command (for vectors and etc).

---
WBR, Vladimir Lomov.

-- 
I share the belief of many of my contemporaries that the spiritual crisis
pervading all spheres of Western industrial society can be remedied only 
by a change in our world view.  We shall have to shift from the materialistic,
dualistic belief that people and their environment are separate, toward a
new conciousness of an all-encompassing reality, which embraces the 
experiencing ego, a reality in which people feel their oneness with animate 
nature and all of creation.
- Dr. Albert Hoffman
___
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: no overfullrule in footnotes!

2010-12-10 Thread Steffen Wolfrum

Am 10.12.2010 um 12:29 schrieb Hans Hagen:

 On 9-12-2010 11:38, Steffen Wolfrum wrote:
 
 as it is easy to typeset hundreds (or thousands?) of pages with context  
 how to easily check where (by any reason) a line couldn't break and shot 
 over textwidth, for instance?!
 
 i never check ... just set the tolerance to verytolerant and stretch

... and Hans defined \dontcomplain :o) 

Steffen
___
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] bib problems

2010-12-10 Thread Mojca Miklavec
On Tue, Dec 7, 2010 at 16:01, Hans Hagen pra...@wxs.nl wrote:
 On 7-12-2010 3:26, Mojca Miklavec wrote:

 I have a tiny feature request.

 I would like to have a separate bibliography for, say, list of
 figures. Basically all I ask for is the ability to have a separate
 named bibliography as opposed to a single list.

 no big deal in mkiv i guess

 But maybe I need to elaborate a bit more before sending request. It
 makes no sense to implement it in the wrong and unstatisfactory way.

  Just to mention it before I forget.

 so how would that look at the input end? an extra key?

I should think about it a bit. But just a few possibilities ... At the
moment I use:
\startpublication
  [k=xy,
   t=xy]
  
\stoppublication

Options are:

1.)
\startpublicationlist[images] or \startpublications[images] or ...
\startpublication[k=xy,t=xy]
  
\stoppublication
...
\stoppublicationlist

2.)
\startpublication[k=xy,t=xy,list=images]
  
\stoppublication

3.)
\startpublication[images][k=xy,t=xy]
  
\stoppublication

And then
\placepublications[list=images]

Then \cite would work in exactly the same way (one would not need to
provide any extra key to cite itself).

But one would need to think of a proper model to number the
references. That is: it would have to be configurable to be able to
either number images with roman instead of arabic numerals (or with a,
b, c, ...), or to prepend something, like [img1], [img2], [img3]
instead of [1], [2], [3]. Or simply let the user do in
\cite{figure}[xy], or to number images with numbers bigger than other
references. For example:

Books:
[1]
[2]
[3]
Articles:
[4]
[5]
[6]
[7]
Images:
[8]
[9]

or

Books:
[1]
[2]
[3]
Articles:
[a1]
[a2]
[a3]
[a3]
Images:
[i1]
[i2]

or any other user-configurable option for numbering ...

However, having a properly designed model is better than having some
ad-hoc solution that turns out not flexible enough or clumsy to use
and buggy later on ...

And yes, something that would allow splitting references across
sections could just as well be used for this. It just needs to be
designed properly ... (But section-based bibliography could work
without any extra key, right?)

And no, please don't count it as bug report. I just mentioned it
because Hans wanted to have a big bunch of everything at a single
place.

I suggest to reopen the topic and create exact specification before
the actual implementation.

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] Math and bold font: \definetypeface

2010-12-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello -

On Wed, 08 Dec 2010 11:24:36 +0100, Florian Wobbe florian.wo...@awi.de wrote:


Minimal example that uses Tex Gyre Pagella and Heros for serif and sans, and 
either Cambria, Asana, Neo Euler, or XITS for math (comment in your choice and 
make sure that context finds the fonts):

\starttypescript [myface]
  \definetypeface [\typescriptone] [rm] [serif] [pagella] [default]
  \definetypeface [\typescriptone] [ss] [sans]  [heros] [default]
  \definetypeface [\typescriptone] [tt] [mono]  [modern] [default]
  %\definetypeface [\typescriptone] [mm] [math]  [cambria][default]
  %\definetypeface [\typescriptone] [mm] [math]  [asana][default]
  %\definetypeface [\typescriptone] [mm] [math]  [euler][default]
  \definetypeface [\typescriptone] [mm] [math]  [xits][default]
\stoptypescript

\setupbodyfont[myface]

\starttext
  Pagella \par
  {\ss Heros} \par
  {\tt Modern Typewriter} \par
  $Abc \beta = {{\bi Abc} \bf Abc \beta \mathgreekupright \beta}$
\stoptext

Note that Neo Euler does not have italics and there are no fallbacks for 
bold/greek italic. So ${\bi A} \bf \beta$ will be displayed as $A \beta$.

Best wishes,
Florian


- thanks for the solution and thanks to all for explanations and again for 
patience.

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
___


Re: [NTG-context] TABLE help

2010-12-10 Thread Hans Hagen

On 10-12-2010 8:40, barney schwartz wrote:

Wolfgang,

In MKIV using TABLE:

All seems to work well enough UNTIL I use \placetable. I have enormous table
that run pages in length. I need them split0 repeat and that works fine
until I add:

\placetable[here][tab:five]{Descriptive Statistics for Salaried Men \
Women}
{



search for starttables in tabl-tab.mkiv for examples


-
  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] Proposal for math mappings

2010-12-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .

On Fri, 10 Dec 2010 05:49:26 +0100, Aditya Mahajan adit...@umich.edu wrote:


This is a proposal for a new way of selecting math mappings in MkIV. I want
to get input from other math users whether this syntax would take care of all
scenarios or not.

There are five different ranges in mathematics:
- digits (0..9)
- lower case Latin (abc..z)
- upper case Latin (ABC..Z)
- lower case Greek (αβγ..ζ)
- upper case Greek (ΑΒΓ..Z)


Just to confirm -

- 0-9 are 48-57 in ASCII
- a-z = 97-122
- A-Z = 65-90
- LC Greek = ?-? (given by \alpha to \omega range)
- UC Greek = ?-? (given by \Alpha to \Omega range)

- Is that right?


A user may want to control what each range is mapped to. So, I suggest a setup
command

 \setupmathmappings
   [
  digits={style,alternative},
 lclatin={style,alternative},
 uclatin={style,alternative},
 lcgreek={style,alternative},
 ucgreek={style,alternative},
   ]



OK, it might be useful when one wants e.g. ALL Greek letters to be printed 
somehow, e.g. bold.

I don't think that the basic criterion for style in math is the (alphabet) 
range, it's rather the meaning of maths 
(variable/parameter/vector/tensor/operator (e.g. Nabla operator)). But OK -


where the options for style are

   normal, bold

while the options for alternative are

   normal, italic, sans, sansitalic, blackboard, script

This command will the mappings for each range. **NOTE**: All combinations are 
not valid.

A companion command

 \definemathmappings
   [whatever]
   []

can be used to define multiple mappings. These mappings can be used by

 \setupmathmappings[whatever]

(An alternative is that these mappings are activated using \whatever ...)

For example, we can define a command to typeset vectors using

 \definemathmappings
   [vectors]
   [ digits={bold,normal},
lclatin={bold,normal},
uclatin={bold,normal},
lcgreek={bold,normal},
ucgreek={bold,normal}]

 \def\VEC{\groupedcommand{\setupmathmappings[vector]}{}}


Or rather the following (?): 
\def\VEC#1{\groupedcommand{\setupmathmappings[vector]}{#1}}


If later, we want to represent vectors as sans serif, we can use

 \definemathmappings
   [vectors]
   [ digits={normal,sans},
lclatin={normal,sans},
uclatin={normal,sans},
lcgreek={normal,sans},
ucgreek={normal,sans}]



This kind of switching would be great.


This interface makes it easy to switch math fonts for disciplines that want
different style for different alphabet ranges.

It is relatively easy to implement the above interface. All we need is
some bookkeeping to set the right attributes. The default math mapping
commands can be reimplmeneted using \definemappings. Before implementing
this, I want to ask the opinion of other math users.

Would the above interface take care of different use cases, or is it missing
something?


It looks good. Some examples would be needed, starting at simple ones and ending with 
wildly switching math formulas.


Finally, I am not too happy with the syntax. There are only a few ConTeXt
commands in which the keys take a pair of values. Another option is to allow all
12 valid options

   normal, italic, sans, sansitalic, blackboard, script,
   bold, bolditlaic, boldsans, boldsansitalic, boldblackboard, boldscript

with the variants sansitalic-italicsans, boldsans-sansbold, etc. as synonmyms.

Which way of specifying the keys do you prefer?


Personally, no matter. Programming clarity should be kept at most - so it's 
up to you. When some samples are provided, someone will follow them.

Thank for your effort.

Lukas



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

___
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] bib problems

2010-12-10 Thread Thomas Schmitz

On Fri, 10 Dec 2010 14:18:20 +0100
 Mojca Miklavec mojca.miklavec.li...@gmail.com wrote:
I should think about it a bit. But just a few 
possibilities ... At the

moment I use:
   \startpublication
 [k=xy,
  t=xy]
 
   \stoppublication

Options are:


When we think from the bibtex side, it would boil down to 
processing the keyword= key (which is already there in 
the bibtex specification). You could then order your 
publications with terms such as keyword=image 
keyword=article etc.




1.)
\startpublicationlist[images] or 
\startpublications[images] or ...

   \startpublication[k=xy,t=xy]
 
   \stoppublication
...
\stoppublicationlist

2.)
   \startpublication[k=xy,t=xy,list=images]
 
   \stoppublication

3.)
   \startpublication[images][k=xy,t=xy]
 
   \stoppublication

And then
   \placepublications[list=images]

Then \cite would work in exactly the same way (one would 
not need to

provide any extra key to cite itself).

But one would need to think of a proper model to number 
the
references. That is: it would have to be configurable to 
be able to
either number images with roman instead of arabic 
numerals (or with a,
b, c, ...), or to prepend something, like [img1], 
[img2], [img3]

instead of [1], [2], [3]. Or simply let the user do in
\cite{figure}[xy], or to number images with numbers 
bigger than other

references. For example:

Books:
[1]
[2]
[3]
Articles:
[4]
[5]
[6]
[7]
Images:
[8]
[9]

or

Books:
[1]
[2]
[3]
Articles:
[a1]
[a2]
[a3]
[a3]
Images:
[i1]
[i2]

or any other user-configurable option for numbering ...

However, having a properly designed model is better than 
having some
ad-hoc solution that turns out not flexible enough or 
clumsy to use

and buggy later on ...


One syntax would be

\placepublications[filter=image,prefix={img.},option=continue,numberconversion=romannumbers]



And yes, something that would allow splitting references 
across
sections could just as well be used for this. It just 
needs to be
designed properly ... (But section-based bibliography 
could work

without any extra key, right?)

And no, please don't count it as bug report. I just 
mentioned it
because Hans wanted to have a big bunch of everything 
at a single

place.

I suggest to reopen the topic and create exact 
specification before

the actual implementation.


Yes, we can discuss it (on or off list) when it will be 
implemented.


Thomas
___
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] TABLE help

2010-12-10 Thread Wolfgang Schuster

Am 10.12.2010 um 08:40 schrieb barney schwartz:

 In MKIV using TABLE:
  
 All seems to work well enough UNTIL I use \placetable. I have enormous table 
 that run pages in length. I need them split0 repeat and that works fine until 
 I add:
  
 \placetable[here][tab:five]{Descriptive Statistics for Salaried Men \ Women}

You need the „split“ keyword, e.g.

\placetable[split][tab.five]{...}{...}

You can now also omit the „split=yes“ setting when you write it as argument for 
\bTABLE.

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 in fontswitching

2010-12-10 Thread Hans Hagen

On 10-12-2010 12:19, Thomas Schmitz wrote:

On Fri, 10 Dec 2010 11:51:54 +0100
Willi Egger w.eg...@boede.nl wrote:

Hi,

There seems to be a bug in the font switching mechanism.

I was just preparing a minimal example for a similar problem :-)
Switching to italic fonts doesn't work at all. Here is an example:

\starttext

This is regular, {\it and this not italic} {\bf (and this is bold).}

\stoptext

All best


hopefully fixed (math vs text issue)


-
  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] Re;Help TABLE

2010-12-10 Thread barney schwartz
Hans,
guess I didn't explain wel enough. Using Wolfgang's

TABLE module

\bTABLE
\bTABLEhead
\bTR
\bTH Group \eTH \bTH N \eTH \bTH MEAN \eTH \bTH STD \eTH \bTH MIN \eTH \bTH
MAX \eTH \bTH Gini \eTH \bTH 80/20 \eTH
\eTR
\eTABLEhead
\bTABLEbody
\bTR \bTC[nc=8] 1980 \eTC \eTR
.
..
.
lots and lots and lots or rows
.
...
.
\eTABLEbody
\bTABLEfoot
\bTR \bTC[nc=8]*\$=New Taiwan Dollars \eTC \eTR
\eTABLEfoot
\eTABLE\eTABLEbody
\bTABLEfoot
\bTR \bTC[nc=8]*\$=New Taiwan Dollars \eTC \eTR
\eTABLEfoot
\eTABLE


all works fine

but when I add:

\placetable[here][tab:five]{Descriptive Statistics for Salaried Men \
Women}
{


in order to get reference, caption I lose the split and so the tables just
runs OFF the end of the page

suggestions PLEASE

barney
___
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] Featurerequest: \contextversion

2010-12-10 Thread Wolfgang Schuster

Am 09.12.2010 um 19:40 schrieb Jonas Stein:

 It would be nice to have a command 
 
 \contextversion
 \luaversion
 \pdftexversion
 
 that prints the current context version numbers.
 That could be a great deal for trouble shooting in the 
 fast growing context world.
 
 I could not find a similar command in the wiki.
 
 Is that possible?

You can use

- \texenginename to get the name of the engine (e.g. LuaTeX)
- \texengineversion to get the version number of the engine (e.g. 0.64)
- \contextversion to get the version number of context (e.g. 2010.12.09 12:11)

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] Re;Help TABLE

2010-12-10 Thread Philipp Gesang
Hi Barney,

On 2010-12-10 15:30:04, barney schwartz wrote:
 Hans,
 guess I didn't explain wel enough. Using Wolfgang's
 
 TABLE module
 
 \bTABLE
 \bTABLEhead
 \bTR
 \bTH Group \eTH \bTH N \eTH \bTH MEAN \eTH \bTH STD \eTH \bTH MIN \eTH \bTH
 MAX \eTH \bTH Gini \eTH \bTH 80/20 \eTH
 \eTR
 \eTABLEhead
 \bTABLEbody
 \bTR \bTC[nc=8] 1980 \eTC \eTR
 .
 ..
 .
 lots and lots and lots or rows

Fyi: context has a built-in way of saying “lots of”, it’s called
“\dorecurse”; have look at syst-aux.mkiv for loops c.

 .
 ...
 .
 \eTABLEbody
 \bTABLEfoot
 \bTR \bTC[nc=8]*\$=New Taiwan Dollars \eTC \eTR
 \eTABLEfoot
 \eTABLE\eTABLEbody
 \bTABLEfoot
 \bTR \bTC[nc=8]*\$=New Taiwan Dollars \eTC \eTR
 \eTABLEfoot
 \eTABLE
 
 
 all works fine
 
 but when I add:
 
 \placetable[here][tab:five]{Descriptive Statistics for Salaried Men \
 Women}
 {
 
 
 in order to get reference, caption I lose the split and so the tables just
 runs OFF the end of the page

Placetable takes an optional arg “split”:

···8

\startbuffer
\bTABLE[split=repeat]
\bTABLEhead
\bTR
\bTH Group \eTH \bTH N \eTH \bTH MEAN \eTH \bTH STD \eTH \bTH MIN \eTH \bTH
MAX \eTH \bTH Gini \eTH \bTH 80/20 \eTH
\eTR
\eTABLEhead
\bTABLEbody
\bTR \bTC[nc=8] 1980 \eTC \eTR
\dorecurse{100}{\bTR \dorecurse{8}{\bTC text \eTC} \eTR}
\eTABLEbody
\bTABLEfoot
\bTR \bTC[nc=8]*\$=New Taiwan Dollars \eTC \eTR
\eTABLEfoot
\eTABLE
\stopbuffer

\starttext
\placetable[here,split][tab:five]{Salary Stats}{\getbuffer}
\stoptext

···8

Regards, Philipp

PS: What table module are you referring to? This seems to be a
standard natural table.

 
 suggestions PLEASE
 
 barney

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


-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpJZ2eWaj8Dd.pgp
Description: PGP signature
___
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] Proposal for math mappings

2010-12-10 Thread Aditya Mahajan

On Fri, 10 Dec 2010, Procházka Lukáš Ing. - Pontex s. r. o. wrote:


On Fri, 10 Dec 2010 05:49:26 +0100, Aditya Mahajan adit...@umich.edu wrote:


This is a proposal for a new way of selecting math mappings in MkIV. I want
to get input from other math users whether this syntax would take care of 
all

scenarios or not.

There are five different ranges in mathematics:
- digits (0..9)
- lower case Latin (abc..z)
- upper case Latin (ABC..Z)
- lower case Greek (αβγ..ζ)
- upper case Greek (ΑΒΓ..Z)


Just to confirm -

- 0-9 are 48-57 in ASCII
- a-z = 97-122
- A-Z = 65-90
- LC Greek = ?-? (given by \alpha to \omega range)
- UC Greek = ?-? (given by \Alpha to \Omega range)

- Is that right?


Yes. In addition, Greek will work even if you key in 0x0391-0x03C9.

A user may want to control what each range is mapped to. So, I suggest a 
setup

command

\setupmathmappings
  [
 digits={style,alternative},
lclatin={style,alternative},
uclatin={style,alternative},
lcgreek={style,alternative},
ucgreek={style,alternative},
  ]



OK, it might be useful when one wants e.g. ALL Greek letters to be printed 
somehow, e.g. bold.


I don't think that the basic criterion for style in math is the (alphabet) 
range, it's rather the meaning of maths 
(variable/parameter/vector/tensor/operator (e.g. Nabla operator)). But OK -



where the options for style are

  normal, bold

while the options for alternative are

  normal, italic, sans, sansitalic, blackboard, script

This command will the mappings for each range. **NOTE**: All combinations 
are not valid.


A companion command

\definemathmappings
  [whatever]
  []

can be used to define multiple mappings. These mappings can be used by

\setupmathmappings[whatever]

(An alternative is that these mappings are activated using \whatever ...)

For example, we can define a command to typeset vectors using

\definemathmappings
  [vectors]
  [ digits={bold,normal},
   lclatin={bold,normal},
   uclatin={bold,normal},
   lcgreek={bold,normal},
   ucgreek={bold,normal}]

\def\VEC{\groupedcommand{\setupmathmappings[vector]}{}}


Or rather the following (?): 
\def\VEC#1{\groupedcommand{\setupmathmappings[vector]}{#1}}


I haven't tested this, but I think that my definition should work (after 
changing vector - vectors). The point of grouped command is that you can 
use


\VEC{ABC}

as well as

{\VEC ABC}

If you only need the first variant, you can simply define

\def\VEC#1{{\setupmathmappings[vectors]#1}}


If later, we want to represent vectors as sans serif, we can use

\definemathmappings
  [vectors]
  [ digits={normal,sans},
   lclatin={normal,sans},
   uclatin={normal,sans},
   lcgreek={normal,sans},
   ucgreek={normal,sans}]



This kind of switching would be great.


This interface makes it easy to switch math fonts for disciplines that want
different style for different alphabet ranges.

It is relatively easy to implement the above interface. All we need is
some bookkeeping to set the right attributes. The default math mapping
commands can be reimplmeneted using \definemappings. Before implementing
this, I want to ask the opinion of other math users.

Would the above interface take care of different use cases, or is it 
missing

something?


It looks good. Some examples would be needed, starting at simple ones and 
ending with wildly switching math formulas.



Finally, I am not too happy with the syntax. There are only a few ConTeXt
commands in which the keys take a pair of values. Another option is to 
allow all

12 valid options

  normal, italic, sans, sansitalic, blackboard, script,
  bold, bolditlaic, boldsans, boldsansitalic, boldblackboard, boldscript

with the variants sansitalic-italicsans, boldsans-sansbold, etc. as 
synonmyms.


Which way of specifying the keys do you prefer?


Personally, no matter. Programming clarity should be kept at most - so it's 
up to you. When some samples are provided, someone will follow them.


I will provide a more detailed example.

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] Proposal for math mappings

2010-12-10 Thread Aditya Mahajan

On Fri, 10 Dec 2010, Vladimir Lomov wrote:


** Aditya Mahajan [2010-12-09 23:49:26 -0500]:


This is a proposal for a new way of selecting math mappings in MkIV. I want
to get input from other math users whether this syntax would take care of all
scenarios or not.

There are five different ranges in mathematics:
- digits (0..9)
- lower case Latin (abc..z)
- upper case Latin (ABC..Z)
- lower case Greek (αβγ..ζ)
- upper case Greek (ΑΒΓ..Z)

Should be: αβγ..ω
and ΑΒΓ..Ω


Thanks. I need to learn my Greek :)


A user may want to control what each range is mapped to. So, I suggest a setup
command

\setupmathmappings
  [
 digits={style,alternative},
lclatin={style,alternative},
uclatin={style,alternative},
lcgreek={style,alternative},
ucgreek={style,alternative},
  ]

where the options for style are

  normal, bold

while the options for alternative are

  normal, italic, sans, sansitalic, blackboard, script

This command will the mappings for each range. **NOTE**: All combinations are 
not valid.

A companion command

\definemathmappings
  [whatever]
  []

can be used to define multiple mappings. These mappings can be used by

\setupmathmappings[whatever]

(An alternative is that these mappings are activated using \whatever ...)

For example, we can define a command to typeset vectors using

\definemathmappings
  [vectors]
  [ digits={bold,normal},
   lclatin={bold,normal},
   uclatin={bold,normal},
   lcgreek={bold,normal},
   ucgreek={bold,normal}]

\def\VEC{\groupedcommand{\setupmathmappings[vector]}{}}

Is it should be
\def\VEC{\groupedcommand{\setupmathmappings[vectors]}{}}
?


Indeed. Thanks.


If later, we want to represent vectors as sans serif, we can use


\definemathmappings
  [vectors]
  [ digits={normal,sans},
   lclatin={normal,sans},
   uclatin={normal,sans},
   lcgreek={normal,sans},
   ucgreek={normal,sans}]

This interface makes it easy to switch math fonts for disiplines that want
different style for different alphabet ranges.

It is relatively easy to implement the above interface. All we need
is some bookkeeping to set the right attributes. The default math
mapping commands can be reimplmeneted using \definemappings. Before
implementing this, I want to ask the opinion of other math users.

Would the above interface take care of different use cases, or is it missing
something?

IMHO, style is already used so it is normal.

Finally, I am not too happy with the syntax. There are only a few ConTeXt
commands in which the keys take a pair of values. Another option is to allow all
12 valid options

  normal, italic, sans, sansitalic, blackboard, script,
  bold, bolditlaic, boldsans, boldsansitalic, boldblackboard, boldscript



This very depends on used fonts.


I am assuming a complete opentype math font.


with the variants sansitalic-italicsans, boldsans-sansbold, etc. as synonmyms.

Which way of specifying the keys do you prefer?


Actually I don't get what you try to do.


I'll try to explain better in a later post.


I thought that 'font
switching' command should take care of font switching either in math or
text modes (if typescript is set properly).


I am proposing to separate out math font switching from text mode font
switching.


Right now the only good
example of usage of proposed mechanism is \VEC command (for vectors and etc).


More on this later.

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] Featurerequest: \contextversion

2010-12-10 Thread Jonas Stein

 It would be nice to have a command 
 
 \contextversion
 \luaversion
 \pdftexversion
 Is that possible?

 You can use

 - \texenginename to get the name of the engine (e.g. LuaTeX)
 - \texengineversion to get the version number of the engine (e.g. 0.64)
 - \contextversion to get the version number of context (e.g. 2010.12.09 12:11)

nice... the wheel was invented but i did not find the manual ;-)
I suppose context can do everything but it is not verbous about its skills.

was it right to create the Reference page, or should the script
crate the empty reference pages and i fill them later?
http://wiki.contextgarden.net/Reference/en/contextversion


-- 
Jonas Stein n...@jonasstein.de

___
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] Featurerequest: \contextversion

2010-12-10 Thread Hans Hagen

On 10-12-2010 4:31, Jonas Stein wrote:


was it right to create the Reference page, or should the script
crate the empty reference pages and i fill them later?
http://wiki.contextgarden.net/Reference/en/contextversion


looks ok to me


-
  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: no overfullrule in footnotes!

2010-12-10 Thread Aditya Mahajan

On Thu, 9 Dec 2010, Hans Hagen wrote:


On 9-12-2010 6:15, Steffen Wolfrum wrote:


Am 09.12.2010 um 17:20 schrieb Hans Hagen:


On 8-12-2010 2:14, Steffen Wolfrum wrote:


PS: The overfullrule for footnotes is only missing in MKIV !


no overfull rules in mkiv (no plans either)




is this a well-founded decision?


well, i never ever use(d) overfull rules myself ...


I find overfull rules to be a quick way to scan for bad line breaks. Any 
other means for the same end would be nice.


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] Fwd: bug: no overfullrule in footnotes!

2010-12-10 Thread Wolfgang Schuster

Am 09.12.2010 um 17:20 schrieb Hans Hagen:

 On 8-12-2010 2:14, Steffen Wolfrum wrote:
 
 PS: The overfullrule for footnotes is only missing in MKIV !
 
 no overfull rules in mkiv (no plans either)


Why, supporting it isn’t such a big deal, I prefer a new key for \setupalign to 
enable it.

\version[temporary] % this sets \overfullrule to 4pt, default is 0pt
\setupnote[footnote][bodyfont=]

% Alternative 1, set \hfuzz at the begin of the footnote text

%\setupnotedefinition[footnote][before=\hfuzz0.1pt]

% Alternative 2, use tha align key for the footnote text

\installalign{visualize}{\hfuzz0.1pt\relax} % spac-ali.mkiv
\setupnotedefinition[footnote][align={normal,visualize}]

\starttext
aa
\footnote{aa}
\stoptext

Wolfgang

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

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


Re: [NTG-context] Bug in fontswitching

2010-12-10 Thread Thomas Schmitz

On Fri, 10 Dec 2010 15:23:37 +0100
 Hans Hagen pra...@wxs.nl wrote:

I was just preparing a minimal example for a similar 
problem :-)
Switching to italic fonts doesn't work at all. 


hopefully fixed (math vs text issue)


Yes, looks like this is fixed.

Thomas
___
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] Re; TABLE help

2010-12-10 Thread barney schwartz
Wolfgang, Phillip, Hans,

Thanks for the pointer to :

\placetable[here,*split*]

However I need this to be one table split across however many pages
required, so that I would have as example ...

page 1: table 1.1

page 2: table 1.1 (cont.)

page 3: table 1.1 (cont)

please see attached code.

\placetable[here,split][tab:five]{Descriptive Statistics for Salaried Men \
Women}
{%\setupTABLE[split=repeat]
\bTABLE
\bTABLEhead
\bTR
\bTH Group \eTH  \bTH N \eTH  \bTH MEAN \eTH\bTH STD \eTH \bTH MIN
\eTH\bTH MAX  \eTH  \bTH Gini  \eTH \bTH 80/20 \eTH
\eTR
\eTABLEhead
\bTABLEbody
\bTR \bTC[nc=8] 1980 \eTC \eTR
\bTR \bTC ALL \eTC \bTC 14202 \eTC \bTC \$195727.9 \eTC \bTC 912.89 \eTC
\bTC \$3600 \eTC \bTC  \$132 \eTC \bTC 0.278 \eTC \bTC 4.54 \eTC \eTR
\bTR \bTC Men \eTC \bTC 9852 \eTC \bTC \$224678.5 \eTC \bTC 1123.61 \eTC
\bTC  \$3600 \eTC \bTC  \$132 \eTC \bTC 0.242 \eTC \bTC  3.68 \eTC \eTR
\bTR \bTC Women \eTC \bTC 4350 \eTC \bTC \$130159.7 \eTC \bTC  991.05 \eTC
\bTC  \$5000 \eTC \bTC  \$448000 \eTC \bTC 0.259 \eTC \bTC   3.91 \eTC \eTR
\bTR \bTC[nc=8] 1982   \eTC \eTR
.
.
.
.
repeated by years
.
.
.
\bTR \bTC[nc=8]1999   \eTC \eTR
\bTR \bTC   ALL \eTC \bTC  XX \eTC \bTC \$362625.2 \eTC \bTC 1775.50
\eTC \bTC \$25247 \eTC \bTC \$1060 \eTC \bTC 0.269 \eTC \bTC  3.99 \eTC
\eTR
\bTR \bTC   Men \eTC  \bTC   8034 \eTC  \bTC \$419193.3 \eTC  \bTC 2614.59
\eTC \bTC \$25247 \eTC \bTC \$1060 \eTC \bTC 0.249 \eTC \bTC  3.63 \eTC
\eTR
\bTR \bTC  Women \eTC  \bTC   6101 \eTC \bTC \$288134.4 \eTC \bTC 1861.66
\eTC \bTC \$54000 \eTC \bTC  \$190 \eTC \bTC 0.249 \eTC \bTC 3.52 \eTC
\eTR
\eTABLEbody
\bTABLEfoot
\bTR \bTC[nc=8]*\$=New Taiwan Dollars \eTC \eTR
\eTABLEfoot
\eTABLE
}

full file is attached


barney


Chap5.tex
Description: TeX 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] Re; TABLE help

2010-12-10 Thread Wolfgang Schuster

Am 10.12.2010 um 17:51 schrieb barney schwartz:

 full file is attached

When you don’t write many formulas in your document you can use \asciimode 
which makes $ and  normal letters which can be written without a leading 
backslash, there is also a alternative mode for natural tables which is 
suitable for tables with many small fields.

example
\asciimode

\starttext

\chapter{Data Description}

The data is from The Survey of Family Income and Expenditure for
Taiwan. This is the micro response data provided by The
Directorate General of Budget, Accounting and Statistics of the
Republic of China.

Taiwan also conducts a Monthly Manpower Utilization Survey. This
survey is also run by DGBAS, however at a cost of \$80 per ten
items and hundreds of items within the survey just one year of
this data is beyond my meager resources. Zveglich et al used this
survey.

I chose the Survey of Family Income and Expenditure for the
richness of the data set, and because it should be a
representative sample of the Taiwan population. Also, it is
comparable to the Current Population Survey (CPS) in the U.~S.~
and the Survey of Consumer Finances (SCF) in Canada. My data does
not depend on sources of income, rather all components of income
are included. It contains variables that will allow future
in-depth research into the dynamics of income distribution in
Taiwan. There is much yet to be done in this area.

This survey is conducted annually. In all years it uses a
two-stage stratified random sample of between 14,000 and 16,500
families by physical location. . It is an in-person survey
conducted by interview. A small percentage of households are
required to keep daily accounts of income and expenditures. These
accounts are used to adjust figures in the remaining sample for
inaccuracies of memory.

\placetable[here,split][tab:five]{Descriptive Statistics for Salaried Men  
Women}
{\startTABLE[split=repeat]
\startTABLEhead[style=bold]
\NC Group \NC N \NC MEAN \NC STD \NC MIN \NC MAX \NC Gini \NC 80/20 \NC\NR
\stopTABLEhead
\startTABLEbody
\NC[nc=8] 1980 \NC\NR
\NC ALL   \NC 14202 \NC $ 195,727.9 \NC  912.89 \NC $ 3600 \NC $ 1,320,000 \NC 
0.278 \NC 4.54 \NC\NR
\NC Men   \NC  9852 \NC $ 224,678.5 \NC 1123.61 \NC $ 3600 \NC $ 1,320,000 \NC 
0.242 \NC 3.68 \NC\NR
\NC Women \NC  4350 \NC $ 130,159.7 \NC  991.05 \NC $ 5000 \NC $ 448,000  \NC 
0.259 \NC 3.91 \NC\NR
\NC[nc=8] 1982 \NC\NR
\NC ALL   \NC 14706 \NC $ 164,247 \NC 766  \NC $ 7200  \NC $ 1,257,630 \NC 
0.284 \NC 4.59 \NC\NR
\NC Men   \NC  9943 \NC $ 201,482 \NC 1008 \NC $ 7200  \NC $ 1,257,630 \NC 
0.247 \NC 3.79 \NC\NR
\NC Women \NC  4673 \NC $ 19,910  \NC 951  \NC $ 12000 \NC $ 650,000  \NC 0.275 
\NC 4.14 \NC\NR
\NC[nc=8] 1984  \NC\NR
\NC ALL   \NC 15872 \NC $ 189,845 \NC  867 \NC $ 4000 \NC $ 1,500,000 \NC 0.286 
\NC 4.54 \NC\NR
\NC Men   \NC 10291 \NC $ 222,035 \NC 1121 \NC $ 4000 \NC $ 1,500,000 \NC 0.249 
\NC 3.75 \NC\NR
\NC Women \NC  5581 \NC $ 130,488 \NC  917 \NC $ 7500 \NC $ 850,000  \NC 0.264 
\NC 3.91 \NC\NR
\NC[nc=8] 1986 \NC\NR
\NC ALL   \NC 16371 \NC $ 200,997 \NC  966 \NC $ 3,600 \NC $ 2,990,000 \NC 
0.294 \NC 4.69 \NC\NR
\NC Men   \NC 10213 \NC $ 237,554 \NC 1299 \NC $ 5,000 \NC $ 2,990,000 \NC 
0.257 \NC 3.94 \NC\NR
\NC Women \NC  6158 \NC $ 140,367 \NC 1001 \NC $ 3,600 \NC $   965,000\NC 0.273 
\NC 4.08 \NC\NR
\NC[nc=8] 1988 \NC\NR
\NC ALL   \NC 16032 \NC $ 234,304 \NC 1015 \NC $  9,000 \NC $ 1,800,000 \NC 
0.277 \NC 4.29 \NC\NR
\NC Men   \NC 10058 \NC $ 273,829 \NC 1306 \NC $  9,000 \NC $ 1,800,000 \NC 
0.238 \NC 3.55 \NC\NR
\NC Women \NC  5974 \NC $ 167,760 \NC 1189 \NC $ 28,000 \NC $   XXX \NC 
0.262 \NC 3.75 \NC\NR
\NC[nc=8] 1990 \NC\NR
\NC ALL   \NC 16346 \NC $ 285,337.8 \NC 1209.26 \NC $ 11,200 \NC $ 4,500,000 
\NC 0.272 \NC 4.21 \NC\NR
\NC Men   \NC 10147 \NC $ 332,687.1 \NC 1579.00 \NC $ 12,000 \NC $ 4,500,000 
\NC 0.235 \NC 3.48 \NC\NR
\NC Women \NC  6199 \NC $ 207,832.8 \NC 1387.20 \NC $ 11,200 \NC $ 1,800,000 
\NC 0.26  \NC 3.77 \NC\NR
\NC[nc=8] 1992 \NC\NR
\NC ALL   \NC 16346 \NC $ 285,337.8 \NC 1209.26 \NC $ 11,200 \NC $ 4,500,000 
\NC 0.272 \NC 4.21 \NC\NR
\NC Men   \NC 10147 \NC $ 332,687.1 \NC 1579.00 \NC $ 12,000 \NC $ 4,500,000 
\NC 0.235 \NC 3.48 \NC\NR
\NC Women \NC  6199 \NC $ 207,832.8 \NC 1387.20 \NC $ 11,200 \NC $ 1,800,000 
\NC  0.26 \NC 3.77 \NC\NR
\NC[nc=8] 1994 \NC\NR
\NC ALL   \NC 16346 \NC $ 285,337.8 \NC 1209.26 \NC $ 11,200 \NC $ 4,500,000 
\NC 0.272 \NC 4.21 \NC\NR
\NC Men   \NC 10147 \NC $ 332,687.1 \NC 1579.00 \NC $ 12,000 \NC $ 4,500,000 
\NC 0.235 \NC 3.48 \NC\NR
\NC Women \NC  6199 \NC $ 207,832.8 \NC 1387.20 \NC $ 11,200 \NC $ 1,800,000 
\NC  0.26 \NC 3.77 \NC\NR
\NC[nc=8] 1996   \NC\NR
\NC ALL   \NC 16346 \NC $ 285,337.8 \NC 1209.26 \NC $ 11,200 \NC $ 4,500,000 
\NC 0.272 \NC 4.21 \NC\NR
\NC Men   \NC 10147 \NC $ 332,687.1 \NC 1579.00 \NC $ 12,000 \NC $ 4,500,000 
\NC 0.235 \NC 3.48 \NC\NR
\NC Women \NC  6199 \NC $ 207,832.8 \NC 1387.20 \NC $ 11,200 \NC $ 1,800,000 
\NC  0.26 \NC 3.77 \NC\NR
\NC[nc=8] 1998 

Re: [NTG-context] TEI - conTeXt

2010-12-10 Thread Thomas Schmitz

On Thu, 9 Dec 2010 15:20:06 -0800
 Jon Crump jjcr...@uw.edu wrote:

All,

More naive questions about xml and context. I'm finding 
this slow
going and documentation opaque or just thin on the 
ground. 


Before I try and help you with your question: you posted 
another problem on Nov 24 and got replies. Has this issue 
been solved?


More practical examples of TEI (or other xml texts)- 
ConTeXt - PDF

would sure come in handy.

You're more than welcome to contribute such examples. 
Remember, this is a volunteer effort.


Thomas
___
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] TEI - conTeXt

2010-12-10 Thread Jon Crump
Thomas,

Thanks for responding. Yes, thanks to some help from Idris, Khaled, et
alia, I've got an ara-sty.tex environment file that sets up the
Scheherezade font and am getting very nice looking arabic text. I'm
now trying to get my arms around some basic elements of the conTeXt
system for dealing with xml.

Thanks to your TEI tutorial, I've got some good results for flushing
elements identified by tag name and by named attribute like this:

\xmlsetsetup{#1}{he...@type='chapter']}{xml:head:chapter}
\xmlsetsetup{#1}{p}{xml:p}

and the like. I'm now trying to figure out how to address elements in
the tei more precisely, like how to address the content nodes in the
div xml:id=notes, like note xml:id=N012-10,  in order to use
their contents while setting elements like ref target=#N012-10
with a \footnote command (though we may, in fact, need to put these
elsewhere in an 'endnotes' section.).

I've sought in vain for the answers to simple questions like how to
address nodes identified by xml:id. In setting up a minimal example,
I've tried to do this:

with the xml:

?xml version=1.0 encoding=utf-8?
body
text
div xml:id=a
foo
/div
div xml:id=b
bar
/div
/text
/body

set foo and not bar. This, for example, does not work:

\startxmlsetups xml:minimalsetups
\xmlsetsetup{#1}{*}{-}
\xmlsetsetup{#1}{body|text|div}{xml:*}
\xmlsetsetup{#1}{d...@xml:id='a']}{xml:div}
\stopxmlsetups

context complaining that xml:id='a' is not a valid lpath expression.
As you can see, I'm not getting some basic things about how to specify
and traverse the xml, much less applying the correct context commands
to get the content and formatting I need.

Another thing I'm going to need to do is to parse the text of certain
element attributes. For example, divs to be set in arabic are
distinguished from divs to be set in latin only by their xml:lang
attributes. I will need to be able to distinguish between ar-Arab,
en-Latn, and possibly also ar-Latn and more complex subtags like
az-Arab-IR as specified in
http://www.rfc-editor.org/rfc/bcp/bcp47.txt

Any clues you might care to offer, or examples that you know of, would
be gratefully received. I hesitate to attach the xml and tex files I'm
working with here, being unfamiliar with the protocols of the list,
but if it would help to see what I'm trying to work with, I could
certainly do that. More than this, I will certainly post on the wiki
some documentation and examples from this current project once I have
something to contribute that works. I'd like to extend your tutorial
for others who have TEI texts that they would like to typeset; indeed,
making public such documentation in their appropriate fora is part of
the remit of our project.

All at sea in Seattle,
Jon

On Fri, Dec 10, 2010 at 9:57 AM, Thomas Schmitz tschm...@uni-bonn.de wrote:
 On Thu, 9 Dec 2010 15:20:06 -0800
  Jon Crump jjcr...@uw.edu wrote:

 All,

 More naive questions about xml and context. I'm finding this slow
 going and documentation opaque or just thin on the ground.

 Before I try and help you with your question: you posted another problem on
 Nov 24 and got replies. Has this issue been solved?

 More practical examples of TEI (or other xml texts)- ConTeXt - PDF
 would sure come in handy.

 You're more than welcome to contribute such examples. Remember, this is a
 volunteer effort.

 Thomas
___
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] TEI - conTeXt

2010-12-10 Thread Thomas Schmitz

On Fri, 10 Dec 2010 12:00:59 -0800
 Jon Crump jjcr...@uw.edu wrote:

Jon,

OK, good to know. I'll need a bit more leisure to look at 
your example; here are just a few points:


processing an attribute with the 'xml:' namespace has been 
fixed by Hans very recently (last weekend), so if you 
haven't updated to the latest beta version, please do and 
try again; your syntax \xmlsetsetup{#1}{d...@xml:id='a']} 
is basically right.


Addressing content that has been set in xml anchors is 
possible, but not quite easy. I wouldn't have been able to 
figure it out without Hans. Just to show you an example: 
here's code that in my TEI document will fetch the content 
of a witness list:


\xmlfirst{#1}{root::/TEI/text/front/d...@type=='sigla']/listWit/witne...@xml:id==string.sub('\xmlatt{#1}{wit}',2)]}

The (for you) relevant part is root::/: this is the 
topmost level of your TEI xml document. You then traverse 
all the elements and drill down to a witness element 
whose xml:id attribute is identical to the wit attribute 
of your current element. So element wit=#foo will pick 
up the content of witness xml:id=foobar/witness and 
print bar. This should get you going.


Last point: I don't want to sound negative, but what 
you're attempting is not straightforward and certainly not 
easy stuff. I am currently planning on doing a long-term 
project on editing texts in this manner, and I'm quite 
optimistic that all problems can eventually be solved. But 
if you need short-term solutions, a perfectly typeset 
edition within a matter of weeks, this may not be possible 
right away. E.g., I don't think we really have a solid 
framework yet for a bilingual edition as you envisage it. 
It is possible, but not easy, Hans needs the time and many 
test cases to make the code work. There is a research 
group here in Germany (with public funding) who are 
currently working on xml printing of material of exactly 
this type. I can assure you that for the time being, 
there's nothing out there which comes even close to 
ConTeXt in this area, but we're still at the beginning. 
So: if you want to help and test and be part of this, you 
are more than welcome, but none of us has a magic bullet; 
this is work in progress, not drop-in solutions.


All best

Thomas
___
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] Saveable PDF-Files for Adobe Reader

2010-12-10 Thread Vedran Miletić
2010/12/10 Martin Schröder mar...@oneiros.de

 2010/12/8 Daniel Grycman daniel.gryc...@rub.de:
  how can I create saveable PDF-Files with ConTeXt for Adobe Reader?

 You can not (if you mean adding comments or saving form fields).
 Please complain to Adobe about this.


Not true for Reader X. It supports highlighting and adding comments.

Regards,

Vedran Miletić
___
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] \SetTableToWidth undefined?

2010-12-10 Thread Vedran Miletić
Dana 10. prosinca 2010. 12:28 Hans Hagen pra...@wxs.nl je napisao/la:

 On 8-12-2010 1:00, Vedran Miletić wrote:


 Why setuptables, why not just setuptable?


 has always been the case .. you set them up all at once


Oh, I see it's also mentioned in reference. Thanks.

Vedran Miletić
___
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] Issues with cross reference

2010-12-10 Thread views63
Hi all,

cross reference  is not worked  in latest beta (MkIV)

example:

\starttext

\placeformula[f]
\startformula
{\bf d}(t)=(1-t)^2{\bf b}_{0,0}+2(1-t)t\Big[\frac{1}{2}{\bf
b}_{0,1}+\frac{1}{2}{\bf b}_{1,0}\Big]+t^2{\bf b}_{1,1}.
\stopformula

see (\in[f])

\stoptext

--
Best regards,

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