Re: [NTG-context] Inline math with \int and \sum exhibits nonstandard behaviour

2019-05-16 Thread Eric Scmidt
Since it's purely a font issue I did some research on fonts. I found out that \enablemode[lmmath] does the trick (https://www.contextgarden.net/Math_fonts is useful resource). Oh well, everything is fine again and I can keep contexing stuff :) Thank you!

 

-Eric
___
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] Which math font for LinLibertine family?

2019-05-16 Thread Marcin Borkowski

On 2019-05-15, at 08:40, Tomas Hala  wrote:

> On the file type-imp-libertine.mkiv there is a (disabled) line joining math
> from times family. Is the times math the best for LinLibertine or
> would you recommend me something else (from the design point of view)?

https://tex.stackexchange.com/q/47139/5626

Hth,

-- 
Marcin Borkowski
http://mbork.pl
___
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] \xmlfirst lookup over whole document

2019-05-16 Thread Denis Maier
Hi,

I am trying to use \xmlfirst to find a reference that is not in the current
node. In the manual there is the exmple:
{\xmlfirst
  {example-3-1}
  {div[@class='footnotes']/ol/li[@id='\xmlrefatt{#1}{href}']}}

This is quite close to what I need, but I am not processing a buffer. How
can I use this lookup mechanism to look over the current file/all nodes?

Best,
Denis
___
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] xmldoif, \startSECTION ... \stopSECTION and \setuphead

2019-05-16 Thread Pablo Rodriguez
On 5/16/19 8:45 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 16.05.2019 um 18:43:
>> [...]
>> After checking i-context, the options for the second pair of brackets are:
>>
>>KEY = VALUE
>>
>> Well, I think this is the standard case. Aren’t values inherited from
>> \setuphead? What would be the valid keys for this case?
>
> The second argument is for userdata, i.e. you can use your own keys to
> store information for a section (e.g. the author or a subtitle).

Many thanks for your reply, Wolfgang.

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
___


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

2019-05-16 Thread Dmitry Starostin
In the publ-imp-apa.mkvi (is it already VI?) I found the key line which I
would like to modify:

\startsetups btx:apa:list:book
\texdefinition{btx:apa:authoryear}
\texdefinition{btx:apa:title-if-not-placed}
...
\stopsetups

This, as I understand, determines the order in which the items are listed.
I need to: 1. place the year in the end 2. remove parentheses.

Do I start with btx:apa:authoryear and redefine it?

Do I use \texdefinition{btx:apa:suffixedyear} separately?

and:

in the following, where is the parenthesis?

\starttexdefinition unexpanded btx:apa:suffixedyear
\btxdoifelse {year} {
\btxflush{year}
\btxflushsuffix
\btxdoif {month} { % month and day optional in publ-imp-apa.lua
\btxcomma
\btxflush{month}
\btxdoif {day} {
\btxspace
\btxflush{day}
}
}
}
___
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] xmldoif, \startSECTION ... \stopSECTION and \setuphead

2019-05-16 Thread Wolfgang Schuster

Pablo Rodriguez schrieb am 16.05.2019 um 18:43:

Dear list,

I have the following sample:

 \setuphead[chapter]
 [beforesection=\TeX,
  aftersection=\TeX]
 \starttext
 \startchapter[title=Chapter,
 beforesection=\ConTeXt,
 aftersection=\ConTeXt]
 This is my chapter.
 \stopchapter
 \stoptext

After checking i-context, the options for the second pair of brackets are:

   KEY = VALUE

Well, I think this is the standard case. Aren’t values inherited from
\setuphead? What would be the valid keys for this case?
The second argument is for userdata, i.e. you can use your own keys to 
store information for a section (e.g. the author or a subtitle).


Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] xmldoif, \startSECTION ... \stopSECTION and \setuphead

2019-05-16 Thread Pablo Rodriguez
On 5/16/19 6:43 PM, Pablo Rodriguez wrote:
> [...]
> What would be my approach to deal with "\xmldoif{#1}{.[@id='topic' and
> contains(@class,'hidden')]}" in beforesection?
>
> I realize that "\definehead[specialchapter][chapter]" would be a
> workaround, but I would like to find a more proper solution.

It would be a workaround for the sample I submitted, but not for "\xmldoif".

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
___


[NTG-context] xmldoif, \startSECTION ... \stopSECTION and \setuphead

2019-05-16 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\setuphead[chapter]
[beforesection=\TeX,
 aftersection=\TeX]
\starttext
\startchapter[title=Chapter,
beforesection=\ConTeXt,
aftersection=\ConTeXt]
This is my chapter.
\stopchapter
\stoptext

After checking i-context, the options for the second pair of brackets are:

  KEY = VALUE

Well, I think this is the standard case. Aren’t values inherited from
\setuphead? What would be the valid keys for this case?

I need to use \xmldoif in beforesection and aftersection. As far as I
can see, it doesn’t work inside \setuphead.

What would be my approach to deal with "\xmldoif{#1}{.[@id='topic' and
contains(@class,'hidden')]}" in beforesection?

I realize that "\definehead[specialchapter][chapter]" would be a
workaround, but I would like to find a more proper solution.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://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 nyssus

On 16/05/2019 16:02, Jan U. Hasecke wrote:
> Am 16.05.19 um 16:12 schrieb nyssus:
>> Honestly, some way to use CSL files to style bibliography would be ideal
>> here, but that doesn't seem to currently exist
> Have a look at Pablos way to go from pandoc via xhtml to context:
>
>
That's good if you're trying to convert documents from Markdown to
ConTeXt, but not so good if you're used to writing documents in ConTeXt
(or LaTeX for that matter) directly, as it's rather cumbersome to edit
individual bibliographic entries outputted by pandoc compared to
citation commands.

___
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 Denis Maier
Very interesting project. I have a workflow where I produce ConTeXt sources
from markdown via pandoc. But using XML could be even better. Nevertheless,
this still leaves us with the problem that CSL support with pandoc-citeproc
has a few glitches (wrong disambiguation; ibids can be ambiguous, some
features aren't implemented at all).

Am Do., 16. Mai 2019 um 17:02 Uhr schrieb Jan U. Hasecke <
juh+ntg-cont...@mailbox.org>:

> Am 16.05.19 um 16:12 schrieb nyssus:
> > Honestly, some way to use CSL files to style bibliography would be ideal
> > here, but that doesn't seem to currently exist
>
> Have a look at Pablos way to go from pandoc via xhtml to context:
>
> https://github.com/ousia/from-pandoc-to-context
>
> Or a slightly improved fork:
> https://github.com/aksdb/pandoc-xhtml
>
> I use this to write books with Markdown and produce the outputs with
> pandoc to epub and pdf.
>
> With Pandoc you can use CSL files and include the bibliography via XML
> into ConTeXt.
>
> HTH
> juh
>
> ___
> 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] Bibliography APS Style without unpublished

2019-05-16 Thread Jan U. Hasecke
Am 16.05.19 um 16:12 schrieb nyssus:
> Honestly, some way to use CSL files to style bibliography would be ideal
> here, but that doesn't seem to currently exist

Have a look at Pablos way to go from pandoc via xhtml to context:

https://github.com/ousia/from-pandoc-to-context

Or a slightly improved fork:
https://github.com/aksdb/pandoc-xhtml

I use this to write books with Markdown and produce the outputs with
pandoc to epub and pdf.

With Pandoc you can use CSL files and include the bibliography via XML
into ConTeXt.

HTH
juh
___
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 Denis Maier
Well, currently not. But citeproc-rs, a CSL implementation written in Rust
is in the making. I don't know if there will be any progress in the near
future, but it should be possible to use this via lua bindings.

Am Do., 16. Mai 2019 um 16:12 Uhr schrieb nyssus <
rocksolidbrassba...@gmail.com>:

>
> On 16/05/2019 11:48, Denis Maier wrote:
> > This is more tricky. I do very much like what ConTeXt has to offer for
> > typesetting finished works, but I currently would not use it for writing
> a
> > larger work in the Humanities. For smaller pieces I would probably write
> in
> > Markdown, use pandoc to produce a context source file, and pandoc will me
> > automatic citations via pandoc-citeproc (yet with a few glitches). For a
> > longer work I currently don't have an alternative to biblatex. And I
> guess
> > that is the point: Those with rather complex requirements for citations
> > will either do them manually or use biblatex for this so it's not so easy
> > to say if "there is a need". Having said that, I would really like being
> > able to use ConTeXt here as well. So having a author-title style for the
> > footnotes and the bibliographies would be more than welcome.
> >
> Honestly, some way to use CSL files to style bibliography would be ideal
> here, but that doesn't seem to currently exist
>
___
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 nyssus

On 16/05/2019 11:48, Denis Maier wrote:
> This is more tricky. I do very much like what ConTeXt has to offer for
> typesetting finished works, but I currently would not use it for writing a
> larger work in the Humanities. For smaller pieces I would probably write in
> Markdown, use pandoc to produce a context source file, and pandoc will me
> automatic citations via pandoc-citeproc (yet with a few glitches). For a
> longer work I currently don't have an alternative to biblatex. And I guess
> that is the point: Those with rather complex requirements for citations
> will either do them manually or use biblatex for this so it's not so easy
> to say if "there is a need". Having said that, I would really like being
> able to use ConTeXt here as well. So having a author-title style for the
> footnotes and the bibliographies would be more than welcome.
>
Honestly, some way to use CSL files to style bibliography would be ideal
here, but that doesn't seem to currently exist
___
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] Normal tables error: Dimension too large. Context version: 2019.04.29 08:52

2019-05-16 Thread Felipe de Jesús Molina Bravo
Ok, thanks Otaredsee you!

El jue., 16 may. 2019 a las 1:56, Otared Kavian ()
escribió:

>
>
> > On 15 May 2019, at 21:28, Felipe de Jesús Molina Bravo <
> fjmolinabr...@gmail.com> wrote:
> > OFF-TOPIC:
> > I have a problem with the mailing list; the posts that I start I do not
> receive them as well as the answers to these posts...why?
>
> This is a Gmail « feature »… but your message is actually sent to the list
> (as you may have observed) and in the subsequent thread your message
> appears as expected.
>
> 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] Strange behavior concerning pdf-output of externalfigures

2019-05-16 Thread Hans Hagen

On 5/16/2019 12:21 PM, Rudolf Bahr wrote:

The problem with artefacts in .png images is still unsolved for me.
I can circumvent it by using .jpg or .tiff images instead of .png images
as long as no transparent areas in the images are needed. As far as I know
.jpg and .tiff formats cannot handle transparancy, do they?

Now in .log files messages like
"luatex warning  > pdfe: invalid 11 0 R object at offset 223611"
can be seen. Please, what do they mean?
Does that come from an pdf generated by image magick>? If so, the 
problem is there ... the last years I've seen lots of converted files 
with bogus pdf objects. (Kind of harmless but still.)


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
___


Re: [NTG-context] XML roundtripping

2019-05-16 Thread Denis Maier
Ok. Have tried it. It seems to work on line 2.

Where can I find documentation about these ctx files?

Denis Maier  schrieb am Do., 16. Mai 2019, 12:27:

> 
>>
>
> Just after the xml declaration? Like on line 2?
>
>
>>
>> with "somefile.ctx" being:
>>
>> 
>>
>> 
>>  My very special style
>>  
>>  
>>  
>>  
>>  
>>  whatever.tex
>>  
>>  
>> 
>>
>
___
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 Denis Maier
I am not the OP, but I'm very much interested in how referencing works with
ConTeXt so let me add to this.


> You can write your own style, or your own modified style.


Is the publications manual still up to date? Is there more recent
information available? How would I start writing my own style?

Concerning your two requirements for new styles:

(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.

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


This is more tricky. I do very much like what ConTeXt has to offer for
typesetting finished works, but I currently would not use it for writing a
larger work in the Humanities. For smaller pieces I would probably write in
Markdown, use pandoc to produce a context source file, and pandoc will me
automatic citations via pandoc-citeproc (yet with a few glitches). For a
longer work I currently don't have an alternative to biblatex. And I guess
that is the point: Those with rather complex requirements for citations
will either do them manually or use biblatex for this so it's not so easy
to say if "there is a need". Having said that, I would really like being
able to use ConTeXt here as well. So having a author-title style for the
footnotes and the bibliographies would be more than welcome.
___
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-05-16 Thread Rudolf Bahr
The problem with artefacts in .png images is still unsolved for me.
I can circumvent it by using .jpg or .tiff images instead of .png images
as long as no transparent areas in the images are needed. As far as I know
.jpg and .tiff formats cannot handle transparancy, do they?

Now in .log files messages like
"luatex warning  > pdfe: invalid 11 0 R object at offset 223611"
can be seen. Please, what do they mean?

Rudolf

PS.:
LinuxMint 64bit

This is LuaMetaTeX, Version 2.00.0 
open source > level 1, order 1, name 'cont-yes.mkiv'
system  > 
system  > ConTeXt  ver: 2019.05.12 19:40 MKIV beta  fmt: 2019.5.14  
int: english/english

___
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] APA

2019-05-16 Thread Dmitry Starostin
I am guessing the parameter for square brackets:

btx:apa:delim:brackets?
btx:apa:brackets?
___
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] Styles

2019-05-16 Thread Henri Menke
On 5/16/19 9:16 PM, Dmitry Starostin wrote:
> 1. If I need square brackets in apa instead of parentheses, is there an
> easy switch?
For example

\setupbtx
  [apa:cite:authornum]
  [left=,right=]

> 
> 2. There was a suggestion to write one's own style. But where can one look
> in the standalone ConTeXt distribution for the aps or apa style file to
> modify it? At least, what is the file extension?

tex/texmf-context/tex/context/base/mkiv/publ-imp-apa.lua
tex/texmf-context/tex/context/base/mkiv/publ-imp-apa.mkvi

> 
> 
> ___
> 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
___


[NTG-context] Styles

2019-05-16 Thread Dmitry Starostin
1. If I need square brackets in apa instead of parentheses, is there an
easy switch?

2. There was a suggestion to write one's own style. But where can one look
in the standalone ConTeXt distribution for the aps or apa style file to
modify it? At least, what is the file extension?
___
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] fatal error with latest beta

2019-05-16 Thread Hans Hagen

On 5/15/2019 11:48 PM, Alan Bowen wrote:

The following:
\setupdirections[bidi=global]
\definefallbackfamily[mainface][serif][SBL 
Hebrew][range={0591-05F4,FB1D-FB4F}]

\definefontfamily[mainface][serif][TeX Gyre Termes]
\setupbodyfont[mainface, 10pt]
\starttext
   \setupalign[rtl]{
ﬡﬡﬢ
}
\setupalign[ltr] 
\stoptext
  sets as it should with ConTeXt  ver: 2018.09.13,  LuaTeX, Version 
1.09.0 (and several betas later).


But with ConTeXt  ver: 2019.05.12, LuaTeX, Version 1.10.1
it complains with:
lua error       > lua error on line 8 in file ...test-03.tex:

...eXt/tex/texmf-context/tex/context/base/mkiv/font-oup.lua:1317: bad 
argument #1 to 'concat' (table expected, got number)


  1     \setupdirections[bidi=global]
  2
  3     \definefallbackfamily[mainface][serif][SBL 
Hebrew][range={0591-05F4,FB1D-FB4F}]

  4
  5     \definefontfamily[mainface][serif][TeX Gyre Termes]
  6
  7     \setupbodyfont[mainface, 10pt]
  8 >>
  9     \starttext
10        \setupalign[rtl]{
11     ﬡﬡﬢ
12     }
13     \setupalign[ltr] 
14
15     \stoptext
16

mtx-context     | fatal error: return code: 256

Has something changed in how such l2r fonts should be invoked?
No, more a side effect of some optimization (needed for certain kind of 
somewhat weird fonts).


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
___


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

2019-05-16 Thread Jan U. Hasecke
Hi Alan,
thanks a lot for these hints.

Am 16.05.19 um 02:05 schrieb 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.

I browsed through the mailing list to see that bibliographies are not
that easy. ;-)

I think I found a solution by providing a "year" in my database. That's
good enough for me.

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?

Greetings
juh
___
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] XML roundtripping

2019-05-16 Thread Hans Hagen

On 5/15/2019 10:31 PM, Denis Maier wrote:



Hans Hagen mailto:j.ha...@xs4all.nl>> schrieb am 
Mi., 15. Mai 2019, 18:32:


On 5/15/2019 4:35 PM, Denis Maier wrote:
 > Our workflow is not settled yet; we're still discussing options. All
 > depends upon what is possible ...
 >
 > That being said, for the purpose of displaying the articles
online we'll
 > need every article in a separate XML file. The question is if and
how we
 > will produce a PDF version containing a whole volume (we'll probably
 > need one PDF for the whole volume and also PDFs for each article).
 >
 > One option would be:
 > - merge the articles into a single XML,
 > - typeset from there
 > - split the PDF
 > (Hence my question here,
 > https://mailman.ntg.nl/pipermail/ntg-context/2019/095011.html).

you can create a master xml file with includes and process the lots in
one go ... this is quite convenient when you assemble for instance
books
from chapters that are split into sections ... you can make a xml file
per chapter that includes the sections and then a book file that loads
them all ... files can have a processing instruction telling what styel
to load and you can run individual files or assemblies ... all the
stuff
needed to do that is there (and probably also documented someplace)


Ok. Sounds good. How can I call the style in the xml files? I know that 
I can process a file with \xmlprocessfile or call it from the command 
line with --env=, and in a normal tex-file I could obviously use 
\environment for this,  but how does this work with xml?





with "somefile.ctx" being:




My very special style





whatever.tex








anyway, you can always save '\lastpage' during a run ... or you can
have
some shared lua file with chapters/pagenumbers that gets updated by the
current run

all this is workflow dependent but all can be done without too much
hassle

(fwiw: we have some cases where for one projects hundreds of xml files
get merged runtime and then processed ... the overhead is
neglectable to
the run)

 > Another option could be:
 > - Typeset each article individually.
 > - Get the last page number => in the next article, set the first
page
 > number to this + 1
 > (So, we do not necessarily need to write the page numbers back to
the
 > XML, but we'll somehow need to pass the page number to the next
article
 > in the chain.)
 >
 >
 > Am Mi., 15. Mai 2019 um 14:46 Uhr schrieb Hans Hagen
mailto:j.ha...@xs4all.nl>
 > >>:
 >
 >     On 5/15/2019 12:57 PM, Denis Maier wrote:
 >      > Hmm, getting the page number back from the tuc file sound
 >     feasible. I'll
 >      > have to look into this.
 >      >
 >      > But how would I write the information back to the XML? Is this
 >     explained
 >      > somewhere?
 >     all depends on the workflow ... why does it need to be
written back?
 >
 >
 >     -
 >                                                 Hans Hagen |
PRAGMA ADE
 >                     Ridderstraat 27 | 8061 GH Hasselt | The
Netherlands
 >              tel: 038 477 53 69 | www.pragma-ade.nl

 >      | www.pragma-pod.nl

 >     
 >     -
 >


-- 


-
                                            Hans Hagen | PRAGMA ADE
                Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
         tel: 038 477 53 69 | www.pragma-ade.nl
 | www.pragma-pod.nl

-




--

-
  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

[NTG-context] Bug or not?

2019-05-16 Thread Hans van der Meer
There is an interaction in the placement of float captions when their width is set and background coloring switched.Minimal example included here, the jpeg is arbitrary of course. Output shown.Setting the width of the caption effectively shifts the caption to the left.See the change between the last two floats where [background=] changes the game.I wonder, is this intended behaviour? Or should one expect something different?\starttextTesting figure captions with \tex{setupframed[background="">\setupframed[background="">\placefigure[][]{\tex{setupframed[background="">Add \tex{setupcaption[align=middle,width=\makeupwidth]} as setting here:\par\setupcaption[align=middle,width=\makeupwidth]\setupframed[background="">\placefigure[][]{\type{\setupcaption[align=middle,width=\makeupwidth]}}{\externalfigure[test.jpg]}\setupframed[background="">\placefigure[][]{\tex{setupframed[background="">\stoptext
dr. Hans van der Meer



captionshift.pdf
Description: Adobe PDF document
___
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] Normal tables error: Dimension too large. Context version: 2019.04.29 08:52

2019-05-16 Thread Otared Kavian


> On 15 May 2019, at 21:28, Felipe de Jesús Molina Bravo 
>  wrote:
> OFF-TOPIC:
> I have a problem with the mailing list; the posts that I start I do not 
> receive them as well as the answers to these posts...why?

This is a Gmail « feature »… but your message is actually sent to the list (as 
you may have observed) and in the subsequent thread your message appears as 
expected.

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
___


Re: [NTG-context] Inline math with \int and \sum exhibits nonstandard behaviour

2019-05-16 Thread Henri Menke
On 16/05/19 7:46 AM, Eric Scmidt wrote:
> Thank for your efforts to help me.  This time I used the exact code snippet 
> you 
> wrote, but the results for inline math is still not what I would like to have 
> since I do see a clear difference in the limits placement. Please see this 
> image 
> where I have tried to make more clear what I really want to achieve and what 
> the 
> code gives me:  https://i.imgur.com/AEfHxBh.png
> It might be a font issue, since examining the context and pdflatex output 
> files,  I see differences in fonts, alghough the actual glyphs look pretty 
> much 
> the same. I don't really know.

Yes, it is a different font.  If you want to use the same font in LaTeX as in
ConTeXt, you have to load the unicode-math package and use LuaLaTeX.

\documentclass{article}
\usepackage{unicode-math}
\begin{document}
$\sum_{k=1}^{n} a_k$
\[
\sum\nolimits_{k=1}^{n} a_k
\]
\end{document}

Cheers, Henri


> -Eric
> 
> 
> ___
> 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] Inline math with \int and \sum exhibits nonstandard behaviour

2019-05-16 Thread Eric Scmidt
Thank for your efforts to help me.  This time I used the exact code snippet you wrote, but the results for inline math is still not what I would like to have since I do see a clear difference in the limits placement. Please see this image where I have tried to make more clear what I really want to achieve and what the code gives me:  https://i.imgur.com/AEfHxBh.png

 

It might be a font issue, since examining the context and pdflatex output files,  I see differences in fonts, alghough the actual glyphs look pretty much the same. I don't really know.

 

-Eric
___
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
___