Changes

Jump to navigation Jump to search
540 bytes added ,  19:40, 30 March 2014
m
no edit summary
The above alternative adds the ''entire'' <tt>TEXMF</tt> directory to the search path, ''including the'' <tt>doc/</tt> ''directory!'' Therefore, one needs to be extremely careful when using this option. In fact, I would advise not using <tt>location=default</tt> except for illustrative minimal working examples.
== Including remote images Remote Images ==
Like all other ConTeXt macros that read files, <tt>\The {{cmd|externalfigure</tt> also }} command supports reading remote files from '''HTTP(S)''' web servers. An , for example:
<texcode>\externalfigure
<pre>context --directives=schemes.threshold=120 <em>filename</em></pre>
The variable <tt>schemes.threshold</tt> is global, so changing its value affects all other macros like <tt>\input</tt>, <tt>\usemodule</tt>, <tt>\component</tt>, etc. that load remote files.
 
=== HTTPS ===
 
For self-signed certificates retrieved over HTTPS, the `curl` command requires a flag to retrieve insecure files, which is not enabled by default. Open `tex/texmf-context/tex/context/base/data-sch.lua` to find:
 
<pre>
local function runcurl(name,cachename) -- we use sockets instead or the curl library when possible
local command = "curl --silent --create-dirs --output " .. cachename .. " " .. name
os.spawn(command)
end
</pre>
 
Insert the `-k` or `--insecure` option:
 
<pre>
local command = "curl --insecure --silent --create-dirs --output " .. cachename .. " " .. name
</pre>
=== HTTP Proxy ===
419

edits

Navigation menu