Re: [NTG-context] A problem with autopunctuation
In dont't really know why you think it should render differently.
Everything TeX is supposed to ignore white spaces in math, AFAIK.
If you want a space in math, you need to force it, like this:
\setupmathematics[autopunctuation=yes]
\starttext
$(2,\ 5)$ versus $(2,\ 5)$
\stoptext
Best,
Andrés Conrado Montoya
El Andi
andresconrado@gmail.com
http://chiquitico.org
----------------------------------------
Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.
----------------------------------------
Por favor, evite enviarme documentos adjuntos en formato Word o PowerPoint.
Lea http://www.gnu.org/philosophy/no-word-attachments.es.html
----------------------------------------
"Naturalmente, la gente normal no desea la guerra, pero al final son los
líderes de una nación quienes determinan su política, y resulta muy
sencillo doblegar a la gente, sea una democracia, una dictadura fascista,
un parlamento o una dictadura comunista. Con voz o sin voz, la gente
siempre podrá entregarse a la voluntad de sus líderes. Es fácil. Lo único
que hay que hacer es decirles que están siendo atacados, y denunciar a los
pacifistas por su falta de patriotismo y exponer el país al peligro.
Funciona igual en todos los países."
---Hermann Goering, en los juicios de Nuremberg.
2012/11/3
Send ntg-context mailing list submissions to ntg-context@ntg.nl
To subscribe or unsubscribe via the World Wide Web, visit http://www.ntg.nl/mailman/listinfo/ntg-context or, via email, send a message with subject or body 'help' to ntg-context-request@ntg.nl
You can reach the person managing the list at ntg-context-owner@ntg.nl
When replying, please edit your Subject line so it is more specific than "Re: Contents of ntg-context digest..."
Today's Topics:
1. Re: RFC: path relative to current file. (Andre Caldas) 2. A problem with autopunctuation (Marcin Borkowski) 3. Re: Weird print("\n...") error (Peter M?nster) 4. Re: RFC: path relative to current file. (Sietse Brouwer)
----------------------------------------------------------------------
Message: 1 Date: Fri, 2 Nov 2012 22:35:29 -0200 From: Andre Caldas
To: Hans Hagen Cc: mailing list for ConTeXt users Subject: Re: [NTG-context] RFC: path relative to current file. Message-ID: Content-Type: text/plain; charset=UTF-8 Hello!
It would be REALLY NICE if the functionality of "pathrelativetome" was provided by ConTeXt.
in file-job.lua add around the function 'process':
local function toppath() [...]
\component toppath:/subpath/somefile.tex
Works like a charm, Hans! Sorry I took so long to test... I copied file-job.lua from the GIT repository, and changed my tex files to use toppath:/path/to/file.
For example:
https://bitbucket.org/andrecaldas/math-video-classes/src/b743f22e4f567662ac5...
Really nice! Thanks!! :-)
Cheers, Andr? Caldas.
------------------------------
Message: 2 Date: Sat, 3 Nov 2012 01:45:45 +0100 From: Marcin Borkowski
To: ConTeXt mailing list Subject: [NTG-context] A problem with autopunctuation Message-ID: <20121103014545.02b8dd5f@aga-netbook> Content-Type: text/plain; charset=US-ASCII If I get it correctly, the following two formulae should render differently - and they don't. What is going on?
\setupmathematics[autopunctuation=yes]
\starttext
$(2,5)$ versus $(2, 5)$
\stoptext
Best,
-- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University
------------------------------
Message: 3 Date: Sat, 03 Nov 2012 08:47:33 +0100 From: Peter M?nster
To: mailing list for ConTeXt users Subject: Re: [NTG-context] Weird print("\n...") error Message-ID: <877gq33z6y.fsf@micropit.couberia.selfip.net> Content-Type: text/plain; charset=utf-8 On Fri, Nov 02 2012, Proch?zka Luk?? wrote:
print("\nT")
print("\n" .. "T")
Any explanation?
\nT is an unknown command.
-- Peter
------------------------------
Message: 4 Date: Sat, 3 Nov 2012 11:13:35 +0100 From: Sietse Brouwer
To: mailing list for ConTeXt users Cc: Hans Hagen Subject: Re: [NTG-context] RFC: path relative to current file. Message-ID: Content-Type: text/plain; charset=UTF-8 Andreas wrote:
It would be REALLY NICE if the functionality of "pathrelativetome" was provided by ConTeXt.
Hans wrote:
in file-job.lua add around the function 'process':
local function toppath() [...]
\component toppath:/subpath/somefile.tex
Andreas wrote:
Works like a charm, Hans! Sorry I took so long to test... I copied file-job.lua from the GIT repository, and changed my tex files to use toppath:/path/to/file.
Will this be in the core, or is it just a fix for Andreas? I.e: should we document toppath() as a core command, or as a snippet? (Not that we have a general space on the wiki for snippets yet, but we need one and we will have one. Somethine in the next two weeks I'll write a "State of the Wiki" laying out what we have, what we don't have, and what we want next.)
--Sietse
------------------------------
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net
___________________________________________________________________________________
End of ntg-context Digest, Vol 101, Issue 6 *******************************************
Dnia 2012-11-03, o godz. 14:04:30
Andres Conrado
In dont't really know why you think it should render differently. Everything TeX is supposed to ignore white spaces in math, AFAIK.
Yep, but that's no TeX! Take a look at math-ini.mkiv, lines 873nn.
Best,
Andrés Conrado Montoya El Andi andresconrado@gmail.com http://chiquitico.org
Best, -- Marcin
Am 03.11.2012 um 21:15 schrieb Marcin Borkowski
Dnia 2012-11-03, o godz. 14:04:30 Andres Conrado
napisał(a): In dont't really know why you think it should render differently. Everything TeX is supposed to ignore white spaces in math, AFAIK.
Yep, but that's no TeX! Take a look at math-ini.mkiv, lines 873nn.
And what do you think the example will tell us? \starttext \enablemathpunctuation $(1,2) (1, 2) (1{,}2) \hbox{foo, not bar}$ \stoptext Wolfgang
Dnia 2012-11-04, o godz. 11:04:52
Wolfgang Schuster
Am 03.11.2012 um 21:15 schrieb Marcin Borkowski
: Dnia 2012-11-03, o godz. 14:04:30 Andres Conrado
napisał(a): In dont't really know why you think it should render differently. Everything TeX is supposed to ignore white spaces in math, AFAIK.
Yep, but that's no TeX! Take a look at math-ini.mkiv, lines 873nn.
And what do you think the example will tell us?
\starttext \enablemathpunctuation $(1,2) (1, 2) (1{,}2) \hbox{foo, not bar}$ \stoptext
Wolfgang
Well, I *would* expect (1,2) to produce no space after the comma, and (1, 2) to produce a thin space. But I may be wrong; in any case, they seem to do exactly the same, which doesn't make much sense to me. Also, I wrote about this some time ago on TeX.SE (http://tex.stackexchange.com/questions/52524/autopunctuation-not-working-pro...), and Aditya suggested posting here - which I (finally) did. Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University
participants (3)
-
Andres Conrado
-
Marcin Borkowski
-
Wolfgang Schuster