Re: [NTG-context] Module for Markdown: any volunteer to make a ConTeXt interface?

2017-05-05 Thread Mojca Miklavec
On 5 May 2017 at 21:54, Aditya Mahajan wrote:
> On Thu, 4 May 2017, Mojca Miklavec wrote:
>
>> There's a really nice module for processing markdown:
>> https://github.com/Witiko/markdown
>> that has been presented during the TUG meeting and is included in TeX
>> Live.
>
> This is a fork of luamark (by the author of pandoc). Wouldn't it be better
> to provide an interface around that? Is it simply providing a tex interface
> around luamark or are there any changes in the parser as well.
>
> Any idea how it compares with the markdown parser in m-markdown already
> included in ConTeXt?

I'm CC-ing the author since I don't know answers to these questions,
but it would indeed be nice to end up with one single good module
rather than having two slightly different incompatible ones with the
same name.

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] Simplefonts (was: geen onderwerp)

2017-05-05 Thread r . ermers
Thank you Wolfgang, that worked!

Robert

> Op 5 mei 2017, om 16:02 heeft Wolfgang Schuster  
> het volgende geschreven:
> 
> 
>> r.erm...@hccnet.nl  5. Mai 2017 um 11:48
>> Dear Contexters,
>> 
>> Since yesterday I have a font-problem. Until yesterday this would work 
>> perfectly:
>> 
>> \usemodule[simplefonts][size=10pt] %voor mkiv
>> \setmainfont[dejavuserif] %voor simplefonts
>> 
>> The system fonts worked too. Yesterday I wanted to make a presentation with 
>> simpleslides. The fonts did not work. Then I tried complexslides. The 
>> modules work fine, the fonts do not. I then updated to the latest bèta: 
>> luatools — generate, context —generate, etc. No improvement.
>> 
>> Through mtxrun —script fonts I can see which fonts are accessible to 
>> Context. There things are probably going wrong, yet I do not know what. It 
>> appears that Context does not find the local fonts, and the system fonts 
>> only partially.
>> 
>> I work on OS X, Context versie: 2017.04.27 01:00
>> /Applications/ContextStandalone/tex/texmf-context/tex/context/base/mkiv/context.mkiv
>> 
>> Adjustments of texmf.cnf:
>> /Applications/ContextStandalone/tex/texmf/web2c/texmf.cnf
>> OSFONTDIR =.;~/Library/Fonts//;/System/Library/Fonts
>> 
>> Thank you on beforehand for your help. It is much appreciated.
>> 
> Please use the newer \definfontfamily command (or write your own typescript) 
> to load
> fonts which aren’t supported out of the box because the last release of 
> simplefonts
> was 4 years and is no longer updated. The \definefontfamily command mentioned
> above has replaced the module and should be used instead.
> 
> %% begin example
> \definefontfamily[mainface][ss][Delicious]
> 
> \setupbodyfont[mainface]
> 
> \starttext
> This document uses the Delicious font.
> \stoptext
> %% end example
> 
> Wolfgang
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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

Re: [NTG-context] Module for Markdown: any volunteer to make a ConTeXt interface?

2017-05-05 Thread Aditya Mahajan

On Thu, 4 May 2017, Mojca Miklavec wrote:


Hi,

There's a really nice module for processing markdown:
https://github.com/Witiko/markdown
that has been presented during the TUG meeting and is included in TeX Live.


This is a fork of luamark (by the author of pandoc). Wouldn't it be better 
to provide an interface around that? Is it simply providing a tex 
interface around luamark or are there any changes in the parser as well.


Any idea how it compares with the markdown parser in m-markdown already 
included in ConTeXt?


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] include google maps in context document

2017-05-05 Thread Aditya Mahajan

On Thu, 4 May 2017, Mojca Miklavec wrote:


On 4 May 2017 at 15:20, Ulrike Fischer  wrote:

Am Wed, 3 May 2017 22:12:54 +0100 schrieb DesdeChaves:


For this I must include in my report a
gloogle maps image with the path and the distance covered.


[...]


Anybody know a simply way to make this work or this is a too hard task for
now.


There is a LaTeX-Package called getmap.
http://www.ctan.org/pkg/getmap
It's documentation contains also some remark about how to get
routing. Perhaps you find something useful in it.


Thank you.

This looks like something worth porting to ConTeXt :)
Even if implemented from scratch, the package could be used to borrow
the hacks. The syntax is pretty clean (and already relatively
"ConTeXt"-ish):

\getmap[file=berlin, mode=gm, language=de, scale=2, 8 xsize=400, ysize=600,...]


All the heavy lifing is done by a lua-script; the sty file is simply 
calling the lua script with appropriate arguments. So, it should be 
relatively straightforward to create a wrapper around the script using 
t-filter.


Of course, ideally, since the code is written in lua, there is no need to 
call the external script. However, some refactoring needs to be done if 
the script is to used directly from the tex side (the parsing of arguments 
needs to be separated from actual call to the openmap api).


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
___

[NTG-context] Simplefonts (was: geen onderwerp)

2017-05-05 Thread Wolfgang Schuster



r.erm...@hccnet.nl 
5. Mai 2017 um 11:48
Dear Contexters,

Since yesterday I have a font-problem. Until yesterday this would work 
perfectly:


\usemodule[simplefonts][size=10pt] %voor mkiv
\setmainfont[dejavuserif] %voor simplefonts

The system fonts worked too. Yesterday I wanted to make a presentation 
with simpleslides. The fonts did not work. Then I tried complexslides. 
The modules work fine, the fonts do not. I then updated to the latest 
bèta: luatools — generate, context —generate, etc. No improvement.


Through mtxrun —script fonts I can see which fonts are accessible to 
Context. There things are probably going wrong, yet I do not know 
what. It appears that Context does not find the local fonts, and the 
system fonts only partially.


I work on OS X, Context versie: 2017.04.27 01:00
/Applications/ContextStandalone/tex/texmf-context/tex/context/base/mkiv/context.mkiv

Adjustments of texmf.cnf:
/Applications/ContextStandalone/tex/texmf/web2c/texmf.cnf
OSFONTDIR =.;~/Library/Fonts//;/System/Library/Fonts

Thank you on beforehand for your help. It is much appreciated.

Please use the newer \definfontfamily command (or write your own 
typescript) to load
fonts which aren’t supported out of the box because the last release of 
simplefonts
was 4 years and is no longer updated. The \definefontfamily command 
mentioned

above has replaced the module and should be used instead.

%% begin example
\definefontfamily[mainface][ss][Delicious]

\setupbodyfont[mainface]

\starttext
This document uses the Delicious font.
\stoptext
%% end example

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

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

[NTG-context] (geen onderwerp)

2017-05-05 Thread r . ermers
Dear Contexters,

Since yesterday I have a font-problem. Until yesterday this would work 
perfectly:

\usemodule[simplefonts][size=10pt] %voor mkiv
\setmainfont[dejavuserif] %voor simplefonts

The system fonts worked too. Yesterday I wanted to make a presentation with 
simpleslides. The fonts did not work. Then I tried complexslides. The modules 
work fine, the fonts do not. I then updated to the latest bèta: luatools — 
generate, context —generate, etc. No improvement.

Through mtxrun —script fonts I can see which fonts are accessible to Context. 
There things are probably going wrong, yet I do not know what. It appears that 
Context does not find the local fonts, and the system fonts only partially.

I work on OS X, Context versie: 2017.04.27 01:00
/Applications/ContextStandalone/tex/texmf-context/tex/context/base/mkiv/context.mkiv

Adjustments of texmf.cnf:
/Applications/ContextStandalone/tex/texmf/web2c/texmf.cnf
OSFONTDIR =.;~/Library/Fonts//;/System/Library/Fonts

Thank you on beforehand for your help. It is much appreciated.

Robert




Snippets from the log file:

fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active


fonts   > names > font database has mismatching configuration and file 
hashes
fonts   > names > unable to access database cache
simplefonts > font ''fontin'' not found
simplefonts > font ''fontin'' not found
[many identical lines]
fonts   > defining > font with asked name 'unknown' is not found using 
lookup 'file'
fonts   > defining > unknown font 'unknown', loading aborted
fonts   > defining > unable to define 'unknown' as 
'simplefonts:1-9pt-rm-tf-0--0'
fonts   > otf loading > loading 

—> some of the otf files are being found:

'/Applications/ContextStandalone/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf',
 hash 'latinmodern-math'
fonts   > otf loading > loading done
fonts   > otf loading > file size: 733500
fonts   > otf loading > missing specification
[many identical lines]
fonts   > otf loading > loading, optimizing, packing and caching time 
0.248, pack time 0.045
simplefonts > font ''delicious'' not found
simplefonts > font ''delicious'' not found
[many identical lines]
fonts   > defining > font with asked name 'unknown' is not found using 
lookup 'file'
fonts   > defining > unknown font 'unknown', loading aborted
fonts   > defining > unable to define 'unknown' as 
'simplefonts:2-9pt-rm-tf-0–0'

close source> level 5, order 10, name 
'/Applications/ContextStandalone/tex/texmf-context/tex/context/fonts/mkiv/type-imp-euler.mkiv'
fonts   > defining > font with asked name 'unknown' is not found using 
lookup 'file'
fonts   > defining > unknown font 'unknown', loading aborted
fonts   > defining > unable to define 'unknown' as 
'simplefonts:4-9pt-rm-tf-0--0'

close source> level 6, order 10, name 
'/Applications/ContextStandalone/tex/texmf-context/tex/context/fonts/mkiv/type-imp-dejavu.mkiv'
close source> level 5, order 10, name 
'/Applications/ContextStandalone/tex/texmf-context/tex/context/fonts/mkiv/type-imp-euler.mkiv'
fonts   > defining > font with asked name 'unknown' is not found using 
lookup 'file'
fonts   > defining > unknown font 'unknown', loading aborted

[snippet]

Overfull \hbox (23.24092pt too wide) in paragraph at lines 10--14

[This text is then printed in the pdf:]
[][Serif][DefaultFont][fallbacks=mainfontregularfallbacks,features=mainfontregularfeatures][SerifItalic][DefaultFont][fallbacks=mainfontitalicfallbacks,features=mainfontitalicfeatures][SerifSlanted][DefaultFont][fallbacks=mainfontslantedfallbacks,features=mainfontslantedfeatures][SerifBold][DefaultFont][fallbacks=mainfontboldfallbacks,features=mainfontboldfeatures][SerifBoldItalic][DefaultFont]

identifierfamilynamefontname  filename   
subfont   instances
fontinsmallcaps   fontinsmallcaps   fontinsmallcaps   Fontin-SmallCaps.otf

Yet other fonts from the Fontine are installed system-wide (found by fc-list):

/Users/mac/Library/Fonts/Fontin-Regular.ttf: Fontin:style=Regular
/Users/mac/Library/Fonts/Fontin-Bold.ttf: Fontin:style=Bold
/Users/mac/Library/Fonts/Fontin-SmallCaps.ttf: Fontin SmallCaps:style=SmallCaps
/Users/mac/Library/Fonts/Fontin-Italic.ttf: Fontin:style=Italic

The same fonts I placed in my local installation: 
Applications/ContextStandalone/tex/texmf-local/fonts/public/fontin/otf/Fontin-Bold.otf
Fontin-Italic.otf
Fontin-Regular.otf
Fontin-SmallCaps.otf


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

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