Lyx without img

2014-06-08 Thread Rafa GF

Hi everyone,

A couple of questions, please: Is necesary to save the both .png (or 
.jpg) file and lyx document? Is there any way to import definetly the 
image files to lyx document? If I erase the .png/.jpg file from the 
folder, I will not be able to open the full document.


Thanks in advance.
--


http://www.flickr.com/photos/rgfarfan/


Re: Lyx without img

2014-06-08 Thread stefano franchi
On Sun, Jun 8, 2014 at 4:29 AM, Rafa GF rgfar...@gmail.com wrote:

  Hi everyone,

 A couple of questions, please: Is necesary to save the both .png (or .jpg)
 file and lyx document? Is there any way to import definetly the image files
 to lyx document? If I erase the .png/.jpg file from the folder, I will not
 be able to open the full document.

 Hi Rafa,

LyX (and LaTeX) cannot embed an image file in its document. It only inserts
the reference to the file on disk. So, no, there is no way to import the
image into the lyx file.

That being said, LyX can collect all the files it references (including
images) into a single folder and zip it. The final result is perhaps not
very different from what you're looking for: a single file (zipped)
containing the text and all the images present in your document.
You can try out this method by going to FileExportLyX Archive


Cheers,

Stefano

-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies Ph:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: Lyx without img

2014-06-08 Thread Rafa GF

Thank you so much, Stefano.
I'll try to make zipped files with text and images.

Cheers.


http://www.flickr.com/photos/rgfarfan/
El 08/06/14 17:31, stefano franchi escribió:




On Sun, Jun 8, 2014 at 4:29 AM, Rafa GF rgfar...@gmail.com 
mailto:rgfar...@gmail.com wrote:


Hi everyone,

A couple of questions, please: Is necesary to save the both .png
(or .jpg) file and lyx document? Is there any way to import
definetly the image files to lyx document? If I erase the
.png/.jpg file from the folder, I will not be able to open the
full document.

Hi Rafa,

LyX (and LaTeX) cannot embed an image file in its document. It only 
inserts the reference to the file on disk. So, no, there is no way to 
import the image into the lyx file.


That being said, LyX can collect all the files it references 
(including images) into a single folder and zip it. The final result 
is perhaps not very different from what you're looking for: a single 
file (zipped) containing the text and all the images present in your 
document.

You can try out this method by going to FileExportLyX Archive


Cheers,

Stefano

--
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies Ph:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu mailto:stef...@tamu.edu
http://stefano.cleinias.org




Re: Lualatex at startup

2014-06-08 Thread Richard Heck

On 06/07/2014 10:12 PM, Julio Rojas wrote:

Dear all,

I have just tried to install Lyx 2.1 on my Windows 7 PC on which I 
already had Lyx 2.0.6 and TexLive 2013, so I went the update way. 
During configuration, Lyx runs LuaLatex which in turn gets stuck and 
start bloating and eating all the resources. I tried killing the 
script (python.exe). Lyx starts telling me that there were no classes 
installed. I tried reconfigure, but had the same result.


Has somebody had this problem?


For some reason, the lualatex configuratoin check takes a very long 
time. I don't know why it would cause such huge problems, but if you 
want to work around this:


1. Find the configure.py script on your system. It should be in your LyX 
system (library) directory, which you can find from Help About LyX.


2. Open the file and find the checkLuatex() routine.

3. At the very beginning of that routine, put: return, to skip the rest. 
Make sure the indentation is right, as python cares about that. A lot.


Richard



Re: Lualatex at startup

2014-06-08 Thread stefano franchi
On Sun, Jun 8, 2014 at 3:04 PM, Richard Heck rgh...@lyx.org wrote:

 On 06/07/2014 10:12 PM, Julio Rojas wrote:

 Dear all,

 I have just tried to install Lyx 2.1 on my Windows 7 PC on which I
 already had Lyx 2.0.6 and TexLive 2013, so I went the update way. During
 configuration, Lyx runs LuaLatex which in turn gets stuck and start
 bloating and eating all the resources. I tried killing the script
 (python.exe). Lyx starts telling me that there were no classes installed. I
 tried reconfigure, but had the same result.

 Has somebody had this problem?


 For some reason, the lualatex configuratoin check takes a very long time.
 I don't know why it would cause such huge problems, but if you want to work
 around this:


It may due to LuaTex's caching of all the system fonts, carried out by (I
believe) luaotfload at startup. It may take a long time if you have lots of
installed fonts.

S.

-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies Ph:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


How to insert a slashed o?

2014-06-08 Thread stefano franchi
Does anyone know LyX has function similar to the various insert-accent
functions, that would insert the Danish slashed o? I am trying to write
Kierkegaard's name without resorting to LaTeX codes. The function should
insert
U+00F8 ø latin small letter o with stroke

Stefano
-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies Ph:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: How to insert a slashed o?

2014-06-08 Thread Richard Heck

On 06/08/2014 04:34 PM, stefano franchi wrote:
Does anyone know LyX has function similar to the various insert-accent 
functions, that would insert the Danish slashed o? I am trying to 
write Kierkegaard's name without resorting to LaTeX codes. The 
function should insert

U+00F8 ø latin small letter o with stroke


The easy way it to cut and paste it into the document. You can slso use 
unicode-insert 00F8 from the minibuffer.


Richard



Re: Backspacing at the start of an inset occupying a paragraph

2014-06-08 Thread Richard Heck

On 06/07/2014 01:43 AM, aparsloe wrote:
Placing the cursor at the start of an inset and pressing the backspace 
key destroys the inset and makes its content part of the surrounding 
text. However, if the inset is the *only* item in a paragraph 
environment (list, Quotation, etc.) then not only is the inset 
destroyed but so too is the environment, which becomes a standard 
paragraph. Writing [note](note contents) to denote a note inset,


1. [note](blah blah blah)
(a) sub-item
(b) another sub-item

displays in the pdf as

1. (a) sub-item
(b) another sub-item

which may what is desired, but if you feel the blah blah blah should 
be made visible in the pdf and put the cursor before the first blah 
and press backspace, the result is


blah blah blah  -- a standard paragraph
1. sub-item
(a) another sub-item

What I expected was

1. blah blah blah
(a) sub-item
(b) another sub-item

This seems to apply to all insets (I've also tried footnotes, margin 
notes, minipages, ERT), not just notes.


I think the reason this happens is that the layout in effect in the 
inset becomes the layout in effect in the paragraph, if the inset is the 
only thing there. I'm not sure exactly why it works that way, though.


Richard



Re: How to insert a slashed o?

2014-06-08 Thread stefano franchi
On Sun, Jun 8, 2014 at 3:55 PM, Richard Heck rgh...@lyx.org wrote:

  On 06/08/2014 04:34 PM, stefano franchi wrote:

 Does anyone know LyX has function similar to the various insert-accent
 functions, that would insert the Danish slashed o? I am trying to write
 Kierkegaard's name without resorting to LaTeX codes. The function should
 insert
 U+00F8 ø latin small letter o with stroke


 The easy way it to cut and paste it into the document. You can slso use
 unicode-insert 00F8 from the minibuffer.


Thanks Richard, that's what I did, eventually (cutting and pasting). I was
just hoping  there'd be a function I could bind to a shortcut, but
apparently not.

Cheers,

S.



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies Ph:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: How to insert a slashed o?

2014-06-08 Thread Richard Heck

On 06/08/2014 05:01 PM, stefano franchi wrote:




On Sun, Jun 8, 2014 at 3:55 PM, Richard Heck rgh...@lyx.org 
mailto:rgh...@lyx.org wrote:


On 06/08/2014 04:34 PM, stefano franchi wrote:

Does anyone know LyX has function similar to the various
insert-accent functions, that would insert the Danish slashed
o? I am trying to write Kierkegaard's name without resorting to
LaTeX codes. The function should insert
U+00F8 ø latin small letter o with stroke


The easy way it to cut and paste it into the document. You can
slso use unicode-insert 00F8 from the minibuffer.


Thanks Richard, that's what I did, eventually (cutting and pasting). I 
was just hoping  there'd be a function I could bind to a shortcut, but 
apparently not.


Yes, you can bind unicode-insert 00F8.

rh




Re: How to insert a slashed o?

2014-06-08 Thread stefano franchi
On Sun, Jun 8, 2014 at 4:30 PM, Richard Heck rgh...@lyx.org wrote:

  On 06/08/2014 05:01 PM, stefano franchi wrote:




 On Sun, Jun 8, 2014 at 3:55 PM, Richard Heck rgh...@lyx.org wrote:

  On 06/08/2014 04:34 PM, stefano franchi wrote:

 Does anyone know LyX has function similar to the various insert-accent
 functions, that would insert the Danish slashed o? I am trying to write
 Kierkegaard's name without resorting to LaTeX codes. The function should
 insert
 U+00F8 ø latin small letter o with stroke


  The easy way it to cut and paste it into the document. You can slso use
 unicode-insert 00F8 from the minibuffer.


  Thanks Richard, that's what I did, eventually (cutting and pasting). I
 was just hoping  there'd be a function I could bind to a shortcut, but
 apparently not.


 Yes, you can bind unicode-insert 00F8.



Ah, of course, silly me. Thanks.


Now, suppose instead I want to add a LFUN to take care of inserting the
slashed o.
(I won't, just trying to understand a bit better how keyboard input is
managed in this case)
I would add the proper constant in FuncCode.h and its proper line and
documentation in LyXAction.cpp. But where does managing the insertion go? I
grepped  the accent-acute etcetera functions, but cannot find any place in
the codebase where the insertion actually take place.

S.


-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies Ph:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: How to insert a slashed o?

2014-06-08 Thread Richard Heck

On 06/08/2014 05:36 PM, stefano franchi wrote:
Now, suppose instead I want to add a LFUN to take care of inserting 
the slashed o.
(I won't, just trying to understand a bit better how keyboard input is 
managed in this case)
I would add the proper constant in FuncCode.h and its proper line and 
documentation in LyXAction.cpp. But where does managing the insertion 
go? I grepped  the accent-acute etcetera functions, but cannot find 
any place in the codebase where the insertion actually take place.


The lowercase LFUNs are user-friendly versions. They are converted to 
elements of an enum for handling within the code itself, in this case, 
LFUN_ACCENT_ACUTE. So that's what you really need to search for. It gets 
handled within Text3.cpp. The way it works is that the LFUN itself 
mimics a deadkey (this is the call to handleKeyFunc), and then 
translateAndInsert does the actual insertion.


Richard



Lyx without img

2014-06-08 Thread Rafa GF

Hi everyone,

A couple of questions, please: Is necesary to save the both .png (or 
.jpg) file and lyx document? Is there any way to import definetly the 
image files to lyx document? If I erase the .png/.jpg file from the 
folder, I will not be able to open the full document.


Thanks in advance.
--


http://www.flickr.com/photos/rgfarfan/


Re: Lyx without img

2014-06-08 Thread stefano franchi
On Sun, Jun 8, 2014 at 4:29 AM, Rafa GF rgfar...@gmail.com wrote:

  Hi everyone,

 A couple of questions, please: Is necesary to save the both .png (or .jpg)
 file and lyx document? Is there any way to import definetly the image files
 to lyx document? If I erase the .png/.jpg file from the folder, I will not
 be able to open the full document.

 Hi Rafa,

LyX (and LaTeX) cannot embed an image file in its document. It only inserts
the reference to the file on disk. So, no, there is no way to import the
image into the lyx file.

That being said, LyX can collect all the files it references (including
images) into a single folder and zip it. The final result is perhaps not
very different from what you're looking for: a single file (zipped)
containing the text and all the images present in your document.
You can try out this method by going to FileExportLyX Archive


Cheers,

Stefano

-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies Ph:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: Lyx without img

2014-06-08 Thread Rafa GF

Thank you so much, Stefano.
I'll try to make zipped files with text and images.

Cheers.


http://www.flickr.com/photos/rgfarfan/
El 08/06/14 17:31, stefano franchi escribió:




On Sun, Jun 8, 2014 at 4:29 AM, Rafa GF rgfar...@gmail.com 
mailto:rgfar...@gmail.com wrote:


Hi everyone,

A couple of questions, please: Is necesary to save the both .png
(or .jpg) file and lyx document? Is there any way to import
definetly the image files to lyx document? If I erase the
.png/.jpg file from the folder, I will not be able to open the
full document.

Hi Rafa,

LyX (and LaTeX) cannot embed an image file in its document. It only 
inserts the reference to the file on disk. So, no, there is no way to 
import the image into the lyx file.


That being said, LyX can collect all the files it references 
(including images) into a single folder and zip it. The final result 
is perhaps not very different from what you're looking for: a single 
file (zipped) containing the text and all the images present in your 
document.

You can try out this method by going to FileExportLyX Archive


Cheers,

Stefano

--
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies Ph:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu mailto:stef...@tamu.edu
http://stefano.cleinias.org




Re: Lualatex at startup

2014-06-08 Thread Richard Heck

On 06/07/2014 10:12 PM, Julio Rojas wrote:

Dear all,

I have just tried to install Lyx 2.1 on my Windows 7 PC on which I 
already had Lyx 2.0.6 and TexLive 2013, so I went the update way. 
During configuration, Lyx runs LuaLatex which in turn gets stuck and 
start bloating and eating all the resources. I tried killing the 
script (python.exe). Lyx starts telling me that there were no classes 
installed. I tried reconfigure, but had the same result.


Has somebody had this problem?


For some reason, the lualatex configuratoin check takes a very long 
time. I don't know why it would cause such huge problems, but if you 
want to work around this:


1. Find the configure.py script on your system. It should be in your LyX 
system (library) directory, which you can find from Help About LyX.


2. Open the file and find the checkLuatex() routine.

3. At the very beginning of that routine, put: return, to skip the rest. 
Make sure the indentation is right, as python cares about that. A lot.


Richard



Re: Lualatex at startup

2014-06-08 Thread stefano franchi
On Sun, Jun 8, 2014 at 3:04 PM, Richard Heck rgh...@lyx.org wrote:

 On 06/07/2014 10:12 PM, Julio Rojas wrote:

 Dear all,

 I have just tried to install Lyx 2.1 on my Windows 7 PC on which I
 already had Lyx 2.0.6 and TexLive 2013, so I went the update way. During
 configuration, Lyx runs LuaLatex which in turn gets stuck and start
 bloating and eating all the resources. I tried killing the script
 (python.exe). Lyx starts telling me that there were no classes installed. I
 tried reconfigure, but had the same result.

 Has somebody had this problem?


 For some reason, the lualatex configuratoin check takes a very long time.
 I don't know why it would cause such huge problems, but if you want to work
 around this:


It may due to LuaTex's caching of all the system fonts, carried out by (I
believe) luaotfload at startup. It may take a long time if you have lots of
installed fonts.

S.

-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies Ph:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


How to insert a slashed o?

2014-06-08 Thread stefano franchi
Does anyone know LyX has function similar to the various insert-accent
functions, that would insert the Danish slashed o? I am trying to write
Kierkegaard's name without resorting to LaTeX codes. The function should
insert
U+00F8 ø latin small letter o with stroke

Stefano
-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies Ph:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: How to insert a slashed o?

2014-06-08 Thread Richard Heck

On 06/08/2014 04:34 PM, stefano franchi wrote:
Does anyone know LyX has function similar to the various insert-accent 
functions, that would insert the Danish slashed o? I am trying to 
write Kierkegaard's name without resorting to LaTeX codes. The 
function should insert

U+00F8 ø latin small letter o with stroke


The easy way it to cut and paste it into the document. You can slso use 
unicode-insert 00F8 from the minibuffer.


Richard



Re: Backspacing at the start of an inset occupying a paragraph

2014-06-08 Thread Richard Heck

On 06/07/2014 01:43 AM, aparsloe wrote:
Placing the cursor at the start of an inset and pressing the backspace 
key destroys the inset and makes its content part of the surrounding 
text. However, if the inset is the *only* item in a paragraph 
environment (list, Quotation, etc.) then not only is the inset 
destroyed but so too is the environment, which becomes a standard 
paragraph. Writing [note](note contents) to denote a note inset,


1. [note](blah blah blah)
(a) sub-item
(b) another sub-item

displays in the pdf as

1. (a) sub-item
(b) another sub-item

which may what is desired, but if you feel the blah blah blah should 
be made visible in the pdf and put the cursor before the first blah 
and press backspace, the result is


blah blah blah  -- a standard paragraph
1. sub-item
(a) another sub-item

What I expected was

1. blah blah blah
(a) sub-item
(b) another sub-item

This seems to apply to all insets (I've also tried footnotes, margin 
notes, minipages, ERT), not just notes.


I think the reason this happens is that the layout in effect in the 
inset becomes the layout in effect in the paragraph, if the inset is the 
only thing there. I'm not sure exactly why it works that way, though.


Richard



Re: How to insert a slashed o?

2014-06-08 Thread stefano franchi
On Sun, Jun 8, 2014 at 3:55 PM, Richard Heck rgh...@lyx.org wrote:

  On 06/08/2014 04:34 PM, stefano franchi wrote:

 Does anyone know LyX has function similar to the various insert-accent
 functions, that would insert the Danish slashed o? I am trying to write
 Kierkegaard's name without resorting to LaTeX codes. The function should
 insert
 U+00F8 ø latin small letter o with stroke


 The easy way it to cut and paste it into the document. You can slso use
 unicode-insert 00F8 from the minibuffer.


Thanks Richard, that's what I did, eventually (cutting and pasting). I was
just hoping  there'd be a function I could bind to a shortcut, but
apparently not.

Cheers,

S.



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies Ph:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: How to insert a slashed o?

2014-06-08 Thread Richard Heck

On 06/08/2014 05:01 PM, stefano franchi wrote:




On Sun, Jun 8, 2014 at 3:55 PM, Richard Heck rgh...@lyx.org 
mailto:rgh...@lyx.org wrote:


On 06/08/2014 04:34 PM, stefano franchi wrote:

Does anyone know LyX has function similar to the various
insert-accent functions, that would insert the Danish slashed
o? I am trying to write Kierkegaard's name without resorting to
LaTeX codes. The function should insert
U+00F8 ø latin small letter o with stroke


The easy way it to cut and paste it into the document. You can
slso use unicode-insert 00F8 from the minibuffer.


Thanks Richard, that's what I did, eventually (cutting and pasting). I 
was just hoping  there'd be a function I could bind to a shortcut, but 
apparently not.


Yes, you can bind unicode-insert 00F8.

rh




Re: How to insert a slashed o?

2014-06-08 Thread stefano franchi
On Sun, Jun 8, 2014 at 4:30 PM, Richard Heck rgh...@lyx.org wrote:

  On 06/08/2014 05:01 PM, stefano franchi wrote:




 On Sun, Jun 8, 2014 at 3:55 PM, Richard Heck rgh...@lyx.org wrote:

  On 06/08/2014 04:34 PM, stefano franchi wrote:

 Does anyone know LyX has function similar to the various insert-accent
 functions, that would insert the Danish slashed o? I am trying to write
 Kierkegaard's name without resorting to LaTeX codes. The function should
 insert
 U+00F8 ø latin small letter o with stroke


  The easy way it to cut and paste it into the document. You can slso use
 unicode-insert 00F8 from the minibuffer.


  Thanks Richard, that's what I did, eventually (cutting and pasting). I
 was just hoping  there'd be a function I could bind to a shortcut, but
 apparently not.


 Yes, you can bind unicode-insert 00F8.



Ah, of course, silly me. Thanks.


Now, suppose instead I want to add a LFUN to take care of inserting the
slashed o.
(I won't, just trying to understand a bit better how keyboard input is
managed in this case)
I would add the proper constant in FuncCode.h and its proper line and
documentation in LyXAction.cpp. But where does managing the insertion go? I
grepped  the accent-acute etcetera functions, but cannot find any place in
the codebase where the insertion actually take place.

S.


-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies Ph:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: How to insert a slashed o?

2014-06-08 Thread Richard Heck

On 06/08/2014 05:36 PM, stefano franchi wrote:
Now, suppose instead I want to add a LFUN to take care of inserting 
the slashed o.
(I won't, just trying to understand a bit better how keyboard input is 
managed in this case)
I would add the proper constant in FuncCode.h and its proper line and 
documentation in LyXAction.cpp. But where does managing the insertion 
go? I grepped  the accent-acute etcetera functions, but cannot find 
any place in the codebase where the insertion actually take place.


The lowercase LFUNs are user-friendly versions. They are converted to 
elements of an enum for handling within the code itself, in this case, 
LFUN_ACCENT_ACUTE. So that's what you really need to search for. It gets 
handled within Text3.cpp. The way it works is that the LFUN itself 
mimics a deadkey (this is the call to handleKeyFunc), and then 
translateAndInsert does the actual insertion.


Richard



Lyx without img

2014-06-08 Thread Rafa GF

Hi everyone,

A couple of questions, please: Is necesary to save the both .png (or 
.jpg) file and lyx document? Is there any way to import definetly the 
image files to lyx document? If I erase the .png/.jpg file from the 
folder, I will not be able to open the full document.


Thanks in advance.
--





Re: Lyx without img

2014-06-08 Thread stefano franchi
On Sun, Jun 8, 2014 at 4:29 AM, Rafa GF  wrote:

>  Hi everyone,
>
> A couple of questions, please: Is necesary to save the both .png (or .jpg)
> file and lyx document? Is there any way to import definetly the image files
> to lyx document? If I erase the .png/.jpg file from the folder, I will not
> be able to open the full document.
>
> Hi Rafa,

LyX (and LaTeX) cannot embed an image file in its document. It only inserts
the reference to the file on disk. So, no, there is no way to import the
image into the lyx file.

That being said, LyX can collect all the files it references (including
images) into a single folder and zip it. The final result is perhaps not
very different from what you're looking for: a single file (zipped)
containing the text and all the images present in your document.
You can try out this method by going to File>>Export>>LyX Archive


Cheers,

Stefano

-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies Ph:   +1 (979) 845-2125
Texas A University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: Lyx without img

2014-06-08 Thread Rafa GF

Thank you so much, Stefano.
I'll try to make zipped files with text and images.

Cheers.



El 08/06/14 17:31, stefano franchi escribió:




On Sun, Jun 8, 2014 at 4:29 AM, Rafa GF > wrote:


Hi everyone,

A couple of questions, please: Is necesary to save the both .png
(or .jpg) file and lyx document? Is there any way to import
definetly the image files to lyx document? If I erase the
.png/.jpg file from the folder, I will not be able to open the
full document.

Hi Rafa,

LyX (and LaTeX) cannot embed an image file in its document. It only 
inserts the reference to the file on disk. So, no, there is no way to 
import the image into the lyx file.


That being said, LyX can collect all the files it references 
(including images) into a single folder and zip it. The final result 
is perhaps not very different from what you're looking for: a single 
file (zipped) containing the text and all the images present in your 
document.

You can try out this method by going to File>>Export>>LyX Archive


Cheers,

Stefano

--
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies Ph:   +1 (979) 845-2125
Texas A University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu 
http://stefano.cleinias.org




Re: Lualatex at startup

2014-06-08 Thread Richard Heck

On 06/07/2014 10:12 PM, Julio Rojas wrote:

Dear all,

I have just tried to install Lyx 2.1 on my Windows 7 PC on which I 
already had Lyx 2.0.6 and TexLive 2013, so I went the update way. 
During configuration, Lyx runs LuaLatex which in turn gets stuck and 
start bloating and eating all the resources. I tried killing the 
script (python.exe). Lyx starts telling me that there were no classes 
installed. I tried reconfigure, but had the same result.


Has somebody had this problem?


For some reason, the lualatex configuratoin check takes a very long 
time. I don't know why it would cause such huge problems, but if you 
want to work around this:


1. Find the configure.py script on your system. It should be in your LyX 
system (library) directory, which you can find from Help> About LyX.


2. Open the file and find the checkLuatex() routine.

3. At the very beginning of that routine, put: return, to skip the rest. 
Make sure the indentation is right, as python cares about that. A lot.


Richard



Re: Lualatex at startup

2014-06-08 Thread stefano franchi
On Sun, Jun 8, 2014 at 3:04 PM, Richard Heck  wrote:

> On 06/07/2014 10:12 PM, Julio Rojas wrote:
>
>> Dear all,
>>
>> I have just tried to install Lyx 2.1 on my Windows 7 PC on which I
>> already had Lyx 2.0.6 and TexLive 2013, so I went the update way. During
>> configuration, Lyx runs LuaLatex which in turn gets stuck and start
>> bloating and eating all the resources. I tried killing the script
>> (python.exe). Lyx starts telling me that there were no classes installed. I
>> tried reconfigure, but had the same result.
>>
>> Has somebody had this problem?
>>
>
> For some reason, the lualatex configuratoin check takes a very long time.
> I don't know why it would cause such huge problems, but if you want to work
> around this:
>
>
It may due to LuaTex's caching of all the system fonts, carried out by (I
believe) luaotfload at startup. It may take a long time if you have lots of
installed fonts.

S.

-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies Ph:   +1 (979) 845-2125
Texas A University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


How to insert a slashed o?

2014-06-08 Thread stefano franchi
Does anyone know LyX has function similar to the various insert-accent
functions, that would insert the Danish "slashed o"? I am trying to write
Kierkegaard's name without resorting to LaTeX codes. The function should
insert
U+00F8 ø latin small letter o with stroke

Stefano
-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies Ph:   +1 (979) 845-2125
Texas A University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: How to insert a slashed o?

2014-06-08 Thread Richard Heck

On 06/08/2014 04:34 PM, stefano franchi wrote:
Does anyone know LyX has function similar to the various insert-accent 
functions, that would insert the Danish "slashed o"? I am trying to 
write Kierkegaard's name without resorting to LaTeX codes. The 
function should insert

U+00F8 ø latin small letter o with stroke


The easy way it to cut and paste it into the document. You can slso use 
"unicode-insert 00F8" from the minibuffer.


Richard



Re: Backspacing at the start of an inset occupying a paragraph

2014-06-08 Thread Richard Heck

On 06/07/2014 01:43 AM, aparsloe wrote:
Placing the cursor at the start of an inset and pressing the backspace 
key destroys the inset and makes its content part of the surrounding 
text. However, if the inset is the *only* item in a paragraph 
environment (list, Quotation, etc.) then not only is the inset 
destroyed but so too is the environment, which becomes a standard 
paragraph. Writing [note](note contents) to denote a note inset,


1. [note](blah blah blah)
(a) sub-item
(b) another sub-item

displays in the pdf as

1. (a) sub-item
(b) another sub-item

which may what is desired, but if you feel the "blah blah blah" should 
be made visible in the pdf and put the cursor before the first "blah" 
and press backspace, the result is


blah blah blah  <-- a standard paragraph
1. sub-item
(a) another sub-item

What I expected was

1. blah blah blah
(a) sub-item
(b) another sub-item

This seems to apply to all insets (I've also tried footnotes, margin 
notes, minipages, ERT), not just notes.


I think the reason this happens is that the layout in effect in the 
inset becomes the layout in effect in the paragraph, if the inset is the 
only thing there. I'm not sure exactly why it works that way, though.


Richard



Re: How to insert a slashed o?

2014-06-08 Thread stefano franchi
On Sun, Jun 8, 2014 at 3:55 PM, Richard Heck  wrote:

>  On 06/08/2014 04:34 PM, stefano franchi wrote:
>
> Does anyone know LyX has function similar to the various insert-accent
> functions, that would insert the Danish "slashed o"? I am trying to write
> Kierkegaard's name without resorting to LaTeX codes. The function should
> insert
> U+00F8 ø latin small letter o with stroke
>
>
> The easy way it to cut and paste it into the document. You can slso use
> "unicode-insert 00F8" from the minibuffer.
>
>
Thanks Richard, that's what I did, eventually (cutting and pasting). I was
just hoping  there'd be a function I could bind to a shortcut, but
apparently not.

Cheers,

S.



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies Ph:   +1 (979) 845-2125
Texas A University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: How to insert a slashed o?

2014-06-08 Thread Richard Heck

On 06/08/2014 05:01 PM, stefano franchi wrote:




On Sun, Jun 8, 2014 at 3:55 PM, Richard Heck > wrote:


On 06/08/2014 04:34 PM, stefano franchi wrote:

Does anyone know LyX has function similar to the various
insert-accent functions, that would insert the Danish "slashed
o"? I am trying to write Kierkegaard's name without resorting to
LaTeX codes. The function should insert
U+00F8 ø latin small letter o with stroke


The easy way it to cut and paste it into the document. You can
slso use "unicode-insert 00F8" from the minibuffer.


Thanks Richard, that's what I did, eventually (cutting and pasting). I 
was just hoping  there'd be a function I could bind to a shortcut, but 
apparently not.


Yes, you can bind "unicode-insert 00F8".

rh




Re: How to insert a slashed o?

2014-06-08 Thread stefano franchi
On Sun, Jun 8, 2014 at 4:30 PM, Richard Heck  wrote:

>  On 06/08/2014 05:01 PM, stefano franchi wrote:
>
>
>
>
> On Sun, Jun 8, 2014 at 3:55 PM, Richard Heck  wrote:
>
>>  On 06/08/2014 04:34 PM, stefano franchi wrote:
>>
>> Does anyone know LyX has function similar to the various insert-accent
>> functions, that would insert the Danish "slashed o"? I am trying to write
>> Kierkegaard's name without resorting to LaTeX codes. The function should
>> insert
>> U+00F8 ø latin small letter o with stroke
>>
>>
>>  The easy way it to cut and paste it into the document. You can slso use
>> "unicode-insert 00F8" from the minibuffer.
>>
>>
>  Thanks Richard, that's what I did, eventually (cutting and pasting). I
> was just hoping  there'd be a function I could bind to a shortcut, but
> apparently not.
>
>
> Yes, you can bind "unicode-insert 00F8".
>
>

Ah, of course, silly me. Thanks.


Now, suppose instead I want to add a LFUN to take care of inserting the
slashed o.
(I won't, just trying to understand a bit better how keyboard input is
managed in this case)
I would add the proper constant in FuncCode.h and its proper line and
documentation in LyXAction.cpp. But where does managing the insertion go? I
grepped  the accent-acute etcetera functions, but cannot find any place in
the codebase where the insertion actually take place.

S.


-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies Ph:   +1 (979) 845-2125
Texas A University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: How to insert a slashed o?

2014-06-08 Thread Richard Heck

On 06/08/2014 05:36 PM, stefano franchi wrote:
Now, suppose instead I want to add a LFUN to take care of inserting 
the slashed o.
(I won't, just trying to understand a bit better how keyboard input is 
managed in this case)
I would add the proper constant in FuncCode.h and its proper line and 
documentation in LyXAction.cpp. But where does managing the insertion 
go? I grepped  the accent-acute etcetera functions, but cannot find 
any place in the codebase where the insertion actually take place.


The lowercase LFUNs are user-friendly versions. They are converted to 
elements of an enum for handling within the code itself, in this case, 
LFUN_ACCENT_ACUTE. So that's what you really need to search for. It gets 
handled within Text3.cpp. The way it works is that the LFUN itself 
mimics a deadkey (this is the call to handleKeyFunc), and then 
translateAndInsert does the actual insertion.


Richard