[NTG-context] equivalent to \newcommand{...}{\ensuremath{...}}

2014-12-09 Thread j. van den hoff
hi list, new to `context' and my first question to the list: how can I achieve the following (`latex') behaviour: \newcommand{\km}{\ensuremath{K_m}} We can now use \km\ in the body text as well as in this \begin{equation} \km = 1 \end{equation} display equation. in `context'? I've tried

Re: [NTG-context] equivalent to \newcommand{...}{\ensuremath{...}}

2014-12-09 Thread j. van den hoff
On Tue, 09 Dec 2014 09:42:03 +0100, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 08.12.2014 um 17:41 schrieb j. van den hoff veedeeh...@googlemail.com: hi list, new to `context' and my first question to the list: how can I achieve the following (`latex') behaviour

Re: [NTG-context] equivalent to \newcommand{...}{\ensuremath{...}}

2014-12-09 Thread j. van den hoff
On Tue, 09 Dec 2014 10:05:22 +0100, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 09.12.2014 um 09:59 schrieb j. van den hoff veedeeh...@googlemail.com: On Tue, 09 Dec 2014 09:42:03 +0100, Wolfgang Schuster schuster.wolfg...@gmail.com mailto:schuster.wolfg...@gmail.com

Re: [NTG-context] equivalent to \newcommand{...}{\ensuremath{...}}

2014-12-09 Thread j. van den hoff
On Tue, 09 Dec 2014 16:12:08 +0100, Aditya Mahajan adit...@umich.edu wrote: On Mon, 8 Dec 2014, j. van den hoff wrote: new to `context' and my first question to the list: how can I achieve the following (`latex') behaviour: \newcommand{\km}{\ensuremath{K_m}} We can now use \km

Re: [NTG-context] equivalent to \newcommand{...}{\ensuremath{...}}

2014-12-09 Thread j. van den hoff
On Tue, 09 Dec 2014 14:30:50 +0100, Hans Hagen pra...@wxs.nl wrote: On 12/9/2014 1:36 PM, j. van den hoff wrote: since I'm really new to `context': are there any potential problems with inserting white space in `\define' lines like `\define \Foo { \mathematics{f(x)} }' which I might miss

[NTG-context] access to system fonts under MacOSX

2014-12-20 Thread j. van den hoff
newbie question: how can I get access to fonts installed outside the TeX tree under MacOSX (10.9 to be precise)? mtxrun --script font --list --name --pattern=* shows lots of fonts (so they are recognized by context, I'd guess) but the simple-minded approach, namely to trying something like

Re: [NTG-context] access to system fonts under MacOSX

2014-12-21 Thread j. van den hoff
On Sat, 20 Dec 2014 23:26:29 +0100, Pablo Rodriguez oi...@gmx.es wrote: On 12/20/2014 07:31 PM, j. van den hoff wrote: newbie question: how can I get access to fonts installed outside the TeX tree under MacOSX (10.9 to be precise)? mtxrun --script font --list --name --pattern=* shows

Re: [NTG-context] access to system fonts under MacOSX

2014-12-21 Thread j. van den hoff
On Sat, 20 Dec 2014 23:26:29 +0100, Pablo Rodriguez oi...@gmx.es wrote: Hi Jörg, I don’t have a Mac, but this works in ConTeXt: \definefontfamily [mainface] [serif] [TeX Gyre Pagella] \definefontfamily [mainface] [sans] [Helvetica] \definefontfamily [mainface] [mono] [Courier]

Re: [NTG-context] access to system fonts under MacOSX

2014-12-21 Thread j. van den hoff
On Sun, 21 Dec 2014 17:20:33 +0100, Pablo Rodriguez oi...@gmx.es wrote: On 12/21/2014 02:31 PM, j. van den hoff wrote: On Sat, 20 Dec 2014 23:26:29 +0100, Pablo Rodriguez oi...@gmx.es wrote: Hi Jörg, I don’t have a Mac, but this works in ConTeXt: \definefontfamily [mainface] [serif] [TeX

Re: [NTG-context] access to system fonts under MacOSX

2014-12-21 Thread j. van den hoff
On Sun, 21 Dec 2014 19:22:22 +0100, Pablo Rodriguez oi...@gmx.es wrote: On 12/21/2014 06:37 PM, j. van den hoff wrote: On Sun, 21 Dec 2014 17:20:33 +0100, Pablo Rodriguez wrote: On 12/21/2014 02:31 PM, j. van den hoff wrote: [...] as I wrote in the last mail, only the `courier new' fonts

Re: [NTG-context] access to system fonts under MacOSX

2014-12-21 Thread j. van den hoff
On Sun, 21 Dec 2014 22:39:02 +0100, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: but I'm already stumbling about the next thing. while playing around with some nice fonts I also tried out `optima' (like palatino by h. zapf). so that is what I see: mtxrun --script font --list

Re: [NTG-context] access to system fonts under MacOSX

2014-12-21 Thread j. van den hoff
On Sun, 21 Dec 2014 23:17:52 +0100, Pablo Rodriguez oi...@gmx.es wrote: On 12/21/2014 10:45 PM, j. van den hoff wrote: [...] do you have any idea whether this already is 'too old'? if it is: is it recommendable to actually install standalone context beside/instead of the version included

Re: [NTG-context] access to system fonts under MacOSX

2014-12-21 Thread j. van den hoff
On Sun, 21 Dec 2014 22:56:42 +0100, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 21.12.2014 um 22:45 schrieb j. van den hoff veedeeh...@googlemail.com: I guess your context version is too old because the current version in the standalone installation of context shows

Re: [NTG-context] access to system fonts under MacOSX

2014-12-21 Thread j. van den hoff
On Sun, 21 Dec 2014 22:56:42 +0100, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 21.12.2014 um 22:45 schrieb j. van den hoff veedeeh...@googlemail.com: I guess your context version is too old because the current version in the standalone installation of context shows

Re: [NTG-context] Loading modules (was: access to system fonts under MacOSX)

2014-12-23 Thread j. van den hoff
On Mon, 22 Dec 2014 22:35:43 +0100, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 22.12.2014 um 00:12 schrieb j. van den hoff veedeeh...@googlemail.com: OK, I've just installed the standalone version and adjusted my search path. now the very same document does no longer

Re: [NTG-context] access to system fonts under MacOSX

2014-12-23 Thread j. van den hoff
On Mon, 22 Dec 2014 07:09:12 +0100, Pablo Rodriguez oi...@gmx.es wrote: On 12/22/2014 12:12 AM, j. van den hoff wrote: OK, I've just installed the standalone version and adjusted my search path. now the very same document does no longer compile. I get the error: 8

Re: [NTG-context] Loading modules (was: access to system fonts under MacOSX)

2014-12-23 Thread j. van den hoff
den hoff veedeeh...@googlemail.com wrote: On Mon, 22 Dec 2014 22:35:43 +0100, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 22.12.2014 um 00:12 schrieb j. van den hoff veedeeh...@googlemail.com: OK, I've just installed the standalone version and adjusted my search path

[NTG-context] system fonts access under macosx (again)

2014-12-23 Thread j. van den hoff
as advised I have installed standalone context in order to get better support of system fonts under macosx. I now have had the following happen to me: 1. after installation of `standalone' and straightening out unrelated problems with `\usemodule' usage I managed to get proper support of --

Re: [NTG-context] system fonts access under macosx (again)

2014-12-23 Thread j. van den hoff
On Tue, 23 Dec 2014 20:31:46 +0100, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 23.12.2014 um 19:44 schrieb Pablo Rodriguez oi...@gmx.es: On 12/23/2014 05:42 PM, j. van den hoff wrote: [...] so I seem back to square one in this respect :-(. I can only assume that this has been

Re: [NTG-context] system fonts access under macosx (again)

2014-12-23 Thread j. van den hoff
On Tue, 23 Dec 2014 20:31:46 +0100, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: There is no need to remove the latex-cache folder because you can use the force option (i.e. mtxrun —script font —reload —force) to rebuild the whole cache. Wolfgang FYI: `-force' seems not to be

Re: [NTG-context] system fonts access under macosx (again)

2014-12-23 Thread j. van den hoff
On Tue, 23 Dec 2014 19:14:26 +0100, Hans Hagen pra...@wxs.nl wrote: On 12/23/2014 5:42 PM, j. van den hoff wrote: what am I doing wrong _this_ time? hard to guess from a distance but whenever i want to use some font and want also to be sure that i use the same one each time (esp system

Re: [NTG-context] system fonts access under macosx (again)

2014-12-24 Thread j. van den hoff
On Wed, 24 Dec 2014 08:41:53 +0100, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 23.12.2014 um 23:32 schrieb j. van den hoff veedeeh...@googlemail.com: thanks to both of you. in fact, just doing `mtxrun —script font —reload —force' restored sane behaviour (italics back

[NTG-context] fluctuating baseline of header text

2014-12-26 Thread j. van den hoff
I observe a slight fluctuation of the baseline of text in the page header when going from one page to the next. a minimal example follows: \setupheader [style=\smallbodyfont\ss\it] \setupheadertexts [section] \setuppagenumbering[location={header,margin}, style=\bfc] \starttext

Re: [NTG-context] fluctuating baseline of header text

2014-12-27 Thread j. van den hoff
On Sat, 27 Dec 2014 10:40:30 +0100, Pablo Rodriguez oi...@gmx.es wrote: On 12/26/2014 11:32 PM, j. van den hoff wrote: [...] in this example (and with this font) the problem is only occuring when toggling between pages 6/7 or 7/8 (at sufficient zoom it's easy to see), i.e.the header is shifted

Re: [NTG-context] fluctuating baseline of header text

2014-12-27 Thread j. van den hoff
On Sat, 27 Dec 2014 13:36:49 +0100, Hans Hagen pra...@wxs.nl wrote: On 12/27/2014 12:16 PM, j. van den hoff wrote: On Sat, 27 Dec 2014 10:40:30 +0100, Pablo Rodriguez oi...@gmx.es wrote: On 12/26/2014 11:32 PM, j. van den hoff wrote: [...] in this example (and with this font) the problem

Re: [NTG-context] fluctuating baseline of header text

2014-12-27 Thread j. van den hoff
On Sat, 27 Dec 2014 15:07:31 +0100, j. van den hoff veedeeh...@googlemail.com wrote: - package the header text in a box and set the height of that box and if you don't mind, would you give me a pointer/keyword/command name so that I can look up how to do this? joerg -- Using Opera's

Re: [NTG-context] fluctuating baseline of header text

2014-12-27 Thread j. van den hoff
coming back to this again, if one uses old-style numerals for the page numbering the problem is aggravated: \showframe\showglyphs \definefontfeature [default] [default] [onum=yes] \definefontfamily [mainface] [serif] [garamondno8] \setupbodyfont[mainface,12pt] \setupheader

[NTG-context] misalignment of equation numbers

2014-12-27 Thread j. van den hoff
in this example: \starttext bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla \placeformula \startformula K_1 \rightarrow E(f) = \frac {K_1(f)} { f}\,. \stopformula \placeformula \startformula K_1 \rightarrow \startmathcases \NC

Re: [NTG-context] fluctuating baseline of header text

2014-12-28 Thread j. van den hoff
On Sun, 28 Dec 2014 00:45:32 +0100, Hans Hagen pra...@wxs.nl wrote: -- could such behaviour be achieved presently with some clever trick? \showstruts \setuppagenumbering[style=\bfd\setcharstrut{0123456789}\strut,strut=no] - no default strut - calculate one based on to-be-used-characters

Re: [NTG-context] fluctuating baseline of header text

2014-12-28 Thread j. van den hoff
On Sun, 28 Dec 2014 18:55:15 +0100, Hans Hagen pra...@wxs.nl wrote: set the strut to match the given set of characters so, I've tried to add a description to the wiki: http://wiki.contextgarden.net/Command/setcharstrut I'd appreciate if you would double-check and correct any

[NTG-context] fluctuating baseline of header text

2014-12-29 Thread j. van den hoff
I observe a slight fluctuation of the baseline of text in the page header when going from one page to the next. a minimal example follows: \setupheader [style=\smallbodyfont\ss\it] \setupheadertexts [section] \setuppagenumbering[location={header,margin}, style=\bfc] \starttext

[NTG-context] how to (re)set section numbers

2014-12-30 Thread j. van den hoff
I have followed the recommendations how to include unnumbered sections in the table-of-content along the lines \setuphead[subject] [incrementnumber=yes,number=no] etc. this works OK if the unnumbered sections are at the end of the document. otherwise the enumeration of the actually

[NTG-context] \mathcases and equation numbering

2014-12-31 Thread j. van den hoff
I posted a similar question a few days ago without success/response but since I have not found a solution anywhere I would like to ask this again: how can I get properly enumerated equations using `\mathcases'? this example does not work: \starttext bla bla bla bla bla bla bla bla bla bla

Re: [NTG-context] how to (re)set section numbers

2015-01-01 Thread j. van den hoff
On Thu, 01 Jan 2015 20:48:48 +0100, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: You need \setuphead[subject][incrementnumber=list] because when you write „incrementnumber=yes” you tell context to increment the counter for \subject which uses by default the \section counter. I

Re: [NTG-context] how to (re)set section numbers

2015-01-01 Thread j. van den hoff
You need \setuphead[subject][incrementnumber=list] because when you write „incrementnumber=yes” you tell context to increment the counter for \subject which uses by default the \section counter. Wolfgang FYI, I've tried to update the wiki accordingly:

Re: [NTG-context] how to (re)set section numbers

2015-01-01 Thread j. van den hoff
On Thu, 01 Jan 2015 20:00:00 +0100, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 30.12.2014 um 20:01 schrieb j. van den hoff veedeeh...@googlemail.com: I have followed the recommendations how to include unnumbered sections in the table-of-content along the lines \setuphead

[NTG-context] enumeration of equations containing \mathcases

2015-02-10 Thread j. van den hoff
hi list, admittedly I've posted this problem two times 6-8 weeks ago already but since I did not get a single response (not even RTFM...) I try it now a third time (hoping this is not considered spamming the list ...): question: how can I get properly aligned enumeration of equations that

Re: [NTG-context] \setupcaptions question

2015-02-12 Thread j. van den hoff
it. the canonical 'communication channel' being which? this list? bug tracker? best regards, joerg Best regards: OK On 12 Feb 2015, at 17:37, j. van den hoff veedeeh...@googlemail.com wrote: I want to use `numberstopper' for figure caption customization like so: \setupcaptions[numberstopper

Re: [NTG-context] \setupcaptions question

2015-02-12 Thread j. van den hoff
wrote before (which works in mkii, though…). Actually the command used by Joerg, that is \setupcaptions[numberstopper={:}] works also. Best regards: OK On 12 Feb 2015, at 22:31, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 12.02.2015 um 17:37 schrieb j. van den hoff veedeeh

Re: [NTG-context] \setupcaptions question

2015-02-12 Thread j. van den hoff
On Fri, 13 Feb 2015 04:54:58 +0100, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: No, you’re right. I used the wrong command (\at is used to show the page where to float was placed) understood. and so far there is only a workaround for this problem. What you can do OK, does this

[NTG-context] figure caption question

2015-01-12 Thread j. van den hoff
hi, I have some problems with adjusting figure captions. what I want: 1. constant caption width across all figures, possibly identical to text width 2. trailing the auto-incrementing figure number with a fixed character, e.g. a `:', while still being able to cross-reference to the figure

Re: [NTG-context] enumeration of equations containing \mathcases

2015-02-10 Thread j. van den hoff
problem? should equation numbering not work for that command, too? but anyway: really thanks a lot for this solution! joerg Best regards: OK On 10 Feb 2015, at 17:32, j. van den hoff veedeeh...@googlemail.com wrote: hi list, admittedly I've posted this problem two times 6-8 weeks ago already

[NTG-context] \setupcaptions question

2015-02-12 Thread j. van den hoff
I want to use `numberstopper' for figure caption customization like so: \setupcaptions[numberstopper={:}] this works fine for the caption itself (i.e. I get, e.g. Figure 1: caption text) _but_ references to the figure via a defined label such as [fig:example] in the body text do include the

[NTG-context] problem with math: "\left" leads to "udefined symbol"

2017-01-24 Thread j. van den hoff
hi everybody, after a 2 year hiatus I'm just giving `context' a second try (so, really not much experience so far). I updated to the latest version (0.63) before proceeding. two observations: 1. in a new document including assorted equations everything went fine until I tried something

Re: [NTG-context] \externalfigure question

2017-02-17 Thread j. van den hoff
On Fri, 17 Feb 2017 15:43:29 +0100, Hans Hagen wrote: * if `scale=' is not the way to achieve invariant and unambiguous size of images embedded in the document, what is? `width=XXX cm'? i.e.: how is this supposed to be done correctly(TM)? just use width=4cm and so

Re: [NTG-context] \externalfigure question

2017-02-17 Thread j. van den hoff
On Fri, 17 Feb 2017 19:06:30 +0100, Alan Braslau wrote: or identifying libraries used which assume different default dpi. Can this be normalized in the case of file formats (such as pdf) that do not explicitly set the dpi? if possible I would say this could help

[NTG-context] \externalfigure question

2017-02-17 Thread j. van den hoff
I am unsure about the "canonical" way to scale images to the desired size. my current understanding is, that `scale=' should do what I want in a way portable across `context' incarnations. so currently I use commands like \externalfigure[image.png][scale=750] to adjust the image size to my

Re: [NTG-context] \externalfigure question

2017-02-17 Thread j. van den hoff
On Fri, 17 Feb 2017 17:51:11 +0100, Alan Braslau <alan.bras...@cea.fr> wrote: On Fri, 17 Feb 2017 17:04:27 +0100 "j. van den hoff" <veedeeh...@gmail.com> wrote: On Fri, 17 Feb 2017 15:43:29 +0100, Hans Hagen <pra...@wxs.nl> wrote: > * if `scale=' is n

[NTG-context] strange crash

2017-02-16 Thread j. van den hoff
hi, in a pristine standalone context (installed yesterday) under ubuntu I see a seemingly consistent crash of luatex if the document contains footnotes minimal example: \starttext foo\footnote{bar} \stoptext which crashes with this output: 8<-

Re: [NTG-context] strange crash

2017-02-16 Thread j. van den hoff
ubuntu) system: #arch x86_64 and yes: under OSX everything is fine. joerg Alan On Thu, 16 Feb 2017 19:51:25 +0100 "j. van den hoff" <veedeeh...@gmail.com> wrote: in a pristine standalone context (installed yesterday) under ubuntu I see a seemingly consistent crash of luatex if

Re: [NTG-context] strange crash

2017-02-16 Thread j. van den hoff
On Thu, 16 Feb 2017 21:54:01 +0100, Alan Braslau <alan.bras...@cea.fr> wrote: On Thu, 16 Feb 2017 21:40:40 +0100 Pablo Rodriguez <oi...@gmx.es> wrote: On 02/16/2017 07:51 PM, j. van den hoff wrote: > hi, > in a pristine standalone context (installed yesterday) un

Re: [NTG-context] strange crash

2017-02-16 Thread j. van den hoff
On Thu, 16 Feb 2017 22:20:14 +0100, Pablo Rodriguez <oi...@gmx.es> wrote: On 02/16/2017 09:56 PM, j. van den hoff wrote: [...] just to avoid confusion: my initial report concerned x86_64 linux. I know and you’d have downloaded the Linux64 binaries. understood. You might try the

Re: [NTG-context] yearly current

2017-02-15 Thread j. van den hoff
On Wed, 15 Feb 2017 22:00:52 +0100, Hans Hagen <pra...@wxs.nl> wrote: On 2/15/2017 8:49 PM, j. van den hoff wrote: On Wed, 15 Feb 2017 20:08:53 +0100, Hans Hagen <pra...@wxs.nl> wrote: Hi, We're getting close to tex live freeze and part of that process is a luatex rel

Re: [NTG-context] yearly current

2017-02-15 Thread j. van den hoff
On Wed, 15 Feb 2017 20:08:53 +0100, Hans Hagen wrote: Hi, We're getting close to tex live freeze and part of that process is a luatex release as well as a context snapshot. There have been no betas for a while and the reason is that I've been cleaning up some code as well

Re: [NTG-context] problem with math: "\left" leads to "udefined symbol"

2017-01-24 Thread j. van den hoff
On Tue, 24 Jan 2017 15:15:09 +0100, luigi scarso wrote: On Tue, Jan 24, 2017 at 3:02 PM, Hans Hagen wrote: this just works here ... so can others confirm it? \starttext \startformula x = \left ( 1 + 2 \right ) \stopformula \stoptext no

Re: [NTG-context] problem with math: "\left" leads to "udefined symbol"

2017-01-24 Thread j. van den hoff
On Tue, 24 Jan 2017 14:15:08 +0100, Hans Hagen <pra...@wxs.nl> wrote: thanks for the quick reply and sorry for my not being precise. correction/addition follows: On 1/24/2017 11:33 AM, j. van den hoff wrote: hi everybody, after a 2 year hiatus I'm just giving `context' a second t

Re: [NTG-context] problem with math: "\left" leads to "udefined symbol" --solved (sort of)

2017-01-24 Thread j. van den hoff
well after incrementally deleting most everything from my document I now seem to have a reproducible example: 8< \definesynonyms[MySymbol][MySymbols][\meaning] \MySymbol [whaever] {this} { means } \starttext \startformula x = \left ( 1 + 2

Re: [NTG-context] strange crash -- SOLVED

2017-02-17 Thread j. van den hoff
On Fri, 17 Feb 2017 10:28:48 +0100, Hans Hagen wrote: i uploaded a beta so things should be in sync in a while thanks a lot. I can confirm that the crash is no longer happening. joerg -