Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-07-27 Thread Alan Braslau via ntg-context

On 27/07/21 08:12, Gavin via ntg-context wrote:

Hi All,

Getting Closer I asked:


2) While I’m having good luck with paths, colors are causing trouble. In the 
data set the color information is in strings with French names of the color, 
like “rouge.” If I hand this string to MetaPost, MetaPost doesn’t expand it 
into a color. It does work if it is a native color, like “red,” but not if it 
is a defined color and not if the color is in a Lua variable. Any suggestions?


Aditya suggested:


\definecolor[rouge][red] should work. A better option will be use color 
palettes.


This solves my problem of translating French colors into English, but not the 
problem of passing colors from Lua to MetaPost. If the string giving the color 
name is in a variable, it doesn’t go through. A path in a variable works.

I’ve reduced my MWE below – no French, no MPinclusions, no new colors. Both pie 
slices should be red, but one is black. Any ideas on getting the color “red” 
passed from Lua to MetaPost when mycolor=“red”?


I am not looking closely at the code, but in general we use

fill fullcircle scaled 1cm withcolor red ;

and this takes Metapost's knowledge of red, the rgb triplet (1,0,0).
One can also use

fill fullcircle scaled 1cm withcolor "red" ;

as a string (quotation) and this passes Context's definition of the color.

Alan



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


Re: [NTG-context] Problem getting lmtx version up

2021-07-16 Thread Alan Braslau

On 16/07/21 21:47, Hans Hagen wrote:


would be a pitty because i like the ubuntu interface that we have on it 
more than the rather ugly default rpi one (an ubuntu install is also 
more comfortable) ... when we go headless we might give opensuse a try 
(actually we had debian first but it was a pain with the ssd on usb so 
we gave up on that and harald made it work with ubuntu)


wondering: does the 32 bit run on 64 boit with some extra libs installed?

of courese someone can send us a bunch of rpi's .. one can even build a 
simple rack setup, or maybe we can install some vm on the rpi ... 
(reminds me to consider windows 11 on the pi for testing windows arm)


Freebsd on arm64 is now a Tier 1 architecture. ;-)

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


Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-07-16 Thread Alan Braslau

On 16/07/21 21:51, Hans Hagen wrote:

On 7/16/2021 4:53 PM, Gavin Polhemus wrote:

P.S. I marked the location of our local ConTeXt users group on the 
map, in case any of you want to visit.
1/3rd of your user group fled the country and is way closer by where i 
live now,


And in the same time zone!

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


Re: [NTG-context] Harvard bibliography style

2021-07-16 Thread Alan Braslau

On 16/07/21 20:05, Jorge Manuel wrote:

Dear Sirs

Is there a way to set my bibliography style to Harvard specifications?

Tanks four your support

Have a nice day


Jorge Magalhães


There is no Harvard bibliography specification, but the system is 
designed to be totally configurable.


What is exactly the specification? The best way to proceed is to start 
from an existing specification such as APA for an author-years system 
and adapt it to your specific needs. I can help you with this.


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


Re: [NTG-context] Extract bib entries used in a document

2021-07-15 Thread Alan Braslau

On 15/07/21 21:53, Benjamin Buchmuller wrote:

I was wondering if there is a way to get the internal bibliography manager to 
write out a .bib (or XML or Lua table) containing only the entries used in a 
document?

Somewhat similar to BibTeX 
(https://tex.stackexchange.com/questions/41821/creating-bib-file-containing-only-the-cited-references-of-a-bigger-bib-file).

I guess it must be internally created, but I don't see, at least from the 
manual, a command like 
\exportbtxdataset[default][way=bytext][used_references.bib].

Two use cases:

(1) Sharing a clean bib file with someone.

(2) Merging bib files from different sources based on the document. (Or even by 
chapter.)

Thanks for your reply.


Benjamin


\savebtxdataset [my.bib] [criterium=chapter]

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


Re: [NTG-context] LMTX: different output if dots are used in the file name

2021-07-08 Thread Alan Braslau
On Wed, 7 Jul 2021 21:57:27 +0200
Ulrike Fischer  wrote:

> Am Wed, 7 Jul 2021 12:25:29 -0600 schrieb Alan Braslau:
> 
> > Windows, I believe, does not take kindly to filenames containing
> > multiple dots.
> > 
> > Therefore, Hans never uses such filenames and does not expect them,
> > either, so I am not surprised that this yields unpredictable
> > results.
> > 
> > An unfortunate side-effect of dealing with Windows.  
> 
> Sorry but this is nonsense. I have seen many files with lots of dots
> in windows and it works fine.

Not nonsense: some MS/Windows filesystems couldn't deal with multiple
dots in the filename. That my *now* be history, but wasn't.

What is clear is that (perhaps due to this legacy), many programs and
packages do not expect to find filenames having many dots. Indeed,
*some* filesystem specifications even use "." to delimit file system
hierarchy (similarly like / and \). Lua also uses this in table
specifications, as does MetaPost for token separation, not mentioning
structures in C (and C++). The bottom line is that using "." in a
filename is best to be avoided, as are spaces in order to avoid
surprises.

As to "nonsense" and "Windows bashing", give me a break!

(and for Hans, the VMS ";" version specification is a different
feature).

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


Re: [NTG-context] LMTX: different output if dots are used in the file name

2021-07-07 Thread Alan Braslau
Windows, I believe, does not take kindly to filenames containing
multiple dots.

Therefore, Hans never uses such filenames and does not expect them,
either, so I am not surprised that this yields unpredictable results.

An unfortunate side-effect of dealing with Windows.

Alan


On Tue, 6 Jul 2021 20:08:22 -0400
"T. Kurt Bond"  wrote:

> This is something that has caused me problems in the past, too.
> 
> On Tue, Jul 6, 2021 at 4:51 PM Marco Patzer 
> wrote:
> 
> > On Thu, 28 May 2020 18:18:51 +0200
> > Hans Hagen  wrote:
> >  
> > > > LMTX:
> > > > 10.10.10.tex → 10.10 (not even a PDF suffix)
> > > > 10.10.11.tex → 10.10 (file 10.10 is over-written)
> > > > 11.10.11.tex → 11.10 (no suffix)  
> >
> > I've checked again with 2021.07.06 18:49 LMTX
> >
> >   10.10.10.tex → 10.10.pdf + 10.log
> >   10.10.11.tex → 10.10.pdf (file 10.10.pdf and 10.log are
> > over-written) 11.10.11.tex → 11.10.pdf
> >  
> > > > MkIV is way more predictable and consistent in that regard.  
> > > I'll look at it but not today ... first I need to play with some
> > > other (neat) stuff and run tests.  
> >
> > A gentle reminder.
> >
> > As by my tests, something has changed in the last months, but the
> > behaviour is still weird (e.g. log files differ from pdf file or
> > 10.10.10.tex results in 10.10.pdf).
> >
> > Is there a chance you can look at that at some point?
> >
> > Marco
> >
> > ___
> > 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] hyphenate nothyphenated

2021-07-01 Thread Alan Braslau
On Thu, 1 Jul 2021 17:57:28 +0200
Steffen Wolfrum  wrote:

> > Am 01.07.2021 um 17:54 schrieb Alan Braslau
> > :
> > 
> > On Thu, 1 Jul 2021 00:12:40 +0200
> > Hans Hagen  wrote:
> >   
> >>>> \= macron accent (bar) should not be changed.
> >>>> 
> >>>> \-- is a good suggestion, like insisting, and should not get
> >>>> confused with -- (en dash).
> >>> 
> >>> Is there some problem to make it just another option.
> >>> 
> >>> \enabledirectives[hyphenators.discretionary=hyphenated|nothyphenated]
> >>>   
> >> or maybe some key is \setuplanguages (what key)  
> > 
> > Why not, but this would be somewhat obscure for the average user who
> > would have to identify and then set this option in all documents...
> > 
> > The \-- extension is kind-of nice, obscure in its own way but good
> > functionally. The risk is of users confusing this with the en
> > ligature, something that unicode users avoid...
> > 
> > Maybe implement both solutions (setup affecting \- as well as \--)
> > in Context?  
> 
> 
> And what about \– (U+2013)?

Now THAT gets confusing!

Why not U+2010 (HYPHEN), the anti-U+2011 (NON BREAKING HYPHEN)
vs. U+002D (HYPHEN-MINUS). What a can of worms...

(which is why I like the \-- syntax)


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


Re: [NTG-context] hyphenate nothyphenated

2021-07-01 Thread Alan Braslau
On Thu, 1 Jul 2021 00:12:40 +0200
Hans Hagen  wrote:

> >> \= macron accent (bar) should not be changed.
> >>
> >> \-- is a good suggestion, like insisting, and should not get
> >> confused with -- (en dash).  
> > 
> > Is there some problem to make it just another option.
> > 
> > \enabledirectives[hyphenators.discretionary=hyphenated|nothyphenated]
> >  
> or maybe some key is \setuplanguages (what key)

Why not, but this would be somewhat obscure for the average user who
would have to identify and then set this option in all documents...

The \-- extension is kind-of nice, obscure in its own way but good
functionally. The risk is of users confusing this with the en ligature,
something that unicode users avoid...

Maybe implement both solutions (setup affecting \- as well as \--) in
Context?

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


Re: [NTG-context] Different authorconversion for citation alternatives and bibliographic entries

2021-06-30 Thread Alan Braslau
On Wed, 30 Jun 2021 19:40:06 +
 wrote:

> > -Ursprüngliche Nachricht-
> > Von: Alan Braslau 
> > Gesendet: Mittwoch, 30. Juni 2021 21:11
> > An: mailing list for ConTeXt users ; Maier,
> > Denis Christian (UB) 
> > Betreff: Re: [NTG-context] Different authorconversion for citation
> > alternatives and bibliographic entries
> > 
> > On 30/06/21 12:59, denis.ma...@unibe.ch wrote:  
> > > Hi,
> > >  
> > >> -Ursprüngliche Nachricht-
> > >> Von: ntg-context  Im Auftrag von
> > >> Ágoston Volcz
> > >> Gesendet: Mittwoch, 30. Juni 2021 10:20 An:ntg-context@ntg.nl
> > >> Betreff: [NTG-context] Different authorconversion for citation
> > >> alternatives and bibliographic entries
> > >>
> > >> Hi there,
> > >>
> > >> My university has special requirements for the theses I submit.
> > >> Layout, fonts etc. are pretty straightforward to set up in
> > >> ConTeXt. The one part I'm struggling with is citations /
> > >> bibliography. I have to use the german citation style with
> > >> footnotes. Essentially the first time I cite something, I have
> > >> to put the full entry in a footnote. From the second time on, I
> > >> only have to put a shorter entry in the  
> > footnotes.  
> > > Is this first citation vs other citations thing currently
> > > possible with ConTeXt? I  
> > was thinking that there was no proper support for note style
> > citations in ConTeXt? Has that changed? I remember reading the
> > phrase "We may add additional citation styles if there demand and
> > clear requirements exist." So what's the current state of affairs
> > here?  
> > >
> > > Denis  
> > 
> > Indeed (one can always use \footnote{} but that might not be a good
> > substitute for a proper footnote citation style.
> > 
> > I do not use footnote citations as a general style (and personally
> > dislike it, finding them somewhat distracting and sloppy). Yet
> > these are popular in many fields and there is no reason not to
> > support it.  
> 
> So what would be needed to make add real support for it?

First of all, come to a consensus on a clear style guide to base this
on, so as not to run after ambiguous and perhaps contradictory
specifications. This would be distinct from the APA (author-year) model
as well as from the minimalist APS (numbered) style. Could this perhaps
be the Chicago style? (does that have a footnote specification?)

Secondly, identify users who would be willing to spend time testing and
giving feedback.

Thirdly, motivate Hans and myself to spend time on this (implementing
or helping implement), for neither of us use the footnote style.

So it can be done, and such a model is presently missing.

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


Re: [NTG-context] Different authorconversion for citation alternatives and bibliographic entries

2021-06-30 Thread Alan Braslau

On 30/06/21 12:59, denis.ma...@unibe.ch wrote:

Hi,


-Ursprüngliche Nachricht-
Von: ntg-context  Im Auftrag von Ágoston Volcz
Gesendet: Mittwoch, 30. Juni 2021 10:20
An:ntg-context@ntg.nl
Betreff: [NTG-context] Different authorconversion for citation alternatives and
bibliographic entries

Hi there,

My university has special requirements for the theses I submit.
Layout, fonts etc. are pretty straightforward to set up in ConTeXt.
The one part I'm struggling with is citations / bibliography.
I have to use the german citation style with footnotes. Essentially the first 
time I
cite something, I have to put the full entry in a footnote. From the second time
on, I only have to put a shorter entry in the footnotes.

Is this first citation vs other citations thing currently possible with ConTeXt? I was 
thinking that there was no proper support for note style citations in ConTeXt? Has that 
changed? I remember reading the phrase "We may add additional citation styles if 
there demand and clear requirements exist." So what's the current state of affairs 
here?

Denis


Indeed (one can always use \footnote{} but that might not be a good 
substitute for a proper footnote citation style.


I do not use footnote citations as a general style (and personally 
dislike it, finding them somewhat distracting and sloppy). Yet these are 
popular in many fields and there is no reason not to support it.


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


Re: [NTG-context] hyphenate nothyphenated

2021-06-30 Thread Alan Braslau

On 30/06/21 12:25, Hans Hagen wrote:

On 6/30/2021 7:35 PM, Alan Braslau wrote:

On 29/06/21 05:52, Hans Hagen wrote:

well, you ask for nothyphenated; we could define

\permanent\protected\def\-%
   {\begingroup
    \hyphenationmode\explicithyphenationmodecode\explicitdiscretionary
    \endgroup}

i will ponder this


I believe that \- defines an *optional* hyphenation point.
Specifying nothyphenated should not hyphenate, even at optional points.
The author can otherwise use hyphenated and arrange to help the words 
get hyphenated at certain points.


Perhaps a new "optional" hyphenation point macro can be added that 
would have super-powers to override the align parameter. There would 
be no surprises using such a feature.

We can't use \= unless we drop the \= being macros (anyone using that?)

We can also use \+ which currently is just "+" because it needs some 
value (sometimes it gets a local meaning).


So here is something to ponder:

\pushoverloadmode \unprotect

     \permanent\protected\def\superexplicitdiscretionary
   {\begingroup
    \hyphenationmode\explicithyphenationmodecode\explicitdiscretionary
    \endgroup}

     \aliased\let\lang_explicit_discretionary_nop\explicitdiscretionary

     \permanent\protected\def\lang_explicit_discretionary_yes-%
   {\superexplicitdiscretionary}

     \permanent\protected\def\-%

{\doifelsenextcharcs-\lang_explicit_discretionary_yes\lang_explicit_discretionary_nop} 



     \protect \popoverloadmode

     \nohyphens \hsize 1mm

     test\-test \par test\--test

\stoptext


\= macron accent (bar) should not be changed.

\-- is a good suggestion, like insisting, and should not get confused 
with -- (en dash).



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


Re: [NTG-context] hyphenate nothyphenated

2021-06-30 Thread Alan Braslau

On 29/06/21 05:52, Hans Hagen wrote:

well, you ask for nothyphenated; we could define

\permanent\protected\def\-%
   {\begingroup
    \hyphenationmode\explicithyphenationmodecode\explicitdiscretionary
    \endgroup}

i will ponder this


I believe that \- defines an *optional* hyphenation point.
Specifying nothyphenated should not hyphenate, even at optional points.
The author can otherwise use hyphenated and arrange to help the words 
get hyphenated at certain points.


Perhaps a new "optional" hyphenation point macro can be added that would 
have super-powers to override the align parameter. There would be no 
surprises using such a feature.


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


Re: [NTG-context] Different authorconversion for citation alternatives and bibliographic entries

2021-06-30 Thread Alan Braslau

On 30/06/21 02:20, Ágoston Volcz wrote:

2. Entries in the bibliography and fist time citations must have
'normal' authorconversion, while consequent citations must have
'normalshort'. For consequent citations I defined the 'authortitle'
alternative.
In the thesis I have:
```
\usebtxdataset[default][literature.bib]
\usebtxdefinitions[deu]
\setupbtx[deu]
```
A snippet from the publ-imp-deu.mkvi:
```
\definebtx
 [deu:list]
 [deu]
 [authorconversion=normal]

\definebtx
 [deu:cite]
 [deu]
 [authorconversion=normalshort,
  alternative=authortitle]

\startsetups btx:deu:list:book
{\sc \btxflush{author}}\btxcolon \btxflush{title}
\btxdoif{subtitle}{\btxperiod\btxflush{subtitle}}\btxperiod
\btxflush{address}\btxcolon \btxflush{publisher} \btxflush{year}
\btxdoif{series}{ (\btxflush{series} \btxflush{volume})}\btxperiod
\stopsetups

```
In the setup and definition, the fields I defined do get into the
citation correctly, but the authorconversion remains 'normal'. If I
comment out the lines which set up 'normal' authorconversion for the
list, everything, including the bibliography and 'entry' type
citations get 'normalshort'. Is that a bug or am I missing something?


I am not sure that I understand your snippet (a mwe would be useful).
However, it appears that your setup is for the "list" rendering of a 
book, and you do specify authorconversion=normal for lists.


Keep in mind that the bibliography system uses inheritance so it is 
important to set options in the right places. Once everything gets 
initialized, changing a higher-level parameter might not propagate to 
lower-level instances if they have already been defined, the inheritance 
taking place at definition time.


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


Re: [NTG-context] log: use \thinspace instead of \,

2021-06-29 Thread Alan Braslau
On Tue, 29 Jun 2021 14:06:02 +0200
Henning Hraban Ramm  wrote:

> Maybe, but in running text I use \, all the time e.\,g. in
> abbreviations or for numbers (10\,000). At least in German typography
> these “spatiums” are necessary.

In French typography as well.

Indeed,
American: 10,000.00
French:   10\,000,00
(and other languages).

This is quite readable, and much preferred to the use of any kind of
macro that might format numbers according to language.

I find that students often need such helpers when deciphering many
digits.

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


Re: [NTG-context] Install script not working

2021-06-27 Thread Alan Braslau
On Thu, 24 Jun 2021 23:30:00 +0200
Hans Hagen  wrote:

> -- on freebsd always (does anyone know an env var?)

On FreeBSD, there is `uname -m` but also `hostname`.
I find the environment variable $HOST to be set, but I am not sure that
this is done by default (for standard installations).

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


Re: [NTG-context] [#1] CJK regression? | lmtx-20210613 .

2021-06-16 Thread Alan Braslau
On Wed, 16 Jun 2021 17:14:22 +0200
luigi scarso  wrote:

> > Did you try this one?
> >
> > http://www.xpdfreader.com/download.html  
> 
> 
> I doesn't workunder ubuntu 20.04
> libicudata.so.56 => not found
> I have libicudata.so.66

The ubuntu package must be built incorrectly, for I have
/usr/local/lib/libicudata.so.69
and xpdf works fine (freebsd).

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


Re: [NTG-context] [#1] CJK regression? | lmtx-20210613 .

2021-06-15 Thread Alan Braslau
On Tue, 15 Jun 2021 20:57:09 +0200
Hans Hagen  wrote:

> On 6/15/2021 8:54 PM, Alan Braslau wrote:
> > On Tue, 15 Jun 2021 20:29:26 +0200
> > Hans Hagen  wrote:
> >   
> >> On 6/15/2021 7:53 PM, Alan Braslau wrote:  
> >>> On Tue, 15 Jun 2021 13:07:04 +0200
> >>> Hans Hagen  wrote:
> >>>  
> >>>> the windows mupdf viewer is somewhat crippled (no selection) but
> >>>> searching for something shows the right bbox  
> >>>
> >>> I do not know about Windows ports, but mupdf and mupdf-gl differ,
> >>> not only in their rendering but also in their keystrokes and mouse
> >>> bindings.  
> >> yes there are windows versions, but just as rudimentary and no text
> >> selection (copy)  
> > 
> > "The right mouse button selects a region and copies the marked text
> > to the clipboard."
> > 
> > Maybe this is broken (as Luigi suggests) or requires some special
> > setup/configuration?  
> I was refereing to a textual copy, not an image one. So one selects 
> 'abc' and gets 'abc' (with the right unicodes).

That is what I get using mupdf (x11).

I found this comment:
"Copy-paste will only work if mupdf-gl is built against the bundled copy
of FreeGLUT, which adds the functions glutSetClipboard and
glutGetClipboard."

And, for example:
https://github.com/NixOS/nixpkgs/issues/104017
___
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] [#1] CJK regression? | lmtx-20210613 .

2021-06-15 Thread Alan Braslau
On Tue, 15 Jun 2021 20:29:26 +0200
Hans Hagen  wrote:

> On 6/15/2021 7:53 PM, Alan Braslau wrote:
> > On Tue, 15 Jun 2021 13:07:04 +0200
> > Hans Hagen  wrote:
> >   
> >> the windows mupdf viewer is somewhat crippled (no selection) but
> >> searching for something shows the right bbox  
> > 
> > I do not know about Windows ports, but mupdf and mupdf-gl differ,
> > not only in their rendering but also in their keystrokes and mouse
> > bindings.  
> yes there are windows versions, but just as rudimentary and no text 
> selection (copy)

"The right mouse button selects a region and copies the marked text to
the clipboard."

Maybe this is broken (as Luigi suggests) or requires some special
setup/configuration?

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


Re: [NTG-context] [#1] CJK regression? | lmtx-20210613 .

2021-06-15 Thread Alan Braslau
On Tue, 15 Jun 2021 13:07:04 +0200
Hans Hagen  wrote:

> the windows mupdf viewer is somewhat crippled (no selection) but 
> searching for something shows the right bbox

I do not know about Windows ports, but mupdf and mupdf-gl differ, not
only in their rendering but also in their keystrokes and mouse bindings.

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


Re: [NTG-context] upload / some new math stuff

2021-06-11 Thread Alan Braslau
On Thu, 10 Jun 2021 23:35:14 +0200
Hans Hagen  wrote:

> So, assuming that one installs these fonts:

It looks modern (and new). Why not include it in the lmtx distribution?

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


Re: [NTG-context] BibTeX inproceedings entries not rendered correctly in APA style

2021-05-28 Thread Alan Braslau
On Fri, 28 May 2021 19:52:19 - (UTC)
Nicola  wrote:

> > If there is no publisher, then @unpublished is a better category.
> > APA explicitly, and for good reason, accounts for self-publishing,
> > indicating that the Author was the publisher.  
> 
> Ah ok, that explains the output I was obtaining. So, I am using the
> wrong bibliographic style for my purposes. In practice, at least in
> Computer Science, publishers (and also editors) are often omitted in
> references (it's more a "don't care", rather than a "don't know"
> thing, though).
> 
> > If a publisher does not exist, was it published?
> >
> > If the publisher is unknown, then why not state that:
> > publisher="unknown publisher", or whatever?  
> 
> Strictly speaking, your reasoning makes perfect sense, and I am all
> for enforcing constraints if a given bibliographic style requires
> them. But then, there might be alternatives for when one does not
> need to adhere to those styles. Does ConTeXt (LMTX) currently provide
> anything else besides apa and aps?
> 
> I have read the BibTeX manual looong time ago, but I remember that
> there were mandatory and optional fields for each reference type. My
> memory may fail me, but I think that Editor and Publisher were not
> mandatory fields for inproceedings and article (I think Publisher is
> mandatory for book). Is there a bibliographic style in ConTeXt that
> follows those rules?
> 
> Bibliography management is very sophisticated in ConTeXt (much more
> than LaTeX) and I have not grasped all of its details yet. It seems
> to me that it has also evolved quite a bit in recent years. So, the
> "ConTeXt way" of doing bibliographies still eludes me to some extent.

In writing the ConTeXt bibliography system, we tried to base this on
references, indeed following the original bibtex manual for its
definitions. The APA style follows the APA style guide as best as
possible.

The APS style is intended as a simple example of a numbered
bibliography minimalist style.

Multiple other styles exist out there, more or less well defined. The
problem is that most of them are not very rigorous, and they are
greatly abused. Many publishers follow their own (quirky) bibliography
styles.

The Context system started out as sort of a database handling
subsystem, useful in publishing. It is entirely tune-able, through
setups and parameters. However, the system is complex, so the
customization is not quite as easy as originally intended. Note that
the original bibtex system was conceived in order to have this
configurability, however few were those who mastered writing
bibliography styles, and even carefully crafted styles, for example as
implemented by the APS RevTeX, were buggy and had a number of known,
serious limitations requiring manual intervention.

We could, and have had the intention of, writing other bibliography
styles. But there must be a motivation as well as a clearly defined
specification, for otherwise we will be heading down a rabbit hole of
differing expectations and endless tweaking.

As to "don't care" concerning publishers, this is not very academic.
Indeed, many famous books have been published by various publishers, in
particular for different markets. It is important to say, for each one
might be slightly different, have different pagination for example, and
even certain edits of the text. One might also not pay attention to the
edition, but this too can lead to major differences (even, and
especially in computer science).


Thomas Schmitz, one of the originators of the bibliography project,
will tell you to take the APA style as a model, and then modify it as
you wish to your own needs. I further took this to heart, trying to
write the macros as somewhat standard definitions that one could modify
as needed without breaking the entire system.

And then there are clearly bugs that can be fixed. In the case of a
missing publisher, it is not simply left blank because the APA style
explicitly tells us to put "Author" when there is no defined publisher,
so this is a feature, not a bug.

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


Re: [NTG-context] BibTeX inproceedings entries not rendered correctly in APA style

2021-05-28 Thread Alan Braslau
On Fri, 28 May 2021 13:02:10 -0400 (EDT)
Aditya Mahajan  wrote:

> > If you have not defined a publisher, how should ANY format place the
> > undefined publisher's name?  
> 
> Simply leave it blank?

If there is no publisher, then @unpublished is a better category. APA
explicitly, and for good reason, accounts for self-publishing,
indicating that the Author was the publisher. This is why it works that
way.

If a publisher does not exist, was it published?

If the publisher is unknown, then why not state that:
publisher="unknown publisher", or whatever?

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


Re: [NTG-context] BibTeX inproceedings entries not rendered correctly in APA style

2021-05-28 Thread Alan Braslau
On Thu, 27 May 2021 20:21:55 - (UTC)
Nicola  wrote:

> Thank you all for the precious comments.
> 
> The current LMTX appears to have almost fixed my issue, except that
> inproceedings entries without a publisher have the text "Author"
> instead of the publisher's name.
> 
> I must say that I have no requirement to use the APA style
> specifically; I do it only because it uses the format (Name, Year)
> for the citation. I guess that I could use another style (aps seems
> fine) and just customize the citation format. I have tried with
> 
> \usebtxdataset[main.bib]
> \setupbtx[default:cite][alternative=authoryear]
> \usebtxdefinitions[aps]
> 
> but it seems that the setup command has no effect: the citations still
> use numbers.

APS is an inherently numbered citation format.

If you have not defined a publisher, how should ANY format place the
undefined publisher's name?

I'm not sure what you want.

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


Re: [NTG-context] BibTeX inproceedings entries not rendered correctly in APA style

2021-05-25 Thread Alan Braslau
On Mon, 24 May 2021 23:10:34 -0400
Rik Kabel  wrote:

> 
> On 5/24/2021 22:12, Alan Braslau wrote:
> > On Mon, 24 May 2021 17:53:49 -0400
> > Rik Kabel  wrote:
> >
> >> This is intended. Or rather, it is a side-effect of the intended
> >> behavior.
> >>
> >> If you add an editor ("editor={Baz, Bar}") you will get something
> >> like:
> >>
> >>  Foo, B. (1983). Title of the paper. In B. Baz (Ed.),
> >> /Booktitle/. Author.
> >>
> >> And if you then add a publisher ("publisher={Paymefirst}") you will
> >> get:
> >>
> >>  Foo, B. (1983). Title of the paper. In B. Bar (Ed.),
> >> Booktitle. Paymefirst.
> >>
> >> The APA presumes that you have both an editor and a publisher for
> >> pieces contained in other works. It calls for the use of the author
> >> as publisher if no publisher is present. It is silent about what to
> >> do if you have no editor.
> > It looks like a missing editor field should be caught. What should
> > the rule be?
> >
> > Actually, @inproceedings should not be used without an editor -
> > makes no sense. If the author of the paper happens to be the
> > editor, then the .bib data file should define this with an editor=
> > field.
> >
> > We can change the behavior if a clear case can be made as to what
> > fallback would make sense. Keep in mind the dictum: "garbage
> > in/garbage out"...
> >
> > Alan
> 
> For the case of works within works (inproceedings, inbook,
> incollection, perhaps conference) I would think that the simplest
> solution is to simply drop it, so that in the example above one would
> simply get:
> 
> Foo, B. (1983). Title of the paper. In /Booktitle/. Paymefirst.
> 
> Although I do think that, at least for inproceedings, lack of an
> editor should at least be flagged. A simple compilation of works may
> have no named editor, of I see no reason to require it for inbook or 
> incollection. Cheap publishers regularly put out such collections of 
> out-of-copyright works.
> 
> The implicit assumption that a work with no documented publisher is a 
> self-published work is not especially to my liking -- publishers may 
> have good reason to not identify themselves (think of the publishers
> of the works of Spinoza and, in part, Voltaire) -- but I understand
> that the APA thinks it important. Of course, if you cannot document
> the publisher for an entry, you can explicitly list it as unknown or
> /sine nomine/, as appropriate, to avoid the infelicity of having the
> author's name just stuck in there.

I sent a simple fix to Hans that handles the missing editor, silently.
Someone who would want "Anonymous" or "unknown", or anything else can
always put editor="Anonymous", etc. in their .bib database.

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


Re: [NTG-context] BibTeX inproceedings entries not rendered correctly in APA style

2021-05-24 Thread Alan Braslau
On Mon, 24 May 2021 17:53:49 -0400
Rik Kabel  wrote:

> This is intended. Or rather, it is a side-effect of the intended
> behavior.
> 
> If you add an editor ("editor={Baz, Bar}") you will get something
> like:
> 
> Foo, B. (1983). Title of the paper. In B. Baz (Ed.), /Booktitle/.
> Author.
> 
> And if you then add a publisher ("publisher={Paymefirst}") you will
> get:
> 
> Foo, B. (1983). Title of the paper. In B. Bar (Ed.), Booktitle.
> Paymefirst.
> 
> The APA presumes that you have both an editor and a publisher for
> pieces contained in other works. It calls for the use of the author
> as publisher if no publisher is present. It is silent about what to
> do if you have no editor.

It looks like a missing editor field should be caught. What should the
rule be?

Actually, @inproceedings should not be used without an editor - makes
no sense. If the author of the paper happens to be the editor, then the
.bib data file should define this with an editor= field.

We can change the behavior if a clear case can be made as to what
fallback would make sense. Keep in mind the dictum: "garbage in/garbage
out"...

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


Re: [NTG-context] \documentvariable (used in environment)

2020-07-25 Thread Alan Braslau

Thank you all.

No modes, no funniness in the environment file.

The test case works (Acroread/properties shows the Title, Author, 
Subject, and Keywords fields). However, my real case does get the other 
fields (Author, Subject, and Keywords) but contains in the Title field 
the filename (without the .tex extension) of the main file (and 
filename.tex under File).


I'll chase it down...

Alan

On 25/07/20 02:40, Henning Hraban Ramm wrote:



Am 25.07.2020 um 10:20 schrieb Wolfgang Schuster 
:

Alan Braslau schrieb am 25.07.2020 um 00:21:

On 22/07/20 22:36, Wolfgang Schuster wrote:

What exactly doesn't work and do you get the same problems when you set the 
values in the following minimal example (everything has to be in the same file).

 begin example
\setupdocument
[metadata:title={\documentvariable{title}},
 metadata:subtitle={\documentvariable{subtitle}},
 metadata:author={\documentvariable{author}},
 metadata:keywords={\documentvariable{keywords}}]

\startdocument [title={My title}]
\input knuth
\stopdocument
 end example

Wolfgang


Thank you, Wolfgang.

The above example does work. It fails to set the metadata if one moves the \setupdocument 
to an environment file. As you write, "everything has to be in the same file".

The requirement was only necessary for the example to check if the metadata end 
up in the PDF file. You could have a environment file for \setupdocument but 
the goal here was to check the resulting metadata in the PDF.

This is my question, how to set these using an environment file, thus NOT the 
same file as the \startdocument in a project structure.

The problem is something in your environment/style file which causes a problem 
with the \setupdocument setup. What you should do to find the sulprit is:

1. Make a copy of your document
2. Remove all text between \startdocument and \stopdocument and add some dummy 
text (like in my example) to ensure ConTeXt produces a PDF
3. Remove setups from your environment (but keep the \setupdocument setup) file 
until the metadata appears in the PDF


A typical case if something in an environment doesn’t work, but in a single 
file: Are there modes involved? Maybe your \setupdocument is within a 
\startmode ... \stopmode that doesn’t get activated.

Best, Hraban

___
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] \documentvariable (used in environment)

2020-07-24 Thread Alan Braslau

On 22/07/20 22:36, Wolfgang Schuster wrote:
What exactly doesn't work and do you get the same problems when you set 
the values in the following minimal example (everything has to be in the 
same file).


 begin example
\setupdocument
   [metadata:title={\documentvariable{title}},
    metadata:subtitle={\documentvariable{subtitle}},
    metadata:author={\documentvariable{author}},
    metadata:keywords={\documentvariable{keywords}}]

\startdocument [title={My title}]
\input knuth
\stopdocument
 end example

Wolfgang


Thank you, Wolfgang.

The above example does work. It fails to set the metadata if one moves 
the \setupdocument to an environment file. As you write, "everything has 
to be in the same file". This is my question, how to set these using an 
environment file, thus NOT the same file as the \startdocument in a 
project structure.


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


[NTG-context] \documentvariable (used in environment)

2020-07-22 Thread Alan Braslau

Hello,

I have put the following in an environment

\startenvironment MYENVIRONMENT

\setupdocument
  [metadata:title={\documentvariable{title}},
   metadata:subtitle={\documentvariable{subtitle}},
   metadata:author={\documentvariable{author}},
   metadata:keywords={\documentvariable{keywords}}]

\stopenvironment




and correct use would be

\environment MYENVIRONMENT

\startdocument [title={My title}]

\stopdocument


because, of course, the environment contains more than \setupdocument 
such as font loading that should be done before the \startdocument.


The metadata does not get set properly, having to do with expansion or 
other notions of TeX that I never seem to get right. What might be the 
proper way of handling this?


Thank you

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


Re: [NTG-context] Broken PDF with latest MkIV

2020-07-12 Thread Alan Braslau

On 12/07/20 03:48, Henning Hraban Ramm wrote:

Hi,
I just installed the latest ConTeXt MkIV (LuaTeX 2.06 20200706 + ConTeXt MkIV 
2020.07.09 14:51) to check if the CG journal will look the same as with my 
"old” installation (LuaTeX 1.11 7215 + ConTeXt MkIV 2020.01.30 14:13).

All looks well in Preview.app and PDF Studio 2019, but Adobe (Reader DC and 
Acrobat Pro 9) can’t open the new PDF.

I’ll try to cook up a MWE. Does anyone else experience problems with Adobe apps?

Hraban


Is this perhaps related to the thread:

[NTG-context] Minimum METAPOST code produces problematic PDF


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


Re: [NTG-context] Translation of ConTeXt interface

2020-06-27 Thread Alan Braslau

fonte ? (police)
principale ? (corps)
...

Alan

On 26/06/20 16:04, Garulfo wrote:



Math. I get the following error :

fonts  > preloading latin modern fonts (second stage)
fonts  > defining > font with asked name 'fichier' is not found using 
lookup 'file'

fonts  > defining > unknown font 'fichier', loading aborted

I suppose that due to the translation of "file" to "fichier".
It's OK when I switch back to
- setupstrings    cd:file ==> file
You can translate these string because they are only used in the 
command list to provide the texts which are shown in uppercase letter, 
e.g. NUMBER.

- variables file    ==> file
Constants (\c!...) and variables (\v!...) can be changed, only 
parameters which use the form \s!... have to be english in all cases 
(saves memory and improves performance).
How can I translate the variable "file" into fichier, without messing 
with fonts (and maybe other file related functions)
There shouldn't be a problem with fonts because they use \s!file or 
\s!name which aren't translated (unless you made the mistake and have 
\c!file in your typescripts). It's possible there is a bug somewhere 
but you have to provide a minimal example.


My understanding:

I translated \setupbodyfont into \configurerfonteprincipale.

But I didn't specify any font in the input file.

As soon as I specified \configurerfonteprincipale[pagella,10pt] in the 
input file, font messages "'fichier' is not found" disappear.


Is there an additionnal thing to do in order to enable the loading of a 
default math font, without any font specification, but still with 
translations of "file" into "fichier" ?


___
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] LSP support

2020-06-27 Thread Alan Braslau

A start:

lua-lsp
A Language Server for Lua code, written in Lua.
Supports Lua 5.1-5.3 and Luajit

Alan

On 27/06/20 04:13, Saša Janiška wrote:

Hello,

yesterday while exploring features/plugins of Kakoune (https://kakoune.org/)
editor I, naturally, asked about ConTeXt/LaTeX support and was told about
TexLab project (https://github.com/latex-lsp/texlab) bringing LSP
(https://microsoft.github.io/language-server-protocol/) support for LaTeX.
Interestingly enough, by browsing through the tickets I've found the following
issue: "ConTeXt support" (https://github.com/latex-lsp/texlab/issues/166) where
one of the, afaict, main devs of the project replied with:

"ConTeXt support is definitely in scope of this project.
Our LaTeX parser does not rely on LaTeX specifics
but a lot of the features like code completion rely on LaTeX specifics.
Nevertheless, supporting ConTeXt is a lot of effort at the moment
as I have never used ConTeXt before.
Supporting the project structure of ConTeXt would probably be the first
step. "

Of course, I'm glad that TexLab project does provide LSP support and bringing
it to the Kakoune editor as well, but I'm sure that many of you know
that bringing ConTeXt support to TexLab would benefit users of **many**
other editors since these today many most popular editors (Atom, Emacs,
SublimeText, (neo)Vimn, VScode...) are having support for LSP.

Unfortuantely, I'm ConTeXt noob and not speaking Rust, but just want to bring
the information if there are people familiar with both about potential benefit
for ConTeXt to get LSP support.


Sincerely,
Saša



___
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] How to define an array of pens

2020-06-22 Thread Alan Braslau

On 22/06/20 01:17, Otared Kavian wrote:

for j = -1 step 1 until 1 :
MyPens[j] := pencircle scaled 2pt ; % I would like to say here 
(2+j) pt
endfor


MyPens[j] := pencircle scaled (2+j)*pt ;

pt is just a variable, and one can write 2pt implicitly implying the 
multiplication, but must explicitly write (2+j)*pt to parse correctly.


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


Re: [NTG-context] What alternative for scantokens( "btex " & texcommands & " etex")?

2020-03-30 Thread Alan Braslau

On 29/03/20 07:06, Gerben Wierda wrote:
I’m trying in METAPOST to build a command to pass on to ConTeXt using 
btex/etex.


picture p; p := scantokens( "btex " & texcommands & " etex”);


btex/etex is better replaced by textext().

Nevertheless, this does not change anything. Context intercepts and 
replaces textext() (and btex/etex) during processing. It does not return 
a picture but a text bounding box that gets substituted upon shipping out.


You *can* save your text to a string, to be passed to textext() in your 
MP macros.


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


[NTG-context] reference a paragraph

2020-03-25 Thread Alan Braslau
Hello,

One creates references for structure elements as, for example,

\startsubject [reference=sub:mysubject]
   ...
\stopsubject

and then can refer to these using, e.g.

\on{page} [sub:subject]



How might one reference a *paragraph*, for example?
Parallel syntax might suggest \startparagraph [reference=p:myparagraph]
but this is not implemented.
Perhaps there is another referencing command that I am not aware of?

Thank you

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


Re: [NTG-context] A question about whatever (Metapost)

2020-01-26 Thread Alan Braslau
What error are you getting?
(perhaps you need "save carre,p,a,b,c,d,N,P,M ;")

A perpendicular line is also the line "rotated 90" (about the intersection 
point).

Alan 

On Sun, 26 Jan 2020 00:09:38 +0100
Fabrice Couvreur  wrote:

> Hi,
> The point M is such that the line (CM) is perpendicular to the line (NP).
> I do not understand the error of this code.
> Thank you
> Fabrice
> 
> \usecolors[xwi]
> \starttext
> \startMPcode
>   path carre, p;
>   carre = unitsquare scaled 138;
> 
>   pair a, b, c, d, N, P, M;
>   a = point 0 of carre;
>   b = point 1 of carre;
>   c = point 2 of carre;
>   d = point 3 of carre;
> 
>   p = b -- d;
>   N = whatever[a,d];
>   P = whatever[a,b];
>   M = whatever[b,d];
>  (M - c) dotprod (P - N) = 0;
> 
>   draw M -- c;
> 
>   draw p  withcolor \MPcolor{navy};
>   draw carre withcolor \MPcolor{firebrick};
> 
>   label.lft("$A$", point 0 of carre);
>   label.lrt("$B$", point 1 of carre);
>   label.urt("$C$", point 2 of carre);
>   label.ulft("$D$", point 3 of carre);
> \stopMPcode
> \stoptext

___
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] problem with a new installation of LMTX

2019-12-08 Thread Alan Braslau
On Sun, 8 Dec 2019 12:15:26 +0100
Otared Kavian  wrote:

> but otherwise as Floris suggests in his response, maybe we have to abandon 
> MacOS in the near future…

No, simply we need to adapt our procedures (installation scripts) to be 
compatible with MacOS policy.

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


Re: [NTG-context] problem with a new installation of LMTX

2019-12-08 Thread Alan Braslau
On Sun, 8 Dec 2019 00:35:13 +0100
Hans Hagen  wrote:

> I have no clue. Normally there is a check if directories can be accessed 
> and written to, so where then do these files go to?
> 
> I fear that other mac users have to help (no new mac here). Maybe Mojca 
> knows as she knows all there is to know.

I have no problem on Catalina, however wiping-out the cache and rebuilding the 
format often gives me errors finding the lua scripts (so I have taken the habit 
of creating and maintaining symbolic links in the texmf-osx-64/bin directory).

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


Re: [NTG-context] tikz

2019-11-27 Thread Alan Braslau
You may want to take a look at the ConTeXt nodes module:

https://www.tug.org/TUGboat/tb39-1/tb121braslau-nodes.pdf

Alan



On Wed, 27 Nov 2019 15:42:43 +
Ursula Hermann  wrote:

> Hello everyone!
> 
> I have:
> \usemodule{tikz}
> 
> \starttext
> \starttikzpicture
> node {root}
> child {node {left}}
> child {node {right}
> child {node {child}}
> child {node {child}}
> }
> \stoptikzpicture
> \stoptext
> 
> Then after compiling I have the following mistake:
> 
> Command Line:   context.exe --synctex=-1 "picture test.tex"
> Startup Folder: 
> C:\Users\Hermann\Downloads\context-mswin\tex\texmf-context\doc\context\sources\general\manuals\nodes
> 
> 
> resolvers   | formats | executing runner 'run luametatex format': 
> C:/Users/Hermann/Downloads/context-mswin/tex/texmf-mswin/bin/luametatex 
> --jobname="picture test" 
> --fmt=C:/Users/Hermann/Downloads/context-mswin/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt
>  
> --lua=C:/Users/Hermann/Downloads/context-mswin/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui
>  cont-yes.mkiv --c:currentrun=1 --c:fulljobname="./picture test.tex" 
> --c:input="./picture test.tex" --c:kindofrun=1 --c:maxnofruns=9 
> --c:synctex="-1" 
> --c:texmfbinpath="C:/Users/Hermann/Downloads/context-mswin/tex/texmf-mswin/bin"
> This is LuaMetaTeX, Version 2.01.0
> open source > level 1, order 1, name 'cont-yes.mkiv'
> system  >
> system  > ConTeXt  ver: 2019.11.13 00:08 MKIV beta  fmt: 2019.11.27  
> int: english/english
> system  >
> system  > 'cont-new.mkiv' loaded
> open source > level 2, order 2, name 
> 'C:/Users/Hermann/Downloads/context-mswin/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
> system  > beware: some patches loaded from cont-new.mkiv
> close source> level 2, order 2, name 
> 'C:/Users/Hermann/Downloads/context-mswin/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
> system  > files > jobname 'picture test', input './picture test', 
> result 'picture test'
> fonts   > latin modern fonts are not preloaded
> languages   > language 'en' is active
> system  > synctex functionality is enabled, expect 5-10 pct runtime 
> overhead!
> open source > level 2, order 3, name './picture test.tex'
> fonts   > preloading latin modern fonts (second stage)
> fonts   > 'fallback modern-designsize rm 12pt' is loaded
> 
> tex error   > tex error on line 5 in file ./picture test.tex: ! Undefined 
> control sequence
> 
> l.5 \starttikzpicture
> 
> 
> 1
>  2 \usemodule{tikz}
> 3
>  4 \starttext
> 5 >>  \starttikzpicture
>  6 node {root}
> 7 child {node {left}}
> 8 child {node {right}
> 9 child {node {child}}
> 10 child {node {child}}
> 11 }
> 12 \stoptikzpicture
> 13 \stoptext
> 
> 
> The control sequence at the end of the top line of your error message was 
> never
> \def'ed. You can just continue as I'll forget about whatever was undefined.
> 
> 
> mtx-context | fatal error: return code: 1
> 
> 
> _
> 
> ConTeXt Compilation Report (Pages: 0)
> 
> Errors: 1   Warnings: 0   Bad Boxes: 0
> What is the mistake here?
> 
> Many Thanks
> Uschi

___
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] PDF viewer poll

2019-10-14 Thread Alan Braslau
On Sun, 13 Oct 2019 12:43:14 +0200
Henning Hraban Ramm  wrote:

> Hi, I’d like to update my list of (usable!) PDF viewers.
> Which one do you use? (Current version?)

On Mac OS, there is skim, which has better features than preview but uses the 
same Apple rendering engine (with all of its bugs).

zathura (many systems) can use either the mupdf or the poppler engine. Your 
choice.

mupdf-gl on MacOS doesn't need X11, but it has some annoying bugs that might 
get fixed ... someday.

But, as Hans says, it should not be too hard to build a mupdf-engine based 
lightweight viewer with lua integrated. Or why not add this to lua-bloat-tex as 
an output option? That way, one can interpret (xml) source files with on the 
fly rendering.

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


Re: [NTG-context] metafun 2

2019-08-16 Thread Alan Braslau
We have eofill in MP (in pdf/ps in fact) and that likely will do what you need.

Alan


On Sat, 17 Aug 2019 00:31:38 +0100
Adam Reviczky  wrote:

> Hi Hans,
> 
> One MetaPost feature that I was looking forward to is the ability to create
> a fill between two shapes.
> Something like a difference function of two path's.
> 
> For logos I use the workaround with creating a path alongside the excluded
> areas but it is always cumbersome.
> 
> I have briefly mentioned it back here:
> https://mailman.ntg.nl/pipermail/ntg-context/2011/056910.html
> 
> Just for illustration purposes, if I wanted to fill the area in between two
> circles:
> 
> *path p ;
> **p := fullcircle scaled 1cm ;
> **path q ;
> **q := fullcircle scaled .5cm ;
> *
> 
> Instead of creating a new path along both circles with:
> 
> 
> *r := p -- reverse q -- cycle ;*
> 
> It would be nice to have something like:
> 
> *fill p excluding q ;*
> 
> or something like that.
> 
> I mainly have use-cases for differences in shapes, but filling the
> intersection of two shapes would be the same idea.
> 
> Thanks,
> Adam
> 
> 
> On Wed, Aug 14, 2019 at 10:57 AM Hans Hagen  wrote:
> 
> > Hi,
> >
> > In the process of providing an additional (more abstract) interface to
> > some of the old and also new MetaFun code we wonder what kind of
> > features users would like to see.
> >
> > http://www.pragma-ade.com/general/magazines/mag-1104-mkiv.pdf
> >
> > As a teaser I uploaded a MyWay document that shows some of what is
> > coming. All is experimental but it shows the direction. We're talking
> > ConTeXt LMTX here. For instance,
> >
> >  draw lmt_outline [
> >  content   = "hello",
> >  kind  = "reverse",
> >  fillcolor = "darkred",
> >  drawcolor = "darkblue",
> >  rulethickness = 1/2,
> >  ] ysized h shifted (3.75h,-1.25h) ;
> >
> > Wraps all the outline drawing in one macro with a set of options (there
> > will be xml interface definitions for that). Or take:
> >
> >  draw lmt_followtext [
> >  content = "How well does it work {\bf 1}! ",
> >  path= (fullcircle scaled 4cm),
> >  trace   = true,
> >  spread  = true,
> >  ] ysized 5cm ;
> >
> > which is an easier interface to text along a curve. Arrows can be drawn
> > with
> >
> >  draw lmt_arrow [
> >  kind= "draw",
> >  location= "middle",
> >  alternative = "curved",
> >  path= fullcircle
> >  scaled  3cm
> >  shifted (3.5cm,0cm),
> >  ] withcolor "darkblue" ;
> >
> > but of course the low level interface with its many variables for
> > tweaking stays around. Other examples are shown in the mentioned document.
> >
> > So the question is: What do you miss in metapost support? Of course it
> > should fit within the concept, so 'artistic freehand drawings' is not
> > something that is likely to get interfaced. We are particularly
> > interested in educational applications, if only because ConTeXt started
> > out that way.
> >
> > Hans
> >
> >
> >
> > -
> >Hans Hagen | PRAGMA ADE
> >Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> > tel: 038 477 53 69 | www.pragma-ade.nl | 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://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] Wrong MetaPost text output

2019-08-11 Thread Alan Braslau
On Sun, 11 Aug 2019 11:12:55 -0700
Henri Menke  wrote:

> Thank you for the quick repsonse.  This looks good to me.  However,
> could you tell me a way to get the correct baseline with textext?  When
> I use
> 
> \startMPpage
> draw btex dummy etex shifted (0,0);
> draw btex foo   etex shifted (1.5cm,0);
> \stopMPpage
> 
> the baseline is the one that I would expect from TeX, i.e. at the depth
> of the “y” is removed or otherwise correctly accounted for.  In contrast
> when I use
> 
> \startMPpage
> draw textext("dummy") shifted (0,0);
> draw textext("foo")   shifted (1.5cm,0);
> \stopMPpage
> 
> the baseline will be below the depth of the “y” which is sometimes
> unwanted.

textext() is actually textext@#()
so you can use textext.top() for example
to put the *bottom* of the text bounding box at y=0.
Without any @# suffix, the text bounding box gets centered at y=0.

Metafun has a few *new* suffixes defined, so you can use
textext.d(), textext.dlft(), textext.drt(), I BELIEVE,
to position with respect to the tex baseline.
(you need to check this).

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


Re: [NTG-context] \setupheadertexts \setupfootertexts

2019-08-02 Thread Alan Braslau
On Fri, 2 Aug 2019 23:36:47 +0200
Wolfgang Schuster  wrote:

> > we have a lot or areas ... and if you really want you can do this ...
> >
> > \setuplayouttext
> >
> > Has been there for ages ... (but I never use that method).  
>
> I has the same question a few years ago but I never used it
> because it has a few limitations like missing style/color support.

I am looking for a simple and obvious way of setting header and footer
texts. The \setupheadertexts has limitations and I view this as
historical, for ConTeXt commands have evolved over time usually towards
better solutions, even if we leave in place for reasons of backward
compatibility habits that can be hard to quit.

One example is \setuppapersize [page=letter,paper=letter]
(sorry, and I *do* much prefer A4).
This is, I believe, far superior to \setuppapersize [letter] [letter]


Do you find that keys in \setupheader make sense? If so, what choice?
(as we like to limit the proliferation of key names).

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


Re: [NTG-context] \setupheadertexts \setupfootertexts

2019-08-02 Thread Alan Braslau
On Fri, 2 Aug 2019 21:08:00 +0200
Wolfgang Schuster  wrote:

Thank you



> When you use three arguments the first is used for the position of text, 
> i.e. above the text, margin or edge areas.

I know this, and I find the syntax unfortunate, to say the least.

> Only six or seven arguments work in this case but this only useful in a 
> double sided document.

Indeed, a double-sided (asymmetric) document.
And it is pretty unwieldy.

> You need a new command for this because adding an assignment option can 
> produce unexpected results, e.g. the example below won't work anymore.
> 
> \setupheadertexts[{\date[d=...,m=...,y=...]}]

Well, what would make sense?
I would have no problem dropping/ignoring this (historic) command.
How about:

\setupheader [left=,leftodd=,middle=,...]
\setupfooter

or

\setupheader [lefttext=,leftoddtext=,middletext=,...]

This would be logical.

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


[NTG-context] \setupheadertexts \setupfootertexts

2019-08-02 Thread Alan Braslau
Hello,

\setupheadertexts [{center}]
sets a centered header (and wipes-out any left and right header)

\setupheadertexts [{left}] [{right}]
sets the left and right headers (and keeps the centered header)

\setupheadertexts [{left odd}] [{right odd}] [{left even}] [{right even}]
sets the left and right headers for even and odd pages
(perhaps I have this backwards?)



(1) It would be useful to have
\setupheadertexts [{left}] [{center}] [{right}]
but this does not work.
In this case, we probably also need a *six* argument version (even/odd).

(2) It would also be useful that
\setupheadertexts [{center}]
NOT wipe-out left and right if they are set
(but I could live with this perhaps historical behavior if we were to have (1).)

(3) It is a bit messy that one must use
\setupheader []
\setupheader [left] [right]
*two calls* in order to have no centered header.
(Again, I could live with
\setupheader [left] [] [right]
if we were to have (1).)


Similarly for footertexts, of course.
What is the reasoning, presently?



ALTERNATIVELY (or additionally), we could have

\setupheadertexts [center={center},
   left={left},
   lefteven={left, even},
   ...]

which would be even cleaner.

Thanks,

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


Re: [NTG-context] Figure labels in combinations

2019-07-30 Thread Alan Braslau
On Tue, 30 Jul 2019 11:20:03 +0200
Luca Mauri  wrote:

> I am trying to typeset two or more figures next to each other, inside a 
> floating environment, each with its own label. I am familiar with a mechanism 
> of the form
> 
> \startplacefigure[reference=pic]
> \startcombination[3*1]
> {figure 1}{a}
> {figure 2}{b}
> {figure 3}{c}
> \stopcombination
> \stopplacefigure

This does not answer your question, but do you know about:

\startplacefigure
  \startcombination [nx=3,alternative=label]
{figure 1}
{figure 2}
{figure 3}
  \stopcombination
\stopplacefigure

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


Re: [NTG-context] consecutive full stops in "num" bib style after "et al"

2019-07-29 Thread Alan Braslau
On Mon, 29 Jul 2019 16:37:15 -0400
Sanjoy Mahajan  wrote:

> Here's a minimal example:
> 
>   \setupbibtex[database=tmp]
>   \setuppublications[alternative=num]

You are using the old mkii bibtex module.

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


Re: [NTG-context] Place footnote after reference

2019-07-22 Thread Alan Braslau
On Mon, 22 Jul 2019 18:34:34 +0200
Huseyin Özoguz  wrote:

> The problem is, that Context (or Tex) skips lines, which is poor
> typesetting, too many even than necessary in some cases, and that is
> not suitable. Endnotes are no solutions aswell, I need footnotes. So
> the solution to have reference and footnote not on the same page
> seems the least bad workaround, if possible at all.

So why not place footnotes in a (sufficiently large) reserved bottom
space? The typeset text area would then be uniform across all pages and
notes would appear where needed.

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


Re: [NTG-context] Place footnote after reference

2019-07-22 Thread Alan Braslau
On Mon, 22 Jul 2019 16:27:45 +0200
Denis Maier  wrote:

> llI don't know a solution for this, but would be very interested.
> With LaTeX you can use the `atbegshi`-package that gives you a
> command ` \AtBeginShipoutNext`:
> 
> ```
> \footnotemark
> \clearpage
> \AtBeginShipoutNext{\footnotetext{Text.}}
> ```
> 
> This only works for individual footnotes, but it's already quite
> useful. Is there something similar for ConTeXt?
> I can think of at least three situations:
> 
> 1. Put footnote text to the next page for a single footnote.
> 2. Allow footnote text on next page for all footnotes.
> 3. Allow footnote text on next page of a double page spread  for all
> footnotes.
> 
> Best,
> Denis
> 
> 
> 
> 
> 
> 
> Am Mo., 22. Juli 2019 um 08:43 Uhr schrieb Huseyin Özoguz <
> h.oezo...@mmnetz.de>:
> 
> > Hello,
> >
> > ConText seems to try to place the footnote on the same page as the
> > footenotereference. See this example:
> >
> > \showgrid
> > \starttext
> > \input tufte
> > \input tufte \footnote{Footnote 1}
> > \input tufte
> > \input tufte \dorecurse{35}{Blub or what }\footnote{Footnote 2}
> > \input tufte
> > \stoptext
> >
> > But that results into one (or two?) fewer line on the first page.
> >
> > Is there a possibility to implement the following rule? -> NEVER
> > move lines onto the next page to achieve footnote and reference
> > beging on the same page. If necessary set the footnote on the next
> > page, after the reference.
> >
> > Or would you suggest a better solution? I have a book with
> > grid=yes, so the default-setting is not suitable.
> >
> > Thanks
> > Huseyin


I do not know the details, but take a look at the following keywords
(which do the *opposite* of what you are seeking):

\setupnote
  [footnote]
  [split=verystrict,scope=page]

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


Re: [NTG-context] Quotation marks

2019-07-19 Thread Alan Braslau
On Sat, 20 Jul 2019 08:58:27 +0900
Atsuhito Kohda  wrote:

> It is true quotes are language dependent but sometime we need
> language independent quotes. So it will be  nice if we can use
> {``}, {''} and \quotation at the same time

“”
___
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] Quotation marks

2019-07-19 Thread Alan Braslau
On Fri, 19 Jul 2019 18:54:08 +0300
Dmitry Starostin  wrote:

> I understand it might have been deliberately and for various reasons,
> but ConTeXt has no analogue for {``} and {''} for quotes. \quotation
> is a replacement, but it is awkward if you write a draft in ConTeXt
> and make the final variant in pdfLatex. Is there a ready solution for
> the quotation marks as marked out in the text? Or one needs to write
> his own macro for this?

Write a macro in pdfLatex.

(You can always use utf-8:
“”
«  »
„“
etc. as appropriate)

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


Re: [NTG-context] currently supported platforms

2019-07-19 Thread Alan Braslau
On Fri, 19 Jul 2019 14:21:40 +0200
Mojca Miklavec  wrote:

> > In the wiki it says kfreebsd would be still supported via Debian -
> > is this still true?  
> 
> No clue. Probably nobody ever tested for ages.

I'm gnu-less...



From https://www.debian.org/ports/kfreebsd-gnu/

"Debian GNU/kFreeBSD is not an officially supported architecture. It has
been released with Debian 6.0 (Squeeze) and 7.0 (Wheezy) as a
technology preview and the first non-Linux port. Since Debian 8
(Jessie) it is though no more included in official releases."


The situation is, despite its exploration into non-linux kernels,
Debian remains a GNU-anchored system and this diverges from a
GNU-independent base or core that freeBSD represents.

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


Re: [NTG-context] Side figure bug in mkiv?

2019-07-19 Thread Alan Braslau
On Fri, 19 Jul 2019 13:52:37 +0200
Wolfgang Schuster  wrote:

> Henri Menke schrieb am 18.07.2019 um 23:29:
> > For what it's worth, the MKIV way to switch to bold face is
> > \bold{text} instead of {\bf text} but it also doesn't fix your
> > problem because neither of the two start a new paragraph before the
> > first letter and therefore \the\everypar is still inside a group.  
> The normal switch to use bold style is \bf and \bold{...} (or {\bold 
> ...}) is only  a alternative
> switch which uses \bf to change the font. The same applies to 
> \italic{...}, \mono{...} etc.

BUT, \bold{...}, \italic{...} export (to xhtml, etc.)
whereas {\bf ...}, {\it ...} do not.

Also, \setuphighlight [emphasis] [style=bold] and
\emphasis{...}
is a *functionally* better way of formatting text.

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


Re: [NTG-context] Spacing after combination

2019-07-16 Thread Alan Braslau
On Tue, 16 Jul 2019 22:32:39 +0200
Marco Patzer  wrote:

> However, I'd prefer to not have another environment around the
> combinations, but if there's no other way, I'd settle for your
> approach. So far that seems to be the best choice.

A combination is a construction, not really an "environment".

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


Re: [NTG-context] reference containing parentheses causes trouble

2019-07-11 Thread Alan Braslau
This is why it is always a good idea to preface references with a
(personal) identifier. However, perhaps Hans, Wolfgang, or someone else
can explain the use of colons (:) and double colons (::) in references
and in other tags in general (they have to do with namespaces,
instances, etc.).

Alan


On Thu, 11 Jul 2019 14:56:02 +0200
Otared Kavian  wrote:

> Actually in the context of references, not only parentheses as
> Wolfgang pointed out, but also some words are reserved, such as
> nextpage and previous page:
> 
> \setupinteraction[state=start]
> 
> \starttext
> 
> \goto{Second page}[page(2)]
> 
> \goto{Go to next page}[nextpage]
> 
> \page
> 
> \goto{ConTeXt garden}[url(http://wiki.contextgarden.net)]
> 
> \goto{Go to previous page}[previouspage]
> 
> \stoptext
> 
> Best regards: OK
> 
> > On 11 Jul 2019, at 11:03, Peter Rolf  wrote:
> > 
> > Am 10.07.2019 um 21:29 schrieb Wolfgang Schuster:  
> >> Sanjoy Mahajan schrieb am 10.07.2019 um 04:15:  
> >>> Dear List,
> >>> 
> >>> Warning: The following may be a bug or feature or just my
> >>> misunderstanding!  It seems that parentheses cause trouble in
> >>> references.  
> >> Braces are used for the argument of reference actions.
> >> 
> >> \setupinteraction[state=start]
> >> 
> >> \starttext
> >> 
> >> \goto{Second page}[page(2)]
> >> 
> >> \page
> >> 
> >> \goto{ConTeXt garden}[url(http://wiki.contextgarden.net)]
> >> 
> >> \stoptext
> >> 
> >> Wolfgang
> >>   
> > 
> > I see. Thanks for clearifying.
> > 
> > 
> > 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://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] feature request

2019-07-04 Thread Alan Braslau
On Thu, 4 Jul 2019 11:16:22 -0400 (EDT)
Aditya Mahajan  wrote:

> > BTW, I constantly convert Beamer documents into ConTeXt's
> > simpleslide documents recently and it is very convenient
> > if I can use \pmatrix{a\cr c\cr} style because it is similar
> > to LaTeX documents.  
> 
> You can create a private module with the definitions that you need.
> If these are general enough, then you can also release it as a third
> party module for others to use. I don't see the value of adding (and 
> maintaining!) a module that provides LaTeX compatibility as part of
> the core.

LaTeX compatibility is desired (by some)
1) when new to Context, coming from LaTeX and learning a new system;
2) for ConTeXt users who are *required* to sometimes use LaTeX,
   for example in submissions to journals etc. that accept LaTeX but
   cannot handle Context sources.

One gets over the first case rather quickly and then there is no
going back: the philosophies are so different.

In the second case, I restrict myself to a strict use of the journal's
own template (for example with revtex), never asking for anything more
nor anything less.

In a third situation of editors who give lip service to accepting TeX
submissions, I give them plain text for they are going to re-key in
everything in any case. I provide them with a pdf that they can use
to correct their markup.

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


Re: [NTG-context] IEEE Citation Style

2019-06-27 Thread Alan Braslau
On Thu, 27 Jun 2019 06:39:56 -0400 (EDT)
Aditya Mahajan  wrote:

> On Thu, 27 Jun 2019, Julian Gompper wrote:
> 
> > Hello everyone,
> >
> > I am currently writing a technical documentation with ConTeXt, and I 
> > would like to use the IEEE citation style.
> >
> > I have found this file on github, although it does not seem to work and 
> > it was last created in July 2017 ( 
> > https://gist.github.com/adityam/afda949f76676055e7906679599ec937 ).
> >
> > Is there a more up-to-date version available, or should I try to make my 
> > own?  
> 
> I haven't updated this style since then. If you want to use some bib types 
> that are not there, please let me know. It is relatively easy to add them 
> (once the exact style is known).

And if the bibliography rendering style is of general use
with a published specification that one can refer to
then we ought to integrate it into the core distribution.

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


Re: [NTG-context] [OT] rasperry 4

2019-06-24 Thread Alan Braslau
On Mon, 24 Jun 2019 19:58:54 +0200
Hans Hagen  wrote:

> On 6/24/2019 6:41 PM, Alan Braslau wrote:
> > On Mon, 24 Jun 2019 14:30:48 +0200
> > luigi scarso  wrote:
> >   
> >> just seen
> >> https://www.raspberrypi.org/products/raspberry-pi-4-model-b/
> >>
> >> I would like to know your impressions
> >>  
> > 
> > No SDIO stack (yet) on FreeBSD, so no WIFI support on the Raspberry Pi.
> > (so one is somewhat *stuck* with GNU/linux).  
> There's a windows for the pi -)

Right, like you say, if you want linux
you might as well run it under Windows ;-)

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


Re: [NTG-context] [OT] rasperry 4

2019-06-24 Thread Alan Braslau
On Mon, 24 Jun 2019 14:30:48 +0200
luigi scarso  wrote:

> just seen
> https://www.raspberrypi.org/products/raspberry-pi-4-model-b/
> 
> I would like to know your impressions
> 

No SDIO stack (yet) on FreeBSD, so no WIFI support on the Raspberry Pi. 
(so one is somewhat *stuck* with GNU/linux). 

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


Re: [NTG-context] (forw) Re: Strange behavior concerning pdf-output of externalfigures

2019-05-21 Thread Alan Braslau
On Fri, 17 May 2019 09:43:29 +0200
Rudolf Bahr  wrote:

> And then the same .png-image
> to which I added a red frame by GIMP2.10. This one shows artefacts in
> ConTeXt!

I *always* use MetaPost to add features (and to clip) images.
These features (arrows, labels, etc.) are then vectorial and easily
modified through programming, for example labels can be
language-dependent.

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


Re: [NTG-context] Creating one's own style

2019-05-18 Thread Alan Braslau
On Sat, 18 May 2019 09:16:24 +0300
Dmitry Starostin  wrote:

> Thank you for the instructions on how to make one's own style.
> 
> I only need to change the formatting in the bibliography list, the
> formatting of the notes in the text is entirely up to the requirement.
> 
> A strange effect (full MWE in attachment):

Corrected MWE attached.


--
Alan


Context_bib.pdf
Description: Adobe PDF document
%\enabletrackers[publications.setups]

\setuplanguage[ru]
\setupbodyfont[dejavu]
\mainlanguage[russian]
\setupindenting[big,yes]
\setbreakpoints[compound]

\startbuffer[bib]

@Book{Declercq:2000,
  author  = {Declercq, Georges},
  title   = {Anno Domini: The origins of the Christian era},
  address = {Turnhout},
  publisher   = {Brill},
  year= {2000},
  shorttitle  = {Anno Domini}, % ignored
  shorthand   = {Declercq},% ignored
  language= {english},
  hyphenation = {english}, % ignored
  pagetotal   = {206}, % ignored
  pages   = {206},
}

\stopbuffer

\usebtxdataset[bib.buffer]
\usebtxdefinitions[apa]

\setupbtx[apa:cite:authoryear][left={[},right={]}]

\startsetups btx:apa:list:book
  \btxdoif {author} {
  \btxflush{author}
  \btxcomma
  }
  \btxdoifelse {title}
  {\btxflush{title}\btxperiod}
  {No Title}
  \btxdoif {address}
  {\btxspace\emdash\btxspace\btxflush{address}\btxcomma}
  \btxdoif {publisher}
  {\btxspace\btxflush{publisher}\btxcomma}
  \btxdoif {year}
  {\btxspace \btxflush{year} \btxperiod}
  \removeunwantedspaces
\stopsetups

\starttext

\startbodymatter

Test.\cite[Declercq:2000]

\stopbodymatter

\startbackmatter
\startchapter[title=Bibliography]
\placelistofpublications[criterium=all,sorttype=authoryear]
\stopchapter
\stopbackmatter

\stoptext
___
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] Emdash

2019-05-17 Thread Alan Braslau
On Fri, 17 May 2019 10:54:39 +0300
Dmitry Starostin  wrote:

> btxspace and btxsemicolon do exist, but how does one do a 'em-dash'?
> What is the best way to define it?

— :-)


\def\btxemdash {\removeunwantedspaces —}


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


Re: [NTG-context] Remove italics from bibliography list

2019-05-17 Thread Alan Braslau
On Fri, 17 May 2019 14:10:03 +0200
"Thomas A. Schmitz"  wrote:

> On 5/17/19 12:41 PM, Dmitry Starostin wrote:
> > I tried several variants, but I cannot find where exactly the switch
> > happens.
> > 
> > \definebtx[apa:list:title:incollection][apa:list:title][style=]
> > \definebtx[apa:list:title:book][apa:list:title][style=]
> > 
> > \definebtx[apa:list:journal][apa:list][style=]  
> 

...

> 
> For further questions, please remember that it is considered polite
> to create complete minimal working examples, not just send code
> snippets that leave everybody guessing what it is you want to achieve.

Use \setupbtx rather than \definebtx to change parameters.
Which namespace depends on what you want to achieve.

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


Re: [NTG-context] Modifying the place of the year in APA.

2019-05-16 Thread Alan Braslau
On Thu, 16 May 2019 22:30:46 +0300
Dmitry Starostin  wrote:

> I need to: 1. place the year in the end 2. remove parentheses.

That would no longer be APA style...

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


Re: [NTG-context] Bibliography APS Style without unpublished

2019-05-16 Thread Alan Braslau
On Thu, 16 May 2019 12:48:30 +0200
Denis Maier  wrote:

> (2) there is a clear, defined standard that can be followed.
> 
> This is actually the easier question: A few standard styles
> immediately come to mind: MLA, Chicago 16th and 17 edition in its
> various variants (author-date, note-bibliography,
> fullnote-bibliography, both note styles with and without ibid.),
> Modern Humanities Research Association... I guess having a model for
> all major variants (authordate, authoryear, numeric, alphanumeric)
> would be a good starting point.

The main point is to have some document we can turn to as a reference
so as to avoid (endless) debates about the "proper" way to do things.
It has always been our intention to support more styles, but not
endless variants as almost no publishers, universities and other
institutions correctly follow any established specifications.

> Also, we can implement more styles if (1) there is a need

A call for specific use cases.

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


Re: [NTG-context] Bibliography APS Style without unpublished

2019-05-16 Thread Alan Braslau
On Thu, 16 May 2019 10:02:44 +0200
"Jan U. Hasecke"  wrote:

> But as I collect my internet citations with zotero I always get a
> urldate for all internet entries. I think that giving the urldate is
> better than insert a publication year as nobody knows how long a
> website was present and when it was published for the first time.
> 
> Is it possible to insert something like "last accessed on the internet
> on -MM-DD" in that field automatically if no publication year is
> provided but a urldate?

urldate is a non-standard field that Zotero (and others) have added.
It is not handled by the revtex bibliography style that can be used as
the reference for the "APS" style.

The APA style guide suggests putting the author followed by the access
date, then the title, adding "Retrieved from" followed by the URL.

Internet citations, unless they correspond to a "preprint" on an
archived list server are questionable references anyways, which is why
the APS suggests using (unpublished).

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


Re: [NTG-context] Bibliography APS Style without unpublished

2019-05-15 Thread Alan Braslau
On Wed, 15 May 2019 14:27:21 +0200
"Jan U. Hasecke"  wrote:

> I understand that apa and aps are the only implemented styles. Is
> there any other style I can use?

You can write your own style, or your own modified style. Also, we can
implement more styles if (1) there is a need, and (2) there is a clear,
defined standard that can be followed.

Alan

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


Re: [NTG-context] Bibliography APS Style without unpublished

2019-05-15 Thread Alan Braslau
On Wed, 15 May 2019 14:27:21 +0200
"Jan U. Hasecke"  wrote:

> is there an option to eliminate the "unpublished" in aps bibliography?

I suppose you mean the APS setup when NO date field is given
("to be published" for an article, "in press" for a book, and
"unpublished" otherwise)?

You can redefine the setup btx:aps:nd (no date) to give something else,
but you might have to go further not to get empty parenthesis.

A better solution, using the APS specification is to have a correct
database. Maybe a different publication type category might be more
appropriate.

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


Re: [NTG-context] inserting figure labels

2019-05-12 Thread Alan Braslau
On Sun, 12 May 2019 19:25:26 +0200
Hans van der Meer  wrote:

> Can I be absolutely sure that \placefigure[here,force] will not
> invoke the float mechanism, but instead always effects an in-place
> insertion?

It will trigger a page break if there is not enough space "here".
In fact, "force" is enough, no need for "here":

\startplacefigure [location=force,title={My title}]
...
\stopplacefigure

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


Re: [NTG-context] placing content in footers

2019-05-12 Thread Alan Braslau
On Sun, 12 May 2019 18:19:54 +0200
Pablo Rodriguez  wrote:

> >>  \mbox{}\page\mbox{}  
> >
> > Where did you learn to use \mbox?  
> 
> I don’t remember (probably in my LaTeX times, before moving to
> ConTeXt).

The use of \mbox{} is a classic LaTeX hack...

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


Re: [NTG-context] placetable and localfootnotes

2019-04-30 Thread Alan Braslau


> On 30Apr19, at 02:54, Otared Kavian  wrote:
> 
> Hi Hans,
> 
> It seems that there is a conflict between \startplacetable and 
> \startlocalfootnotes: in the following example when the latter command (and 
> its \stop counterpart) is commented out the table is placed correctly in the 
> middle, while otherwise the table is not centered.
> 
> Best regards: OK
> %%% begin localfootnotes-xtable.tex
> \startplacetable
> \startlocalfootnotes
>   \startxtable
>   \startxrow
>   \startxcell Alpha \stopxcell
>   \startxcell Beta\footnote{Footnote Here} \stopxcell
>   \stopxrow
>   \startxrow
>   \startxcell Beta \stopxcell
>   \startxcell Alpha\stopxcell
>   \stopxrow
>   \stopxtable
> \placelocalfootnotes
> \stoplocalfootnotes
> \stopplacetable
> %%% end localfootnotes-xtable.tex


The following doesn’t help:

\automigrateinserts % needed to handle footnotes within a box...

(I have found this necessary in the past in order to use footnotes in placed 
tables.)

Alan

--
Alan Braslau



___
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] Strange behavior concerning pdf-output of externalfigures

2019-04-29 Thread Alan Braslau
On Mon, 29 Apr 2019 13:18:04 +0200
Hans Hagen  wrote:

> anyway, as the png test suite passes ok the question is what makes your 
> image different ... here it looks ok when included on windows64 bit and 
> linux 64 bit

Your very own .png image and MWE works fine here on OSX, freeBSD, and linux.

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


Re: [NTG-context] No menu bar option for Adobe Reader

2019-04-28 Thread Alan Braslau

> On 28Apr19, at 04:27, Hans Hagen  wrote:
> 
>> \setupinteractionscreen[option=nomenubar] switch.
>> I wonder if it would be possible to add this little feature to the source 
>> code. 

Why don’t you simply put this setup in your local environment (texmf-local) as 
I do not believe that it should in anyway become a default.

Alan


--
Alan Braslau



___
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] LMTX and system fonts

2019-04-28 Thread Alan Braslau

> On 28Apr19, at 02:55, Pablo Rodriguez  wrote:
> 
> I add the path, otherwise no mtxrun would be found.


Of course, Otared is saying:

$CONTEXTHOME/tex/texmf-osx-64/bin/mtxrun -generate

where osx-64 is the platform.


--
Alan Braslau



___
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] tikz is not found

2019-04-24 Thread Alan Braslau
On Wed, 24 Apr 2019 12:42:03 +0200
Gour  wrote:

> in order to try using TikZ figures (exported from Geogebra) I tried
> with some simple TikZ example with lmtx install,

> so wonder how to add missing tikz module?

Hans explained that third party modules are not automatically distributed or 
installed (yet) by the lmtx install.sh script. All that you need to do is to 
copy the texmf-modules directory from a standard context distribution to the 
lmtx tree.

If you are intending on preparing math exams, I may suggest that native 
MetaPost IS better adapted for many reasons AND easier to use in ConTeXt.

> That example does not work for me, but I've got a clue.

Because your (or someone's) mail application replaced -- with emdashes.

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


Re: [NTG-context] using metapost library makecirc with context.

2019-04-21 Thread Alan Braslau
On Sat, 20 Apr 2019 23:49:26 +0200
Hans Hagen  wrote:

> > let latex=textext ;  
> 
> That crashed here.

In fact, when I used makecirc.mp, I just commented out the following few lines 
at the head of the file:

%input latex;
%
% Commands definitions to do the labeled easier %
%
%LaTeXsetup:=LaTeXsetup & 
%"\def\ohm{\ensuremath{\,\Omega}}" &
%"\def\kohm{\,k\ensuremath{\Omega}}" &
%"\def\modarg#1#2{\setbox0=\hbox{$\mkern-1mu/#2^\circ$}" &
%"\dp0=.21ex $#1\underline{\box0}$}";

and everything worked (the macros use label() for text).

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


Re: [NTG-context] using metapost library makecirc with context.

2019-04-20 Thread Alan Braslau
On Sat, 20 Apr 2019 23:00:09 +0200
Hans Hagen  wrote:

> On 4/20/2019 10:09 PM, Andrea De Michele wrote:
> 
> > I didn't understand the magic behind that  but it's works.  
> 
> mp has no real text typesetting options so this hack provides it

Why not
let latex=textext ;

> > Another question: there is a library to draw electrics circuit
> > alternative to makecirc but more context/metafun friendly?  
> the node library but it lacks things for drawing resistors ... i'll 
> discuss this whith alan

I played with makecirc a while back (and I even used it to make simple circuit 
diagrams that I used in a patent application). A real electronic circuit 
drawing program these days will do circuit board layouts and automatic routing, 
etc. I'm not sure that we want to get into this with MP.

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


Re: [NTG-context] change in treating errors

2019-04-16 Thread Alan Braslau
On Tue, 16 Apr 2019 05:51:00 -0400
Mohammad Hossein Bateni  wrote:

> 1) You could correct a spelling mistake on the prompt (as in original TeX),
> although this is rarely done these days.

As you said, doesn't happen.

> 2) You could use the --nonstopmode or --batchmode to not get the prompt,
> and not have the lingering background process (Mac bug?).

No, a consequence of the model. Lingering background processes often occurred 
after interrupting a run using a keyboard interrupt.

> 3) You could see a collection of errors which might help you in fixing them
> altogether without having to run context again and again finding one error
> at a time.  (Same thing with compiling a C/C++ code, and getting a list of
> many errors at once.)

As Hans said, such errors are rarely limited in scope and without side 
consequences, so a waste of time to "collect" multiple errors.

> 4) There are many "errors" and "warnings" that context does not stop on.
> You could perhaps claim moving on from those is also useless :)  Just to
> give some examples: missing modules, fonts, glyphs in fonts, etc.

Garbage in-garbage out.

By the way, I "rarely" make errors, ever, so I'm not really affected by this 
change. :-)

My favorite, however, was trying to launch X(11) from the console (by typing 
one too many X)!

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


Re: [NTG-context] change in treating errors

2019-04-15 Thread Alan Braslau
On Mon, 15 Apr 2019 23:11:17 -0400
Mohammad Hossein Bateni  wrote:

> Hi,
> 
> ConTeXt used to recover better from errors.  Consider the following file:
> 
> =
> \xyz
> \abc
> 
> \starttext
> HELLO
> \stoptext
> =
> 
> Running  ConTeXt  ver: 2019.03.21 21:39 MKIV beta  fmt: 2019.3.26  int:
> english/english would catch both "Undefined control sequence" errors before
> exiting with the message "mtx-context | fatal error: return code:
> 256".  (I either press enter to move to the next error, or I use the
> --nonstopmode option.)
> 
> Now with ConTeXt  ver: 2019.04.13 17:01 MKIV beta  fmt: 2019.4.15  int:
> english/english, even when I do not supply the --nonstopmode option,
> ConTeXt exits abnormally with the same error message right after
> discovering the first undefined control sequence.  The old "?" TeX prompt
> allowing once to fix the misspellings, etc. does not appear at all.
> 
> Has some defaults changed?  Is it possible to get the old behavior?
> 
> Thanks,
> ~MHB

I much prefer the new behavior, for the previous prompt was pretty useless and 
there was little point going on without correcting an earlier error. 
Furthermore, the model would often leave a furtive process running in the 
background following a keyboard interrupt (especially on Mac OSX). The new 
process does not do this.

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


Re: [NTG-context] Fine-tuning of aps style

2019-04-14 Thread Alan Braslau
On Sun, 14 Apr 2019 18:30:11 +0300
Dmitry Starostin  wrote:

> To cite like [1, p. 101]
> 
> \cite[righttext={\nbsp p.~101}][Hankins:2014]
> 
> works, but has no comma
> 
> \cite[righttext={, p.~101}][Hankins:2014]
> 
> produces no page
> 
> \cite[righttext={,\nbsp p.~101}][Hankins:2014]
> 
> gives no page at all
> 
> \cite[righttext={\nbsp, p.~101}][Hankins:2014]
> 
> gives no page at all.
> 
> righttext seems to be reluctant over the initial comma right after the
> reference number.

As you can have multiple references:

\cite[righttext={p.~101,p.301}[Hankins2014,Starostin2019]

If one wants an explicit comma in the text for each citation,
one needs to add extra grouping:

\cite[righttext={{, p.~101}}][Hankins:2014]

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


Re: [NTG-context] How to make the adjustments to the aps style?

2019-04-13 Thread Alan Braslau
On Sat, 13 Apr 2019 19:14:34 +0300
Dmitry Starostin  wrote:

> 1. to cite in the order of appearance (probably one setting)

\setupbtx [aps:cite] [sorttype=none]
I believe


> 2. 'author initials' instead of the default 'initials authors'.

\setupbtx [aps:list]
  [authorconversion=invertedshort]

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


Re: [NTG-context] Lua error with fontstrip in today’s beta

2019-04-12 Thread Alan Braslau
On Fri, 12 Apr 2019 23:19:34 +0200
Henning Hraban Ramm  wrote:

> minimals installation (2019.04.12 17:43, still not lmtx)

Ah, when I first started using ConTeXt, MkIV was somewhat experimental and it 
was still recommended to use MkII (with pdftex) for "production". Now we are 
generally surprised when someone comes up with MkII questions or examples ... 
and as this has become old hat. So Hans came up with lmtx just to animate the 
mailing list. Keeps us on our toes!

:-)

Alan

P.S. your MWE works fine with the latest lmtx...
___
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] Unwanted uppercase letter in \high{} within bibliography

2019-04-12 Thread Alan Braslau

> On 12Apr19, at 02:28, Huseyin Özoguz  wrote:
> 
>> As you can see, we get Ème in the output instead of ème.
>> Is this a bug, or did I miss something?
>> 

This is a consequence of command=\Word, set for titles. Try

\setupbtx [apa:list:title] [command=]

Explanation: APA specification asks for Words of the title to be capitalized. 
If you write your bib dataset correctly (title words capitalized), having 
command={\Word}, is unnecessary.

Why \Word capitalizes \high{ème} is another question - it is only so 
sophisticated. Indeed, I do not know if it Capitalizes a Title Correctly 
According to English Rules, not capitalizing articles and prepositions… 
Furthermore, this mania of capitalizing titles is NOT the practice in French, 
so I would set command=, for titles of works in French.


By the way, btx admits:

title:fr={Histoire géographie EMC 5\high{ème}, cycle 4},
title:en={Geographical History EMC 5\high{th}, 4\high{th} cycle},

to be used advantageously in multi-lingual documents or multi-lingual use of a 
single bibliography database.

Alan

--
Alan Braslau



___
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] Strange behavior in math mode: < and minus sign give leftarrow

2019-04-10 Thread Alan Braslau
On Wed, 10 Apr 2019 10:09:31 +0200
Otared Kavian  wrote:

> The problem of such an usual default is also with newcomers who would not 
> know about this feature in ConTeXt: when one writes maths one would not guess 
> that typing an inequality like $n < -1$ would end up in $n \leftarrow 1$. And 
> writing such inequalities is very common… while \leftarrow is used seldom in 
> a mathematical text.
> So I think having the default collapsing=1 would be more logical, and more in 
> line with the spirit of TeX.
> 
> I hope Aditya will be convinced…

And since we have utf-8 input, such "features" are anachronistic and should not 
be on by default. ←

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


Re: [NTG-context] name of cache used by mkiv and lmtx

2019-04-06 Thread Alan Braslau
On Sat, 6 Apr 2019 13:46:57 -0400 (EDT)
Aditya Mahajan  wrote:

> Is there a way to avoid that? I can, of course, set different values of 
> TEXMFCACHE for both distributions, but does it make sense to to use a 
> different hash (5fe67e...) for the two?

Why do you set TEXMFCACHE
and not simply keep separate texmf-cache directories
under your lmtx and mkiv CONTEXTROOT directories?

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


Re: [NTG-context] How to update LMTX?

2019-04-04 Thread Alan Braslau
On Thu, 4 Apr 2019 23:11:42 +0200
Hans Hagen  wrote:

> (we just don't use rsync)

As rsync can be problematic for some locations
(TCP port 873 blocked) without the ability to
tunnel.

http is most often open.

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


Re: [NTG-context] How to update LMTX?

2019-04-04 Thread Alan Braslau
One just runs ./install.sh at any time to update.

Alan


On Fri, 5 Apr 2019 09:27:15 +1300
Henri Menke  wrote:

> Dear list,
> 
> With ConTeXt standalone there was an easy way to update the install script and
> the distrivution using
> 
> rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh .
> sh ./first-setup.sh --context=latest --engine=luatex --modules=all 
> --fonts=all
> 
> For LMTX it seems that I have to download the zip from
> http://www.pragma-ade.nl/install.htm, extract it and then run install.sh to
> account for possibly updated installation scripts.  Is there a resource where 
> I
> can download the (unzipped) install script and binaries via rsync directly?
> 
> On another note, it seems that I can't install modules and fonts in LMTX.  
> When running
> 
> mtxrun --script mtx-install.lua --help
> 
> I can see the options --modules and --fonts but running
> 
> bin/mtxrun --script ./bin/mtx-install.lua --update --server="..." 
> --instance="..." --modules=all --fonts=all
> 
> seems to have no effect.  How do I install modules and fonts?
> 
> Cheers, Henri
> 
> ___
> 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] beta

2019-04-04 Thread Alan Braslau
On Thu, 4 Apr 2019 10:06:03 -0400 (EDT)
Aditya Mahajan  wrote:

> > I uploaded a new beta (as we're now post current again). The lmtx 
> > installation is normally also updated in sync but sometimes can be a bit 
> > ahead as I myself use that as default.  
> 
> Is there or will there be any difference between context mkiv and 
> luametatex distributions apart from the binaries?

The backends are different as are a few other details but the base macros are 
the same. Hans is working on an article describing this that I believe he will 
be presenting at BachoTeX and publishing in TugBoat.

Alan

P.S. The new beta seems to fix a problem that Preview (and Skim) on MacOS had 
in rendering certain characters (some peculiarity/bug in the Apple pdf library).
___
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] How to repeat the hyphen?

2019-03-25 Thread Alan Braslau
On Mon, 25 Mar 2019 22:24:34 -0700
Sam May  wrote:

> still using the ridiculously out-of-date 2016.05.17 because I haven't 
> gotten around to overriding the Gentoo package manager yet...

You can install the standalone Context distribution anywhere you want, in 
parallel with your OS package manager version. Both can very peacefully 
coexist. To select or use your standalone version, simply add its bin path 
(i.e. $CONTEXTROOT/tex/texmf-linux-64/bin) at the front of your PATH.

One strategy could be to keep a version of the standalone distribution in your 
project directory, even having multiple versions, one per project. This has the 
advantage that if one does not update the distribution it will always work with 
the project files, that is any future changes to Context will not affect the 
compiling of the project sources, for each project holds its own (frozen) 
version of Context.

In this case, your path can be:
export PATH=./context/tex/texmf-linux-64/bin:$PATH
so that it will select whatever is in the context subdirectory of the current 
directory.
(you can also use this PATH scheme adding a (soft)link in a project directory 
to whatever context distribution you like, or none, in which case it will 
fall-back on the system-installed texlive version.)

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


Re: [NTG-context] (no subject)

2019-03-22 Thread Alan Braslau
On Fri, 22 Mar 2019 14:34:25 +0300
dstaros...@yandex.ru wrote:

> specification=chicago

Doesn't exist, hasn't been written...
___
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] Bibliography: I think module [aps] is rendering incorrectly the electronic category and others too

2019-03-21 Thread Alan Braslau
On Thu, 21 Mar 2019 13:16:04 -0300
Tomas Badan  wrote:

> Looking at context documentations and source code, it says that for
> electronic category we have:
> * Required fields: title
> * Optional fields: address, author, howpublished, month, note,
> organization, url, year, doi
> 
> So, when I run this simple code:
> 
> \startbuffer[example]
> @ELECTRONIC {example,
> title = "One title",
> url = "http://www.example.org;,
> }
> \stopbuffer
> 
> \usebtxdefinitions[aps]
> 
> \definebtxdataset[basic]
> \usebtxdataset[basic][example.buffer]
> \definebtxrendering
> [basic]
> [aps]
> [dataset=basic]
> 
> \setupbtx[dataset=basic]
> \nocite[example]
> 
> \starttext
> \placelistofpublications[basic]
> \stoptext
> 
> I've got an output that is similar with:
> 
> [1] , One title, http://www.example.org (unpublished)
> 
> which seems incorrect to me (author should not be rendered, and I was
> expecting year not to be accounted for too). Am I doing something
> wrong?
> 
> Thanks in advance
> Tomás
> 
> PS. Original question was posted here:
> https://tex.stackexchange.com/questions/480416/bibliography-what-is-the-correct-way-to-setup-and-invoke-the-category-electron


The APS style definitions currently expect:
"author", "collaboration", "organization"

and, indeed, if there is none, it should not include the comma.
So the texdefinition (in publ-imp-aps.mkvi) should be changed to:

\starttexdefinition unexpanded btx:aps:author
\btxdoif {author} {
\btxflush{author}
\btxcomma
}
\stoptexdefinition



Secondly, why do you expect not to have (unpublished)?
The APS style guides suggest that unpublished material
should be labeled "unpublished" or "private communication".

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


Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)

2019-03-18 Thread Alan Braslau
On Mon, 18 Mar 2019 14:15:10 -0400 (EDT)
Aditya Mahajan  wrote:

> On Mon, 18 Mar 2019, Romain Diss wrote:
> 
> > Le 13/03/2019, Aditya Mahajan a �crit  
> >> > Is there a simple way to split a large \startframedtext environment over
> >> > multiple pages. It doesn't work out of the box and I didn't find any
> >> > option make it work in the wiki nor in the documentation I read.  
> >> 
> >> Use backgrounds or textbackgrounds.  
> > Thank you but I still can't achieve what I want to do whith this
> > command.
> >
> > I try to make something similar to the frames in the
> > "mkiv-publications.pdf" manual (page 6 or 22 for a bibliography for
> > examples).
> > I suppose Hans Hagen made use of metafun to do it but I encounter some
> > problems with 'textbackgrounds'.
> >
> > In this minimal example, the frame doesn't appear (or if i set
> > [frame=on,leftframe=off] all the frame is rendered) and the left and
> > right offsets are not took into account.  
> 
> textbackground uses metapost for ALL backgrounds and the default metapost 
> code to draw the background (draw_multi_pars, defined in mp-abck.mkiv) 
> doesn't handle individual frames. So, you have to write your own metapost 
> code to draw the side bar.
> 
> Another option for simple backgrounds is to use `\definebackground` 
> instead of `definetextbackground`. The background mechanism doesn't have 
> too many options, but does honor leftframe and rightframe by default.
> 
> Aditya

You can look under
doc/context/sources/general/manuals/publications/publications-style.tex
to see how it is done.

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


Re: [NTG-context] CHEMIC: place a argument under the compound

2019-03-18 Thread Alan Braslau
On Mon, 18 Mar 2019 14:44:17 +
Jorge Manuel  wrote:

> Thanks for your support.
> I clear the  recommended line, but the problem persists. How I can fix that?
> 
> Jorge
> 
> 
> > No dia 18/03/2019, às 14:36, Alan Braslau  
> > escreveu:
> > 
> > On Mon, 18 Mar 2019 10:08:33 +
> > Jorge Manuel  wrote:
> > 
> >> \usemodule[chemic]
> > 
> > chemic is the old, mkii chemical macros.
> > They have been replaced in mkiv with core macros
> > so no need for the above line.
> > 
> > Alan
> > 
> 

Sorry, it is now:

\startchemicalformula
\chemical{text}
\chemical{text}{below}
\chemical{text}{above}{below}
\stopchemicalformula

and it can be enclosed in

\startplacechemical
   ...
\stopplacechemical

to get numbered (chemical) equations.

Alan

P.S. I need to work with Hans to get the new (now old) manual into the 
distribution.
___
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] CHEMIC: place a argument under the compound

2019-03-18 Thread Alan Braslau
On Mon, 18 Mar 2019 10:08:33 +
Jorge Manuel  wrote:

> \usemodule[chemic]

chemic is the old, mkii chemical macros.
They have been replaced in mkiv with core macros
so no need for the above line.

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


Re: [NTG-context] lua-error when asking for the fontame

2019-03-09 Thread Alan Braslau
On Sat, 9 Mar 2019 10:12:06 +0100
Hans Hagen  wrote:

> On 3/8/2019 11:16 PM, Willi Egger wrote:
> > \setupbodyfont[pagella,rm,12pt]
> > \starttext
> > This text is written in  \font\fontname
> > \stoptext  
> 
>  > This text is written in  \fontname\font  

We also have:

\fontclass \the\globalbodyfontsize

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


Re: [NTG-context] Showing value of a MP variable

2019-03-08 Thread Alan Braslau
On Fri, 08 Mar 2019 17:05:02 +0100
Procházka Lukáš Ing.  wrote:

> is it possible (namely for debugging) values of MP variables (be it on the 
> console or in the log)?
> 
> I thought there is MP command "show" (mentioned in mpman.pdf) for this

message(pt) ;

puts it into the (context) log.

show

is a MetaPost command that will get included in the log with:

\enabletrackers [metapost.showlog]


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


Re: [NTG-context] Space between initials in bibliography

2019-03-03 Thread Alan Braslau
On Sat, 2 Mar 2019 10:19:35 +0100
"Mikael P. Sundqvist"  wrote:

> By default there seem to be no space between initials in bibliography
> (which I guess there should be?). I can get a space by adding
> \setupbtx[
> stopper:initials={.\btxspace},
> ]
> but I don't think that this is how the stopper is meant to be used.

In the APA specification (publ-imp-apa.mkvi), we have

stopper:initials={. }, % with a (breakable) space

but there is no space by default (publ-ini.mkiv)

stopper:initials={.},

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


Re: [NTG-context] textext within ConTeXt

2019-03-03 Thread Alan Braslau
On Sun, 3 Mar 2019 12:52:53 -0500
Mohammad Hossein Bateni  wrote:

> Hi,
> 
> I can't understand why the following code does not work.  Could someone
> help me out here?
> 
> \starttext
> \startMPpage
> draw textext("\convertnumber{r}{12}");
> draw textext("\convertnumber{r}{" & "12" & "}");
> \stopMPpage
> \stoptext
> 
> The first draw statement works perfectly.  But the second one throws out
> errors and complains as follows:

Because luatex intercepts and processes \convertnumber{r}{
and tries to pass this result to MP as a string, not the other way around.

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


Re: [NTG-context] Footnotes being broken over two pages

2019-02-27 Thread Alan Braslau
On Tue, 26 Feb 2019 01:04:25 +0100
Lars  wrote:

> Hi there,
> 
> I've stumbled upon some behaviour that looks like a bug to me. Sometimes 
> longer footnotes are being broken over two pages. Please see the 
> attached picture:
> 
> As you can see the last footnote on p. 6 is being continued on p. 7. I 
> don't think it's a problem of too many footnote lines on one page as on 
> p. 17 there are more lines and the breaking is in order.
> 
> The code for all links that I create like this is:
> 
> \define\NytAsimov{
> \goto{
> \hyphenatedurl{
> https://www.nytimes.com/1992/04/12/business/technology-a-celebration-of-isaac-asimov.html}}
> [url(https://www.nytimes.com/1992/04/12/business/technology-a-celebration-of-isaac-asimov.html)]
> (Abrufdatum 12.12.2018)}
> 
> The line breaking I only did for readability. In my source all those 
> definitions are in single lines. Does anyone have an idea why this is 
> happening? If you need anything just let me know please.
> 
> Thanks in advance, Lars.
> 

Maybe try

\setupnote [footnote] [split=verystrict,scope=page]

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


Re: [NTG-context] degrade module

2019-02-18 Thread Alan Braslau
On Mon, 18 Feb 2019 23:50:24 +0100
Peter Münster  wrote:

> On Mon, Feb 18 2019, Alan Braslau wrote:
> 
> > Incorrect, an image file contains width and height (in pixels) as well as a
> > resolution,  
> 
> Optionally a resolution in the metadata. Then, of course, you have a
> "natural size". But that doesn't matter, if you want other dimensions.

For example, in Context

\externalfigure [myfigure]

should give this natural size. Of course, you can always specify other 
dimensions,
in which case it gets scaled. Since what counts for our use in Context is 
usually
fixing a particular size, i.e. [width=\textwidth], the "resolution", i.e. 
density
in pixels is something that we want to control. So if we want to print to 300 
dpi,
for example, and we have a text width of 17cm, say, then we would like to have 
an
image that is some 2000 pixels in width. One can normalize one's collection of
images however one wishes, but manipulating them on the fly as one changes 
layout
or image placement hardly seems efficient, even if one were to be clever in 
storing
copies and looking at time stamps. A little bit of forethought might be better, 
and
more predictable.

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


  1   2   3   4   5   6   7   8   9   10   >