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

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

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

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 >

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

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

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

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:

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

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,

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!} > >

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

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

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

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

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

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

[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

[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,

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

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