ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Idris Samawi Hamid ادريس سماوي حامد" <ishamid@colostate.edu>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: export images
Date: Sat, 21 Mar 2015 05:01:35 -0600	[thread overview]
Message-ID: <op.xvugwxdifkrasx@ishamid-pc> (raw)
In-Reply-To: <C3A83164-FE27-4C81-9CB9-E6C236F4886E@gmail.com>

On Sat, 21 Mar 2015 02:55:08 -0600, Wolfgang Schuster  
<schuster.wolfgang@gmail.com> wrote:

>
>> Am 21.03.2015 um 03:09 schrieb Idris Samawi Hamid ادريس سماوي حامد  
>> <ishamid@colostate.edu>:
>>
>> Dear gang,
>>
>> How do we get images in the export? Here is my sample (also attached):
>>
>> ==============
>> \setupbackend[export=yes]
>>
>> \starttext
>> \startalignment [middle]
>> \dontleavehmode
>> \externalfigure[mill.png]
>> \stopalignment
>> \stoptext
>> ==============
>>
>> div output:
>>
>> ==
>> <div>
>>   <div class="image" id="image-1"><!--empty--></div>
>> </div>
>> ==
>>
>> So it seems that \externalfigure[mill.png] is tagged in the output but  
>> the
>> image itself is ignored. What am I missing here? pdf output is correct;  
>> I
>> copied mill.png from the context sample folder
>>
>> /tex/texmf-context/tex/context/sample/mill.png
>
> Put mill.png in the images folder which should exist in the export  
> folder.

Thanks, Wolfgang!

One more question on this: How can I setup the images so that I don't have  
to toggle, e.g.

\externalfigure[basmalah.png][width=3in]
% \externalfigure[basmalah.pdf][width=3in]

Is there a way to tell the export to use the png option, while telling the  
pdf output to use the pdf? This is important when the image is made from a  
font (no needs scalability in the pdf). Thanks again, Wolfgang, and

Best wishes
Idris
-- 
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2015-03-21 11:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-21  2:09 Idris Samawi Hamid ادريس سماوي حامد
2015-03-21  8:55 ` Wolfgang Schuster
2015-03-21 11:01   ` Idris Samawi Hamid ادريس سماوي حامد [this message]
2015-03-21 12:11     ` Wolfgang Schuster
2015-03-21 13:33       ` Idris Samawi Hamid ادريس سماوي حامد

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=op.xvugwxdifkrasx@ishamid-pc \
    --to=ishamid@colostate.edu \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).