xetex and external pdf stretching
Hi, I'm experimenting with xetex as suggested. All ok up to know. But I'm having a strange problem with figures. Typically I create my diagrams with Omnigraffle, export them in pdf (default setting) and reimport them in ConTeXt. Always fine. Using texexec --xtx I'm having a strange scale in vertical dimension, i.e. the figure is vertically stretched. The figure is ok, because the problem does not arise when I omit the -xtx flag. The code I'm using is trivial \placefigure{{\em Semiotiche}: produzione, distribuzione e accesso.} {\externalfigure[pipeline][width=\textwidth]} No stretching using a png instead of a pdf \placefigure{{\em Semiotiche}: produzione, distribuzione e accesso.} {\externalfigure[pipeline][width=\textwidth]} I guess it could it be in some way related to fonts (the fig is a a diagram labelled with text)? Many thanks Best -a- -------------------------------------------------- Andrea Valle -------------------------------------------------- CIRMA - DAMS Università degli Studi di Torino --> http://www.cirma.unito.it/andrea/ --> andrea.valle@unito.it -------------------------------------------------- I did this interview where I just mentioned that I read Foucault. Who doesn't in university, right? I was in this strip club giving this guy a lap dance and all he wanted to do was to discuss Foucault with me. Well, I can stand naked and do my little dance, or I can discuss Foucault, but not at the same time; too much information. (Annabel Chong) -------------------------------------------------- Andrea Valle -------------------------------------------------- CIRMA - DAMS Università degli Studi di Torino --> http://www.cirma.unito.it/andrea/ --> andrea.valle@unito.it -------------------------------------------------- I did this interview where I just mentioned that I read Foucault. Who doesn't in university, right? I was in this strip club giving this guy a lap dance and all he wanted to do was to discuss Foucault with me. Well, I can stand naked and do my little dance, or I can discuss Foucault, but not at the same time; too much information. (Annabel Chong)
On 9/5/07, Andrea Valle wrote:
Hi,
I'm experimenting with xetex as suggested. All ok up to know. But I'm having a strange problem with figures. Typically I create my diagrams with Omnigraffle, export them in pdf (default setting) and reimport them in ConTeXt. Always fine.
Using texexec --xtx I'm having a strange scale in vertical dimension, i.e. the figure is vertically stretched. The figure is ok, because the problem does not arise when I omit the -xtx flag.
The code I'm using is trivial
\placefigure{{\em Semiotiche}: produzione, distribuzione e accesso.} {\externalfigure[pipeline][width=\textwidth]}
No stretching using a png instead of a pdf
I have just figured out that weird scaling of jpg figures came from XeTeX, not from ConTeXt. Actually, xdv2pdf driver works OK, while xdvipdfmx driver uses some arbitrary scaling. (I might be that resolution wrong in original file, but \XeTeXpicfile "file" width5cm should result in exactly 5cm width, no more and no less.) Can you send me one of problematic PDFs? I would like to check whether the problem lies in ConTeXt or XeTeX ... Mojca
Thanks Mojca, I'll send it to you privately. I've rewritten the wiki entry related to figure specifying that the use of low level command is just a workaround. Best -a- On 13 Sep 2007, at 13:00, Mojca Miklavec wrote:
On 9/5/07, Andrea Valle wrote:
Hi,
I'm experimenting with xetex as suggested. All ok up to know. But I'm having a strange problem with figures. Typically I create my diagrams with Omnigraffle, export them in pdf (default setting) and reimport them in ConTeXt. Always fine.
Using texexec --xtx I'm having a strange scale in vertical dimension, i.e. the figure is vertically stretched. The figure is ok, because the problem does not arise when I omit the -xtx flag.
The code I'm using is trivial
\placefigure{{\em Semiotiche}: produzione, distribuzione e accesso.} {\externalfigure[pipeline][width=\textwidth]}
No stretching using a png instead of a pdf
I have just figured out that weird scaling of jpg figures came from XeTeX, not from ConTeXt. Actually, xdv2pdf driver works OK, while xdvipdfmx driver uses some arbitrary scaling. (I might be that resolution wrong in original file, but \XeTeXpicfile "file" width5cm should result in exactly 5cm width, no more and no less.)
Can you send me one of problematic PDFs? I would like to check whether the problem lies in ConTeXt or XeTeX ...
Mojca
-------------------------------------------------- Andrea Valle -------------------------------------------------- CIRMA - DAMS Università degli Studi di Torino --> http://www.cirma.unito.it/andrea/ --> andrea.valle@unito.it -------------------------------------------------- I did this interview where I just mentioned that I read Foucault. Who doesn't in university, right? I was in this strip club giving this guy a lap dance and all he wanted to do was to discuss Foucault with me. Well, I can stand naked and do my little dance, or I can discuss Foucault, but not at the same time; too much information. (Annabel Chong)
participants (2)
-
Andrea Valle
-
Mojca Miklavec