ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Bruce Horrocks <bh@granby.demon.co.uk>
Subject: Problem with bit maps with ConTeXt under MikTeX (works fine using LaTeX)
Date: Tue, 6 Nov 2001 23:50:50 +0000	[thread overview]
Message-ID: <xuCJWjSadH67EwQZ@granby.demon.co.uk> (raw)

Hi,

I have two very simple files that include a batman image: the LaTeX one 
works fine, the ConTeXt one doesn't (it just displays a frame saying 
"name dummy, file sample.bmp unknown").

I'm new to ConTeXt so I'm hoping that there is something very simple 
that I'm missing here, or that someone can at least suggest some 
debugging options to set that might help me work out what is or isn't 
happening.

I'm using MikTeX 2.1 with an out of the box "large" install.

The LaTeX file is:

>\documentclass{article}
>\usepackage{graphicx}
>\begin{document}
>This is a test
>\includegraphics[width=2in,height=1in]{sample.bmp}
>\end{document}

The ConTeXt file is:

>\starttext
>This is a test
>\placefigure
>  [right]
>  []
>  {none}
>  {\externalfigure
>    [sample]
>    [width=2in, height=1in]}
>\stoptext

When I compile the LaTeX file with:
   c:> latex l-test.tex

I get the following on the console:

>This is TeX, Version 3.14159 (MiKTeX 2.1)
>(l-test.tex
>LaTeX2e <2001/06/01>
>Babel <v3.7h> and hyphenation patterns for english, french, german, 
>ngerman, du
>mylang, nohyphenation, loaded.
>(C:\Program Files\MiKTeX\tex\latex\base\article.cls
>Document Class: article 2001/04/21 v1.4e Standard LaTeX document class
>(C:\Program Files\MiKTeX\tex\latex\base\size10.clo))
>(C:\Program Files\MiKTeX\tex\latex\graphics\graphicx.sty
>(C:\Program Files\MiKTeX\tex\latex\graphics\keyval.sty)
>(C:\Program Files\MiKTeX\tex\latex\graphics\graphics.sty
>(C:\Program Files\MiKTeX\tex\latex\graphics\trig.sty)
>(C:\Program Files\MiKTeX\tex\latex\00miktex\graphics.cfg)
>(C:\Program Files\MiKTeX\tex\latex\graphics\dvips.def)))
>No file l-test.aux.
><sample.bmp> [1] (l-test.aux) )
>Output written on l-test.dvi (1 page, 284 bytes).
>Transcript written on l-test.log.

And the following in the .log file

>This is TeX, Version 3.14159 (MiKTeX 2.1) (preloaded format=latex 
>2000.11.28)  6 NOV 2001 23:30
>**l-test.tex
>(l-test.tex
>LaTeX2e <2001/06/01>
>Babel <v3.7h> and hyphenation patterns for english, french, german, 
>ngerman, du
>mylang, nohyphenation, loaded.
>(C:\Program Files\MiKTeX\tex\latex\base\article.cls
>Document Class: article 2001/04/21 v1.4e Standard LaTeX document class
>(C:\Program Files\MiKTeX\tex\latex\base\size10.clo
>File: size10.clo 2001/04/21 v1.4e Standard LaTeX file (size option)
>)
>\c@part=\count79
>\c@section=\count80
>\c@subsection=\count81
>\c@subsubsection=\count82
>\c@paragraph=\count83
>\c@subparagraph=\count84
>\c@figure=\count85
>\c@table=\count86
>\abovecaptionskip=\skip41
>\belowcaptionskip=\skip42
>\bibindent=\dimen102
>)
>(C:\Program Files\MiKTeX\tex\latex\graphics\graphicx.sty
>Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
>
>(C:\Program Files\MiKTeX\tex\latex\graphics\keyval.sty
>Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
>\KV@toks@=\toks14
>)
>(C:\Program Files\MiKTeX\tex\latex\graphics\graphics.sty
>Package: graphics 2001/07/07 v1.0n Standard LaTeX Graphics (DPC,SPQR)
>
>(C:\Program Files\MiKTeX\tex\latex\graphics\trig.sty
>Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
>)
>(C:\Program Files\MiKTeX\tex\latex\00miktex\graphics.cfg)
>Package graphics Info: Driver file: dvips.def on input line 80.
>
>(C:\Program Files\MiKTeX\tex\latex\graphics\dvips.def
>File: dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
>))
>\Gin@req@height=\dimen103
>\Gin@req@width=\dimen104
>)
>No file l-test.aux.
>LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 3.
>LaTeX Font Info:    ... okay on input line 3.
>LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 3.
>LaTeX Font Info:    ... okay on input line 3.
>LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 3.
>LaTeX Font Info:    ... okay on input line 3.
>LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 3.
>LaTeX Font Info:    ... okay on input line 3.
>LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 3.
>LaTeX Font Info:    ... okay on input line 3.
>LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 3.
>LaTeX Font Info:    ... okay on input line 3.
>File: sample.bmp Graphic file (type bmp)
><sample.bmp> [1
>
>] (l-test.aux) )
>Output written on l-test.dvi (1 page, 284 bytes).

When I compile the ConTeXt file with:
   c:> texexec c-test.tex

I get the following on the console:

>
> TeXExec 2.5 - ConTeXt / PRAGMA ADE 1997-2001
>
>            executable : pdfetex
>                format : cont-en
>             inputfile : c-test
>                output : standard
>             interface : en
>          current mode : all
>               TeX run : 1
>
>This is pdfeTeX, Version 3.14159-14f-released-20000525-2.1 (MiKTeX 2.1)
>entering extended mode
>(c-test.tex{pdftex.cfg}
>
>ConTeXt  ver: 2001.7.11  fmt: 2001.11.4  int: english  mes: english
>
>language       : language en is active
>system         : cont-new loaded
>(C:\Program Files\MiKTeX\tex\context\base\cont-new.tex
>systems        : beware: some patches loaded from cont-new.tex!
>system (E-TEX) : [line 202] \ifcsname
>)
>system         : cont-old loaded
>(C:\Program Files\MiKTeX\tex\context\base\cont-old.tex
>loading        : Context Old Macros
>)
>system         : cont-fil loaded
>(C:\Program Files\MiKTeX\tex\context\base\cont-fil.tex
>loading        : Context File Synonyms
>)
>bodyfont       : 12pt rm is loaded
>language       : patterns 2-en-2 2-de-2 2-fr-2 2-es-2 2-nl-2 loaded
>specials       : tex,postscript,rokicki loaded
>system         : c-test.top loaded
>(./c-test.top)
>systems        : begin file c-test at line 1
>figures        : figure sample can not be found
>floatblocks    : 1 placed
>[1.1]
>systems        : end file c-test at line 10
> )
>Output written on c-test.dvi (1 page, 568 bytes).
>Transcript written on c-test.log.
>
>              run time : 1 seconds
>  sorting and checking : running texutil
>
> TeXUtil 7.3 - ConTeXt / PRAGMA ADE 1992-2000
>
>                action : processing commands, lists and registers
>                option : sorting IJ under Y
>                option : converting high ASCII values
>            input file : c-test.tui
>           output file : c-test.tuo
>       passed commands : 6
>         remapped keys : 0
>      register entries : 0 -> 0 entries 0 references
>       synonym entries : 0 -> 0 entries
>        embedded files : 1
>
> utility file analysis : another run needed
>               TeX run : 2
>
>This is pdfeTeX, Version 3.14159-14f-released-20000525-2.1 (MiKTeX 2.1)
>entering extended mode
>(c-test.tex{pdftex.cfg}
>
>ConTeXt  ver: 2001.7.11  fmt: 2001.11.4  int: english  mes: english
>
>language       : language en is active
>system         : cont-new loaded
>(C:\Program Files\MiKTeX\tex\context\base\cont-new.tex
>systems        : beware: some patches loaded from cont-new.tex!
>system (E-TEX) : [line 202] \ifcsname
>)
>system         : cont-old loaded
>(C:\Program Files\MiKTeX\tex\context\base\cont-old.tex
>loading        : Context Old Macros
>)
>system         : cont-fil loaded
>(C:\Program Files\MiKTeX\tex\context\base\cont-fil.tex
>loading        : Context File Synonyms
>)
>bodyfont       : 12pt rm is loaded
>language       : patterns 2-en-2 2-de-2 2-fr-2 2-es-2 2-nl-2 loaded
>specials       : tex,postscript,rokicki loaded
>system         : c-test.top loaded
>(./c-test.top) (./c-test.tuo) (./c-test.tuo) (./c-test.tuo) 
>(./c-test.tuo)
>(./c-test.tuo) (./c-test.tuo) (./c-test.tuo) (./c-test.tuo) 
>(./c-test.tuo)
>(./c-test.tuo) (./c-test.tuo) (./c-test.tuo) (./c-test.tuo)
>systems        : begin file c-test at line 1
>figures        : figure sample can not be found
>(./c-test.tuo)
>floatblocks    : 1 placed
>[1.1]
>systems        : end file c-test at line 10
> )
>Output written on c-test.dvi (1 page, 568 bytes).
>Transcript written on c-test.log.
>
>              run time : 1 seconds
>  sorting and checking : running texutil
>
> TeXUtil 7.3 - ConTeXt / PRAGMA ADE 1992-2000
>
>                action : processing commands, lists and registers
>                option : sorting IJ under Y
>                option : converting high ASCII values
>            input file : c-test.tui
>           output file : c-test.tuo
>       passed commands : 6
>         remapped keys : 0
>      register entries : 0 -> 0 entries 0 references
>       synonym entries : 0 -> 0 entries
>        embedded files : 1

And the following in the .log file:

>This is pdfeTeX, Version 3.14159-14f-released-20000525-2.1 (MiKTeX 2.1) 
>(preloaded format=cont-en 2001.11.4)  6 NOV 2001 23:33
>entering extended mode
>**c-test.tex
>(c-test.tex{pdftex.cfg}
>
>ConTeXt  ver: 2001.7.11  fmt: 2001.11.4  int: english  mes: english
>
>language       : language en is active
>system         : cont-new loaded
>(C:\Program Files\MiKTeX\tex\context\base\cont-new.tex
>systems        : beware: some patches loaded from cont-new.tex!
>system (E-TEX) : [line 202] \ifcsname
>)
>system         : cont-old loaded
>(C:\Program Files\MiKTeX\tex\context\base\cont-old.tex
>loading        : Context Old Macros
>)
>system         : cont-fil loaded
>(C:\Program Files\MiKTeX\tex\context\base\cont-fil.tex
>loading        : Context File Synonyms
>)
>bodyfont       : 12pt rm is loaded
>language       : patterns 2-en-2 2-de-2 2-fr-2 2-es-2 2-nl-2 loaded
>specials       : tex,postscript,rokicki loaded
>system         : c-test.top loaded
>(./c-test.top) (./c-test.tuo) (./c-test.tuo) (./c-test.tuo) 
>(./c-test.tuo)
>(./c-test.tuo) (./c-test.tuo) (./c-test.tuo) (./c-test.tuo) 
>(./c-test.tuo)
>(./c-test.tuo) (./c-test.tuo) (./c-test.tuo) (./c-test.tuo)
>systems        : begin file c-test at line 1
>figures        : figure sample can not be found
>(./c-test.tuo)
>floatblocks    : 1 placed
>[1.1]
>systems        : end file c-test at line 10
> )
>Output written on c-test.dvi (1 page, 568 bytes).

Presumably this is a pdfeTeX configuration issue (since the LaTeX 
version works) but I've no idea what option to change?

Finally, if it helps, when I change the graphics file to be a .png file 
rather than .bmp and compile with:
   c:> texexec --pdf c-test.tex

then I get a perfectly formed .pdf file, including the graphic as 
expected.

Any suggestions gratefully received.

Regards,
-- 
Bruce Horrocks
Hampshire
England
bh@granby.demon.co.uk


             reply	other threads:[~2001-11-06 23:50 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-06 23:50 Bruce Horrocks [this message]
2001-11-07  8:29 ` Taco Hoekwater
2001-11-07 11:37   ` Bruce Horrocks
2001-11-07 15:47     ` Taco Hoekwater
2001-11-07 17:04       ` Hans Hagen
2001-11-07 23:17         ` Bruce Horrocks
2001-11-08  9:27           ` Hans Hagen
2001-11-08 14:59             ` Bruce Horrocks
2001-11-08 16:08               ` Taco Hoekwater
2001-11-08  8:18         ` Taco Hoekwater
2001-11-07 17:17   ` Hans Hagen

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=xuCJWjSadH67EwQZ@granby.demon.co.uk \
    --to=bh@granby.demon.co.uk \
    /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).