Re: [NTG-context] TLS and externalfigure

2014-03-30 Thread Hans Hagen
On 3/30/2014 5:12 AM, Thangalin wrote: Hi, I have images hosted on a local web server using a self-signed certificate. For example: https://localhost/images/.../file.png When using ConTeXt, the image cannot be retrieved; a verified signed certificate works as expected. Using wget,

[NTG-context] Defining commands in \start ... \stop

2014-03-30 Thread Xan
Hi, Concerned with the answers to the [that topic](http://www.ntg.nl/pipermail/ntg-context/2014/077099.html), I was thinking if I could define a command Exercise with a optional argument (the Answer). \defineblock[question] \defineblock[answer] \defineenumeration[question][text={Question}]

Re: [NTG-context] Defining commands in \start ... \stop

2014-03-30 Thread Xan
This: \defineblock[question] \defineblock[answer] \defineenumeration[question][text={Question}] \defineenumeration[answer] [text={Answer}] \keepblocks[question] \hideblocks[answer] \def\mynewcommand{\dosingleempty\doMyNewCommand} \def\doMyNewCommand[#1]#2{% \iffirstargument

Re: [NTG-context] Defining commands in \start ... \stop

2014-03-30 Thread Wolfgang Schuster
Am 30.03.2014 um 19:28 schrieb Xan dxpubl...@telefonica.net: This: \defineblock[question] \defineblock[answer] \defineenumeration[question][text={Question}] \defineenumeration[answer] [text={Answer}] \keepblocks[question] \hideblocks[answer]

[NTG-context] mirrored leftmarginwidth in enumerations

2014-03-30 Thread Sanjoy Mahajan
If anyone has a suggestion for putting enumeration texts toward the right edge of the left margin, I would be grateful. In MkII enumerations, I would put a triangle (fig.2) in the left margin using \defineenumeration [pause] [title=no, text={\externalfigure[fig.2][height=1em]},

Re: [NTG-context] Defining commands in \start ... \stop

2014-03-30 Thread Xan
And so? This has not [mathematical] solution ;-) Xan. The block commands use a buffer to store the content and buffers can’t be used in commands. Wolfgang ___ If your question is of interest to others as well,

[NTG-context] PDF document metadata: keyword and date

2014-03-30 Thread Pablo Rodriguez
Dear list, I have the following sample: \setupinteraction[state=start, author={I, Me}, keyword={interactive document, ConTeXt}, date=03-02-2004] \starttext Hi.\page Hi. \stoptext I have two questions: How can I avoid the removal of commas in the keyword option? How

Re: [NTG-context] mirrored leftmarginwidth in enumerations

2014-03-30 Thread Wolfgang Schuster
Am 30.03.2014 um 20:00 schrieb Sanjoy Mahajan san...@mit.edu: If anyone has a suggestion for putting enumeration texts toward the right edge of the left margin, I would be grateful. In MkII enumerations, I would put a triangle (fig.2) in the left margin using \defineenumeration

Re: [NTG-context] TLS and externalfigure

2014-03-30 Thread Thangalin
http://wiki.contextgarden.net/Using_Graphics#HTTPS Thank you, Hans. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

Re: [NTG-context] mirrored leftmarginwidth in enumerations

2014-03-30 Thread Sanjoy Mahajan
Wolfgang Schuster schuster.wolfg...@gmail.com writes: \defineenumeration [pause] [title=no, text={\symbol[triangle]}, width=fit, number=no, alternative=inleft] Thank you. That works beautifully. Is my understanding right, that width=fit is what makes the head (here the

[NTG-context] Feature request: use rsvg-convert

2014-03-30 Thread Thangalin
Hi, Re: http://wiki.contextgarden.net/Using_Graphics#Image_Conversion I recommend using rsvg-convert instead of inkscape. For example: wget http://en.wikipedia.org/wiki/File:Inkscape_0.48.2_with_Red_Gallardo.svg -O car.svg time rsvg-convert --format pdf car.svg --output car-rsvg.pdf time

Re: [NTG-context] TLS and externalfigure

2014-03-30 Thread Thangalin
Hi, Adding --insecure works. I think the option should be present by default, which could save people time trying to understand what part of the system is preventing the images from being downloaded. (For example, for me I first checked caching, directory permissions, web server configuration,