[NTG-context] Global \setup has no effect while ad-hoc setting does

2020-02-13 Thread Exp
Dear list,

I want to prevent an overfull hbox caused by an inline typing by making the
alignment very tolerant, but it didn't work:

```
\setupframedtext[
  width=broad,
  align={verytolerant, stretch}
]
\starttext
\startframedtext%[align={verytolerant, stretch}]
xx. x  xx- xx , xx xxx xxx xx
\type{yyy}.
  xx x  x xx x xx  xxx.
\stopframedtext
\stoptext
```

while the following works:

```
\setupframedtext[
  width=broad,
  align={verytolerant, stretch}
]
\starttext
\startframedtext[align={verytolerant, stretch}]
xx. x  xx- xx , xx xxx xxx xx
\type{yyy}.
  xx x  x xx x xx  xxx.
\stopframedtext
\stoptext
```

ConTeXt version: `mtx-context | current version: 2019.03.21 21:39`.

Any help would be appreciated.

Best,
Exp
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Referencing formulas doesn't work?

2020-02-09 Thread Exp
Please allow me to ask in this thread something slightly off-topic:
why doesn't ConTeXt give a compilation error or alike when
encountering such kind of mistakes? Is it technically difficult, or
is it conventional for *TeX processors to be over tolerant?

On Sun, Feb 9, 2020 at 11:05 PM Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com> wrote:

> On Mon, 10 Feb 2020 05:58:50 +0800
> Jon Wong  wrote:
>
> > MWE:
> >
> > \starttext
> >
> > The famous result (and again) is given by
> > \placeformula[formulalabel]
> > \startformula
> > c^2 = a^2 + b^2.
> > \stopformula
> > And now we can refer to formula \ref[][formulalabel].
> >
> > \stoptext
> >
> > There is a blank where the formula label should be at “now we can refer
> to formula ---“.
>
> Use \ref[number][formulalabel] or \in[formulalabel].
>
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Official file ending?

2020-02-03 Thread Exp
I would suggest to advertise with the ending another trademark that is not
a zero-entropy word in the programming world when not randomly capitalized,
and, if possible, that is not an everyday English word either.

Mkiv is a good choice for the moment. If there would be no Mkvi and so on,
it is good forever.

Le lun. 3 févr. 2020 à 23:05, Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com> a écrit :

> Hans Hagen schrieb am 03.02.2020 um 15:28:
> > On 2/3/2020 3:07 PM, Philipp A. wrote:
> >> Hi!
> >>
> >> Most text editors have LaTeX specific syntax highlighting, so it
> >> makes sense to give your ConTeXt file a ending it can be
> >> distinguished with.
> >> Is there a blessed one?
> >>
> >>   * .ctx: Would mirror the semi-common .ltx, but is used for XML files
> >> inside of ConTeXt itself
> >
> > context ctx files are xml files indeed
> >
> >>   * .mkiv: Is that just for ConTeXt or all LuaTeX stuff? Would it make
> >> sense to give text documents that extension?
> >
> > you can do that (or mkvi or lmtx or ...)
> >
> >>   * Something else? (.tex doesn’t count, it’s shared with LaTeX files
> >> and plain TeX files)
> > so then use mkiv
>
> Why not just .context
>
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] @inproceedings not formatted

2020-01-09 Thread Exp
Never mind, I just realized that I need \usebtxdefinitions[apa]

On Thu, Jan 9, 2020 at 3:26 PM Exp  wrote:

> Hi all,
>
> It seems that the \placelistofpublications refuses to format the
> @inproceedings entries.
> Instead, it yields something like "inproceedings: [author: AnAuthor]
> [title: SomeTitle]".
>
> I tried the command \showbtxfields following [
> http://pragma-ade.nl/general/manuals/mkiv-publications.pdf], Table 3.2,
> but instead of 25 entries where @inproceedings is supposed to appear, it
> gives only 4 (article, book, demo-a, demo-b).
>
> Any help would be appreciated!
>
> code list:
>
> (main.bib)
> @inproceedings{AnArticle,
>   author="AnAuthor",
>   title="SomeTitle"
> }
>
> (main.mkiv)
> \usebtxdataset[main.bib]
> \starttext
> \placelistofpublications[method=dataset]
> \stoptext
>
> (context --version)
> mtx-context | current version: 2019.03.21 21:39
>


-- 
胡树伟
PKU EECS 2012
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] @inproceedings not formatted

2020-01-09 Thread Exp
Hi all,

It seems that the \placelistofpublications refuses to format the
@inproceedings entries.
Instead, it yields something like "inproceedings: [author: AnAuthor]
[title: SomeTitle]".

I tried the command \showbtxfields following [
http://pragma-ade.nl/general/manuals/mkiv-publications.pdf], Table 3.2, but
instead of 25 entries where @inproceedings is supposed to appear, it gives
only 4 (article, book, demo-a, demo-b).

Any help would be appreciated!

code list:

(main.bib)
@inproceedings{AnArticle,
  author="AnAuthor",
  title="SomeTitle"
}

(main.mkiv)
\usebtxdataset[main.bib]
\starttext
\placelistofpublications[method=dataset]
\stoptext

(context --version)
mtx-context | current version: 2019.03.21 21:39
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] OSFONTDIR defined in texmf.cnf not used

2020-01-08 Thread Exp
>
> There’s unfortunately still a lot of outdated information in the wiki.
> But it’s a wiki, you can fix it yourself.
>
I can indeed edit the wiki and in fact I did four days ago, but for this
specific problem which just confused me,
I don't think I am the correct one to be able to guarantee that an edit of
it is necessary a fix.

Why do you refer to an old revision of that page?
>
It's not an old version. It's a permanent link to the most recent version
at the time of writing.


On Wed, Jan 8, 2020 at 4:37 PM Henning Hraban Ramm  wrote:

> Am 08.01.20 um 11:48 schrieb Exp:
> > It works, thanks!
> >
> > But the mentioning of texmf.cnf and OSFONTDIR in
> >
> https://wiki.contextgarden.net/index.php?title=Custom_Configuration=24290
> > is indeed a bit misleading though. Hope someone could fix it.
>
> The environment variable OSFONTDIR, to be set in .bashrc, .profile or
> the like, works as well.
>
> There’s unfortunately still a lot of outdated information in the wiki.
> But it’s a wiki, you can fix it yourself.
> Why do you refer to an old revision of that page?
>
> Best regards, Hraban
> ---
> https://www.fiee.net
> http://wiki.contextgarden.net
> https://www.dreiviertelhaus.de
> GPG Key ID 1C9B22FD
>
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>


-- 
Shuwei Hu
TU München
Department of Informatics
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] OSFONTDIR defined in texmf.cnf not used

2020-01-08 Thread Exp
It works, thanks!

But the mentioning of texmf.cnf and OSFONTDIR in
https://wiki.contextgarden.net/index.php?title=Custom_Configuration=24290
is indeed a bit misleading though. Hope someone could fix it.

On Wed, Jan 8, 2020 at 11:39 AM Aditya Mahajan  wrote:

> On Wed, 8 Jan 2020, Exp wrote:
>
> > I've put `OSFONTDIR=/usr/share/fonts` in ~/.../texlive/2019/texmf.cnf,
> > but `mtxrun --script fonts --reload` refuses to look it up, even though
> > `kpsewhich --expand-path '$OSFONTDIR'` gives /usr/share/fonts.
> >
> > `export OSFONTDIR=/usr/share/fonts` does work, but doesn't feel very
> tex-y.
>
> Context (MkIV) uses variables defined in texmfcnf.lua and not texmf.cnf.
> You can copy the one that comes with texlive (should be in $TEXMF/web2c
> directory) to $TEXMFHOME/web2c and edit it.
>
> You can check the value of a variable using
>
> mtxrun --expand-var OSFONTDIR
> mtxrun --expand-path OSFONTDIR
> mtxrun --resolve-path OSFONTDIR
>
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>


-- 
胡树伟
PKU EECS 2012
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] OSFONTDIR defined in texmf.cnf not used

2020-01-08 Thread Exp
Hi all,

I've put `OSFONTDIR=/usr/share/fonts` in ~/.../texlive/2019/texmf.cnf,
but `mtxrun --script fonts --reload` refuses to look it up, even though
`kpsewhich --expand-path '$OSFONTDIR'` gives /usr/share/fonts.

`export OSFONTDIR=/usr/share/fonts` does work, but doesn't feel very tex-y.

Any help is appreciated.
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Isn't the name ConTeXt a bit search-engine unfriendly?

2019-04-19 Thread Exp
Hi,

ConTeXt is great but the pun of the name could cause unnecessary annoyance
for newbies like me who need to google it a lot.

Not sure if this is the right place to ask but is it possible to rename it
to, like, ConTeX, in the future?

Cheers,

Exp
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___