ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* loading figure in LuaTeX
@ 2009-05-21  9:03 Dalyoung Jeong
  2009-05-21  9:21 ` Yanrui Li
  0 siblings, 1 reply; 4+ messages in thread
From: Dalyoung Jeong @ 2009-05-21  9:03 UTC (permalink / raw)
  To: ntg-context

Dear all,

I tried to load figure in LuaTeX, but I couldn't succeed.
However, it is perfectly working in ConTeXt and XeConTeXt.
I don't know what is wrong.

best regads,

Dalyoung


My system is Mac 10.5.6, ConTeXt Minimal, LuaTeX ver 0.40.1.
Here is a short test file.

************
\starttext

Thank you for reading.

\externalfigure[~/Documents/figures/math-shapes/moebius-band][]

\stoptext

**********
Here is a log file of LuaTeX.

MTXrun | run 1: luatex --fmt="/Users/dalyoung/ConTeXtMini/tex/texmf- 
cache/luatex-cache/context/96bab756b7b86dbb7077fbebd9caff2b/formats/ 
cont-en" --lua="/Users/dalyoung/ConTeXtMini/tex/texmf-cache/luatex- 
cache/context/96bab756b7b86dbb7077fbebd9caff2b/formats/cont-en.lui" -- 
backend=pdf "./test-pre.tex"
This is LuaTeX, Version beta-0.40.1-2009050813 (Web2C 7.5.7)
  \write18 enabled.
(test-pre.tex
color           : mpcmyk color space is supported
color           : mpspot color space is supported
color           : system rgb is global activated

ConTeXt  ver: 2009.05.20 00:02 MKIV  fmt: 2009.5.21  int: english/ 
english

system          : cont-new loaded
(/Users/dalyoung/ConTeXtMini/tex/texmf-context/tex/context/base/cont- 
new.tex
systems         : beware: some patches loaded from cont-new.tex
(/Users/dalyoung/ConTeXtMini/tex/texmf-context/tex/context/base/cont- 
new.mkiv) (/Users/dalyoung/ConTeXtMini/tex/texmf-context/tex/context/ 
base/cont-mtx.tex))
system          : cont-fil loaded
(/Users/dalyoung/ConTeXtMini/tex/texmf-context/tex/context/base/cont- 
fil.tex
loading         : ConTeXt File Synonyms
)
system          : cont-sys.rme loaded
(/Users/dalyoung/ConTeXtMini/tex/texmf-context/tex/context/user/cont- 
sys.rme (/Users/dalyoung/ConTeXtMini/tex/texmf-context/tex/context/ 
base/type-tmf.tex) (/Users/dalyoung/ConTeXtMini/tex/texmf-context/tex/ 
context/base/type-siz.tex (/Users/dalyoung/ConTeXtMini/tex/texmf- 
context/tex/context/base/type-siz.mkiv)) (/Users/dalyoung/ConTeXtMini/ 
tex/texmf-context/tex/context/base/type-otf.tex (/Users/dalyoung/ 
ConTeXtMini/tex/texmf-context/tex/context/base/type-otf.mkiv)))
system          : test-pre.top loaded
(test-pre.top)
fonts           : preloading latin modern fonts
bodyfont        : 12pt rm is loaded
language        : language en is active
systems         : begin file test-pre at line 1
fonts           : resetting map file list
{/Users/dalyoung/ConTeXtMini/tex/texmf-context/fonts/map/pdftex/ 
context/original-empty.map}
fonts           : using map file: original-base
{/Users/dalyoung/ConTeXtMini/tex/texmf-context/fonts/map/pdftex/ 
context/original-base.map}
fonts           : using map file: original-ams-base
{/Users/dalyoung/ConTeXtMini/tex/texmf-context/fonts/map/pdftex/ 
context/original-ams-base.map}
fonts           : using map file: original-ams-euler
{/Users/dalyoung/ConTeXtMini/tex/texmf-context/fonts/map/pdftex/ 
context/original-ams-euler.map}
fonts           : using map file: original-public-lm
{/Users/dalyoung/ConTeXtMini/tex/texmf-context/fonts/map/pdftex/ 
context/original-public-lm.map}
fonts           : using map file: lm-math
{/Users/dalyoung/ConTeXtMini/tex/texmf/fonts/map/dvips/lm/lm-math.map}
fonts           : using map file: lm-rm
{/Users/dalyoung/ConTeXtMini/tex/texmf/fonts/map/dvips/lm/lm-rm.map} 
[1.1]
systems         : end file test-pre at line 7
system          : cont-err loaded
(/Users/dalyoung/ConTeXtMini/tex/texmf-context/tex/context/base/cont- 
err.tex
systems         : no file 'cont-sys.tex', using 'cont-sys.rme' instead
) )</Users/dalyoung/ConTeXtMini/tex/texmf/fonts/opentype/public/lm/ 
lmmono8-regular.otf></Users/dalyoung/ConTeXtMini/tex/texmf/fonts/ 
opentype/public/lm/lmroman12-regular.otf>
mkiv lua stats : used config path          - /Users/dalyoung/ 
ConTeXtMini/tex/texmf/web2c/texmf.cnf
mkiv lua stats : used cache path           - /Users/dalyoung/ 
ConTeXtMini/tex/texmf-cache
mkiv lua stats : input load time           - 0.024 seconds
mkiv lua stats : stored bytecode data      - 168 modules, 45 tables,  
213 chunks
mkiv lua stats : cleaned up reserved nodes - 23 nodes, 8 lists of 1411
mkiv lua stats : node memory usage         - 19 glue_spec, 2 dir
mkiv lua stats : loaded patterns           - en:us:pat:exc:2
mkiv lua stats : startup time              - 0.551 seconds (including  
runtime option file processing)
mkiv lua stats : callbacks                 - direct: 169, indirect:  
4756, total: 4925
mkiv lua stats : loaded fonts              - 31 files: eufb10:tfm  
eufb7:tfm eufb9:tfm eufm10:tfm eufm7:tfm eufm9:tfm lmex10:tfm  
lmmi12:tfm lmmi7:tfm lmmi9:tfm lmmib10:tfm lmmib7:tfm lmmono12- 
regular:otf lmmono8-regular:otf lmmono9-regular:otf lmroman12-bold:otf  
lmroman12-regular:otf lmroman7-bold:otf lmroman7-regular:otf lmroman9- 
bold:otf lmroman9-regular:otf lmsans12-regular:otf lmsans8-regular:otf  
lmsans9-regular:otf lmsy10:tfm lmsy7:tfm lmsy9:tfm msam10:tfm  
msam7:tfm msbm10:tfm msbm7:tfm
mkiv lua stats : fonts load time           - 0.261 seconds
mkiv lua stats : graphics processing time  - 0.021 seconds including  
tex, n=1
mkiv lua stats : result saved in file      - test-pre.pdf
mkiv lua stats : luatex banner             - this is luatex, version  
beta-0.40.1
mkiv lua stats : control sequences         - 29702 of 165536
mkiv lua stats : current memory usage      - 31 MB (ctx: 32 MB)
mkiv lua stats : runtime                   - 1.190 seconds, 1  
processed pages, 1 shipped pages, 0.840 pages/second
MTXrun | total runtime: 1.213

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: loading figure in LuaTeX
  2009-05-21  9:03 loading figure in LuaTeX Dalyoung Jeong
@ 2009-05-21  9:21 ` Yanrui Li
  2009-05-21  9:58   ` Alan BRASLAU
  0 siblings, 1 reply; 4+ messages in thread
From: Yanrui Li @ 2009-05-21  9:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Dalyoung,

You should use the absolute path for your figure, such as:

\externalfigure[/home/your-name/Documents/figures/math-shapes/moebius-band][]

On Thu, May 21, 2009 at 5:03 PM, Dalyoung Jeong <haksan@mac.com> wrote:
> Dear all,
>
> I tried to load figure in LuaTeX, but I couldn't succeed.
> However, it is perfectly working in ConTeXt and XeConTeXt.
> I don't know what is wrong.
>
> best regads,
>
> Dalyoung
>
>
> My system is Mac 10.5.6, ConTeXt Minimal, LuaTeX ver 0.40.1.
> Here is a short test file.
>
> ************
> \starttext
>
> Thank you for reading.
>
> \externalfigure[~/Documents/figures/math-shapes/moebius-band][]
>
> \stoptext
>
> **********
> Here is a log file of LuaTeX.
>
> MTXrun | run 1: luatex
> --fmt="/Users/dalyoung/ConTeXtMini/tex/texmf-cache/luatex-cache/context/96bab756b7b86dbb7077fbebd9caff2b/formats/cont-en"
> --lua="/Users/dalyoung/ConTeXtMini/tex/texmf-cache/luatex-cache/context/96bab756b7b86dbb7077fbebd9caff2b/formats/cont-en.lui"
> --backend=pdf "./test-pre.tex"
> This is LuaTeX, Version beta-0.40.1-2009050813 (Web2C 7.5.7)
>  \write18 enabled.
> (test-pre.tex
> color           : mpcmyk color space is supported
> color           : mpspot color space is supported
> color           : system rgb is global activated
>
> ConTeXt  ver: 2009.05.20 00:02 MKIV  fmt: 2009.5.21  int: english/english
>
> system          : cont-new loaded
> (/Users/dalyoung/ConTeXtMini/tex/texmf-context/tex/context/base/cont-new.tex
> systems         : beware: some patches loaded from cont-new.tex
> (/Users/dalyoung/ConTeXtMini/tex/texmf-context/tex/context/base/cont-new.mkiv)
> (/Users/dalyoung/ConTeXtMini/tex/texmf-context/tex/context/base/cont-mtx.tex))
> system          : cont-fil loaded
> (/Users/dalyoung/ConTeXtMini/tex/texmf-context/tex/context/base/cont-fil.tex
> loading         : ConTeXt File Synonyms
> )
> system          : cont-sys.rme loaded
> (/Users/dalyoung/ConTeXtMini/tex/texmf-context/tex/context/user/cont-sys.rme
> (/Users/dalyoung/ConTeXtMini/tex/texmf-context/tex/context/base/type-tmf.tex)
> (/Users/dalyoung/ConTeXtMini/tex/texmf-context/tex/context/base/type-siz.tex
> (/Users/dalyoung/ConTeXtMini/tex/texmf-context/tex/context/base/type-siz.mkiv))
> (/Users/dalyoung/ConTeXtMini/tex/texmf-context/tex/context/base/type-otf.tex
> (/Users/dalyoung/ConTeXtMini/tex/texmf-context/tex/context/base/type-otf.mkiv)))
> system          : test-pre.top loaded
> (test-pre.top)
> fonts           : preloading latin modern fonts
> bodyfont        : 12pt rm is loaded
> language        : language en is active
> systems         : begin file test-pre at line 1
> fonts           : resetting map file list
> {/Users/dalyoung/ConTeXtMini/tex/texmf-context/fonts/map/pdftex/context/original-empty.map}
> fonts           : using map file: original-base
> {/Users/dalyoung/ConTeXtMini/tex/texmf-context/fonts/map/pdftex/context/original-base.map}
> fonts           : using map file: original-ams-base
> {/Users/dalyoung/ConTeXtMini/tex/texmf-context/fonts/map/pdftex/context/original-ams-base.map}
> fonts           : using map file: original-ams-euler
> {/Users/dalyoung/ConTeXtMini/tex/texmf-context/fonts/map/pdftex/context/original-ams-euler.map}
> fonts           : using map file: original-public-lm
> {/Users/dalyoung/ConTeXtMini/tex/texmf-context/fonts/map/pdftex/context/original-public-lm.map}
> fonts           : using map file: lm-math
> {/Users/dalyoung/ConTeXtMini/tex/texmf/fonts/map/dvips/lm/lm-math.map}
> fonts           : using map file: lm-rm
> {/Users/dalyoung/ConTeXtMini/tex/texmf/fonts/map/dvips/lm/lm-rm.map}[1.1]
> systems         : end file test-pre at line 7
> system          : cont-err loaded
> (/Users/dalyoung/ConTeXtMini/tex/texmf-context/tex/context/base/cont-err.tex
> systems         : no file 'cont-sys.tex', using 'cont-sys.rme' instead
> )
> )</Users/dalyoung/ConTeXtMini/tex/texmf/fonts/opentype/public/lm/lmmono8-regular.otf></Users/dalyoung/ConTeXtMini/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf>
> mkiv lua stats : used config path          -
> /Users/dalyoung/ConTeXtMini/tex/texmf/web2c/texmf.cnf
> mkiv lua stats : used cache path           -
> /Users/dalyoung/ConTeXtMini/tex/texmf-cache
> mkiv lua stats : input load time           - 0.024 seconds
> mkiv lua stats : stored bytecode data      - 168 modules, 45 tables, 213
> chunks
> mkiv lua stats : cleaned up reserved nodes - 23 nodes, 8 lists of 1411
> mkiv lua stats : node memory usage         - 19 glue_spec, 2 dir
> mkiv lua stats : loaded patterns           - en:us:pat:exc:2
> mkiv lua stats : startup time              - 0.551 seconds (including
> runtime option file processing)
> mkiv lua stats : callbacks                 - direct: 169, indirect: 4756,
> total: 4925
> mkiv lua stats : loaded fonts              - 31 files: eufb10:tfm eufb7:tfm
> eufb9:tfm eufm10:tfm eufm7:tfm eufm9:tfm lmex10:tfm lmmi12:tfm lmmi7:tfm
> lmmi9:tfm lmmib10:tfm lmmib7:tfm lmmono12-regular:otf lmmono8-regular:otf
> lmmono9-regular:otf lmroman12-bold:otf lmroman12-regular:otf
> lmroman7-bold:otf lmroman7-regular:otf lmroman9-bold:otf
> lmroman9-regular:otf lmsans12-regular:otf lmsans8-regular:otf
> lmsans9-regular:otf lmsy10:tfm lmsy7:tfm lmsy9:tfm msam10:tfm msam7:tfm
> msbm10:tfm msbm7:tfm
> mkiv lua stats : fonts load time           - 0.261 seconds
> mkiv lua stats : graphics processing time  - 0.021 seconds including tex,
> n=1
> mkiv lua stats : result saved in file      - test-pre.pdf
> mkiv lua stats : luatex banner             - this is luatex, version
> beta-0.40.1
> mkiv lua stats : control sequences         - 29702 of 165536
> mkiv lua stats : current memory usage      - 31 MB (ctx: 32 MB)
> mkiv lua stats : runtime                   - 1.190 seconds, 1 processed
> pages, 1 shipped pages, 0.840 pages/second
> MTXrun | total runtime: 1.213
>
> ___________________________________________________________________________________
> 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  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
>



-- 
Best wishes,
Li Yanrui
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: loading figure in LuaTeX
  2009-05-21  9:21 ` Yanrui Li
@ 2009-05-21  9:58   ` Alan BRASLAU
  0 siblings, 0 replies; 4+ messages in thread
From: Alan BRASLAU @ 2009-05-21  9:58 UTC (permalink / raw)
  To: ntg-context

Or \setupexternalfigures[directory={figures/math-shapes}], assuming that you are 
running from ~/Documents.
This can be a relative path such as {../figures/math-shapes}, for example if 
you are compiling in a subdirectory. I suspect that your problem, as pointed 
out, is the expansion of the ~ shortcut to the shell variable $HOME.

On Thursday 21 May 2009 11:21:10 Yanrui Li wrote:
> Hi Dalyoung,
>
> You should use the absolute path for your figure, such as:
>
> \externalfigure[/home/your-name/Documents/figures/math-shapes/moebius-band]
>[]
>
> On Thu, May 21, 2009 at 5:03 PM, Dalyoung Jeong <haksan@mac.com> wrote:
> > Dear all,
> >
> > I tried to load figure in LuaTeX, but I couldn't succeed.
> > However, it is perfectly working in ConTeXt and XeConTeXt.
> > I don't know what is wrong.

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: loading figure in LuaTeX
@ 2009-05-22  3:10 polytope
  0 siblings, 0 replies; 4+ messages in thread
From: polytope @ 2009-05-22  3:10 UTC (permalink / raw)
  To: ntg-context

Thank you for help.

It worked if I use the absolute path in LuaTeX, but it is not working  
in ConTeXt and XeConTeXt.
On the otherhand, the relative path is working in ConTeXt and  
XeConTeXt but in LuaTeX.
I'll do more tests.
Is it normal?

Anyway, I got the result.

Thank you again.

Best regards,

Dalyoung 
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-05-22  3:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-21  9:03 loading figure in LuaTeX Dalyoung Jeong
2009-05-21  9:21 ` Yanrui Li
2009-05-21  9:58   ` Alan BRASLAU
2009-05-22  3:10 polytope

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).