Re: replace upper case acronyms with small caps case

2011-10-12 Thread PhilipPirrip

On 10/13/2011 12:17 AM, e-letter wrote:


open lyx file in text editor
replace 'ENIM' with 'textsc{enim}'



If you want to mess up with editing the .lyx file, you should know that 
the replacement should be


\shape smallcaps
enim
\shape default





But, as I said in a previous post, just use advanced S&R, and in 
"Replace with" :

either
open an "ERT", with Ctrl-L, for that's where LaTeX commands should be, 
and inside the inset type \textsc{...}

or
change the text style of your acronym to small caps (in "Replace with:", 
as it accepts even formatting)




Re: replace upper case acronyms with small caps case

2011-10-12 Thread e-letter
On 12/10/2011, e-letter  wrote:
...
> replace 'ENIM' with 'textsc{enim}'

My typing mistake, the correct replacement was '\textsc{enim}'; sorry.


Re: replace upper case acronyms with small caps case

2011-10-12 Thread e-letter
On 12/10/2011, Liviu Andronic  wrote:
> On Wed, Oct 12, 2011 at 11:24 PM, e-letter  wrote:
>> On 12/10/2011, Liviu Andronic  wrote:
>>> On Wed, Oct 12, 2011 at 10:36 PM, e-letter  wrote:
 Readers,

 Is it possible to select an acronym e.g. ABC and replace all copies in
 a document with the latex code \textsc{abc}?

>>> It should be possible. Look into advanced search & replace. Otherwise,
>>> use regexp and a text editor.
>>
>> Tried to use advanced find and replace; the result was \textsc{abc} in
>> the pdf document!
>>
>> Then tried to open the lyx file using a text editor and replaced using
>> the editor. The result was that the entire acronym disappeared!
>>
>> Have just realised that after export to latex plain, unable to redo so
>> will have to reinsert the acronyms manually. This is bad.
>>
> Can't you revert to a backup?

Fortunately, svn saved me.

>
> Moreover, you're not giving us enough information. I cannot really
> understand what you are doing, and what goes wrong. If you provided a
> small example exhibiting your problem it might be easier.
>

Copy the following text into a new lyx file:

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad
minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad
minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad
minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad
minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.

replace 'enim' with 'ENIM'
close lyx
open lyx file in text editor
replace 'ENIM' with 'textsc{enim}'
save file and close editor
open lyx file in lyx
the following text where 'enim' was (but has disappeared) has also disappeared:

ad minim veniam, quis nostrud exercitation ullamco laboris nisi


Re: replace upper case acronyms with small caps case

2011-10-12 Thread Liviu Andronic
On Wed, Oct 12, 2011 at 11:24 PM, e-letter  wrote:
> On 12/10/2011, Liviu Andronic  wrote:
>> On Wed, Oct 12, 2011 at 10:36 PM, e-letter  wrote:
>>> Readers,
>>>
>>> Is it possible to select an acronym e.g. ABC and replace all copies in
>>> a document with the latex code \textsc{abc}?
>>>
>> It should be possible. Look into advanced search & replace. Otherwise,
>> use regexp and a text editor.
>
> Tried to use advanced find and replace; the result was \textsc{abc} in
> the pdf document!
>
> Then tried to open the lyx file using a text editor and replaced using
> the editor. The result was that the entire acronym disappeared!
>
> Have just realised that after export to latex plain, unable to redo so
> will have to reinsert the acronyms manually. This is bad.
>
Can't you revert to a backup?

Moreover, you're not giving us enough information. I cannot really
understand what you are doing, and what goes wrong. If you provided a
small example exhibiting your problem it might be easier.

Liviu


-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: Classic Thesis Bibliography in child document

2011-10-12 Thread PhilipPirrip

On 10/12/2011 07:44 PM, Julien Rioux wrote:

Actually, if the setting for default master document is set in the
document settings of Abstract.lyx, then you *can* simply open
Abstract.lyx and expect LyX to know everything. LyX opens the master
document to get all the information.



Of course. But in ClassicThesis template the things are not set as such, 
because users often change the name of the master file, not wanting to 
call it ClassicThesis.lyx.

Once they decide on the name, every child can have its master.



Re: Citation Style (name year)

2011-10-12 Thread christopher sibona
Richard Heck  comcast.net> writes:

> 
> On 10/12/2011 01:22 PM, christopher sibona wrote:
> > I need to use a somewhat non-standard citation style in a document where it
 is
> > of the form ( ) i.e., NO comma between the name and year. The
> > bibliography setting citation style is Natbib with Author-year as the
 parameter.
> > The text in the document shows (, ) currently.
> >
> > Is there a way to add a new citation style format? The formatter currently
 has
> > several options including   but without any parenthesis. 
> >
> Look at the natbib documentation. I'm pretty sure there is some option
> you can use to control the separator here.
> 
> Richard
> 
> 


Thanks - that was the reference I needed. 
I added the following line to the preamble.
\bibpunct{(}{)}{;}{x}{}{,}



Re: replace upper case acronyms with small caps case

2011-10-12 Thread e-letter
On 12/10/2011, e-letter  wrote:
> On 12/10/2011, Liviu Andronic  wrote:
>> On Wed, Oct 12, 2011 at 10:36 PM, e-letter  wrote:
>>> Readers,
>>>
>>> Is it possible to select an acronym e.g. ABC and replace all copies in
>>> a document with the latex code \textsc{abc}?
>>>
>> It should be possible. Look into advanced search & replace. Otherwise,
>> use regexp and a text editor.
>
> Tried to use advanced find and replace; the result was \textsc{abc} in
> the pdf document!
>
> Then tried to open the lyx file using a text editor and replaced using
> the editor. The result was that the entire acronym disappeared!
>

I have now noticed that not only the acronym disappears but a random
small quantity of words after the acronym (seems about 3-5 words) also
disappear! Very bad!


Re: Citation Style (name year)

2011-10-12 Thread Richard Heck
On 10/12/2011 01:22 PM, christopher sibona wrote:
> I need to use a somewhat non-standard citation style in a document where it is
> of the form ( ) i.e., NO comma between the name and year. The
> bibliography setting citation style is Natbib with Author-year as the 
> parameter.
> The text in the document shows (, ) currently.
>
> Is there a way to add a new citation style format? The formatter currently has
> several options including   but without any parenthesis. 
>
Look at the natbib documentation. I'm pretty sure there is some option
you can use to control the separator here.

Richard



Re: replace upper case acronyms with small caps case

2011-10-12 Thread e-letter
On 12/10/2011, Liviu Andronic  wrote:
> On Wed, Oct 12, 2011 at 10:36 PM, e-letter  wrote:
>> Readers,
>>
>> Is it possible to select an acronym e.g. ABC and replace all copies in
>> a document with the latex code \textsc{abc}?
>>
> It should be possible. Look into advanced search & replace. Otherwise,
> use regexp and a text editor.

Tried to use advanced find and replace; the result was \textsc{abc} in
the pdf document!

Then tried to open the lyx file using a text editor and replaced using
the editor. The result was that the entire acronym disappeared!

Have just realised that after export to latex plain, unable to redo so
will have to reinsert the acronyms manually. This is bad.


Re: replace upper case acronyms with small caps case

2011-10-12 Thread Liviu Andronic
On Wed, Oct 12, 2011 at 10:36 PM, e-letter  wrote:
> Readers,
>
> Is it possible to select an acronym e.g. ABC and replace all copies in
> a document with the latex code \textsc{abc}?
>
It should be possible. Look into advanced search & replace. Otherwise,
use regexp and a text editor.
Liviu


> Thanks
>
> lyx200
>



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


replace upper case acronyms with small caps case

2011-10-12 Thread e-letter
Readers,

Is it possible to select an acronym e.g. ABC and replace all copies in
a document with the latex code \textsc{abc}?

Thanks

lyx200


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: Classic Thesis Bibliography in child document

2011-10-12 Thread Gian Maria Niccolò Benucci
Julien,

You saved me! Now LyX let me insert the references also in the child
documents.
Thank you very very much for your precious advice!

Gian


On 12 October 2011 19:44, Julien Rioux  wrote:

> On 12/10/2011 7:32 PM, PhilipPirrip wrote:
>
>> On 10/12/2011 05:36 PM, Gian Maria Niccolò Benucci wrote:
>>
>>> If in Classic Thesis style the master document is report(KOMA-script)
>>> then I have no explanation for why do not work for me... also if I
>>> included the Bib file in the master doc (ClassicThesis.lyx) I am not
>>> able to insert reference in the child document (e.g., Abstract.lyx).
>>> Any other test I could do?
>>> Thanks a lot,
>>>
>>
>> Which version of ClassicThesis for LyX are you using?
>>
>> Are you sure you first open ClassicThesis.lyx, and from there all the
>> chapter files?
>> You can not just open Abstract.lyx and expect LyX to know what other
>> files are the part of the bundle.
>>
>>
>>
> Actually, if the setting for default master document is set in the document
> settings of Abstract.lyx, then you *can* simply open Abstract.lyx and expect
> LyX to know everything. LyX opens the master document to get all the
> information.
>
> Let me restate how to set this setting: In your child doc, use the menu
> Document > Settings to open the dialog. On the panel named Document Class,
> look for the checkbox "select default master document" and the corresponding
> line below it. Make sure it points to your master doc, which includes the
> bibtex bibliography.
>
> Hope this helps,
> Julien
>
>


Re: Classic Thesis Bibliography in child document

2011-10-12 Thread Julien Rioux

On 12/10/2011 7:32 PM, PhilipPirrip wrote:

On 10/12/2011 05:36 PM, Gian Maria Niccolò Benucci wrote:

If in Classic Thesis style the master document is report(KOMA-script)
then I have no explanation for why do not work for me... also if I
included the Bib file in the master doc (ClassicThesis.lyx) I am not
able to insert reference in the child document (e.g., Abstract.lyx).
Any other test I could do?
Thanks a lot,


Which version of ClassicThesis for LyX are you using?

Are you sure you first open ClassicThesis.lyx, and from there all the
chapter files?
You can not just open Abstract.lyx and expect LyX to know what other
files are the part of the bundle.




Actually, if the setting for default master document is set in the 
document settings of Abstract.lyx, then you *can* simply open 
Abstract.lyx and expect LyX to know everything. LyX opens the master 
document to get all the information.


Let me restate how to set this setting: In your child doc, use the menu 
Document > Settings to open the dialog. On the panel named Document 
Class, look for the checkbox "select default master document" and the 
corresponding line below it. Make sure it points to your master doc, 
which includes the bibtex bibliography.


Hope this helps,
Julien



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


Re: Classic Thesis Bibliography in child document

2011-10-12 Thread PhilipPirrip

On 10/12/2011 05:36 PM, Gian Maria Niccolò Benucci wrote:

If in Classic Thesis style the master document is report(KOMA-script)
then I have no explanation for why do not work for me... also if I
included the Bib file in the master doc (ClassicThesis.lyx) I am not
able to insert reference in the child document (e.g., Abstract.lyx).
Any other test I could do?
Thanks a lot,


Which version of ClassicThesis for LyX are you using?

Are you sure you first open ClassicThesis.lyx, and from there all the 
chapter files?
You can not just open Abstract.lyx and expect LyX to know what other 
files are the part of the bundle.




Citation Style (name year)

2011-10-12 Thread christopher sibona
I need to use a somewhat non-standard citation style in a document where it is
of the form ( ) i.e., NO comma between the name and year. The
bibliography setting citation style is Natbib with Author-year as the parameter.
The text in the document shows (, ) currently.

Is there a way to add a new citation style format? The formatter currently has
several options including   but without any parenthesis. 

Thanks, in advance.



Re: LyX slowness

2011-10-12 Thread Liviu Andronic
On Wed, Oct 12, 2011 at 7:12 PM, Torquil Macdonald Sørensen
 wrote:
>> 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
>
Yes, in my experience the automatic math toolbars make entering and
leaving math quite slow. So far it was always acceptable for me, but
in a past life with a less fancy computer it was making life more
difficult.

Glad you solved it. Regards
Liviu


> the nouveau driver, I guess I will now stay with the proprietary driver.
>
> Best regards
> Torquil Sørensen
>



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


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
  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: LyX slowness

2011-10-12 Thread Liviu Andronic
On Wed, Oct 12, 2011 at 6:45 PM, Torquil Macdonald Sørensen
 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.

Liviu


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



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


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: mathdots.sty not found in Math-Help-file

2011-10-12 Thread Uwe Stöhr

Am 19.09.2011 11:09, schrieb Wolfgang Engelmann:


I wanted to look at the pdf file of the Math-Help-File of Lyx 2.0.1 but get
this error:

! LaTeX Error: File `mathdots.sty' not found.

How do I proceed?


Remove the complete table row whose first cell is \iddots.

Does the file then compile or do you get further errors?

thanks and regards
Uwe


Re: Classic Thesis Bibliography in child document

2011-10-12 Thread Gian Maria Niccolò Benucci
If in Classic Thesis style the master document is report(KOMA-script) then I
have no explanation for why do not work for me... also if I included the Bib
file in the master doc (ClassicThesis.lyx) I am not able to insert reference
in the child document (e.g., Abstract.lyx).
Any other test I could do?
Thanks a lot,

Gian


In the child document, make sure that Document > Settings > Document Class
shows the correct master document.

In the master document, insert your BibTeX database in a BibTeX inset.

You can now insert citations using the citation keys provided by your BibTeX
database, also in the child doc. If you do not see this behavior, you would
be experiencing a bug, so please provide more info.

Cheers,

Julien


Re: Branches and document class

2011-10-12 Thread Richard Heck

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.

Richard



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


Re: Branches and document class

2011-10-12 Thread Richard Heck

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?

Richard



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



"language" settings inconsistent with the user's guide

2011-10-12 Thread Olivier Ripoll

Hi,

I'm using Uwe's binary (LyX 2.0.1 on Win7 64bits, Miktex 2.9), so 
perhaps it's the cause of this inconsistency.


About the Document-> Settings-> Language, section B9 of the User's guide 
states:

---
Default is the package babel.

Automatic selects the most suitable language package for the view/export 
format you will use. For example for the XeTeX formats the package 
polyglossia will be used instead of babel.

---

However, when I use Default or Automatic, generating the pdf with XeTeX 
result in failures, with an error message mentionning polyglossia(*).


If I switch to "Always Babel", compilation works fine. So I have the 
impression that either the documentation is wrong or that LyX does not 
do as expected.


Best regards,

Olivier.

(*) It seems XeTeX and polyglossia have had issues in the past weeks, 
but may have been fixed very recently. But that's besides the point.




SV: Footnotes in longtables

2011-10-12 Thread Ingar Pareliussen
Hi

> -Opprinnelig melding-
> Fra: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] På vegne
> av Lastalda Felina
> Sendt: 10. oktober 2011 11:03
> Til: lyx-users@lists.lyx.org
> Emne: Footnotes in longtables
> 
> Hello!
> 
> I'm trying to insert a footnote in a longtable.
> 
> The embedded objects manual as well as several sources on the web tell
> me this should not be a problem, or that's how I read them.
> But when I do it, the little number shows up but the footnote text
> doesn't. (Footnotes outside the table work fine, though!)

You can not put a footnote in the repeated (first)header in a longtable.
If you do LateX would have to put one at each page, and instead removes
the whole thing. 

If you place the footnote elsewhere in the table it works.

Maybe you could use some of the suggestion on these pages to
make things work for you, I have not tried :).
http://wiki.lyx.org/LyX/Tables
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=footintab

HTH,
Ingar Pareliussen



Re: Footnotes in longtables

2011-10-12 Thread Rainer M Krug
OK - here is a small table, everything default, with that behavior.

You can check from here, so the problem is not your document.

Check http://www.latex-community.org/forum/viewtopic.php?f=5&t=558&p=1903

Cheers,

Rainer

On Wed, Oct 12, 2011 at 10:24 AM, Rainer M Krug  wrote:

>
>
> On Tue, Oct 11, 2011 at 9:02 PM, Julien Rioux 
> wrote:
>
>> On 10/10/2011 11:02 AM, Lastalda Felina wrote:
>>
>>> Hello!
>>>
>>> I'm trying to insert a footnote in a longtable.
>>>
>>> The embedded objects manual as well as several sources on the web tell
>>> me this should not be a problem, or that's how I read them.
>>> But when I do it, the little number shows up but the footnote text
>>> doesn't. (Footnotes outside the table work fine, though!)
>>>
>>> Can anyone help me, please?
>>>
>>> I can supply a minimal file with the problem, but as I've sent out
>>> this question a week ago with the minimal file attached and got no
>>> replies, I'm afraid that the list didn't like me attaching a file. But
>>> I'm happy to send it upon request.
>>>
>>> Thank you!
>>> Lastalda
>>>
>>>
>> The email came through and the attachment as well. Unfortunately it seems
>> that the set of people that read your message and the set of people that
>> know the answer to your question do not overlap. Sorry, hopefully someone
>> knows the answer!
>>
>
> If you can't find the answer here, try one of the LaTeX mailing lists.
>
> Also, start small: normal document class, one longtable with footnote -
> does it work? Change the document class - does it still work? And continue
> until you have your sample document.
>
> If you report back where it fails, you are more likely to find an answer.
>
> Cheers,
>
> Rainer
>
>>
>> --
>> Julien
>>
>>
>
>
> --
> Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
> UCT), Dipl. Phys. (Germany)
>
> Centre of Excellence for Invasion Biology
> Stellenbosch University
> South Africa
>
> Tel :   +33 - (0)9 53 10 27 44
> Cell:   +33 - (0)6 85 62 59 98
> Fax (F):   +33 - (0)9 58 10 27 44
>
> Fax (D):+49 - (0)3 21 21 25 22 44
>
> email:  rai...@krugs.de
>
> Skype:  RMkrug
>
>


-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax (F):   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug


longtableFootnote.lyx
Description: application/lyx


Re: Footnotes in longtables

2011-10-12 Thread Rainer M Krug
On Tue, Oct 11, 2011 at 9:02 PM, Julien Rioux wrote:

> On 10/10/2011 11:02 AM, Lastalda Felina wrote:
>
>> Hello!
>>
>> I'm trying to insert a footnote in a longtable.
>>
>> The embedded objects manual as well as several sources on the web tell
>> me this should not be a problem, or that's how I read them.
>> But when I do it, the little number shows up but the footnote text
>> doesn't. (Footnotes outside the table work fine, though!)
>>
>> Can anyone help me, please?
>>
>> I can supply a minimal file with the problem, but as I've sent out
>> this question a week ago with the minimal file attached and got no
>> replies, I'm afraid that the list didn't like me attaching a file. But
>> I'm happy to send it upon request.
>>
>> Thank you!
>> Lastalda
>>
>>
> The email came through and the attachment as well. Unfortunately it seems
> that the set of people that read your message and the set of people that
> know the answer to your question do not overlap. Sorry, hopefully someone
> knows the answer!
>

If you can't find the answer here, try one of the LaTeX mailing lists.

Also, start small: normal document class, one longtable with footnote - does
it work? Change the document class - does it still work? And continue until
you have your sample document.

If you report back where it fails, you are more likely to find an answer.

Cheers,

Rainer

>
> --
> Julien
>
>


-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax (F):   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug