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
___


Re: [NTG-context] markdown module vs pandoc

2019-02-18 Thread Alan Braslau
On Mon, 18 Feb 2019 18:47:49 +0100
Gour  wrote:

> > I use TikZ when I need some ready-made stuff with possibly some fancy
> > shading patterns (or when I would pass the images to LaTeX users). In
> > those cases you might be able to achive the same in a lot less lines
> > of code, but you usually constantly need the user manual at hand, and
> > doing something low level is more tricky. ConTeXt support might be
> > occasionally broken.  
> 
> Thank you. It seems that metaPost/Fun is a way to go...

MetaPost is native to luatex (MPlib is integrated).

TikZ was designed for latex, although it has always made a great effort to 
remain open to context. Nevertheless, it does calculations in TeX, hardly 
ideal. Furthermore, MP solves (linear) equations which is very, very useful in 
creating drawings.

If MetaPost is "missing" any higher-level functionality, it is only because 
macros and packages have not been written for it, or distributed, for many 
exist. Sure, TikZ can provide lots more eye candy, pfluff I believe is what 
Tufte calls 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] degrade module

2019-02-18 Thread Alan Braslau
On Mon, 18 Feb 2019 22:09:32 +0100
Peter Münster  wrote:

> On Mon, Feb 18 2019, Alan Braslau wrote:
> 
> > My working solution is to put figures in subdirectories by resolution,  
> 
> The purpose of the downsample module is something else: a well defined
> resolution of the image in the PDF-file. A bitmap image does not have a
> resolution, only a width and a height in pixels. The resolution gets
> defined, when you specify the real dimensions.
> 

Incorrect, an image file contains width and height (in pixels) as well as a 
resolution, and the combination gives real dimensions (for a natural size).

A proper scan of a real object specifies all of 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] degrade module

2019-02-18 Thread Alan Braslau
On Mon, 18 Feb 2019 10:13:20 +0100
Marco Patzer  wrote:

> Yes. I didn't put much thought into it and assumed there is a better
> solution.

My working solution is to put figures in subdirectories by resolution,
that is externally, once and for all, using whatever is your favorite tool
to "degrade" pixel resolution to whatever value one desires, then setting
global macro (\FigRes) to this subdirectory name.

So, for example,

\def\FigRes{300/}

...

\externalfigure [\FigRes MyFigureName]

I do this as I have *very* high resolution images as my source
(also high resolution "depth", i.e. 16 bit) and it makes no sense
to include these as is in my documents.

It's very robust.

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] Bug in math: version

2019-02-14 Thread Alan Braslau
On Thu, 14 Feb 2019 18:08:09 +0100
Hans Åberg  wrote:

> > On 14 Feb 2019, at 16:42, Alan Braslau  wrote:
> > 
> > Now, this is really interesting
> > 
> > \starttext
> > \textbar x\textbar
> > \stoptext
> > 
> > produces |x| as seen by acroread, mupdf, evince, ... on the Mac
> > BUT shows | | with preview and with skim (which uses the Apple pdf 
> > rendering engine).  
> 
> On MacOS 10.13.6, using ConTeXt 1.02 of TeXLive 2018 updated using the 
> TeXLive Utility, $|x|$, $\textbar x\textbar$, $\|x\|$, $‖x‖$, $||x||$ gives 
> the output |푥|, |푥|, |푥|, ‖푥‖, ‖푥‖, copied from the PDF in Preview.

So it must be a bug with macOS Mojave 10.14.3

This is not surprising, as I have seen lots of other rendering bugs come and go 
with the Apple library.

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] Bug in math: version

2019-02-14 Thread Alan Braslau
On Thu, 14 Feb 2019 08:42:15 -0700
Alan Braslau  wrote:

> On Thu, 14 Feb 2019 13:02:21 +0100
> Hans Hagen  wrote:
> 
> > On 2/13/2019 7:12 PM, Alan Braslau wrote:
> > > Not just the latest beta ... and indeed according to the TeXbook this 
> > > should be a vertical double bar (\Vert), in math mode.
> > > 
> > > I wish to point out that | in text font (text mode) is different from | 
> > > in math font (math mode). I noticed that Preview (on the mac) *fails* to 
> > > render the math font $|$ whereas \| in text mode does get rendered in 
> > > Preview or printed from Preview (my document used dejavu fonts). Other 
> > > pdf renderers on the mac (acroread, mupdf, evince, ...) are OK. This is 
> > > clearly a bug in Preview.
> > > 
> > > How, other then \|, should one produce | in *text* mode?  
> > does \textbar work?

$\vert$ and $\Vert$ should also be defined. How about in text mode?

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] Bug in math: version

2019-02-14 Thread Alan Braslau
On Thu, 14 Feb 2019 13:02:21 +0100
Hans Hagen  wrote:

> On 2/13/2019 7:12 PM, Alan Braslau wrote:
> > Not just the latest beta ... and indeed according to the TeXbook this 
> > should be a vertical double bar (\Vert), in math mode.
> > 
> > I wish to point out that | in text font (text mode) is different from | in 
> > math font (math mode). I noticed that Preview (on the mac) *fails* to 
> > render the math font $|$ whereas \| in text mode does get rendered in 
> > Preview or printed from Preview (my document used dejavu fonts). Other pdf 
> > renderers on the mac (acroread, mupdf, evince, ...) are OK. This is clearly 
> > a bug in Preview.
> > 
> > How, other then \|, should one produce | in *text* mode?  
> does \textbar work?

Now, this is really interesting

\starttext
\textbar x\textbar
\stoptext

produces |x| as seen by acroread, mupdf, evince, ... on the Mac
BUT shows | | with preview and with skim (which uses the Apple pdf rendering 
engine).

Thus, the Apple *bug* is perverse. (Would another Mac user confirm this.)


Using \textbar is fine as a fallback, but much less convenient (and readable) 
than a shorthand.
Two questions:

1) $\|$ SHOULD produce ‖ according to the TeXbook, so we cannot dispute Knuth's 
choice.
   \| may be undefined in the bible for textmode,
   but logic would have it also yield ‖ in a text font.

2) I guess | is active in text mode (and used as a delimiter in column 
specifications,
   for example, i.e. \starttabulate [|l|l|]). I have always felt a bit 
uncomfortable
   with this, having in a far past come from LaTeX practice where it defined a 
vertical line.

Our solution in ConTeXt is to use UTF-8 input, so ‖ for a double vertical bar.
Therefore, | SHOULD produce a single vertical bar, thus it should not be active.
Is this possible?
(Also, as a bonus, || should be taken as a ligature.)

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] Bug in math: version

2019-02-13 Thread Alan Braslau
Not just the latest beta ... and indeed according to the TeXbook this should be 
a vertical double bar (\Vert), in math mode.

I wish to point out that | in text font (text mode) is different from | in math 
font (math mode). I noticed that Preview (on the mac) *fails* to render the 
math font $|$ whereas \| in text mode does get rendered in Preview or printed 
from Preview (my document used dejavu fonts). Other pdf renderers on the mac 
(acroread, mupdf, evince, ...) are OK. This is clearly a bug in Preview.

How, other then \|, should one produce | in *text* mode?

Alan




On Wed, 13 Feb 2019 18:52:26 +0100
Otared Kavian  wrote:

> Hi Hans, 
> 
> With the latest beta there seems a bug has been intoduced with « \| » which 
> should give a vertical double bar and not a simple bar.
> 
> This is a minimal example:
> 
> \starttext
> With 2019.02.10 17:43, the command \type{\|x\|} gives an incorrect result:
> 
> $\|x\| = 1$
> 
> $|x| = 1$
> \stoptext
> 
> Best regards: OK
> ___
> 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] Bad names

2019-02-08 Thread Alan Braslau
On Fri, 8 Feb 2019 23:26:21 +0100
Hans Hagen  wrote:

> On 2/8/2019 10:22 PM, Marco Patzer wrote:
> 
> > What is a bad name for context? Does it have any consequences if badly named
> > files are used? Just being curious.
> Bad names are names that can result i a miss when looked up on a case 
> sensitive system. When you have a workflow where images come from e.g. 
> graphic designers don't be surprised to get names with inconsistent 
> casing, one of more spaces in a row, multiple suffixes (or wrong ones), 
> etc etc ... now when images are referred to e.g. from xml files that 
> also come from someplace it can get pretty hard to find where something 
> goes miss. So, here we always normalize (az09-).
> 
> In a tex tree files with the same name can lead to wrong lookups 
> depending on the order of configured paths. There context alway has had 
> case insensitive lookups.

Because people use brain-dead file systems
we get to use brain-dead file names, case-insensitive, etc., etc.

This can be a bit frustrating for those used to working with real file systems
and real (arbitrary) file names, but it gives better results
for the least common denominator, i.e. 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] 404 error: Not found for first-setup.sh

2019-02-08 Thread Alan Braslau
fetch http://minimals.contextgarden.net/setup/first-setup.sh

works as well - why do we suggest wget, a gnuism?

Alan

On Fri, 8 Feb 2019 20:24:45 +0100
Taco Hoekwater  wrote:

> Hi,
> 
> That is helpful knowledge. I am quietly confident I can fix wget tomorrow, 
> now.
> 
> I’ll report back.
> 
> Taco
> 
> > Op 8 feb. 2019 om 19:59 heeft Mohammad Hossein Bateni  
> > het volgende geschreven:
> > 
> > I ran into the same issue two days ago, where "curl -O" worked while "wget" 
> > did not.
> >   
> >> On Fri, Feb 8, 2019 at 1:51 PM Marcus Vinicius Mesquita 
> >>  wrote:
> >> Hi, Pablo
> >> 
> >> Indeed, with curl I was able to download the file. Thank you. 
> >> 
> >> In the wiki page about ConTeXt standalone 
> >> (https://wiki.contextgarden.net/ConTeXt_Standalone), the section about 
> >> single user installation suggests only the wget program, so I got stuck, 
> >> and perhaps we could avoid that for future users. 
> >> 
> >> Regards 
> >> 
> >> Marcus Vinicius 
> >>   
> >>> On Fri, Feb 8, 2019, 16:39 Pablo Rodriguez  wrote:
> >>> On 2/8/19 7:02 PM, Marcus Vinicius Mesquita wrote:  
> >>> > Hi, Taco
> >>> > 
> >>> > I tried again, but the server still answers with a 404 error.   
> >>> 
> >>> Hi Marcus,
> >>> 
> >>> I have just updated my ConTeXt Suite to its latest beta.
> >>> 
> >>> And the following command downloads the file (I don’t have wget 
> >>> installed):
> >>> 
> >>>   $ curl -O http://minimals.contextgarden.net/setup/first-setup.sh
> >>> 
> >>> Just in case it helps,
> >>> 
> >>> Pablo
> >>> -- 
> >>> http://www.ousia.tk
> >>> ___
> >>> If your question is of interest to others as well, please add an entry to 
> >>> the Wiki!
> >>> 
> >>> maillist : ntg-context@ntg.nl / 
> >>> http://www.ntg.nl/mailman/listinfo/ntg-context
> >>> webpage  : http://www.pragma-ade.nl / http://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
> >> ___
> >>   
> > ___
> > 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] Making ConTeXt stop on all or some errors

2019-02-07 Thread Alan Braslau
On Thu, 7 Feb 2019 19:03:35 +0100
"Jan U. Hasecke"  wrote:

> Am 07.02.19 um 17:46 schrieb Alan Braslau:
> > On Thu, 7 Feb 2019 07:27:57 +0100 (UTC)
> > "Jan U. Hasecke"  wrote:
> >   
> >> At least a missing file should make ConTeXt stop immediately.  
> > 
> > Why?
> > 
> > (I often process with missing figures, etc. Of course, not for a final
> > run, but adding showstoppers leads to overhead and longer processing
> > times. People first coming to ConTeXt look for such bells and whistles
> > as many other programs hold your hand in this way. This also explains
> > why these programs often lack in performance as well.)
> > 
> > Alan
> >   
> 
> You see placeholders in the pdf, if a figure is missing. The only info
> that the color profile is missing is in the log file. You don't see it.
> 
> juh

That was just an example.

You are free to write a macro to include color profile files that tests and 
puts a placeholder or stops processing. The point is that ConTeXt, by design, 
does not come with bells and whistles, and most mistakes are either silently 
ignored or flagged in the log file. Anyone making production products to be 
sent to the printer ought to look at the log files before sending.

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] Making ConTeXt stop on all or some errors

2019-02-07 Thread Alan Braslau
On Thu, 7 Feb 2019 07:27:57 +0100 (UTC)
"Jan U. Hasecke"  wrote:

> At least a missing file should make ConTeXt stop immediately.

Why?

(I often process with missing figures, etc. Of course, not for a final
run, but adding showstoppers leads to overhead and longer processing
times. People first coming to ConTeXt look for such bells and whistles
as many other programs hold your hand in this way. This also explains
why these programs often lack in performance as well.)

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] text flowing around images

2019-02-05 Thread Alan Braslau
p.101 of the TeXbook ...

On Tue, 5 Feb 2019 13:48:14 -0700
Alan Braslau  wrote:

> \parshape
> 
> On Tue, 5 Feb 2019 21:38:29 +0100
> Henning Hraban Ramm  wrote:
> 
> > No hints?
> > 
> > If it’s not possible, I must redo the whole layout in InDesign. I’d like to 
> > avoid that (footnotes!).
> > 
> > Best, Hraban
> > 
> > Am 2019-02-04 um 11:10 schrieb Henning Hraban Ramm :
> > 
> > > Ahoi,
> > > 
> > > in my current project I must include a bunch of illustrations in my 
> > > layout, and the text should flow around their irregular shapes (side 
> > > placement in single text column only).
> > > I got the pictures as TIFFs with alpha channel, but of course I can 
> > > change that.
> > > 
> > > I’m quite sure I remember that it was possible to let text flow around 
> > > shapes somehow, but I can’t find documentation or a sample.
> > > I’d be thankful for hints.
> > > 
> > > Greetlings, Hraban
> > > ---
> > > https://www.fiee.net
> > > http://wiki.contextgarden.net
> > > https://www.dreiviertelhaus.de
> > > GPG Key ID 1C9B22FD
> > > 
> > > ___
> > > If your question is of interest to others as well, please add an entry to 
> > > the Wiki!
> > > 
> > > maillist : ntg-context@ntg.nl / 
> > > http://www.ntg.nl/mailman/listinfo/ntg-context
> > > webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> > > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > > wiki : http://contextgarden.net
> > > ___
> > >   
> > 
> > ___
> > 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
> ___

___
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] text flowing around images

2019-02-05 Thread Alan Braslau
\parshape

On Tue, 5 Feb 2019 21:38:29 +0100
Henning Hraban Ramm  wrote:

> No hints?
> 
> If it’s not possible, I must redo the whole layout in InDesign. I’d like to 
> avoid that (footnotes!).
> 
> Best, Hraban
> 
> Am 2019-02-04 um 11:10 schrieb Henning Hraban Ramm :
> 
> > Ahoi,
> > 
> > in my current project I must include a bunch of illustrations in my layout, 
> > and the text should flow around their irregular shapes (side placement in 
> > single text column only).
> > I got the pictures as TIFFs with alpha channel, but of course I can change 
> > that.
> > 
> > I’m quite sure I remember that it was possible to let text flow around 
> > shapes somehow, but I can’t find documentation or a sample.
> > I’d be thankful for hints.
> > 
> > Greetlings, Hraban
> > ---
> > https://www.fiee.net
> > http://wiki.contextgarden.net
> > https://www.dreiviertelhaus.de
> > GPG Key ID 1C9B22FD
> > 
> > ___
> > If your question is of interest to others as well, please add an entry to 
> > the Wiki!
> > 
> > maillist : ntg-context@ntg.nl / 
> > http://www.ntg.nl/mailman/listinfo/ntg-context
> > webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > wiki : http://contextgarden.net
> > ___
> >   
> 
> ___
> 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] Show the letters of the alphabet with a loop (Metapost)

2019-02-03 Thread Alan Braslau
On Mon, 4 Feb 2019 09:19:26 +1300
Henri Menke  wrote:

> Use the infont operator.

Easier yet, the string can contain the font switch \bf:

draw textext("\bf "(i)) ;

___
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] getting ConTeXt results back to Lua (for typesetting solutions at end of document)

2019-01-31 Thread Alan Braslau
On Thu, 31 Jan 2019 22:10:40 -0500
Sanjoy Mahajan  wrote:

> Thank you, Matthias and Wolfgang, for the examples/solutions.

Why not use the list mechanism?

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] New logo proposal

2019-01-30 Thread Alan Braslau
On Tue, 29 Jan 2019 19:58:40 +0100
"Paul Schalck"  wrote:

> @Alan B: I've uploaded MetaPost files of the main version.

MP produced using pstoedit is of little interest; it is not the same as 
generating a graphic naively using MetaPost. Also, writing good MP code is a 
simple and fun exercise and displays the intentions behind any design. ;-)

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] New logo proposal

2019-01-29 Thread Alan Braslau
On Tue, 29 Jan 2019 11:32:40 +0100
Taco Hoekwater  wrote:

> It would be more coherent if the color of the squares and the color of 
> the letters trailed each other around the 7 options in the writing order 
> for the word “CONTEXT” (C = orange+blue, O = blue+green, N = green+red 
> etc.) But perhaps that is not what you wanted? 

AND, any logo should be produced using MetaPost...
___
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] \setbreakpoints[compound] inserts spurious hyphen

2019-01-28 Thread Alan Braslau
On Mon, 28 Jan 2019 22:05:07 +1300
Henri Menke  wrote:

> This was falsely
> reported as an issue with the btx system on TeX.SX.
> https://tex.stackexchange.com/q/472041

Indeed, the mailing list, not stackexchange, is the place to report problems 
encountered in using 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] definefontfamily use

2019-01-23 Thread Alan Braslau
On Wed, 23 Jan 2019 18:05:59 +0100
Wolfgang Schuster  wrote:

> Maybe you loaded the used the font before with \definefont which put a 
> entry in the database but normally \definefontfamily doesn’t use fonts 
> from a local directory.

No, never used \definefont; the behavior of \definefontfamily must have changed.
(I used this font *only* in one very specific case -in a logo- in one project - 
September-December 2015).

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] definefont

2019-01-23 Thread Alan Braslau
On Wed, 23 Jan 2019 18:03:51 +0100
Wolfgang Schuster  wrote:

> > Are not the default set of OpenType features activated by default?
> > (as the name might suggest...). Perhaps *no* features are selected, by 
> > default...
> > (a misnomer, therefore).  
> 
> default is just one of many predefined feature sets:
> 
> \definefontfeature
>    [default]
>    [always]
>    [liga=yes,
>     tlig=yes,
>     trep=yes]

Sure, and I guess that it is not activated by default by \definefont.
In this case, "standard" might be a better name (but I know that it is not 
going to change).

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] definefont (was: definefontfamily use)

2019-01-23 Thread Alan Braslau
On Wed, 23 Jan 2019 17:32:41 +0100
Henning Hraban Ramm  wrote:

> > What are the roles of "*default" and "sa 3" as these appear to be 
> > unnecessary?  
> 
> *default activates the default set of OpenType features.

Are not the default set of OpenType features activated by default?
(as the name might suggest...). Perhaps *no* features are selected, by 
default...
(a misnomer, therefore).

> sa 3 is the font size factor.

Of course, but how is it used?
In my example, I scale the text to a specific width, so I really don't care 
what font size is selected and would assume that the design optimal or 
"natural" size would be selected, 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] definefontfamily use

2019-01-22 Thread Alan Braslau
On Tue, 22 Jan 2019 19:39:05 +0100
Hans Hagen  wrote:

> one can do
> 
> \definefont[MyTitleFont][file:myfont.ttf*default sa 3]
> 
> \setuphead[chapter][style=\MyTitlefont]

Thank you

\definefont[MyFont][file:myfont.ttf]

\scale[width=.5\textwidth]{\MyFont My Font!}

can be used for example in a header or footer element, and this is minimal and 
simple.
What are the roles of "*default" and "sa 3" as these appear to be unnecessary?

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] definefontfamily use

2019-01-22 Thread Alan Braslau
Hello,

Previously, in order to make punctual use of a true-type font in a title for 
example, I did the following:

\definefontfamily [myfont] [serif] [myfont]

where myfont.ttf is located in the current project directory, and selecting the 
font was simply
 
{\switchtobodyfont[myfont]My Font!}



Using the present context, this yields the error

selectfont  > The requested font 'myfont' has no files for the 'tf' 
alternative, Latin Modern is used instead.

What has changed and what should be the proper use?
(I have tried setting explicitly [tf=file:myfont.ttf], which was only a guess.)

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 not rendered

2019-01-11 Thread Alan Braslau
On Fri, 11 Jan 2019 16:44:39 +0100
"Jan U. Hasecke"  wrote:

> Hi,
> 
> using the first example from mkiv-publications.pdf I don't get a
> rendered bibliography.
> 
> juh
> 

@misc{} is not a defined category using the "default" rendering style (which 
only recognizes @book and @article). See publ-imp-default.lua
___
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] final thoughts on experiments with lua

2019-01-09 Thread Alan Braslau
On Wed, 9 Jan 2019 20:57:21 +0100
"Thomas A. Schmitz"  wrote:

> 3. Lua's handling of tables is very efficient and fast. For analyzing my 
> Greek texts, I have to use huge tables for morphological parsing, with 
> more than 900,000 entries. Looking up words in these tables is around 3x 
> faster in Lua than in python!

I have found, in my limited use (and understanding) of lua for data analysis is 
that it is indeed VERY fast, and not only beats python without comparison, it 
also handles quite large data sets without choking.

It has become fashionable to use hardware GPUs to speed-up parallel calculation 
tasks, and this is now often done using libraries having python bindings. I 
wonder if python becomes the limiting factor in those applications?

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] Update problems

2019-01-07 Thread Alan Braslau
On Mon, 7 Jan 2019 18:57:41 +0100
Hans Hagen  wrote:

> looking at this pdf file it makes sense to save as pdf from 
> illustrator because now you basically use the illustrator edit file 
> (with a lot of crap in it) and also some versioning (i suspect that the 
> xref is also bad so then you depend on recovering capabilities of readers)

I have worked with a large number of Adobe Illustrator files and have found 
that one *must* save them as PDFs in order for them to be reliably used 
anywhere outside of the Adobe world. One need not use Illustrator, for opening 
the .ai file in Adobe Reader and then saving it as a .pdf gets rid of all of 
the editing crap that is embedded.

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   >