I am writing because there appears to be a very large (i.e., approximately a factor of 10) difference in filesizes of the same MetaPost graphic generated in the following 2 ways (1) Including a common MetaPost source "common.mp" into a minimal MKIV document and compiling with `context surface.tex` (2) Including the same "common.mp" into a minimal MetaPost source file and compiling with `mpost surface.mp` followed by a `epstopdf surface.mps`. In case (1), the resulting PDF is about 445kB whereas in case (2) the resulting PDF is about 45kB. I've attached the "surface.tex", "surface.mp", and "common.mp" for those that wish to test this and help determine why ConTeXt's output is so much larger than MetaPost+epstopdf. Thanks in advance for the help. Troy Henderson
On Sat, Mar 6, 2010 at 2:54 PM, Troy Henderson
I am writing because there appears to be a very large (i.e., approximately a factor of 10) difference in filesizes of the same MetaPost graphic generated in the following 2 ways
(1) Including a common MetaPost source "common.mp" into a minimal MKIV document and compiling with `context surface.tex` (2) Including the same "common.mp" into a minimal MetaPost source file and compiling with `mpost surface.mp` followed by a `epstopdf surface.mps`.
In case (1), the resulting PDF is about 445kB whereas in case (2) the resulting PDF is about 45kB. I've attached the "surface.tex", "surface.mp", and "common.mp" for those that wish to test this and help determine why ConTeXt's output is so much larger than MetaPost+epstopdf.
Thanks in advance for the help.
surface.mps 456543 bytes surface.pdf 455544 bytes context mkiv "include" surface.mps (include is not not the exact term); open surface.pdf with and editor and compare with surface.mps. epstopdf compress surface.eps, and if you bzip2 surface.eps you will have almost the same size. -- luigi
For the record, with color enabled, MKII has an output size of about 61kB. With color disabled, MKII has an output size of about 53kB. Both cases are significantly less than MKIV. Troy
Am 06.03.2010 14:54, schrieb Troy Henderson:
I am writing because there appears to be a very large (i.e., approximately a factor of 10) difference in filesizes of the same MetaPost graphic generated in the following 2 ways
(1) Including a common MetaPost source "common.mp" into a minimal MKIV document and compiling with `context surface.tex` (2) Including the same "common.mp" into a minimal MetaPost source file and compiling with `mpost surface.mp` followed by a `epstopdf surface.mps`.
In case (1), the resulting PDF is about 445kB whereas in case (2) the resulting PDF is about 45kB. I've attached the "surface.tex", "surface.mp", and "common.mp" for those that wish to test this and help determine why ConTeXt's output is so much larger than MetaPost+epstopdf.
mh, not here. the mkiv produced pdf (1) has exactly 60382 bytes. MTXrun | current version: 2010.03.02 12:34 This is LuaTeX, Version beta-0.51.0-2010030215 (rev 3445) Peter
Peter, Is there anything special that you're doing? I've attached my LOG file from my MKIV run. Troy
On Sat, 6 Mar 2010, Troy Henderson wrote:
Peter,
Is there anything special that you're doing? I've attached my LOG file from my MKIV run.
Using a newer version of MkIV. You are using 2010.02.20 (2nd line of the log) while Peter is using 2010.03.02. I use 2010.02.23 and get the same file size as you. So probably something changed after that due to which ConTeXt compresses the output more efficiently. Aditya
I updated my ConTeXt distro, and I'm still getting a similar filesize. I've attached the new LOG file. Troy
Wolfgang Schuster wrote:
Am 06.03.10 18:19, schrieb Troy Henderson:
I updated my ConTeXt distro, and I'm still getting a similar filesize.
Peter uses a newer LuaTeX.
There was a bug in luatex that is now fixed in TRUNK. There will be a new official luatex beta (0.51) next week. Best wishes, Taco
Ok then. Now for a newbie question. What is the best way to update LuaTeX? I assumed the first-setup.sh script in my ConTeX-minimals installation would do it for me. Troy
Am 06.03.2010 19:42, schrieb Troy Henderson:
Ok then. Now for a newbie question. What is the best way to update LuaTeX? I assumed the first-setup.sh script in my ConTeX-minimals installation would do it for me.
i always update by hand, so better ask Mojca about it. but as the context and luatex development is coupled, i would suggest to build luatex from its source. shouldn't be a problem on linux and this gives you the most flexibility. svn checkout --username anonymous http://foundry.supelec.fr/svn/luatex/trunk Peter
Updating my LuaTeX did the trick folks. Thanks for the tip. Next question coming (in another thread). Troy
On Sat, Mar 6, 2010 at 20:33, Peter Rolf wrote:
Am 06.03.2010 19:42, schrieb Troy Henderson:
Ok then. Now for a newbie question. What is the best way to update LuaTeX? I assumed the first-setup.sh script in my ConTeX-minimals installation would do it for me.
i always update by hand, so better ask Mojca about it.
Some binaries are there, for example on http://minimals.contextgarden.net/current/bin/linux-64/luatex/trunk/ but there's no guarantee that the version is always recent enough (there's generally not enough need compile a new version of luatex every day). With a minimal fix of mtx-update.lua it should be possible to fetch the version of luatex from "trunk". Mojca
On Sat, Mar 6, 2010 at 20:33, Peter Rolf wrote:
Am 06.03.2010 19:42, schrieb Troy Henderson:
Ok then. Now for a newbie question. What is the best way to update LuaTeX? I assumed the first-setup.sh script in my ConTeX-minimals installation would do it for me.
i always update by hand, so better ask Mojca about it.
Some binaries are there, for example on http://minimals.contextgarden.net/current/bin/linux-64/luatex/trunk/ but there's no guarantee that the version is always recent enough (there's generally not enough need compile a new version of luatex every day).
With a minimal fix of mtx-update.lua it should be possible to fetch the version of luatex from "trunk". svn is for developers, and I suppose that if one needs a trunk realese
On Sun, Mar 7, 2010 at 10:45 AM, Mojca Miklavec
participants (7)
-
Aditya Mahajan
-
luigi scarso
-
Mojca Miklavec
-
Peter Rolf
-
Taco Hoekwater
-
Troy Henderson
-
Wolfgang Schuster