[NTG-context] Illegal parameter number in definition

2015-07-20 Thread juh
Hi all,

I am totally new to ConTeXt. I am a long time LaTeX user and I got
interested in ConTeXt by a posting from Pablo in the Pandoc mailing
list. So he is to blame if you have to read silly questions from me in
the future. ;-)

To learn a bit more about ConTeXt I try to make an environment to
typeset TEI-XML files from http://www.deutschestextarchiv.de (DTA)

I ran into a problem with this XML from DTA:

head
 hi rendition=#gZehenter Brief./hi
/headlb/
phi rendition=#inS/hiie sind also mit mir darinn einig, und
durch den Innhalt meiner

I tried to map the rendition attribute to ConTeXt with this code:

\startxmlsetups xml:teisetups
\xmlsetsetup{#1}{*}{-}
\xmlsetsetup{#1}{TEI|text|body|div|head|p|lb}{xml:*}
\xmlsetsetup{#1}{hi[@rendition='#g']}{xml:hi}
\stopxmlsetups

The attribute of '#g' makes trouble. I get the following error message.

tex errorerror on line 5 in file tei-style.tex: ! Illegal
parameter number in definition of \14:xml:teisetups

to be read again
g
argument ...lb}{xml:*}\xmlsetsetup {##1}{hi[@rendition='##g
  ']}{xml:hig}
\syst_setups_start_xml_indeed ...1\expandafter {#3
  }
l.5 \stopxmlsetups


 1 \startxmlsetups xml:teisetups
 2 \xmlsetsetup{#1}{*}{-}
 3 \xmlsetsetup{#1}{TEI|text|body|div|head|p|hi|lb}{xml:*}
 4 \xmlsetsetup{#1}{hi[@rendition='#g']}{xml:hig}
 5   \stopxmlsetups

I think that I kind of understand the message. The hash '#' isn't
allowed in this place. Is it possible to escape the hash somehow or to
solve this issue in an other way?

TIA
juh

-- 
Das ZEN von Pandoc
Bücher und E-Books einfach und professionell produzieren
http://www.amazon.de/Das-ZEN-von-Pandoc-professionell/dp/1505218799/
Paperback (232 Seiten) und E-Book
___
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] Illegal parameter number in definition

2015-07-20 Thread Schmitz Thomas A.

 On 17 Jul 2015, at 19:26, juh juh+ntg-cont...@mailbox.org wrote:
 
 Hi all,
 
 I am totally new to ConTeXt. I am a long time LaTeX user and I got
 interested in ConTeXt by a posting from Pablo in the Pandoc mailing
 list. So he is to blame if you have to read silly questions from me in
 the future. ;-)
 
 To learn a bit more about ConTeXt I try to make an environment to
 typeset TEI-XML files from http://www.deutschestextarchiv.de (DTA)
 
 I ran into a problem with this XML from DTA:
 
 head
 hi rendition=#gZehenter Brief./hi
 /headlb/
 phi rendition=#inS/hiie sind also mit mir darinn einig, und
 durch den Innhalt meiner
 
 I tried to map the rendition attribute to ConTeXt with this code:
 
 \startxmlsetups xml:teisetups
\xmlsetsetup{#1}{*}{-}
\xmlsetsetup{#1}{TEI|text|body|div|head|p|lb}{xml:*}
\xmlsetsetup{#1}{hi[@rendition='#g']}{xml:hi}
 \stopxmlsetups
 
 The attribute of '#g' makes trouble. I get the following error message.

Hi, welcome to ConTeXt. We prefer to have complete minimal examples 
(http://www.tex.ac.uk/FAQ-minxampl.html) here so we can look into your 
questions, not just code snippets. As to your problem: indeed, you have to 
remove the hashtag. The same question was asked by Pablo just two months ago: 
http://thread.gmane.org/gmane.comp.tex.context/91354/ . Maybe it would be a 
good idea to add the solution provided by Hans to the wiki page on TEI xml 
typesetting http://wiki.contextgarden.net/TEI_xml since it’s a common problem.

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] User-Defined Commands With Key-Value Options

2015-07-20 Thread Joas Yannick
On 7/20/2105 0:50 AM Hans Hagen wrote:



* So how would you like to use lua? Is the data stored in lua?*Yes, I
imagine that the data (for instance, the value of
the keys number, name, abbreviation, title, etc.)
is stored somewhere when the compilation process reads, say,
\startbiblebook, and that they are available to define the
the formatting done by \startbiblebook.

Thank you.
___
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] Math literal colon

2015-07-20 Thread Hans Aberg
The LaTeX package unicode-math has an option colon=literal, which makes it 
behave as in  math functions (as in example below). Has ConTeXt a similar 
option?


 lualatex 
\documentclass[leqno]{article}

\usepackage[colon=literal]{unicode-math}

\begin{document}

The function $f: A → B$.

\end{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] footnotes in floating tables

2015-07-20 Thread Alan BRASLAU
On Sun, 19 Jul 2015 05:59:43 -0700
Henry House hajho...@hajhouse.org wrote:

 MkIV (with change from \setupfootnotes to \setupnotation[footnote] as
 noted) --- there are several new problems.
 
 - The caption's footnotes are not printed, though their marks are.
 - The TABLE's footnote marks are not printed (unknown references),
 but the notes themselves are (though wrongly).
 - The texts of all the footnotes in the TABLE are run together into a
   single line that doesn't break at all.

There is a magic command that is needed in order to have footnotes
appear within a box in mkiv:
\automigrateinserts

According to node-mig.mkiv, however, soon default but does not work
(yet) for notes in captions (themselves inserts).

Maybe somebody else can enlighten you on the placement of footnotes in
table captions.

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

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

Re: [NTG-context] Math literal colon

2015-07-20 Thread Aditya Mahajan

On Mon, 20 Jul 2015, Hans Aberg wrote:

The LaTeX package unicode-math has an option colon=literal, which makes 
it behave as in math functions (as in example below). Has ConTeXt a 
similar option?


No. You have to use \colon.

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] Illegal parameter number in definition

2015-07-20 Thread Schmitz Thomas A.
 
 I see. Impressive (I think I have to learn lua, too)

You don’t have to, but you’ll see that it’s actually fun.

 
 But for now I am better off with the coontains statement.
 
 \xmlsetsetup{#1}{hi[contains(@rendition, 'in')]}{xml:hi:in}
 
 It matches
 
 hi rendition=#inS/hi
 
 without problems
 
 But of course, I am not sure if there are any side effects.

Well, only if you have other attributes which also contain “in.

 
 What is your Wiki policy? I am willing to help.
 
 I've made an account. Shall I just edit the page? I'd put a new subline
 at the end of the text.
 
 Removing hashmarks from the xml source

Yes, just edit the page - there is no official deciding body, but some people 
keep an eye on the wiki and will gently edit if you make a mistake.

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] Illegal parameter number in definition

2015-07-20 Thread Aditya Mahajan

On Mon, 20 Jul 2015, juh wrote:


What is your Wiki policy? I am willing to help.


No policy. Everyone is free to edit the wiki. If there is some information 
that you found useful and it is not on the wiki add it at what an 
appropriate place.


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] Math literal colon

2015-07-20 Thread Hans Aberg

 On 20 Jul 2015, at 16:40, Aditya Mahajan adit...@umich.edu wrote:
 
 On Mon, 20 Jul 2015, Hans Aberg wrote:
 
 The LaTeX package unicode-math has an option colon=literal, which makes it 
 behave as in math functions (as in example below). Has ConTeXt a similar 
 option?
 
 No. You have to use \colon.

It would be nice with such an option, as it helps the readability of the input 
files.


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

2015-07-20 Thread Hans Aberg

 On 20 Jul 2015, at 17:50, Manuel Blanco manue...@ucm.es wrote:
 
 A little bit more of intelligence can be given with
 
\begingroup\lccode`\~=`\:\lowercase{\endgroup
  \unexpanded\def~}{\futurelet\tmptoken\docolon}

 \unexpanded\def\docolon{\ifx=\tmptoken\mathrel{\mathop{\mathchar`\:}}\else\colon\fi}
\mathcode`\:=8000 %
 
 That lets you do $f: A \to B$ and $f(x) := x^2$

For the second, one can use ≔ COLON EQUALS U+2254. But it is a good point, 
though.


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

2015-07-20 Thread Hans Aberg

 On 20 Jul 2015, at 17:43, Manuel Blanco manue...@ucm.es wrote:
 
 Well, you can make the colon active in math mode and then let it output 
 \colon.
 
 This is a TeX way, I don't know if there's a ConTeXt way for this:
 
\begingroup\lccode`\~=`\:\lowercase{\endgroup
  \let~}\colon
\mathcode`\:=8000 %

For some reason, the colon in ConTeXt is larger relative LuaTeX.

Also, it seems that “\:” is not used for anything - error in luatex, and empty 
in context. So it might be used for the infix operator.

— context —
\setupbodyfont[xits,10pt]

\setupformulas[location=left]

\begingroup\lccode`\~=`\:\lowercase{\endgroup
 \let~}\colon
   \mathcode`\:=8000 %

\starttext

The function $f: A → B$, $g\colon A → B$.

\stoptext
—

— luatex —
\begingroup\lccode`\~=`\:\lowercase{\endgroup
 \let~}\colon
   \mathcode`\:=8000 %

The function $f: A → B$.
—

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

2015-07-20 Thread Aditya Mahajan

On Mon, 20 Jul 2015, Hans Aberg wrote:




On 20 Jul 2015, at 16:40, Aditya Mahajan adit...@umich.edu wrote:

On Mon, 20 Jul 2015, Hans Aberg wrote:


The LaTeX package unicode-math has an option colon=literal, which makes it 
behave as in math functions (as in example below). Has ConTeXt a similar option?


No. You have to use \colon.


It would be nice with such an option, as it helps the readability of the input 
files.


There are two uses of colon in math, as a relation (in sets \{ x : f(x) = 
0 \} and in ratios A:B, etc) and as a punctuation ($f \colon A - B, 
etc.[1]). Only one of them can be mapped to the literal :, the other must 
use a macro name. Knuth chose to map : to the relation and mapped \colon 
to a punctuation and every other macro package follows that convention.


It is easy to change the mapping, but if the mapping is reversed, is there 
is standard name for : as a relation?


Aditya

[1]: Amsmath redefines \colon so that the spacing is different from 
math punctuation. So, that is what you see in most published papers.

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

2015-07-20 Thread Hans Aberg

 On 20 Jul 2015, at 18:37, Aditya Mahajan adit...@umich.edu wrote:
 
 On Mon, 20 Jul 2015, Hans Aberg wrote:
 
 
 On 20 Jul 2015, at 16:40, Aditya Mahajan adit...@umich.edu wrote:
 On Mon, 20 Jul 2015, Hans Aberg wrote:
 The LaTeX package unicode-math has an option colon=literal, which makes it 
 behave as in math functions (as in example below). Has ConTeXt a similar 
 option?
 No. You have to use \colon.
 
 It would be nice with such an option, as it helps the readability of the 
 input files.
 
 There are two uses of colon in math, as a relation (in sets \{ x : f(x) = 0 
 \} and in ratios A:B, etc) and as a punctuation ($f \colon A - B, etc.[1]). 
 Only one of them can be mapped to the literal :, the other must use a macro 
 name. Knuth chose to map : to the relation and mapped \colon to a punctuation 
 and every other macro package follows that convention.

Right. Perhaps he didn’t use functions much. :-)

 It is easy to change the mapping, but if the mapping is reversed, is there is 
 standard name for : as a relation?

It seems that “\:” might be used. I get an error when trying to use it in 
luatex. But note:

In pure math, “:” is also used for projective coordinates, it does not seem to 
have operator spaces around them. This is what I think is the right look:
  https://en.wikipedia.org/wiki/Homogeneous_coordinates#Notation

There is also Unicode ∶ RATIO U+2236.

So a proposal might be to keep \colon, and make a new \ratio for those that 
want to use the operator : in ASCII. The : without spaces might perhaps be 
called \proj or something.

Looking at
  https://en.wikipedia.org/wiki/Mathematical_Operators
a UTF-8 mapping would be sending U+2236 to \ratio, the operator :. There is no 
special colon for the other uses, function and projective coordinates, it seems.

So the \: might be mapped to \proj or \ratio according to taste.


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

2015-07-20 Thread Manuel Blanco
A little bit more of intelligence can be given with

\begingroup\lccode`\~=`\:\lowercase{\endgroup
  \unexpanded\def~}{\futurelet\tmptoken\docolon}

\unexpanded\def\docolon{\ifx=\tmptoken\mathrel{\mathop{\mathchar`\:}}\else\colon\fi}
\mathcode`\:=8000 %

That lets you do $f: A \to B$ and $f(x) := x^2$
___
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] fonts not found with newotf

2015-07-20 Thread Pablo Rodriguez
On 07/20/2015 12:31 AM, Hans Hagen wrote:
 On 7/19/2015 1:27 PM, Pablo Rodriguez wrote:
[...]
 The attached newotf-error.log contains the error message.

 Since both font files were generated with FontForge, I would like to
 know what they are missing to report upstream to the FontForge developers.
 
 there seems to be a cid entry operator seen when populating a private 
 dictionary in the cff section
 
 you can add this in line 552 of font-cff:
 
  cid   = {
  -- actually an error
  },
 
 and the font will probably load then, unless there is a fundamental flaw 
 (i don't know where to get that font)

Many thanks for your fix, Hans.

It works perfectly fine. The font was an improved conversion from a
Type1 font I got from CTAN.

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Math literal colon

2015-07-20 Thread Hans Aberg

 On 20 Jul 2015, at 18:37, Aditya Mahajan adit...@umich.edu wrote:

 It is easy to change the mapping, but if the mapping is reversed, is there is 
 standard name for : as a relation?

Looking into a book on algebraic geometry, it seems fine to use operator : for 
projective coordinates. So skip the variation without spaces then.

Then one might use two short commands : and \: that correspond, by an option, 
to \colon and \ratio. Unicode ∶ RATIO U+2236 should always be operator :, i.e. 
\ratio, then, though.


___
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] issue with font and lua code

2015-07-20 Thread Pablo Rodriguez
Hans,

I have the following sample (it includes Lua code for underscore
hyphenation):

\startluacode
function document.addfunnyhyphen(tfmdata)
local underscore = utf.byte(_)
local char   = tfmdata.characters[underscore]
if not char then return end
tfmdata.characters[0xFE000]   = {
width= 0,
height   = 0,
depth= 0,
commands = {
{ right, -char.width },
{ down, char.depth },
{ slot, 1, underscore },
}
}
end
utilities.sequencers.appendaction(aftercopyingcharacters,
after,document.addfunnyhyphen)
\stopluacode

\definehyphenationfeatures
[underscore]
[righthyphenchar=FE000]

\setuphyphenation
[method=traditional]

\sethyphenationfeatures
[strict]

\definefontfamily[svb][rm][SV Basic Manual]

\setupbodyfont[svb]

\starttext
\hyphenatedword{legibility}
\stoptext

For some reason, the font gives the following error with the Lua code
(font can be downloaded from http://dl.dafont.com/dl/?f=sv_basic_manual):

lua errorlua error on line 33 in file svb.tex:
.../ctxbeta/tex/texmf-context/tex/context/base/font-ctx.lua:1194: bad
argument #9 to 'define' (number expected, got nil)
stack traceback:
[C]: in function 'define'
.../ctxbeta/tex/texmf-context/tex/context/base/font-ctx.lua:1194: in
function .../ctxbeta/tex/texmf-context/tex/context/base/font-ctx.lua:1049
33   \setupbodyfont[svb]

The weird thing here is that the Lua code isn’t applied to the
problematic font.

Is there a way to fix this strange interaction?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] fonts not found with newotf

2015-07-20 Thread Wolfgang Schuster

Pablo Rodriguez mailto:oi...@gmx.es
20. Juli 2015 17:08

Many thanks for your fix, Hans.

It works perfectly fine. The font was an improved conversion from a
Type1 font I got from CTAN.

Improved in which way?

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] Math literal colon

2015-07-20 Thread Hans Aberg

 On 20 Jul 2015, at 18:37, Aditya Mahajan adit...@umich.edu wrote:
 
 On Mon, 20 Jul 2015, Hans Aberg wrote:

 It would be nice with such an option, as it helps the readability of the 
 input files.
 
 There are two uses of colon in math, as a relation (in sets \{ x : f(x) = 0 
 \} and in ratios A:B, etc) and as a punctuation ($f \colon A - B, etc.[1]). 
 Only one of them can be mapped to the literal :, the other must use a macro 
 name.

 It is easy to change the mapping, but if the mapping is reversed, is there is 
 standard name for : as a relation?

It might be simplest to align towards Unicode and UTF-8, while retaining ASCII 
commands, avoiding a plethora of options:

So one has the commands \colon for function “: as is now, and the new \ratio 
for operator “:.

Then Unicode ∶ RATIO U+2236 is mapped to the same as \ratio, which leaves :
COLON U+003A the only possibility to be the same as \colon.

Such an option might be called say colon=unicode, and be a part other similar 
options.


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

2015-07-20 Thread Hans Aberg

 On 20 Jul 2015, at 21:34, Manuel Blanco manue...@ucm.es wrote:
 
 I'm not sure I understand what you mean. It's true that the colon used
 in \colon differs from the one used if you input : directly by default
 (it's smaller).

Right. For some reason, your code gives the right, smaller, colon when used 
with luatex, but not with context. (As in the examples I gave.)


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

2015-07-20 Thread Manuel Blanco
I'm not sure I understand what you mean. It's true that the colon used
in \colon differs from the one used if you input : directly by default
(it's smaller). In any case, I don't see where your discussion is
going, so I will write here a few definitions.

This is the definition of amsmath in LaTeX. (Used like $f\amscolon A \to B$)

\def\amscolon{\nobreak\mskip2mu\mathpunct{}\nonscript\mkern-\thinmuskip
   \mathord{\mathchar`\:}\mskip6muplus1mu\relax}

The definition of a coordinate separator should be with \mathpunct,
although it doesn't look particularly good, so may be better to use no
space at all (as commented in other mails). (Used like $(x\projsep
y\projsep z)$)

\def\projsep{\mathpunct{\mathchar`\:}}
  % if no space is wanted, the definition should be
  % {\mathpunct{\mathchar`\:}\nonscript\mkern-\thinmuskip}

In the case of \ratio, since it's a binary operator, it should be
\mathbin; but may be that's too much space and tighter spacing would
be better. (Used like $A \ratio B \quad 3\ratio2\ratio1$)

\def\ratio{\mathbin{\mathchar`\∶}} % may be tighter spacing
playing with other atom types and \mkern

And also the relation : which is the spacing that comes by default and
is the same as if a macro contained \mathrel{\mathchar`\:}.

That said, if you want to define the normal : character in _input_ to
give you one of the above in _output_, just change the definition (in
this case I define : to give \amscolon)

\begingroup\lccode`\~=`\:\lowercase{\endgroup
  \unexpanded\def~}{\amscolon}
\mathcode`\:=8000 %

In any case, if this message is out of place, sorry, but I really
didn't understand where your question/discussion was going.
___
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 literal colon

2015-07-20 Thread Hans Aberg

 On 20 Jul 2015, at 21:34, Manuel Blanco manue...@ucm.es wrote:

 The definition of a coordinate separator should be with \mathpunct,
 although it doesn't look particularly good, so may be better to use no
 space at all (as commented in other mails). 

 In the case of \ratio, since it's a binary operator, it should be
 \mathbin; but may be that's too much space and tighter spacing would
 be better.

Strictly speaking, the coordinate separator : for homogeneous coordinates is a 
ration symbol, and a book in algebraic used that.

So may be simplest to only do the operator : along with the function and set :.

 

___
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] issue with mailbox.org

2015-07-20 Thread Pablo Rodriguez
Dear list,

I have tried to reply to the message from Jan Urlich three times and it
was rejected those three times, because of the following error:

ntg-context@ntg.nl:
SMTP error from remote server after RCPT command:
host: mx-1.mf.surf.net
5.7.1 82.165.159.42: on real-time blacklist zen.spamhaus.org

Sorry, but I cannot negotiate which servers or IP addresses my mail
provider uses. I don’t know whether the rejection is exclusively related
to mailbox.org or it will happen with all my replies to any message from
the list.

Is there any way to whitelist my address for the mailing list?

Sorry for the problems, but I have already experienced this and I would
like to fix it forever.

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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