Re: [NTG-context] Wrong Lua package loaded by 'require'

2018-02-08 Thread Hans Hagen

On 2/7/2018 11:51 PM, Przemek Wesolek wrote:

Hi,

I have problems using PGF graph drawing with ConTeXt. The problem is
described on https://tex.stackexchange.com/questions/414102/

It all boils down to Lua trying to load wrong file. When

   require 'pgf.gd.control'

is called, ConTeXt resolvers come into play and 'lua variable format'
locates Control.lua -- note the uppercase letter here -- which cannot be
loaded (on Linux) and 'require' fails:


having two files with the same name looks like an error in pgf to me

Hans


sandbox > requiring: pgf.gd.control
resolvers   > libraries > locating, level '1', method 'already loaded', 
name 'pgf.gd.control'
resolvers   > libraries > locating, level '1', method 'preload table', name 
'pgf.gd.control'
resolvers   > libraries > locating, level '1', method 'lua variable 
format', name 'pgf.gd.control'
resolvers   > libraries > lua format, checking 33 paths
resolvers   > libraries > lua format, identifying 'pgf/gd/control.lua' 
using format 'tex'
resolvers   > libraries > lua format, 'pgf/gd/control.lua' found on 
'/opt/texlive/2017/texmf-dist/tex/generic/pgf/graphdrawing/lua/pgf/gd/Control.lua'
resolvers   > libraries > locating, level '1', method 'lib variable 
format', name 'pgf.gd.control'


I suspect some part of the system (ConTeXt? kpsewhich? TeXLive?) messes
up and the resolver instead of pgf/gd/control.lua hits
pgf/gd/force/Control.lua. But I have plainly no experience in where to
look...

One more place, where I found some traces: in
texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/trees/929f6dbc83f6d3b65
dab91f1efa4aacb.lua file I have (in ["content"]["files"])


["control.lua"]={ "tex/generic/pgf/graphdrawing/lua/pgf/gd", 
"tex/generic/pgf/graphdrawing/lua/pgf/gd/force" }


as well as (in ["content"]["remap"])


["control.lua"]="Control.lua"


Clearly not OK.
context ignores cases in filenames and in fact in tds there cannot be 
two files with the same name ... keep in mind that windows is case 
insensitive ... if there are files with the same name then they normally 
are in (sub)paths that are identified by some distinctive category 
(variable)


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
___

[NTG-context] Wrong Lua package loaded by 'require'

2018-02-07 Thread Przemek Wesolek
Hi,

I have problems using PGF graph drawing with ConTeXt. The problem is
described on https://tex.stackexchange.com/questions/414102/

It all boils down to Lua trying to load wrong file. When

  require 'pgf.gd.control'

is called, ConTeXt resolvers come into play and 'lua variable format'
locates Control.lua -- note the uppercase letter here -- which cannot be
loaded (on Linux) and 'require' fails:

> sandbox > requiring: pgf.gd.control
> resolvers   > libraries > locating, level '1', method 'already loaded', 
> name 'pgf.gd.control'
> resolvers   > libraries > locating, level '1', method 'preload table', 
> name 'pgf.gd.control'
> resolvers   > libraries > locating, level '1', method 'lua variable 
> format', name 'pgf.gd.control'
> resolvers   > libraries > lua format, checking 33 paths
> resolvers   > libraries > lua format, identifying 'pgf/gd/control.lua' 
> using format 'tex'
> resolvers   > libraries > lua format, 'pgf/gd/control.lua' found on 
> '/opt/texlive/2017/texmf-dist/tex/generic/pgf/graphdrawing/lua/pgf/gd/Control.lua'
> resolvers   > libraries > locating, level '1', method 'lib variable 
> format', name 'pgf.gd.control'

I suspect some part of the system (ConTeXt? kpsewhich? TeXLive?) messes
up and the resolver instead of pgf/gd/control.lua hits
pgf/gd/force/Control.lua. But I have plainly no experience in where to
look...

One more place, where I found some traces: in
texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/trees/929f6dbc83f6d3b65
dab91f1efa4aacb.lua file I have (in ["content"]["files"])

> ["control.lua"]={ "tex/generic/pgf/graphdrawing/lua/pgf/gd", 
> "tex/generic/pgf/graphdrawing/lua/pgf/gd/force" }

as well as (in ["content"]["remap"])

> ["control.lua"]="Control.lua"

Clearly not OK.

My system is current TeXLive 2017. LuaTeX 1.0.4. ConTeXt 1.01. Ubuntu
14.04 and 16.04.

Regards,
Przemek

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] notes in the margin

2018-01-23 Thread Henning Hraban Ramm
These issues are still open, I attached my current test file.

1)
There’s always space/indent in front of the note text, I’d like to get rid of 
that.
Notes should look like:

texttext text
texttext12 text   12
text texttext Some remarks

But at the moment they’re like:

texttext text
texttext12 text   12
text texttext __Some remarks


2)
If there is a possibility to influence the page breaking algorithm for notes, 
I’d like to know about that.
Stacking works nicely most of the time, but I have a few pages where the notes 
don’t fit.
The only option I know of is \adaptlayout to move lines of the main text. 
Something similar for note lines would be nice.

Another possibility would be to have some (very long) notes as footnotes 
instead of margin notes.
Is it possible to switch placement but keep the numbering? Maybe via different 
note setups and manually setting the counter?


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

Am 2017-10-24 um 09:54 schrieb Henning Hraban Ramm <te...@fiee.net>:

> Am 2017-04-09 um 21:46 schrieb Wolfgang Schuster 
> <schuster.wolfg...@gmail.com>:
> 
>>> Henning Hraban Ramm 30. März 2017 um 10:30
>>> While I’m still waiting for answers to my other questions, I got some more:
>>> 
>>> In my layout, left margin width is zero, but \inmargin always uses left 
>>> margin.
>>> I didn’t find a setup to change that – should 
>>> \setupmargindata[location=right] do the trick? (it doesn’t, also not with 
>>> left)
>>> 
>>> Further I’d like to place "foot"notes into the margin.
>>> It works like this:
>>> 
>>> \setupnote[footnote][location=none]
>>> \setupnotation[footnote][
>>> align=flushleft,
>>> location=serried,
>>> width=broad,
>>> ]
>>> \setuptexttexts[margin][]
>>> [{\framed[%
>>> align=right,
>>> frame=off,
>>> height=\textheight,
>>> width=\rightmarginwidth 
>>> ]{\placenotes[footnote]}}]
>>> 
>>> But I’d like the notes to start in the line of the marker, if there’s space.
>>> How can I achieve that?
>> The only way I found to achieve this is by flushing the notes at the end of 
>> each footnote
>> entry which can be done with the next key. The positioning of each margin 
>> text is tricky
>> because \placenotes adds skips at the begin of the block (which can be 
>> reduced with
>> \placelocalnotes) but a inline version of the command (e.g. 
>> \placeinlinenotes) which
>> flushes the notes without vertical skips and a rule at the begin would help.
>> 
>> \define\PlaceFootnote
>>  {\inrightmargin{\vtop{\placelocalnotes[footnote][before=,after=]}}}
>> 
>> \setupnote
>>  [footnote]
>>  [location=text,
>>   bodyfont=,
>>   next=\PlaceFootnote]
>> 
>> \setupnotation
>>  [footnote]
>>  [alternative=serried]
>> 
>> \setuplayout
>>  [width=12cm,
>>   rightmargindistance=0.5cm,
>>   rightmargin=5cm]
>> 
>> \starttext
>> \dorecurse{6}{\input ward\expanded{\footnote{This is a footnote 
>> \recurselevel}} }
>> \stoptext
> 
> Oh, seems like I didn’t answer to that, sorry.
> 
> Thank you very much, this solves my problem for the most part.
> 
> Coming back to this now, since I completed my previous book project (with the 
> register issues) and attacking the next one (that needs those numbered 
> marginal notes).
> 
> It would be nice if we had a solution how those notes won’t collide; is there 
> some trick how I can shift a note up or down manually?
> 
> Additionally, since my note number gets its own line, I’d like to get rid of 
> the indenting, but couldn’t find the right parameter.
> This setup adds to Wolfgang’s:
> 
> \def\FNo#1{#1\crlf}
> 
> \setupnotation
>  [footnote]
>  [alternative=serried,
>  width=broad,
>  align=flushleft,
>  numbercommand=\FNo]
> 
> 
> Greetlings, Hraban
> ---
> http://www.fiee.net
> http://wiki.contextgarden.net
> GPG Key ID 1C9B22FD



sidenotetest.tex
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] type and typing comments for TeX and Lua

2017-12-26 Thread SteamedFish
You can try vim module.

It supports all the formats that vim is able to support and it is a builtin 
module.




\usemodule[t-vim]

\definevimtyping [TEX] [syntax=context]
\definevimtyping [XML] [syntax=xml]
\definevimtyping [LUA] [syntax=lua]

\starttext
\startTEXpage[offset=2em]

a \TEX\ inline comment: \inlineTEX{ag%befe}

\Lua\ inline comment: \inlineLUA{agb --efe}

\startTEX
This is text. % a comment, not \comment
\stopTEX

\startXML
This is text.
\stopXML

\startLUA
if code=="code" then --this is a comment
\stopLUA
\stopTEXpage
\stoptext



> On 22 Dec 2017, at 4:16 AM, Pablo Rodriguez <oi...@gmx.es> wrote:
> 
> On 12/21/2017 05:04 PM, Christoph Reller wrote:
>> Dear Pablo,
>> 
>> At least for XML you could use my module highlight-xml:
>> 
>> \usemodule[highlight-xml]
>> \definetype[xml][option=xml]
>> [...]
>> Note that even partial XML is highlighted correctly.
> Dear Christoph,
> 
> many thanks for your reply.
> 
> Your module is really great fine. It supports both \setuptype and
> \setuptyping options.
> 
> It is really a pity that it lacks TeX, since I’m focused on ConTeXt yet
> (after all, it would be a Spanish introduction to ConTeXt ;-)). XML will
> come later.
> 
> I’m afraid that XML comments are colored the same way with your module
> and with standard ConTeXt.
> 
> Comment marks in are colored as standard tags, I’m afraid. I mean,
> "" are colored in blue as "".
> 
> To show a comment as a whole, setting up both comment text and marks in
> a single and unique color is required.
> 
> This is why I thought that SnippetCommentMark and SnippetCommentText
> would be a fine way to typeset full comments.
> 
> Sorry for insisting. It isn’t perfectionism. My friends and family
> members aren’t computer scientists. I have to explain what a comment is
> from the very beginning. If colors are misleading, they are lost.
> 
> This is why I have to solve this before resuming text composition.
> 
> It would be great that you also offered a highlight-tex (with
> SnippetCommentText and SnippetCommentMark). Or to ease the module
> loading, it would be useful to have a context-highlight (or similar name).
> 
> If your implementation could be latter added (if Hans agrees) to the
> ConTeXt core.
> 
> 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
> ___

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] Module for Markdown: any volunteer to make a ConTeXt interface?

2017-12-24 Thread Alan Braslau
On Sun, 24 Dec 2017 16:01:27 +0100
Gour <g...@atmarama.com> wrote:

> On Sat, 23 Dec 2017 15:04:35 -0700
> Alan Braslau <braslau.l...@comcast.net> wrote:
> 
> > This analysis is not quite correct.  
> 
> Thank you for your input.
> 
> > I use the "bibliography" subsystem as a general database tool,
> > defining glossaries, tables of crystallographic symmetries, catalogs
> > of diagrams, etc., so it is quite a bit more flexible than just to
> > create bibliographies.  
> 
> Does it mean there is no need for tools like JabRef, Zotero etc. if
> I'm staying within the scope of ConTeXt?

JabRef, Zotero are tools useful to manage bibliographic datasets. Their
use is not necessary, yet may be quite helpful, and even can be
customized at will, if desired.

Rik has pointed out a few bugs in the APA (author-year) formatting that
will be fixed as they get clearly reported. Even though I started out
with the APS (numbered) specification, I have been using APA more
thoroughly. Note that APS is purposely very compact (and limited).
Thomas seems to use the author-num scheme principally, and this appears
to be about the extent to which the ConTeXt system has been tested.

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] Module for Markdown: any volunteer to make a ConTeXt interface?

2017-12-23 Thread Alan Braslau
This analysis is not quite correct.

The mkiv bibliography system is not rigid at all, in fact it is
eminently configurable. However, the APA specification that is
programmed is rigidly adhered to, and it is up to the responsibility of
the user to configure any desired deviations.

The outstanding bugs that Rik refers to are either obscure special
cases, misuses of bibliography fields, or simply a special
configuration request. There may be some outstanding bugs in a system
that is still not fully tested under all conditions.

BibLaTeX introduces many incompatible and curiously defined fields. A
ConTeXt specification that uses them can be written, but I am not going
to do this as I see no point. BibLaTeX is a good example not to follow.

There are "plans" to write other humanities-focused standards, but
there needs to be some motivation and more importantly, a clearly
written standard.

I use the "bibliography" subsystem as a general database tool, defining
glossaries, tables of crystallographic symmetries, catalogs of
diagrams, etc., so it is quite a bit more flexible than just to create
bibliographies.

Alan

On Sat, 23 Dec 2017 16:44:32 -0500
Rik Kabel <cont...@rik.users.panix.com> wrote:

> On 2017-12-05 13:20, Gour wrote:
> > On Sun, 7 May 2017 23:33:30 +0200
> > r.erm...@hccnet.nl wrote:
> >  
> >> I recently finished a book project in multimarkdown, which I
> >> converted to LaTeX (I could not use ConTeXt because of its limited
> >> bibliographical functions in comparison to BibLatex).  
> > Just wonder, since I plan to embrace ConTeXt for a larger
> > educational-based project with the need to use bibliographical
> > functions, what did you prevent you to use it?
> >
> > Let me say that I'm fully familiar with neither BibLatex's
> > capabilities nor with the similar things in MkIV...
> >
> > Sincerely,
> > Gour
> >  
> The utility of the new bibliography subsystem is a function of your 
> ability to work within the rigid structure of the APA reference 
> standards. Even with that, there are outstanding bugs that have not
> been addressed for many months.
> 
> If your publisher requires adherence to some other bibliographical 
> standards, or even variations of the APA standards, the new subsystem 
> may not suffice, or may not suffice without significant customization 
> that requires understanding of the source code.
> 
> (ConTeXt also has some support for the APS standard, but that is 
> secondary to APA in the implementation plan as so far revealed. There
> is no current plan of which I am aware to support more
> humanities-focused standards (Chicago, MHRA, Turabian, ...), although
> I would be happy to be proved wrong on that.)
> 
> For comparison, BibLaTeX supports tens of different standards and 
> variants, and has (or had a couple of years ago when I last used it)
> an active community of developers. To accomplish this, BibLaTeX
> relies on many added tags to BibTeX, thus forgoing compatibility with
> other systems.
> 
> The differences between the two derive from a few basic decisions
> taken by the ConTeXt developers. Among these, ConTeXt prefers to not
> add additional fields to BibTeX, and prefers to develop its own code
> without reliance on third-party software.
> 
> If your document requires bibliographic support beyond what ConTeXt 
> currently provides, there is another mechanism by which you can 
> incorporate other reference standards. You can write your document in 
> Pandoc <http://pandoc.org/> [1] Markdown and use any of the hundreds
> of reference standards and variants supported there through CSL 
> <http://citationstyles.org/> [2]. Pandoc can create an XML result
> that can be transformed into a PDF by ConTeXt with the bibliography
> created according the the selected CSL format. This works well for
> documents that do not require significant customization, but may
> become cumbersome when you must fiddle with many individual objects.
> I have done this for a book-scale project as a proof of concept, and
> the bibliography handling works well. My work expands on that of
> Pablo Rodríguez, who addressed the method in a note to you last year 
> <https://www.mail-archive.com/ntg-context@ntg.nl/msg83581.html> [3].
> 
> [1] http://pandoc.org/
> [2] http://citationstyles.org/
> [3] https://www.mail-archive.com/ntg-context@ntg.nl/msg83581.html
> 

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] Module for Markdown: any volunteer to make a ConTeXt interface?

2017-12-23 Thread Rik Kabel

On 2017-12-05 13:20, Gour wrote:

On Sun, 7 May 2017 23:33:30 +0200
r.erm...@hccnet.nl wrote:


I recently finished a book project in multimarkdown, which I
converted to LaTeX (I could not use ConTeXt because of its limited
bibliographical functions in comparison to BibLatex).

Just wonder, since I plan to embrace ConTeXt for a larger educational-based
project with the need to use bibliographical functions, what did you prevent
you to use it?

Let me say that I'm fully familiar with neither BibLatex's capabilities nor
with the similar things in MkIV...

Sincerely,
Gour

The utility of the new bibliography subsystem is a function of your 
ability to work within the rigid structure of the APA reference 
standards. Even with that, there are outstanding bugs that have not been 
addressed for many months.


If your publisher requires adherence to some other bibliographical 
standards, or even variations of the APA standards, the new subsystem 
may not suffice, or may not suffice without significant customization 
that requires understanding of the source code.


(ConTeXt also has some support for the APS standard, but that is 
secondary to APA in the implementation plan as so far revealed. There is 
no current plan of which I am aware to support more humanities-focused 
standards (Chicago, MHRA, Turabian, ...), although I would be happy to 
be proved wrong on that.)


For comparison, BibLaTeX supports tens of different standards and 
variants, and has (or had a couple of years ago when I last used it) an 
active community of developers. To accomplish this, BibLaTeX relies on 
many added tags to BibTeX, thus forgoing compatibility with other systems.


The differences between the two derive from a few basic decisions taken 
by the ConTeXt developers. Among these, ConTeXt prefers to not add 
additional fields to BibTeX, and prefers to develop its own code without 
reliance on third-party software.


If your document requires bibliographic support beyond what ConTeXt 
currently provides, there is another mechanism by which you can 
incorporate other reference standards. You can write your document in 
Pandoc <http://pandoc.org/> [1] Markdown and use any of the hundreds of 
reference standards and variants supported there through CSL 
<http://citationstyles.org/> [2]. Pandoc can create an XML result that 
can be transformed into a PDF by ConTeXt with the bibliography created 
according the the selected CSL format. This works well for documents 
that do not require significant customization, but may become cumbersome 
when you must fiddle with many individual objects. I have done this for 
a book-scale project as a proof of concept, and the bibliography 
handling works well. My work expands on that of Pablo Rodríguez, who 
addressed the method in a note to you last year 
<https://www.mail-archive.com/ntg-context@ntg.nl/msg83581.html> [3].


[1] http://pandoc.org/
[2] http://citationstyles.org/
[3] https://www.mail-archive.com/ntg-context@ntg.nl/msg83581.html

--
Rik

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] type and typing comments for TeX and Lua

2017-12-21 Thread Christoph Reller
On Thu, 21 Dec 2017 21:16:45 +0100,  Pablo Rodriguez <oi...@gmx.es> wrote:
> On 12/21/2017 05:04 PM, Christoph Reller wrote:
>> Dear Pablo,
>>
>> At least for XML you could use my module highlight-xml:
>>
>> \usemodule[highlight-xml]
>> \definetype[xml][option=xml]
>> [...]
>> Note that even partial XML is highlighted correctly.
>
> It is really a pity that it lacks TeX, since I’m focused on ConTeXt yet
> (after all, it would be a Spanish introduction to ConTeXt ;-)). XML will
> come later.

Maybe, if I find the time, I will add TeX and Lua to my module some time.

> I’m afraid that XML comments are colored the same way with your module
> and with standard ConTeXt.

That should not be the case. Could it be, that the highlight-xml
module fails to load? Please check your log file for a "module not
found" entry. I have attached the result of my earlier sample.

My module does not come in standard context. You have to download it
from https://bitbucket.org/philexander/context-highlight. If general
interest is high enough I can ask  to
add it.

Kind regards,

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] type and typing comments for TeX and Lua

2017-12-21 Thread Pablo Rodriguez
On 12/21/2017 05:04 PM, Christoph Reller wrote:
> Dear Pablo,
> 
> At least for XML you could use my module highlight-xml:
> 
> \usemodule[highlight-xml]
> \definetype[xml][option=xml]
> [...]
> Note that even partial XML is highlighted correctly.
Dear Christoph,

many thanks for your reply.

Your module is really great fine. It supports both \setuptype and
\setuptyping options.

It is really a pity that it lacks TeX, since I’m focused on ConTeXt yet
(after all, it would be a Spanish introduction to ConTeXt ;-)). XML will
come later.

I’m afraid that XML comments are colored the same way with your module
and with standard ConTeXt.

Comment marks in are colored as standard tags, I’m afraid. I mean,
"" are colored in blue as "".

To show a comment as a whole, setting up both comment text and marks in
a single and unique color is required.

This is why I thought that SnippetCommentMark and SnippetCommentText
would be a fine way to typeset full comments.

Sorry for insisting. It isn’t perfectionism. My friends and family
members aren’t computer scientists. I have to explain what a comment is
from the very beginning. If colors are misleading, they are lost.

This is why I have to solve this before resuming text composition.

It would be great that you also offered a highlight-tex (with
SnippetCommentText and SnippetCommentMark). Or to ease the module
loading, it would be useful to have a context-highlight (or similar name).

If your implementation could be latter added (if Hans agrees) to the
ConTeXt core.

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] type and typing comments for TeX and Lua

2017-12-21 Thread Christoph Reller
On Tue, Mon, 18 Dec 2017 23:50:09 +0100, Pablo Rodriguez <oi...@gmx.es> wrote:
> I have the following sample:
>
> \definetype[context][option=tex]
> \definetype[lua][option=lua]
> \starttext
> \startTEXpage[offset=2em]
>
> a \TEX\ inline comment: \context{ag%befe}
>
> \Lua\ inline comment: \lua{agb --efe}
>
> \startTEX
> This is text. % a comment, not \comment
> \stopTEX
>
> \startXML
> This is text.
> \stopXML
>
> \startLUA
> if code=="code" then --this is a comment
> \stopLUA
> \stopTEXpage
> \stoptext
>
> Would it be possible that all comments in type and typing (at least, for
> Lua, XML and TeX) would have the same formatting for the whole comment
> contents, including the comment signs?

Dear Pablo,

At least for XML you could use my module highlight-xml:

\usemodule[highlight-xml]
\definetype[xml][option=xml]
\starttext
\startTEXpage[offset=2em]
  \xml{attr="value"}\crlf
  \xml{This is text.}
  \startXML
This is text.
  \stopXML
\stopTEXpage
\stoptext

Note that even partial XML is highlighted correctly.

Cheers,

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] \cite not working with notes in xtables

2017-12-12 Thread Alan Braslau
Michael,

Hans seems to have fixed this problem, which was an obscure lua issue
having to do with collecting references interacting badly with trial
typesetting, as is done in xtables. The correction should make it to
the beta soon.

Alan


On Tue, 5 Dec 2017 21:06:59 +0100
Michael Eidenbenz <eidenb...@arch.ethz.ch> wrote:

> Hello List,
> 
> I have this MWE that reflects my current layout where I have images
> in an xtable with captions defined as note. Both, footnotes and
> captions are set in the margin. The Example compiles correct with
> just one caption in a xcell. If there are two (as in the MWE) the
> \cite command doesnt work.
> 
> Could this be a conflict on the lua side of xtables/publication
> framework?
> 
> The second problem of course are the footnotes that are not placed on
> the correct side. I thought \automigrateinserts would help here. But
> it doesnt.
> 
> Any hints how to solve this?
> 
> Thanks Michael
> 
> 
> ---
> \useMPlibrary[dum]
> 
> \startbuffer[bib]
> @article{tufte, author = {Edward Tufte} }
> \stopbuffer
> \definebtxdataset[bib]
> \usebtxdataset [bib][bib.buffer]
> \definebtxrendering[bib][dataset=bib]
> 
> \setuplayout[backspace=80mm,width=120mm]
> 
> \setupnote[footnote]
>   [location={none}]
> 
> \definenote   [caption]
>   [location={none}]
> 
> \automigrateinserts
> 
> \setuptexttexts
>   [margin]
>   [{{\vbox to\textheight%
> {\placenotes[caption]%
>  \null\vfilll%
>  \placenotes[footnote]}}}]
>   []
> 
> \starttext
> 
> \input tufte
>   \footnote{\cite[bib::tufte]}
>   \par
> 
>   \startembeddedxtable[distance=10mm]
> \startxrow
>   \startxcell[width=55mm]
> \externalfigure[dummy][factor=fit]
>     \caption[dummy]{caption}
>   \stopxcell
>   \startxcell[width=55mm]
> \externalfigure[dummy][factor=fit]
> % \caption[dummy]{caption} %without this note the \cite
> command compiles \stopxcell
> \stopxrow
>   \stopembeddedxtable
> 
> \input tufte
>   \footnote{\cite[bib::tufte]}
>   \par
> 
> \placebtxrendering [bib]
> 
> \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] \cite not working with notes in xtables

2017-12-05 Thread Alan Braslau
Hans,

Including the second \caption (note) leads to:

publications> no entry 'tufte' found in dataset 'bib'
publications> no entry 'tufte' found in dataset 'bib'

Strange...

Alan

On Tue, 5 Dec 2017 21:06:59 +0100
Michael Eidenbenz <eidenb...@arch.ethz.ch> wrote:

> Hello List,
> 
> I have this MWE that reflects my current layout where I have images
> in an xtable with captions defined as note. Both, footnotes and
> captions are set in the margin. The Example compiles correct with
> just one caption in a xcell. If there are two (as in the MWE) the
> \cite command doesnt work.
> 
> Could this be a conflict on the lua side of xtables/publication
> framework?
> 
> The second problem of course are the footnotes that are not placed on
> the correct side. I thought \automigrateinserts would help here. But
> it doesnt.
> 
> Any hints how to solve this?
> 
> Thanks Michael
> 
> 
> ---
> \useMPlibrary[dum]
> 
> \startbuffer[bib]
> @article{tufte, author = {Edward Tufte} }
> \stopbuffer
> \definebtxdataset[bib]
> \usebtxdataset [bib][bib.buffer]
> \definebtxrendering[bib][dataset=bib]
> 
> \setuplayout[backspace=80mm,width=120mm]
> 
> \setupnote[footnote]
>   [location={none}]
> 
> \definenote   [caption]
>   [location={none}]
> 
> \automigrateinserts
> 
> \setuptexttexts
>   [margin]
>   [{{\vbox to\textheight%
> {\placenotes[caption]%
>  \null\vfilll%
>  \placenotes[footnote]}}}]
>   []
> 
> \starttext
> 
> \input tufte
>   \footnote{\cite[bib::tufte]}
>   \par
> 
>   \startembeddedxtable[distance=10mm]
> \startxrow
>   \startxcell[width=55mm]
> \externalfigure[dummy][factor=fit]
> \caption[dummy]{caption}
>   \stopxcell
>   \startxcell[width=55mm]
> \externalfigure[dummy][factor=fit]
> % \caption[dummy]{caption} %without this note the \cite
> command compiles \stopxcell
> \stopxrow
>   \stopembeddedxtable
> 
> \input tufte
>   \footnote{\cite[bib::tufte]}
>   \par
> 
> \placebtxrendering [bib]
> 
> \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
> ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] \cite not working with notes in xtables

2017-12-05 Thread Michael Eidenbenz
Hello List,

I have this MWE that reflects my current layout where I have images in an 
xtable with captions defined as note. Both, footnotes and captions are set in 
the margin.
The Example compiles correct with just one caption in a xcell. If there are two 
(as in the MWE) the \cite command doesnt work.

Could this be a conflict on the lua side of xtables/publication framework?

The second problem of course are the footnotes that are not placed on the 
correct side. 
I thought \automigrateinserts would help here. But it doesnt.

Any hints how to solve this?

Thanks Michael


---
\useMPlibrary[dum]

\startbuffer[bib]
@article{tufte, author = {Edward Tufte} }
\stopbuffer
\definebtxdataset[bib]
\usebtxdataset [bib][bib.buffer]
\definebtxrendering[bib][dataset=bib]

\setuplayout[backspace=80mm,width=120mm]

\setupnote  [footnote]
[location={none}]

\definenote [caption]
[location={none}]

\automigrateinserts

\setuptexttexts
  [margin]
  [{{\vbox to\textheight%
{\placenotes[caption]%
 \null\vfilll%
 \placenotes[footnote]}}}]
  []

\starttext

\input tufte
  \footnote{\cite[bib::tufte]}
  \par

  \startembeddedxtable[distance=10mm]
\startxrow
  \startxcell[width=55mm]
\externalfigure[dummy][factor=fit]
\caption[dummy]{caption}
  \stopxcell
  \startxcell[width=55mm]
\externalfigure[dummy][factor=fit]
% \caption[dummy]{caption} %without this note the \cite command compiles
  \stopxcell
\stopxrow
  \stopembeddedxtable

\input tufte
  \footnote{\cite[bib::tufte]}
  \par

\placebtxrendering [bib]

\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] Setting the footnote symbol

2017-11-17 Thread Pablo Rodriguez
On 11/16/2017 10:14 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
> On Thu, 16 Nov 2017 11:40:40 -0700, Pablo Rodriguez wrote:
>> [...]
>> I must confess that this is far beyond my knowledge. I never used
>> \definefont.
> 
> Mainly useful for testing for bugs in other macros etc..

Dear Idris,

I may be wrong, but I see it \definefont as remains from MkII in MkIV.
(I know that my previous statement comes from my lack of ConTeXt knowledge.)

I tend to use a single typeface (maybe with a fallback for Greek glyphs)
in my documents. This is much easier to maintain.

>> No previous typescript is required (Larabiefont doesn’t have one).
> 
> Yes, SimpleFonts work, but then might as well set the whole document that  
> way -)

This is already ConTeXt core code. BTW, contrary to your fears, it
doesn’t set the whole document that way:

\definefont[PagellaRegular] [texgyrepagella-regular.otf at 14pt]
\definefont[PagellaRegularSmall][texgyrepagella-regular.otf at 12pt]

\definefontfamily[nonexisting][rm][TeX Gyre Cursor]
\setupbodyfont[helvetica]

\setupwhitespace[big]
\setuplayout[width=4.5in,height=5.5in,backspace=2in]

\setupnotation[footnote][style={\PagellaRegularSmall},
  numbercommand=\PagellaRegularSmall]
\setupnote [footnote]
[textcommand={\setupbodyfont[nonexisting]\high}]

\noheaderandfooterlines

\starttext
\startframedtext[width=4.5in,offset=0pt] \PagellaRegular
\startlocalfootnotes
Text
\startfootnote
Note
\stopfootnote\
More text
\placelocalfootnotes
\stoplocalfootnotes
\stopframedtext

\dorecurse{5}{\input zapf}
\stoptext

Or use \switchtobodyfont[nonexisting] (if you feel more confortable with
it). In any case, both commands work as you’d expect on my computer.

>> But for explanations, I’m afraid I’m only an average user :-(.
> 
> Pablo, you are anything but an average user :-) Many thanks for your time  
> and help.

With average user, I mean I don’t fully understand the code that I read
(and I cannot write code for ConTeXt [either TeX or Lua]). Otherwise, I
would be contributing code to ConTeXt.

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

Re: [NTG-context] Reproducible PDF output

2017-11-12 Thread Alan Braslau
On Sun, 12 Nov 2017 09:37:33 +0100
Henning Hraban Ramm <te...@fiee.net> wrote:

> Am 2017-11-11 um 21:06 schrieb Pablo Rodriguez <oi...@gmx.es>:
> 
> > I always use contextjit instead of context, because it’s faster.
> > 
> > Other than speed, I think there is no other difference.  
> 
> Sometimes it has its own bugs, like at the moment (at least in last
> week’s beta) with Lua code. Sometimes ConTeXtJIT couldn’t find my
> fonts, where ConTeXt could (maybe an old, solved problem).

And luajittex is not *always* faster, as Hans has shown us many times
at meetings, although it is usually faster, I believe. It all depends
on what type of operations one is processing.

Note, as well, that luajittex is not available on all platforms for
now. Luajit cannot be compiled for certain processors (one example is
powerpc).

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 remove that "Oxford Comma" in a bibliography?

2017-11-08 Thread tobber
Hm, I made this little test:

+++
\startbuffer[references]
@misc{test,
author= {P. Wolf and H. Fuchs and V. Hase and L. Löwe},
title = {Irgendwelche Viecher},
year = {2017},
}
\stopbuffer

\usebtxdataset[references.buffer]
\usebtxdefinitions[aps]

\setupbtx
[apa:list:author]
[separator:3={\btxnobreakspace\textampersand\space}] % last of a list

\starttext

\cite[test]

\placelistofpublications

\stoptext
+++

but this damn comma is still there:

[1] P. Wolf, H. Fuchs, V. Hase, and L. Löwe, Irgendwelche Viecher, (2017).

——
tobias berndt
(dipl.-kfm., mba)

t : 0176.56 75 15 30
m : tobiasber...@arcor.de
e : t = telefon, m = mail, e = erklaerung

> On Mittwoch, Nov. 08, 2017 at 6:24 PM, tobber <tobiasber...@arcor.de 
> (mailto:tobiasber...@arcor.de)> wrote:
> Hey Alan,
>
> where I have to put the code:
>
> \setupbtx
> [apa:list:author]
> [separator:3={\btxnobreakspace\textampersand\space}] % last of a list
>
> ??
>
>
>
>
>
> ——
> tobias berndt
> (dipl.-kfm., mba)
>
> t : 0176.56 75 15 30
> m : tobiasber...@arcor.de
> e : t = telefon, m = mail, e = erklaerung
>
> > On Mittwoch, Nov. 08, 2017 at 6:10 PM, Alan Braslau 
> > <braslau.l...@comcast.net (mailto:braslau.l...@comcast.net)> wrote:
> > \setupbtx
> > [apa:list:author]
> > [separator:3={\btxnobreakspace\textampersand\space}] % last of a list
> >
> > (But note that the "Oxford" comma is now not only officially accepted,
> > but it is also part of the APA specification, often not fully
> > respected.)
> >
> > Alan
> >
> >
> >
> > On Wed, 8 Nov 2017 13:49:23 +000
> > Tobias Berndt <tobias.ber...@baramundi.de> wrote:
> >
> > > Dear List,
> > >
> > > since I am typesetting a German publication, I wanna get out the
> > > comma before and:
> > >
> > > R. Smith, F. Bauer, J. Faulkner, & J. Joyce (1966). Blabla ... and it
> > > should be: R. Smith, F. Bauer, J. Faulkner & J. Joyce (1966).
> > > Blabla ...
> > >
> > > My settings are more or less:
> > >
> > > \usebtxdataset[bla-publications.bib]
> > > \usebtxdefinitions[apa]
> > >
> > > +++
> > >
> > > \startchapter[reference=chap:7,title={Literaturverzeichnis}]
> > > \placelistofpublications
> > > \stopchapter
> > >
> > > +++
> > >
> > > @Article{kri15,
> > > author = {B. Kriesche and R. Hess and B. Reichert and
> > > V. Schmidt}, journal = {Spatial Statistics},
> > > pages = {15\,--\,30},
> > > title = {A probabilistic approach to the prediction
> > > of area weather events, applied to precipitation}, volume = {12},
> > > year = {2015}}
> > >
> > > +++
> > >
> > > Any idea?
> > >
> > > ALOHA, tobber
> > >
> > > Mit freundlichen Gr??en
> > >
> > > Tobias Berndt
> > > Technischer Redakteur
> > >
> > > [cid:baramundi_logo_7d238272-c360-403f-a4b5-16fee20dd77a.png]<http://www.baramundi.de/>
> > >
> > > baramundi software AG
> > > Beim Glaspalast 1
> > > 86153 Augsburg
> > >
> > > Fon: +49 (821) 5 67 08 - 577
> > > Fax: +49 (821) 5 67 08 - 19
> > >
> > > tobias.ber...@baramundi.de<mailto:tobias.ber...@baramundi.de>
> > > www.baramundi.de<http://www.baramundi.de>
> > >
> > > Besuchen Sie uns:
> > > LinkedIn<https://www.linkedin.com/company/2797106> |
> > > Xing<https://www.xing.com/companies/baramundisoftwareag> |
> > > Twitter<https://twitter.com/baramundiWORLD> |
> > > YouTube<https://www.youtube.com/user/baramundisoftware/>
> > >
> > > Vorstand: Dipl.-Ing. (FH) Uwe Beikirch | Dr. Lars Lippert
> > > Aufsichtsratsvorsitzender: Dr. Dirk Haft
> > > Sitz und Registergericht: Augsburg, HRB-Nr. 2064 | USt-IdNr. DE
> > > 210294111
> >
> > ___
> > If your question is of interest to others as well, please add an entry to 
> > the Wiki!
> >
> > maillist : ntg-context@ntg.nl / 
> > http://www.ntg.nl/mailman/listinfo/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] How to remove that "Oxford Comma" in a bibliography?

2017-11-08 Thread tobber
Hey Alan,

where I have to put the code:

\setupbtx
[apa:list:author]
[separator:3={\btxnobreakspace\textampersand\space}] % last of a list

??

——
tobias berndt
(dipl.-kfm., mba)

t : 0176.56 75 15 30
m : tobiasber...@arcor.de
e : t = telefon, m = mail, e = erklaerung

> On Mittwoch, Nov. 08, 2017 at 6:10 PM, Alan Braslau <braslau.l...@comcast.net 
> (mailto:braslau.l...@comcast.net)> wrote:
> \setupbtx
> [apa:list:author]
> [separator:3={\btxnobreakspace\textampersand\space}] % last of a list
>
> (But note that the "Oxford" comma is now not only officially accepted,
> but it is also part of the APA specification, often not fully
> respected.)
>
> Alan
>
>
>
> On Wed, 8 Nov 2017 13:49:23 +000
> Tobias Berndt <tobias.ber...@baramundi.de> wrote:
>
> > Dear List,
> >
> > since I am typesetting a German publication, I wanna get out the
> > comma before and:
> >
> > R. Smith, F. Bauer, J. Faulkner, & J. Joyce (1966). Blabla ... and it
> > should be: R. Smith, F. Bauer, J. Faulkner & J. Joyce (1966).
> > Blabla ...
> >
> > My settings are more or less:
> >
> > \usebtxdataset[bla-publications.bib]
> > \usebtxdefinitions[apa]
> >
> > +++
> >
> > \startchapter[reference=chap:7,title={Literaturverzeichnis}]
> > \placelistofpublications
> > \stopchapter
> >
> > +++
> >
> > @Article{kri15,
> > author = {B. Kriesche and R. Hess and B. Reichert and
> > V. Schmidt}, journal = {Spatial Statistics},
> > pages = {15\,--\,30},
> > title = {A probabilistic approach to the prediction
> > of area weather events, applied to precipitation}, volume = {12},
> > year = {2015}}
> >
> > +++
> >
> > Any idea?
> >
> > ALOHA, tobber
> >
> > Mit freundlichen Gr??en
> >
> > Tobias Berndt
> > Technischer Redakteur
> >
> > [cid:baramundi_logo_7d238272-c360-403f-a4b5-16fee20dd77a.png]<http://www.baramundi.de/>
> >
> > baramundi software AG
> > Beim Glaspalast 1
> > 86153 Augsburg
> >
> > Fon: +49 (821) 5 67 08 - 577
> > Fax: +49 (821) 5 67 08 - 19
> >
> > tobias.ber...@baramundi.de<mailto:tobias.ber...@baramundi.de>
> > www.baramundi.de<http://www.baramundi.de>
> >
> > Besuchen Sie uns:
> > LinkedIn<https://www.linkedin.com/company/2797106> |
> > Xing<https://www.xing.com/companies/baramundisoftwareag> |
> > Twitter<https://twitter.com/baramundiWORLD> |
> > YouTube<https://www.youtube.com/user/baramundisoftware/>
> >
> > Vorstand: Dipl.-Ing. (FH) Uwe Beikirch | Dr. Lars Lippert
> > Aufsichtsratsvorsitzender: Dr. Dirk Haft
> > Sitz und Registergericht: Augsburg, HRB-Nr. 2064 | USt-IdNr. DE
> > 210294111
>
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] How to remove that "Oxford Comma" in a bibliography?

2017-11-08 Thread Alan Braslau
\setupbtx
  [apa:list:author]
  [separator:3={\btxnobreakspace\textampersand\space}] % last of a list

(But note that the "Oxford" comma is now not only officially accepted,
but it is also part of the APA specification, often not fully
respected.)

Alan



On Wed, 8 Nov 2017 13:49:23 +000
Tobias Berndt <tobias.ber...@baramundi.de> wrote:

> Dear List,
> 
> since I am typesetting a German publication, I wanna get out the
> comma before and:
> 
> R. Smith, F. Bauer, J. Faulkner, & J. Joyce (1966). Blabla ... and it
> should be: R. Smith, F. Bauer, J. Faulkner & J. Joyce (1966).
> Blabla ...
> 
> My settings are more or less:
> 
> \usebtxdataset[bla-publications.bib]
>   \usebtxdefinitions[apa]
> 
> +++
> 
> \startchapter[reference=chap:7,title={Literaturverzeichnis}]
>   \placelistofpublications
> \stopchapter
> 
> +++
> 
> @Article{kri15,
> author = {B. Kriesche and R. Hess and B. Reichert and
> V. Schmidt}, journal = {Spatial Statistics},
> pages = {15\,--\,30},
> title = {A probabilistic approach to the prediction
> of area weather events, applied to precipitation}, volume = {12},
> year = {2015}}
> 
> +++
> 
> Any idea?
> 
> ALOHA, tobber
> 
> Mit freundlichen Gr??en
> 
> Tobias Berndt
> Technischer Redakteur
> 
> [cid:baramundi_logo_7d238272-c360-403f-a4b5-16fee20dd77a.png]<http://www.baramundi.de/>
> 
> baramundi software AG
> Beim Glaspalast 1
> 86153 Augsburg
> 
> Fon: +49 (821) 5 67 08 - 577
> Fax: +49 (821) 5 67 08 - 19
> 
> tobias.ber...@baramundi.de<mailto:tobias.ber...@baramundi.de>
> www.baramundi.de<http://www.baramundi.de>
> 
> Besuchen Sie uns:
> LinkedIn<https://www.linkedin.com/company/2797106> |
> Xing<https://www.xing.com/companies/baramundisoftwareag> |
> Twitter<https://twitter.com/baramundiWORLD> |
> YouTube<https://www.youtube.com/user/baramundisoftware/>
> 
> Vorstand: Dipl.-Ing. (FH) Uwe Beikirch | Dr. Lars Lippert
> Aufsichtsratsvorsitzender: Dr. Dirk Haft
> Sitz und Registergericht: Augsburg, HRB-Nr. 2064 | USt-IdNr. DE
> 210294111

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] framed with titles

2017-11-05 Thread Jean-Pierre Delange
Oups !

There is a little error in the sample I've given : Don't read "\knuth" but 
"\input knuth" below !

\startMyFrame[Title=Knuth Text]

\input knuth

\stopMyFrame

\stoptext


- Mail original -
De: "Jean-Pierre Delange" <adeiman...@free.fr>
À: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Envoyé: Dimanche 5 Novembre 2017 11:40:03
Objet: Re: [NTG-context] framed with titles

Hi Javier,

As Thomas put it, it is beter to provide a minimal sample, even if it doesn't 
work correctly.
Given that, you can dig in this list archives, which contain few questions on 
the topic you are dealing with.

I am afraid that you can't achieve your goal (which is more or less a text 
within a frame with a title), without MP, which seems to me a good tool to draw 
such frame.
I remember that Fabrice Couvreur once has asked in 2016 a similar question, in 
order to draw a frame for a "summary" at the end of a chapter.

You need to populate the preamble of your file with something like below (you 
have to test it and modify it to your needs). 

Pay attention ! You have to give a \start command, after the \starttext 
command, inside the body of your text, when you want \startMyFrame[Title=A 
Title], and when to stop the frame with the \stopMyFrame command.
Have a look to the code below and test it (note that the frame is red in this 
sample).

% Début de la définition d'un texte encadré en rouge

% Defining a framed text
\defineframedtext
[MyFrame]
[before={\blank[3*big]},
 after={\blank[5*big]},
  frame=off,
  background=MyFrame,
  %width=\textwidth,
width=max,
height=fit,
style={\setupbodyfont[9pt]}]

% Defining a label
\definelabel
 [Definition]
 [headstyle=\bf\smallcaps]


\startuseMPgraphic{MyFrame}
path b;
picture p;
%p := textext.rt("\white\Definition");
p := textext.rt("\white\framedtextparameter{Title}");
%p := textext.rt("\white\getvariable{text}{text1}");
p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight);
b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth;
fill OverlayBox withcolor lightgray;  %\MPcolor{
fill b withcolor darkred;
draw bottomboundary OverlayBox withpen pencircle scaled 1pt  withcolor
darkred;
draw topboundary OverlayBox withpen pencircle scaled 1pt  withcolor
darkred;
draw p;
setbounds currentpicture to boundingbox currentpicture enlarged 2mm;
\stopuseMPgraphic

\defineoverlay
 [MyFrame]
 [\useMPgraphic{MyFrame}]
% Fin de la définition d'un texte encadré en rouge

\starttext

\startMyFrame[Title=Knuth Text]

\knuth

\stopMyFrame
\stoptext

Hope it helps !
JP

- Mail original -
De: "Javier M Mora" <jmm...@us.es>
À: ntg-context@ntg.nl
Envoyé: Dimanche 5 Novembre 2017 10:14:47
Objet: [NTG-context] framed with titles

Hi,

I'm trying to generate a frame with a title.

My first idea is something like (ASCII Art):

+- Title  -+
|  Text text text text |
|  more and more text  |
+--+

A frame with title breaking the top line .

But I am not picky and something like beamer floating boxes (theorem, 
proof, ...) for latex is good for me too.

In wiki, the frames doesn't have title and I'm not sure about if I have 
to fight with overlays, with MP and this is out of my league.

Questions:

* what is the way for implement a title in the frame?

* Could you write a minimal example witch allows me to complete it for 
my needs?

Thanks.

Javier M. Mora



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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] framed with titles

2017-11-05 Thread Jean-Pierre Delange
Hi Javier,

As Thomas put it, it is beter to provide a minimal sample, even if it doesn't 
work correctly.
Given that, you can dig in this list archives, which contain few questions on 
the topic you are dealing with.

I am afraid that you can't achieve your goal (which is more or less a text 
within a frame with a title), without MP, which seems to me a good tool to draw 
such frame.
I remember that Fabrice Couvreur once has asked in 2016 a similar question, in 
order to draw a frame for a "summary" at the end of a chapter.

You need to populate the preamble of your file with something like below (you 
have to test it and modify it to your needs). 

Pay attention ! You have to give a \start command, after the \starttext 
command, inside the body of your text, when you want \startMyFrame[Title=A 
Title], and when to stop the frame with the \stopMyFrame command.
Have a look to the code below and test it (note that the frame is red in this 
sample).

% Début de la définition d'un texte encadré en rouge

% Defining a framed text
\defineframedtext
[MyFrame]
[before={\blank[3*big]},
 after={\blank[5*big]},
  frame=off,
  background=MyFrame,
  %width=\textwidth,
width=max,
height=fit,
style={\setupbodyfont[9pt]}]

% Defining a label
\definelabel
 [Definition]
 [headstyle=\bf\smallcaps]


\startuseMPgraphic{MyFrame}
path b;
picture p;
%p := textext.rt("\white\Definition");
p := textext.rt("\white\framedtextparameter{Title}");
%p := textext.rt("\white\getvariable{text}{text1}");
p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight);
b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth;
fill OverlayBox withcolor lightgray;  %\MPcolor{
fill b withcolor darkred;
draw bottomboundary OverlayBox withpen pencircle scaled 1pt  withcolor
darkred;
draw topboundary OverlayBox withpen pencircle scaled 1pt  withcolor
darkred;
draw p;
setbounds currentpicture to boundingbox currentpicture enlarged 2mm;
\stopuseMPgraphic

\defineoverlay
 [MyFrame]
 [\useMPgraphic{MyFrame}]
% Fin de la définition d'un texte encadré en rouge

\starttext

\startMyFrame[Title=Knuth Text]

\knuth

\stopMyFrame
\stoptext

Hope it helps !
JP

- Mail original -
De: "Javier M Mora" <jmm...@us.es>
À: ntg-context@ntg.nl
Envoyé: Dimanche 5 Novembre 2017 10:14:47
Objet: [NTG-context] framed with titles

Hi,

I'm trying to generate a frame with a title.

My first idea is something like (ASCII Art):

+- Title  -+
|  Text text text text |
|  more and more text  |
+--+

A frame with title breaking the top line .

But I am not picky and something like beamer floating boxes (theorem, 
proof, ...) for latex is good for me too.

In wiki, the frames doesn't have title and I'm not sure about if I have 
to fight with overlays, with MP and this is out of my league.

Questions:

* what is the way for implement a title in the frame?

* Could you write a minimal example witch allows me to complete it for 
my needs?

Thanks.

Javier M. Mora



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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] Two requests for new btx subsystem

2017-10-30 Thread Rik
The most recent update (ConTeXt  ver: 2017.10.29 15:44 MKIV beta  fmt: 
2017.10.30  int: english/english) has broken \cite processing. I now get 
the author name (poorly formatted) instead of the translator, and 
 instead of the title, with the example document.


If this is not the result of some misconfiguration or misuse of the 
macros on my part, can this part of the update be rolled back?


--
Rik


On 2017-10-21 19:00, Rik Kabel wrote:


Two improvement requests for the new bibliography subsystem:

 1. Tag titles (and subtitles) with the language explicitly provided
in the bib entry.
 2. Add editor and translator to fields supported in \cite[field][tag].

An example follows. It shows that the title generated by the 
\cite[title][tag] does not have an associated language, even though 
the bib entry specifies one and the publications manual indicates that 
this is intended for the rendering and hyphenation of the title. It is 
apparently used for that in the bibliography, but it is needed as well 
in the text. (And yes, /Formenwandlungen/ does have the same 
hyphenation points in both German and English; this was just a 
convenient example.)


It also shows that [translator] is not inserted into the text.

*NOTE* that when \cite[editor][tag] is attempted (and present in the 
bib entry) compilation halts with the Lua error no string to print, 
but continues to completion when allowed.


 \mainlanguage[en]

 \startbuffer[TestBib]
    @BOOK{Tschichold1953,
  author   = {Jan Tschichold},
  title    = {Formenwandlungen der \&-Zeichen},
  year = {1953},
  publisher    = {D. Stempelag},
  address  = {Frankfurt am Main},
  language = {german},
    }
    @BOOK{Plaat1957,
  author   = {Jan Tschichold},
  translator   = {Frederick Plaat},
  title    = {The Ampersand: Its origin and development},
  year = {1957},
  publisher    = {Woudhuysen},
  address  = {London},
      note = {Translation by F.\ Plaat of
\cite{Tschichold1953}.},
    }
 \stopbuffer

 \loadbtxdefinitionfile[apa]
 \usebtxdataset    [TestBib]
   [TestBib.buffer]
 \definebtxrendering   [TestBib]
   [apa]
   [dataset=TestBib]

 \setupspellchecking   [state=start,
    method=3]
 \definecolor  [word:de]
   [r=.85]

 \starttext
 \startparagraph
 \cite[title][TestBib::Plaat1957]
 is a translation by \cite[translator][TestBib::Plaat1957]
 of \cite[title][TestBib::Tschichold1953]
 by \cite[author][TestBib::Tschichold1953].
 \stopparagraph
 \startparagraph
 {\it The Ampersand: Its origin and development}
 is a translation by Frederick Plaat
 of {\it\de Formenwandlungen der \&-Zeichen}
 by Jan Tschichold.
 \stopparagraph
 \blank[big]

 \placebtxrendering[TestBib][method=dataset]
 \stoptext

--

Rik



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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] hvdm-plc module

2017-10-27 Thread Procházka Lukáš Ing .

Hello,

some time passed...

I'm still trying to:

- download hvdm-plc documentation (link http://www.hvandermeer.com/publications 
is broken)
- install & use hvdm-plc module (which may be named differently under ConTeXt 
distribution).

There was a mail traffic on this theme but I'm not sure all has been finished so that 
there is a HvdM's "place-block" module available under Ctx.

So - what is the state of the module, in relationship with Ctx?

Best regards,

Lukas


On Mon, 14 Aug 2017 13:37:12 +0200, Mojca Miklavec 
<mojca.miklavec.li...@gmail.com> wrote:


Hi,

All we need is a module upload to
https://modules.contextgarden.net/
and then a note saying you did so, so that we can add it to the
distribution and to CTAN. Taco or someone else might provide further
feedback in case some minor modifications would be needed.

Ideally the upload should be done by Hans (vdM, not Hagen).

I'm not sure where and how to see the module at this moment.

(And in case I miss an email, just repeat the request :) :) :)

Mojca


On 14 August 2017 at 13:09, Meer, Hans van der <h.vanderm...@uva.nl> wrote:

With regard to the use of my plc-module.

Should the maintainers of ConTeXt express the wish to include this module into 
ConTeXt mkiv, then I will gladly grant permission. The one condition being that 
my name as the original author of the package will remain inside.
Because I was relying on other modules of mine, I have made an independent 
version.
I like to hear if my offer is accepted, but I will not feel disappointed if it 
is decided not to incorporate it into mkiv.

Hans van der Meer





On 2 Aug 2017, at 17:47, Procházka Lukáš Ing. <l...@pontex.cz> wrote:

Hello Mojca, hello Hans,

would it be possible to include the hdvm-plc package into ConTeXt garden 
minimals?

The module seems very useful - guessing from what I read in MAPS magazine...

Thank you in advance.

Best regards,

Lukas


--- Forwarded message ---
From: "Hans Hagen" <pra...@wxs.nl>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>, "Procházka Lukáš Ing." 
<l...@pontex.cz>
Cc:
Subject: Re: [NTG-context] hvdm-plc module
Date: Wed, 02 Aug 2017 11:24:08 +0200

On 8/1/2017 6:05 PM, Procházka Lukáš Ing. wrote:

Hello,

just to check: is


https://www.google.cz/search?q=hvdm-plc+context=utf-8=utf-8=firefox-b-ab_rd=cr=4o-AWfa3Fa6E8QeZmYH4Bw

available for download?

I'd like to test/use the hvdm-plc module (probably here:
hvdmeer.myqnapcloud.com/pubs),
which is mentioned in one of the MAPS magazine;
but I need to download the module (and the manual) first...

you have to bribe mojca in adding the module to the garden given that it
is packaged as a t-* module achive

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
-



--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | 
IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] notes in the margin

2017-10-24 Thread Henning Hraban Ramm
Am 2017-04-09 um 21:46 schrieb Wolfgang Schuster <schuster.wolfg...@gmail.com>:

>> Henning Hraban Ramm 30. März 2017 um 10:30
>> While I’m still waiting for answers to my other questions, I got some more:
>> 
>> In my layout, left margin width is zero, but \inmargin always uses left 
>> margin.
>> I didn’t find a setup to change that – should 
>> \setupmargindata[location=right] do the trick? (it doesn’t, also not with 
>> left)
>> 
>> Further I’d like to place "foot"notes into the margin.
>> It works like this:
>> 
>> \setupnote[footnote][location=none]
>> \setupnotation[footnote][
>> align=flushleft,
>> location=serried,
>> width=broad,
>> ]
>> \setuptexttexts[margin][]
>> [{\framed[%
>> align=right,
>> frame=off,
>> height=\textheight,
>> width=\rightmarginwidth 
>> ]{\placenotes[footnote]}}]
>> 
>> But I’d like the notes to start in the line of the marker, if there’s space.
>> How can I achieve that?
> The only way I found to achieve this is by flushing the notes at the end of 
> each footnote
> entry which can be done with the next key. The positioning of each margin 
> text is tricky
> because \placenotes adds skips at the begin of the block (which can be 
> reduced with
> \placelocalnotes) but a inline version of the command (e.g. 
> \placeinlinenotes) which
> flushes the notes without vertical skips and a rule at the begin would help.
> 
> \define\PlaceFootnote
>   {\inrightmargin{\vtop{\placelocalnotes[footnote][before=,after=]}}}
> 
> \setupnote
>   [footnote]
>   [location=text,
>bodyfont=,
>next=\PlaceFootnote]
> 
> \setupnotation
>   [footnote]
>   [alternative=serried]
> 
> \setuplayout
>   [width=12cm,
>rightmargindistance=0.5cm,
>rightmargin=5cm]
> 
> \starttext
> \dorecurse{6}{\input ward\expanded{\footnote{This is a footnote 
> \recurselevel}} }
> \stoptext

Oh, seems like I didn’t answer to that, sorry.

Thank you very much, this solves my problem for the most part.

Coming back to this now, since I completed my previous book project (with the 
register issues) and attacking the next one (that needs those numbered marginal 
notes).

It would be nice if we had a solution how those notes won’t collide; is there 
some trick how I can shift a note up or down manually?

Additionally, since my note number gets its own line, I’d like to get rid of 
the indenting, but couldn’t find the right parameter.
This setup adds to Wolfgang’s:

\def\FNo#1{#1\crlf}

\setupnotation
  [footnote]
  [alternative=serried,
  width=broad,
  align=flushleft,
  numbercommand=\FNo]


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
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
___

[NTG-context] Two requests for new btx subsystem

2017-10-21 Thread Rik Kabel

Two improvement requests for the new bibliography subsystem:

1. Tag titles (and subtitles) with the language explicitly provided in
   the bib entry.
2. Add editor and translator to fields supported in \cite[field][tag].

An example follows. It shows that the title generated by the 
\cite[title][tag] does not have an associated language, even though the 
bib entry specifies one and the publications manual indicates that this 
is intended for the rendering and hyphenation of the title. It is 
apparently used for that in the bibliography, but it is needed as well 
in the text. (And yes, /Formenwandlungen/ does have the same hyphenation 
points in both German and English; this was just a convenient example.)


It also shows that [translator] is not inserted into the text.

*NOTE* that when \cite[editor][tag] is attempted (and present in the bib 
entry) compilation halts with the Lua error no string to print, but 
continues to completion when allowed.


 \mainlanguage[en]

 \startbuffer[TestBib]
    @BOOK{Tschichold1953,
  author   = {Jan Tschichold},
  title    = {Formenwandlungen der \&-Zeichen},
  year = {1953},
  publisher    = {D. Stempelag},
  address  = {Frankfurt am Main},
  language = {german},
    }
    @BOOK{Plaat1957,
  author   = {Jan Tschichold},
  translator   = {Frederick Plaat},
  title    = {The Ampersand: Its origin and development},
  year = {1957},
  publisher    = {Woudhuysen},
  address  = {London},
      note = {Translation by F.\ Plaat of
   \cite{Tschichold1953}.},
    }
 \stopbuffer

 \loadbtxdefinitionfile[apa]
 \usebtxdataset    [TestBib]
   [TestBib.buffer]
 \definebtxrendering   [TestBib]
   [apa]
   [dataset=TestBib]

 \setupspellchecking   [state=start,
    method=3]
 \definecolor  [word:de]
   [r=.85]

 \starttext
 \startparagraph
 \cite[title][TestBib::Plaat1957]
 is a translation by \cite[translator][TestBib::Plaat1957]
 of \cite[title][TestBib::Tschichold1953]
 by \cite[author][TestBib::Tschichold1953].
 \stopparagraph
 \startparagraph
 {\it The Ampersand: Its origin and development}
 is a translation by Frederick Plaat
 of {\it\de Formenwandlungen der \&-Zeichen}
 by Jan Tschichold.
 \stopparagraph
 \blank[big]

 \placebtxrendering[TestBib][method=dataset]
 \stoptext

--

Rik

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] avoiding two lines on last page

2017-10-20 Thread Alan Bowen
Thanks, Hraban. I finally got a chance to try it—and it works very nicely.

Note: I placed the command in text of the last page of the component and
got the desired result without specifying a page number. I wonder if this
more abuse than use.

Alan

On Wed, Oct 18, 2017 at 4:42 PM, Henning Hraban Ramm <te...@fiee.net> wrote:

> Am 2017-10-18 um 15:03 schrieb Alan Bowen <bowenala...@gmail.com>:
>
> > Occasionally, one of my components (chapters) ends with only two lines
> on the last page. Since space is at a premium, I was wondering if there is
> a way to encourage ConTeXt to put these two lines on the preceding page.
> >
> > I do not have a mwe, so any tips about strategies and commands to
> consider will be much appreciated.
>
> Did you try \adaptlayout?
> http://wiki.contextgarden.net/Command/adaptlayout
>
> Greetlings, Hraban
> ---
> http://www.fiee.net
> http://wiki.contextgarden.net
> 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
___

Re: [NTG-context] Is this a bug in header marking?

2017-10-17 Thread Rik

I have resolved the issue in a practical, but unsatisfactory, manner.

I have resorted to creating an interlude, a new heading derived from 
title, setting it for left pages with no displayed head:


   \definehead[ChapterEpigraph][title]
   \setuphead [ChapterEpigraph][
  page={yes,left},
  insidesection=\vfill,
  aftersection={\vfill\vfill},
  header=empty,
  placehead=no,
 ]

Thus, \startChapterEpigraph can safely be placed before each 
\startchapter (and between the last \stopchapter of a part and the start 
of the next part) when that last chapter ends on a recto). This clears 
the chapter marking in the headings of the new verso. When there is an 
epigraph to set, it is placed in the ChapterEpigraph section.


This is unsatisfactory because it implements an inaccurate semantic 
model of the document – the epigraphs belong to the following chapter, 
not the numberless, nameless interlude.


And there is almost certainly a bug lurking here. I had considered 
adding the marking of the next chapter to the interlude to better tie 
the interlude to the place it belongs. When I made ChapterEpigraph 
derivative of chapter:


   \definehead[ChapterEpigraph][chapter]
   \setuphead [ChapterEpigraph][
  page={yes,left},
  insidesection=\vfill,
  aftersection={\vfill\vfill},
  header=yes,
  number=no,
  placehead=no,
 ]

and provided a marking:

   \startChapterEpigraph[marking={Same as next chapter marking}]

The resulting page displayed the marking of the previous chapter, not 
the marking provided. This appears to be the same behavior as in the 
example below in my first note, although I can provide another working 
example using this apparatus if anyone wants it.


Can we please have a \setuphead or \setupheads option to clear markings 
at the end of the level, and not simply override them when the next 
equivalent level starts? (Although perhaps, based on the observed issue 
described just above, there is some other logic at work here.)


--
Rik

On 2017-10-15 23:54, Rik Kabel wrote:


As a followup to my query on suppressing header marking, I have 
prepared an example which clearly shows odd, if not buggy behavior.


The book places chapter openings on recto pages which follow a verso 
that may have an epigraph. When there is no epigraph, the blank verso 
is properly unmarked by a header, but when there is an epigraph, the 
header from the previous chapter appears on the page. How can I 
eliminate this orphan header?


\setuppagenumbering [alternative=doublesided,location=]
\setupheadertexts   [][{\it\getmarking[section]}]
    [{\it\getmarking[chapter]}][]

\starttexdefinition unexpanded startSectionEpigraph
    \dostartbuffer  [SectionEpigraph]
[startSectionEpigraph][stopSectionEpigraph]
\stoptexdefinition

\setuphead  [chapter][
beforesection=\setups{chapter:epigraph}]

\startsetups chapter:epigraph
    \page[yes,left]% same result with yes,header,footer,left
    \doifelsebuffer{SectionEpigraph}
    {\getbuffer[SectionEpigraph]
 \resetbuffer[SectionEpigraph]}
    {\donothing}
    \page[yes,header,footer,right]
\stopsetups

\starttext

    \completecontent

    \startfrontmatter
    \startchapter[title=Preface]
    \startparagraph
    \input ward
    \stopparagraph
    \stopchapter

    \stopfrontmatter
    \startbodymatter

    \startchapter[title=Chapter First]
    \startparagraph
    \input ward
    \stopparagraph
    \stopchapter

    \startSectionEpigraph
    Why does this page have the heading
    from the previous chapter?
    \stopSectionEpigraph

    \startchapter[title=Chapter Second]
    \startparagraph
    \input ward
    \stopparagraph
    \stopchapter

    \startSectionEpigraph
  Look up!
    \stopSectionEpigraph

    \startchapter[title=Chapter Third]
    \startparagraph
    \input ward
    \stopparagraph
    \stopchapter

    \startchapter[title=Chapter Final]
    \startparagraph
    \input ward
    \stopparagraph
    \stopchapter

    \stopbodymatter

\stoptext

--
Rik


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

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

Re: [NTG-context] Obtaining an old standalone

2017-09-10 Thread Roger Mason
Hi Aditya,

Aditya Mahajan <adit...@umich.edu> writes:

>
> Note that this should be luatools --generate (two hyphens, which got
> changed to an endash in the previous email).
>

Unfortunately 'luatools --generate' produces the same error.

I have worked round the problem that sparked my original post, so, with
thanks to all who offered help, I think we should leave this mystery for
posterity.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] Obtaining an old standalone

2017-09-08 Thread Aditya Mahajan

On Fri, 8 Sep 2017, Roger Mason wrote:


Hi Dalyoung,

Jeong Dal <hak...@me.com> writes:



I also had a similar problem recently after installing texlive 2017. 
But it is resolved now by doing the following  according to the suggestions:


run mtxrun —generate and luatools —generate

May be, “ luatools —generate" is OK.
I am using TeXshop in OS X. So I am not sure this works in Linux system.
I hope that it may help.


Thanks for the suggestion.  Unfortunately it did not work:

luatools -generate


Note that this should be luatools --generate (two hyphens, which got 
changed to an endash in the previous email).


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

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

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-08-22 Thread Pablo Rodriguez
On 08/22/2017 03:17 AM, Brian Ballsun-Stanton wrote:
> Hi Pablo,
> 
> It helped. (The numbers are eaten, but I think the example is important. 

Hi Brian,

sorry, I simply forgot (and I didn’t see it in the sample because I
didn’t wrap everything inside a TEXpage).

\setupnotations[alternative=serried] is required here:

\setupnotes[location=text]
\setupnotations[alternative=serried]
\starttext
\bTABLE[split=repeat,align=normal]
   \bTR\bTD Something\postponenotes\footnote[x]{bla bla}\eTD\eTR
   \bTR\bTD Foo\note[x] \eTD\eTR
\eTABLE
\flushnotes
\placenotes[footnote]
\stoptext

BTW, it would be important to warn the reader that both \setupnotes and
\setupnotations are required because of the wiki.

I hope it is fine now,

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] Footnote in TABLE isn't rendered anywhere

2017-08-22 Thread Brian Ballsun-Stanton
Hi Pablo,

It helped. (The numbers are eaten, but I think the example is important.

Thanks for your help.

-Brian

On 22 August 2017 at 03:21, Pablo Rodriguez <oi...@gmx.es> wrote:

> On 08/21/2017 03:15 AM, Brian Ballsun-Stanton wrote:
> > Hey folks, trying to be a good citizen, I added (And quoted) this
> > message onto the wiki:
> >
> > http://wiki.contextgarden.net/TABLE#Footnotes_in_TABLEs
> >
> > I tried for a bit to try to get the example to render, but no footnotes
> > would show at all. Anyone have thoughts as to how to get wiki rendering
> > to work here? And are there any other examples from this thread that
> > should be added?
>
> Hi Brian,
>
> footnotes in the wiki are tricky:
>
> \starttext
> \startbuffer
> \bTABLE[split=repeat,align=normal]
>    \bTR\bTD Something\postponenotes\footnote[x]{bla bla}\eTD\eTR
>\bTR\bTD Foo\note[x] \eTD\eTR
> \eTABLE
> \flushnotes
> \stopbuffer
> \getbuffer
> \startTEXpage[offset=1em]
> \getbuffer
> \stopTEXpage
> \stoptext
>
> The second page is similar to the problem with the wiki.
>
> This might be a workaround for the wiki (if I’m not wrong):
>
> \setupnotes[location=text]
> \starttext
> \bTABLE[split=repeat,align=normal]
>\bTR\bTD Something\postponenotes\footnote[x]{bla bla}\eTD\eTR
>\bTR\bTD Foo\note[x] \eTD\eTR
> \eTABLE
> \flushnotes
> \placenotes[footnote]
> \stoptext
>
> Just in cases 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
___

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-08-21 Thread Pablo Rodriguez
On 08/21/2017 03:15 AM, Brian Ballsun-Stanton wrote:
> Hey folks, trying to be a good citizen, I added (And quoted) this
> message onto the wiki:
> 
> http://wiki.contextgarden.net/TABLE#Footnotes_in_TABLEs
> 
> I tried for a bit to try to get the example to render, but no footnotes
> would show at all. Anyone have thoughts as to how to get wiki rendering
> to work here? And are there any other examples from this thread that
> should be added?

Hi Brian,

footnotes in the wiki are tricky:

\starttext
\startbuffer
\bTABLE[split=repeat,align=normal]
   \bTR\bTD Something\postponenotes\footnote[x]{bla bla}\eTD\eTR
   \bTR\bTD Foo\note[x] \eTD\eTR
\eTABLE
\flushnotes
\stopbuffer
\getbuffer
\startTEXpage[offset=1em]
\getbuffer
\stopTEXpage
\stoptext

The second page is similar to the problem with the wiki.

This might be a workaround for the wiki (if I’m not wrong):

\setupnotes[location=text]
\starttext
\bTABLE[split=repeat,align=normal]
   \bTR\bTD Something\postponenotes\footnote[x]{bla bla}\eTD\eTR
   \bTR\bTD Foo\note[x] \eTD\eTR
\eTABLE
\flushnotes
\placenotes[footnote]
\stoptext

Just in cases 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
___

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-08-20 Thread Brian Ballsun-Stanton
Hi Alan,

I'm sorry I'm... fuzzy today.

Are you asking me to add: "\automigrateinserts" to the wiki example as a
different mechanism to demonstrate from earlier in this thread, proposing
it as a different solution this problem, and/or proposing it as a solution
to the "not rendering inside the wiki ConTeXt version?

My apologies for misunderstanding.
-Brian


On 21 August 2017 at 12:35, Alan Braslau <braslau.l...@comcast.net> wrote:

> Perhaps try:
>
> \automigrateinserts
>
> this is needed to handle footnotes within a box.
>
> Alan
>
> On Mon, 21 Aug 2017 11:15:49 +1000
> Brian Ballsun-Stanton <denub...@gmail.com> wrote:
>
> > Hey folks, trying to be a good citizen, I added (And quoted) this
> > message onto the wiki:
> >
> > http://wiki.contextgarden.net/TABLE#Footnotes_in_TABLEs
> >
> > I tried for a bit to try to get the example to render, but no
> > footnotes would show at all. Anyone have thoughts as to how to get
> > wiki rendering to work here? And are there any other examples from
> > this thread that should be added?
> >
> > Also, thanks for this solution, Pablo, it really helped.
> >
> > On 6 July 2017 at 04:51, Pablo Rodriguez <oi...@gmx.es> wrote:
> >
> > > On 07/03/2017 05:00 PM, Andreas Schneider wrote:
> > > > Hello,
> > > >
> > > > in the current ConTeXt Minimals (ver: 2017.06.30 19:45 MKIV beta
> > > > fmt: 2017.7.3) the following example doesn't show any footnotes:
> > > >
> > > > 
> > > > \starttext
> > > > \bTABLE[split=repeat,align=normal]
> > > >\bTR\bTD Something\footnote[x]{bla bla}\eTD\eTR
> > > >\bTR\bTD Foo\note[x] \eTD\eTR
> > > > \eTABLE
> > > > \stoptext
> > > > 
> > >
> > > Hi Andreas,
> > >
> > > this might do what you intend:
> > >
> > > \starttext
> > > \bTABLE[split=repeat,align=normal]
> > >\bTR\bTD Something\postponenotes\footnote[x]{bla bla}\eTD\eTR
> > >\bTR\bTD Foo\note[x] \eTD\eTR
> > > \eTABLE
> > > \flushnotes
> > > \stoptext
> > >
> > > 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
___

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-08-20 Thread Alan Braslau
Perhaps try:

\automigrateinserts

this is needed to handle footnotes within a box.

Alan

On Mon, 21 Aug 2017 11:15:49 +1000
Brian Ballsun-Stanton <denub...@gmail.com> wrote:

> Hey folks, trying to be a good citizen, I added (And quoted) this
> message onto the wiki:
> 
> http://wiki.contextgarden.net/TABLE#Footnotes_in_TABLEs
> 
> I tried for a bit to try to get the example to render, but no
> footnotes would show at all. Anyone have thoughts as to how to get
> wiki rendering to work here? And are there any other examples from
> this thread that should be added?
> 
> Also, thanks for this solution, Pablo, it really helped.
> 
> On 6 July 2017 at 04:51, Pablo Rodriguez <oi...@gmx.es> wrote:
> 
> > On 07/03/2017 05:00 PM, Andreas Schneider wrote:  
> > > Hello,
> > >
> > > in the current ConTeXt Minimals (ver: 2017.06.30 19:45 MKIV beta
> > > fmt: 2017.7.3) the following example doesn't show any footnotes:
> > >
> > > 
> > > \starttext
> > > \bTABLE[split=repeat,align=normal]
> > >\bTR\bTD Something\footnote[x]{bla bla}\eTD\eTR
> > >\bTR\bTD Foo\note[x] \eTD\eTR
> > > \eTABLE
> > > \stoptext
> > >   
> >
> > Hi Andreas,
> >
> > this might do what you intend:
> >
> > \starttext
> > \bTABLE[split=repeat,align=normal]
> >\bTR\bTD Something\postponenotes\footnote[x]{bla bla}\eTD\eTR
> >\bTR\bTD Foo\note[x] \eTD\eTR
> > \eTABLE
> > \flushnotes
> > \stoptext
> >
> > 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
___

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-08-20 Thread Brian Ballsun-Stanton
Hey folks, trying to be a good citizen, I added (And quoted) this message
onto the wiki:

http://wiki.contextgarden.net/TABLE#Footnotes_in_TABLEs

I tried for a bit to try to get the example to render, but no footnotes
would show at all. Anyone have thoughts as to how to get wiki rendering to
work here? And are there any other examples from this thread that should be
added?

Also, thanks for this solution, Pablo, it really helped.

On 6 July 2017 at 04:51, Pablo Rodriguez <oi...@gmx.es> wrote:

> On 07/03/2017 05:00 PM, Andreas Schneider wrote:
> > Hello,
> >
> > in the current ConTeXt Minimals (ver: 2017.06.30 19:45 MKIV beta  fmt:
> > 2017.7.3) the following example doesn't show any footnotes:
> >
> > 
> > \starttext
> > \bTABLE[split=repeat,align=normal]
> >\bTR\bTD Something\footnote[x]{bla bla}\eTD\eTR
> >\bTR\bTD Foo\note[x] \eTD\eTR
> > \eTABLE
> > \stoptext
> > 
>
> Hi Andreas,
>
> this might do what you intend:
>
> \starttext
> \bTABLE[split=repeat,align=normal]
>\bTR\bTD Something\postponenotes\footnote[x]{bla bla}\eTD\eTR
>\bTR\bTD Foo\note[x] \eTD\eTR
> \eTABLE
> \flushnotes
> \stoptext
>
> 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
___

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
I turn around !!
It does not work

2017-08-19 1:15 GMT+02:00 Rik <r...@panix.com>:

> On 2017-08-18 19:01, Fabrice Couvreur wrote:
>
> If I test this file, it does not work
>
> % macros=mkvi
>
> \startcomponent dm-1
>
>   \environment MyLayout
>
>   \MyHeader{Seconde}{17}{08}{2017}{Devoir surveillé}{1}{1h\,30m}
>
>   \dorecurse{20}{\input knuth}
>
>   \math{x^2+4x+5=0}
>
> \stopcomponent
>
> 2017-08-19 0:23 GMT+02:00 Rik Kabel <cont...@rik.users.panix.com>:
>
>> On 2017-08-18 18:14, Fabrice Couvreur wrote:
>>
>> Hi Rik,
>> Can you clarify by editing my files ?
>> Fabrice
>>
>> 2017-08-18 23:57 GMT+02:00 Rik Kabel <cont...@rik.users.panix.com>:
>>
>>> On 2017-08-18 17:34, Fabrice Couvreur wrote:
>>>
>>> Hello,
>>> It's ok for me if I compile the Aditya file.
>>> I have another problem with a simple structure. I created the file
>>> MyLayout.tex containing the macro and I want to call this macro in the
>>> dm1.tex file, but it does not work.
>>> Thank you
>>> Fabrice
>>>
>>> #
>>> MyLayout.tex
>>> #
>>>
>>> % macros=mkvi
>>>
>>> \startenvironment MyLayout
>>>
>>> \setuplayout
>>>[header=3\lineheight,
>>> headerdistance=\lineheight]
>>>
>>> \setupbackgrounds
>>>   [header]
>>>   [text]
>>>   [
>>> frame=off,
>>> bottomframe=on,
>>> framecolor=darkgray,
>>> rulethickness=2pt,
>>>   ]
>>>
>>> \defineframed[headerframed]
>>>  [
>>>frame=off, % For visualization set this to on
>>>height=fit,
>>>width=fit,
>>>location=bottom,
>>>boffset=\lineheight,
>>>  ]
>>>
>>> \starttexdefinition MyHeader #where #day #month #year #title #number
>>> #time
>>>
>>> \setupheadertexts
>>>   [{\headerframed[align=middle, foregroundstyle=bold,
>>> foregroundcolor=red]
>>> {#title n\high{o}\,#number}}]
>>>
>>> \setupheadertexts
>>>   [{\headerframed[align=flushleft, foregroundstyle=\ssx]
>>>   {Lycée JANSON DE SAILLY \\ \date[d=#day,m=#month,y=#year]}}]
>>>   [{\headerframed[align=flushright, foregroundstyle=\ssx]
>>>   {#where \\ {#time}}}]
>>>
>>> \stoptexdefinition
>>>
>>> \stopenvironment
>>>
>>> ##
>>> dm-1.tex
>>> ##
>>>
>>> \startcomponent dm-1
>>>
>>>   \environment MyLayout
>>>
>>>   \MyHeader{Seconde}{17}{08}{2017}{Devoir surveillé}{1}{1h\,30m}
>>>
>>>   \input knuth
>>>
>>> \stopcomponent
>>>
>>> 2017-08-18 18:44 GMT+02:00 Otared Kavian <ota...@gmail.com>:
>>>
>>>> Hi Aditya,
>>>>
>>>> Thanks for having sent the example file: indeed with your file I can
>>>> typeset the example and see the expected result.
>>>> I don’t know what happened when I copied and pasted the example from
>>>> the e-mail…
>>>> I think the command
>>>> % macros = mkvi
>>>> was not set correctly written at the first line, that is I had a space
>>>> before the percent sign « % ». In fact
>>>> %macros=mkvi
>>>> or
>>>> %macros = mkvi
>>>> work as well.
>>>>
>>>> By the way, wouldn’t be more user friendly, and more in the spirit of
>>>> ConTeXt, if we had a command saying
>>>> \enablemode[mkvi]
>>>> in order to tell ConTeXt that we are using %macros = mkvi ?
>>>>
>>>> Best regards: OK
>>>>
>>>> > On 18 Aug 2017, at 17:54, Aditya Mahajan <adit...@umich.edu> wrote:
>>>> >
>>>> > On Fri, 18 Aug 2017, Otared Kavian wrote:
>>>> >
>>>> >> Hi Aditya,
>>>> >>
>>>> >> I tried to typeset your example, but got an error: whether or not
>>>> the command
>>>> >>  % macros=mkvi
>>>> >> is present on the fist line, then ConTeXt complains saying that
>>>> >>  ! Illegal parameter number in definition of \MyHeader
>

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Rik

On 2017-08-18 19:01, Fabrice Couvreur wrote:

If I test this file, it does not work

% macros=mkvi

\startcomponent dm-1

  \environment MyLayout

  \MyHeader{Seconde}{17}{08}{2017}{Devoir surveillé}{1}{1h\,30m}

  \dorecurse{20}{\input knuth}

  \math{x^2+4x+5=0}

\stopcomponent

2017-08-19 0:23 GMT+02:00 Rik Kabel <cont...@rik.users.panix.com 
<mailto:cont...@rik.users.panix.com>>:


On 2017-08-18 18:14, Fabrice Couvreur wrote:

Hi Rik,
Can you clarify by editing my files ?
Fabrice

2017-08-18 23:57 GMT+02:00 Rik Kabel <cont...@rik.users.panix.com
<mailto:cont...@rik.users.panix.com>>:

On 2017-08-18 17:34, Fabrice Couvreur wrote:

Hello,
It's ok for me if I compile the Aditya file.
I have another problem with a simple structure. I created
the file MyLayout.tex containing the macro and I want to
call this macro in the dm1.tex file, but it does not work.
Thank you
Fabrice

#
MyLayout.tex
#

% macros=mkvi

\startenvironment MyLayout

\setuplayout
   [header=3\lineheight,
    headerdistance=\lineheight]

\setupbackgrounds
  [header]
  [text]
  [
    frame=off,
    bottomframe=on,
    framecolor=darkgray,
    rulethickness=2pt,
  ]

\defineframed[headerframed]
 [
   frame=off, % For visualization set this to on
   height=fit,
   width=fit,
   location=bottom,
boffset=\lineheight,
 ]

\starttexdefinition MyHeader #where #day #month #year #title
#number #time

    \setupheadertexts
[{\headerframed[align=middle, foregroundstyle=bold,
foregroundcolor=red]
    {#title n\high{o}\,#number}}]

    \setupheadertexts
[{\headerframed[align=flushleft, foregroundstyle=\ssx]
  {Lycée JANSON DE SAILLY \\
\date[d=#day,m=#month,y=#year]}}]
[{\headerframed[align=flushright, foregroundstyle=\ssx]
  {#where \\ {#time}}}]

\stoptexdefinition

\stopenvironment

##
dm-1.tex
##

\startcomponent dm-1

  \environment MyLayout

  \MyHeader{Seconde}{17}{08}{2017}{Devoir surveillé}{1}{1h\,30m}

\input knuth

\stopcomponent

2017-08-18 18:44 GMT+02:00 Otared Kavian <ota...@gmail.com
<mailto:ota...@gmail.com>>:

Hi Aditya,

Thanks for having sent the example file: indeed with
your file I can typeset the example and see the expected
result.
I don’t know what happened when I copied and pasted the
example from the e-mail…
I think the command
        % macros = mkvi
was not set correctly written at the first line, that is
I had a space before the percent sign « % ». In fact
        %macros=mkvi
or
        %macros = mkvi
work as well.

By the way, wouldn’t be more user friendly, and more in
the spirit of ConTeXt, if we had a command saying
        \enablemode[mkvi]
in order to tell ConTeXt that we are using %macros = mkvi ?

Best regards: OK

> On 18 Aug 2017, at 17:54, Aditya Mahajan
<adit...@umich.edu <mailto:adit...@umich.edu>> wrote:
>
> On Fri, 18 Aug 2017, Otared Kavian wrote:
>
>> Hi Aditya,
>>
>> I tried to typeset your example, but got an error:
whether or not the command
>>      % macros=mkvi
>> is present on the fist line, then ConTeXt complains
saying that
>>      ! Illegal parameter number in definition of
\MyHeader
>> and stops typesetting pointing to the command
\stoptexdefinition.
>
> I am attaching the file. It runs fine here with
ConTeXt  ver: 2017.08.14 23 <tel:2017.08.14%2023>:57.
>
> Aditya



I believe you need to declare the use of MKVI macros as the
first thing in your project file if they will be used by any
components.

-- 
Rik




%macros=mkvi
\startcomponent dm-1
…



I was wrong, and (no surprise) Aditya was correct.

The %macros=mkvi line is not needed in dm1.tex. It should be at the top 
of MyLayout.tex.


You may then reference MyLayout.tex (note the addition of the extension) 
in dm1.tex, or you may rename the f

[NTG-context] Bibliography in MKIV, custom rendering

2017-08-11 Thread Alan Braslau
Hello,

You find a need to modify the rendering of the bibliography as you are
misusing the bibtex data entry.

Here is your example, corrected:

1) @electronic is more appropriate than @misc;
2) Apple Inc. is not a name so you should not be using author:
organization is more appropriate.

Note that the only difference, in fact, between @electronic and @misc
is this optional field, organization. We get this from the bibtex
references and from the standard definitions in bibtex tools such as
jabref.

Your example did point out a correction that should now be in the APS
specification definitions in the latest version that can be found on
the Garden. Previously, a url (or doi) got included as a hyperlink
tag to the text "howpublished" field. The logic has been modified to
show the url (or doi) explicitly if present, in the absence of the
howpublished field.

Alan



\startbuffer [input]

@electronic{objective-c,
 organization = "Apple Inc.",
 note = "Online; accessed at 31-July-2017",
 title = "About Objective-C",
 url = 
"https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Introduction/Introduction.html;,
 year = "2014"
}
\stopbuffer

\usebtxdataset[default][input.buffer]
\usebtxdefinitions[aps]

\setupinteraction [state=start]

\starttext
According to Apple Inc., Objective-C is the main programming language, 
when writing software for MacOS~\cite[objective-c].

\placelistofpublications

\showbtxdatasetcompleteness
\stoptext



 Forwarded Message 
Subject: [NTG-context] Bibliography in MKIV, custom rendering
Date: Mon, 31 Jul 2017 04:23:16 +0200
From: Gerion Entrup <gerion.entrup-c...@flump.de>
Reply-To: mailing list for ConTeXt users <ntg-context@ntg.nl>
To: ntg-context@ntg.nl

> Hi,
> 
> I need your help again. I've a bibliography and some entries
> references to websites. Unfortunately the URL is not always rendered
> and the name ist always parsed as name of a person, not from an
> organisation etc.
> 
> What I want to achieve is to use the standard aps style, but with
> additionally the following two rules:
> 1. The name is always rendered without abbrevations (I guess, this is 
> authorconversion=normal).
> 2. If an URL is given, it is always rendered.
> 
> My input is a bib-file. Here is a minimal example:
> 
> input.bib
> ```
> @misc{objective-c,
> author = "Apple Inc.",
> note = "Online; accessed at 31-July-2017",
> title = "About Objective-C",
> url =
> "https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Introduction/Introduction.html;,
> year = "2014" }
> ```
> 
> test.tex
> ```
> \usebtxdataset[default][input.bib]
> \usebtxdefinitions[aps]
> \setupbtx[default:cite][alternative=num]
> \setupbtx[default:list][authorconversion=normal]
> 
> \starttext
> According to Apple Inc., Objective-C is the main programming
> language, when writing software for MacOS~\cite[objective-c].
> 
> \placelistofpublications
> \stoptext
> ```
> 
> I've tried to understand the manual, yout can see some of my attempts
> in the minimal example. But I don't get really far.
> 
> Can you give me a hint?
> 
> Gerion
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] methods for numbered paragraphs (ii)

2017-08-07 Thread Hans Hagen

On 8/7/2017 5:08 PM, Pablo Rodriguez wrote:


2. Look at the output of the adjusted version above - attached. Note that >>
a subsubsection after a section gives

1.1
2.1

which are the same as those given by a subsection after a section. How can
we get a subsubsection after a section to produce the following?

1.0.1
2.0.1


Again, I would say this is a bug in numbering:

 \starttext
 \section{A}
 %~ \subsection{B}
 \subsubsection{C}
 \stoptext

I mean, in a common sectioning structure a \subsubsection comes after a
\subsection. But I don’t think it must be mandatory.


Well, it's all on purpose ... no excuse for bad structuring .. anyway, 
i'll support the criterium flag in sections too:


\setuphead[subsection][criterium=all]

and for sure i'll forget about it so I wonder who will document it ...

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] methods for numbered paragraphs (ii)

2017-08-07 Thread Pablo Rodriguez
On 08/06/2017 11:08 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
> [...]
> Challenges:
> 
> 1. How can we get automatic indentation for all heads *except* the first  
> one that occurs after the \starttitle?

Hi Idris,

this should be the default (it is actually \setupheads[indentnext=no]).

I think there is a bug here, because \setuphead[alternative=margintext]
prevents "indentnext=no" from working.

You might use "insidesection=\noindenting", but this only works if you
don’t use \starpar...\stoppar. And this is only a workaround.

> 2. Look at the output of the adjusted version above - attached. Note that  
> a subsubsection after a section gives
> 
> 1.1
> 2.1
> 
> which are the same as those given by a subsection after a section. How can  
> we get a subsubsection after a section to produce the following?
> 
> 1.0.1
> 2.0.1

Again, I would say this is a bug in numbering:

\starttext
\section{A}
%~ \subsection{B}
\subsubsection{C}
\stoptext

I mean, in a common sectioning structure a \subsubsection comes after a
\subsection. But I don’t think it must be mandatory.

Sorry for not being of much 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] methods for numbered paragraphs (ii)

2017-08-06 Thread Idris Samawi Hamid ادريس سماوي حامد

On Sun, 06 Aug 2017 13:49:37 -0600, Pablo Rodriguez <oi...@gmx.es> wrote:


On 08/06/2017 03:54 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:

In addition to the two dropbox links above, see the following:

https://people.umass.edu/klement/tlp/tlp.html#bodytext
https://people.umass.edu/klement/tlp/tlp.pdf

The dropbox links (from Introduction to Hegel by GRG Mure) illustrate a
combination of Wittgenstein numbering with paragraph indentation. So it  
is

something of a hybrid between sectioning and paragraph numbering.

NOTE: A full implementation of Wittgenstein numbering is not required,  
and

would probably not be wise except in the context of producing a ConTeXt
edition of the Tractatus (something of zero interest to this writer).
Indeed, Wittgenstein's numbering system is inconsistent or obscure in
places... What we are looking for is something actually sane-)

Hi Idris,

I forgot to comment. If you want to reproduce the layout of the
Wittgenstein edition, margin heads would be a better approach.


No, we want the numbering, but the layout we're trying to reproduce is  
that of Introduction to Hegel (see dropbox samples in earlier message)



But for that, we need first to present to Hans a unified proposal for
paralell streams.


Ah the streams thread.. need to revisit that for other purposes as well.


I meant its layout, not the “Tractatus” itself :-).


Indeed (I'm biting my tongue here -) )


Just in case it helps (the proposal ;-)),


Many thanks!

Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] methods for numbered paragraphs (ii)

2017-08-06 Thread Idris Samawi Hamid ادريس سماوي حامد

On Sun, 06 Aug 2017 13:39:50 -0600, Pablo Rodriguez <oi...@gmx.es> wrote:


On 08/06/2017 03:54 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:

[...]
Something along the lines of the following would be a sufficient (and
easier) first step for the current project, although we may want to
revisit the above for the future:

3  % section
3.0.1   % subsubsection

4  % section
4.1% subsection
4.1.1   % subsubsection

How can we automate this?


Hi Idris,

if you only need a printed version, I think the following approach might
help:

\setupwhitespace[big]

\setuphead[section]
[alternative=margintext,
 color=white,
 style=\tfxx,
 before=,
 after=,
 commandafter={\setupparagraphintro[first]
[{{\bf \getmarking[sectionnumber][current]
\hspace[big]}}]}]

\setuphead[subsection]
[commandafter={\setupparagraphintro[first]
[{{\bf \getmarking[subsectionnumber][current]
\hspace[big]}}]}]

\setuphead[subsubsection]
[commandafter={\setupparagraphintro[first]
[{{\bf \getmarking[subsubsectionnumber][current]
\hspace[big]}}]}]

\starttext

\dorecurse{3}{\section{}
\startpar\input ward\stoppar
\startpar\input ward\stoppar
\dorecurse{3}{\subsection{}
\startpar\input ward\stoppar
\startpar\input ward\stoppar
\dorecurse{3}{\subsubsection{}
\startpar\input ward\stoppar
\startpar\input ward\stoppar
\startpar\input ward\stoppar}
\startpar\input ward\stoppar}
\startpar\input ward\stoppar}

\stoptext


Thank you very much, Pablo. Here is a modified version:

\setupwhitespace[big]

\setuphead[section]
[alternative=margintext,
 color=white,
 style=\tfxx,
 before=,
 after=,
 commandafter={\setupparagraphintro[first]
[{{\bf \getmarking[sectionnumber][current]
\hspace[big]}}]}]

\setuphead[subsection]
[commandafter={\setupparagraphintro[first]
[{{\bf \getmarking[subsectionnumber][current]
\hspace[big]}}]}]

\setuphead[subsubsection]
[commandafter={\setupparagraphintro[first]
[{{\bf \getmarking[subsubsectionnumber][current]
\hspace[big]}}]}]

\starttext
\starttitle[title=Paper]
\dorecurse{2}{%
\startsection
\startpar\input ward\stoppar
\startparagraph\input ward\stopparagraph

\startsubsubsection{}
\startpar\input ward\stoppar
\stopsubsubsection

\dorecurse{2}{%
\startsubsection
\startpar\input ward\stoppar
\startparagraph\input ward\stopparagraph

\dorecurse{2}{%
\startsubsubsection{}
\startpar\input ward\stoppar
\startparagraph\input ward\stopparagraph
\stopsubsubsection
}

\startparagraph{\bf level 2} \input ward\stopparagraph
\stopsubsection
}

\startparagraph{\bf level 1} \input ward\stopparagraph
\stopsection
}

\stoptitle
\stoptext
Challenges:

1. How can we get automatic indentation for all heads *except* the first  
one that occurs after the \starttitle?


2. Look at the output of the adjusted version above - attached. Note that  
a subsubsection after a section gives


1.1
2.1

which are the same as those given by a subsection after a section. How can  
we get a subsubsection after a section to produce the following?


1.0.1
2.0.1

etc.

Thanks again, Pablo!
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512

numbered-paragraphs-pablo.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] methods for numbered paragraphs (ii)

2017-08-06 Thread Pablo Rodriguez
On 08/06/2017 03:54 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
> In addition to the two dropbox links above, see the following:
> 
> https://people.umass.edu/klement/tlp/tlp.html#bodytext
> https://people.umass.edu/klement/tlp/tlp.pdf
> 
> The dropbox links (from Introduction to Hegel by GRG Mure) illustrate a
> combination of Wittgenstein numbering with paragraph indentation. So it is
> something of a hybrid between sectioning and paragraph numbering.
> 
> NOTE: A full implementation of Wittgenstein numbering is not required, and
> would probably not be wise except in the context of producing a ConTeXt
> edition of the Tractatus (something of zero interest to this writer).
> Indeed, Wittgenstein's numbering system is inconsistent or obscure in
> places... What we are looking for is something actually sane-)
Hi Idris,

I forgot to comment. If you want to reproduce the layout of the
Wittgenstein edition, margin heads would be a better approach.

But for that, we need first to present to Hans a unified proposal for
paralell streams.

I meant its layout, not the “Tractatus” itself :-).

Just in case it helps (the proposal ;-)),

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] methods for numbered paragraphs (ii)

2017-08-06 Thread Idris Samawi Hamid ادريس سماوي حامد

On Sat, 05 Aug 2017 21:28:30 -0600, Idris Samawi Hamid ادريس سماوي حامد
<idris.ha...@colostate.edu> wrote:


The parameter insidesection= helps:


\setupwhitespace[big]

\def\SPACE#1{#1\hskip2em\hbox{}}
\setuphead[section]
[style=\bf,
 after={\blank[big]},
 before={\blank[big,medium]},
 color=walayahgreen,
 alternative=text,
 insidesection=\hskip-1.2em]
 % textcommand=\SPACE]
\setuphead[subsection]
[style=\bf,
 after={\blank[big]},
 before={\blank[big,medium]},
 color=walayahgreen,
 alternative=text,
 insidesection=\hskip-1.2em]
\setuphead[subsubsection]
[style=\bf,
 after={\blank[big]},
 before={\blank[big,medium]},
 color=walayahgreen,
 alternative=text,
 insidesection=\hskip-1.2em]

\define[1]\PARHEAD {{\bf{#1}}}

\starttext
\starttitle[title=Section 1]
\startsection[title=Paragraph 1]
\input ward
\stopsection

\startsection
\PARHEAD{Paragraph 2.} \input ward

\startparagraph
\input ward
\stopparagraph

\startsubsection
\input ward
\startsubsubsection
\input ward
\stopsubsubsection
\stopsubsection
\stopsection

\startsection
\input ward
\startsubsubsection
\input ward
\stopsubsubsection
\stopsection
\stoptitle
\stoptext


Paragraph 1 shows that we cannot use the normal title= mechanism and  
maintain consistent spacing.


Paragraph 2 does not use the \start|stopparagraph mechanism, but the  
succeeding non-numbered paragraph does.


CHALLENGES:

1. See the following:

https://www.dropbox.com/s/wckt0zm0zfpx721/numbered-paragraphs-indent.pdf?dl=0

The first numbered paragraph is not indented, but the second onward is.  
How can we automate this?


2. See attached. Consider the following snippet:

\startsection
\input ward
\startsubsubsection
\input ward
\stopsubsubsection
\stopsection

The paragraph number comes out as 3, but the subsubparagraph as 1. What  
we want is


3 
3.01 

The '0' indicates that there is no subsection. Here is an example:

https://www.dropbox.com/s/gy3e93x7jqt6ivx/numbered-paragraphs-indent-01.pdf?dl=0

How can we automate this?

Thanks in advance for any guidance and pointers.


In addition to the two dropbox links above, see the following:

https://people.umass.edu/klement/tlp/tlp.html#bodytext
https://people.umass.edu/klement/tlp/tlp.pdf

The dropbox links (from Introduction to Hegel by GRG Mure) illustrate a
combination of Wittgenstein numbering with paragraph indentation. So it is
something of a hybrid between sectioning and paragraph numbering.

NOTE: A full implementation of Wittgenstein numbering is not required, and
would probably not be wise except in the context of producing a ConTeXt
edition of the Tractatus (something of zero interest to this writer).
Indeed, Wittgenstein's numbering system is inconsistent or obscure in
places... What we are looking for is something actually sane-)

1. If we take the sectioning approach outlined above, then the challenges
are

i)  indent a section after a title; and
ii) implement something not identical to but in the spirit of wittgenstein
numbers, e.g., where a subsubsection follows a section:

3  % section
3.01   % subsubsection

4  % section
4.1% subsection
4.11   % subsubsection

But this may be difficult to automate except for simple cases.

Something along the lines of the following would be a sufficient (and
easier) first step for the current project, although we may want to
revisit the above for the future:

3  % section
3.0.1   % subsubsection

4  % section
4.1% subsection
4.1.1   % subsubsection

How can we automate this?

2. There may be better approaches than the sectioning model outlined in
the previous message.

Thank you in advance for your help.

Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] methods for numbered paragraphs

2017-08-06 Thread Idris Samawi Hamid ادريس سماوي حامد

Hi Wolfgang,

On Sun, 06 Aug 2017 03:09:16 -0600, Wolfgang Schuster  
<schuster.wolfg...@gmail.com> wrote:



\setupwhitespace[big]
\definelabel[ParagraphNumber][text=Paragraph,closesymbol={\hspace[big]}]
\setupparagraphintro[each][\ParagraphNumber]
\starttext
\section{Section}
\input ward
\input ward
\input ward
\stoptext


Thanks for this. Note:

===
\setupwhitespace[big]

% \definelabel[ParagraphNumber][text=Paragraph,closesymbol={\hspace[big]}]
\definelabel[ParagraphNumber][text=,closesymbol={\hspace[big]}]

\setupparagraphintro[each][\ParagraphNumber]

\starttext

\section{Section}

\input ward

\input ward

\input ward

\stoptext
===

For simple essays, this is sufficient. But see the reply to the list from  
a few hours ago ("Re: [NTG-context] methods for numbered paragraphs (ii)")  
and the two dropbox examples. We want to be able to go further, in the  
spirit of the numbering system used by Ludwig Wittgenstein in the  
Tractatus.


Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] Cambria official typescript (mis)behavior

2017-08-02 Thread Vladimir Lomov
Hello,
** Aditya Mahajan [2017-08-02 17:46:53 -0400]:

> On Wed, 2 Aug 2017, Idris Samawi Hamid ادريس سماوي حامد wrote:
> 
>> On Wed, 02 Aug 2017 15:15:59 -0600, Aditya Mahajan <adit...@umich.edu> wrote:
>> 
>>>  Not sure if it helps, but this is worth a try (note the force key):
>>> 
>>>  mtxrun --script fonts --reload --force
>> 
>> Hmm, now I get
>> 
>> mkiv lua stats  > loaded fonts: 1 files: cambria.ttc
>> 
>> and the pdf file is correct. Thanks, Aditya! (Although I still don't
>> understand why there was a problem to begin with!)
> 
> I occasionally experience a similar issue (after an update wrong fontface is
> used, especially with math fonts) and reloading the fonts database with
> --force always fixes the issue for me. So, I have never bothered to
> investigate why the issue comes up in the first place.
> 
> Aditya

Thanks for hint Aditya.

Idris, if you use Windows 10 then may be your OS has been updated (some
time ago one of host I has access with Windows 10 has been upgraded to
ver. Windows 10 1703) and then you have updated fonts, including
Cambria. AFAIU font cache tracks somehow font version, so in case fonts
update one has to update font cache.

---
WBR, Vladimir Lomov

-- 
 Feanor: u have no idea of the depth of the stupidty of american law
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] Cambria official typescript (mis)behavior

2017-08-02 Thread Aditya Mahajan

On Wed, 2 Aug 2017, Idris Samawi Hamid ادريس سماوي حامد wrote:


On Wed, 02 Aug 2017 15:15:59 -0600, Aditya Mahajan <adit...@umich.edu> wrote:


 Not sure if it helps, but this is worth a try (note the force key):

 mtxrun --script fonts --reload --force


Hmm, now I get

mkiv lua stats  > loaded fonts: 1 files: cambria.ttc

and the pdf file is correct. Thanks, Aditya! (Although I still don't 
understand why there was a problem to begin with!)


I occasionally experience a similar issue (after an update wrong fontface 
is used, especially with math fonts) and reloading the fonts database with 
--force always fixes the issue for me. So, I have never bothered to 
investigate why the issue comes up in the first place.


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

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

Re: [NTG-context] Cambria official typescript (mis)behavior

2017-08-02 Thread Idris Samawi Hamid ادريس سماوي حامد
On Wed, 02 Aug 2017 15:15:59 -0600, Aditya Mahajan <adit...@umich.edu>  
wrote:



On Wed, 2 Aug 2017, Idris Samawi Hamid ادريس سماوي حامد wrote:


On Wed, 02 Aug 2017 14:34:25 -0600, Hans Hagen <pra...@wxs.nl> wrote:


On 8/2/2017 10:21 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
> Dear gang,
>  There appears to be something awry with type-imp-cambria.mkiv or
>  type-imp-dejavu.mkiv. Consider the following:
>  ===
> \setupbodyfont
>[cambria,12pt]
> \starttext
> Test % {\it Test} {\bf Test} {\bi Test}
> \stoptext
> ===
>  This produces a pdf with Cambria Italic instead of Cambria Regular.
>  Uncommenting the other three options produces the expected results.
>  Is this a bug or am I missing something? Awaiting your advice!
it's ok here; it could depend on the cambria on your machine


Cambria Regular : cambria.ttc
Cambria Italic  : cambriai.ttf

Inspection shows cambria.ttc is indeed regular.

The log file says
:
mkiv lua stats  > loaded fonts: 2 files: cambria.ttc, cambriai.ttf

Updating to "current version: 2017.08.02 18:59" and purging the cache  
doesn't

help


Not sure if it helps, but this is worth a try (note the force key):

mtxrun --script fonts --reload --force


Hmm, now I get

mkiv lua stats  > loaded fonts: 1 files: cambria.ttc

and the pdf file is correct. Thanks, Aditya! (Although I still don't  
understand why there was a problem to begin with!)


Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] Cambria official typescript (mis)behavior

2017-08-02 Thread Aditya Mahajan

On Wed, 2 Aug 2017, Idris Samawi Hamid ادريس سماوي حامد wrote:


On Wed, 02 Aug 2017 14:34:25 -0600, Hans Hagen <pra...@wxs.nl> wrote:


On 8/2/2017 10:21 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
> Dear gang,
>  There appears to be something awry with type-imp-cambria.mkiv or 
>  type-imp-dejavu.mkiv. Consider the following:

>  ===
> \setupbodyfont
>[cambria,12pt]
> \starttext
> Test % {\it Test} {\bf Test} {\bi Test}
> \stoptext
> ===
>  This produces a pdf with Cambria Italic instead of Cambria Regular. 
>  Uncommenting the other three options produces the expected results.

>  Is this a bug or am I missing something? Awaiting your advice!
it's ok here; it could depend on the cambria on your machine


Cambria Regular : cambria.ttc
Cambria Italic  : cambriai.ttf

Inspection shows cambria.ttc is indeed regular.

The log file says
:
mkiv lua stats  > loaded fonts: 2 files: cambria.ttc, cambriai.ttf

Updating to "current version: 2017.08.02 18:59" and purging the cache doesn't 
help


Not sure if it helps, but this is worth a try (note the force key):

mtxrun --script fonts --reload --force

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

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

Re: [NTG-context] Bibliography in MKIV, custom rendering

2017-08-01 Thread Hans Hagen

On 7/31/2017 9:28 PM, Gerion Entrup wrote:

Am Montag, 31. Juli 2017, 04:23:16 CEST schrieb Gerion Entrup:

Hi,

I need your help again. I've a bibliography and some entries references to
websites. Unfortunately the URL is not always rendered and the name ist always
parsed as name of a person, not from an organisation etc.

What I want to achieve is to use the standard aps style, but with additionally
the following two rules:
1. The name is always rendered without abbrevations (I guess, this is
authorconversion=normal).
2. If an URL is given, it is always rendered.

My input is a bib-file. Here is a minimal example:

input.bib
```
@misc{objective-c,
 author = "Apple Inc.",
     note = "Online; accessed at 31-July-2017",
 title = "About Objective-C",
 url = 
"https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Introduction/Introduction.html;,
 year = "2014"
}
```

test.tex
```
\usebtxdataset[default][input.bib]
\usebtxdefinitions[aps]
\setupbtx[default:cite][alternative=num]
\setupbtx[default:list][authorconversion=normal]

\starttext
According to Apple Inc., Objective-C is the main programming language, when 
writing software for MacOS~\cite[objective-c].

\placelistofpublications
\stoptext
```

I've tried to understand the manual, yout can see some of my attempts in the
minimal example. But I don't get really far.

Can you give me a hint?


I have "fixed" this with directly modifying the publ-imp-aps.mkvi. I guess,
this is the worst way to achive this thing, but I don't know a better one.

Here is the patch, if someone is interested.

Gerion

--- publ-imp-aps.mkvi.original  2017-07-31 21:23:14.736856430 +0200
+++ publ-imp-aps.mkvi   2017-07-31 21:24:46.860462851 +0200
@@ -58,7 +58,7 @@
  \definebtx
[aps:\s!list]
[aps]
-  [\c!authorconversion=normalshort]
+  [\c!authorconversion=normal]
  
  \definebtx

[aps:\s!list:author]
@@ -1117,6 +1117,12 @@
  
  \startsetups btx:aps:list:misc

  \fastsetup{btx:aps:list:electronic}
+\btxdoif {url} {
+\btxspace
+\btxleftparenthesis
+\goto{\hyphenatedurl{\btxflush{url}}}[url(\btxflush{url})]
+\btxrightparenthesis
+}
  % Note that organization is an "ignored" field.
  \stopsetups


just load the aps style and then in your own style put the overloads 
(you can then use \setupbtx)


-
  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 in MKIV, custom rendering

2017-07-31 Thread Gerion Entrup
Am Montag, 31. Juli 2017, 04:23:16 CEST schrieb Gerion Entrup:
> Hi,
> 
> I need your help again. I've a bibliography and some entries references to 
> websites. Unfortunately the URL is not always rendered and the name ist 
> always 
> parsed as name of a person, not from an organisation etc.
> 
> What I want to achieve is to use the standard aps style, but with 
> additionally 
> the following two rules:
> 1. The name is always rendered without abbrevations (I guess, this is 
> authorconversion=normal).
> 2. If an URL is given, it is always rendered.
> 
> My input is a bib-file. Here is a minimal example:
> 
> input.bib
> ```
> @misc{objective-c,
> author = "Apple Inc.",
> note = "Online; accessed at 31-July-2017",
> title = "About Objective-C",
> url = 
> "https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Introduction/Introduction.html;,
> year = "2014"
> }
> ```
> 
> test.tex
> ```
> \usebtxdataset[default][input.bib]
> \usebtxdefinitions[aps]
> \setupbtx[default:cite][alternative=num]
> \setupbtx[default:list][authorconversion=normal]
> 
> \starttext
> According to Apple Inc., Objective-C is the main programming language, when 
> writing software for MacOS~\cite[objective-c].
> 
> \placelistofpublications
> \stoptext
> ```
> 
> I've tried to understand the manual, yout can see some of my attempts in the 
> minimal example. But I don't get really far.
> 
> Can you give me a hint?

I have "fixed" this with directly modifying the publ-imp-aps.mkvi. I guess,
this is the worst way to achive this thing, but I don't know a better one.

Here is the patch, if someone is interested.

Gerion

--- publ-imp-aps.mkvi.original  2017-07-31 21:23:14.736856430 +0200
+++ publ-imp-aps.mkvi   2017-07-31 21:24:46.860462851 +0200
@@ -58,7 +58,7 @@
 \definebtx
   [aps:\s!list]
   [aps]
-  [\c!authorconversion=normalshort]
+  [\c!authorconversion=normal]
 
 \definebtx
   [aps:\s!list:author]
@@ -1117,6 +1117,12 @@
 
 \startsetups btx:aps:list:misc
 \fastsetup{btx:aps:list:electronic}
+\btxdoif {url} {
+\btxspace
+\btxleftparenthesis
+\goto{\hyphenatedurl{\btxflush{url}}}[url(\btxflush{url})]
+\btxrightparenthesis
+}
 % Note that organization is an "ignored" field.
 \stopsetups

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] Bibliography in MKIV, custom rendering

2017-07-30 Thread Gerion Entrup
Hi,

I need your help again. I've a bibliography and some entries references to 
websites. Unfortunately the URL is not always rendered and the name ist always 
parsed as name of a person, not from an organisation etc.

What I want to achieve is to use the standard aps style, but with additionally 
the following two rules:
1. The name is always rendered without abbrevations (I guess, this is 
authorconversion=normal).
2. If an URL is given, it is always rendered.

My input is a bib-file. Here is a minimal example:

input.bib
```
@misc{objective-c,
author = "Apple Inc.",
    note = "Online; accessed at 31-July-2017",
title = "About Objective-C",
url = 
"https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Introduction/Introduction.html;,
year = "2014"
}
```

test.tex
```
\usebtxdataset[default][input.bib]
\usebtxdefinitions[aps]
\setupbtx[default:cite][alternative=num]
\setupbtx[default:list][authorconversion=normal]

\starttext
According to Apple Inc., Objective-C is the main programming language, when 
writing software for MacOS~\cite[objective-c].

\placelistofpublications
\stoptext
```

I've tried to understand the manual, yout can see some of my attempts in the 
minimal example. But I don't get really far.

Can you give me a hint?

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] Couple of questions

2017-07-28 Thread Gerion Entrup
Am Freitag, 28. Juli 2017, 16:34:01 CEST schrieb Pablo Rodriguez:
> On 07/28/2017 02:22 AM, Gerion Entrup wrote:
> > [...]
> > 6. Multiple references
> > I want to create the same footnote on multiple locations in the text. 
> > Therefore I used:
> > ```
> > \setupinteraction[state=start]
> > 
> > \starttext
> > This\footnote[letter-s]{"s" is a letter.} is\note[letter-s] a 
> > nons\note[letter-s]ens\note[letter-s]e text.
> > \stoptext
> > 
> > ```
> > But this uses different fonts for the number in the text. Is there a way to 
> > fix 
> > this or do it better?
> 
> Hi Gerion,
> 
> the easiest way is to disable bold in links:
> 
> \setupinteraction[state=start, style=]
> 
> Or I guess you would have to enable bold in the footnote reference numbers.
Ah ok, then both types of references are treated different.
Your solution works, thank you.

Gerion


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] Couple of questions

2017-07-28 Thread Pablo Rodriguez
On 07/28/2017 02:22 AM, Gerion Entrup wrote:
> [...]
> 6. Multiple references
> I want to create the same footnote on multiple locations in the text. 
> Therefore I used:
> ```
> \setupinteraction[state=start]
> 
> \starttext
> This\footnote[letter-s]{"s" is a letter.} is\note[letter-s] a 
> nons\note[letter-s]ens\note[letter-s]e text.
> \stoptext
> 
> ```
> But this uses different fonts for the number in the text. Is there a way to 
> fix 
> this or do it better?

Hi Gerion,

the easiest way is to disable bold in links:

\setupinteraction[state=start, style=]

Or I guess you would have to enable bold in the footnote reference numbers.

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
___

[NTG-context] Couple of questions

2017-07-27 Thread Gerion Entrup
Hi,

this is a rather long mail, but I'll add the answers to the wiki.

For the future: Should I write one mail per question or all in one? :)

1. Color of references and table of content:
How can I define/change the colors of references and the table of content? And
why are some references red and others green?


2. Own title format
I've set an own title format for chapters, like described in the wiki. 
Unfortunately this applies to the table of contents and bibliography as well.
Below a minimal example, that reproduces it:
```
\setupinteraction[state=start]

\define[2]\MyChapter{\framed[frame=off,bottomframe=on,topframe=on]
{\vbox{\headtext{chapter} #1\blank#2}}}

\setuphead[chapter][command=\MyChapter, style={\switchtobodyfont[24pt,ss]}, 
header=empty, page=mychapterpagebreak]
\setupheadtext[chapter=Chapter, content=Table of Contents]

\starttext
\completecontent
\page[yes]

\startchapter[title=foo]

\stoptext
```
How can I prevent the printing of "Chapter" in the table of contents and
bibliography?


3. Text size in t-vim
I've defined a smaller text size in t-vim, but this seems to affect \inline... 
as well. Is there a way to circumvent this?

Minimal example:
```
\setupinteraction[state=start]

\usemodule[t-vim]
\definevimtyping[python][syntax=python,
 style={\switchtobodyfont[8pt,tt]},]
\starttext
\startpython
for line in foo:
print(line)
\stoppython
This is keyword \inlinepython{in} Python.
\stoptext
```


4. Captions of combinations
The wiki shows, how to completely autolabel figures in a combination with mkiv.
Is there a way to simply prefix the label with a), b), c),...?

Another related question: Is there a way to define the width and align of the 
labels of a combination?


5. Numbering of floats
I want a numbering for my figures in this format:
way=bychapter, prefixsegments=chapter

I guess, this is the default, but I've explicitly set it.
In some captions the prefix is ignored. For example there are 5 figures in 
chapter 2, then the captions of the figures (the text is in German) are:
Abbildung 2.1   foo
Abbildung 2.2   bar
Abbildung 3foobar
Abbildung 4otherfoo
Abbildung 5lastfoo

Is there anything, I can do, to prevent this?


6. Multiple references
I want to create the same footnote on multiple locations in the text. 
Therefore I used:
```
\setupinteraction[state=start]

\starttext
This\footnote[letter-s]{"s" is a letter.} is\note[letter-s] a 
nons\note[letter-s]ens\note[letter-s]e text.
\stoptext

```
But this uses different fonts for the number in the text. Is there a way to fix 
this or do it better?




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] footnote placement

2017-07-20 Thread Meer, Hans van der
I did use: \setupnotes[footnote][split=verystrict,scope=page] so I guess there 
is not much hope here.

A related question: the numbering of endnotes is placed in the leftmargin. Is 
there a parameter setting that forces them in the textarea of the page?  I 
tried \setupnotes[endnote][location=text] but without success.

Hans van der Meer




On 20 Jul 2017, at 21:33, Hans Hagen <pra...@wxs.nl<mailto:pra...@wxs.nl>> 
wrote:

On 7/20/2017 9:14 PM, Meer, Hans van der wrote:
Pablo,
[scope=page] does not help.
I did a few experiments with the following result.
If the footnote is close to the previous page, than obviously the float 
mechanism may decide to put the footnote on the previous page. This happens 
even when the footnote is in the second paragraph of that page. Only when the 
footnote is far enough from the top of the page (I have no inkling how far is 
far enough) will the footnote appear on the current page, as where one expects 
it.
I guess this is a tricky one, but perhaps Hans Hagen will know what to do or 
what to change. I am convinced he will not be afraid of some trickery:-)

if verystrict is not helping there is not much that we can do as tex decides if 
keeping note and reference on one page is possible at all given other 
constraints

(of course there can be a bug in context)

Hans van der Meer
On 20 Jul 2017, at 20:28, Pablo Rodriguez <oi...@gmx.es<mailto:oi...@gmx.es>> 
wrote:

On 07/20/2017 11:16 AM, Meer, Hans van der wrote:
It happens that a footnote generated on a certain page is typeset on
the page preceding it. Rather than that, I would like to force a
footnote to appear either on the page where it is defined or on the
following page. Can such behaviour be enforced?
Currently this is my footnote setup:
\setupnotes   [footnote][split=verystrict]

Hans,

I would add "scope=page", but that would prevent moving the footnote to
the next page.

I don’t know whether this would prevent the footnote to be placed in the
page before where it is defined.

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<mailto:ntg-context@ntg.nl> / 
http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl<http://www.pragma-ade.nl/> / 
http://context.aanhet.net<http://context.aanhet.net/>
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net<http://contextgarden.net/>
___


--

-
 Hans Hagen | PRAGMA ADE
 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.nl<http://www.pragma-ade.nl/> | 
www.pragma-pod.nl<http://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<mailto:ntg-context@ntg.nl> / 
http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl<http://www.pragma-ade.nl/> / 
http://context.aanhet.net<http://context.aanhet.net/>
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net<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] footnote placement

2017-07-20 Thread Hans Hagen

On 7/20/2017 9:14 PM, Meer, Hans van der wrote:

Pablo,

[scope=page] does not help.

I did a few experiments with the following result.
If the footnote is close to the previous page, than obviously the float 
mechanism may decide to put the footnote on the previous page. This happens 
even when the footnote is in the second paragraph of that page. Only when the 
footnote is far enough from the top of the page (I have no inkling how far is 
far enough) will the footnote appear on the current page, as where one expects 
it.

I guess this is a tricky one, but perhaps Hans Hagen will know what to do or 
what to change. I am convinced he will not be afraid of some trickery:-)


if verystrict is not helping there is not much that we can do as tex 
decides if keeping note and reference on one page is possible at all 
given other constraints


(of course there can be a bug in context)


Hans van der Meer





On 20 Jul 2017, at 20:28, Pablo Rodriguez <oi...@gmx.es> wrote:

On 07/20/2017 11:16 AM, Meer, Hans van der wrote:

It happens that a footnote generated on a certain page is typeset on
the page preceding it. Rather than that, I would like to force a
footnote to appear either on the page where it is defined or on the
following page. Can such behaviour be enforced?
Currently this is my footnote setup:
\setupnotes   [footnote][split=verystrict]


Hans,

I would add "scope=page", but that would prevent moving the footnote to
the next page.

I don’t know whether this would prevent the footnote to be placed in the
page before where it is defined.

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
___




--

-
  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] a string xmlpath in Lua

2017-07-10 Thread MF
Hello list,
is there a Lua function to get the XML path of an element as a string?

\xmlpath typesets the path, I need a similar function for Lua, but the
path should be a string to be worked on in Lua.

This is the problem originating that question: i must name (give an id
to) some anonymous XML elements (read: "without an id attribute"), and
their path is a good candidate.

To be more precise: when i parse a  element, i look for elements
representing footnotes, to prepare them with \setnotetext;
then the table contents are parsed and the footnotes' markers are
typeset with \note[footnote_id].
When there are more footnotes, i need to identify them, to give \note
the right footnote id.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] Footnote in TABLE isn't rendered anywhere

2017-07-08 Thread Mathias Schickel
Dear Andreas, Pablo and the list,

I did read your question and answer with great interest, since I encountered 
similar issues. Sadly your trick to get footnotes that are defined in some 
environments like tables displayed at the bottom of the page does not work if 
you try it using backgrounds. Here I provide a minimal example that shows the 
problem:


\setupbackground[
width=\textwidth,
frame=on,
framecolor=black,
rulethickness=1pt,
background=color,
backgroundcolor=white,
corner=0,
offset=12pt]
%
\starttext
%
\startbackground
%
If you typeset text with background, the footnote workaround does not 
work.\postponenotes\footnote{So what could I do to get this footnote displayed?}
%
\stopbackground
\flushnotes
%
\stoptext


Can anyone tell me what I can do to get the footnote rendered? Thank you in 
advance.

Best regards
Mathias


> Am 06.07.2017 um 09:41 schrieb Andreas Schneider <ak...@gmx.de>:
> 
> Am 2017-07-05 20:51, schrieb Pablo Rodriguez:
>> this might do what you intend:
>>\starttext
>>\bTABLE[split=repeat,align=normal]
>>   \bTR\bTD Something\postponenotes\footnote[x]{bla bla}\eTD\eTR
>>   \bTR\bTD Foo\note[x] \eTD\eTR
>>\eTABLE
>>\flushnotes
>>\stoptext
>> Just in case it helps,
> 
> Hello Pablo,
> 
> yes, this does the trick. Thank you very much for that solution! :-)
> 
> Best regards
> Andreas
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] Footnote in TABLE isn't rendered anywhere

2017-07-06 Thread Andreas Schneider

Am 2017-07-05 20:51, schrieb Pablo Rodriguez:

this might do what you intend:

\starttext
\bTABLE[split=repeat,align=normal]
   \bTR\bTD Something\postponenotes\footnote[x]{bla bla}\eTD\eTR
   \bTR\bTD Foo\note[x] \eTD\eTR
\eTABLE
\flushnotes
\stoptext

Just in case it helps,


Hello Pablo,

yes, this does the trick. Thank you very much for that solution! :-)

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] Footnote in TABLE isn't rendered anywhere

2017-07-05 Thread Pablo Rodriguez
On 07/03/2017 05:00 PM, Andreas Schneider wrote:
> Hello,
> 
> in the current ConTeXt Minimals (ver: 2017.06.30 19:45 MKIV beta  fmt: 
> 2017.7.3) the following example doesn't show any footnotes:
> 
> 
> \starttext
> \bTABLE[split=repeat,align=normal]
>\bTR\bTD Something\footnote[x]{bla bla}\eTD\eTR
>\bTR\bTD Foo\note[x] \eTD\eTR
> \eTABLE
> \stoptext
> 

Hi Andreas,

this might do what you intend:

\starttext
\bTABLE[split=repeat,align=normal]
   \bTR\bTD Something\postponenotes\footnote[x]{bla bla}\eTD\eTR
   \bTR\bTD Foo\note[x] \eTD\eTR
\eTABLE
\flushnotes
\stoptext

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
___

[NTG-context] Footnote in TABLE isn't rendered anywhere

2017-07-03 Thread Andreas Schneider

Hello,

in the current ConTeXt Minimals (ver: 2017.06.30 19:45 MKIV beta  fmt: 
2017.7.3) the following example doesn't show any footnotes:



\starttext
\bTABLE[split=repeat,align=normal]
  \bTR\bTD Something\footnote[x]{bla bla}\eTD\eTR
  \bTR\bTD Foo\note[x] \eTD\eTR
\eTABLE
\stoptext


That second note reference (\note[x]) even causes a warning:


references  > unknown reference '[][x]'


(Local footnotes work in this case, but I prefer global ones.)

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] Initials and short paragraph

2017-06-20 Thread Rogers, Michael K
Hi,

Perhaps this?:

\starttext
\placeinitial
Knuth writes:
\hfill\break
\input knuth
\stoptext

There may be a more ConTeXt-idiomatic way, in which case someone else will 
probably say.  Note that structurally the above combines "Knuth writes:" and 
the first text segment (up to the first blank line or \par) of knuth.tex into a 
single paragraph with some glue and a break between them.  You would lose any 
paragraph-formatting of the first segment of knuth.tex.  If there is any, you 
might have to do that by hand.

If you wanted to have the Knuth quote begin below the initial K, then someone 
else will have to answer.  I don't know off hand.

Cheers,

Michael

> On Jun 8, 2017, at 10:05 PM, Martin Oppegaard <martin.oppega...@gmail.com> 
> wrote:
>
> Hi,
>
> When placing an initial and the paragraph is short, the initial is laid over 
> the next paragraph. Example:
>
> \starttext
> \placeinitial
> Knuth writes:
>
> \input knuth
> \stoptext
>
> Is there anything to do about this?
>
> Regards,
> Martin Oppegaard
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___




This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] Position of standard footnotes that are set-up in floats

2017-06-12 Thread Sebastian L.

Hi, thanks for your replies


On 12/06/2017 16:08, Alan BRASLAU wrote:

On Mon, 12 Jun 2017 15:46:06 +0200
Hans Hagen <pra...@wxs.nl> wrote:


and create a footnote with the graphic's source, that I want to be
placed as simple footnote at the bottom of the page. CTX, LuaTX do
this just fine.

...


Yes, I like the mechanism, as it does what it is supposed to do, until 
due to spacing the float gets an unexpected positioning while carrying a 
reference.



that's pretty hard to achieve (maybe some day)


I fully understand. Thank you Hans.


Are you sure from a stylistic point-of-view that you want a
figure caption (or figure label) refer to a footnote? Although there
can be different schools of thought on the editorial style of figures
and figure captions, I would find it confusing for a floating object to
use a non-local footnote.

My suggestion (as a sometimes editor) would be to find another solution
in this case, not that I am trying to let ConTeXt off the hook...


Sure, I can also place a source in the appendice, but why not have the 
opportunity to do both, since basically it works? I think from the 
stylistic point of view I don't expect to turn back a page when looking 
for a foot note.
Since many experienced users have workarounds for many situations, I 
hoped to find one here. Hans' reply was satisfactory to me too. :D


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] a special kind of notes in each page

2017-06-01 Thread Pablo Rodriguez
Hans,

I have a document http://tex.ousia.tk/hippocratic-oath.pdf (source as
attachment to the PDF document itself).

The special kind of notes are the first group in two columns. I need
that their space and location in page are calculated by the notes
mechanism. And also that the notes mechanism selects the range of notes
that belong to the page.

I don’t need any reference, not to note number or to line number. Since
it is a vocabulary list, what I need is a minimal register with
"indicator=no, before=, after=".

So it would be possible to have well-balanced columns and words
alphabetically sorted, which is essential in a vocabulary.

I guess that \definenote[NAME][alternative=register] and
\setupregister[NAME][indicator=no, before=, after=] could be a good way
to invoke these page-related vocabularies.

Would it be possible to have such a feature? This would the way to have
page vocabularies.

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] slashes in paths (Lua code)

2017-06-01 Thread Pablo Rodriguez
On 06/01/2017 05:47 AM, Akira Kakuto wrote:
>> Directories are a problem here. I mean, 
>> \shatwo{Desktop/i-context.pdf}
>> cannot work in Windows.
> 
> Here both of your example and an example by Hans
> worked fine on Windows.
> Note that
> \shatwo{Desktop/i-context.pdf}
> works only if the current directory is your %USERPROFILE%.

Many thanks for your reply, Akira.

I didn’t check my code on Windows (all my computers at home run Linux).
I’m suprised that it worked.

And thanks for warning about the path and %USERPROFILE%. Of course,
ConTeXt and LuaTeX do magic, but organizing files is a task that belongs
to the user ;-).

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
___

[NTG-context] slashes in paths (Lua code)

2017-05-31 Thread Akira Kakuto
Directories are a problem here. I mean, 
\shatwo{Desktop/i-context.pdf}

cannot work in Windows.


Here both of your example and an example by Hans
worked fine on Windows.
Note that
\shatwo{Desktop/i-context.pdf}
works only if the current directory is your %USERPROFILE%.

Best,
Akira

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] Typescript/fallbacks problem

2017-05-27 Thread Otared Kavian
Hi Mohammad Hossein,

Your report is beyond my knowledge, but I would like to ask you a question 
about the setup of fallback fonts: why are you referring to « dejavudef » in 
the commands such as

 \definefontsynonym [SahelBd]   
[SahelBold][features={arabic,tlig},fallbacks=dejavudef]

while you have defined before « dejavudefault » (and not « dejavudef ») in:

\definefontfallback[dejavudefault][dejavusans] 
[range=generalpunctuation,check=yes,force=no]

Best regards: Otared K.

> On 26 May 2017, at 05:52, Mohammad Hossein Bateni <bat...@gmail.com 
> <mailto:bat...@gmail.com>> wrote:
> 
> The following email had large attachments (more than 100K).  I uploaded 
> everything here:
> http://mhbateni.com/context/bug-04/ <http://mhbateni.com/context/bug-04/>
> 
> On Thu, May 25, 2017 at 11:40 PM, Mohammad Hossein Bateni <bat...@gmail.com 
> <mailto:bat...@gmail.com>> wrote:
> Hello Hans,
> 
> I'm going to explain a strange problem which came about, as far as I can 
> tell, in beta 2017.04.27 01:00.  The same beta had introduced some other 
> issues with fallbacks, which you fixed already.  Thanks a lot for that!
> 
> I am now using the latest beta, version 2017.05.25 12:50.  Unfortunately I 
> don't know what is going on precisely.  Here is a sort-of-minimal non-working 
> example.
> 
> 
> %
> \definefontfeature[slanted][slant=.4]
> 
> \starttypescript [serif][sahel][name]
>   \resetfontfallback [dejavudefault]
>   \definefontfallback[dejavudefault][dejavusans] 
> [range=generalpunctuation,check=yes,force=no]
> %
>   \definefontsynonym [SahelReg]
> [Sahel][features={arabic,tlig},fallbacks=dejavudef]
> %% NOTE 1
> %  \definefontsynonym [SahelReg] [Sahel][features={arabic,tlig}]
>   \definefontsynonym [SahelBd]   
> [SahelBold][features={arabic,tlig},fallbacks=dejavudef]
>   \definefontsynonym [SahelIt] 
> [Sahel][features={arabic,tlig,slanted},fallbacks=dejavudef]
>   \definefontsynonym [SahelBdIt] 
> [SahelBold][features={arabic,tlig,slanted},fallbacks=dejavudef]
> %
>   \definefontsynonym [Serif] [SahelReg]
>   \definefontsynonym [SerifBold] [SahelBd]
>   \definefontsynonym [SerifItalic] [SahelIt]
>   \definefontsynonym [SerifBoldItalic] [SahelBdIt]
> \stoptypescript
> 
> \starttypescript [math] [modern] [name]
> \definefontsynonym [MathRoman] [name:modern] [features=math\mathsizesuffix]
> \stoptypescript
> 
> \starttypescript [myfont]
> \definetypeface [myfont][rm] [serif][sahel] [default]
> %% NOTE 2
> \definetypeface [myfont][mm] [math] [modern][default]
> \stoptypescript
> 
> \setupbodyfont[myfont,rm]
> %% NOTE 3
> %\definedfont[Serif]
> 
> \def\Sample{{\lefttoright Salam} {\righttoleft سلام} }
> 
> \starttext
> rm:\Sample
> {\bf bf:\Sample}
> {\it it:\Sample}
> {\bi bi:\Sample}
> 
> %% NOTE 4
> \definedfont[SahelReg]\Sample
> \definedfont[Serif]\Sample
> 
> \stoptext
> %
> 
> 
> Background: 
> 
> Commenting/uncommenting some of the lines produces three outputs, only one of 
> which seems correct to me.  I have attached the three.  Betas before 4/27 
> always produced the correct solution.
> 
> I am using a free open-source Farsi font, whose English glyphs come from Open 
> Sans font.  I am attaching the specific versions of the Farsi font to 
> reproduce the same results.
> [https://github.com/rastikerdar/sahel-font 
> <https://github.com/rastikerdar/sahel-font>]
> [https://github.com/google/fonts/tree/master/apache/opensans 
> <https://github.com/google/fonts/tree/master/apache/opensans>]
> 
> 
> Explanation:
> 
> Compiling the MWE above produces wrong-1.pdf in recent betas.  The serif font 
> has not been set up properly on the first line of output.  Instead the 
> default Latin Modern has been used, which looks different and misses the 
> Farsi glyphs.
> 
> Strangely there is nothing wrong with the second line of text, which shows 
> Serif and SahelReg fonts are both set up just fine.  See "NOTE 4" in the MWE.
> 
> Replacing the line above "NOTE 1" with the line below it—i.e., if I remove 
> the fallbacks for definition of SahelReg—generates correct.pdf as output.  I 
> get the same correct output if uncomment the line below "NOTE 3," which 
> should be a no-op in my opinion.  Notice that setting the fallback for bold, 
> italic and bold italic has not caused any issues.  It's only the serif itself 
> that's acting up weirdly.
> 
> Finally when I comment the math definition below "NOTE 2," I get wrong-2.pdf 
> as output.  Here everything 

Re: [NTG-context] Typescript/fallbacks problem

2017-05-25 Thread Mohammad Hossein Bateni
The following email had large attachments (more than 100K).  I uploaded
everything here:
http://mhbateni.com/context/bug-04/

On Thu, May 25, 2017 at 11:40 PM, Mohammad Hossein Bateni <bat...@gmail.com>
wrote:

> Hello Hans,
>
> I'm going to explain a strange problem which came about, as far as I can
> tell, in beta 2017.04.27 01:00.  The same beta had introduced some other
> issues with fallbacks, which you fixed already.  Thanks a lot for that!
>
> I am now using the latest beta, version 2017.05.25 12:50.  Unfortunately I
> don't know what is going on precisely.  Here is a sort-of-minimal
> non-working example.
>
>
> %
>
> \definefontfeature[slanted][slant=.4]
>
>
> \starttypescript [serif][sahel][name]
>
>   \resetfontfallback [dejavudefault]
>
>   \definefontfallback[dejavudefault][dejavusans]
> [range=generalpunctuation,check=yes,force=no]
>
> %
>
>   \definefontsynonym [SahelReg][Sahel][features={arabic,
> tlig},fallbacks=dejavudef]
>
> %% NOTE 1
>
> %  \definefontsynonym [SahelReg] [Sahel][features={arabic,tlig}]
>
>   \definefontsynonym [SahelBd]   [SahelBold][features={arabic,
> tlig},fallbacks=dejavudef]
>
>   \definefontsynonym [SahelIt] [Sahel][features={arabic,tlig,
> slanted},fallbacks=dejavudef]
>
>   \definefontsynonym [SahelBdIt] [SahelBold][features={arabic,
> tlig,slanted},fallbacks=dejavudef]
>
> %
>
>   \definefontsynonym [Serif] [SahelReg]
>
>   \definefontsynonym [SerifBold] [SahelBd]
>
>   \definefontsynonym [SerifItalic] [SahelIt]
>
>   \definefontsynonym [SerifBoldItalic] [SahelBdIt]
>
> \stoptypescript
>
>
> \starttypescript [math] [modern] [name]
>
> \definefontsynonym [MathRoman] [name:modern] [features=math\mathsizesuffix]
>
> \stoptypescript
>
>
> \starttypescript [myfont]
>
> \definetypeface [myfont][rm] [serif][sahel] [default]
>
> %% NOTE 2
>
> \definetypeface [myfont][mm] [math] [modern][default]
>
> \stoptypescript
>
>
> \setupbodyfont[myfont,rm]
>
> %% NOTE 3
>
> %\definedfont[Serif]
>
>
> \def\Sample{{\lefttoright Salam} {\righttoleft سلام} }
>
>
> \starttext
>
> rm:\Sample
>
> {\bf bf:\Sample}
>
> {\it it:\Sample}
>
> {\bi bi:\Sample}
>
>
> %% NOTE 4
>
> \definedfont[SahelReg]\Sample
>
> \definedfont[Serif]\Sample
>
>
> \stoptext
> %
>
>
> *Background*:
>
> Commenting/uncommenting some of the lines produces three outputs, only one
> of which seems correct to me.  I have attached the three.  Betas before
> 4/27 always produced the correct solution.
>
> I am using a free open-source Farsi font, whose English glyphs come from
> Open Sans font.  I am attaching the specific versions of the Farsi font to
> reproduce the same results.
> [https://github.com/rastikerdar/sahel-font]
> [https://github.com/google/fonts/tree/master/apache/opensans]
>
>
> *Explanation*:
>
> Compiling the MWE above produces wrong-1.pdf in recent betas.  The serif
> font has not been set up properly on the first line of output.  Instead the
> default Latin Modern has been used, which looks different and misses the
> Farsi glyphs.
>
> Strangely there is nothing wrong with the second line of text, which shows
> Serif and SahelReg fonts are both set up just fine.  See "NOTE 4" in the
> MWE.
>
> Replacing the line above "NOTE 1" with the line below it—i.e., if I remove
> the fallbacks for definition of SahelReg—generates correct.pdf as output.
> I get the same correct output if uncomment the line below "NOTE 3," which
> should be a no-op in my opinion.  Notice that setting the fallback for
> bold, italic and bold italic has not caused any issues.  It's only the
> serif itself that's acting up weirdly.
>
> Finally when I comment the math definition below "NOTE 2," I get
> wrong-2.pdf as output.  Here everything seems okay except that the serif on
> the first line—but strangely not on the second line—misses the Arabic
> features: the letters are not joined.
>
>
> I spent quite some time investigating the changes to the GitHub
> repository on 4/27, to pinpoint what might have caused this issue, but my
> efforts didn't go anywhere.  I hope you can spot the issue.
>
>
> Thanks a lot for your attention!
> —MHB
>
>
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] \start pagefigure not working as expected

2017-05-25 Thread cryo shock
Hi Andrés,

The problem with \insertpages is that it inserts pages as layers, which
means that header, footer and page numbers will be printed on it as well.
That's what I don't want, and also your suggested link points to me to
\insertpage in my case:

"Please note that the inserted pages will be placed on your ConTeXt pages
like a new "layer", or floating object. This means that your existing
headers, footers, crop marks will still be printed on top of or behind the
inserted pages.
*If you want to insert pages as completely independent pages between your
existing ConTeXt pages, use\startpagefigure
<http://wiki.contextgarden.net/Command/startpagefigure>.*"

But the command \startpagefigure doesn't work as described on the wiki...

2017-05-25 20:48 GMT+02:00 Andres Conrado <ela...@chiquitico.org>:

>  I think you need to use \insertpages instead. Check this out:
> http://wiki.contextgarden.net/Command/insertpages
>
> Andrés Conrado Montoya
> http://chiquitico.org
>
> 
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/
> listinfo/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] getting the glyph of a character

2017-05-01 Thread Jeong Dal
Dear all.

At page 50-52 of  the manual of metapost, “Mpman”, it is explained to get a 
glyph of font using the command ‘glyph'.
glyph ⟨numeric expression⟩ of ⟨string expression⟩ 

glyph ⟨string expression⟩ of ⟨string expression⟩ . 

Is it possible to do the similar thing in metafun?

I couldn’t make it happen using the following code.

\startbuffer[outline]
%fontmapfile "=lm-ec.map";
  picture q;
  path p;
  interim ahlength := 12bp;
  interim ahangle := 25;
  q := glyph 100 of "ArialMT"; %nfont defaultfont  scaled defaultscale;
 draw q;
\stopbuffer

\starttext
\processMPbuffer[outline]
\stoptext

if the first line “fontmapfile …” is alive, then fatal error occurred.
Without it, it is running without error, but no output at all.

I copied the sample code in mpman below.

Thank you for reading.

Best regards,

Dalyoung



fontmapfile “=lm-ec.map”;
beginfig(56);
  picture q;
  path p;
  interim ahlength := 12bp;
  interim ahangle := 25;
  q := glyph "Dcaron" of "ec-lmr10" scaled .2;
  for item within q:
p := pathpart item;
drawarrow p withcolor (.6,.9,.6)
withpen pencircle scaled 1.5;
for j=0 upto length p:
  pickup pencircle scaled .7;
  draw (point j of p -- precontrol j of p)
  dashed evenly withcolor blue;
  draw (point j of p -- postcontrol j of p)
  dashed evenly withcolor blue;
  pickup pencircle scaled 3;
  draw precontrol j of p withcolor red;
  draw postcontrol j of p withcolor red;
  pickup pencircle scaled 2;
  draw point j of p withcolor black;
endfor
  endfor
endfig; 

 



> 2017. 4. 30. 오후 7:00, ntg-context-requ...@ntg.nl 작성:
> 
> Send ntg-context mailing list submissions to
>   ntg-context@ntg.nl
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>   https://mailman.ntg.nl/mailman/listinfo/ntg-context
> or, via email, send a message with subject or body 'help' to
>   ntg-context-requ...@ntg.nl
> 
> You can reach the person managing the list at
>   ntg-context-ow...@ntg.nl
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ntg-context digest..."
> 
> 
> Today's Topics:
> 
>   1. Re: Wrong redirection in contextgarden.net (Mojca Miklavec)
>   2. Re: Wrong redirection in contextgarden.net (Nicola)
>   3. Re: Wrong redirection in contextgarden.net (Mojca Miklavec)
>   4. High-level command for translated names (Henri Menke)
>   5. Re: High-level command for translated names (Wolfgang Schuster)
> 
> 
> --
> 
> Message: 1
> Date: Sat, 29 Apr 2017 18:05:14 +0200
> From: Mojca Miklavec <mojca.miklavec.li...@gmail.com>
> To: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Subject: Re: [NTG-context] Wrong redirection in contextgarden.net
> Message-ID:
>   <calbomsbtkzqwa9k7vfnjoyacumyc3xs8hu9gg-pyx-yxmbx...@mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
> 
> On 29 April 2017 at 09:47, Nicola wrote:
>> For a while now, when I connect to contextgarden.net, I get redirected
>> to wiki.contextgarden.net// (note the double slash). Is it just me, or
>> something to be fixed in the web site?
> 
> The server uses
>RedirectMatch permanent ^(.*)$ http://wiki.contextgarden.net/$1
> 
> I'm looking for a better suggestion.
> 
> Mojca
> 
> 
> --
> 
> Message: 2
> Date: Sat, 29 Apr 2017 20:25:20 +0200
> From: Nicola <nvitacolo...@gmail.com>
> To: ntg-context@ntg.nl
> Subject: Re: [NTG-context] Wrong redirection in contextgarden.net
> Message-ID: <oe2lqb$ehk$1...@blaine.gmane.org>
> Content-Type: text/plain; charset=utf-8; format=flowed
> 
> On 29/04/2017 18:05, Mojca Miklavec wrote:
>> On 29 April 2017 at 09:47, Nicola wrote:
>>> For a while now, when I connect to contextgarden.net, I get redirected
>>> to wiki.contextgarden.net// (note the double slash). Is it just me, or
>>> something to be fixed in the web site?
>> 
>> The server uses
>>RedirectMatch permanent ^(.*)$ http://wiki.contextgarden.net/$1
>> 
>> I'm looking for a better suggestion.
> 
> Wouldn't just
> 
>   Redirect permanent / http://wiki.contextgarden.net/
> 
> do? (It may be recursive if the virtual host is the same.)
> 
> If not, how about:
> 
> RedirectMatch permanent ^/(.*)$ http://wiki.contextgarden.net/$1
> 
> As a last resource, mod_rewrite should work:
> 
> RewriteEngine on
> RewriteCond %{HTTP_HOST} ^contextgarden\.net$ [NC]
> RewriteRule ^(.*)$ http://wiki.contextgarden.net/$1 [R=301,L]
> 
> Nicola
> 
> 
> 
> 
> --
> 
> Message: 3
> Date: Sat, 29 Apr 2017 21:29:06 +0200
> From: Mojca Miklavec <mojca.miklavec.li...@gmail.com>
> To: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Subject: Re: [NTG-context] Wrong redirection in contextgarden.net
> Message-ID:
>   

Re: [NTG-context] Wrong redirection in contextgarden.net

2017-04-30 Thread EEva
Same here, maybe a misconfiguration.

Le 29/04/17 à 09:47, Nicola a écrit:
> For a while now, when I connect to contextgarden.net, I get redirected
> to wiki.contextgarden.net// (note the double slash). Is it just me, or
> something to be fixed in the web site?
> 
> Nicola
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___


signature.asc
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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 redirection in contextgarden.net

2017-04-29 Thread Mojca Miklavec
On 29 April 2017 at 20:25, Nicola <nvitacolo...@gmail.com> wrote:
> On 29/04/2017 18:05, Mojca Miklavec wrote:
>>
>> On 29 April 2017 at 09:47, Nicola wrote:
>>>
>>> For a while now, when I connect to contextgarden.net, I get redirected
>>> to wiki.contextgarden.net// (note the double slash). Is it just me, or
>>> something to be fixed in the web site?
>>
>>
>> The server uses
>> RedirectMatch permanent ^(.*)$ http://wiki.contextgarden.net/$1
>>
>> I'm looking for a better suggestion.
>
> Wouldn't just
>
>   Redirect permanent / http://wiki.contextgarden.net/
>
> do? (It may be recursive if the virtual host is the same.)
>
> If not, how about:
>
> RedirectMatch permanent ^/(.*)$ http://wiki.contextgarden.net/$1
>
> As a last resource, mod_rewrite should work:
>
> RewriteEngine on
> RewriteCond %{HTTP_HOST} ^contextgarden\.net$ [NC]
> RewriteRule ^(.*)$ http://wiki.contextgarden.net/$1 [R=301,L]

Thank you for suggestions, I'll do some testing.

In case I forget, please remind me about this after the 4th May. We
currently have as good as no internet connectivity and I would hate to
break the server while experimenting and then being unable to do
anything afterwards.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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 redirection in contextgarden.net

2017-04-29 Thread Nicola

On 29/04/2017 18:05, Mojca Miklavec wrote:

On 29 April 2017 at 09:47, Nicola wrote:

For a while now, when I connect to contextgarden.net, I get redirected
to wiki.contextgarden.net// (note the double slash). Is it just me, or
something to be fixed in the web site?


The server uses
RedirectMatch permanent ^(.*)$ http://wiki.contextgarden.net/$1

I'm looking for a better suggestion.


Wouldn't just

  Redirect permanent / http://wiki.contextgarden.net/

do? (It may be recursive if the virtual host is the same.)

If not, how about:

RedirectMatch permanent ^/(.*)$ http://wiki.contextgarden.net/$1

As a last resource, mod_rewrite should work:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^contextgarden\.net$ [NC]
RewriteRule ^(.*)$ http://wiki.contextgarden.net/$1 [R=301,L]

Nicola


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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 redirection in contextgarden.net

2017-04-29 Thread Mojca Miklavec
On 29 April 2017 at 09:47, Nicola wrote:
> For a while now, when I connect to contextgarden.net, I get redirected
> to wiki.contextgarden.net// (note the double slash). Is it just me, or
> something to be fixed in the web site?

The server uses
RedirectMatch permanent ^(.*)$ http://wiki.contextgarden.net/$1

I'm looking for a better suggestion.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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 redirection in contextgarden.net

2017-04-29 Thread Mohammad Hossein Bateni
yeah, I've had this problem awhile too.

On Sat, Apr 29, 2017 at 3:47 AM, Nicola <nvitacolo...@gmail.com> wrote:

> For a while now, when I connect to contextgarden.net, I get redirected
> to wiki.contextgarden.net// (note the double slash). Is it just me, or
> something to be fixed in the web site?
>
> Nicola
>
> 
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/list
> info/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] Wrong redirection in contextgarden.net

2017-04-29 Thread Nicola

For a while now, when I connect to contextgarden.net, I get redirected
to wiki.contextgarden.net// (note the double slash). Is it just me, or
something to be fixed in the web site?

Nicola

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] Problem loading a DLL with the latest Ctx beta

2017-04-06 Thread Akira Kakuto

How exactly do you mean to combine "ffi" and
"--shell-escape" to work with latest ConTeXt/LuaTeX?


In usual luatex, ffi needs --shell-escape, since ffi
is dangerous from the point of view of the security.
As you know, ConTeXt allows --shell-escape, so the
following works with context test.tex.

%
% context test.tex
%
\starttext
\placeformula
\startformula
j_1(2.387) =
\startluacode
 local ffi = require("ffi")
 ffi.cdef[[
   double _j1(double x);
 ]]
 local mscrt = ffi.load("msvcrt")
 tex.print(mscrt._j1(2.387))
\stopluacode
\stopformula
\stoptext

In the above example, a function _j1(x) in msvcrt.dll
is evaluated. The msvcrt.dll must be loaded as above,
because standard C library is linked statically.
The following DLLs can be used without loading,
because luatex knows them:

SHLWAPI.dll
WSOCK32.dll
USER32.dll
ADVAPI32.dll
SHELL32.dll
KERNEL32.dll
WS2_32.dll
GDI32.dll

Note that you may not be able to use "DLL Lua Modules"
in this way.  I don't know details. Try various cases.

Best,
Akira

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] Aligning subsection head with following paragraph in tagged pdf output

2017-04-01 Thread Pablo Rodriguez
On 04/01/2017 05:32 PM, Rik Kabel wrote:
> On 2017-04-01 00:10, Todd DeVries wrote:
>> Thanks for your assistance.  Was unaware of using the setupheads
>> command incorrectly.  Good information to have.  I am still not
>> able to produce an automatic period (.) at the end of the section
>> title using the after keyword.  is this correct?
> 
> Seems to be. While before= is honored, after= is not. This looks like an 
> inconsistency that can be addressed.

Hi Todd,

this will give the output you like:

\setuppapersize[letter]
\setuptagging[state=start]
\setuphead[subsection][style=\bf, number=no, commandafter={.~},
 textdistance=0cm, alternative=text]
\starttext
\startsubsection[title=First Subsection]
\input knuth
\stopsubsection
\stoptext

>>> alternative=text is working, but \startparagraph is starting a
>>> new paragraph after the heading.  \start\stopparagraph is not
>>> happy with the text alternative.
>> I am wondering if this is just not going to work with the tagging
>> subsystem.  The subsection aligns if I remove the start/stop
>> paragraph following the heading.  But if I add a second paragraph
>> in that subsection it breaks again.
> 
> Example, please. I have no problem adding a start/stopparagraph after 
> your knuth. (Note that the knuth has to be terminated in a \par or a 
> blank line. That is because of the construction of that input file.)

Add a sample, otherwise we might speculate about what you’re aiming at.

Tagging PDFs the way you seem to be trying might be impossible. Here is
my sample:

\setuppapersize[letter]
\setuptagging[state=start]
\starttext
\startsubsection[title=First Subsection]
\startparagraph a\stopparagraph
\startparagraph b\stopparagraph
\startparagraph c\stopparagraph
\stopsubsection
\stoptext

Both paragraphs and headings are block elements (I have just checked it
at
https://wwwimages2.adobe.com/content/dam/Adobe/en/devnet/pdf/pdfs/PDF32000_2008.pdf#page=585).
Block elements cannot contain other block elements inside.

Displaying block elements as inline elements, if not contradictory,
might be misleading, at least.

>> I use tagged pdfs for output
>> because they are more accessible with my screen reader.  Without
>> tagging, all one gets is long blocks of undifferentiated text.
>> With the correct tags, paragraphs, headings, lists, and tables
>> get created that make more sense with auditory output.  To my
>> knowledge, ConTeXt is the only alternative for producing
>> accessible pdfs beyond working with Acrobat pro or MS.  Word.
>> After writing a 70-page academic project in Word, I'm seeking
>> alternatives!

This is an issue about text structure. We speak of block elements
because they have vertical space between them (even if set to none).

>> Perhaps one can just use in-paragraph bolding and mark that text
>> for the table of contents as an alternative.  This is required
>> for heading level 3 content in APA style.
> 
> For now that might be best as long as you do not need to reference them 
> in a table of contents (not required by APA, as I read the standard, 
> although perhaps an added requirement from your publisher).

It seems that H3 should be a block element, not an inline element inside
P (according to most XML implementations, I’d say).

Why do you need in-line titles?

But I may be missing something, correct me if I’m wrong.

Sorry for the bad news,

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] Aligning subsection head with following paragraph in tagged pdf output

2017-04-01 Thread Rik Kabel

On 2017-04-01 00:10, Todd DeVries wrote:

Thanks for your assistance.  Was unaware of using the setupheads
command incorrectly.  Good information to have.  I am still not
able to produce an automatic period (.) at the end of the section
title using the after keyword.  is this correct?


Seems to be. While before= is honored, after= is not. This looks like an 
inconsistency that can be addressed.




On Friday, March 31, 2017, 7:01:28 PM, Rik writes:


alternative=text is working, but \startparagraph is starting a
new paragraph after the heading.  \start\stopparagraph is not
happy with the text alternative.

I am wondering if this is just not going to work with the tagging
subsystem.  The subsection aligns if I remove the start/stop
paragraph following the heading.  But if I add a second paragraph
in that subsection it breaks again.


Example, please. I have no problem adding a start/stopparagraph after 
your knuth. (Note that the knuth has to be terminated in a \par or a 
blank line. That is because of the construction of that input file.)



I use tagged pdfs for output
because they are more accessible with my screen reader.  Without
tagging, all one gets is long blocks of undifferentiated text.
With the correct tags, paragraphs, headings, lists, and tables
get created that make more sense with auditory output.  To my
knowledge, ConTeXt is the only alternative for producing
accessible pdfs beyond working with Acrobat pro or MS.  Word.
After writing a 70-page academic project in Word, I'm seeking
alternatives!

Perhaps one can just use in-paragraph bolding and mark that text
for the table of contents as an alternative.  This is required
for heading level 3 content in APA style.


For now that might be best as long as you do not need to reference them 
in a table of contents (not required by APA, as I read the standard, 
although perhaps an added requirement from your publisher).



Thanks for your assistance.  I'm a newbie and appreciate the
help.

Todd


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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 MTPro2 math Fonts with ConTeXt

2017-03-27 Thread Jean-Pierre Delange
Andres,

1) If you are using Microsoft Windows, you have to set up the font directory 
before using ConTeXt, where you have placed your Maths fonts (i.e. in 
c:/windows/fonts) :
set OSFONTDIR=c:/windows/fonts
then type the following in a console ( in this directory : 
~/context/tex/texmf-win64/bin) :

context --generate
context --make

and :
mtxrun --script fonts --reload

Then test a file.

2) Note that if your are using some Linux like OS, to set up fonts is quite 
different :
export 
OSFONTDIR=~/home/user/.fonts//:/usr/share/fonts:/usr/share/texmf/fonts/opentype/:/usr/share/texmf/fonts/truetype/:/usr/share/fonts/type1/

As you see, it is better to place the different kind of fonts in a directory in 
/usr/share/fonts (and in /home/your-user-name/.fonts)

Then :
context --generate
context --make

and :
mtxrun --script fonts --reload

Then test a file.

3) You can delete the font's cache by the following command (it works on both 
Windows and Linux) :
fc-cache -v -f

Then try again a test file.

JP


- Mail original -
De: "Andres Conrado Montoya" <andresconr...@gmail.com>
À: ntg-context@ntg.nl
Envoyé: Lundi 27 Mars 2017 10:34:09
Objet: [NTG-context] Using MTPro2 math Fonts with ConTeXt



Hello, List. 


I am using the MTPro2 complete fonts (provided by the publisher house) for 
typesetting some math books in LaTeX this year. I also want to use ConTeXt to 
typeset other math books, those that don't come originally in LaTeX. However, 
the publisher requires that I use the MTPro2 fonts for math, and I've tried 
using the clues presentend in 
https://mailman.ntg.nl/pipermail/ntg-context/2013/075938.html to install, but 
with no avail. Fonts were placed in "context/tex/texmf-local", preserving 
folder structure; "mtxrun --generate && mtxrun --script fonts --reload" was 
called after. When that didn't work, tried placing the type1 and tfm folders in 
my fonts folder (that is called by OSFONTDIR), and again, reload the fonts, but 
they just don't figure in the list provided by "mtxrun --script fonts --list 
--all --name --pattern=*". I have not found a way of using this font in 
ConTeXt, and I really need it (or will be just LaTeX for now). 


Thanks in advance. 









Andrés Conrado Montoya 
Andi Kú 
andresconr...@gmail.com 
http://sesentaycuatro.com 
http://messier87.com 
http://chiquitico.org 
 
Los fines no justifican los medios, porque la medida verdadera de nuestro 
carácter está dada por los medios que estamos dispuestos a utilizar, no por los 
fines que proclamamos. 
 


“You develop an instant global consciousness, a people orientation, an intense 
dissatisfaction with the state of the world, and a compulsion to do something 
about it. From out there on the moon, international politics look so petty. You 
want to grab a politician by the scruff of the neck and drag him a quarter of a 
million miles out and say, ‘Look at that, you son of a bitch.’” — Apollo 14 
astronaut Edgar Mitchell 
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] display current section number in \writestatus

2017-03-09 Thread Rik Kabel

On 2017-03-09 16:20, Hans Hagen wrote:

On 3/9/2017 4:39 AM, Rik Kabel wrote:

ConTeXters,

What is the best way to get the current section number in a basic format
(pt.ch.s.ss... as displayed in the log in structure sectioning entries)
for display in a custom log entry (via \writestatus)? I have tried
\fullheadnumber and such, but cannot find something appropriate.


\writestatus{!!}{\getfullstructurenumber{\thenamedheadlevel{subsection}}} 





Nope. With commands like these:

   \starttexdefinition LogNote #NOTETEXT
   
\writestatus{Note}{{\getfullstructurenumber{\thenamedheadlevel{section}}:p.\pagenumber}
   #NOTETEXT}
   \stoptexdefinition

   \LogNote{See http://www.thelatinlibrary.com/ter.eunuchus.html for
   the original.}

and the note is in a section, I get:

   Note> {\oldstylenumerals {1}\color
   [red]{A·}\oldstylenumerals {8}:p.19} See
   http://www.thelatinlibrary.com/ter.eunuchus.html for the original.


which reflects the formatting of the chapter and section numbers. But 
worse, I have to track the section depth, because if the note is at a 
different level there is nothing displayed for the sectioning. I want 
the unformatted numbers as displayed in


   structure   > sectioning > section @ level 3 : 1.3.5 -> Group
   authorship and works for hire


and if I do not have to track the level and recurse to pick up each 
component that would be better.


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] issue with linenotes and luatex-1.0.3

2017-02-25 Thread Hans Hagen

On 2/25/2017 4:56 PM, Pablo Rodriguez wrote:

On 02/25/2017 04:19 PM, Hans Hagen wrote:

On 2/25/2017 1:09 PM, Pablo Rodriguez wrote:

[...]
The spacebefore option from \setupnotes was intended to improve the
situation. No matter whether \setupnotes is used or not, luatex-1.0.3
gets wrong results.

Could anyone confirm the bug or tell me what I’m doing wrong?


fixed in next beta


Many thanks for the fix, Hans.


actually one can expect differences because in the case of multiple note
classes spacing is done better when there's nothing (basically we have
better control over the main before and individual befores


Sorry, I don’t get it. Does ConTeXt have better control over the main
before than the individual ones? (I’m only guessing.)


you only want a larger (when set) space before the first flushed set of 
notes but still control spacing between sets of notes ... anyway, if you 
never noticed that problem you probably also won't notice the difference 
so don't worry (this was most noticeable in grids)



-
  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] issue with linenotes and luatex-1.0.3

2017-02-25 Thread Pablo Rodriguez
On 02/25/2017 04:19 PM, Hans Hagen wrote:
> On 2/25/2017 1:09 PM, Pablo Rodriguez wrote:
>> [...]
>> The spacebefore option from \setupnotes was intended to improve the
>> situation. No matter whether \setupnotes is used or not, luatex-1.0.3
>> gets wrong results.
>>
>> Could anyone confirm the bug or tell me what I’m doing wrong?
> 
> fixed in next beta

Many thanks for the fix, Hans.

> actually one can expect differences because in the case of multiple note 
> classes spacing is done better when there's nothing (basically we have 
> better control over the main before and individual befores

Sorry, I don’t get it. Does ConTeXt have better control over the main
before than the individual ones? (I’m only guessing.)

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] issue with linenotes and luatex-1.0.3

2017-02-25 Thread Hans Hagen

On 2/25/2017 1:09 PM, Pablo Rodriguez wrote:

Dear list,

I have a text with two kinds of linenotes (http://www.ousia.tk/hefes.tex).

If I compile with latest beta (2017.02.23 18:37), I get wrong separation
from body in many pages (http://www.ousia.tk/hefes.pdf). Only page 5
might be be right in this point.

But if I use beta from 2017.01.27 14:39 (which comes with luatex-1.0.0
[at least in Linux 32bit]), linenote separation from body is much better
(http://www.ousia.tk/hefes-nospacebefore.pdf).

The spacebefore option from \setupnotes was intended to improve the
situation. No matter whether \setupnotes is used or not, luatex-1.0.3
gets wrong results.

Could anyone confirm the bug or tell me what I’m doing wrong?


fixed in next beta

actually one can expect differences because in the case of multiple note 
classes spacing is done better when there's nothing (basically we have 
better control over the main before and individual befores


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

2017-02-13 Thread Peter Rolf
Am 11.02.2017 um 01:25 schrieb Hans Hagen:
> On 2/10/2017 2:56 PM, Peter Rolf wrote:
>> Hi,
>>
>> I tried to set some PDF boxes properly, but no luck (setupcanvas).
>> After searching the mailing archive from 2015 I found this (broken)
>> example. Is this still the official method to set the crop|trim|bleed
>> boxes?
> 
> controlled by:
> 
> \setupinteractionscreen
>[width=max,height=max]
>

Thanks for the pointer. Kind of works now, but the height calculation
seems to be broken. The crop-|trimbox height is smaller than the defined
paper height. If I disable the mechanism (comment
\setupinteractionscreen) I get the correct sizes (paper on printpaper).

As always the real world example is too big and complex, I attached a
smaller one (but with the same sizes).


ps:

For all interested, here is the link to that table (best viewed on a UHD
monitor).
https://spideroak.com/browse/share/indiego/public/Titanfall2/

There's still a bug in the (combined) table header on page one, which
inserts an unwanted extra column. Checked the numbers several times, no
error found on my side. Currently I use the extra column as right frame,
wanted to add one anyway. First attempts to make a minimal example
failed, seems to be more complex (need to also add fonts, table
content?). Will report back when done.


> to be wikified
>

aye

>> -
>> \showframe
>>
>> \setuplayout
>>[location=middle,
>> width=middle,
>> height=middle,
>> cropoffset=auto,
>> trimoffset=1bp,
>> bleedoffset=2bp,
>> artoffset=2bp]
>>
>>  \setupbackend
>>[level=0]
>>
>> \starttext
>>
>> \definepapersize[TestA][width=100bp,height=200bp]
>> \definepapersize[TestB][width=150bp,height=250bp]
>>
>> \setuppapersize[TestA][TestB]
>>
>> test
>>
>> \stoptext
>> -
>>
>> ConTeXt version 2017.01.27 gives
>>
>> [..]
>> 10 0 obj
>> <> 250]/CropBox [ 0 0 150 250 ] /TrimBox [ 0 0 150 250 ]/Parent 13 0 R>>
>> endobj
>> [..]
>>
>>
>>
>> One additional note. The Mediabox precision seems to be 5 now (and not
>> 4). Taken from my latest table using TeXpage (/MediaBox[0 0 1655.39105
>> 969.22291]). The precision value for the other boxes should be adjusted
>> to avoid rounding problems (?Box < MediaBox).
>>
>> [lpdf-mis.lua]
>> [..]
>> -- temp hack: the mediabox is not under our control and has a precision
>> of 4 digits
>>
>> local factor  = number.dimenfactors.bp
>> local f_value = formatters["%0.4F"]
>> [..]
>>
>>
>> Not in a hurry, fix (or advice) is welcome at any time :D
>>
>>
>> Best wishes,  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
>> ___
>>
>>
> 
> 


% dimens are taken from the final tables (TEXpage)
\newdimen\tableAwidth
\newdimen\tableAheight
\tableAwidth= 1655.39105bp
\tableAheight= 969.22291bp
\definepapersize[tableA][width=\tableAwidth, height=\tableAheight]

\newdimen\tableBwidth
\newdimen\tableBheight
\tableBwidth= 698.65893bp
\tableBheight= 489.67048bp
\definepapersize[tableB][width=\tableBwidth, height=\tableBheight]
 

\definelayout[tableA]
  [location=middle,
   width=middle,
   height=middle,
   paper=tableA,
%   clipoffset=0mm,
%   horoffset=0mm,
%   veroffset=0mm,
   cropoffset=auto,
   trimoffset=2bp,
   bleedoffset=3mm,
   marking=on,
   backspace=0mm,
%   bottom=0mm,
%   bottomdistance=0mm,
   bottomspace=0mm,
   cutspace=0mm,
   footer=0mm,
   footerdistance=0mm,
   header=0mm,
   headerdistance=0mm,
   leftedge=0mm,
   leftedgedistance=0mm,
   leftmargin=0mm,
   leftmargindistance=0mm,
   margin=0mm,
   rightedge=0mm,
   rightedgedistance=0mm,
   rightmargin=0mm,
   rightmargindistance=0mm,
   textdistance=0mm,
   textmargin=0mm,
%   top=0mm,
%   topdistance=0mm,
   topspace=0mm,
  ]

\definelayout[tableB]
  [location=middle,
   width=middle,
   height=middle,
   paper=tableB,
   clipoffset=0bp,
   cropoffset=auto,
   trimoffset=2bp,
   bleedoffset=3mm,
   marking=on,
   backspace=0mm,
%   bottom=0mm,
%   bottomdistance=0mm,
   bottomspace=0mm,
   cutspace=0mm,
   footer=0mm,
   footerdistance=0mm,
   

Re: [NTG-context] pdfboxes

2017-02-10 Thread Hans Hagen

On 2/10/2017 2:56 PM, Peter Rolf wrote:

Hi,

I tried to set some PDF boxes properly, but no luck (setupcanvas).
After searching the mailing archive from 2015 I found this (broken)
example. Is this still the official method to set the crop|trim|bleed boxes?


controlled by:

\setupinteractionscreen
   [width=max,height=max]

to be wikified


-
\showframe

\setuplayout
   [location=middle,
width=middle,
height=middle,
cropoffset=auto,
trimoffset=1bp,
bleedoffset=2bp,
artoffset=2bp]

 \setupbackend
   [level=0]

\starttext

\definepapersize[TestA][width=100bp,height=200bp]
\definepapersize[TestB][width=150bp,height=250bp]

\setuppapersize[TestA][TestB]

test

\stoptext
-

ConTeXt version 2017.01.27 gives

[..]
10 0 obj
<>
endobj
[..]



One additional note. The Mediabox precision seems to be 5 now (and not
4). Taken from my latest table using TeXpage (/MediaBox[0 0 1655.39105
969.22291]). The precision value for the other boxes should be adjusted
to avoid rounding problems (?Box < MediaBox).

[lpdf-mis.lua]
[..]
-- temp hack: the mediabox is not under our control and has a precision
of 4 digits

local factor  = number.dimenfactors.bp
local f_value = formatters["%0.4F"]
[..]


Not in a hurry, fix (or advice) is welcome at any time :D


Best wishes,  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
___




--

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

2017-02-10 Thread Peter Rolf
Hi,

I tried to set some PDF boxes properly, but no luck (setupcanvas).
After searching the mailing archive from 2015 I found this (broken)
example. Is this still the official method to set the crop|trim|bleed boxes?

-
\showframe

\setuplayout
   [location=middle,
width=middle,
height=middle,
cropoffset=auto,
trimoffset=1bp,
bleedoffset=2bp,
artoffset=2bp]

 \setupbackend
   [level=0]

\starttext

\definepapersize[TestA][width=100bp,height=200bp]
\definepapersize[TestB][width=150bp,height=250bp]

\setuppapersize[TestA][TestB]

test

\stoptext
-

ConTeXt version 2017.01.27 gives

[..]
10 0 obj
<>
endobj
[..]



One additional note. The Mediabox precision seems to be 5 now (and not
4). Taken from my latest table using TeXpage (/MediaBox[0 0 1655.39105
969.22291]). The precision value for the other boxes should be adjusted
to avoid rounding problems (?Box < MediaBox).

[lpdf-mis.lua]
[..]
-- temp hack: the mediabox is not under our control and has a precision
of 4 digits

local factor  = number.dimenfactors.bp
local f_value = formatters["%0.4F"]
[..]


Not in a hurry, fix (or advice) is welcome at any time :D


Best wishes,  Peter

\showframe

\setuplayout
   [location=middle,
width=middle,
height=middle,
cropoffset=auto,
trimoffset=1bp,
bleedoffset=2bp,
artoffset=2bp]

 \setupbackend
   [level=0]
   
\starttext

\definepapersize[TestA][width=100bp,height=200bp]
\definepapersize[TestB][width=150bp,height=250bp]

\setuppapersize[TestA][TestB]

test

\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] \Umathquad\displaystyle not set

2017-02-09 Thread Kumar Appaiah
On Thu, Feb 9, 2017 at 2:31 AM, Aditya Mahajan <adit...@umich.edu> wrote:
> On Wed, 8 Feb 2017, Kumar Appaiah wrote:
>
>> Dear ConTeXt users,
>>
>> I have a custom slide template that I borrowed from another source
>> years ago. It works well on my Debian machine, but when I try to build
>> the PDF on a docker vm on Gitlab, I run into the
>> \Umathquad\displaystyle not set error. Surprisingly, that error
>
>
> This usually means a missing math font.
>
> Note that your log file says
>
> fonts   > typescripts > unknown library 'neoeuler'
>
> Have you installed the font in your docker image?

Thanks Aditya. Indeed, euler.otf was missing.

BTW, did I steal this slide style from you, by any chance? I couldn't
find out from a cursory search.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] \Umathquad\displaystyle not set

2017-02-08 Thread Aditya Mahajan

On Wed, 8 Feb 2017, Kumar Appaiah wrote:


Dear ConTeXt users,

I have a custom slide template that I borrowed from another source
years ago. It works well on my Debian machine, but when I try to build
the PDF on a docker vm on Gitlab, I run into the
\Umathquad\displaystyle not set error. Surprisingly, that error


This usually means a missing math font.

Note that your log file says

fonts   > typescripts > unknown library 'neoeuler'

Have you installed the font in your docker image?

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

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

Re: [NTG-context] URL styling in btx bibliography

2017-02-04 Thread Alan Braslau
On Sat, 4 Feb 2017 09:10:33 -0700
Alan Braslau <alan.bras...@cea.fr> wrote:

> On Fri, 3 Feb 2017 17:26:35 -0500
> Rik Kabel <cont...@rik.users.panix.com> wrote:
> 
> > Is there a user-level control for the styling of urls in the new 
> > bibliography system? I use
> > 
> > \setupurl[style=\addff{f:ns}\ss]
> > 
> > (where f:ns is a fontfeature definition for lining/new style
> > numerals) for the rest of the document. The bibliography honors this
> > formatting for urls present in bibtex note entries, but persists in
> > serif and oldstyle (the document defaults) for urls provided by
> > bibtex url entries.
> 
> The bibliography specifications use the command \hyphenatedurl{} to
> flush the url (or doi) field.
> 
> Alan

Hans,

This should probably be replaced by \url[]?

Alan

\unexpanded\def\url[#label]% move \hyphenatedurl to lua end (is already lua)
{\dontleavehmode
   \begingroup
   \useurlstyleandcolor\c!style\c!color
   \hyphenatedurl{\clf_geturl{#label}}%
   \endgroup}
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] URL styling in btx bibliography

2017-02-04 Thread Alan Braslau
On Fri, 3 Feb 2017 17:26:35 -0500
Rik Kabel <cont...@rik.users.panix.com> wrote:

> Is there a user-level control for the styling of urls in the new 
> bibliography system? I use
> 
> \setupurl[style=\addff{f:ns}\ss]
> 
> (where f:ns is a fontfeature definition for lining/new style
> numerals) for the rest of the document. The bibliography honors this
> formatting for urls present in bibtex note entries, but persists in
> serif and oldstyle (the document defaults) for urls provided by
> bibtex url entries.

The bibliography specifications use the command \hyphenatedurl{} to
flush the url (or doi) field.

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] URL styling in btx bibliography

2017-02-03 Thread Rik Kabel

ConTeXters,

Is there a user-level control for the styling of urls in the new 
bibliography system? I use


   \setupurl[style=\addff{f:ns}\ss]

(where f:ns is a fontfeature definition for lining/new style numerals) 
for the rest of the document. The bibliography honors this formatting 
for urls present in bibtex note entries, but persists in serif and 
oldstyle (the document defaults) for urls provided by bibtex url entries.


--
Rik

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] index(register) from an XML source

2017-01-14 Thread Alan Braslau
On Sat, 14 Jan 2017 15:52:25 +0100
MF <mass...@fastwebnet.it> wrote:

> Now an alternative approach I thought, because the index I'm working
> on is a biographical index, I mean a index of cited people, with a
> biographical profile.

One can create an index with the publications module as follows:

\defineregister
  [indexofauthors]

\definebtrxregister
  [authors]
  [field=author,
   register=indexofauthors,
   method=always,
   dataset=default,
   alternative=invertedshort]

...

\placeregister [indexofauthors] [compress=yes]

This will create an index of all \cited authors. Note that one can index
any field, for example title or keywords would be useful. I have not
thought about how to add a biographical profile.

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] integral symbol

2016-12-28 Thread Hans Hagen

On 12/28/2016 2:02 PM, Fabrice Couvreur wrote:

Hi Henri,
Thank you for your suggestion.


The problem with integrals is that they don't adapt because they are not 
wrapped as delimiters (like left/right stuff). If \int were a command 
taking an argument it would be easier. As in:



\starttext

\setupmathextensible[integral][rightoffset=-3mu,exact=yes,factor=2]

\startlines
\ruledhbox{$\integral   f\frac{1}{2}$}
\ruledhbox{$\integral[factor=1] f\frac{1}{2}$}
\ruledhbox{$\integral[factor=3] f\frac{1}{2}$}
\stoplines

\startformula
a =
\autointegral{t}{b}1 +
\autointegral{t}{b}{\frac{\frac{3}{4}}{\frac{1}{2}}} +
\autointegral{t}{b}{\frac{\frac{\frac{\frac{1}{2}}{2}}{2}}{2}}
\stopformula

\stoptext




Fabrice

2016-12-28 12:19 GMT+01:00 Henri Menke <henrime...@gmail.com
<mailto:henrime...@gmail.com>>:

On 12/28/2016 11:39 AM, Fabrice Couvreur wrote:
> Hello,
> The integral symbol is little in inline math mode. Is it possible to have 
it bigger ?
> thank you,
> Fabrice
>
> \definetypeface [mainface] [rm]
>[serif] [palatino][default]   [encoding=texnansi]
>
> \definetypeface [mainface] [ss]
>[sans]  [helvetica]   [default]   [encoding=texnansi]
>
> \definetypeface [mainface] [tt]
>[mono]  [palatino][default]   [encoding=texnansi]
>
> \definetypeface [mainface] [mm]
>[math]  [palatino][default]   [encoding=texnansi]
>
> \setupbodyfont[mainface,11pt]
>
> \starttext
>
> L'aire hachurée se note \math{\int_1^3 k(x)\mathop{dx}}.

    \math{\displaystyle\int_1^3 k(x)\diff x}

>
> L'aire hachurée se note :
>
> \startformula
>   \int_1^3 k(x)\mathop{dx}.
> \stopformula
>
> \stoptext
>
>
>

___
> If your question is of interest to others as well, please add an
entry to the Wiki!
>
> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> /
http://www.ntg.nl/mailman/listinfo/ntg-context
<http://www.ntg.nl/mailman/listinfo/ntg-context>
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
<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 <mailto:ntg-context@ntg.nl> /
http://www.ntg.nl/mailman/listinfo/ntg-context
<http://www.ntg.nl/mailman/listinfo/ntg-context>
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
<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
___




--

-
  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] integral symbol

2016-12-28 Thread Fabrice Couvreur
Hi Henri,
Thank you for your suggestion.
Fabrice

2016-12-28 12:19 GMT+01:00 Henri Menke <henrime...@gmail.com>:

> On 12/28/2016 11:39 AM, Fabrice Couvreur wrote:
> > Hello,
> > The integral symbol is little in inline math mode. Is it possible to
> have it bigger ?
> > thank you,
> > Fabrice
> >
> > \definetypeface [mainface] [rm]
> >[serif] [palatino][default]   [encoding=texnansi]
> >
> > \definetypeface [mainface] [ss]
> >[sans]  [helvetica]   [default]   [encoding=texnansi]
> >
> > \definetypeface [mainface] [tt]
> >[mono]  [palatino][default]   [encoding=texnansi]
> >
> > \definetypeface [mainface] [mm]
> >[math]  [palatino][default]   [encoding=texnansi]
> >
> > \setupbodyfont[mainface,11pt]
> >
> > \starttext
> >
> > L'aire hachurée se note \math{\int_1^3 k(x)\mathop{dx}}.
>
> \math{\displaystyle\int_1^3 k(x)\diff x}
>
> >
> > L'aire hachurée se note :
> >
> > \startformula
> >   \int_1^3 k(x)\mathop{dx}.
> > \stopformula
> >
> > \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
> > 
> ___
> >
>
> 
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/
> listinfo/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] integral symbol

2016-12-28 Thread Henri Menke
On 12/28/2016 11:39 AM, Fabrice Couvreur wrote:
> Hello,
> The integral symbol is little in inline math mode. Is it possible to have it 
> bigger ?
> thank you,
> Fabrice
> 
> \definetypeface [mainface] [rm]
>[serif] [palatino][default]   [encoding=texnansi]
> 
> \definetypeface [mainface] [ss]
>[sans]  [helvetica]   [default]   [encoding=texnansi]
> 
> \definetypeface [mainface] [tt]
>[mono]  [palatino][default]   [encoding=texnansi]
> 
> \definetypeface [mainface] [mm]
>[math]  [palatino][default]   [encoding=texnansi]
> 
> \setupbodyfont[mainface,11pt]
>  
> \starttext
> 
> L'aire hachurée se note \math{\int_1^3 k(x)\mathop{dx}}.

\math{\displaystyle\int_1^3 k(x)\diff x}

> 
> L'aire hachurée se note :
> 
> \startformula
>   \int_1^3 k(x)\mathop{dx}.
> \stopformula
> 
> \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
> ___
> 

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] integral symbol

2016-12-28 Thread Fabrice Couvreur
Hello,
The integral symbol is little in inline math mode. Is it possible to have
it bigger ?
thank you,
Fabrice

\definetypeface [mainface] [rm]
   [serif] [palatino][default]   [encoding=texnansi]

\definetypeface [mainface] [ss]
   [sans]  [helvetica]   [default]   [encoding=texnansi]

\definetypeface [mainface] [tt]
   [mono]  [palatino][default]   [encoding=texnansi]

\definetypeface [mainface] [mm]
   [math]  [palatino][default]   [encoding=texnansi]

\setupbodyfont[mainface,11pt]

\starttext

L'aire hachurée se note \math{\int_1^3 k(x)\mathop{dx}}.

L'aire hachurée se note :

\startformula
  \int_1^3 k(x)\mathop{dx}.
\stopformula

\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] Asymptote or Metapost and ConTeXt parameters.

2016-12-23 Thread Aditya Mahajan

On Sat, 24 Dec 2016, Jaroslav Hajtmar wrote:

It seems now, that everything at this time works as intended. Many 
thanks for your support. Below is a minimal example. Attached is a PDF 
sample result.


Nice to know that it works.

I tried also to experiment with the choice "object = no", as suggested 
by Hans, but without success.


Note that it is "object=no" (without spaces around equal to)


I would asking if you make any changes in filter module?
Or have I misunderstood Your opinion?


I will add the code between \unprotect ... \protect to the filter module after
I have tested it a bit more thoroughly.

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

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

Re: [NTG-context] Asymptote or Metapost and ConTeXt parameters.

2016-12-23 Thread Jaroslav Hajtmar
Hello Adytia.
It seems now, that everything at this time works as intended. Many thanks for 
your support. Below is a minimal example. Attached is a PDF sample result.
I tried also to experiment with the choice "object = no", as suggested by Hans, 
but without success. I would asking  if you make any changes in filter module?
Or have I misunderstood Your opinion? 
Thank you once again
Jaroslav Hajtmar


Here is minimal example:

\usemodule[filter]

\unprotect
\appendtoks
   \setuevalue{set\currentexternalfilter 
buffer}{\externalfilter@set[\currentexternalfilter]}%
\to \everydefineexternalfilter

\unexpanded\def\externalfilter@set
   {\dodoubleargument\externalfiter@set_indeed}

\starttexdefinition externalfiter@set_indeed [#1][#2]#3
% #1 = filter
% #2 = options

\begingroup
\edef\currentexternalfilter{#1}

\setupexternalfilter[#1][\c!name=,#2]

\externalfilter@set_filenames
\setbuffer[\externalfilter@buffer_name]#3\endbuffer

\externalfilter@process_filter
  \stoptexdefinition
\protect

\defineexternalfilter
   [ASY]
   [
 filtercommand={asy -tex context \externalfilterinputfile\space -o 
\externalfilteroutputfile}, output=\externalfilterbasefile.pdf,
 purge=no, 
 cache=yes,
 readcommand=\ReadImage,
   ]

\define[1]\ReadImage{\externalfigure[#1]}

\define[1]\mycircle{
\setASYbuffer{
import graph;
draw(Circle((0,0),#1));
}}


\starttext

\startASY
 import graph;
 draw((0,0)--(100,100));
\stopASY

\mycircle{10}

\mycircle{20}

\mycircle{30}

\stoptext







Dne 23.12.16 20:22, ntg-context za uživatele Aditya Mahajan 
<ntg-context-boun...@ntg.nl za uživatele adit...@umich.edu> napsal(a):

On Fri, 23 Dec 2016, Jaroslav Hajtmar wrote:

> Thanks for sending Your code. It seems that it works with Asymptote. 
> Unfortunately, when I am trying to multiple call a macro then I get 
> fatal error, and then compile collapse. I do not know what it could be.

When called for the first time, the code generates test-ASY.pdf file and 
includes it. After the second call, a new test-ASY.pdf is generated. 
ConTeXt generates an error because the name of the files is the same, but 
the content is not.

There should be an option for \externalfigure to disable this check, but I 
couldn't find it. Here is an alternative approach, that changes the name 
of the PDF.

\usemodule[filter]

\unprotect
\appendtoks
   \setuevalue{set\currentexternalfilter 
buffer}{\externalfilter@set[\currentexternalfilter]}%
\to \everydefineexternalfilter

\unexpanded\def\externalfilter@set
   {\dodoubleargument\externalfiter@set_indeed}

\starttexdefinition externalfiter@set_indeed [#1][#2]#3
% #1 = filter
% #2 = options

\begingroup
\edef\currentexternalfilter{#1}

\setupexternalfilter[#1][\c!name=,#2]

\externalfilter@set_filenames
\setbuffer[\externalfilter@buffer_name]#3\endbuffer

\externalfilter@process_filter
  \stoptexdefinition
\protect

\defineexternalfilter
 [MARKDOWN]
 [
   filtercommand={pandoc -f markdown -t context 
\externalfilterinputfile\space -o \externalfilteroutputfile},
   cache=yes,
   purge=no,
 ]

\define[1]\NEW
 {\setMARKDOWNbuffer{This is #1}}

\traceexternalfilters

\starttext
\startMARKDOWN
   This is **one**
\stopMARKDOWN

\NEW{**ONE**}

\NEW{_TWO_}
    \stoptext

Note that this has the same limitation as using \type{...}. The contents of
\NEW{...} must have matched braces. If this works, I can include the code in
t-filter (mkiv only, as I no longer want to maintain the mkii branch).

Aditya

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

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

___



AsymptoteCodeInConTeXt03a-Adytia.pdf
Description: AsymptoteCodeInConTeXt03a-Adytia.pdf
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] Asymptote or Metapost and ConTeXt parameters.

2016-12-23 Thread Aditya Mahajan

On Fri, 23 Dec 2016, Jaroslav Hajtmar wrote:

Thanks for sending Your code. It seems that it works with Asymptote. 
Unfortunately, when I am trying to multiple call a macro then I get 
fatal error, and then compile collapse. I do not know what it could be.


When called for the first time, the code generates test-ASY.pdf file and 
includes it. After the second call, a new test-ASY.pdf is generated. 
ConTeXt generates an error because the name of the files is the same, but 
the content is not.


There should be an option for \externalfigure to disable this check, but I 
couldn't find it. Here is an alternative approach, that changes the name 
of the PDF.


\usemodule[filter]

\unprotect
\appendtoks
  \setuevalue{set\currentexternalfilter 
buffer}{\externalfilter@set[\currentexternalfilter]}%
\to \everydefineexternalfilter

\unexpanded\def\externalfilter@set
  {\dodoubleargument\externalfiter@set_indeed}

\starttexdefinition externalfiter@set_indeed [#1][#2]#3
   % #1 = filter
   % #2 = options

   \begingroup
   \edef\currentexternalfilter{#1}

   \setupexternalfilter[#1][\c!name=,#2]

   \externalfilter@set_filenames
   \setbuffer[\externalfilter@buffer_name]#3\endbuffer

   \externalfilter@process_filter
 \stoptexdefinition
\protect

\defineexternalfilter
[MARKDOWN]
[
  filtercommand={pandoc -f markdown -t context 
\externalfilterinputfile\space -o \externalfilteroutputfile},
  cache=yes,
  purge=no,
]

\define[1]\NEW
{\setMARKDOWNbuffer{This is #1}}

\traceexternalfilters

\starttext
\startMARKDOWN
  This is **one**
\stopMARKDOWN

\NEW{**ONE**}

\NEW{_TWO_}
\stoptext

Note that this has the same limitation as using \type{...}. The contents of
\NEW{...} must have matched braces. If this works, I can include the code in
t-filter (mkiv only, as I no longer want to maintain the mkii branch).

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

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

<    3   4   5   6   7   8   9   10   11   12   >