wglmb wrote:
Sorry, I don't understand what this means
I mean, I can export as .eps, but I don't know what you mean after that. Are you able to explain?
I'll try. There are different ways of processing a .tex file to create output. You've probably been using PDFLaTeX. But there are other options. You'll notice, e.g., that there is a dropdown menu of different things to run next to the "go" button in TeXworks.
For example, you might try "XeLaTeX" instead of "PDFLaTeX" (which, like PDFLaTeX, create a PDF file, but does so using the XeTeX engine rather than the PDFTeX engine), and see if the result looks any different in Acrobat Reader. (Though when I tried XeLaTeX with the same code, I didn't notice any difference from poster.pdf personally.)
The original program to use to compile a LaTeX file was simply called "LaTeX", and with MikTeX you surely have that installed as well. These programs use different output drivers, and hence interact with graphics in different ways. PDFLaTeX, for example, supports PDF, PNG and JPG graphics. Plain LaTeX, however, supports post-script based EPS graphics instead of PDF graphics.
The only problem is that TeXworks, if I remember right, does not define an output profile for LaTeX by default. This is probably because TeXworks assumes you want to use its built in PDF preview, and plain LaTeX outputs a DVI file rather than a PDF file. However, it is possible to convert a DVI file to a PDF file. The safest way of doing so involves two other programs, one called DVIPS, which also comes with MikTeX, which converts DVI files to PS (postscript) files, and another one called PS2PDF, which comes with Ghostscript, which converts PS files to PDF. You probably have Ghostscript installed, since most guides which tell people how to install LaTeX recommend installing Ghostscript as well. (And in case you don't,
you can get Ghostscript here. It's free and open source software too.)
So I was suggesting that you try exporting the image to EPS in Inkscape, and then use it as background with the file, processing with plain LaTeX rather than regular LaTeX; to get a PDF file you could then convert the DVI that LaTeX outputs to PS and then convert that to PDF. In order to do this, you'd either need to add a LaTeX/DVIPS/PS2PDF output routine to TeXworks
(instructions here -- though I've never tried this!), or else process everything from the Command Prompt (or use a different editor).
The commands should be:
Code: Select all
latex poster.tex
dvips poster.dvi
ps2pdf poster.ps
But that assumes all these commands are in your path of executable files, and I'm not sure if they are if you're using MiKTeX on Windows. I use linux, not Windows. Probably you could put in the full path to these programs instead, e.g.,
Code: Select all
"C:\Program Files\gs\gs9.00\bin\ps2pdf.bat" poster.ps
Or something like that, but I don't have access to a machine running Windows so I can't check the exact paths to use or test any of that.
I actually tried that (converting bg.pdf to bg.eps using pdftops, another tool that comes with ghostscript), and that did seem to make a difference too. I would post the output here, but it's just over the file attachment limit in size.
That is interesting! If I can't fix this problem, I'd like at least to be able to apply what you've done here to my final result, since that would look better I think.
Again, could you explain a bit more how you did this?
As I mentioned above, ps2pdf is a program that comes with Ghostscript that is typically used to convert PostScript files to PDF files. However, it can also be used to convert PDF files to PDF files, by converting to PostScript and then back to PDF. The way I did it is via the command line:
Code: Select all
ps2pdf poster.pdf poster-ps2pdf.pdf
Of course, I used the Linux command line. I don't know if it's quite so easy if you're using Windows, but maybe something like:
Code: Select all
"C:\Program Files\gs\gs9.00\bin\ps2pdf.bat" poster.pdf poster-ps2pdf.pdf
From the Command Prompt/DOS prompt would do the same? Again, I can't test that. You'd have to check the exact path to ps2pdf and ensure that it's ps2pdf.bat not ps2pdf.exe or some other nonsense you only have to deal with on Windows. (Here's where I would normally launch into a anti-Microsoft diatribe, but I'll spare you for the moment...)