Re: Cannot get Externam Material: Inkscape figure to work
Am Freitag, den 03.11.2017, 08:28 +0100 schrieb racoon: > The feature works in rc1 now. Great! Good. Thanks for confirming. > But there is no UI preference to set the scaling, right? Right. It seems to have been left out by purpose (there's an according comment in the xtemplate file), but it would be easy to add it (now; later, it would be a file format change). Scott, are you interested in that? See attached patch. Jürgen > > Daniel > diff --git a/lib/xtemplates/inkscape.xtemplate b/lib/xtemplates/inkscape.xtemplate index e4fc14d531..ff0b6b5ae7 100644 --- a/lib/xtemplates/inkscape.xtemplate +++ b/lib/xtemplates/inkscape.xtemplate @@ -46,11 +46,12 @@ Template Inkscape FileFilter "*.{svg}" AutomaticProduction true Transform Rotate + Transform Resize Preview InstantPreview Format PDFLaTeX TransformCommand Rotate RotationLatexCommand - # Resize is not desirable here, as fonts are sized to surrounding LaTeX font - Product "$$RotateFront\\input{$$AbsOrRelPathMaster$$Basename.pdf_tex}$$RotateBack" + TransformCommand Resize ResizeLatexCommand + Product "$$RotateFront$$ResizeFront\\input{$$AbsOrRelPathMaster$$Basename.pdf_tex}$$ResizeBack$$RotateBack" UpdateFormat pdftex UpdateResult "$$AbsPath$$Basename.pdf_tex" Requirement "xcolor" @@ -63,7 +64,8 @@ Template Inkscape FormatEnd Format LaTeX TransformCommand Rotate RotationLatexCommand - Product "$$RotateFront\\input{$$AbsOrRelPathMaster$$Basename.eps_tex}$$RotateBack" + TransformCommand Resize ResizeLatexCommand + Product "$$RotateFront$$ResizeFront\\input{$$AbsOrRelPathMaster$$Basename.eps_tex}$$ResizeBack$$RotateBack" UpdateFormat pstex UpdateResult "$$AbsPath$$Basename.eps_tex" Requirement "xcolor" signature.asc Description: This is a digitally signed message part
Re: Cannot get Externam Material: Inkscape figure to work
The feature works in rc1 now. Great! But there is no UI preference to set the scaling, right? Daniel On 12.10.2017 15:01, Jürgen Spitzmüller wrote: 2017-10-12 14:49 GMT+02:00 racoon>: Thanks. Yes, its 2.3beta1 from the website. Unfortunately, there are no such lines in configre.py. Ah ... The simple reason is that the Windows fixes for the Inkscape template went in after beta1 was released. So you will have to wait for the next (rc1?) release. Sorry. For details, see http://www.lyx.org/trac/ticket/10679 Jürgen Daniel
Re: Cannot get Externam Material: Inkscape figure to work
On 12.10.2017 16:01, Jürgen Spitzmüller wrote: 2017-10-12 14:49 GMT+02:00 racoon>: Thanks. Yes, its 2.3beta1 from the website. Unfortunately, there are no such lines in configre.py. Ah ... The simple reason is that the Windows fixes for the Inkscape template went in after beta1 was released. So you will have to wait for the next (rc1?) release. Sorry. For details, see http://www.lyx.org/trac/ticket/10679 Good to know. Daniel
Re: Cannot get Externam Material: Inkscape figure to work
2017-10-12 14:49 GMT+02:00 racoon: > > Thanks. Yes, its 2.3beta1 from the website. Unfortunately, there are no > such lines in configre.py. > Ah ... The simple reason is that the Windows fixes for the Inkscape template went in after beta1 was released. So you will have to wait for the next (rc1?) release. Sorry. For details, see http://www.lyx.org/trac/ticket/10679 Jürgen > > Daniel > >
Re: Cannot get Externam Material: Inkscape figure to work
On 12.10.2017 15:26, Jürgen Spitzmüller wrote: 2017-10-12 13:59 GMT+02:00 racoon: 14:59:07.641: checking for a FIG -> Image converter... 14:59:07.721: +checking for "fig2dev"... no 14:59:07.722: checking for a TIFF -> PS converter... 14:59:07.733: +checking for "tiff2ps"... no The check for a SVG -> PDFTeX converter ans a SVG -> PSTeX converter is supposed to happen between these two checks. The question is why this is not the case for you. Please check: Do you really run a recent (enough) version of LyX? I suppose this is LyX 2.3beta1 (the Windows installer), but please open the configre.py file (in your case: C:/Users/Daniel/AppData/Local/LyX 2.3/Resources/configure.py) with an editor and check whether it contains the following lines: # checkProg('a SVG -> PDFTeX converter', [inkscape_name], rc_entry = [ r'\converter svg pdftex "python -tt $$s/scripts/svg2pdftex.py %% $$p$$i $$p$$o" ""'], path = [inkscape_path]) # checkProg('a SVG -> PSTeX converter', [inkscape_name], rc_entry = [ r'\converter svg pstex "python -tt $$s/scripts/svg2pstex.py %% $$p$$i $$p$$o" ""'], path = [inkscape_path]) Thanks. Yes, its 2.3beta1 from the website. Unfortunately, there are no such lines in configre.py. Daniel
Re: Cannot get Externam Material: Inkscape figure to work
2017-10-12 13:59 GMT+02:00 racoon: > 14:59:07.641: checking for a FIG -> Image converter... > 14:59:07.721: +checking for "fig2dev"... no > 14:59:07.722: checking for a TIFF -> PS converter... > 14:59:07.733: +checking for "tiff2ps"... no > The check for a SVG -> PDFTeX converter ans a SVG -> PSTeX converter is supposed to happen between these two checks. The question is why this is not the case for you. Please check: Do you really run a recent (enough) version of LyX? I suppose this is LyX 2.3beta1 (the Windows installer), but please open the configre.py file (in your case: C:/Users/Daniel/AppData/Local/LyX 2.3/Resources/configure.py) with an editor and check whether it contains the following lines: # checkProg('a SVG -> PDFTeX converter', [inkscape_name], rc_entry = [ r'\converter svgpdftex "python -tt $$s/scripts/svg2pdftex.py %% $$p$$i $$p$$o" ""'], path = [inkscape_path]) # checkProg('a SVG -> PSTeX converter', [inkscape_name], rc_entry = [ r'\converter svgpstex "python -tt $$s/scripts/svg2pstex.py %% $$p$$i $$p$$o" ""'], path = [inkscape_path]) Thanks Jürgen
Re: Cannot get Externam Material: Inkscape figure to work
On 12.10.2017 14:36, Jürgen Spitzmüller wrote: 2017-10-12 11:30 GMT+02:00 racoon>: On 12.10.2017 11:11, Jürgen Spitzmüller wrote: 1. Do you have inkscape installed? Yes. 2. Which converter do you have set in preferences for SVG -> PDFTEX? It There is no such entry. I have only SVG -> EPS, SVG -> PDF (graphics), and SVG -> PNG. SVG -> PDF (graphics), for example, is set to rsvg-convert -f pdf -o $$o $$i Do I have to add SVG -> PDFTEX manually? What will I have to set it to? Tools > Reconfigure is supposed to set it up. Can you run this and post the console/message pane output (or the relevant snippets, as suggested by Kornel)? 14:59:00.410: Running configure... 14:59:00.570: python -tt "C:/Users/Daniel/AppData/Local/LyX 2.3/Resources/configure.py" --binary-dir="C:/Users/Daniel/AppData/Local/LyX 2.3/bin/" 14:59:00.730: checking for DVI to DTL converter... 14:59:00.730: +checking for "dv2dt"... yes 14:59:00.730: checking for DTL to DVI converter... 14:59:00.730: +checking for "dt2dv"... yes 14:59:00.730: checking for a Latex2e program... 14:59:00.740: +checking for "latex"... yes 14:59:00.740: checking for a DVI postprocessing program... 14:59:00.740: +checking for "pplatex"... yes 14:59:00.740: checking for pLaTeX, the Japanese LaTeX... 14:59:00.751: +checking for "platex"... no 14:59:01.392: checking for a java interpreter... 14:59:01.392: +checking for "java"... yes 14:59:01.392: checking for a perl interpreter... 14:59:01.392: +checking for "perl"... yes 14:59:01.392: checking for a Tgif viewer and editor... 14:59:01.392: +checking for "tgif"... no 14:59:01.402: checking for a FIG viewer and editor... 14:59:01.402: +checking for "xfig"... no 14:59:01.432: +checking for "jfig3-itext.jar"... no 14:59:01.502: +checking for "jfig3.jar"... no 14:59:01.502: checking for a Dia viewer and editor... 14:59:01.512: +checking for "dia"... no 14:59:01.512: checking for an OpenDocument drawing viewer and editor... 14:59:01.582: +checking for "libreoffice"... no 14:59:01.592: +checking for "lodraw"... no 14:59:01.662: +checking for "ooffice"... no 14:59:01.672: +checking for "oodraw"... no 14:59:01.723: +checking for "soffice"... no 14:59:01.725: checking for a Grace viewer and editor... 14:59:01.817: +checking for "xmgrace"... no 14:59:01.819: checking for a FEN viewer and editor... 14:59:01.821: +checking for "xboard"... no 14:59:01.823: checking for a SVG viewer and editor... 14:59:01.824: +checking for "inkscape"... yes 14:59:01.826: checking for a raster image viewer... 14:59:01.864: +checking for "xv"... no 14:59:01.904: +checking for "gwenview"... no 14:59:01.947: +checking for "kview"... no 14:59:01.986: +checking for "eog"... no 14:59:02.056: +checking for "xviewer"... no 14:59:02.066: +checking for "ristretto"... no 14:59:02.136: +checking for "gpicview"... no 14:59:02.146: +checking for "lximage-qt"... no 14:59:02.206: +checking for "xdg-open"... no 14:59:02.237: +checking for "gimp-remote"... no 14:59:02.288: +checking for "gimp"... no 14:59:02.288: checking for a raster image editor... 14:59:02.356: +checking for "gimp-remote"... no 14:59:02.368: +checking for "gimp"... no 14:59:02.369: checking for a text editor... 14:59:02.440: +checking for "xemacs"... no 14:59:02.450: +checking for "gvim"... no 14:59:02.501: +checking for "kedit"... no 14:59:02.549: +checking for "kwrite"... no 14:59:02.582: +checking for "kate"... no 14:59:02.652: +checking for "nedit"... no 14:59:02.662: +checking for "gedit"... no 14:59:02.692: +checking for "geany"... no 14:59:02.771: +checking for "leafpad"... no 14:59:02.782: +checking for "mousepad"... no 14:59:02.824: +checking for "xed"... no 14:59:02.854: +checking for "notepad"... yes 14:59:02.854: checking for gnumeric spreadsheet software... 14:59:02.884: +checking for "gnumeric"... no 14:59:02.894: checking for an HTML previewer... 14:59:02.944: +checking for "firefox"... no 14:59:02.984: +checking for "mozilla"... no 14:59:03.016: +checking for "netscape"... no 14:59:03.016: checking for a BibTeX editor... 14:59:03.026: +checking for "jabref"... yes 14:59:03.036: +checking for "JabRef"... yes 14:59:03.108: +checking for "pybliographic"... no 14:59:03.118: +checking for "bibdesk"... no 14:59:03.188: +checking for "gbib"... no 14:59:03.198: +checking for "kbib"... no 14:59:03.268: +checking for "kbibtex"... no 14:59:03.314: +checking for "sixpack"... no 14:59:03.326: +checking for "bibedit"... no 14:59:03.400: +checking for "tkbibtexxemacs"... no 14:59:03.410: +checking for "gvim"... no 14:59:03.505: +checking for "kedit"... no 14:59:03.507: +checking for "kwrite"... no 14:59:03.542: +checking for "kate"... no 14:59:03.572: +checking for "jedit"... no 14:59:03.642: +checking for "TeXnicCenter"... no 14:59:03.652: +checking for "WinEdt"... no 14:59:03.722: +checking for "WinShell"... no
Re: Cannot get Externam Material: Inkscape figure to work
On 12.10.2017 12:37, Kornel Benko wrote: Am Donnerstag, 12. Oktober 2017 um 12:30:29, schrieb racoonOn 12.10.2017 11:11, Jürgen Spitzmüller wrote: 1. Do you have inkscape installed? Yes. 2. Which converter do you have set in preferences for SVG -> PDFTEX? It There is no such entry. I have only SVG -> EPS, SVG -> PDF (graphics), and SVG -> PNG. SVG -> PDF (graphics), for example, is set to rsvg-convert -f pdf -o $$o $$i Do I have to add SVG -> PDFTEX manually? What will I have to set it to? Daniel You could check first 'configure.log' for entry like INFO: checking for a SVG viewer and editor... INFO: +checking for "inkscape"... yes DEBUG: Add to RC: \Format svg"svg" SVG"" "inkscape" "inkscape""vector" "image/svg+xml" \Format svgz "svgz" "SVG (compressed)" "" "inkscape" "inkscape" "vector,zipped=native" "" INFO: checking for a SVG viewer and editor... INFO: +checking for "inkscape"... yes DEBUG: Add to RC: \Format svg"svg" SVG"" "\"C:\Program Files (x86)\Inkscape\inkscape\"" "\"C:\Program Files (x86)\Inkscape\inkscape\"" "vector" "image/svg+xml" \Format svgz "svgz" "SVG (compressed)" "" "\"C:\Program Files (x86)\Inkscape\inkscape\"" "\"C:\Program Files (x86)\Inkscape\inkscape\"" "vector,zipped=native" "" and lyxrc.defaults for # egrep inkscape lyxrc.defaults That's some kind of unix command, right? It searches the file for 'inkscape', right? Here is what I found: \Format svg"svg" SVG"" "\"C:\Program Files (x86)\Inkscape\inkscape\"" "\"C:\Program Files (x86)\Inkscape\inkscape\"" "vector" "image/svg+xml" \Format svgz "svgz" "SVG (compressed)" "" "\"C:\Program Files (x86)\Inkscape\inkscape\"" "\"C:\Program Files (x86)\Inkscape\inkscape\"" "vector,zipped=native" "" \editor_alternatives svg "\"C:\Program Files (x86)\Inkscape\inkscape\"" \viewer_alternatives svg "\"C:\Program Files (x86)\Inkscape\inkscape\"" \editor_alternatives svgz "\"C:\Program Files (x86)\Inkscape\inkscape\"" \viewer_alternatives svgz "\"C:\Program Files (x86)\Inkscape\inkscape\"" \converter wmfeps"inkscape --file=$$i --export-area-drawing --without-gui --export-eps=$$o" "" \converter emfeps"inkscape --file=$$i --export-area-drawing --without-gui --export-eps=$$o" "" \converter wmfpdf6"inkscape --file=$$i --export-area-drawing --without-gui --export-pdf=$$o" "" \converter emfpdf6"inkscape --file=$$i --export-area-drawing --without-gui --export-pdf=$$o" "" Daniel
Re: Cannot get Externam Material: Inkscape figure to work
2017-10-12 11:30 GMT+02:00 racoon: > On 12.10.2017 11:11, Jürgen Spitzmüller wrote: > >> 1. Do you have inkscape installed? >> > > Yes. > > 2. Which converter do you have set in preferences for SVG -> PDFTEX? It >> > > There is no such entry. I have only > > SVG -> EPS, SVG -> PDF (graphics), and SVG -> PNG. > > SVG -> PDF (graphics), for example, is set to > > rsvg-convert -f pdf -o $$o $$i > > Do I have to add SVG -> PDFTEX manually? What will I have to set it to? > Tools > Reconfigure is supposed to set it up. Can you run this and post the console/message pane output (or the relevant snippets, as suggested by Kornel)? Jürgen > > Daniel > >
Re: Cannot get Externam Material: Inkscape figure to work
Am Donnerstag, 12. Oktober 2017 um 12:30:29, schrieb racoon> On 12.10.2017 11:11, Jürgen Spitzmüller wrote: > > 1. Do you have inkscape installed? > > Yes. > > > 2. Which converter do you have set in preferences for SVG -> PDFTEX? It > > There is no such entry. I have only > > SVG -> EPS, SVG -> PDF (graphics), and SVG -> PNG. > > SVG -> PDF (graphics), for example, is set to > > rsvg-convert -f pdf -o $$o $$i > > Do I have to add SVG -> PDFTEX manually? What will I have to set it to? > > Daniel You could check first 'configure.log' for entry like INFO: checking for a SVG viewer and editor... INFO: +checking for "inkscape"... yes DEBUG: Add to RC: \Format svg"svg" SVG"" "inkscape" "inkscape" "vector""image/svg+xml" \Format svgz "svgz" "SVG (compressed)" "" "inkscape" "inkscape" "vector,zipped=native" "" and lyxrc.defaults for # egrep inkscape lyxrc.defaults \Format svg"svg" SVG"" "inkscape" "inkscape" "vector""image/svg+xml" \Format svgz "svgz" "SVG (compressed)" "" "inkscape" "inkscape" "vector,zipped=native" "" \editor_alternatives svg "inkscape" \viewer_alternatives svg "inkscape" \editor_alternatives svgz "inkscape" \viewer_alternatives svgz "inkscape" \converter svgpdftex "python -tt $$s/scripts/svg2pdftex.py inkscape $$p$$i $$p$$o" "" \converter svgpstex "python -tt $$s/scripts/svg2pstex.py inkscape $$p$$i $$p$$o" "" \converter wmfpdf6"inkscape --file=$$p$$i --export-area-drawing --without-gui --export-pdf=$$p$$o" "" \converter emfpdf6"inkscape --file=$$p$$i --export-area-drawing --without-gui --export-pdf=$$p$$o" "" Kornel signature.asc Description: This is a digitally signed message part.
Re: Cannot get Externam Material: Inkscape figure to work
On 12.10.2017 11:11, Jürgen Spitzmüller wrote: 1. Do you have inkscape installed? Yes. 2. Which converter do you have set in preferences for SVG -> PDFTEX? It There is no such entry. I have only SVG -> EPS, SVG -> PDF (graphics), and SVG -> PNG. SVG -> PDF (graphics), for example, is set to rsvg-convert -f pdf -o $$o $$i Do I have to add SVG -> PDFTEX manually? What will I have to set it to? Daniel
Re: Cannot get Externam Material: Inkscape figure to work
2017-10-12 9:51 GMT+02:00 racoon: > 10:49:29.287: Previewing ... > 10:49:29.307: (buffer-view: Ctrl+R) > 10:49:29.307: (command-alternatives master-buffer-view; buffer-view: > Ctrl+Alt+R) > 10:49:29.467: python -tt "C:/Users/Daniel/AppData/Local/LyX > 2.3/Resources/scripts/convertDefault.py" svg > "C:/Users/Daniel/AppData/Local/Temp/lyx_tmpdir.ynRZjbTL5428/ > lyx_tmpbuf2/0C__Users_Daniel_Desktop_LyX_the_aggregation_sequence.svg" > pdftex_t "C:/Users/Daniel/AppData/Local/Temp/lyx_tmpdir.ynRZjbTL5428/ > lyx_tmpbuf2/0C__Users_Daniel_Desktop_LyX_the_aggregation_sequence.pdf_tex" > 10:49:32.251: magick: unable to open image 'pdftex_t:C:/Users/Daniel/AppD > ata/Local/Temp/lyx_tmpdir.ynRZjbTL5428/lyx_tmpbuf2/0C__Users > _Daniel_Desktop_LyX_the_aggregation_sequence.pdf_tex': Invalid argument @ > error/ > 10:49:32.255: blob.c/OpenBlob/3109. > 10:49:32.258: C:/Users/Daniel/AppData/Local/LyX > 2.3/Resources/scripts/convertDefault.py ERROR > 10:49:32.259: Execution of "magick" failed. > support/Systemcall.cpp (294): Systemcall: 'python -tt > "C:/Users/Daniel/AppData/Local/LyX 2.3/Resources/scripts/convertDefault.py" > svg "C:/Users/Daniel/AppData/Local/Temp/lyx_tmpdir.ynRZjbTL5428/ > lyx_tmpbuf2/0C__Users_Daniel_Desktop_LyX_the_aggregation_sequence.svg" > pdftex_t "C:/Users/Daniel/AppData/Local/Temp/lyx_tmpdir.ynRZjbTL5428/ > lyx_tmpbuf2/0C__Users_Daniel_Desktop_LyX_the_aggregation_sequence.pdf_tex"' > finished with exit code 1 > Error: Cannot convert file > 1. Do you have inkscape installed? 2. Which converter do you have set in preferences for SVG -> PDFTEX? It looks like this uses convertDeafult, whereas it should use inkscape. Jürgen
Re: Cannot get Externam Material: Inkscape figure to work
On 11.10.2017 17:24, Jürgen Spitzmüller wrote: 2017-10-11 8:24 GMT+02:00 racoon>: What more debug information is needed? For instance the console/message pane output, if any. We need to know whether the problem is that Inkscape is not found or whether there are other problems in the conversion process. Thanks. Here it is: 10:49:29.287: Previewing ... 10:49:29.307: (buffer-view: Ctrl+R) 10:49:29.307: (command-alternatives master-buffer-view; buffer-view: Ctrl+Alt+R) 10:49:29.467: python -tt "C:/Users/Daniel/AppData/Local/LyX 2.3/Resources/scripts/convertDefault.py" svg "C:/Users/Daniel/AppData/Local/Temp/lyx_tmpdir.ynRZjbTL5428/lyx_tmpbuf2/0C__Users_Daniel_Desktop_LyX_the_aggregation_sequence.svg" pdftex_t "C:/Users/Daniel/AppData/Local/Temp/lyx_tmpdir.ynRZjbTL5428/lyx_tmpbuf2/0C__Users_Daniel_Desktop_LyX_the_aggregation_sequence.pdf_tex" 10:49:32.251: magick: unable to open image 'pdftex_t:C:/Users/Daniel/AppData/Local/Temp/lyx_tmpdir.ynRZjbTL5428/lyx_tmpbuf2/0C__Users_Daniel_Desktop_LyX_the_aggregation_sequence.pdf_tex': Invalid argument @ error/ 10:49:32.255: blob.c/OpenBlob/3109. 10:49:32.258: C:/Users/Daniel/AppData/Local/LyX 2.3/Resources/scripts/convertDefault.py ERROR 10:49:32.259: Execution of "magick" failed. support/Systemcall.cpp (294): Systemcall: 'python -tt "C:/Users/Daniel/AppData/Local/LyX 2.3/Resources/scripts/convertDefault.py" svg "C:/Users/Daniel/AppData/Local/Temp/lyx_tmpdir.ynRZjbTL5428/lyx_tmpbuf2/0C__Users_Daniel_Desktop_LyX_the_aggregation_sequence.svg" pdftex_t "C:/Users/Daniel/AppData/Local/Temp/lyx_tmpdir.ynRZjbTL5428/lyx_tmpbuf2/0C__Users_Daniel_Desktop_LyX_the_aggregation_sequence.pdf_tex"' finished with exit code 1 Error: Cannot convert file No information for converting svg format files to pdftex. Define a converter in the preferences. 10:49:33.870: pdflatex -interaction=nonstopmode -synctex=1 "SVGomittest.tex" 10:49:35.056: This is pdfTeX, Version 3.14159265-2.6-1.40.18 (MiKTeX 2.9.6400) 10:49:35.059: entering extended mode 10:49:35.060: (SVGomittest.tex 10:49:35.061: LaTeX2e <2017-04-15> 10:49:35.064: Babel <3.12> and hyphenation patterns for 75 language(s) loaded. 10:49:35.065: 10:49:36.420: pdflatex -interaction=nonstopmode -synctex=1 "SVGomittest.tex"support/Systemcall.cpp (294): Systemcall: 'pdflatex -interaction=nonstopmode -synctex=1 "SVGomittest.tex"' finished with exit code 1 10:49:37.217: This is pdfTeX, Version 3.14159265-2.6-1.40.18 (MiKTeX 2.9.6400) 10:49:37.219: entering extended mode 10:49:37.221: (SVGomittest.tex 10:49:37.222: LaTeX2e <2017-04-15> 10:49:37.223: Babel <3.12> and hyphenation patterns for 75 language(s) loaded. 10:49:37.224: support/Systemcall.cpp (294): Systemcall: 'pdflatex -interaction=nonstopmode -synctex=1 "SVGomittest.tex"' finished with exit code 1 10:49:38.270: Error while exporting format: PDF (pdflatex)
Re: Cannot get Externam Material: Inkscape figure to work
2017-10-11 8:24 GMT+02:00 racoon: > What more debug information is needed? > For instance the console/message pane output, if any. We need to know whether the problem is that Inkscape is not found or whether there are other problems in the conversion process. Jürgen > > Daniel > > >
Re: Cannot get Externam Material: Inkscape figure to work
On 10.10.2017 19:45, Jürgen Spitzmüller wrote: Am Dienstag, den 10.10.2017, 08:39 +0200 schrieb racoon: I just tried the new (experimental) Inkscape figure (or should it be SVG figure?) No, Inkscape. It's a particular format that is only featured by that program. However, my document failed to compile. On the first run LyX tells me that I need to define a converter in the Preferences. Would be good to tell me also which and how. I have checked the Embedded Objects manual on the feature but couldn't fin help on this. Also, I have Inkscape installed but apparently LyX did not auto detect it for the converter. Maybe someone can give me a hint. What OS? Inkscape does not yet work on OSX in beta1 (but should work in 2.3.xdev). I am on win7. So that shouldn't be a problem. I have been using the technique of exporting SVG to the Inkscape pdf/LaTeX. That works. I just wanted to try the automatic conversion with LyX which does not. What more debug information is needed? Daniel
Re: Cannot get Externam Material: Inkscape figure to work
Am Dienstag, den 10.10.2017, 16:43 -0400 schrieb Steve Litt: > On Tue, 10 Oct 2017 19:45:53 +0200 > Jürgen Spitzmüllerwrote: > > > Am Dienstag, den 10.10.2017, 08:39 +0200 schrieb racoon: > > > I just tried the new (experimental) Inkscape figure (or should it > > > be > > > SVG > > > figure?) > > > > No, Inkscape. It's a particular format that is only featured by > > that > > program. > > Inkscape's internal format is an enhanced SVG that can be read > directly > by most browsers. Sure. The point with the external template is that just the source format is SVG. The template uses inkscape itself to export an PDF or PS file without text and a tex file containing the text. Thus, you can use figures with the respective document font. But inkscape needs to be installed for that to work (for normal SVGs, you don't need the template; the graphics inset will do). Jürgen signature.asc Description: This is a digitally signed message part
Re: Cannot get Externam Material: Inkscape figure to work
On Tue, 10 Oct 2017 19:45:53 +0200 Jürgen Spitzmüllerwrote: > Am Dienstag, den 10.10.2017, 08:39 +0200 schrieb racoon: > > I just tried the new (experimental) Inkscape figure (or should it be > > SVG > > figure?) > > No, Inkscape. It's a particular format that is only featured by that > program. Inkscape's internal format is an enhanced SVG that can be read directly by most browsers. Inkscape has the capability of exporting an image to an SVG without the extra-specification tags. If the modern PDF standard can directly embed SVG, then probably it wouldn't be too hard to show the SVG image in the LyX-created PDF, without using Inkscape as a file converter. But if PDF can't directly address embedded SVG, then Inkscape will indeed be needed by LyX as a converter. It's easy to install free software. By the way, a suggestion. If you're making diagrams with text, you might find the text becoming too big or too small for the diagram in your final output. If that happens to you, the solution is to convert all text to curves before using the SVG. The upside of this is your SVG looks in a browser just like it looked in Inkscape. The downside is that the SVG gets much bigger, and it's no longer text-searcheable or able to copy from. Here's my shellscript to convert my SVG text to curves: == #!/bin/sh orgname=$1 basename=`echo $orgname | sed -e's/\.[^.]*$//'` extension=`echo $orgname | sed -e's/.*\.\([^.]*\)$/\1/'` if test "$extension" != "svg"; then echo "Must be extension svg, not $extension. Aborting." exit 1 fi newname=${basename}_nf.${extension} echo Converting $orgname to $newname if ! test -f $orgname; then echo "$orgname doesn't exist: Aborting." exit 1 fi inkscape --export-background=#ff \ --export-text-to-path \ --export-use-hints \ --export-plain-svg=$newname $orgname gpicview $newname == SteveT Steve Litt October 2017 featured book: Rapid Learning for the 21st Century http://www.troubleshooters.com/rl21
Re: Cannot get Externam Material: Inkscape figure to work
Am Dienstag, den 10.10.2017, 08:39 +0200 schrieb racoon: > I just tried the new (experimental) Inkscape figure (or should it be > SVG > figure?) No, Inkscape. It's a particular format that is only featured by that program. > > However, my document failed to compile. On the first run LyX tells > me > that I need to define a converter in the Preferences. Would be good > to > tell me also which and how. I have checked the Embedded Objects > manual > on the feature but couldn't fin help on this. Also, I have Inkscape > installed but apparently LyX did not auto detect it for the > converter. > > Maybe someone can give me a hint. What OS? Inkscape does not yet work on OSX in beta1 (but should work in 2.3.xdev). Jürgen > signature.asc Description: This is a digitally signed message part