Re: lyx2pdf
Hi Vincent, Vincent van Ravesteijn - TNW schrieb: From: Matthias Coy [mailto:matthias@gmx.de] Hi there, still not quite working :/ Now the PNG/EPS/PDF looks all the same, almost good, but the text inside those UML classes is a little to big. Well, if I convert your plain svg with Inkscape the same as you do, my EPS looks good, while yours (found it on your server) doesn't. Can you run Inkscape with a GUI and see how it renders it ? Maybe it uses a different font than the other svg-renderers. Bytheway, I use Inkscape 0.45.1 on WinXp. Vincent Now I've loaded the "test.inkscape.plain.svg" into my WinXP Inkscape 0.46 (1. April 2008), exported it to PNG and it looks nice. The version of inkscape on the server is also 0.46. I don't know which libraries the windows version uses, but on (gentoo-)linux it looks like this: media-gfx/inkscape-0.46-r5: media-libs/freetype-2.3.7 media-libs/libpng-1.2.33 media-libs/lcms-1.17 app-text/poppler-bindings-0.8.7 media-libs/fontconfig-2.6.0-r2 media-gfx/imagemagick-6.4.4.6 x11-libs/pango-1.20.5 x11-libs/libXft-2.1.12 x11-libs/gtk+-2.12.11 So on windows it looks good, on linux it doesn't ... Hopefully someone can help Matt
Re: lyx2pdf
Hi there, still not quite working :/ here is my little testscript: http://pastebin.mozilla.org/608410 and here some output: While the original SVG (generated by Visual Paradigm UML) http://matthiascoy.de/temp/test.original.svg looks kind of awkward in Firefox, the "plain svg" http://matthiascoy.de/temp/test.inkscape.plain.svg looks very good. So I took that to generate PDF http://matthiascoy.de/temp/test.inkscape.pdf and, as you can see, it looks DIFFERENT. Now the PNG/EPS/PDF looks all the same, almost good, but the text inside those UML classes is a little to big. Hopefully some knows what the problem is :/ Regards Matt Vincent van Ravesteijn schrieb: Matthias Coy schreef: Hi again, I found out, that these two files (or at least one of them) work: ~/.lyx/lyxrc.dist ~/.lyx/preferences I put in them the following lines: \format "SVG" "svg" "svg" "" "inkview" "inkscape" "vector" \converter "SVG" "eps" "inkscape -F -D -z $$i --export-eps=$$o" "" \converter "SVG" "png" "inkscape -D -z $$i --export-png=$$o" "" \converter "SVG" "pdf" "inkscape -D -z $$i --export-pdf=$$o" "" and the quality is much better. Now I have the problem, that the pictures are looking "strange". This is how it should look (svg opened with inkscape): http://img187.imageshack.us/my.php?image=withininkscapevd0.png This is how the PDF export shows it: http://img523.imageshack.us/my.php?image=pdfexportoj4.png And here it doesn't matter if "lyx -e pdf[2-3]?", I've tried them all. What strange behaviour is this? You probably want to add the option -T or --export-text-to-path to the inkscape parameter list. With this option, the text is rendered as a part of the drawing. Without this option, the text uses the latex/postscript font and this might have a different size as shown in Inkscape. This is useful when you want to replace the text by latex text/math with psfrag. Vincent
Re: lyx2pdf
Hi again, I found out, that these two files (or at least one of them) work: ~/.lyx/lyxrc.dist ~/.lyx/preferences I put in them the following lines: \format "SVG" "svg" "svg" "" "inkview" "inkscape" "vector" \converter "SVG" "eps" "inkscape -F -D -z $$i --export-eps=$$o" "" \converter "SVG" "png" "inkscape -D -z $$i --export-png=$$o" "" \converter "SVG" "pdf" "inkscape -D -z $$i --export-pdf=$$o" "" and the quality is much better. Now I have the problem, that the pictures are looking "strange". This is how it should look (svg opened with inkscape): http://img187.imageshack.us/my.php?image=withininkscapevd0.png This is how the PDF export shows it: http://img523.imageshack.us/my.php?image=pdfexportoj4.png And here it doesn't matter if "lyx -e pdf[2-3]?", I've tried them all. What strange behaviour is this? Kindly regards Matt Manveru schrieb: 2009/1/7 Matthias Coy : Actually I found http://wiki.lyx.org/Tips/UseInkscapeSVGImages which works fine for me on Windows. And yes, I have inkscape. But I'm generating the pdf on my server (gentoo linux) and there is no X installed on that. So it's kind of difficult to make those changes without a gui. Are there any files I can edit, which will be read and not overwritten? Manveru schrieb: [...] Do you have inkscape installed? Or do you rely on default configuration? From my experience processing SVG graphics without Inkscape gives very poor quality of pictures. I cannot help you with manual configuration of Inkscape on Linux as I do not have experience with that yet. But yes, it is possible to configure formats in LyX to get Inkscape producing images automatically by editing files. But I have to ask someone having Linux installation to point you proper files. Can anyone help?
Re: lyx2pdf
Actually I found http://wiki.lyx.org/Tips/UseInkscapeSVGImages which works fine for me on Windows. And yes, I have inkscape. But I'm generating the pdf on my server (gentoo linux) and there is no X installed on that. So it's kind of difficult to make those changes without a gui. Are there any files I can edit, which will be read and not overwritten? Regards Matt Manveru schrieb: 2009/1/7 Matthias Coy : Hi there, I'm using the CLI interface of lyx: /usr/bin/lyx -e pdf somefile.lyx Inside the lyx file I have some SVG images which are converted to a _very_ bad quality. When I use htlatex: /usr/bin/lyx -e latex somefile.lyx /usr/bin/htlatex somefile.tex "xhtml,charset=utf-8" " -cunihtf -utf8" to generate HTML out of it, it gives me some PNG files with roughly the same bad quality. Does anyone know how to increase the quality of picutures? Do you have inkscape installed? Or do you rely on default configuration? From my experience processing SVG graphics without Inkscape gives very poor quality of pictures.
lyx2pdf
Hi there, I'm using the CLI interface of lyx: /usr/bin/lyx -e pdf somefile.lyx Inside the lyx file I have some SVG images which are converted to a _very_ bad quality. When I use htlatex: /usr/bin/lyx -e latex somefile.lyx /usr/bin/htlatex somefile.tex "xhtml,charset=utf-8" " -cunihtf -utf8" to generate HTML out of it, it gives me some PNG files with roughly the same bad quality. Does anyone know how to increase the quality of picutures? Regards Matt
Re: Insert URL
Just found "Insert Hyperlink" *head against wall* Regards Matthias Matthias Coy schrieb: Hi there, I want to insert a URL into LyX. This is quite easy if I use "Menu Insert -> URL", but I want more something like the HTML URL: http://example.org";>A link to example.org As you can see, there is the URL and the text that is shown. How can I do that kind of URL in Lyx? Regards Matthias
Insert URL
Hi there, I want to insert a URL into LyX. This is quite easy if I use "Menu Insert -> URL", but I want more something like the HTML URL: http://example.org";>A link to example.org As you can see, there is the URL and the text that is shown. How can I do that kind of URL in Lyx? Regards Matthias
Re: links to bibliography
found the solution myself, it's inside the extended documentation file: short: include the bibliography-file inside a comment, s.th. like \begin{comment} \include{bibliography.lyx} \end{comment} mc Matthias Coy schrieb: Hi there, I've splitted my document into seperate files. S.th. like mergefile.lyx cover.lyx tableOfContents.lyx chapter1.lyx chapter2.lyx bibliography.lyx the mergefile itself only includes the four other files. So, if I create a PDF out of mergefile, everything looks finde, the numbering of the chapters is great. BUT: Now I added a entry into the bibliography (->bibliography.lyx) and want to refer inside of chapter1 (->chapter1.lyx). But, of course, chapter1 isn't aware of the entries inside the bibliography. How do I make chapter1 aware of those entries, without including the document (because then, I would have it twice)? Regards Matt
links to bibliography
Hi there, I've splitted my document into seperate files. S.th. like mergefile.lyx cover.lyx tableOfContents.lyx chapter1.lyx chapter2.lyx bibliography.lyx the mergefile itself only includes the four other files. So, if I create a PDF out of mergefile, everything looks finde, the numbering of the chapters is great. BUT: Now I added a entry into the bibliography (->bibliography.lyx) and want to refer inside of chapter1 (->chapter1.lyx). But, of course, chapter1 isn't aware of the entries inside the bibliography. How do I make chapter1 aware of those entries, without including the document (because then, I would have it twice)? Regards Matt
Re: Scripted generation of pdf.
Guillaume Yziquel schrieb: > Hello, list. > > I want to generate some .dvi, .ps, and .pdf files from a .lyx file from > within a script. The idea is to generate these targets through a Makefile. > > Any pointers or suggestions would be highly appreciated. > > Thanks in advance. > > Guillaume Yziquel. > > P.S.: please keep my address in Cc: or To: when answering. Never tried a makefile, but the cli-syntax is pdflatex: lyx -e pdf file.lyx another pdf generation, I can't remember the name, but it goes over the dvi step. lyx -e pdf2 file.lyx Regards Matt
Re: Margins
Richard Heck schrieb: Matthias Coy wrote: Hi there, I'm trying to figure out what the margins in 1.6.0RC4 are meaning. I found this: picture: http://labmaster.mi.infn.it/wwwasdoc.web.cern.ch/wwwasdoc/TL8/texmf/doc/html/polish/latex2e/macro/geom1.png I only have the german version, so the english labels could be different. So there are seven different margins that I can change via Document->Properties->Margin. 1) Lyx: "top" (german: oben); sourceview: "tmargin"; picture: "top" 2) Lyx: "bottom" (german: unten); sourceview: "bmargin"; picture: "bottom" 3) Lyx: "inside" (german: innen); sourceview: "lmargin"; picture: "left" 4) Lyx: "outside" (german: außen); sourceview: "rmargin"; picture: "right" 5) Lyx: "distance to head" (german: abstand zum kopf); sourceview: "headsep"; picture: "headsep" 6) Lyx: "height of head" (german: kopfzeilenhöhe); sourceview: "headheight"; picture: "headheight" 7) Lyx: "distance to foot" (german: abstand zum fuß); sourceview: "footskip"; picture: "footskip" Am I right with this? More or less, yes, though I'm not sure about (7). These settings just pass options to the geometry package, so check that package's documentation for the details. footskip is: distance separation between baseline of last line of text and baseline of footer where footer itself isn't definied, as far as I can see. This settings doesn't make any sense to me, why is there a setting "bottom" and a setting "footskip"? Can anyone give me an example for the use of footskip? rh mc
Margins
Hi there, I'm trying to figure out what the margins in 1.6.0RC4 are meaning. I found this: picture: http://labmaster.mi.infn.it/wwwasdoc.web.cern.ch/wwwasdoc/TL8/texmf/doc/html/polish/latex2e/macro/geom1.png I only have the german version, so the english labels could be different. So there are seven different margins that I can change via Document->Properties->Margin. 1) Lyx: "top" (german: oben); sourceview: "tmargin"; picture: "top" 2) Lyx: "bottom" (german: unten); sourceview: "bmargin"; picture: "bottom" 3) Lyx: "inside" (german: innen); sourceview: "lmargin"; picture: "left" 4) Lyx: "outside" (german: außen); sourceview: "rmargin"; picture: "right" 5) Lyx: "distance to head" (german: abstand zum kopf); sourceview: "headsep"; picture: "headsep" 6) Lyx: "height of head" (german: kopfzeilenhöhe); sourceview: "headheight"; picture: "headheight" 7) Lyx: "distance to foot" (german: abstand zum fuß); sourceview: "footskip"; picture: "footskip" Am I right with this? Regards Matthias
Re: Abstract and some formats
Jürgen Spitzmüller schrieb: Matthias Coy wrote: It seems to be very difficult to use any kind of formatation (like a heading or a item-list) inside a Abstract (KOMA-report). The item-list only works if one indents it, And this is exactly how it is supposed to be. Almost everything can be nested into an abstract. but I didn't had any success in creating headings for a better "look". Why do you need a heading? Have you tried the KOMA class option "abstracton"? Yes, this is on. I don't mean the "Abstract" heading, I want to create "subheadings" such as ... motivation, goal, company. Jürgen
Re: Abstract and some formats
Uwe Stöhr schrieb: Matthias Coy schrieb: It seems to be very difficult to use any kind of formatation (like a heading or a item-list) inside a Abstract (KOMA-report). Yes because an abtract is gemerally not designed to have items and headings. It normally only contains plain text. The text layout is defined by the document class you are using. regards Uwe Yes, "normally". But I want to break that rule :) Best chance is now to just not use Abstract and make a "chapter*" out of it. regards matt
Abstract and some formats
Hi there, It seems to be very difficult to use any kind of formatation (like a heading or a item-list) inside a Abstract (KOMA-report). The item-list only works if one indents it, but I didn't had any success in creating headings for a better "look". Regards Matthias
affidavit
Hi, I'm currently writing my thesis using lyx, and now I want to insert a affidavit into my document (which is komascript-report). Does anyone know a good solution for that? Of course, I could use a "chapter" for that, but it's kind of awkward. Greetings Matthias Coy