Enabling cropped PDF support

2014-03-29 Thread Torquil Macdonald Sørensen
Hi!

I'm using LyX 2.1.0rc1 on Debian Linux. In the File - Export submenu
I'm seeing EPS (cropped), but no PDF (cropped), even though this
feature is mentioned for PDF in the New in LyX 2.1 document at
wiki.lyx.org.

If I select File - Export - Export as.., I can select PDF
(cropped), but using it results in the popup message No information
for exporting the format PDF (cropped). Is my system missing a
particular program that is needed for cropped PDF export?

Best regards
Torquil Sørensen



Re: Enabling cropped PDF support

2014-03-29 Thread Torquil Macdonald Sørensen
On 29/03/14 11:42, Jürgen Spitzmüller wrote:
 2014-03-29 11:34 GMT+01:00 Torquil Macdonald Sørensen
 torq...@gmail.com mailto:torq...@gmail.com:

 If I select File - Export - Export as.., I can select PDF
 (cropped), but using it results in the popup message No information
 for exporting the format PDF (cropped). Is my system missing a
 particular program that is needed for cropped PDF export?


 You need pdfcrop:
 http://www.ctan.org/pkg/pdfcrop



I installed texlive-extra-utils, which contains pdfcrop, so it works
now. Thanks!

Torquil Sørensen



Enabling cropped PDF support

2014-03-29 Thread Torquil Macdonald Sørensen
Hi!

I'm using LyX 2.1.0rc1 on Debian Linux. In the File - Export submenu
I'm seeing EPS (cropped), but no PDF (cropped), even though this
feature is mentioned for PDF in the New in LyX 2.1 document at
wiki.lyx.org.

If I select File - Export - Export as.., I can select PDF
(cropped), but using it results in the popup message No information
for exporting the format PDF (cropped). Is my system missing a
particular program that is needed for cropped PDF export?

Best regards
Torquil Sørensen



Re: Enabling cropped PDF support

2014-03-29 Thread Torquil Macdonald Sørensen
On 29/03/14 11:42, Jürgen Spitzmüller wrote:
 2014-03-29 11:34 GMT+01:00 Torquil Macdonald Sørensen
 torq...@gmail.com mailto:torq...@gmail.com:

 If I select File - Export - Export as.., I can select PDF
 (cropped), but using it results in the popup message No information
 for exporting the format PDF (cropped). Is my system missing a
 particular program that is needed for cropped PDF export?


 You need pdfcrop:
 http://www.ctan.org/pkg/pdfcrop



I installed texlive-extra-utils, which contains pdfcrop, so it works
now. Thanks!

Torquil Sørensen



Enabling cropped PDF support

2014-03-29 Thread Torquil Macdonald Sørensen
Hi!

I'm using LyX 2.1.0rc1 on Debian Linux. In the File -> Export submenu
I'm seeing "EPS (cropped)", but no "PDF (cropped)", even though this
feature is mentioned for PDF in the "New in LyX 2.1" document at
wiki.lyx.org.

If I select "File -> Export -> Export as..", I can select "PDF
(cropped)", but using it results in the popup message "No information
for exporting the format PDF (cropped)". Is my system missing a
particular program that is needed for cropped PDF export?

Best regards
Torquil Sørensen



Re: Enabling cropped PDF support

2014-03-29 Thread Torquil Macdonald Sørensen
On 29/03/14 11:42, Jürgen Spitzmüller wrote:
> 2014-03-29 11:34 GMT+01:00 Torquil Macdonald Sørensen
> <torq...@gmail.com <mailto:torq...@gmail.com>>:
>
> If I select "File -> Export -> Export as..", I can select "PDF
> (cropped)", but using it results in the popup message "No information
> for exporting the format PDF (cropped)". Is my system missing a
> particular program that is needed for cropped PDF export?
>
>
> You need "pdfcrop":
> http://www.ctan.org/pkg/pdfcrop
>
>

I installed texlive-extra-utils, which contains pdfcrop, so it works
now. Thanks!

Torquil Sørensen



Problem with LaTeX import and svjour3

2012-11-30 Thread Torquil Macdonald Sørensen

Hi!

I seem to be unable to import a \documentclass{svjour3} LaTeX document into 
LyX. The tex2lyx command tells me that:


Cannot read layout file `'.
Error reading `'
(Check `svjour3')
Check your installation and try Options/Reconfigure...
Error: Could not read layout file for textclass svjour3.

However, I am able to compile the LaTeX document using pdflatex without 
problems, and I have used Option - Reconfigure in LyX several times. In 
addition, when starting a new LyX document, I can without any problems select 
the article (Springer svjour3/global) document class within the LyX document 
options. Exporting such a LyX document results in a LaTeX files using 
\documentclass{svjour3}. This LaTeX files cannot be imported back into LyX due 
to the error mentioned above...


What am I missing? :-)

I'm using 2.0.5 on Debian Sid, but also had the same problem with 2.0.3 on the 
same OS.


Best regards
Torquil Sørensen



Problem with LaTeX import and svjour3

2012-11-30 Thread Torquil Macdonald Sørensen

Hi!

I seem to be unable to import a \documentclass{svjour3} LaTeX document into 
LyX. The tex2lyx command tells me that:


Cannot read layout file `'.
Error reading `'
(Check `svjour3')
Check your installation and try Options/Reconfigure...
Error: Could not read layout file for textclass svjour3.

However, I am able to compile the LaTeX document using pdflatex without 
problems, and I have used Option - Reconfigure in LyX several times. In 
addition, when starting a new LyX document, I can without any problems select 
the article (Springer svjour3/global) document class within the LyX document 
options. Exporting such a LyX document results in a LaTeX files using 
\documentclass{svjour3}. This LaTeX files cannot be imported back into LyX due 
to the error mentioned above...


What am I missing? :-)

I'm using 2.0.5 on Debian Sid, but also had the same problem with 2.0.3 on the 
same OS.


Best regards
Torquil Sørensen



Problem with LaTeX import and svjour3

2012-11-30 Thread Torquil Macdonald Sørensen

Hi!

I seem to be unable to import a "\documentclass{svjour3}" LaTeX document into 
LyX. The tex2lyx command tells me that:


Cannot read layout file `'.
Error reading `'
(Check `svjour3')
Check your installation and try Options/Reconfigure...
Error: Could not read layout file for textclass "svjour3".

However, I am able to compile the LaTeX document using pdflatex without 
problems, and I have used "Option -> Reconfigure" in LyX several times. In 
addition, when starting a new LyX document, I can without any problems select 
the "article (Springer svjour3/global)" document class within the LyX document 
options. Exporting such a LyX document results in a LaTeX files using 
"\documentclass{svjour3}. This LaTeX files cannot be imported back into LyX due 
to the error mentioned above...


What am I missing? :-)

I'm using 2.0.5 on Debian Sid, but also had the same problem with 2.0.3 on the 
same OS.


Best regards
Torquil Sørensen



LyX / Beamer bugs?

2012-03-14 Thread Torquil Macdonald Sørensen

Hi!

I think I have managed to write myself into a corner that I'm unable to get out 
of, using LyX 2.0.3 and the Beamer document class.


I have attached my LyX file, but I will explain the two issues first:

1) I don't understand how to insert an EndFrame at the bottom of the document, 
after the Block. If I put the cursor at the last possible position and press 
Enter, The Block environment only expands downwards, and I'm not given a new 
blank line. Downward arrow doesn't work either. If I could get a new blank line 
at the bottom of the document, I could insert an EndFrame there.


2) There seems to be something wrong with the layout... The 
ColumnsCenterAligned and each Column are located too far to the left, even 
outside the area of the LyX window... This must be a bug, no?


Any pointers on what I can do to fix these tvo issues? I have attached the 
problematic LyX file for any kind soul that are willing te analyse my problem.


Thanks!
Torquil Sørensen


lyx_beamer.lyx
Description: application/lyx


Re: LyX / Beamer bugs?

2012-03-14 Thread Torquil Macdonald Sørensen

On 14/03/12 11:09, Liviu Andronic wrote:

On Wed, Mar 14, 2012 at 10:27 AM, Torquil Macdonald Sørensen
torq...@gmail.com  wrote:

Hi!

I think I have managed to write myself into a corner that I'm unable to get
out of, using LyX 2.0.3 and the Beamer document class.

I have attached my LyX file, but I will explain the two issues first:

1) I don't understand how to insert an EndFrame at the bottom of the
document, after the Block. If I put the cursor at the last possible
position and press Enter, The Block environment only expands downwards,
and I'm not given a new blank line. Downward arrow doesn't work either. If I
could get a new blank line at the bottom of the document, I could insert an
EndFrame there.


Hit Enter, select 'Standard' paragraph style (if you like) from the
combo-box, then select 'EndFrame'. It is also a paragraph style and
should replace the 'Block' one.


That's the thing, I did just that because that is what I normally do, but it 
didn't work in this situation. The vertical line corresponding to the Block 
environment expanded downwards, and when I inserted the EndFrame, it appeared 
inside the Block environment...


Re: LyX / Beamer bugs?

2012-03-14 Thread Torquil Macdonald Sørensen

On 14/03/12 11:09, Liviu Andronic wrote:

If you have trouble with building a Beamer presentation from scratch,
I would suggest starting with the beamer*.lyx template (File  New
from Template) and trimming it down till it fits your needs. At each
step make sure that the document compiles.

Liviu


Thanks, but those don't seem to have any example of two columns inside a Block.

Btw, it seems that there is a problem in the german file:

de_beamer-conference-ornate-20min.lyx

Above the heading Unterabschnitt 2.2: Ideen für Beweise/Umsetzung, there seems 
to bo a layout problem similar to mine, where some red text disappears off the 
left hand side of the LyX window, where ColumnsTopAligned is started.


(and also the same problem in the French template file.

Best regards
Torquil Sørensen


Re: LyX / Beamer bugs?

2012-03-14 Thread Torquil Macdonald Sørensen

On 14/03/12 12:30, Liviu Andronic wrote:

On Wed, Mar 14, 2012 at 11:25 AM, Torquil Macdonald Sørensen
torq...@gmail.com  wrote:

That's the thing, I did just that because that is what I normally do, but it
didn't work in this situation. The vertical line corresponding to the Block
environment expanded downwards, and when I inserted the EndFrame, it
appeared inside the Block environment...


I guess it's an issue with paragraph depth. Try 'shift + tab'. Does
the attached do what you want?


Hi!

Unfortunately, that LyX doc doesn't compile here. I get an error message popup 
when trying to View (pdflatex). I really appreciate your helpful effort, though.


I have decided that there are several problems with the lyx+beamer combination 
that I cannot live with or don't have time te deal with right now, so I've 
changed to lyx+foiltex, which seems to work very well. Actually, I think I have 
all I need with foiltex and a few other small packages, so I might stick with 
that in the long run.


Best regards
Torquil Sørensen


Re: LyX / Beamer bugs?

2012-03-14 Thread Torquil Macdonald Sørensen

On 14/03/12 15:22, Liviu Andronic wrote:

I have decided that there are several problems with the lyx+beamer
combination that I cannot live


As I suggested earlier, you should try to build from an existing
_compilable_ example (such as the templates shipped by LyX) and
remove/add elements as you see fit, making sure throughout these
modifications that the document compiles. In my experience LyX works
very nicely with Beamer.


I have started from a compilable example, and then compiled after each 
nontrivial edit. Nevertheless, I find Foiltex a bit easier to use, and it seems 
to do the job for me right now. I like a bit of minimalism :-) And again, thank 
you for taking the time to help!


Btw, another issue I had with lyx+beamer was with copying and pasting of a whole 
Columns environment containing two columns. But I will I try to get back with 
proper bug reports when time allows it.


Best regards
Torquil Sørensen


LyX / Beamer bugs?

2012-03-14 Thread Torquil Macdonald Sørensen

Hi!

I think I have managed to write myself into a corner that I'm unable to get out 
of, using LyX 2.0.3 and the Beamer document class.


I have attached my LyX file, but I will explain the two issues first:

1) I don't understand how to insert an EndFrame at the bottom of the document, 
after the Block. If I put the cursor at the last possible position and press 
Enter, The Block environment only expands downwards, and I'm not given a new 
blank line. Downward arrow doesn't work either. If I could get a new blank line 
at the bottom of the document, I could insert an EndFrame there.


2) There seems to be something wrong with the layout... The 
ColumnsCenterAligned and each Column are located too far to the left, even 
outside the area of the LyX window... This must be a bug, no?


Any pointers on what I can do to fix these tvo issues? I have attached the 
problematic LyX file for any kind soul that are willing te analyse my problem.


Thanks!
Torquil Sørensen


lyx_beamer.lyx
Description: application/lyx


Re: LyX / Beamer bugs?

2012-03-14 Thread Torquil Macdonald Sørensen

On 14/03/12 11:09, Liviu Andronic wrote:

On Wed, Mar 14, 2012 at 10:27 AM, Torquil Macdonald Sørensen
torq...@gmail.com  wrote:

Hi!

I think I have managed to write myself into a corner that I'm unable to get
out of, using LyX 2.0.3 and the Beamer document class.

I have attached my LyX file, but I will explain the two issues first:

1) I don't understand how to insert an EndFrame at the bottom of the
document, after the Block. If I put the cursor at the last possible
position and press Enter, The Block environment only expands downwards,
and I'm not given a new blank line. Downward arrow doesn't work either. If I
could get a new blank line at the bottom of the document, I could insert an
EndFrame there.


Hit Enter, select 'Standard' paragraph style (if you like) from the
combo-box, then select 'EndFrame'. It is also a paragraph style and
should replace the 'Block' one.


That's the thing, I did just that because that is what I normally do, but it 
didn't work in this situation. The vertical line corresponding to the Block 
environment expanded downwards, and when I inserted the EndFrame, it appeared 
inside the Block environment...


Re: LyX / Beamer bugs?

2012-03-14 Thread Torquil Macdonald Sørensen

On 14/03/12 11:09, Liviu Andronic wrote:

If you have trouble with building a Beamer presentation from scratch,
I would suggest starting with the beamer*.lyx template (File  New
from Template) and trimming it down till it fits your needs. At each
step make sure that the document compiles.

Liviu


Thanks, but those don't seem to have any example of two columns inside a Block.

Btw, it seems that there is a problem in the german file:

de_beamer-conference-ornate-20min.lyx

Above the heading Unterabschnitt 2.2: Ideen für Beweise/Umsetzung, there seems 
to bo a layout problem similar to mine, where some red text disappears off the 
left hand side of the LyX window, where ColumnsTopAligned is started.


(and also the same problem in the French template file.

Best regards
Torquil Sørensen


Re: LyX / Beamer bugs?

2012-03-14 Thread Torquil Macdonald Sørensen

On 14/03/12 12:30, Liviu Andronic wrote:

On Wed, Mar 14, 2012 at 11:25 AM, Torquil Macdonald Sørensen
torq...@gmail.com  wrote:

That's the thing, I did just that because that is what I normally do, but it
didn't work in this situation. The vertical line corresponding to the Block
environment expanded downwards, and when I inserted the EndFrame, it
appeared inside the Block environment...


I guess it's an issue with paragraph depth. Try 'shift + tab'. Does
the attached do what you want?


Hi!

Unfortunately, that LyX doc doesn't compile here. I get an error message popup 
when trying to View (pdflatex). I really appreciate your helpful effort, though.


I have decided that there are several problems with the lyx+beamer combination 
that I cannot live with or don't have time te deal with right now, so I've 
changed to lyx+foiltex, which seems to work very well. Actually, I think I have 
all I need with foiltex and a few other small packages, so I might stick with 
that in the long run.


Best regards
Torquil Sørensen


Re: LyX / Beamer bugs?

2012-03-14 Thread Torquil Macdonald Sørensen

On 14/03/12 15:22, Liviu Andronic wrote:

I have decided that there are several problems with the lyx+beamer
combination that I cannot live


As I suggested earlier, you should try to build from an existing
_compilable_ example (such as the templates shipped by LyX) and
remove/add elements as you see fit, making sure throughout these
modifications that the document compiles. In my experience LyX works
very nicely with Beamer.


I have started from a compilable example, and then compiled after each 
nontrivial edit. Nevertheless, I find Foiltex a bit easier to use, and it seems 
to do the job for me right now. I like a bit of minimalism :-) And again, thank 
you for taking the time to help!


Btw, another issue I had with lyx+beamer was with copying and pasting of a whole 
Columns environment containing two columns. But I will I try to get back with 
proper bug reports when time allows it.


Best regards
Torquil Sørensen


LyX / Beamer bugs?

2012-03-14 Thread Torquil Macdonald Sørensen

Hi!

I think I have managed to write myself into a corner that I'm unable to get out 
of, using LyX 2.0.3 and the Beamer document class.


I have attached my LyX file, but I will explain the two issues first:

1) I don't understand how to insert an "EndFrame" at the bottom of the document, 
after the "Block". If I put the cursor at the last possible position and press 
Enter, The "Block" environment only expands downwards, and I'm not given a new 
blank line. Downward arrow doesn't work either. If I could get a new blank line 
at the bottom of the document, I could insert an EndFrame there.


2) There seems to be something wrong with the layout... The 
"ColumnsCenterAligned" and each "Column" are located too far to the left, even 
outside the area of the LyX window... This must be a bug, no?


Any pointers on what I can do to fix these tvo issues? I have attached the 
problematic LyX file for any kind soul that are willing te analyse my problem.


Thanks!
Torquil Sørensen


lyx_beamer.lyx
Description: application/lyx


Re: LyX / Beamer bugs?

2012-03-14 Thread Torquil Macdonald Sørensen

On 14/03/12 11:09, Liviu Andronic wrote:

On Wed, Mar 14, 2012 at 10:27 AM, Torquil Macdonald Sørensen
<torq...@gmail.com>  wrote:

Hi!

I think I have managed to write myself into a corner that I'm unable to get
out of, using LyX 2.0.3 and the Beamer document class.

I have attached my LyX file, but I will explain the two issues first:

1) I don't understand how to insert an "EndFrame" at the bottom of the
document, after the "Block". If I put the cursor at the last possible
position and press Enter, The "Block" environment only expands downwards,
and I'm not given a new blank line. Downward arrow doesn't work either. If I
could get a new blank line at the bottom of the document, I could insert an
EndFrame there.


Hit Enter, select 'Standard' paragraph style (if you like) from the
combo-box, then select 'EndFrame'. It is also a paragraph style and
should replace the 'Block' one.


That's the thing, I did just that because that is what I normally do, but it 
didn't work in this situation. The vertical line corresponding to the Block 
environment expanded downwards, and when I inserted the EndFrame, it appeared 
inside the Block environment...


Re: LyX / Beamer bugs?

2012-03-14 Thread Torquil Macdonald Sørensen

On 14/03/12 11:09, Liviu Andronic wrote:

If you have trouble with building a Beamer presentation from scratch,
I would suggest starting with the beamer*.lyx template (File>  New
from Template) and trimming it down till it fits your needs. At each
step make sure that the document compiles.

Liviu


Thanks, but those don't seem to have any example of two columns inside a Block.

Btw, it seems that there is a problem in the german file:

de_beamer-conference-ornate-20min.lyx

Above the heading "Unterabschnitt 2.2: Ideen für Beweise/Umsetzung", there seems 
to bo a layout problem similar to mine, where some red text disappears off the 
left hand side of the LyX window, where "ColumnsTopAligned" is started.


(and also the same problem in the French template file.

Best regards
Torquil Sørensen


Re: LyX / Beamer bugs?

2012-03-14 Thread Torquil Macdonald Sørensen

On 14/03/12 12:30, Liviu Andronic wrote:

On Wed, Mar 14, 2012 at 11:25 AM, Torquil Macdonald Sørensen
<torq...@gmail.com>  wrote:

That's the thing, I did just that because that is what I normally do, but it
didn't work in this situation. The vertical line corresponding to the Block
environment expanded downwards, and when I inserted the EndFrame, it
appeared inside the Block environment...


I guess it's an issue with paragraph depth. Try 'shift + tab'. Does
the attached do what you want?


Hi!

Unfortunately, that LyX doc doesn't compile here. I get an error message popup 
when trying to "View (pdflatex)". I really appreciate your helpful effort, though.


I have decided that there are several problems with the lyx+beamer combination 
that I cannot live with or don't have time te deal with right now, so I've 
changed to lyx+foiltex, which seems to work very well. Actually, I think I have 
all I need with foiltex and a few other small packages, so I might stick with 
that in the long run.


Best regards
Torquil Sørensen


Re: LyX / Beamer bugs?

2012-03-14 Thread Torquil Macdonald Sørensen

On 14/03/12 15:22, Liviu Andronic wrote:

I have decided that there are several problems with the lyx+beamer
combination that I cannot live


As I suggested earlier, you should try to build from an existing
_compilable_ example (such as the templates shipped by LyX) and
remove/add elements as you see fit, making sure throughout these
modifications that the document compiles. In my experience LyX works
very nicely with Beamer.


I have started from a compilable example, and then compiled after each 
nontrivial edit. Nevertheless, I find Foiltex a bit easier to use, and it seems 
to do the job for me right now. I like a bit of minimalism :-) And again, thank 
you for taking the time to help!


Btw, another issue I had with lyx+beamer was with copying and pasting of a whole 
"Columns" environment containing two columns. But I will I try to get back with 
proper bug reports when time allows it.


Best regards
Torquil Sørensen


Re: Default output format and non-tex fonts

2012-03-11 Thread Torquil Macdonald Sørensen
On 11 January 2012 17:29, Jürgen Spitzmüller sp...@lyx.org wrote:
 Torquil Macdonald Sørensen wrote:
 My default output format is PDF (xetex) in the LyX preferences, and this
 appears on the View menu with the keyboard shortcut CTRL-R.

 However, if I select Use non-Tex fonts (via xetex/luatex) in the Fonts
 section of the Document properties, the View menu changes to have HTML as
 the  default output format assigned to CTRL-R, and PDF (xetex) is
 relegated to the View (Other formats) submenu, without a keyboard
 shortcut.

 Is this correct behaviour?

 No, but a (known) missing feature:
 http://www.lyx.org/trac/ticket/7871


I have solved my problem with a workaround that I can live with. I
deleted the LyxHTML file format in the preferences, which I don't use
anyway. Now PDF (XeTeX) appears as the default buffer view and buffer
update items on the menu, and I can use e.g. CTRL-R and CTRL-SHIFT-R
to run those functions. So I'm very satisfied with that!

Best regards,
Torquil Sørensen


Re: Default output format and non-tex fonts

2012-03-11 Thread Torquil Macdonald Sørensen
On 11 January 2012 17:29, Jürgen Spitzmüller sp...@lyx.org wrote:
 Torquil Macdonald Sørensen wrote:
 My default output format is PDF (xetex) in the LyX preferences, and this
 appears on the View menu with the keyboard shortcut CTRL-R.

 However, if I select Use non-Tex fonts (via xetex/luatex) in the Fonts
 section of the Document properties, the View menu changes to have HTML as
 the  default output format assigned to CTRL-R, and PDF (xetex) is
 relegated to the View (Other formats) submenu, without a keyboard
 shortcut.

 Is this correct behaviour?

 No, but a (known) missing feature:
 http://www.lyx.org/trac/ticket/7871


I have solved my problem with a workaround that I can live with. I
deleted the LyxHTML file format in the preferences, which I don't use
anyway. Now PDF (XeTeX) appears as the default buffer view and buffer
update items on the menu, and I can use e.g. CTRL-R and CTRL-SHIFT-R
to run those functions. So I'm very satisfied with that!

Best regards,
Torquil Sørensen


Re: Default output format and non-tex fonts

2012-03-11 Thread Torquil Macdonald Sørensen
On 11 January 2012 17:29, Jürgen Spitzmüller <sp...@lyx.org> wrote:
> Torquil Macdonald Sørensen wrote:
>> My default output format is "PDF (xetex)" in the LyX preferences, and this
>> appears on the View menu with the keyboard shortcut "CTRL-R".
>>
>> However, if I select "Use non-Tex fonts (via xetex/luatex)" in the "Fonts"
>> section of the Document properties, the View menu changes to have HTML as
>> the  default output format assigned to "CTRL-R", and "PDF (xetex)" is
>> relegated to the "View (Other formats)" submenu, without a keyboard
>> shortcut.
>>
>> Is this correct behaviour?
>
> No, but a (known) missing feature:
> http://www.lyx.org/trac/ticket/7871
>

I have solved my problem with a workaround that I can live with. I
deleted the LyxHTML file format in the preferences, which I don't use
anyway. Now PDF (XeTeX) appears as the default buffer view and buffer
update items on the menu, and I can use e.g. CTRL-R and CTRL-SHIFT-R
to run those functions. So I'm very satisfied with that!

Best regards,
Torquil Sørensen


xetex and theorem

2012-01-11 Thread Torquil Macdonald Sørensen

Hi!

I cannot get PDF (xetex) output from the attached document which uses the 
Theorems module. I'm using LyX 2.0.2 and Debian Sid with texlive-xetex. It works 
fine when not using Theorems.


The error I get is:

! Undefined control sequence.
\definitionname -\inputencoding
 {latin9}Definition
l.43 T
  his is a definition.\end{defn}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.


Sorry about the briefness, I'm just starting to type using a Dvorak keyboard, so 
I'm extremely slow at the moment...


Best regards and thanks,
Torquil Sørensen


example.lyx
Description: application/lyx


Re: xetex and theorem

2012-01-11 Thread Torquil Macdonald Sørensen

On 11/01/12 15:41, Jürgen Spitzmüller wrote:

Torquil Macdonald Sørensen wrote:

I cannot get PDF (xetex) output from the attached document which uses the
Theorems module. I'm using LyX 2.0.2 and Debian Sid with texlive-xetex. It
works fine when not using Theorems.

The error I get is:

! Undefined control sequence.
\definitionname -\inputencoding
   {latin9}Definition


Yes, that's a known bug:
http://www.lyx.org/trac/ticket/7800

A crude workaround is to put
\providecommand\inputencoding[1]{}
in your preamble.


Thank you very much!

Torquil


Default output format and non-tex fonts

2012-01-11 Thread Torquil Macdonald Sørensen

Hi!

My default output format is PDF (xetex) in the LyX preferences, and this 
appears on the View menu with the keyboard shortcut CTRL-R.


However, if I select Use non-Tex fonts (via xetex/luatex) in the Fonts 
section of the Document properties, the View menu changes to have HTML as the 
default output format assigned to CTRL-R, and PDF (xetex) is relegated to 
the View (Other formats) submenu, without a keyboard shortcut.


Is this correct behaviour?

LyX 2.0.2

Best regards
Torquil Sørensen


xetex and theorem

2012-01-11 Thread Torquil Macdonald Sørensen

Hi!

I cannot get PDF (xetex) output from the attached document which uses the 
Theorems module. I'm using LyX 2.0.2 and Debian Sid with texlive-xetex. It works 
fine when not using Theorems.


The error I get is:

! Undefined control sequence.
\definitionname -\inputencoding
 {latin9}Definition
l.43 T
  his is a definition.\end{defn}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.


Sorry about the briefness, I'm just starting to type using a Dvorak keyboard, so 
I'm extremely slow at the moment...


Best regards and thanks,
Torquil Sørensen


example.lyx
Description: application/lyx


Re: xetex and theorem

2012-01-11 Thread Torquil Macdonald Sørensen

On 11/01/12 15:41, Jürgen Spitzmüller wrote:

Torquil Macdonald Sørensen wrote:

I cannot get PDF (xetex) output from the attached document which uses the
Theorems module. I'm using LyX 2.0.2 and Debian Sid with texlive-xetex. It
works fine when not using Theorems.

The error I get is:

! Undefined control sequence.
\definitionname -\inputencoding
   {latin9}Definition


Yes, that's a known bug:
http://www.lyx.org/trac/ticket/7800

A crude workaround is to put
\providecommand\inputencoding[1]{}
in your preamble.


Thank you very much!

Torquil


Default output format and non-tex fonts

2012-01-11 Thread Torquil Macdonald Sørensen

Hi!

My default output format is PDF (xetex) in the LyX preferences, and this 
appears on the View menu with the keyboard shortcut CTRL-R.


However, if I select Use non-Tex fonts (via xetex/luatex) in the Fonts 
section of the Document properties, the View menu changes to have HTML as the 
default output format assigned to CTRL-R, and PDF (xetex) is relegated to 
the View (Other formats) submenu, without a keyboard shortcut.


Is this correct behaviour?

LyX 2.0.2

Best regards
Torquil Sørensen


xetex and theorem

2012-01-11 Thread Torquil Macdonald Sørensen

Hi!

I cannot get "PDF (xetex)" output from the attached document which uses the 
Theorems module. I'm using LyX 2.0.2 and Debian Sid with texlive-xetex. It works 
fine when not using Theorems.


The error I get is:

"! Undefined control sequence.
\definitionname ->\inputencoding
 {latin9}Definition
l.43 T
  his is a definition.\end{defn}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined."


Sorry about the briefness, I'm just starting to type using a Dvorak keyboard, so 
I'm extremely slow at the moment...


Best regards and thanks,
Torquil Sørensen


example.lyx
Description: application/lyx


Re: xetex and theorem

2012-01-11 Thread Torquil Macdonald Sørensen

On 11/01/12 15:41, Jürgen Spitzmüller wrote:

Torquil Macdonald Sørensen wrote:

I cannot get "PDF (xetex)" output from the attached document which uses the
Theorems module. I'm using LyX 2.0.2 and Debian Sid with texlive-xetex. It
works fine when not using Theorems.

The error I get is:

"! Undefined control sequence.
\definitionname ->\inputencoding
   {latin9}Definition


Yes, that's a known bug:
http://www.lyx.org/trac/ticket/7800

A crude workaround is to put
\providecommand\inputencoding[1]{}
in your preamble.


Thank you very much!

Torquil


Default output format and non-tex fonts

2012-01-11 Thread Torquil Macdonald Sørensen

Hi!

My default output format is "PDF (xetex)" in the LyX preferences, and this 
appears on the View menu with the keyboard shortcut "CTRL-R".


However, if I select "Use non-Tex fonts (via xetex/luatex)" in the "Fonts" 
section of the Document properties, the View menu changes to have HTML as the 
default output format assigned to "CTRL-R", and "PDF (xetex)" is relegated to 
the "View (Other formats)" submenu, without a keyboard shortcut.


Is this correct behaviour?

LyX 2.0.2

Best regards
Torquil Sørensen


Part* and \addcontentsline

2011-11-20 Thread Torquil Macdonald Sørensen

Hi!

I'm having some trouble with customising the entry of a Part in the TOC.

My document has two Parts. The entries in the TOC are by default (in the PDF 
output):


I  Name of first part
1 Name of ch.1
2 Name of ch.2
.
.
.
II Name of second part
.
.
.

However, for reasons I don't need to mention here, I need it to be:

Part I: Name of first part
1 Name of ch.1
2 Name of ch.2
.
.
.
Part II: Name of second part
.
.
.


I.e., this style should be used only for Parts, not chapters, sections etc.

To achieve this, I changed to use Part*, and then tried to put in an ERT with

\addcontentsline{toc}{part}{Part I: Name of first part}

and similarly for the second part.

And here is the problem: If I put that ERT on the same line as the Part* name, 
the Show source displays the following LaTeX code:


\part*{Name of first part\addcontentsline{toc}{part}{Part I: Name of first 
part}}

i.e. the \addcontentsline appears is INSIDE the braces for the \part*. The entry 
appears correctly in the TOC, but the page number is too small, i.e. a two pages 
BEFORE the actual page number of the Part*.


If I instead put the ERT in standard formatting on the next line below the Part* 
name in LyX, the TOC entry points to a point two pages AFTER the actual page 
number of the Part*, and the Show source displays the LaTeX code:


\part*{Name of first part}

\addcontentsline{toc}{part}{Part I: Name of first part}

How can I insert this ERT in LyX so as to achieve the following LaTeX code, 
which I suspect might achieve what I want:


\part*{Name of first part}\addcontentsline{toc}{part}{Part I: Name of first 
part}

Or is there some other way?

Best regards
Torquil Sørensen


Re: Part* and \addcontentsline

2011-11-20 Thread Torquil Macdonald Sørensen

On 20/11/11 16:53, Richard Heck wrote:

On 11/20/2011 10:48 AM, Torquil Macdonald Sørensen wrote:

Hi!

I'm having some trouble with customising the entry of a Part in the TOC.

My document has two Parts. The entries in the TOC are by default (in
the PDF output):

I  Name of first part
1 Name of ch.1
2 Name of ch.2
.
.
.
II Name of second part
.
.
.

However, for reasons I don't need to mention here, I need it to be:

Part I: Name of first part
1 Name of ch.1
2 Name of ch.2
.
.
.
Part II: Name of second part
.
.
.


I.e., this style should be used only for Parts, not chapters, sections
etc.

To achieve this, I changed to use Part*, and then tried to put in an
ERT with

\addcontentsline{toc}{part}{Part I: Name of first part}

and similarly for the second part.

And here is the problem: If I put that ERT on the same line as the
Part* name, the Show source displays the following LaTeX code:

\part*{Name of first part\addcontentsline{toc}{part}{Part I: Name of
first part}}

i.e. the \addcontentsline appears is INSIDE the braces for the \part*.
The entry appears correctly in the TOC, but the page number is too
small, i.e. a two pages BEFORE the actual page number of the Part*.

If I instead put the ERT in standard formatting on the next line below
the Part* name in LyX, the TOC entry points to a point two pages AFTER
the actual page number of the Part*, and the Show source displays
the LaTeX code:

\part*{Name of first part}

\addcontentsline{toc}{part}{Part I: Name of first part}

How can I insert this ERT in LyX so as to achieve the following LaTeX
code, which I suspect might achieve what I want:

\part*{Name of first part}\addcontentsline{toc}{part}{Part I: Name of
first part}

Or is there some other way?


You're better of using the titletoc package to customize how the TOC
appears. Another option would be to redefine the \part command
(probably, actually, the \@part command) so that it writes the correct
thing to the TOC. In book.cls, for example, the command is:

\def\@part[#1]#2{%
 \ifnum \c@secnumdepth-2\relax
   \refstepcounter{part}%
   \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
 \else
   \addcontentsline{toc}{part}{#1}%
 \fi
 \markboth{}{}%
 {\centering
  \interlinepenalty \@M
  \normalfont
  \ifnum \c@secnumdepth-2\relax
\huge\bfseries \partname\nobreakspace\thepart
\par
\vskip 20\p@
  \fi
  \Huge \bfseries #2\par}%
 \@endpart}

So, if you are using book.cls, you just have to copy this to your
preamble and adjust it as you wish.

Richard


Thanks Richard!

I included a modified version of that code in my preamble. I replaced the line

\addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%

with

\addcontentsline{toc}{part}{Part \thepart\hspace{1em}#1}%

which worked like a charm. My document class is uiophd, which is apparently 
based on report.


Torquil


Part* and \addcontentsline

2011-11-20 Thread Torquil Macdonald Sørensen

Hi!

I'm having some trouble with customising the entry of a Part in the TOC.

My document has two Parts. The entries in the TOC are by default (in the PDF 
output):


I  Name of first part
1 Name of ch.1
2 Name of ch.2
.
.
.
II Name of second part
.
.
.

However, for reasons I don't need to mention here, I need it to be:

Part I: Name of first part
1 Name of ch.1
2 Name of ch.2
.
.
.
Part II: Name of second part
.
.
.


I.e., this style should be used only for Parts, not chapters, sections etc.

To achieve this, I changed to use Part*, and then tried to put in an ERT with

\addcontentsline{toc}{part}{Part I: Name of first part}

and similarly for the second part.

And here is the problem: If I put that ERT on the same line as the Part* name, 
the Show source displays the following LaTeX code:


\part*{Name of first part\addcontentsline{toc}{part}{Part I: Name of first 
part}}

i.e. the \addcontentsline appears is INSIDE the braces for the \part*. The entry 
appears correctly in the TOC, but the page number is too small, i.e. a two pages 
BEFORE the actual page number of the Part*.


If I instead put the ERT in standard formatting on the next line below the Part* 
name in LyX, the TOC entry points to a point two pages AFTER the actual page 
number of the Part*, and the Show source displays the LaTeX code:


\part*{Name of first part}

\addcontentsline{toc}{part}{Part I: Name of first part}

How can I insert this ERT in LyX so as to achieve the following LaTeX code, 
which I suspect might achieve what I want:


\part*{Name of first part}\addcontentsline{toc}{part}{Part I: Name of first 
part}

Or is there some other way?

Best regards
Torquil Sørensen


Re: Part* and \addcontentsline

2011-11-20 Thread Torquil Macdonald Sørensen

On 20/11/11 16:53, Richard Heck wrote:

On 11/20/2011 10:48 AM, Torquil Macdonald Sørensen wrote:

Hi!

I'm having some trouble with customising the entry of a Part in the TOC.

My document has two Parts. The entries in the TOC are by default (in
the PDF output):

I  Name of first part
1 Name of ch.1
2 Name of ch.2
.
.
.
II Name of second part
.
.
.

However, for reasons I don't need to mention here, I need it to be:

Part I: Name of first part
1 Name of ch.1
2 Name of ch.2
.
.
.
Part II: Name of second part
.
.
.


I.e., this style should be used only for Parts, not chapters, sections
etc.

To achieve this, I changed to use Part*, and then tried to put in an
ERT with

\addcontentsline{toc}{part}{Part I: Name of first part}

and similarly for the second part.

And here is the problem: If I put that ERT on the same line as the
Part* name, the Show source displays the following LaTeX code:

\part*{Name of first part\addcontentsline{toc}{part}{Part I: Name of
first part}}

i.e. the \addcontentsline appears is INSIDE the braces for the \part*.
The entry appears correctly in the TOC, but the page number is too
small, i.e. a two pages BEFORE the actual page number of the Part*.

If I instead put the ERT in standard formatting on the next line below
the Part* name in LyX, the TOC entry points to a point two pages AFTER
the actual page number of the Part*, and the Show source displays
the LaTeX code:

\part*{Name of first part}

\addcontentsline{toc}{part}{Part I: Name of first part}

How can I insert this ERT in LyX so as to achieve the following LaTeX
code, which I suspect might achieve what I want:

\part*{Name of first part}\addcontentsline{toc}{part}{Part I: Name of
first part}

Or is there some other way?


You're better of using the titletoc package to customize how the TOC
appears. Another option would be to redefine the \part command
(probably, actually, the \@part command) so that it writes the correct
thing to the TOC. In book.cls, for example, the command is:

\def\@part[#1]#2{%
 \ifnum \c@secnumdepth-2\relax
   \refstepcounter{part}%
   \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
 \else
   \addcontentsline{toc}{part}{#1}%
 \fi
 \markboth{}{}%
 {\centering
  \interlinepenalty \@M
  \normalfont
  \ifnum \c@secnumdepth-2\relax
\huge\bfseries \partname\nobreakspace\thepart
\par
\vskip 20\p@
  \fi
  \Huge \bfseries #2\par}%
 \@endpart}

So, if you are using book.cls, you just have to copy this to your
preamble and adjust it as you wish.

Richard


Thanks Richard!

I included a modified version of that code in my preamble. I replaced the line

\addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%

with

\addcontentsline{toc}{part}{Part \thepart\hspace{1em}#1}%

which worked like a charm. My document class is uiophd, which is apparently 
based on report.


Torquil


Part* and \addcontentsline

2011-11-20 Thread Torquil Macdonald Sørensen

Hi!

I'm having some trouble with customising the entry of a Part in the TOC.

My document has two Parts. The entries in the TOC are by default (in the PDF 
output):


I  Name of first part
1 Name of ch.1
2 Name of ch.2
.
.
.
II Name of second part
.
.
.

However, for reasons I don't need to mention here, I need it to be:

Part I: Name of first part
1 Name of ch.1
2 Name of ch.2
.
.
.
Part II: Name of second part
.
.
.


I.e., this style should be used only for Parts, not chapters, sections etc.

To achieve this, I changed to use Part*, and then tried to put in an ERT with

\addcontentsline{toc}{part}{Part I: Name of first part}

and similarly for the second part.

And here is the problem: If I put that ERT on the same line as the Part* name, 
the "Show source" displays the following LaTeX code:


\part*{Name of first part\addcontentsline{toc}{part}{Part I: Name of first 
part}}

i.e. the \addcontentsline appears is INSIDE the braces for the \part*. The entry 
appears correctly in the TOC, but the page number is too small, i.e. a two pages 
BEFORE the actual page number of the Part*.


If I instead put the ERT in standard formatting on the next line below the Part* 
name in LyX, the TOC entry points to a point two pages AFTER the actual page 
number of the Part*, and the "Show source" displays the LaTeX code:


\part*{Name of first part}

\addcontentsline{toc}{part}{Part I: Name of first part}

How can I insert this ERT in LyX so as to achieve the following LaTeX code, 
which I suspect might achieve what I want:


\part*{Name of first part}\addcontentsline{toc}{part}{Part I: Name of first 
part}

Or is there some other way?

Best regards
Torquil Sørensen


Re: Part* and \addcontentsline

2011-11-20 Thread Torquil Macdonald Sørensen

On 20/11/11 16:53, Richard Heck wrote:

On 11/20/2011 10:48 AM, Torquil Macdonald Sørensen wrote:

Hi!

I'm having some trouble with customising the entry of a Part in the TOC.

My document has two Parts. The entries in the TOC are by default (in
the PDF output):

I  Name of first part
1 Name of ch.1
2 Name of ch.2
.
.
.
II Name of second part
.
.
.

However, for reasons I don't need to mention here, I need it to be:

Part I: Name of first part
1 Name of ch.1
2 Name of ch.2
.
.
.
Part II: Name of second part
.
.
.


I.e., this style should be used only for Parts, not chapters, sections
etc.

To achieve this, I changed to use Part*, and then tried to put in an
ERT with

\addcontentsline{toc}{part}{Part I: Name of first part}

and similarly for the second part.

And here is the problem: If I put that ERT on the same line as the
Part* name, the "Show source" displays the following LaTeX code:

\part*{Name of first part\addcontentsline{toc}{part}{Part I: Name of
first part}}

i.e. the \addcontentsline appears is INSIDE the braces for the \part*.
The entry appears correctly in the TOC, but the page number is too
small, i.e. a two pages BEFORE the actual page number of the Part*.

If I instead put the ERT in standard formatting on the next line below
the Part* name in LyX, the TOC entry points to a point two pages AFTER
the actual page number of the Part*, and the "Show source" displays
the LaTeX code:

\part*{Name of first part}

\addcontentsline{toc}{part}{Part I: Name of first part}

How can I insert this ERT in LyX so as to achieve the following LaTeX
code, which I suspect might achieve what I want:

\part*{Name of first part}\addcontentsline{toc}{part}{Part I: Name of
first part}

Or is there some other way?


You're better of using the titletoc package to customize how the TOC
appears. Another option would be to redefine the \part command
(probably, actually, the \@part command) so that it writes the correct
thing to the TOC. In book.cls, for example, the command is:

\def\@part[#1]#2{%
 \ifnum \c@secnumdepth>-2\relax
   \refstepcounter{part}%
   \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
 \else
   \addcontentsline{toc}{part}{#1}%
 \fi
 \markboth{}{}%
 {\centering
  \interlinepenalty \@M
  \normalfont
  \ifnum \c@secnumdepth>-2\relax
\huge\bfseries \partname\nobreakspace\thepart
\par
\vskip 20\p@
  \fi
  \Huge \bfseries #2\par}%
 \@endpart}

So, if you are using book.cls, you just have to copy this to your
preamble and adjust it as you wish.

Richard


Thanks Richard!

I included a modified version of that code in my preamble. I replaced the line

\addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%

with

\addcontentsline{toc}{part}{Part \thepart\hspace{1em}#1}%

which worked like a charm. My document class is "uiophd", which is apparently 
based on "report".


Torquil


Re: Problem (?) with adjacent theorems, lemmas, etc

2011-11-18 Thread Torquil Macdonald Sørensen

On 18/11/11 11:33, Christopher Menzel wrote:

LyX folk,

I am attempting to list two simple lemmas, one after the other, without proofs 
or any other intervening text. LyX appears not to allow this. If I attempt to 
insert the second lemma immediately after the first, no matter what I've tried 
the text of the second lemma is simply pulled into the first lemma. The only 
(somewhat kludgy) workaround I've found is to insert an ERT comment line 
between the two lemmas. This seems sorta like a bug to me, but perhaps it is a 
feature whose justification is lost on me. The phenomenon in question is not 
unique to lemmas; the same thing happens with theorems, corollaries, 
definitions, etc.

Thanks for any info.

Chris Menzel



I asked the same question some time ago, and was happy to learn that there is a 
Separator option on the top left drop-down menu that will do what you want.


Best regards
Torquil


Impressed

2011-11-18 Thread Torquil Macdonald Sørensen

Hi!

I was just going to post a question to this list requesting a function to find 
all my LyX notes that I have written throughout a large document. But a hunch 
made me check out the different categories in the drop-down menu in the Outline 
dialogue before I submitted.


And what do you know, somebody had already thought of it! It can show me a list 
of all my notes! And it even shows the content of the note in the Outline 
dialogue...


LyX impresses again!

Best regards
Torquil Macdonald Sørensen


Re: Problem (?) with adjacent theorems, lemmas, etc

2011-11-18 Thread Torquil Macdonald Sørensen

On 18/11/11 11:33, Christopher Menzel wrote:

LyX folk,

I am attempting to list two simple lemmas, one after the other, without proofs 
or any other intervening text. LyX appears not to allow this. If I attempt to 
insert the second lemma immediately after the first, no matter what I've tried 
the text of the second lemma is simply pulled into the first lemma. The only 
(somewhat kludgy) workaround I've found is to insert an ERT comment line 
between the two lemmas. This seems sorta like a bug to me, but perhaps it is a 
feature whose justification is lost on me. The phenomenon in question is not 
unique to lemmas; the same thing happens with theorems, corollaries, 
definitions, etc.

Thanks for any info.

Chris Menzel



I asked the same question some time ago, and was happy to learn that there is a 
Separator option on the top left drop-down menu that will do what you want.


Best regards
Torquil


Impressed

2011-11-18 Thread Torquil Macdonald Sørensen

Hi!

I was just going to post a question to this list requesting a function to find 
all my LyX notes that I have written throughout a large document. But a hunch 
made me check out the different categories in the drop-down menu in the Outline 
dialogue before I submitted.


And what do you know, somebody had already thought of it! It can show me a list 
of all my notes! And it even shows the content of the note in the Outline 
dialogue...


LyX impresses again!

Best regards
Torquil Macdonald Sørensen


Re: Problem (?) with adjacent theorems, lemmas, etc

2011-11-18 Thread Torquil Macdonald Sørensen

On 18/11/11 11:33, Christopher Menzel wrote:

LyX folk,

I am attempting to list two simple lemmas, one after the other, without proofs 
or any other intervening text. LyX appears not to allow this. If I attempt to 
insert the second lemma immediately after the first, no matter what I've tried 
the text of the second lemma is simply pulled into the first lemma. The only 
(somewhat kludgy) workaround I've found is to insert an ERT comment line 
between the two lemmas. This seems sorta like a bug to me, but perhaps it is a 
feature whose justification is lost on me. The phenomenon in question is not 
unique to lemmas; the same thing happens with theorems, corollaries, 
definitions, etc.

Thanks for any info.

Chris Menzel



I asked the same question some time ago, and was happy to learn that there is a 
"Separator" option on the top left drop-down menu that will do what you want.


Best regards
Torquil


Impressed

2011-11-18 Thread Torquil Macdonald Sørensen

Hi!

I was just going to post a question to this list requesting a function to find 
all my LyX notes that I have written throughout a large document. But a hunch 
made me check out the different categories in the drop-down menu in the Outline 
dialogue before I submitted.


And what do you know, somebody had already thought of it! It can show me a list 
of all my notes! And it even shows the content of the note in the Outline 
dialogue...


LyX impresses again!

Best regards
Torquil Macdonald Sørensen


Re: Spellchecking not working in Arch

2011-11-11 Thread Torquil Macdonald Sørensen

On 11/11/11 08:30, Wolfgang Engelmann wrote:

http://wiki.lyx.org/Devel/Hunspell:

Hi,

I am using Debian Squeeze and Lyx 2.0.1 and have hunspell in /usr/share/.
But in
Tools  Preferences  Language  Spellchecker  Engine
only enchant is shown, not Hunspell
Furthermore, in
Tools  Preferences  Paths
under spellchecker-dictionaries
the right part where one is supposed to search (durchsuchen in German) is
greyed out, I can' t search nor enter something.

What am I doing wrong?


Hi!

I believe the Debian LyX package is compiled without hunspell support for some 
reason. Quote from the Debian changelog at version 2.0.0~beta4-1 on Mon, 07 Feb 
2011 14:29:55 +0100:


* Build explicitly --without-aspell and --without-hunspell. Drop
 --without-pspell since it's no longer supported.

Best regards
Torquil Sørensen


Re: Spellchecking not working in Arch

2011-11-11 Thread Torquil Macdonald Sørensen

On 11/11/11 08:30, Wolfgang Engelmann wrote:

http://wiki.lyx.org/Devel/Hunspell:

Hi,

I am using Debian Squeeze and Lyx 2.0.1 and have hunspell in /usr/share/.
But in
Tools  Preferences  Language  Spellchecker  Engine
only enchant is shown, not Hunspell
Furthermore, in
Tools  Preferences  Paths
under spellchecker-dictionaries
the right part where one is supposed to search (durchsuchen in German) is
greyed out, I can' t search nor enter something.

What am I doing wrong?


Hi!

I believe the Debian LyX package is compiled without hunspell support for some 
reason. Quote from the Debian changelog at version 2.0.0~beta4-1 on Mon, 07 Feb 
2011 14:29:55 +0100:


* Build explicitly --without-aspell and --without-hunspell. Drop
 --without-pspell since it's no longer supported.

Best regards
Torquil Sørensen


Re: Spellchecking not working in Arch

2011-11-11 Thread Torquil Macdonald Sørensen

On 11/11/11 08:30, Wolfgang Engelmann wrote:

http://wiki.lyx.org/Devel/Hunspell:

Hi,

I am using Debian Squeeze and Lyx 2.0.1 and have hunspell in /usr/share/.
But in
Tools>  Preferences>  Language>  Spellchecker>  Engine>
only enchant is shown, not Hunspell
Furthermore, in
Tools>  Preferences>  Paths
under spellchecker-dictionaries
the right part where one is supposed to search (durchsuchen in German) is
greyed out, I can' t search nor enter something.

What am I doing wrong?


Hi!

I believe the Debian LyX package is compiled without hunspell support for some 
reason. Quote from the Debian changelog at version 2.0.0~beta4-1 on Mon, 07 Feb 
2011 14:29:55 +0100:


"* Build explicitly --without-aspell and --without-hunspell. Drop
 --without-pspell since it's no longer supported."

Best regards
Torquil Sørensen


Re: Spellchecking problem

2011-11-09 Thread Torquil Macdonald Sørensen

On 09/11/11 07:56, Stephan Witt wrote:

However, it seems to me to have a deficiency, and I'm hoping it is just a 
configuration issue:

If my document contains e.g. the mathematical term d-dimensional, the LyX spellchecker 
will treat this as a single word and complain, instead of considering it as a combination of two 
words to be checked independently. In the latter case I would only be forced to add d 
to the list of words, and all would be well.

Is there a way to make this Enchant spellchecker understand that it should only 
check each word separately when they are connected by a hyphen?



When I'm using Hunspell as backend for LyX's spell-checker I don't have your 
problem.
I don't know if it's the same with Enchant as a relay... but you may give it 
a try
and configure Hunspell as your Enchant spell-checker engine.

Stephan



Thanks Stephan!

I tried what you suggested, but it didn't seem to improve the situation. The 
long store:


I installed hunspell, but wasn't able to select it directly in the LyX 
preferences for some reason, even after Reconfiguring and restarting. Also, 
the hunspell field in the Paths-configuration inside the preferences was always 
greyed out.


Hunspell works on the command line, though. So I had to stay with enchant in 
LyX. According to the enchant documentation, a file enchant.ordering can be 
placed in ~/.enchant/. I did this, and have tried:


*:aspell

or

*:hunspell

(not at the same time, though).

But in both cases I get the same problem with the hyphenated words. I wish there 
was some way of asking enchant which spellchecker it is actually using, but I 
cannot find this in its documentation (the man page). But then I uninstalled 
aspell, and as far as I know, hunspell is then the only spellchecker left on my 
system, so I guess enchant is obeying my configuration file, or otherwise it 
wouldn't work at all.


But as mentioned, using hunspell in this way did not improve the situation, 
unfortunately. Did you need to edit some hunspell configuration file or specify 
some special options somewhere?


Also, it seems to complain about some very common things like i.e.. It only 
complains about the i, so I'm not sure how to add the whole i.e. to the 
dictionary by using the LyX spellchecker dialogue.


Best regards
Torquil Sørensen


Re: Spellchecking problem

2011-11-09 Thread Torquil Macdonald Sørensen

On 09/11/11 07:56, Stephan Witt wrote:

However, it seems to me to have a deficiency, and I'm hoping it is just a 
configuration issue:

If my document contains e.g. the mathematical term d-dimensional, the LyX spellchecker 
will treat this as a single word and complain, instead of considering it as a combination of two 
words to be checked independently. In the latter case I would only be forced to add d 
to the list of words, and all would be well.

Is there a way to make this Enchant spellchecker understand that it should only 
check each word separately when they are connected by a hyphen?



When I'm using Hunspell as backend for LyX's spell-checker I don't have your 
problem.
I don't know if it's the same with Enchant as a relay... but you may give it 
a try
and configure Hunspell as your Enchant spell-checker engine.

Stephan



Thanks Stephan!

I tried what you suggested, but it didn't seem to improve the situation. The 
long store:


I installed hunspell, but wasn't able to select it directly in the LyX 
preferences for some reason, even after Reconfiguring and restarting. Also, 
the hunspell field in the Paths-configuration inside the preferences was always 
greyed out.


Hunspell works on the command line, though. So I had to stay with enchant in 
LyX. According to the enchant documentation, a file enchant.ordering can be 
placed in ~/.enchant/. I did this, and have tried:


*:aspell

or

*:hunspell

(not at the same time, though).

But in both cases I get the same problem with the hyphenated words. I wish there 
was some way of asking enchant which spellchecker it is actually using, but I 
cannot find this in its documentation (the man page). But then I uninstalled 
aspell, and as far as I know, hunspell is then the only spellchecker left on my 
system, so I guess enchant is obeying my configuration file, or otherwise it 
wouldn't work at all.


But as mentioned, using hunspell in this way did not improve the situation, 
unfortunately. Did you need to edit some hunspell configuration file or specify 
some special options somewhere?


Also, it seems to complain about some very common things like i.e.. It only 
complains about the i, so I'm not sure how to add the whole i.e. to the 
dictionary by using the LyX spellchecker dialogue.


Best regards
Torquil Sørensen


Re: Spellchecking problem

2011-11-09 Thread Torquil Macdonald Sørensen

On 09/11/11 07:56, Stephan Witt wrote:

However, it seems to me to have a deficiency, and I'm hoping it is just a 
configuration issue:

If my document contains e.g. the mathematical term "d-dimensional", the LyX spellchecker 
will treat this as a single word and complain, instead of considering it as a combination of two 
words to be checked independently. In the latter case I would only be forced to add "d" 
to the list of words, and all would be well.

Is there a way to make this Enchant spellchecker understand that it should only 
check each word separately when they are connected by a hyphen?



When I'm using Hunspell as backend for LyX's spell-checker I don't have your 
problem.
I don't know if it's the same with Enchant as a "relay"... but you may give it 
a try
and configure Hunspell as your Enchant spell-checker engine.

Stephan



Thanks Stephan!

I tried what you suggested, but it didn't seem to improve the situation. The 
long store:


I installed hunspell, but wasn't able to select it directly in the LyX 
preferences for some reason, even after "Reconfiguring" and restarting. Also, 
the hunspell field in the Paths-configuration inside the preferences was always 
greyed out.


Hunspell works on the command line, though. So I had to stay with enchant in 
LyX. According to the enchant documentation, a file enchant.ordering can be 
placed in ~/.enchant/. I did this, and have tried:


*:aspell

or

*:hunspell

(not at the same time, though).

But in both cases I get the same problem with the hyphenated words. I wish there 
was some way of asking enchant which spellchecker it is actually using, but I 
cannot find this in its documentation (the man page). But then I uninstalled 
aspell, and as far as I know, hunspell is then the only spellchecker left on my 
system, so I guess enchant is obeying my configuration file, or otherwise it 
wouldn't work at all.


But as mentioned, using hunspell in this way did not improve the situation, 
unfortunately. Did you need to edit some hunspell configuration file or specify 
some special options somewhere?


Also, it seems to complain about some very common things like "i.e.". It only 
complains about the "i", so I'm not sure how to add the whole "i.e." to the 
dictionary by using the LyX spellchecker dialogue.


Best regards
Torquil Sørensen


Locating broken bibtex references

2011-10-15 Thread Torquil Macdonald Sørensen

Hi all!

How do I locate broken references in a LyX document? I'm talking about bibtex 
references to other articles, not cross-references to labelled items within the 
document.


I have a master document containing several child documents. The master document 
contains the bibliography and almost everything works fine. The document class 
is book in all documents. The child documents contain individual chapters.


When I compile I get a few warnings in the latex log about undefined references. 
These warnings are accompanied by latex source code line numbers, but that 
doesn't help me to locate the error within LyX.


Most citations work fine, but there are a few that cause problems because I have 
changed the bibtex file after I wrote the LyX document.


E.g. somewhere in my document I have an old reference to a paper with a bibtex 
label whitney1957, but it is supposed to be whitney57. How do I locate the 
position within the LyX document where I have tried to cite the incorrect 
whitney1957?


Thanks!

Best regards
Torquil Sørensen


Re: Locating broken bibtex references

2011-10-15 Thread Torquil Macdonald Sørensen
I now see that latex provides page number and line number for the warnings, so 
I'm able to locate the error in the PDF output file, and then use this to find 
the corresponding place in the LyX file. But it would be nice if LyX itself 
could point me to the error in a more direct manner, without going via the latex 
log and PDF output file.


- Torquil


Locating broken bibtex references

2011-10-15 Thread Torquil Macdonald Sørensen

Hi all!

How do I locate broken references in a LyX document? I'm talking about bibtex 
references to other articles, not cross-references to labelled items within the 
document.


I have a master document containing several child documents. The master document 
contains the bibliography and almost everything works fine. The document class 
is book in all documents. The child documents contain individual chapters.


When I compile I get a few warnings in the latex log about undefined references. 
These warnings are accompanied by latex source code line numbers, but that 
doesn't help me to locate the error within LyX.


Most citations work fine, but there are a few that cause problems because I have 
changed the bibtex file after I wrote the LyX document.


E.g. somewhere in my document I have an old reference to a paper with a bibtex 
label whitney1957, but it is supposed to be whitney57. How do I locate the 
position within the LyX document where I have tried to cite the incorrect 
whitney1957?


Thanks!

Best regards
Torquil Sørensen


Re: Locating broken bibtex references

2011-10-15 Thread Torquil Macdonald Sørensen
I now see that latex provides page number and line number for the warnings, so 
I'm able to locate the error in the PDF output file, and then use this to find 
the corresponding place in the LyX file. But it would be nice if LyX itself 
could point me to the error in a more direct manner, without going via the latex 
log and PDF output file.


- Torquil


Locating broken bibtex references

2011-10-15 Thread Torquil Macdonald Sørensen

Hi all!

How do I locate broken references in a LyX document? I'm talking about bibtex 
references to other articles, not cross-references to labelled items within the 
document.


I have a master document containing several child documents. The master document 
contains the bibliography and almost everything works fine. The document class 
is "book" in all documents. The child documents contain individual chapters.


When I compile I get a few warnings in the latex log about undefined references. 
These warnings are accompanied by latex source code line numbers, but that 
doesn't help me to locate the error within LyX.


Most citations work fine, but there are a few that cause problems because I have 
changed the bibtex file after I wrote the LyX document.


E.g. somewhere in my document I have an old reference to a paper with a bibtex 
label "whitney1957", but it is supposed to be "whitney57". How do I locate the 
position within the LyX document where I have tried to cite the incorrect 
"whitney1957"?


Thanks!

Best regards
Torquil Sørensen


Re: Locating broken bibtex references

2011-10-15 Thread Torquil Macdonald Sørensen
I now see that latex provides page number and line number for the warnings, so 
I'm able to locate the error in the PDF output file, and then use this to find 
the corresponding place in the LyX file. But it would be nice if LyX itself 
could point me to the error in a more direct manner, without going via the latex 
log and PDF output file.


- Torquil


Re: Triangle of Tartaglia with Lyx

2011-10-13 Thread Torquil Macdonald Sørensen

On 13/10/11 11:32, Rubén Jiménez wrote:

Hi

Will you show me how I can draw the triangle of Tartaglia with Lyx?



If it indeed is the same as Pascal's triangle, you can use tikz and copy the 
code from here:


http://www.texample.net/tikz/examples/pascals-triangle-and-sierpinski-triangle/

Just do some searching about how to use tikz in lyx. Tikz is fantastic!

Best regards
Torquil Sørensen


Re: Triangle of Tartaglia with Lyx

2011-10-13 Thread Torquil Macdonald Sørensen

On 13/10/11 11:32, Rubén Jiménez wrote:

Hi

Will you show me how I can draw the triangle of Tartaglia with Lyx?



If it indeed is the same as Pascal's triangle, you can use tikz and copy the 
code from here:


http://www.texample.net/tikz/examples/pascals-triangle-and-sierpinski-triangle/

Just do some searching about how to use tikz in lyx. Tikz is fantastic!

Best regards
Torquil Sørensen


Re: Triangle of Tartaglia with Lyx

2011-10-13 Thread Torquil Macdonald Sørensen

On 13/10/11 11:32, Rubén Jiménez wrote:

Hi

Will you show me how I can draw the triangle of Tartaglia with Lyx?



If it indeed is the same as Pascal's triangle, you can use tikz and copy the 
code from here:


http://www.texample.net/tikz/examples/pascals-triangle-and-sierpinski-triangle/

Just do some searching about how to use tikz in lyx. Tikz is fantastic!

Best regards
Torquil Sørensen


Re: Lyx, arXiv.org and \pdfoutput=1

2011-10-12 Thread Torquil Macdonald Sørensen

On 11/10/11 16:20, Richard Heck wrote:

On 10/11/2011 09:41 AM, Torquil Macdonald Sørensen wrote:

Hi!

In order to successfully submit an article that uses PDF figures to
the arXiv.org preprint server, it is necessary to have

\pdfoutput=1

within the top five lines of the document. This is necessary in order
to tell arXiv.org not to attempt any processing for generation of DVI
and PS, which will not work since the figures are in PDF format.

Is it possible make LyX include this in its LaTeX (pdflatex) export,
so I don't have to add it manually to the resulting tex-file?


No. But you could have a simple script do it.


Thanks, I'll just do it by hand.

- Torquil



Branches and document class

2011-10-12 Thread Torquil Macdonald Sørensen

Hi!

Is it possible to have two branches of the same lyx document, with different 
document classes?


This would be useful in the following scenario (which I'm in right now): I have 
a paper that is to be submitted both to the arxiv.org preprint server and to 
'journal x'. Thus I want one version with the 'article' document class, and one 
with a particular document class requested by journal x.


Best regards
Torquil Sørensen


Re: Branches and document class

2011-10-12 Thread Torquil Macdonald Sørensen

On 12/10/11 15:19, Richard Heck wrote:

On 10/12/2011 08:39 AM, Torquil Macdonald Sørensen wrote:

Hi!

Is it possible to have two branches of the same lyx document, with different
document classes?


I don't think so. Document class is a global setting.


This would be useful in the following scenario (which I'm in right now): I
have a paper that is to be submitted both to the arxiv.org preprint server and
to 'journal x'. Thus I want one version with the 'article' document class, and
one with a particular document class requested by journal x.


Can't you just switch between these classes as need be?


I will have to change the document class as well as change between branches, 
since there are some other differences, pertaining toe title/author/address/etc 
code that need to be different as well between the two versions. I though I 
could hit two birds with one stone if the documentclass could also be affected 
by the branching :-)


But I guess it is not possible. I can put a lyx-comment within each of the 
branched content sections, reminding me which documentclass to select for each 
of them. Not as elegant, though.


Thanks,
Torquil Sørensen


LyX slowness

2011-10-12 Thread Torquil Macdonald Sørensen

Hi!

While LyX is fantastic in almost every way, it is slow... My LyX is slow at 
pretty much everything. Typing, scrolling, moving the cursor around using arrow 
keys, highlighting sections of texts, etc. Even for small documents.


This is strange, since my computer is quite fast. It is slow botjh when using 
the proprietary NVIDIA and the open-source Nouveau graphics card driver. I'm 
running LyX on an XFCE desktop on Debian Sid, using Linux 3.0.4 on a dual-core 
Asus laptop.


It is not extremely slow, but slow enough to affect the user experience 
negatively. And I'm not one of those users that need everything to be 
lightning-fast :-) It is sort of like running modern programs on an old computer.


I have gone through these points:
http://wiki.lyx.org/Tips/PerformanceIssues

My comments on the points raised there:

* My LyX uses more CPU than X. Total CPU usage is less than 100%.
* I don't use the outliner or source view.
* Cursor movement is slow, at least compared to most other programs.
* The Ctrl+Alt+F1 trick has no effect on the slowness.

Any other ways to improve speed? I am willing to recompile LyX myself with 
special options, or even modify the source code to deactivate stuff that is 
inaccessible from the preferences, if someone would kindly guide me any 
suggestion on what might help.


I will try to go back to the proprietary Nvidia driver now and check out the 
nvidia-settings command given on the page I referred to above. Or perhaps the 
newer Nvidia driver will allow LyX to speed up, if I'm lucky! :-)


Best regards
Torquil Sørensen



Re: LyX slowness

2011-10-12 Thread Torquil Macdonald Sørensen

On 12/10/11 18:50, Liviu Andronic wrote:

On Wed, Oct 12, 2011 at 6:45 PM, Torquil Macdonald Sørensen
torq...@gmail.com  wrote:

Hi!

While LyX is fantastic in almost every way, it is slow... My LyX is slow at
pretty much everything. Typing, scrolling, moving the cursor around using
arrow keys, highlighting sections of texts, etc. Even for small documents.

This is strange, since my computer is quite fast. It is slow botjh when
using the proprietary NVIDIA and the open-source Nouveau graphics card
driver. I'm running LyX on an XFCE desktop on Debian Sid, using Linux 3.0.4
on a dual-core Asus laptop.


What version of LyX? Here 2.0.1 works fine on Xubuntu 10.04 64bit using Xfce.


Thanks for the information! I'm using 2.0.1, also on 64bit. I've now switched to 
the proprietary Nvidia driver, and it is noticeably faster. I would say that 
with this driver, the speed is now acceptable.


I have deactivated the automatic toolbars that appear when the cursor passes a 
mathematical equation, so that helps a bit. Even though I wanted to use the 
nouveau driver, I guess I will now stay with the proprietary driver.


Best regards
Torquil Sørensen


Re: Branches and document class

2011-10-12 Thread Torquil Macdonald Sørensen

On 12/10/11 17:07, Richard Heck wrote:

On 10/12/2011 09:33 AM, Torquil Macdonald Sørensen wrote:

On 12/10/11 15:19, Richard Heck wrote:

On 10/12/2011 08:39 AM, Torquil Macdonald Sørensen wrote:

Hi!

Is it possible to have two branches of the same lyx document, with different
document classes?


I don't think so. Document class is a global setting.


This would be useful in the following scenario (which I'm in right now): I
have a paper that is to be submitted both to the arxiv.org preprint server and
to 'journal x'. Thus I want one version with the 'article' document class, and
one with a particular document class requested by journal x.


Can't you just switch between these classes as need be?


I will have to change the document class as well as change between branches,
since there are some other differences, pertaining toe
title/author/address/etc code that need to be different as well between the
two versions. I though I could hit two birds with one stone if the
documentclass could also be affected by the branching :-)


Ahh, I see. I'll think about this for the future. I've had other ideas about
automated branch selection.


But I guess it is not possible. I can put a lyx-comment within each of the
branched content sections, reminding me which documentclass to select for each
of them. Not as elegant, though.


This could be done with some LaTeX code, too. I assume there is some variable
that you could test for, doing something like:
\ifx\definedonlyinspecialclass\undefined
% content of branch
\fi
I.e., wrap the branch in ERT with such code.


Interesting. If I understand you correctly, this suggestion involves not using 
any lyx branches, but instead using tex-programming to compile differently 
depending on the chosen document class. In that case the latex output would 
always be the same (apart from documentclass). But I think that when I submit an 
article (i..e latex code) I don't want that code in include any code that was 
really meant for other recipients.


That's why the lyx-branching is so cool. I hadn't used it before now, but I will 
from now on.


Best regards
Torquil Sørensen


Per-chapter appendices for LyX book

2011-10-12 Thread Torquil Macdonald Sørensen

Hi!

Does LyX support the Appendix package? My hunch is that lyx does not support 
this natively. Am I right?


I'm writing something (documentclass book) that needs to have per-chapter 
appendices. So the last few sections in each chapter would be appendices. I've 
found that this can be done in LyX by:


1) \usepackage{appendix} in the preamble

2) Enclose the last sections of each chapter by ERT-s:

\begin{subappendix}

and

\end{subappendix}

This works beautifully. E.g. the first appendix in chapter 3 is denoted 3.A, 
which is great!


But is it possible for me to define some sort of function to do this in LyX 
without using ERT? I image some sort of box (looking similar to lyx note), in 
which I can put several Sections. The contents of this box would then be 
effectively enclosed in a subappendices environment as described above.


Is this something that can be done by defining those custom insets that are 
accessible from the Insert menu? Or by defining a module, accessible from 
the Document settings?


Or is it possible to get per-chapter section appendices in a LyX book by some 
other, and perhaps simpler, method?


Thanks, and best regards
Torquil Sørensen


Re: Lyx, arXiv.org and \pdfoutput=1

2011-10-12 Thread Torquil Macdonald Sørensen

On 11/10/11 16:20, Richard Heck wrote:

On 10/11/2011 09:41 AM, Torquil Macdonald Sørensen wrote:

Hi!

In order to successfully submit an article that uses PDF figures to
the arXiv.org preprint server, it is necessary to have

\pdfoutput=1

within the top five lines of the document. This is necessary in order
to tell arXiv.org not to attempt any processing for generation of DVI
and PS, which will not work since the figures are in PDF format.

Is it possible make LyX include this in its LaTeX (pdflatex) export,
so I don't have to add it manually to the resulting tex-file?


No. But you could have a simple script do it.


Thanks, I'll just do it by hand.

- Torquil



Branches and document class

2011-10-12 Thread Torquil Macdonald Sørensen

Hi!

Is it possible to have two branches of the same lyx document, with different 
document classes?


This would be useful in the following scenario (which I'm in right now): I have 
a paper that is to be submitted both to the arxiv.org preprint server and to 
'journal x'. Thus I want one version with the 'article' document class, and one 
with a particular document class requested by journal x.


Best regards
Torquil Sørensen


Re: Branches and document class

2011-10-12 Thread Torquil Macdonald Sørensen

On 12/10/11 15:19, Richard Heck wrote:

On 10/12/2011 08:39 AM, Torquil Macdonald Sørensen wrote:

Hi!

Is it possible to have two branches of the same lyx document, with different
document classes?


I don't think so. Document class is a global setting.


This would be useful in the following scenario (which I'm in right now): I
have a paper that is to be submitted both to the arxiv.org preprint server and
to 'journal x'. Thus I want one version with the 'article' document class, and
one with a particular document class requested by journal x.


Can't you just switch between these classes as need be?


I will have to change the document class as well as change between branches, 
since there are some other differences, pertaining toe title/author/address/etc 
code that need to be different as well between the two versions. I though I 
could hit two birds with one stone if the documentclass could also be affected 
by the branching :-)


But I guess it is not possible. I can put a lyx-comment within each of the 
branched content sections, reminding me which documentclass to select for each 
of them. Not as elegant, though.


Thanks,
Torquil Sørensen


LyX slowness

2011-10-12 Thread Torquil Macdonald Sørensen

Hi!

While LyX is fantastic in almost every way, it is slow... My LyX is slow at 
pretty much everything. Typing, scrolling, moving the cursor around using arrow 
keys, highlighting sections of texts, etc. Even for small documents.


This is strange, since my computer is quite fast. It is slow botjh when using 
the proprietary NVIDIA and the open-source Nouveau graphics card driver. I'm 
running LyX on an XFCE desktop on Debian Sid, using Linux 3.0.4 on a dual-core 
Asus laptop.


It is not extremely slow, but slow enough to affect the user experience 
negatively. And I'm not one of those users that need everything to be 
lightning-fast :-) It is sort of like running modern programs on an old computer.


I have gone through these points:
http://wiki.lyx.org/Tips/PerformanceIssues

My comments on the points raised there:

* My LyX uses more CPU than X. Total CPU usage is less than 100%.
* I don't use the outliner or source view.
* Cursor movement is slow, at least compared to most other programs.
* The Ctrl+Alt+F1 trick has no effect on the slowness.

Any other ways to improve speed? I am willing to recompile LyX myself with 
special options, or even modify the source code to deactivate stuff that is 
inaccessible from the preferences, if someone would kindly guide me any 
suggestion on what might help.


I will try to go back to the proprietary Nvidia driver now and check out the 
nvidia-settings command given on the page I referred to above. Or perhaps the 
newer Nvidia driver will allow LyX to speed up, if I'm lucky! :-)


Best regards
Torquil Sørensen



Re: LyX slowness

2011-10-12 Thread Torquil Macdonald Sørensen

On 12/10/11 18:50, Liviu Andronic wrote:

On Wed, Oct 12, 2011 at 6:45 PM, Torquil Macdonald Sørensen
torq...@gmail.com  wrote:

Hi!

While LyX is fantastic in almost every way, it is slow... My LyX is slow at
pretty much everything. Typing, scrolling, moving the cursor around using
arrow keys, highlighting sections of texts, etc. Even for small documents.

This is strange, since my computer is quite fast. It is slow botjh when
using the proprietary NVIDIA and the open-source Nouveau graphics card
driver. I'm running LyX on an XFCE desktop on Debian Sid, using Linux 3.0.4
on a dual-core Asus laptop.


What version of LyX? Here 2.0.1 works fine on Xubuntu 10.04 64bit using Xfce.


Thanks for the information! I'm using 2.0.1, also on 64bit. I've now switched to 
the proprietary Nvidia driver, and it is noticeably faster. I would say that 
with this driver, the speed is now acceptable.


I have deactivated the automatic toolbars that appear when the cursor passes a 
mathematical equation, so that helps a bit. Even though I wanted to use the 
nouveau driver, I guess I will now stay with the proprietary driver.


Best regards
Torquil Sørensen


Re: Branches and document class

2011-10-12 Thread Torquil Macdonald Sørensen

On 12/10/11 17:07, Richard Heck wrote:

On 10/12/2011 09:33 AM, Torquil Macdonald Sørensen wrote:

On 12/10/11 15:19, Richard Heck wrote:

On 10/12/2011 08:39 AM, Torquil Macdonald Sørensen wrote:

Hi!

Is it possible to have two branches of the same lyx document, with different
document classes?


I don't think so. Document class is a global setting.


This would be useful in the following scenario (which I'm in right now): I
have a paper that is to be submitted both to the arxiv.org preprint server and
to 'journal x'. Thus I want one version with the 'article' document class, and
one with a particular document class requested by journal x.


Can't you just switch between these classes as need be?


I will have to change the document class as well as change between branches,
since there are some other differences, pertaining toe
title/author/address/etc code that need to be different as well between the
two versions. I though I could hit two birds with one stone if the
documentclass could also be affected by the branching :-)


Ahh, I see. I'll think about this for the future. I've had other ideas about
automated branch selection.


But I guess it is not possible. I can put a lyx-comment within each of the
branched content sections, reminding me which documentclass to select for each
of them. Not as elegant, though.


This could be done with some LaTeX code, too. I assume there is some variable
that you could test for, doing something like:
\ifx\definedonlyinspecialclass\undefined
% content of branch
\fi
I.e., wrap the branch in ERT with such code.


Interesting. If I understand you correctly, this suggestion involves not using 
any lyx branches, but instead using tex-programming to compile differently 
depending on the chosen document class. In that case the latex output would 
always be the same (apart from documentclass). But I think that when I submit an 
article (i..e latex code) I don't want that code in include any code that was 
really meant for other recipients.


That's why the lyx-branching is so cool. I hadn't used it before now, but I will 
from now on.


Best regards
Torquil Sørensen


Per-chapter appendices for LyX book

2011-10-12 Thread Torquil Macdonald Sørensen

Hi!

Does LyX support the Appendix package? My hunch is that lyx does not support 
this natively. Am I right?


I'm writing something (documentclass book) that needs to have per-chapter 
appendices. So the last few sections in each chapter would be appendices. I've 
found that this can be done in LyX by:


1) \usepackage{appendix} in the preamble

2) Enclose the last sections of each chapter by ERT-s:

\begin{subappendix}

and

\end{subappendix}

This works beautifully. E.g. the first appendix in chapter 3 is denoted 3.A, 
which is great!


But is it possible for me to define some sort of function to do this in LyX 
without using ERT? I image some sort of box (looking similar to lyx note), in 
which I can put several Sections. The contents of this box would then be 
effectively enclosed in a subappendices environment as described above.


Is this something that can be done by defining those custom insets that are 
accessible from the Insert menu? Or by defining a module, accessible from 
the Document settings?


Or is it possible to get per-chapter section appendices in a LyX book by some 
other, and perhaps simpler, method?


Thanks, and best regards
Torquil Sørensen


Re: Lyx, arXiv.org and \pdfoutput=1

2011-10-12 Thread Torquil Macdonald Sørensen

On 11/10/11 16:20, Richard Heck wrote:

On 10/11/2011 09:41 AM, Torquil Macdonald Sørensen wrote:

Hi!

In order to successfully submit an article that uses PDF figures to
the arXiv.org preprint server, it is necessary to have

\pdfoutput=1

within the top five lines of the document. This is necessary in order
to tell arXiv.org not to attempt any processing for generation of DVI
and PS, which will not work since the figures are in PDF format.

Is it possible make LyX include this in its LaTeX (pdflatex) export,
so I don't have to add it manually to the resulting tex-file?


No. But you could have a simple script do it.


Thanks, I'll just do it by hand.

- Torquil



Branches and document class

2011-10-12 Thread Torquil Macdonald Sørensen

Hi!

Is it possible to have two branches of the same lyx document, with different 
document classes?


This would be useful in the following scenario (which I'm in right now): I have 
a paper that is to be submitted both to the arxiv.org preprint server and to 
'journal x'. Thus I want one version with the 'article' document class, and one 
with a particular document class requested by journal x.


Best regards
Torquil Sørensen


Re: Branches and document class

2011-10-12 Thread Torquil Macdonald Sørensen

On 12/10/11 15:19, Richard Heck wrote:

On 10/12/2011 08:39 AM, Torquil Macdonald Sørensen wrote:

Hi!

Is it possible to have two branches of the same lyx document, with different
document classes?


I don't think so. Document class is a global setting.


This would be useful in the following scenario (which I'm in right now): I
have a paper that is to be submitted both to the arxiv.org preprint server and
to 'journal x'. Thus I want one version with the 'article' document class, and
one with a particular document class requested by journal x.


Can't you just switch between these classes as need be?


I will have to change the document class as well as change between branches, 
since there are some other differences, pertaining toe title/author/address/etc 
code that need to be different as well between the two versions. I though I 
could hit two birds with one stone if the documentclass could also be affected 
by the branching :-)


But I guess it is not possible. I can put a lyx-comment within each of the 
branched content sections, reminding me which documentclass to select for each 
of them. Not as elegant, though.


Thanks,
Torquil Sørensen


LyX slowness

2011-10-12 Thread Torquil Macdonald Sørensen

Hi!

While LyX is fantastic in almost every way, it is slow... My LyX is slow at 
pretty much everything. Typing, scrolling, moving the cursor around using arrow 
keys, highlighting sections of texts, etc. Even for small documents.


This is strange, since my computer is quite fast. It is slow botjh when using 
the proprietary NVIDIA and the open-source Nouveau graphics card driver. I'm 
running LyX on an XFCE desktop on Debian Sid, using Linux 3.0.4 on a dual-core 
Asus laptop.


It is not extremely slow, but slow enough to affect the user experience 
negatively. And I'm not one of those users that need everything to be 
lightning-fast :-) It is sort of like running modern programs on an old computer.


I have gone through these points:
http://wiki.lyx.org/Tips/PerformanceIssues

My comments on the points raised there:

* My LyX uses more CPU than X. Total CPU usage is less than 100%.
* I don't use the outliner or source view.
* Cursor movement is slow, at least compared to most other programs.
* The Ctrl+Alt+F1 trick has no effect on the slowness.

Any other ways to improve speed? I am willing to recompile LyX myself with 
special options, or even modify the source code to deactivate stuff that is 
inaccessible from the preferences, if someone would kindly guide me any 
suggestion on what might help.


I will try to go back to the proprietary Nvidia driver now and check out the 
"nvidia-settings" command given on the page I referred to above. Or perhaps the 
newer Nvidia driver will allow LyX to speed up, if I'm lucky! :-)


Best regards
Torquil Sørensen



Re: LyX slowness

2011-10-12 Thread Torquil Macdonald Sørensen

On 12/10/11 18:50, Liviu Andronic wrote:

On Wed, Oct 12, 2011 at 6:45 PM, Torquil Macdonald Sørensen
<torq...@gmail.com>  wrote:

Hi!

While LyX is fantastic in almost every way, it is slow... My LyX is slow at
pretty much everything. Typing, scrolling, moving the cursor around using
arrow keys, highlighting sections of texts, etc. Even for small documents.

This is strange, since my computer is quite fast. It is slow botjh when
using the proprietary NVIDIA and the open-source Nouveau graphics card
driver. I'm running LyX on an XFCE desktop on Debian Sid, using Linux 3.0.4
on a dual-core Asus laptop.


What version of LyX? Here 2.0.1 works fine on Xubuntu 10.04 64bit using Xfce.


Thanks for the information! I'm using 2.0.1, also on 64bit. I've now switched to 
the proprietary Nvidia driver, and it is noticeably faster. I would say that 
with this driver, the speed is now acceptable.


I have deactivated the automatic toolbars that appear when the cursor passes a 
mathematical equation, so that helps a bit. Even though I wanted to use the 
nouveau driver, I guess I will now stay with the proprietary driver.


Best regards
Torquil Sørensen


Re: Branches and document class

2011-10-12 Thread Torquil Macdonald Sørensen

On 12/10/11 17:07, Richard Heck wrote:

On 10/12/2011 09:33 AM, Torquil Macdonald Sørensen wrote:

On 12/10/11 15:19, Richard Heck wrote:

On 10/12/2011 08:39 AM, Torquil Macdonald Sørensen wrote:

Hi!

Is it possible to have two branches of the same lyx document, with different
document classes?


I don't think so. Document class is a global setting.


This would be useful in the following scenario (which I'm in right now): I
have a paper that is to be submitted both to the arxiv.org preprint server and
to 'journal x'. Thus I want one version with the 'article' document class, and
one with a particular document class requested by journal x.


Can't you just switch between these classes as need be?


I will have to change the document class as well as change between branches,
since there are some other differences, pertaining toe
title/author/address/etc code that need to be different as well between the
two versions. I though I could hit two birds with one stone if the
documentclass could also be affected by the branching :-)


Ahh, I see. I'll think about this for the future. I've had other ideas about
automated branch selection.


But I guess it is not possible. I can put a lyx-comment within each of the
branched content sections, reminding me which documentclass to select for each
of them. Not as elegant, though.


This could be done with some LaTeX code, too. I assume there is some variable
that you could test for, doing something like:
\ifx\definedonlyinspecialclass\undefined
% content of branch
\fi
I.e., wrap the branch in ERT with such code.


Interesting. If I understand you correctly, this suggestion involves not using 
any lyx branches, but instead using tex-programming to compile differently 
depending on the chosen document class. In that case the latex output would 
always be the same (apart from documentclass). But I think that when I submit an 
article (i..e latex code) I don't want that code in include any code that was 
really meant for other recipients.


That's why the lyx-branching is so cool. I hadn't used it before now, but I will 
from now on.


Best regards
Torquil Sørensen


Per-chapter appendices for LyX book

2011-10-12 Thread Torquil Macdonald Sørensen

Hi!

Does LyX support the Appendix package? My hunch is that lyx does not support 
this natively. Am I right?


I'm writing something (documentclass "book") that needs to have per-chapter 
appendices. So the last few sections in each chapter would be appendices. I've 
found that this can be done in LyX by:


1) \usepackage{appendix} in the preamble

2) Enclose the last sections of each chapter by ERT-s:

\begin{subappendix}

and

\end{subappendix}

This works beautifully. E.g. the first appendix in chapter 3 is denoted 3.A, 
which is great!


But is it possible for me to define some sort of function to do this in LyX 
without using ERT? I image some sort of box (looking similar to "lyx note"), in 
which I can put several Sections. The contents of this box would then be 
effectively enclosed in a subappendices environment as described above.


Is this something that can be done by defining those "custom insets" that are 
accessible from the "Insert" menu? Or by defining a "module", accessible from 
the Document settings?


Or is it possible to get per-chapter section appendices in a LyX book by some 
other, and perhaps simpler, method?


Thanks, and best regards
Torquil Sørensen


Lyx, arXiv.org and \pdfoutput=1

2011-10-11 Thread Torquil Macdonald Sørensen

Hi!

In order to successfully submit an article that uses PDF figures to the 
arXiv.org preprint server, it is necessary to have


\pdfoutput=1

within the top five lines of the document. This is necessary in order to tell 
arXiv.org not to attempt any processing for generation of DVI and PS, which will 
not work since the figures are in PDF format.


Is it possible make LyX include this in its LaTeX (pdflatex) export, so I don't 
have to add it manually to the resulting tex-file?


It seems that anything added to the preamble by using the Document settings 
appears further down. Not within the first five lines.


Best regards
Torquil Sørensen


Lyx, arXiv.org and \pdfoutput=1

2011-10-11 Thread Torquil Macdonald Sørensen

Hi!

In order to successfully submit an article that uses PDF figures to the 
arXiv.org preprint server, it is necessary to have


\pdfoutput=1

within the top five lines of the document. This is necessary in order to tell 
arXiv.org not to attempt any processing for generation of DVI and PS, which will 
not work since the figures are in PDF format.


Is it possible make LyX include this in its LaTeX (pdflatex) export, so I don't 
have to add it manually to the resulting tex-file?


It seems that anything added to the preamble by using the Document settings 
appears further down. Not within the first five lines.


Best regards
Torquil Sørensen


Lyx, arXiv.org and \pdfoutput=1

2011-10-11 Thread Torquil Macdonald Sørensen

Hi!

In order to successfully submit an article that uses PDF figures to the 
arXiv.org preprint server, it is necessary to have


\pdfoutput=1

within the top five lines of the document. This is necessary in order to tell 
arXiv.org not to attempt any processing for generation of DVI and PS, which will 
not work since the figures are in PDF format.


Is it possible make LyX include this in its LaTeX (pdflatex) export, so I don't 
have to add it manually to the resulting tex-file?


It seems that anything added to the preamble by using the Document settings 
appears further down. Not within the first five lines.


Best regards
Torquil Sørensen


Re: submitting paper in latex (tex) format

2011-08-24 Thread Torquil Macdonald Sørensen

On 24/08/11 05:26, Waluyo Adi Siswanto wrote:

Thanks Eisa , also Ernesto

Yes, all citation links are now shown with the correct list of references.
It means nothings wrong with the tex file generated by lyx.
I can submit it with other figures and bib file.

Best regards
waluyo


Actually, I believe they prefer to have the *.tex and *.bbl (not the *.bib), as 
well as files containing figures etc. But you'll see all that in the detailed 
instructions.


Best regards
Torquil Sørensen


Re: submitting paper in latex (tex) format

2011-08-24 Thread Torquil Macdonald Sørensen

On 24/08/11 13:08, Waluyo Adi Siswanto wrote:

Actually, I believe they prefer to have the *.tex and *.bbl (not the *.bib),
as well as files containing figures etc. But you'll see all that in the
detailed instructions.



I think you are correct. My files could been processed by elsevier
electronic system, the generated pdf prints the tex sources.
How can I get bbl. I always use bib file (from JabRef). Any link
information to learn this?


Hi!

The *.bbl should be automatically created by bibtex, so after doing pdflatex; 
bibtex; pdflatex; pdflatex, you should have the required *.bbl file in your 
working directory, if you look carefully ;-)


Btw, recently I also had problems submitting to Elsevier. For some reason they 
couldn't process my manuscript using pdflatex. However, it worked fine on 
arxiv.org... I notified them about the problem, and they ended up asking me for 
a PDF instead. :-)


Torquil


Re: submitting paper in latex (tex) format

2011-08-24 Thread Torquil Macdonald Sørensen

On 24/08/11 05:26, Waluyo Adi Siswanto wrote:

Thanks Eisa , also Ernesto

Yes, all citation links are now shown with the correct list of references.
It means nothings wrong with the tex file generated by lyx.
I can submit it with other figures and bib file.

Best regards
waluyo


Actually, I believe they prefer to have the *.tex and *.bbl (not the *.bib), as 
well as files containing figures etc. But you'll see all that in the detailed 
instructions.


Best regards
Torquil Sørensen


Re: submitting paper in latex (tex) format

2011-08-24 Thread Torquil Macdonald Sørensen

On 24/08/11 13:08, Waluyo Adi Siswanto wrote:

Actually, I believe they prefer to have the *.tex and *.bbl (not the *.bib),
as well as files containing figures etc. But you'll see all that in the
detailed instructions.



I think you are correct. My files could been processed by elsevier
electronic system, the generated pdf prints the tex sources.
How can I get bbl. I always use bib file (from JabRef). Any link
information to learn this?


Hi!

The *.bbl should be automatically created by bibtex, so after doing pdflatex; 
bibtex; pdflatex; pdflatex, you should have the required *.bbl file in your 
working directory, if you look carefully ;-)


Btw, recently I also had problems submitting to Elsevier. For some reason they 
couldn't process my manuscript using pdflatex. However, it worked fine on 
arxiv.org... I notified them about the problem, and they ended up asking me for 
a PDF instead. :-)


Torquil


Re: submitting paper in latex (tex) format

2011-08-24 Thread Torquil Macdonald Sørensen

On 24/08/11 05:26, Waluyo Adi Siswanto wrote:

Thanks Eisa , also Ernesto

Yes, all citation links are now shown with the correct list of references.
It means nothings wrong with the tex file generated by lyx.
I can submit it with other figures and bib file.

Best regards
waluyo


Actually, I believe they prefer to have the *.tex and *.bbl (not the *.bib), as 
well as files containing figures etc. But you'll see all that in the detailed 
instructions.


Best regards
Torquil Sørensen


Re: submitting paper in latex (tex) format

2011-08-24 Thread Torquil Macdonald Sørensen

On 24/08/11 13:08, Waluyo Adi Siswanto wrote:

Actually, I believe they prefer to have the *.tex and *.bbl (not the *.bib),
as well as files containing figures etc. But you'll see all that in the
detailed instructions.



I think you are correct. My files could been processed by elsevier
electronic system, the generated pdf prints the tex sources.
How can I get bbl. I always use bib file (from JabRef). Any link
information to learn this?


Hi!

The *.bbl should be automatically created by bibtex, so after doing "pdflatex; 
bibtex; pdflatex; pdflatex", you should have the required *.bbl file in your 
working directory, if you look carefully ;-)


Btw, recently I also had problems submitting to Elsevier. For some reason they 
couldn't process my manuscript using pdflatex. However, it worked fine on 
arxiv.org... I notified them about the problem, and they ended up asking me for 
a PDF instead. :-)


Torquil


Re: Guidance in starting to use LyX/LaTex

2011-07-13 Thread Torquil Macdonald Sørensen

On 13/07/11 16:38, Anders Host-Madsen wrote:

My ability to make documents look the way I want them to is limited.


In my personal opinion, this is the weakness of LaTeX/LyX.
LaTeX is great when you write for a medium
with a defined formatting, e.g., a journal, and they give you a
style file to use. Then you just fill out the
contents. But if you a free to format your document, and have
specific ideas on how it should look like, it's
not that convenient. I found the easiest way is to use
LaTeX packages such as enumitem, fancyhdr, and
titlesec. Once you have formatted one document, you
can use it as template for following documents.



Not to imply that LyX is lacking in any way in this area (simply because I don't 
know), but I know that LyX is at least great for people like me, who are 
completely content to use a basic/default/ordinary LaTeX formatting :-) I just 
use it in order to have the power of LaTeX with less difficulty and better 
readability while I write.


So I'm glad that I can automatically get a great looking document without having 
to do any formatting work.


- Torquil


Re: Guidance in starting to use LyX/LaTex

2011-07-13 Thread Torquil Macdonald Sørensen

On 13/07/11 16:38, Anders Host-Madsen wrote:

My ability to make documents look the way I want them to is limited.


In my personal opinion, this is the weakness of LaTeX/LyX.
LaTeX is great when you write for a medium
with a defined formatting, e.g., a journal, and they give you a
style file to use. Then you just fill out the
contents. But if you a free to format your document, and have
specific ideas on how it should look like, it's
not that convenient. I found the easiest way is to use
LaTeX packages such as enumitem, fancyhdr, and
titlesec. Once you have formatted one document, you
can use it as template for following documents.



Not to imply that LyX is lacking in any way in this area (simply because I don't 
know), but I know that LyX is at least great for people like me, who are 
completely content to use a basic/default/ordinary LaTeX formatting :-) I just 
use it in order to have the power of LaTeX with less difficulty and better 
readability while I write.


So I'm glad that I can automatically get a great looking document without having 
to do any formatting work.


- Torquil


Re: Guidance in starting to use LyX/LaTex

2011-07-13 Thread Torquil Macdonald Sørensen

On 13/07/11 16:38, Anders Host-Madsen wrote:

My ability to make documents look the way I want them to is limited.


In my personal opinion, this is the weakness of LaTeX/LyX.
LaTeX is great when you write for a medium
with a defined formatting, e.g., a journal, and they give you a
style file to use. Then you just fill out the
contents. But if you a free to format your document, and have
specific ideas on how it should look like, it's
not that convenient. I found the easiest way is to use
LaTeX packages such as enumitem, fancyhdr, and
titlesec. Once you have formatted one document, you
can use it as template for following documents.



Not to imply that LyX is lacking in any way in this area (simply because I don't 
know), but I know that LyX is at least great for people like me, who are 
completely content to use a basic/default/ordinary LaTeX formatting :-) I just 
use it in order to have the power of LaTeX with less difficulty and better 
readability while I write.


So I'm glad that I can automatically get a great looking document without having 
to do any "formatting work".


- Torquil


Re: Cross ref for subfigures using only subfigure letter

2011-07-03 Thread Torquil Macdonald Sørensen

On 03/07/11 02:37, Richard Heck wrote:

On 07/02/2011 08:57 AM, Torquil Macdonald Sørensen wrote:

Hi!

Is it possible to cross-reference a subfigure from the main figure caption,
and only get the subfigure letter (instead of the figure number + subfigure
letter) in the text where the cross-reference was made?

I have included a LyX document using a figure containing two subfigures. In
the figure text I'd like to refer to each subfigure using only the subfigure
letter...

Is this possible in LyX?


Yes, but the real answer is: It is of course possible in LaTeX, but not
necessarily easily, and anything you can do in LaTeX you can do in LyX. That
said, the reference is auto-generated, in the sense that the reference gives you
whatever the referred to item was, in this case, including the figure number. So
you have to write some LaTeX to strip that off. Or else just do it the dumb way,
and write: (a) or (b) in your source.

Richard


Thanks. Yeah, I've seen it many times i scientific articles, and wondered if 
they just wrote the letters themselves, or if they somehow managed to make LaTeX 
do it like that. Actually, I think the next time I see it, I will have a look at 
the latex source of the article, if available.


- Torquil


Re: Cross ref for subfigures using only subfigure letter

2011-07-03 Thread Torquil Macdonald Sørensen

On 03/07/11 02:37, Richard Heck wrote:

On 07/02/2011 08:57 AM, Torquil Macdonald Sørensen wrote:

Hi!

Is it possible to cross-reference a subfigure from the main figure caption,
and only get the subfigure letter (instead of the figure number + subfigure
letter) in the text where the cross-reference was made?

I have included a LyX document using a figure containing two subfigures. In
the figure text I'd like to refer to each subfigure using only the subfigure
letter...

Is this possible in LyX?


Yes, but the real answer is: It is of course possible in LaTeX, but not
necessarily easily, and anything you can do in LaTeX you can do in LyX. That
said, the reference is auto-generated, in the sense that the reference gives you
whatever the referred to item was, in this case, including the figure number. So
you have to write some LaTeX to strip that off. Or else just do it the dumb way,
and write: (a) or (b) in your source.

Richard



Hi again! Just found out that it is very easily accomplished in LaTeX, using 
\subref{} instead of \ref{}. So I've done that using ERT in LyX.


For reference to others, there is a whole discussion about doing it in LyX here:
http://comments.gmane.org/gmane.editors.lyx.general/69677

Torquil


Re: Cross ref for subfigures using only subfigure letter

2011-07-03 Thread Torquil Macdonald Sørensen

On 03/07/11 02:37, Richard Heck wrote:

On 07/02/2011 08:57 AM, Torquil Macdonald Sørensen wrote:

Hi!

Is it possible to cross-reference a subfigure from the main figure caption,
and only get the subfigure letter (instead of the figure number + subfigure
letter) in the text where the cross-reference was made?

I have included a LyX document using a figure containing two subfigures. In
the figure text I'd like to refer to each subfigure using only the subfigure
letter...

Is this possible in LyX?


Yes, but the real answer is: It is of course possible in LaTeX, but not
necessarily easily, and anything you can do in LaTeX you can do in LyX. That
said, the reference is auto-generated, in the sense that the reference gives you
whatever the referred to item was, in this case, including the figure number. So
you have to write some LaTeX to strip that off. Or else just do it the dumb way,
and write: (a) or (b) in your source.

Richard


Thanks. Yeah, I've seen it many times i scientific articles, and wondered if 
they just wrote the letters themselves, or if they somehow managed to make LaTeX 
do it like that. Actually, I think the next time I see it, I will have a look at 
the latex source of the article, if available.


- Torquil


Re: Cross ref for subfigures using only subfigure letter

2011-07-03 Thread Torquil Macdonald Sørensen

On 03/07/11 02:37, Richard Heck wrote:

On 07/02/2011 08:57 AM, Torquil Macdonald Sørensen wrote:

Hi!

Is it possible to cross-reference a subfigure from the main figure caption,
and only get the subfigure letter (instead of the figure number + subfigure
letter) in the text where the cross-reference was made?

I have included a LyX document using a figure containing two subfigures. In
the figure text I'd like to refer to each subfigure using only the subfigure
letter...

Is this possible in LyX?


Yes, but the real answer is: It is of course possible in LaTeX, but not
necessarily easily, and anything you can do in LaTeX you can do in LyX. That
said, the reference is auto-generated, in the sense that the reference gives you
whatever the referred to item was, in this case, including the figure number. So
you have to write some LaTeX to strip that off. Or else just do it the dumb way,
and write: (a) or (b) in your source.

Richard



Hi again! Just found out that it is very easily accomplished in LaTeX, using 
\subref{} instead of \ref{}. So I've done that using ERT in LyX.


For reference to others, there is a whole discussion about doing it in LyX here:
http://comments.gmane.org/gmane.editors.lyx.general/69677

Torquil


  1   2   >