Re: Removing period following section reference

2017-10-12 Thread Christos Makridis
Hey Steve and everyone,

Yes sorry, let me be more explicit. First, see the screenshot below -- this
is what I get showing right now.

[image: Inline image 1]


Now, with that in mind, notice the two periods -- the problem is whenever I
reference that appendix section, i.e. \ref{subsec:AAA}, it references A1.3
with a period at the end, rather than just A1.3

What I'd like to do is remove that period whenever referencing something
from the Appendix -- or any section (even if not in the appendix) for that
matter.


Removing period following section reference

2017-10-12 Thread Christos Makridis
Hey Lyx Community,

I've spent some time searching online for a resolution to this, but haven't
found much.

The issue is as follows.

Suppose I write a section in the appendix (insert appendix here) like:

\section{data details}
\label{sec:data}

But then I refer to:

Appendix Section \label{sec:data}

It will show up as Appendix Section A1*.*

Note that lyx places the period there automatically even if I do not put
one.

Does anyone know how to remove that?

Thank you as always for your expertise!

-- 
Christos Makridis
Ph.D. Candidate, Stanford University
Department of Management Science & Engineering
Department of Economics
http://stanford.edu/~cmakridi/


Re: Cannot get Externam Material: Inkscape figure to work

2017-10-12 Thread racoon

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 Thread Jürgen Spitzmüller
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

2017-10-12 Thread racoon

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 Thread Jürgen Spitzmüller
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

2017-10-12 Thread racoon

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

2017-10-12 Thread racoon

On 12.10.2017 12:37, Kornel Benko wrote:

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"  ""


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 Thread Jürgen Spitzmüller
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

2017-10-12 Thread Kornel Benko
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

2017-10-12 Thread 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



Re: Cannot get Externam Material: Inkscape figure to work

2017-10-12 Thread Jürgen Spitzmüller
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


lyx2.3 for Debian

2017-10-12 Thread Wolfgang Engelmann
I would like to install lyx2.3 under Debian GNU/Linux 8.7 (jessie). I 
use at the moment lyx-2.3.1beta-1. Where do I find the sources and what 
do I have to take care of (additional packages, installing etc)? The 
versions for debian in http://wiki.lyx.org/LyX/ are older onces:


stretch (stable): 2.2.2
buster/sid (testing/unstable): 2.2.3

Wolfgang




Re: Cannot get Externam Material: Inkscape figure to work

2017-10-12 Thread racoon

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)