Re: [NTG-context] degrade module

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

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

For example, in Context

\externalfigure [myfigure]

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

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

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


Re: [NTG-context] degrade module

2019-02-18 Thread Peter Münster
On Mon, Feb 18 2019, Alan Braslau wrote:

> Incorrect, an image file contains width and height (in pixels) as well as a
> resolution,

Optionally a resolution in the metadata. Then, of course, you have a
"natural size". But that doesn't matter, if you want other dimensions.

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


Re: [NTG-context] markdown module vs pandoc

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

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

MetaPost is native to luatex (MPlib is integrated).

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

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

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

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


Re: [NTG-context] Define color with calculations

2019-02-18 Thread Henri Menke
On 19/02/19 10:33 AM, Wolfgang Schuster wrote:
> Mohammad Hossein Bateni schrieb am 18.02.19 um 04:37:
>> Hi,
>>
>> When I use definecolor, (how) can I use computations in setting the
>> value of a component?  Something like the following...
>>
>> \definecolor[mycolor][r=0.5*0.7]
> 
> \starttext
> 
> \colored[r=\cldcontext{0.5*0.7}]{\cldcontext{0.5*0.7}}
> 
> \colored[r=\cldcontext{"\letterpercent
> .3f",0.5*0.7}]{\cldcontext{"\letterpercent .3f",0.5*0.7}}
> 
> \stoptext
> 

Better use \luaexpr.  From the manual:

The \luaexpr command can also better deal with for instance conditions,
 where it returns true or false , while \cldcontext would interpret the
 boolean value as a special signal.

Although I think my solution is superior because you can just type

   \eval{1.0*sin(pi)}

instead of

   \eval{1.0*math.sin(math.pi)}

> 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] Define color with calculations

2019-02-18 Thread Wolfgang Schuster

Mohammad Hossein Bateni schrieb am 18.02.19 um 04:37:

Hi,

When I use definecolor, (how) can I use computations in setting the 
value of a component?  Something like the following...


\definecolor[mycolor][r=0.5*0.7]


\starttext

\colored[r=\cldcontext{0.5*0.7}]{\cldcontext{0.5*0.7}}

\colored[r=\cldcontext{"\letterpercent 
.3f",0.5*0.7}]{\cldcontext{"\letterpercent .3f",0.5*0.7}}


\stoptext

Wolfgang

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

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


Re: [NTG-context] degrade module

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

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

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

A proper scan of a real object specifies all of this.

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

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


Re: [NTG-context] degrade module

2019-02-18 Thread Peter Münster
On Mon, Feb 18 2019, Alan Braslau wrote:

> My working solution is to put figures in subdirectories by resolution,

The purpose of the downsample module is something else: a well defined
resolution of the image in the PDF-file. A bitmap image does not have a
resolution, only a width and a height in pixels. The resolution gets
defined, when you specify the real dimensions.

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


Re: [NTG-context] markdown module vs pandoc

2019-02-18 Thread Aditya Mahajan

On Sun, 17 Feb 2019, Gour wrote:


On Fri, 15 Feb 2019 12:34:33 -0500 (EST)
Aditya Mahajan  wrote:


For simple documents, I use something like this (untested):


It does not work - maybe I have to install stand-alone version of ConTeXt, but
I got an idea.


Try this:

https://github.com/adityam/filter/wiki/pandoc

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] markdown module vs pandoc

2019-02-18 Thread Gour
On Mon, 18 Feb 2019 17:40:44 +0100
Mojca Miklavec  wrote:

> If I was you, I would use AsciiDoc, convert it to DocBook and process
> the XML. (There is some simple proof-of-concept docbook processing
> already written.)

Uff, even when considering to just use AsciiDoc, I was always trying to stay
away from DocBook. :-)

Do you personally use that?

> Markdown is super ambiguous, with lots of different flavours, and
> often resorting to HTML for the lack of more expressive syntax.

I'm aware of that and that was the reason why in the past I was exploring
reST/AsciiDoc, but then I thƣnk that maybe I can use markdown just for
simpler/shorter content when publishing on web sites via static-site-generator
and for the rest (study notes, slide presentations, alreger texts and/or books)
to simply write directly in ConTeXt markup?

> There is relatively little syntax you need to learn to achive nearly
> anything,

This is something what I like - simplicity is always a virtue.

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

Thank you. It seems that metaPost/Fun is a way to go...


Sincerely,
Gour

-- 
As a lamp in a windless place does not waver, so the transcendentalist,
whose mind is controlled, remains always steady in his meditation on the
transcendent self.


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

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


Re: [NTG-context] markdown module vs pandoc

2019-02-18 Thread Gour
On Mon, 18 Feb 2019 17:08:44 +0100
Pablo Rodriguez  wrote:

> I convert Markdown to XHTML and then I compile the XML sources with
> ConTeXt.
> 
> I describe the method at http://www.from-pandoc-to-context.tk/.
> 
> Just in case it might help,

Thank you, I'll explore that option...


Sincerely,
Gour

-- 
Therefore, without being attached to the fruits of activities,
one should act as a matter of duty, for by working without
attachment one attains the Supreme.


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

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


Re: [NTG-context] Define color with calculations

2019-02-18 Thread Mohammad Hossein Bateni
Thanks, Henri!  Works like a charm.

On Sun, Feb 17, 2019 at 11:03 PM Henri Menke  wrote:

> Use Lua.
>
>
> \def\eval#1{\ctxlua{%
> local context = context
> local _ENV = math
> context(#1)
> }}
>
> \definecolor[mycolor][r=\eval{0.5*0.7}]
>
> \starttext
>
> \color[mycolor]{Hello!}
>
> \stoptext
>
>
>
> On 18/02/19 4:37 PM, Mohammad Hossein Bateni wrote:
> > Hi,
> >
> > When I use definecolor, (how) can I use computations in setting the value
> > of a component?  Something like the following...
> >
> > \definecolor[mycolor][r=0.5*0.7]
> >
> > Thanks,
> > ~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
> >
> ___
> >
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/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] markdown module vs pandoc

2019-02-18 Thread Mojca Miklavec
On Thu, 14 Feb 2019 at 23:01, Gour wrote:
>
> I'm interested for using markdown markup and typeset such documents via
> ConTeXt, but wonder whether it is recommended to use Markdown module or do
> markdown --> ConTeXt via Pandoc?

If I was you, I would use AsciiDoc, convert it to DocBook and process the XML.
(There is some simple proof-of-concept docbook processing already written.)

Markdown is super ambiguous, with lots of different flavours, and
often resorting to HTML for the lack of more expressive syntax.

> btw, for illustrating
> ConText documents and/or slide-presentation, do you recommend learning
> MetaPost/MetaFun over .eg. TikZ if one wants to focus on single
> (probably my learning plate is already quite full to go into something
> else considering the need to learn ConTeXt itself) package?

I use both.

MetaPost/Fun is really cool when you need a lot of control of what you
want to do, the more calculations you need, the better. There is
relatively little syntax you need to learn to achive nearly anything,
but you mostly need to do stuff from scratch (if you reuse that code,
it gives you a lot of power).

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

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] interactive tests with AcroJS

2019-02-18 Thread Pablo Rodriguez
On 2/12/19 10:58 AM, Hans Hagen wrote:
> On 2/11/2019 8:16 PM, Pablo Rodriguez wrote:
>> Dear list,
>>
>> is there any way that I can generate PDF document with ConTeXt
>> containing a test with questions and multiple-choice answers and that
>> the user can check the right and wrong answers (using AcroJS)?
>> [...]
>
> i think i have demo code somewhere for that but i haven't played with 
> these javascript driven features for a while (only acrobat anyway)

Many thanks for your reply, Hans.

It would be great to have that code to start experimenting with it.

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] markdown module vs pandoc

2019-02-18 Thread Pablo Rodriguez
On 2/14/19 11:00 PM, Gour wrote:
> Hello,
> 
> I'm interested for using markdown markup and typeset such documents via
> ConTeXt, but wonder whether it is recommended to use Markdown module or do
> markdown --> ConTeXt via Pandoc?

Hi Gour,

I convert Markdown to XHTML and then I compile the XML sources with ConTeXt.

I describe the method at http://www.from-pandoc-to-context.tk/.

Just in case it might 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] degrade module

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

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

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

So, for example,

\def\FigRes{300/}

...

\externalfigure [\FigRes MyFigureName]

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

It's very robust.

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

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


Re: [NTG-context] Macro for a header does not work as well

2019-02-18 Thread Otared Kavian
Hi Fabrice,

Do you mean the fact that the date is not in the usual French format? In that 
case you should add

\mainlanguage[fr]

to the beginning of your file.

Best regards: OK

> On 18 Feb 2019, at 12:04, Fabrice Couvreur  
> wrote:
> 
> Hi,
> Aditya offered me this macro some time ago for my header. I updated context 
> standalone, and the display of the date I want to do the evaluation 
> (different from the current date) is no longer the same.
> Thank you.
> Fabrice
> 
> \setupbackgrounds
>[header]
>[text]
>[frame=off,
> topframe=off,
> bottomframe=on,
> framecolor=,
> rulethickness=1pt]
> 
> \defineframed
>[headerframed]
>[frame=off,
> height=fit,
> width=fit]
> 
> \startsetups [headertext]
> 
> \setupheadertexts
>[{
>  \startframed [headerframed] [foregroundstyle=bold]
>  \getvariable{headertext}{title} 
> n\high{o}\,\getvariable{headertext}{number}
>  \stopframed
>}]
> 
> \setupheadertexts
> [{
>   \startframed [headerframed] [align=flushleft,foregroundstyle=\ssx]
>   \getvariable{headertext}{location}\\
>   \getvariable{headertext}{time}
>   \stopframed
> }]
> [{
>   \startframed [headerframed] [align=flushright,foregroundstyle=\ssx]
>Lycée LA SALLE\\
>   
> \date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}]
>   \stopframed
> }]
> 
>   \stopsetups
> 
> 
> \setvariable{headertext}{set}{\directsetup{headertext}}
> \setvariables
>   [headertext]
>   [title={Devoir surveillé de Mathématiques},
>number={4},
>day={27},
>month={02},
>year={2019},
>location={T\high{\tfxx ale}~ES},
>time={3 heures}]
> 
> \starttext 
>   \input knuth
> \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
___


Re: [NTG-context] Frame with Color

2019-02-18 Thread Marco Patzer
On Mon, 18 Feb 2019 12:26:45 +
Ursula Hermann  wrote:

> \framed
>   [background=color,backgroundcolor=red,
>foreground=color,foregroundcolor=white

   foreground=color,foregroundcolor=white,

>   frame=off]
>   {\bf Wichtig}

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

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


[NTG-context] Frame with Color

2019-02-18 Thread Ursula Hermann
High list!

Maybe someone can help me. I tried:


\setuppapersize[A5]
\setupcolors[state=start]
\framed
  [background=color,backgroundcolor=red,
   foreground=color,foregroundcolor=white
  frame=off]
  {\bf Wichtig}

What I wanted, is a frame with background= red8 and a white text: Wichtig

Many regards

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

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


[NTG-context] Macro for a header does not work as well

2019-02-18 Thread Fabrice Couvreur
Hi,
Aditya offered me this macro some time ago for my header. I updated context
standalone, and the display of the date I want to do the evaluation
(different from the current date) is no longer the same.
Thank you.
Fabrice

\setupbackgrounds
   [header]
   [text]
   [frame=off,
topframe=off,
bottomframe=on,
framecolor=,
rulethickness=1pt]

\defineframed
   [headerframed]
   [frame=off,
height=fit,
width=fit]

\startsetups [headertext]

\setupheadertexts
   [{
 \startframed [headerframed] [foregroundstyle=bold]
 \getvariable{headertext}{title}
n\high{o}\,\getvariable{headertext}{number}
 \stopframed
   }]

\setupheadertexts
[{
  \startframed [headerframed] [align=flushleft,foregroundstyle=\ssx]
  \getvariable{headertext}{location}\\
  \getvariable{headertext}{time}
  \stopframed
}]
[{
  \startframed [headerframed]
[align=flushright,foregroundstyle=\ssx]
   Lycée LA SALLE\\

\date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}]
  \stopframed
}]

  \stopsetups


\setvariable{headertext}{set}{\directsetup{headertext}}
\setvariables
  [headertext]
  [title={Devoir surveillé de Mathématiques},
   number={4},
   day={27},
   month={02},
   year={2019},
   location={T\high{\tfxx ale}~ES},
   time={3 heures}]

\starttext
  \input knuth
\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] degrade module

2019-02-18 Thread Peter Münster
On Mon, Feb 18 2019, Marco Patzer wrote:

> assumed there is a better solution.

I guess, that Hans will tell us, if there is. And in the meantime, it
can be distributed IMO.

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


Re: [NTG-context] degrade module

2019-02-18 Thread Marco Patzer
On Sun, 17 Feb 2019 12:14:14 +0100
Peter Münster  wrote:

> On Fri, Feb 15 2019, Marco Patzer wrote:
> 
> > - It's 99% Peter's code, he's the maintainer of the module and
> >   probably he should just fix his code.  
> 
> Done.
> 
> 
> > - My modification contains an ugly hack that just renames all files
> >   to pdf, regardless of the actual file type because I have no clue
> >   how to do that properly.  
> 
> I've included your hack, because I don't have any better idea...

ok

> > That code shouldn't make it into the distribution.  
> 
> Why not? Just because of the hack?

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

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

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