Re: [NTG-context] tnum and aligncharacter=yes
On 11/7/2013 12:07 AM, Peter Münster wrote: On Wed, Nov 06 2013, Hans Hagen wrote: One year ago we used a different method (less robust). The current mechanism assumes equal width digits but nevertheless forces [tnum=yes,lnum=no] so if you get weird widths it's a font issue and you nee to make sure that somehow you force it to use equal width digits. Unfortunately I don't know how to do that... :( Does it mean, that the only solution is to use an older ConTeXt version? Or is there perhaps another work-around? it's unfortunate that this font defaults to oldstyle (which makes one wonder what the onum feature in it is supposed to do) i now changed the place where the align kicks in, which of course will have other side effects (one being less robust) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] tnum and aligncharacter=yes
On Fri, Nov 08 2013, Hans Hagen wrote: i now changed the place where the align kicks in, which of course will have other side effects (one being less robust) Hi Hans, Thanks for your efforts, the alignment works now as expected! You're right, there are side effects, the first digits are blue: http://pmrb.free.fr/tmp/context-tnum/constantia-tnum-2013-11-08.pdf -- 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] Configure AUCTeX to run context not texec
Dear all, I have a working version of context mash-laptop:~$ context --version mtx-context | ConTeXt Process Management 0.60 mtx-context | mtx-context | main context file: /usr/share/texmf/tex/context/base/context.mkiv mtx-context | current version: 2013.11.07 15:28 However, I edit files in emacs/AUCTeX and the compile command C-c C-c calls texexec instead of context and so can't compile in emacs. Does anyone know how to change the command from texexec to context in emacs/AUCTeX? Thanks. Best, Michael -- Michael Ash, Chair, Department of Economics Professor of Economics and Public Policy University of Massachusetts Amherst Amherst, MA 01003 Email m...@econs.umass.edu Tel +1-413-545-2590 Twitter https://twitter.com/michaelaoash ___ 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] Configure AUCTeX to run context not texec
On Fri, Nov 08 2013, Michael Ash wrote: Does anyone know how to change the command from texexec to context in emacs/AUCTeX? I have this in my emacs init file: --8---cut here---start-8--- (eval-after-load 'tex '(add-to-list 'TeX-command-list '(ConTeXt context --nonstopmode %t TeX-run-TeX nil (context-mode) :help Run ConTeXt))) --8---cut here---end---8--- -- 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] two suggestions to \typesetbuffer
Dear Hans, I have presentations that include buffers typeset with \typesetbuffer. One of the presentation includes 33 buffers, which are small ConTeXt samples. Any time I change anything on the presentation (not on the buffers themselves), every buffer is typeset again. And the compilation time is longer than probably desired. My first suggestion would be to skip compiling buffers again, if the following three requirements are met: 1. Buffer content (.tmp file, I guess) is identical (checked with a hash) with the previous one from last compilation. 2. PDF file hasn’t been changed since previous complete compilation (md5 sum again). 3. Buffer content was correctly compiled in previous compilation. My second suggestion may be a bit complex to implement, but I think it would be useful. Wouldn’t it be possible that the fonts are only embedded one in the presentation? 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] Configure AUCTeX to run context not texec
Le 8 nov. 2013 à 18:47, Michael Ash a écrit : Does anyone know how to change the command from texexec to context in emacs/AUCTeX? I have that in my preference.el (I use aquamacs) : --8---cut here---start-8--- (defun rol-context () (interactive) (save-current-buffer (save-buffer) (TeX-save-document ) (setq TeX-PDF-mode nil) (let ((nomdufichiersansextension (file-name-sans-extension (buffer-file-name (shell-command (format context --autopdf %s.tex nomdufichiersansextension)) (TeX-view --8---cut here---end---8--- I have bound this function rol-context to the key F7, it works fine but it's definitely non optimal ! Regards, Roland (math teacher in a high school) ___ 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] Index - ranges
On 2013-11-07 honyk wrote: 1) when a range for my subject index entry is specified and the text between doesn't overflow to the next page, even in this case the range of pages 1-1 is created. Is there any option to normalize it to a single page number? \startregister[index][range_01]{primary} Dummy text. \stopregister[index][range_01] It is rare, but any help to eliminate it completely is appreciated. 2) when ranges are used heavily, confusing results are produced. In following examples I would expect a single range 1-6: a) 1-3, 3-6 b) 1-6, 2-4 c) 1-6, 5-6 This one was caused by improper Docbook = dbcontext = ConTeXt conversion. All ranges of secondaries were treated as primaries so they were collected at primaries. After fixing the XSLT such cases dissapeared completely. Great. This would be a blocker for me. 3) when several single index entries are used on consecutive pages, the result 1,2,3,4,5 is produced. Is there any option to create a range from this? I'm reconsidering this now. I designed my 'subject' index to use ranges when the subject is thoroughly explained, which obviously needs to define beginning and end. On the contrary, when the subject is just mentioned (above the threshold of importance), I inserted just a single index entry instance. Collecting these single instances into the range of e.g. 1-5 would bring false expectations that the subject is thoroughly explained there... This logic goes slightly against the case (1). When the range would be collapsed into to a single value, we would loose the info that the subject is described here. But it looks weird. Jan ___ 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] Configure AUCTeX to run context not texec
Thank you very much for the advice on configuring AUCTeX to compile context files. Inserting the following snippet in my .emacs (emacs configuration) file worked. --8---cut here---start-8--- (eval-after-load 'tex '(add-to-list 'TeX-command-list '(ConTeXt context --nonstopmode %t TeX-run-TeX nil (context-mode) :help Run ConTeXt))) --8---cut here---end---8--- This fix is imperfect because even though context runs properly, AUCTeX reports ConTeXt: problems after [0] pages AUCTeX doesn't believe that the file has been compiled and C-c C-c offers to run context again. It is necessary to select View Some googling suggests that the return codes from context are not properly interpreted by AUCTeX. I'm not sure if this is a context non-standardization or an AUCTeX problem. thoughts? Best, Michael On Fri, Nov 8, 2013 at 12:47 PM, Michael Ash m...@econs.umass.edu wrote: Dear all, I have a working version of context mash-laptop:~$ context --version mtx-context | ConTeXt Process Management 0.60 mtx-context | mtx-context | main context file: /usr/share/texmf/tex/context/base/context.mkiv mtx-context | current version: 2013.11.07 15:28 However, I edit files in emacs/AUCTeX and the compile command C-c C-c calls texexec instead of context and so can't compile in emacs. Does anyone know how to change the command from texexec to context in emacs/AUCTeX? Thanks. Best, Michael -- Michael Ash, Chair, Department of Economics Professor of Economics and Public Policy University of Massachusetts Amherst Amherst, MA 01003 Email m...@econs.umass.edu Tel +1-413-545-2590 Twitter https://twitter.com/michaelaoash -- Michael Ash, Chair, Department of Economics Professor of Economics and Public Policy University of Massachusetts Amherst Amherst, MA 01003 Email m...@econs.umass.edu Tel +1-413-545-2590 Twitter https://twitter.com/michaelaoash ___ 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] two suggestions to \typesetbuffer
On 11/8/2013 7:11 PM, Pablo Rodriguez wrote: Dear Hans, I have presentations that include buffers typeset with \typesetbuffer. One of the presentation includes 33 buffers, which are small ConTeXt samples. Any time I change anything on the presentation (not on the buffers themselves), every buffer is typeset again. And the compilation time is longer than probably desired. My first suggestion would be to skip compiling buffers again, if the following three requirements are met: 1. Buffer content (.tmp file, I guess) is identical (checked with a hash) with the previous one from last compilation. no temp file is used but a although a hash is possible it also means a lot of extra housekeeping due to the fact that buffers are reused (in which case no run happens) 2. PDF file hasn’t been changed since previous complete compilation (md5 sum again). takes time so less to gain there 3. Buffer content was correctly compiled in previous compilation. define correctly My second suggestion may be a bit complex to implement, but I think it would be useful. Wouldn’t it be possible that the fonts are only embedded one in the presentation? how often does it happen ... if we're talking about one page files processing should normally fast e.g. \setupbodyfont[pagella] \starttext \input tufte \stoptext takes .3 seconds on my laptop. normally fonts are embedded efficiently (subsets) and shared Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Configure AUCTeX to run context not texec
On Fri, Nov 08 2013, Michael Ash wrote: This fix is imperfect because even though context runs properly, AUCTeX reports ConTeXt: problems after [0] pages It's on my todo-list to fix it, but at very low priority. In this case problems after [0] pages just means success, so it's only a cosmetic issue. AUCTeX doesn't believe that the file has been compiled and C-c C-c offers to run context again. It is necessary to select View Also on my todo-list, but again at low priority: View is in my history, so just pressing up does it. And once the viewer (evince in my case) is launched, there is no further need for View. Some googling suggests that the return codes from context are not properly interpreted by AUCTeX. I don't think so, the return code is 0 (success). It's probably more a matter of parsing the last lines of the terminal output. I'm not sure if this is a context non-standardization or an AUCTeX problem. thoughts? An AUCTeX problem. If you have some time (I don't) and you like to program with Emacs Lisp, then you could solve it. -- 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 ___
Re: [NTG-context] Configure AUCTeX to run context not texec
Le 08 novembre à 22:03:40 Michael Ash m...@econs.umass.edu écrit notamment: | Thank you very much for the advice on configuring AUCTeX to compile | context files. | Inserting the following snippet in my .emacs (emacs configuration) | file worked. | --8---cut here---start-8--- | (eval-after-load 'tex | '(add-to-list | 'TeX-command-list | '(ConTeXt context --nonstopmode %t | TeX-run-TeX nil (context-mode) :help Run ConTeXt))) | --8---cut here---end---8--- | This fix is imperfect because even though context runs properly, | AUCTeX reports ConTeXt: problems after [0] pages | AUCTeX doesn't believe that the file has been compiled and C-c C-c | offers to run context again. It is necessary to select View This problem does not appear on my machine where instead of context --nonstopmode %t I wrote PATH=~/context/tex/texmf-linux/bin:$PATH context %s bye -- Jean ___ 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 ___