Re: Koma-script letter error on Windows but not on Mac

2008-08-19 Thread Graham Smith

Daniel

On 18 Aug 2008, at 17:32, Daniel Lohmann wrote:



On 18.08.2008, at 18:27, Graham Smith wrote:


I have a letter set up on a Mac, which works fine, but copying it to
Windows and trying to compile gives me the following error:
--
}

You have used \KOMAoptions to set `',
but KOMA-Script does not know any option named `'.
See the KOMA-Script manual for more informations about options and
their values.
-

Is  there something obviously different between the Mac and  
Windows that

could help me solve this problem.



Mac prefers to store text files in UTF-8, while Windows tends to  
use  either 16 bit unicode or ISO with codepages. Another issue are  
line endings. So you often need to convert text files when moving  
from one system to another.


Open the files with a text editor (such as TextWrangler) that can  
translate them  to Windows.


I have tried opening in Emacs and Notepad, and saving) and I have  
commented out all the lines and retyped them fresh, but still get the  
same error.  The file compiles OK on Linux as well as the Mac, so yes  
it seems to be something specific to Windows.


My lines of code giving the problem are:

\KOMAoptions{%
,fromalign=right
,fromrule=aftername
,fromlogo=true
,backaddress=false
}

Graham


Daniel




Re: Lyx cross platform compatability - is there a problem?

2008-08-19 Thread Christian Ridderström

On Tue, 19 Aug 2008, Graham Smith wrote:

I have asked in another question (sa far without a solution) about 
problems with getting a Lyx file created on a Mac to compile on Windows 
(it compiles fine on Linux).


As I intend sharing files with a Windows user, is this a common problem, 
and is there any routine methods of avoiding it.  Creating files on 
Macs/Linux that then won't compile on Windows is a major problem for me. 
Indeed, it will force me to stop using Lyx as our main document 
processor, as compatibility is fundamental.


Hi Graham,

I'm forwarding your post to the developers' list. We'd greatly appreciate 
a small example file that demonstrates the problem, can you supply one?


AFAIK, there shouldn't be any cross-platform issues. You may however have 
system compatibility issues, e.g. if some non-standard LaTeX packages that 
your document uses are missing from one of the systems.


Best regards,
Christian

--
Christian Ridderström, +46-8-768 39 44http://www.md.kth.se/~chr

Re: Melissa Woolston/GB/INT/Kelly is out of the office.

2008-08-19 Thread Manveru
Would be nice...

I am wondering who was so funny and add them to the lyx list???

2008/8/19 Steve Litt [EMAIL PROTECTED]

 Hi all,

 Kelly services UK is at it again, sending a bogus message to everyone who
 sends to the LyX list. Could somebody please just ban all mail coming from
 kellyservices.co.uk?

 Thanks

 SteveT

 --  Forwarded Message  --

 Subject: Melissa Woolston/GB/INT/Kelly is out of the office.
 Date: Monday 18 August 2008 20:01
 From: Melissa Woolston [EMAIL PROTECTED]
 To: Steve Litt [EMAIL PROTECTED]

 [...]

 ---




-- 
Manveru
jabber: [EMAIL PROTECTED]
gg: 1624001
  http://www.manveru.pl


Re: Melissa Woolston/GB/INT/Kelly is out of the office.

2008-08-19 Thread Jürgen Spitzmüller
Manveru wrote:
 Would be nice...

 I am wondering who was so funny and add them to the lyx list???

I don't think this is evil intention. Melissa kindly asked for help 
unsubscribing herself, some people assisted her, but obviously they didn't 
succeed.

I have now asked our mailing list maintainer to unsubscribe Melissa from the 
list. I hope this will finish the story.

Jürgen


Re: Melissa Woolston/GB/INT/Kelly is out of the office.

2008-08-19 Thread Manveru
This is not first time, when some unwanted people are subscribed to the
list. Maybe word unwanted is inadequate here... let's say they generated
unwanted garbage from time to time. Unanswered question is are they add
themselves some time ago or someone add them mistakenly (evil or not - does
not matter). I think someone should be moderator on this list able to
manually disable or unsubscribe people, who asking about it.

Automated vacations and responders do not recognize lists and replies to
everyone who to the list. That is why it is better to have multiple mail
accounts or separation system (procmail based for example).

2008/8/19 Jürgen Spitzmüller [EMAIL PROTECTED]

 Manveru wrote:
  Would be nice...
 
  I am wondering who was so funny and add them to the lyx list???

 I don't think this is evil intention. Melissa kindly asked for help
 unsubscribing herself, some people assisted her, but obviously they didn't
 succeed.

 I have now asked our mailing list maintainer to unsubscribe Melissa from
 the
 list. I hope this will finish the story.

 Jürgen




-- 
Manveru
jabber: [EMAIL PROTECTED]
gg: 1624001
  http://www.manveru.pl


Re: Lyx cross platform compatability - is there a problem?

2008-08-19 Thread José Matos
On Tuesday 19 August 2008 06:35:32 Graham Smith wrote:
 I have asked in another question (sa far without a solution) about
 problems with getting a Lyx file created on a Mac to compile on
 Windows (it compiles fine on Linux).

 As I intend sharing files with a Windows user, is this a common
 problem, and is there any routine methods of avoiding it.  Creating
 files on Macs/Linux that then won't compile on Windows is a major
 problem for me. Indeed, it will force me to stop using Lyx as our
 main document processor, as compatibility is fundamental.

The error message suggests that the culprit is a different version installed 
of Koma between your different systems.

The next step is to identify what causes this difference in behaviour between 
the two versions, because sooner or later the same will happen when other 
systems update the Koma latex classes.

 Many thanks,

 Graham

 Graham Smith
 [EMAIL PROTECTED]

-- 
José Abílio




Re: Lyx cross platform compatability - is there a problem?

2008-08-19 Thread Graham Smith

On 19 Aug 2008, at 09:16, José Matos wrote:


On Tuesday 19 August 2008 06:35:32 Graham Smith wrote:

I have asked in another question (sa far without a solution) about
problems with getting a Lyx file created on a Mac to compile on
Windows (it compiles fine on Linux).

As I intend sharing files with a Windows user, is this a common
problem, and is there any routine methods of avoiding it.  Creating
files on Macs/Linux that then won't compile on Windows is a major
problem for me. Indeed, it will force me to stop using Lyx as our
main document processor, as compatibility is fundamental.


The error message suggests that the culprit is a different version  
installed

of Koma between your different systems.

The next step is to identify what causes this difference in  
behaviour between
the two versions, because sooner or later the same will happen when  
other

systems update the Koma latex classes.


Thanks, this could well be the case,  on the Mac and ubuntu its  
whatever installed by default, but on Windows, Koma Script wasn't  
installed with Lyx/Miktex and I needed to install Koma Script through  
MikTex, so I assume this will be the latest version, where as it  
might be older version on the Mac and Linux.


However, I realise I don't actually know how to find out the  
versions, or indeed even where the packages are installed on the  
different systems.  I will need to find out.


Graham






Re: Lyx cross platform compatability - is there a problem?

2008-08-19 Thread John McCabe-Dansted
On Tue, Aug 19, 2008 at 5:31 PM, Graham Smith [EMAIL PROTECTED] wrote:
 On 19 Aug 2008, at 09:16, José Matos wrote:
 The error message suggests that the culprit is a different version
 installed of Koma between your different systems.
snip
 Thanks, this could well be the case,
snip

I think bundling the KomaScript .sty file with the .lyx file may help
if this is the case.

 However, I realise I don't actually know how to find out the versions, or
 indeed even where the packages are installed on the different systems.  I
 will need to find out.

This should be listed in your log file. This can be viewed e.g. by the
menu item Document  LaTeX Log. However LyX does not allow searching
so you can't just do a find .sty to get this information unless you
dig around in /tmp/lyx_tmdir?? and open the .log file in a real
text editor/viewer.

-- 
John C. McCabe-Dansted
PhD Student
University of Western Australia


Re: Lyx 1.5.6 on Vista: Classes unavailable

2008-08-19 Thread Andreas K .
edi [EMAIL PROTECTED] writes:

 
 
 I have Lyx 1.5.6 on Vista. I've installed all packages and all classes as far
 as I know. However, I still see a lot of classes unavailable in the
 Document == Settings == Doc. class settings.


Are you really sure that you have installed all classes? Usually most of the 
non-standard classes has to be installed manually.

Look at Help  LaTeX Configuration. If it says Found: no for a class, than 
it is not installed.




Bibiliography

2008-08-19 Thread Hesham Kamel
Hello,
I am writing my thesis and each chapter is in a separate folder.
Now, How do you make the references appear in a separate file in the order
they appeared within the chapters?
Thank you

-- 
Hesham


Re: Lyx cross platform compatability - is there a problem?

2008-08-19 Thread Graham Smith





On 19 Aug 2008, at 10:59, John McCabe-Dansted wrote:

On Tue, Aug 19, 2008 at 5:31 PM, Graham Smith  
[EMAIL PROTECTED] wrote:

On 19 Aug 2008, at 09:16, José Matos wrote:

The error message suggests that the culprit is a different version
installed of Koma between your different systems.

snip

Thanks, this could well be the case,

snip

I think bundling the KomaScript .sty file with the .lyx file may help
if this is the case.

However, I realise I don't actually know how to find out the  
versions, or
indeed even where the packages are installed on the different  
systems.  I

will need to find out.


This should be listed in your log file. This can be viewed e.g. by the
menu item Document  LaTeX Log. However LyX does not allow searching
so you can't just do a find .sty to get this information unless you
dig around in /tmp/lyx_tmdir?? and open the .log file in a real
text editor/viewer.



Thanks it would seem that it is 2.95b on the Mac and 2.98 on Windows.

Assuming that is indeed the problem.

I'm not sure why editing directly in Windows isn't working

Graham



Re: Koma-script letter error on Windows but not on Mac

2008-08-19 Thread Konrad Hofbauer

Graham Smith wrote:

My lines of code giving the problem are:

\KOMAoptions{%
,fromalign=right
,fromrule=aftername
,fromlogo=true
,backaddress=false
}


Is this LyX-generated code or your own Preamble stuff?

I have not tried, but should there not be a %-sign at the end of each 
line ??? Plus, there is a ',' too much on the first line.
So this is I believe not a cross-platform issue but wrong syntax (which 
happens to be forgiven or not depending on the platform and Koma version).


Try putting everything on one line, i.e.
\KOMAoptions{fromalign=right, fromrule=aftername ,fromlogo=true, 
backaddress=false} and I am almost sure everything works.


HTH,
/Konrad



Re: Lyx cross platform compatability - is there a problem?

2008-08-19 Thread Graham Smith

Christian,

As you will see, from my other post,  the issue was a leading comma  
in the preamble, setting the Komascript options.


It seems that both the Mac and Linux are forgiving of this syntax  
error, but Windows is not.


So it isn't a Windows issue, but a sloppy syntax issue on my part.

Thanks for your help.

Graham

Graham Smith
[EMAIL PROTECTED]

Station Cottage, Station Road
Binegar, Somerset
BA3 4UQ




On 19 Aug 2008, at 07:52, Christian Ridderström wrote:


On Tue, 19 Aug 2008, Graham Smith wrote:

I have asked in another question (sa far without a solution) about  
problems with getting a Lyx file created on a Mac to compile on  
Windows (it compiles fine on Linux).


As I intend sharing files with a Windows user, is this a common  
problem, and is there any routine methods of avoiding it.   
Creating files on Macs/Linux that then won't compile on Windows is  
a major problem for me. Indeed, it will force me to stop using Lyx  
as our main document processor, as compatibility is fundamental.


Hi Graham,

I'm forwarding your post to the developers' list. We'd greatly  
appreciate a small example file that demonstrates the problem, can  
you supply one?


AFAIK, there shouldn't be any cross-platform issues. You may  
however have system compatibility issues, e.g. if some non-standard  
LaTeX packages that your document uses are missing from one of the  
systems.


Best regards,
Christian

--
Christian Ridderström, +46-8-768 39 44http:// 
www.md.kth.se/~chr




Re: Melissa Woolston/GB/INT/Kelly is out of the office.

2008-08-19 Thread Jürgen Spitzmüller
Manveru wrote:
 Unanswered question is are they add
 themselves some time ago or someone add them mistakenly (evil or not - does
 not matter). I think someone should be moderator on this list able to
 manually disable or unsubscribe people, who asking about it.

Actually, she used an envelope sender address, which was -- notabene -- your 
address.

Our mailing list maintainer now unsubscribed that address; maybe you need to 
resubsucribe yourself now.

Quoting Máté Wierld:

 Her envelope sender address was

 manveru at manveru dot pl

 and that's the address that was subscribed to the list.  What users need to
 do is look at the address  the list manager sends the message to.

Jürgen


Re: Melissa Woolston/GB/INT/Kelly is out of the office.

2008-08-19 Thread Jürgen Spitzmüller
Manveru wrote:
 This is my e-mail address, not her.

I know, but as I said, she obviously used your address as an envelope. I'm 
just reporting what our list maintainer told me, I do not know much about 
this stuff myself.

Jürgen


Re: Melissa Woolston/GB/INT/Kelly is out of the office.

2008-08-19 Thread Manveru
2008/8/19 Jürgen Spitzmüller [EMAIL PROTECTED]



  manveru at manveru dot pl



This is my e-mail address, not her.

-- 
Manveru
jabber: [EMAIL PROTECTED]
gg: 1624001
http://www.manveru.pl


Re: Melissa Woolston/GB/INT/Kelly is out of the office.

2008-08-19 Thread Manveru
And... he removed me... it is good that I am back from vacation.

2008/8/19 Jürgen Spitzmüller [EMAIL PROTECTED]

 Manveru wrote:
  This is my e-mail address, not her.

 I know, but as I said, she obviously used your address as an envelope. I'm
 just reporting what our list maintainer told me, I do not know much about
 this stuff myself.

 Jürgen




-- 
Manveru
jabber: [EMAIL PROTECTED]
gg: 1624001
http://www.manveru.pl


Re: AGU article (SGML) setup

2008-08-19 Thread José Matos
On Thursday 14 August 2008 19:38:24 Brian Larsen wrote:
 I am trying to get a publication ready for Geophysical Research
 Letters, an AGU journal.  I would love to be able to use the AGU
 article (SGML) document class but no matter what I try I can't seem to
 find the right files to put in my LaTeX distro.  Does anyone have any
 hints on this?  I have AGU++ Manuscript and AGU++ JGR working but they
 are not the one that the LyX included template is built one.

I am sorry for taking so long to answer, holidays and so on. :-)

AGU (SGML) does not use any latex backend, it uses instead its own set of 
tools. I am forwarding this message to Martin who is the creator of the AGU 
layout file.

 Thanks.,

 Brian

-- 
José Abílio


example of layout module for LyX 1.6

2008-08-19 Thread Olivier Ripoll

Hi,

I just wanted to share a simple and probably imperfect layout module for 
LyX 1.6. I do not know much about LaTeX, so I used the examples provided 
with LyX and google to create this file. I called it 
moremathsfunctions.module (it should be placed in the layouts folder 
in the lyx 1.6 preference folder of your home directory -- in 
Application Data for windows users), and here is the content (between 
the dashed lines, so people can comment on the code):



#\DeclareLyXModule{More Maths Functions}
#DescriptionBegin
#Additional functions: erf, erfc, sinc, sgn , missing hyperbolic  
inverse hyperbolic functions,
#Fourier transform  inverse, logarithms in base 10 and 2, floor/ceil 
(letters and mathematical

#notation).
#DescriptionEnd

# Author : Olivier Ripoll

Format 7

Requiresamsmath,mathrsfs

AddToPreamble
\DeclareMathOperator{\sinc}{sinc}
\DeclareMathOperator{\sgn}{sgn}
\DeclareMathOperator{\erf}{erf}
\DeclareMathOperator{\erfc}{erfc}
\DeclareMathOperator{\FT}{\mathscr{F}}
\DeclareMathOperator{\iFT}{\mathscr{F}^{-1}}
\DeclareMathOperator{\logten}{log_{10}}
\DeclareMathOperator{\logtwo}{log_2}
\DeclareMathOperator{\sech}{sech}
\DeclareMathOperator{\csch}{csch}
\DeclareMathOperator{\arsinh}{arsinh}
\DeclareMathOperator{\arcosh}{arcosh}
\DeclareMathOperator{\artanh}{artanh}
\DeclareMathOperator{\arcoth}{arcoth}
\DeclareMathOperator{\arsech}{arsech}
\DeclareMathOperator{\arcsch}{arcsch}
\newcommand{\Floor}[1]
 {\left\lfloor {#1} \right\rfloor}
\DeclareMathOperator{\floor}{floor}
\newcommand{\Ceil}[1]
 {\left\lceil #1 \right\rceil}
\DeclareMathOperator{\ceil}{ceil}
EndPreamble


As the description says, this module simply defines several useful math 
functions that are not available by default (I hope I did not overwrite 
existing LaTeX stuff). There are two versions of the floor and ceil 
functions, the one with a capital letter must be followed by \{xxx} 
where xxx is the number to which it is applied. It provides an aspect 
like in http://en.wikipedia.org/wiki/Floor_function


I used http://en.wikipedia.org/wiki/List_of_mathematical_functions as a 
reference for the functions I added. And before someone says so, Fourier 
transform and its inverse are not functions, but I do not care ;-)


I hope this can be helpful to someone. I like this layout module feature 
a lot, I created another one with custom char styles for filenames and 
code, based on Martin Vermeer's logicalmkup.module.


Small question: should I change the Format 7 to Format 8 ?

Best regards,

Olivier

PS: be careful, some lines are wrapped by the mail agent in the description.



Re: example of layout module for LyX 1.6

2008-08-19 Thread Manveru
I do not have 1.6 yet... but I do not understand how LyX understands how to
handle these new commands? From my understanding these go only to preamble
of document, but how to add these to some buttons on toolbar for example?

2008/8/19 Olivier Ripoll [EMAIL PROTECTED]

 Hi,

 I just wanted to share a simple and probably imperfect layout module for
 LyX 1.6. I do not know much about LaTeX, so I used the examples provided
 with LyX and google to create this file. I called it
 moremathsfunctions.module (it should be placed in the layouts folder in
 the lyx 1.6 preference folder of your home directory -- in Application
 Data for windows users), and here is the content (between the dashed lines,
 so people can comment on the code):

 
 #\DeclareLyXModule{More Maths Functions}
 #DescriptionBegin
 #Additional functions: erf, erfc, sinc, sgn , missing hyperbolic  inverse
 hyperbolic functions,
 #Fourier transform  inverse, logarithms in base 10 and 2, floor/ceil
 (letters and mathematical
 #notation).
 #DescriptionEnd

 # Author : Olivier Ripoll

 Format 7

 Requiresamsmath,mathrsfs

 AddToPreamble
\DeclareMathOperator{\sinc}{sinc}
\DeclareMathOperator{\sgn}{sgn}
\DeclareMathOperator{\erf}{erf}
\DeclareMathOperator{\erfc}{erfc}
\DeclareMathOperator{\FT}{\mathscr{F}}
\DeclareMathOperator{\iFT}{\mathscr{F}^{-1}}
\DeclareMathOperator{\logten}{log_{10}}
\DeclareMathOperator{\logtwo}{log_2}
\DeclareMathOperator{\sech}{sech}
\DeclareMathOperator{\csch}{csch}
\DeclareMathOperator{\arsinh}{arsinh}
\DeclareMathOperator{\arcosh}{arcosh}
\DeclareMathOperator{\artanh}{artanh}
\DeclareMathOperator{\arcoth}{arcoth}
\DeclareMathOperator{\arsech}{arsech}
\DeclareMathOperator{\arcsch}{arcsch}
\newcommand{\Floor}[1]
 {\left\lfloor {#1} \right\rfloor}
\DeclareMathOperator{\floor}{floor}
\newcommand{\Ceil}[1]
 {\left\lceil #1 \right\rceil}
\DeclareMathOperator{\ceil}{ceil}
 EndPreamble
 

 As the description says, this module simply defines several useful math
 functions that are not available by default (I hope I did not overwrite
 existing LaTeX stuff). There are two versions of the floor and ceil
 functions, the one with a capital letter must be followed by \{xxx} where
 xxx is the number to which it is applied. It provides an aspect like in
 http://en.wikipedia.org/wiki/Floor_function

 I used http://en.wikipedia.org/wiki/List_of_mathematical_functions as a
 reference for the functions I added. And before someone says so, Fourier
 transform and its inverse are not functions, but I do not care ;-)

 I hope this can be helpful to someone. I like this layout module feature a
 lot, I created another one with custom char styles for filenames and code,
 based on Martin Vermeer's logicalmkup.module.

 Small question: should I change the Format 7 to Format 8 ?

 Best regards,

 Olivier

 PS: be careful, some lines are wrapped by the mail agent in the
 description.




-- 
Manveru
jabber: [EMAIL PROTECTED]
gg: 1624001
http://www.manveru.pl


Re: example of layout module for LyX 1.6

2008-08-19 Thread Olivier Ripoll

Manveru wrote:

I do not have 1.6 yet... but I do not understand how LyX understands how to
handle these new commands? From my understanding these go only to preamble
of document, but how to add these to some buttons on toolbar for example?


This layout module is simply adding the definitions to the preamble. 
Then, when you type in a formula \erf for instance, it will not be 
interpreted by LyX (unless you use preview-latex stuff). But when 
generating the pdf, they will be correctly interpreted as functions 
(i.e. not in italic, and with a small space afterwards).
The advantage of having them in a layout module is that you do not have 
to add them in a preamble by hand. Just add the module to the document 
settings, as described in http://wiki.lyx.org/LyX/NewInLyX16#toc4 .


Of course if someone has any ideas to provide more functionality, any 
idea is welcome (that's the reason for posting the module).


You can also have layouts that will create text styles or environments, 
and those will appear in some menus automatically. That's how I have 
implemented my filename and code text styles. See the 
logicalmkup.module file for an example or my module below.
When I add my customstyles.module to the document settings, two 
entries appear in the Edit-Text Style menu for using them. And when I 
use them, LyX correctly change the text style accordingly. Here it is 
for reference:


---
#\DeclareLyXModule{Custom Styles}
#DescriptionBegin
#Custom character styles for code, filename.
#DescriptionEnd

# Author : Olivier Ripoll (based on layout by Martin Vermeer)

Format 7

InsetLayout CharStyle:Filename
LyxType   charstyle
LabelString   filename
LatexType command
LatexName filename
Font
  Series  Bold
  Family  Typewriter
EndFont
Preamble
\newcommand{\filename}[1]{\texttt{\textbf{#1}}}
EndPreamble
End


InsetLayout CharStyle:Code
LyxType   charstyle
LabelString   code
LatexType command
LatexName code
Font
  Family  Typewriter
EndFont
Preamble
\newcommand{\code}[1]{\texttt{#1}}
EndPreamble
End
---

Note that I am pretty sure you can create shortcuts for accessing the 
styles using what is described on the wiki:

http://wiki.lyx.org/Tips/KeyboardShortcutForCharacterStyles

Best regards,

Olivier


2008/8/19 Olivier Ripoll [EMAIL PROTECTED]


Hi,

I just wanted to share a simple and probably imperfect layout module for
LyX 1.6. I do not know much about LaTeX, so I used the examples provided
with LyX and google to create this file. I called it
moremathsfunctions.module (it should be placed in the layouts folder in
the lyx 1.6 preference folder of your home directory -- in Application
Data for windows users), and here is the content (between the dashed lines,
so people can comment on the code):


#\DeclareLyXModule{More Maths Functions}
#DescriptionBegin
#Additional functions: erf, erfc, sinc, sgn , missing hyperbolic  inverse
hyperbolic functions,
#Fourier transform  inverse, logarithms in base 10 and 2, floor/ceil
(letters and mathematical
#notation).
#DescriptionEnd

# Author : Olivier Ripoll

Format 7

Requiresamsmath,mathrsfs

AddToPreamble
   \DeclareMathOperator{\sinc}{sinc}
   \DeclareMathOperator{\sgn}{sgn}
   \DeclareMathOperator{\erf}{erf}
   \DeclareMathOperator{\erfc}{erfc}
   \DeclareMathOperator{\FT}{\mathscr{F}}
   \DeclareMathOperator{\iFT}{\mathscr{F}^{-1}}
   \DeclareMathOperator{\logten}{log_{10}}
   \DeclareMathOperator{\logtwo}{log_2}
   \DeclareMathOperator{\sech}{sech}
   \DeclareMathOperator{\csch}{csch}
   \DeclareMathOperator{\arsinh}{arsinh}
   \DeclareMathOperator{\arcosh}{arcosh}
   \DeclareMathOperator{\artanh}{artanh}
   \DeclareMathOperator{\arcoth}{arcoth}
   \DeclareMathOperator{\arsech}{arsech}
   \DeclareMathOperator{\arcsch}{arcsch}
   \newcommand{\Floor}[1]
{\left\lfloor {#1} \right\rfloor}
   \DeclareMathOperator{\floor}{floor}
   \newcommand{\Ceil}[1]
{\left\lceil #1 \right\rceil}
   \DeclareMathOperator{\ceil}{ceil}
EndPreamble


As the description says, this module simply defines several useful math
functions that are not available by default (I hope I did not overwrite
existing LaTeX stuff). There are two versions of the floor and ceil
functions, the one with a capital letter must be followed by \{xxx} where
xxx is the number to which it is applied. It provides an aspect like in

Re: example of layout module for LyX 1.6

2008-08-19 Thread Steve Litt
Thanks Oliver,

I still don't understand the underlying philosophy of layout modules:

0) What is a layout module?
1) Why are they better than just writing your own layout file?
2) How do you decide when to use them?
3) By what design methodology do you create them?
4) What are the attributes of a good layout module?
5) What are the attributes of a bad layout module?

Thanks

SteveT

On Tuesday 19 August 2008 11:43, Olivier Ripoll wrote:
 Hi,

 I just wanted to share a simple and probably imperfect layout module for
 LyX 1.6. I do not know much about LaTeX, so I used the examples provided
 with LyX and google to create this file. I called it
 moremathsfunctions.module (it should be placed in the layouts folder
 in the lyx 1.6 preference folder of your home directory -- in
 Application Data for windows users), and here is the content (between
 the dashed lines, so people can comment on the code):

 
 #\DeclareLyXModule{More Maths Functions}
 #DescriptionBegin
 #Additional functions: erf, erfc, sinc, sgn , missing hyperbolic 
 inverse hyperbolic functions,
 #Fourier transform  inverse, logarithms in base 10 and 2, floor/ceil
 (letters and mathematical
 #notation).
 #DescriptionEnd

 # Author : Olivier Ripoll

 Format 7

 Requires  amsmath,mathrsfs

 AddToPreamble
   \DeclareMathOperator{\sinc}{sinc}
   \DeclareMathOperator{\sgn}{sgn}
   \DeclareMathOperator{\erf}{erf}
   \DeclareMathOperator{\erfc}{erfc}
   \DeclareMathOperator{\FT}{\mathscr{F}}
   \DeclareMathOperator{\iFT}{\mathscr{F}^{-1}}
   \DeclareMathOperator{\logten}{log_{10}}
   \DeclareMathOperator{\logtwo}{log_2}
   \DeclareMathOperator{\sech}{sech}
   \DeclareMathOperator{\csch}{csch}
   \DeclareMathOperator{\arsinh}{arsinh}
   \DeclareMathOperator{\arcosh}{arcosh}
   \DeclareMathOperator{\artanh}{artanh}
   \DeclareMathOperator{\arcoth}{arcoth}
   \DeclareMathOperator{\arsech}{arsech}
   \DeclareMathOperator{\arcsch}{arcsch}
   \newcommand{\Floor}[1]
{\left\lfloor {#1} \right\rfloor}
   \DeclareMathOperator{\floor}{floor}
   \newcommand{\Ceil}[1]
{\left\lceil #1 \right\rceil}
   \DeclareMathOperator{\ceil}{ceil}
 EndPreamble
 

 As the description says, this module simply defines several useful math
 functions that are not available by default (I hope I did not overwrite
 existing LaTeX stuff). There are two versions of the floor and ceil
 functions, the one with a capital letter must be followed by \{xxx}
 where xxx is the number to which it is applied. It provides an aspect
 like in http://en.wikipedia.org/wiki/Floor_function

 I used http://en.wikipedia.org/wiki/List_of_mathematical_functions as a
 reference for the functions I added. And before someone says so, Fourier
 transform and its inverse are not functions, but I do not care ;-)

 I hope this can be helpful to someone. I like this layout module feature
 a lot, I created another one with custom char styles for filenames and
 code, based on Martin Vermeer's logicalmkup.module.

 Small question: should I change the Format 7 to Format 8 ?

 Best regards,

 Olivier

 PS: be careful, some lines are wrapped by the mail agent in the
 description.


Re: example of layout module for LyX 1.6

2008-08-19 Thread Steve Litt
On Tuesday 19 August 2008 13:16, Olivier Ripoll wrote:

 This layout module is simply adding the definitions to the preamble.
 Then, when you type in a formula \erf for instance, it will not be
 interpreted by LyX (unless you use preview-latex stuff). But when
 generating the pdf, they will be correctly interpreted as functions
 (i.e. not in italic, and with a small space afterwards).
 The advantage of having them in a layout module is that you do not have
 to add them in a preamble by hand. Just add the module to the document
 settings, as described in http://wiki.lyx.org/LyX/NewInLyX16#toc4 .

 Of course if someone has any ideas to provide more functionality, any
 idea is welcome (that's the reason for posting the module).

 You can also have layouts that will create text styles or environments,
 and those will appear in some menus automatically. That's how I have
 implemented my filename and code text styles. See the
 logicalmkup.module file for an example or my module below.
 When I add my customstyles.module to the document settings, two
 entries appear in the Edit-Text Style menu for using them. And when I
 use them, LyX correctly change the text style accordingly. Here it is
 for reference:

 ---
 #\DeclareLyXModule{Custom Styles}
 #DescriptionBegin
 #Custom character styles for code, filename.
 #DescriptionEnd

 # Author : Olivier Ripoll (based on layout by Martin Vermeer)

 Format 7

 InsetLayout CharStyle:Filename
   LyxType   charstyle
   LabelString   filename
   LatexType command
   LatexName filename
   Font
 Series  Bold
 Family  Typewriter
   EndFont
   Preamble
   \newcommand{\filename}[1]{\texttt{\textbf{#1}}}
   EndPreamble
 End


 InsetLayout CharStyle:Code
   LyxType   charstyle
   LabelString   code
   LatexType command
   LatexName code
   Font
 Family  Typewriter
   EndFont
   Preamble
   \newcommand{\code}[1]{\texttt{#1}}
   EndPreamble
 End
 ---

 Note that I am pretty sure you can create shortcuts for accessing the
 styles using what is described on the wiki:
 http://wiki.lyx.org/Tips/KeyboardShortcutForCharacterStyles

 Best regards,

 Olivier

Oh,

Maybe I do understand it. Is a layout module just a chunk of debugged 
LyX/LaTeX code that would normally go in a layout file, and gets included in 
the layout file by reference? So you could mix and match layout modules to 
get a more granular modularization, similar to #include in C?

So is it a way to write once, use many times? Is it a way to use 
known-debugged LyX/LaTeX code? And is it a way for all of us to trade 
debugged and tested code without throwing in every silly little feature we 
put in our book?

Thanks

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Lyx cross platform compatability - is there a problem?

2008-08-19 Thread Christian Ridderström

On Tue, 19 Aug 2008, Graham Smith wrote:

As you will see, from my other post, the issue was a leading comma in 
the preamble, setting the Komascript options.


It seems that both the Mac and Linux are forgiving of this syntax error, 
but Windows is not.


So it isn't a Windows issue


Hi Graham,

I'm glad you solved the problem.

regards,
Christian

--
Christian Ridderström, +46-8-768 39 44http://www.md.kth.se/~chr

Re: example of layout module for LyX 1.6

2008-08-19 Thread Christian Ridderström

On Tue, 19 Aug 2008, Steve Litt wrote:


Thanks Oliver,

I still don't understand the underlying philosophy of layout modules:

0) What is a layout module?
1) Why are they better than just writing your own layout file?
2) How do you decide when to use them?
3) By what design methodology do you create them?
4) What are the attributes of a good layout module?
5) What are the attributes of a bad layout module?


Hi Steve,

I personally have no idea, but I suspect the answer can be found by asking 
on the developers' list :-)


Best regards,
/Christian

PS. Once 1.6 is out, I think the layout module should be stored  somewhere 
in the wiki.



On Tuesday 19 August 2008 11:43, Olivier Ripoll wrote:

Hi,

I just wanted to share a simple and probably imperfect layout module for
LyX 1.6. I do not know much about LaTeX, so I used the examples provided
with LyX and google to create this file. I called it
moremathsfunctions.module (it should be placed in the layouts folder
in the lyx 1.6 preference folder of your home directory -- in
Application Data for windows users), and here is the content (between
the dashed lines, so people can comment on the code):


#\DeclareLyXModule{More Maths Functions}
#DescriptionBegin
#Additional functions: erf, erfc, sinc, sgn , missing hyperbolic 
inverse hyperbolic functions,
#Fourier transform  inverse, logarithms in base 10 and 2, floor/ceil
(letters and mathematical
#notation).
#DescriptionEnd

# Author : Olivier Ripoll

Format 7

Requiresamsmath,mathrsfs

AddToPreamble
\DeclareMathOperator{\sinc}{sinc}
\DeclareMathOperator{\sgn}{sgn}
\DeclareMathOperator{\erf}{erf}
\DeclareMathOperator{\erfc}{erfc}
\DeclareMathOperator{\FT}{\mathscr{F}}
\DeclareMathOperator{\iFT}{\mathscr{F}^{-1}}
\DeclareMathOperator{\logten}{log_{10}}
\DeclareMathOperator{\logtwo}{log_2}
\DeclareMathOperator{\sech}{sech}
\DeclareMathOperator{\csch}{csch}
\DeclareMathOperator{\arsinh}{arsinh}
\DeclareMathOperator{\arcosh}{arcosh}
\DeclareMathOperator{\artanh}{artanh}
\DeclareMathOperator{\arcoth}{arcoth}
\DeclareMathOperator{\arsech}{arsech}
\DeclareMathOperator{\arcsch}{arcsch}
\newcommand{\Floor}[1]
 {\left\lfloor {#1} \right\rfloor}
\DeclareMathOperator{\floor}{floor}
\newcommand{\Ceil}[1]
 {\left\lceil #1 \right\rceil}
\DeclareMathOperator{\ceil}{ceil}
EndPreamble


As the description says, this module simply defines several useful math
functions that are not available by default (I hope I did not overwrite
existing LaTeX stuff). There are two versions of the floor and ceil
functions, the one with a capital letter must be followed by \{xxx}
where xxx is the number to which it is applied. It provides an aspect
like in http://en.wikipedia.org/wiki/Floor_function

I used http://en.wikipedia.org/wiki/List_of_mathematical_functions as a
reference for the functions I added. And before someone says so, Fourier
transform and its inverse are not functions, but I do not care ;-)

I hope this can be helpful to someone. I like this layout module feature
a lot, I created another one with custom char styles for filenames and
code, based on Martin Vermeer's logicalmkup.module.

Small question: should I change the Format 7 to Format 8 ?

Best regards,

Olivier

PS: be careful, some lines are wrapped by the mail agent in the
description.





--
Christian Ridderström, +46-8-768 39 44http://www.md.kth.se/~chr

References

2008-08-19 Thread Hesham Kamel
Hello,
I am writing my thesis and each chapter is in a separate folder.
Now, How do you make the references appear in a separate file in the order
they appeared within the chapters?
Thank you

-- 
Hesham


Re: Lyx cross platform compatability - is there a problem?

2008-08-19 Thread Graham Smith

On 19 Aug 2008, at 19:57, Christian Ridderström wrote:


On Tue, 19 Aug 2008, Graham Smith wrote:

As you will see, from my other post, the issue was a leading comma  
in the preamble, setting the Komascript options.


It seems that both the Mac and Linux are forgiving of this syntax  
error, but Windows is not.


So it isn't a Windows issue


Hi Graham,

I'm glad you solved the problem.

regards,
Christian


I'm glad it was that simple.

Graham



file formats

2008-08-19 Thread Florin Oprina
Hi all!
I'm trying to add a new file format in the preferences dialogue.
However, the Add button is greyed out. What am I missing?

Using LyX 1.5.3 on Ubuntu Linux

Thanks in advance.


Re: file formats

2008-08-19 Thread killermike

Florin Oprina wrote:

Hi all!
I'm trying to add a new file format in the preferences dialogue.
However, the Add button is greyed out. What am I missing?
  

This can look a bit confusing at first. You start editing an existing
file format and then click on add.

--
http://www.unmusic.co.uk Michael Reed -- technology, gender, and geek 
culture freelance writer






Re: file formats

2008-08-19 Thread Florin Oprina
Thank you. It is confusing!

However, I've just discovered that it is covered in the documentation
(Appendix B of the user guide). My apologies for not RTFMing before.

Best.

On Wed, Aug 20, 2008 at 12:21 PM, killermike [EMAIL PROTECTED] wrote:
 Florin Oprina wrote:

 Hi all!
 I'm trying to add a new file format in the preferences dialogue.
 However, the Add button is greyed out. What am I missing?


 This can look a bit confusing at first. You start editing an existing
 file format and then click on add.

 --
 http://www.unmusic.co.uk Michael Reed -- technology, gender, and geek
 culture freelance writer






Re: Koma-script letter error on Windows but not on Mac

2008-08-19 Thread Graham Smith

Daniel

On 18 Aug 2008, at 17:32, Daniel Lohmann wrote:



On 18.08.2008, at 18:27, Graham Smith wrote:


I have a letter set up on a Mac, which works fine, but copying it to
Windows and trying to compile gives me the following error:
--
}

You have used \KOMAoptions to set `',
but KOMA-Script does not know any option named `'.
See the KOMA-Script manual for more informations about options and
their values.
-

Is  there something obviously different between the Mac and  
Windows that

could help me solve this problem.



Mac prefers to store text files in UTF-8, while Windows tends to  
use  either 16 bit unicode or ISO with codepages. Another issue are  
line endings. So you often need to convert text files when moving  
from one system to another.


Open the files with a text editor (such as TextWrangler) that can  
translate them  to Windows.


I have tried opening in Emacs and Notepad, and saving) and I have  
commented out all the lines and retyped them fresh, but still get the  
same error.  The file compiles OK on Linux as well as the Mac, so yes  
it seems to be something specific to Windows.


My lines of code giving the problem are:

\KOMAoptions{%
,fromalign=right
,fromrule=aftername
,fromlogo=true
,backaddress=false
}

Graham


Daniel




Re: Lyx cross platform compatability - is there a problem?

2008-08-19 Thread Christian Ridderström

On Tue, 19 Aug 2008, Graham Smith wrote:

I have asked in another question (sa far without a solution) about 
problems with getting a Lyx file created on a Mac to compile on Windows 
(it compiles fine on Linux).


As I intend sharing files with a Windows user, is this a common problem, 
and is there any routine methods of avoiding it.  Creating files on 
Macs/Linux that then won't compile on Windows is a major problem for me. 
Indeed, it will force me to stop using Lyx as our main document 
processor, as compatibility is fundamental.


Hi Graham,

I'm forwarding your post to the developers' list. We'd greatly appreciate 
a small example file that demonstrates the problem, can you supply one?


AFAIK, there shouldn't be any cross-platform issues. You may however have 
system compatibility issues, e.g. if some non-standard LaTeX packages that 
your document uses are missing from one of the systems.


Best regards,
Christian

--
Christian Ridderström, +46-8-768 39 44http://www.md.kth.se/~chr

Re: Melissa Woolston/GB/INT/Kelly is out of the office.

2008-08-19 Thread Manveru
Would be nice...

I am wondering who was so funny and add them to the lyx list???

2008/8/19 Steve Litt [EMAIL PROTECTED]

 Hi all,

 Kelly services UK is at it again, sending a bogus message to everyone who
 sends to the LyX list. Could somebody please just ban all mail coming from
 kellyservices.co.uk?

 Thanks

 SteveT

 --  Forwarded Message  --

 Subject: Melissa Woolston/GB/INT/Kelly is out of the office.
 Date: Monday 18 August 2008 20:01
 From: Melissa Woolston [EMAIL PROTECTED]
 To: Steve Litt [EMAIL PROTECTED]

 [...]

 ---




-- 
Manveru
jabber: [EMAIL PROTECTED]
gg: 1624001
  http://www.manveru.pl


Re: Melissa Woolston/GB/INT/Kelly is out of the office.

2008-08-19 Thread Jürgen Spitzmüller
Manveru wrote:
 Would be nice...

 I am wondering who was so funny and add them to the lyx list???

I don't think this is evil intention. Melissa kindly asked for help 
unsubscribing herself, some people assisted her, but obviously they didn't 
succeed.

I have now asked our mailing list maintainer to unsubscribe Melissa from the 
list. I hope this will finish the story.

Jürgen


Re: Melissa Woolston/GB/INT/Kelly is out of the office.

2008-08-19 Thread Manveru
This is not first time, when some unwanted people are subscribed to the
list. Maybe word unwanted is inadequate here... let's say they generated
unwanted garbage from time to time. Unanswered question is are they add
themselves some time ago or someone add them mistakenly (evil or not - does
not matter). I think someone should be moderator on this list able to
manually disable or unsubscribe people, who asking about it.

Automated vacations and responders do not recognize lists and replies to
everyone who to the list. That is why it is better to have multiple mail
accounts or separation system (procmail based for example).

2008/8/19 Jürgen Spitzmüller [EMAIL PROTECTED]

 Manveru wrote:
  Would be nice...
 
  I am wondering who was so funny and add them to the lyx list???

 I don't think this is evil intention. Melissa kindly asked for help
 unsubscribing herself, some people assisted her, but obviously they didn't
 succeed.

 I have now asked our mailing list maintainer to unsubscribe Melissa from
 the
 list. I hope this will finish the story.

 Jürgen




-- 
Manveru
jabber: [EMAIL PROTECTED]
gg: 1624001
  http://www.manveru.pl


Re: Lyx cross platform compatability - is there a problem?

2008-08-19 Thread José Matos
On Tuesday 19 August 2008 06:35:32 Graham Smith wrote:
 I have asked in another question (sa far without a solution) about
 problems with getting a Lyx file created on a Mac to compile on
 Windows (it compiles fine on Linux).

 As I intend sharing files with a Windows user, is this a common
 problem, and is there any routine methods of avoiding it.  Creating
 files on Macs/Linux that then won't compile on Windows is a major
 problem for me. Indeed, it will force me to stop using Lyx as our
 main document processor, as compatibility is fundamental.

The error message suggests that the culprit is a different version installed 
of Koma between your different systems.

The next step is to identify what causes this difference in behaviour between 
the two versions, because sooner or later the same will happen when other 
systems update the Koma latex classes.

 Many thanks,

 Graham

 Graham Smith
 [EMAIL PROTECTED]

-- 
José Abílio




Re: Lyx cross platform compatability - is there a problem?

2008-08-19 Thread Graham Smith

On 19 Aug 2008, at 09:16, José Matos wrote:


On Tuesday 19 August 2008 06:35:32 Graham Smith wrote:

I have asked in another question (sa far without a solution) about
problems with getting a Lyx file created on a Mac to compile on
Windows (it compiles fine on Linux).

As I intend sharing files with a Windows user, is this a common
problem, and is there any routine methods of avoiding it.  Creating
files on Macs/Linux that then won't compile on Windows is a major
problem for me. Indeed, it will force me to stop using Lyx as our
main document processor, as compatibility is fundamental.


The error message suggests that the culprit is a different version  
installed

of Koma between your different systems.

The next step is to identify what causes this difference in  
behaviour between
the two versions, because sooner or later the same will happen when  
other

systems update the Koma latex classes.


Thanks, this could well be the case,  on the Mac and ubuntu its  
whatever installed by default, but on Windows, Koma Script wasn't  
installed with Lyx/Miktex and I needed to install Koma Script through  
MikTex, so I assume this will be the latest version, where as it  
might be older version on the Mac and Linux.


However, I realise I don't actually know how to find out the  
versions, or indeed even where the packages are installed on the  
different systems.  I will need to find out.


Graham






Re: Lyx cross platform compatability - is there a problem?

2008-08-19 Thread John McCabe-Dansted
On Tue, Aug 19, 2008 at 5:31 PM, Graham Smith [EMAIL PROTECTED] wrote:
 On 19 Aug 2008, at 09:16, José Matos wrote:
 The error message suggests that the culprit is a different version
 installed of Koma between your different systems.
snip
 Thanks, this could well be the case,
snip

I think bundling the KomaScript .sty file with the .lyx file may help
if this is the case.

 However, I realise I don't actually know how to find out the versions, or
 indeed even where the packages are installed on the different systems.  I
 will need to find out.

This should be listed in your log file. This can be viewed e.g. by the
menu item Document  LaTeX Log. However LyX does not allow searching
so you can't just do a find .sty to get this information unless you
dig around in /tmp/lyx_tmdir?? and open the .log file in a real
text editor/viewer.

-- 
John C. McCabe-Dansted
PhD Student
University of Western Australia


Re: Lyx 1.5.6 on Vista: Classes unavailable

2008-08-19 Thread Andreas K .
edi [EMAIL PROTECTED] writes:

 
 
 I have Lyx 1.5.6 on Vista. I've installed all packages and all classes as far
 as I know. However, I still see a lot of classes unavailable in the
 Document == Settings == Doc. class settings.


Are you really sure that you have installed all classes? Usually most of the 
non-standard classes has to be installed manually.

Look at Help  LaTeX Configuration. If it says Found: no for a class, than 
it is not installed.




Bibiliography

2008-08-19 Thread Hesham Kamel
Hello,
I am writing my thesis and each chapter is in a separate folder.
Now, How do you make the references appear in a separate file in the order
they appeared within the chapters?
Thank you

-- 
Hesham


Re: Lyx cross platform compatability - is there a problem?

2008-08-19 Thread Graham Smith





On 19 Aug 2008, at 10:59, John McCabe-Dansted wrote:

On Tue, Aug 19, 2008 at 5:31 PM, Graham Smith  
[EMAIL PROTECTED] wrote:

On 19 Aug 2008, at 09:16, José Matos wrote:

The error message suggests that the culprit is a different version
installed of Koma between your different systems.

snip

Thanks, this could well be the case,

snip

I think bundling the KomaScript .sty file with the .lyx file may help
if this is the case.

However, I realise I don't actually know how to find out the  
versions, or
indeed even where the packages are installed on the different  
systems.  I

will need to find out.


This should be listed in your log file. This can be viewed e.g. by the
menu item Document  LaTeX Log. However LyX does not allow searching
so you can't just do a find .sty to get this information unless you
dig around in /tmp/lyx_tmdir?? and open the .log file in a real
text editor/viewer.



Thanks it would seem that it is 2.95b on the Mac and 2.98 on Windows.

Assuming that is indeed the problem.

I'm not sure why editing directly in Windows isn't working

Graham



Re: Koma-script letter error on Windows but not on Mac

2008-08-19 Thread Konrad Hofbauer

Graham Smith wrote:

My lines of code giving the problem are:

\KOMAoptions{%
,fromalign=right
,fromrule=aftername
,fromlogo=true
,backaddress=false
}


Is this LyX-generated code or your own Preamble stuff?

I have not tried, but should there not be a %-sign at the end of each 
line ??? Plus, there is a ',' too much on the first line.
So this is I believe not a cross-platform issue but wrong syntax (which 
happens to be forgiven or not depending on the platform and Koma version).


Try putting everything on one line, i.e.
\KOMAoptions{fromalign=right, fromrule=aftername ,fromlogo=true, 
backaddress=false} and I am almost sure everything works.


HTH,
/Konrad



Re: Lyx cross platform compatability - is there a problem?

2008-08-19 Thread Graham Smith

Christian,

As you will see, from my other post,  the issue was a leading comma  
in the preamble, setting the Komascript options.


It seems that both the Mac and Linux are forgiving of this syntax  
error, but Windows is not.


So it isn't a Windows issue, but a sloppy syntax issue on my part.

Thanks for your help.

Graham

Graham Smith
[EMAIL PROTECTED]

Station Cottage, Station Road
Binegar, Somerset
BA3 4UQ




On 19 Aug 2008, at 07:52, Christian Ridderström wrote:


On Tue, 19 Aug 2008, Graham Smith wrote:

I have asked in another question (sa far without a solution) about  
problems with getting a Lyx file created on a Mac to compile on  
Windows (it compiles fine on Linux).


As I intend sharing files with a Windows user, is this a common  
problem, and is there any routine methods of avoiding it.   
Creating files on Macs/Linux that then won't compile on Windows is  
a major problem for me. Indeed, it will force me to stop using Lyx  
as our main document processor, as compatibility is fundamental.


Hi Graham,

I'm forwarding your post to the developers' list. We'd greatly  
appreciate a small example file that demonstrates the problem, can  
you supply one?


AFAIK, there shouldn't be any cross-platform issues. You may  
however have system compatibility issues, e.g. if some non-standard  
LaTeX packages that your document uses are missing from one of the  
systems.


Best regards,
Christian

--
Christian Ridderström, +46-8-768 39 44http:// 
www.md.kth.se/~chr




Re: Melissa Woolston/GB/INT/Kelly is out of the office.

2008-08-19 Thread Jürgen Spitzmüller
Manveru wrote:
 Unanswered question is are they add
 themselves some time ago or someone add them mistakenly (evil or not - does
 not matter). I think someone should be moderator on this list able to
 manually disable or unsubscribe people, who asking about it.

Actually, she used an envelope sender address, which was -- notabene -- your 
address.

Our mailing list maintainer now unsubscribed that address; maybe you need to 
resubsucribe yourself now.

Quoting Máté Wierld:

 Her envelope sender address was

 manveru at manveru dot pl

 and that's the address that was subscribed to the list.  What users need to
 do is look at the address  the list manager sends the message to.

Jürgen


Re: Melissa Woolston/GB/INT/Kelly is out of the office.

2008-08-19 Thread Jürgen Spitzmüller
Manveru wrote:
 This is my e-mail address, not her.

I know, but as I said, she obviously used your address as an envelope. I'm 
just reporting what our list maintainer told me, I do not know much about 
this stuff myself.

Jürgen


Re: Melissa Woolston/GB/INT/Kelly is out of the office.

2008-08-19 Thread Manveru
2008/8/19 Jürgen Spitzmüller [EMAIL PROTECTED]



  manveru at manveru dot pl



This is my e-mail address, not her.

-- 
Manveru
jabber: [EMAIL PROTECTED]
gg: 1624001
http://www.manveru.pl


Re: Melissa Woolston/GB/INT/Kelly is out of the office.

2008-08-19 Thread Manveru
And... he removed me... it is good that I am back from vacation.

2008/8/19 Jürgen Spitzmüller [EMAIL PROTECTED]

 Manveru wrote:
  This is my e-mail address, not her.

 I know, but as I said, she obviously used your address as an envelope. I'm
 just reporting what our list maintainer told me, I do not know much about
 this stuff myself.

 Jürgen




-- 
Manveru
jabber: [EMAIL PROTECTED]
gg: 1624001
http://www.manveru.pl


Re: AGU article (SGML) setup

2008-08-19 Thread José Matos
On Thursday 14 August 2008 19:38:24 Brian Larsen wrote:
 I am trying to get a publication ready for Geophysical Research
 Letters, an AGU journal.  I would love to be able to use the AGU
 article (SGML) document class but no matter what I try I can't seem to
 find the right files to put in my LaTeX distro.  Does anyone have any
 hints on this?  I have AGU++ Manuscript and AGU++ JGR working but they
 are not the one that the LyX included template is built one.

I am sorry for taking so long to answer, holidays and so on. :-)

AGU (SGML) does not use any latex backend, it uses instead its own set of 
tools. I am forwarding this message to Martin who is the creator of the AGU 
layout file.

 Thanks.,

 Brian

-- 
José Abílio


example of layout module for LyX 1.6

2008-08-19 Thread Olivier Ripoll

Hi,

I just wanted to share a simple and probably imperfect layout module for 
LyX 1.6. I do not know much about LaTeX, so I used the examples provided 
with LyX and google to create this file. I called it 
moremathsfunctions.module (it should be placed in the layouts folder 
in the lyx 1.6 preference folder of your home directory -- in 
Application Data for windows users), and here is the content (between 
the dashed lines, so people can comment on the code):



#\DeclareLyXModule{More Maths Functions}
#DescriptionBegin
#Additional functions: erf, erfc, sinc, sgn , missing hyperbolic  
inverse hyperbolic functions,
#Fourier transform  inverse, logarithms in base 10 and 2, floor/ceil 
(letters and mathematical

#notation).
#DescriptionEnd

# Author : Olivier Ripoll

Format 7

Requiresamsmath,mathrsfs

AddToPreamble
\DeclareMathOperator{\sinc}{sinc}
\DeclareMathOperator{\sgn}{sgn}
\DeclareMathOperator{\erf}{erf}
\DeclareMathOperator{\erfc}{erfc}
\DeclareMathOperator{\FT}{\mathscr{F}}
\DeclareMathOperator{\iFT}{\mathscr{F}^{-1}}
\DeclareMathOperator{\logten}{log_{10}}
\DeclareMathOperator{\logtwo}{log_2}
\DeclareMathOperator{\sech}{sech}
\DeclareMathOperator{\csch}{csch}
\DeclareMathOperator{\arsinh}{arsinh}
\DeclareMathOperator{\arcosh}{arcosh}
\DeclareMathOperator{\artanh}{artanh}
\DeclareMathOperator{\arcoth}{arcoth}
\DeclareMathOperator{\arsech}{arsech}
\DeclareMathOperator{\arcsch}{arcsch}
\newcommand{\Floor}[1]
 {\left\lfloor {#1} \right\rfloor}
\DeclareMathOperator{\floor}{floor}
\newcommand{\Ceil}[1]
 {\left\lceil #1 \right\rceil}
\DeclareMathOperator{\ceil}{ceil}
EndPreamble


As the description says, this module simply defines several useful math 
functions that are not available by default (I hope I did not overwrite 
existing LaTeX stuff). There are two versions of the floor and ceil 
functions, the one with a capital letter must be followed by \{xxx} 
where xxx is the number to which it is applied. It provides an aspect 
like in http://en.wikipedia.org/wiki/Floor_function


I used http://en.wikipedia.org/wiki/List_of_mathematical_functions as a 
reference for the functions I added. And before someone says so, Fourier 
transform and its inverse are not functions, but I do not care ;-)


I hope this can be helpful to someone. I like this layout module feature 
a lot, I created another one with custom char styles for filenames and 
code, based on Martin Vermeer's logicalmkup.module.


Small question: should I change the Format 7 to Format 8 ?

Best regards,

Olivier

PS: be careful, some lines are wrapped by the mail agent in the description.



Re: example of layout module for LyX 1.6

2008-08-19 Thread Manveru
I do not have 1.6 yet... but I do not understand how LyX understands how to
handle these new commands? From my understanding these go only to preamble
of document, but how to add these to some buttons on toolbar for example?

2008/8/19 Olivier Ripoll [EMAIL PROTECTED]

 Hi,

 I just wanted to share a simple and probably imperfect layout module for
 LyX 1.6. I do not know much about LaTeX, so I used the examples provided
 with LyX and google to create this file. I called it
 moremathsfunctions.module (it should be placed in the layouts folder in
 the lyx 1.6 preference folder of your home directory -- in Application
 Data for windows users), and here is the content (between the dashed lines,
 so people can comment on the code):

 
 #\DeclareLyXModule{More Maths Functions}
 #DescriptionBegin
 #Additional functions: erf, erfc, sinc, sgn , missing hyperbolic  inverse
 hyperbolic functions,
 #Fourier transform  inverse, logarithms in base 10 and 2, floor/ceil
 (letters and mathematical
 #notation).
 #DescriptionEnd

 # Author : Olivier Ripoll

 Format 7

 Requiresamsmath,mathrsfs

 AddToPreamble
\DeclareMathOperator{\sinc}{sinc}
\DeclareMathOperator{\sgn}{sgn}
\DeclareMathOperator{\erf}{erf}
\DeclareMathOperator{\erfc}{erfc}
\DeclareMathOperator{\FT}{\mathscr{F}}
\DeclareMathOperator{\iFT}{\mathscr{F}^{-1}}
\DeclareMathOperator{\logten}{log_{10}}
\DeclareMathOperator{\logtwo}{log_2}
\DeclareMathOperator{\sech}{sech}
\DeclareMathOperator{\csch}{csch}
\DeclareMathOperator{\arsinh}{arsinh}
\DeclareMathOperator{\arcosh}{arcosh}
\DeclareMathOperator{\artanh}{artanh}
\DeclareMathOperator{\arcoth}{arcoth}
\DeclareMathOperator{\arsech}{arsech}
\DeclareMathOperator{\arcsch}{arcsch}
\newcommand{\Floor}[1]
 {\left\lfloor {#1} \right\rfloor}
\DeclareMathOperator{\floor}{floor}
\newcommand{\Ceil}[1]
 {\left\lceil #1 \right\rceil}
\DeclareMathOperator{\ceil}{ceil}
 EndPreamble
 

 As the description says, this module simply defines several useful math
 functions that are not available by default (I hope I did not overwrite
 existing LaTeX stuff). There are two versions of the floor and ceil
 functions, the one with a capital letter must be followed by \{xxx} where
 xxx is the number to which it is applied. It provides an aspect like in
 http://en.wikipedia.org/wiki/Floor_function

 I used http://en.wikipedia.org/wiki/List_of_mathematical_functions as a
 reference for the functions I added. And before someone says so, Fourier
 transform and its inverse are not functions, but I do not care ;-)

 I hope this can be helpful to someone. I like this layout module feature a
 lot, I created another one with custom char styles for filenames and code,
 based on Martin Vermeer's logicalmkup.module.

 Small question: should I change the Format 7 to Format 8 ?

 Best regards,

 Olivier

 PS: be careful, some lines are wrapped by the mail agent in the
 description.




-- 
Manveru
jabber: [EMAIL PROTECTED]
gg: 1624001
http://www.manveru.pl


Re: example of layout module for LyX 1.6

2008-08-19 Thread Olivier Ripoll

Manveru wrote:

I do not have 1.6 yet... but I do not understand how LyX understands how to
handle these new commands? From my understanding these go only to preamble
of document, but how to add these to some buttons on toolbar for example?


This layout module is simply adding the definitions to the preamble. 
Then, when you type in a formula \erf for instance, it will not be 
interpreted by LyX (unless you use preview-latex stuff). But when 
generating the pdf, they will be correctly interpreted as functions 
(i.e. not in italic, and with a small space afterwards).
The advantage of having them in a layout module is that you do not have 
to add them in a preamble by hand. Just add the module to the document 
settings, as described in http://wiki.lyx.org/LyX/NewInLyX16#toc4 .


Of course if someone has any ideas to provide more functionality, any 
idea is welcome (that's the reason for posting the module).


You can also have layouts that will create text styles or environments, 
and those will appear in some menus automatically. That's how I have 
implemented my filename and code text styles. See the 
logicalmkup.module file for an example or my module below.
When I add my customstyles.module to the document settings, two 
entries appear in the Edit-Text Style menu for using them. And when I 
use them, LyX correctly change the text style accordingly. Here it is 
for reference:


---
#\DeclareLyXModule{Custom Styles}
#DescriptionBegin
#Custom character styles for code, filename.
#DescriptionEnd

# Author : Olivier Ripoll (based on layout by Martin Vermeer)

Format 7

InsetLayout CharStyle:Filename
LyxType   charstyle
LabelString   filename
LatexType command
LatexName filename
Font
  Series  Bold
  Family  Typewriter
EndFont
Preamble
\newcommand{\filename}[1]{\texttt{\textbf{#1}}}
EndPreamble
End


InsetLayout CharStyle:Code
LyxType   charstyle
LabelString   code
LatexType command
LatexName code
Font
  Family  Typewriter
EndFont
Preamble
\newcommand{\code}[1]{\texttt{#1}}
EndPreamble
End
---

Note that I am pretty sure you can create shortcuts for accessing the 
styles using what is described on the wiki:

http://wiki.lyx.org/Tips/KeyboardShortcutForCharacterStyles

Best regards,

Olivier


2008/8/19 Olivier Ripoll [EMAIL PROTECTED]


Hi,

I just wanted to share a simple and probably imperfect layout module for
LyX 1.6. I do not know much about LaTeX, so I used the examples provided
with LyX and google to create this file. I called it
moremathsfunctions.module (it should be placed in the layouts folder in
the lyx 1.6 preference folder of your home directory -- in Application
Data for windows users), and here is the content (between the dashed lines,
so people can comment on the code):


#\DeclareLyXModule{More Maths Functions}
#DescriptionBegin
#Additional functions: erf, erfc, sinc, sgn , missing hyperbolic  inverse
hyperbolic functions,
#Fourier transform  inverse, logarithms in base 10 and 2, floor/ceil
(letters and mathematical
#notation).
#DescriptionEnd

# Author : Olivier Ripoll

Format 7

Requiresamsmath,mathrsfs

AddToPreamble
   \DeclareMathOperator{\sinc}{sinc}
   \DeclareMathOperator{\sgn}{sgn}
   \DeclareMathOperator{\erf}{erf}
   \DeclareMathOperator{\erfc}{erfc}
   \DeclareMathOperator{\FT}{\mathscr{F}}
   \DeclareMathOperator{\iFT}{\mathscr{F}^{-1}}
   \DeclareMathOperator{\logten}{log_{10}}
   \DeclareMathOperator{\logtwo}{log_2}
   \DeclareMathOperator{\sech}{sech}
   \DeclareMathOperator{\csch}{csch}
   \DeclareMathOperator{\arsinh}{arsinh}
   \DeclareMathOperator{\arcosh}{arcosh}
   \DeclareMathOperator{\artanh}{artanh}
   \DeclareMathOperator{\arcoth}{arcoth}
   \DeclareMathOperator{\arsech}{arsech}
   \DeclareMathOperator{\arcsch}{arcsch}
   \newcommand{\Floor}[1]
{\left\lfloor {#1} \right\rfloor}
   \DeclareMathOperator{\floor}{floor}
   \newcommand{\Ceil}[1]
{\left\lceil #1 \right\rceil}
   \DeclareMathOperator{\ceil}{ceil}
EndPreamble


As the description says, this module simply defines several useful math
functions that are not available by default (I hope I did not overwrite
existing LaTeX stuff). There are two versions of the floor and ceil
functions, the one with a capital letter must be followed by \{xxx} where
xxx is the number to which it is applied. It provides an aspect like in

Re: example of layout module for LyX 1.6

2008-08-19 Thread Steve Litt
Thanks Oliver,

I still don't understand the underlying philosophy of layout modules:

0) What is a layout module?
1) Why are they better than just writing your own layout file?
2) How do you decide when to use them?
3) By what design methodology do you create them?
4) What are the attributes of a good layout module?
5) What are the attributes of a bad layout module?

Thanks

SteveT

On Tuesday 19 August 2008 11:43, Olivier Ripoll wrote:
 Hi,

 I just wanted to share a simple and probably imperfect layout module for
 LyX 1.6. I do not know much about LaTeX, so I used the examples provided
 with LyX and google to create this file. I called it
 moremathsfunctions.module (it should be placed in the layouts folder
 in the lyx 1.6 preference folder of your home directory -- in
 Application Data for windows users), and here is the content (between
 the dashed lines, so people can comment on the code):

 
 #\DeclareLyXModule{More Maths Functions}
 #DescriptionBegin
 #Additional functions: erf, erfc, sinc, sgn , missing hyperbolic 
 inverse hyperbolic functions,
 #Fourier transform  inverse, logarithms in base 10 and 2, floor/ceil
 (letters and mathematical
 #notation).
 #DescriptionEnd

 # Author : Olivier Ripoll

 Format 7

 Requires  amsmath,mathrsfs

 AddToPreamble
   \DeclareMathOperator{\sinc}{sinc}
   \DeclareMathOperator{\sgn}{sgn}
   \DeclareMathOperator{\erf}{erf}
   \DeclareMathOperator{\erfc}{erfc}
   \DeclareMathOperator{\FT}{\mathscr{F}}
   \DeclareMathOperator{\iFT}{\mathscr{F}^{-1}}
   \DeclareMathOperator{\logten}{log_{10}}
   \DeclareMathOperator{\logtwo}{log_2}
   \DeclareMathOperator{\sech}{sech}
   \DeclareMathOperator{\csch}{csch}
   \DeclareMathOperator{\arsinh}{arsinh}
   \DeclareMathOperator{\arcosh}{arcosh}
   \DeclareMathOperator{\artanh}{artanh}
   \DeclareMathOperator{\arcoth}{arcoth}
   \DeclareMathOperator{\arsech}{arsech}
   \DeclareMathOperator{\arcsch}{arcsch}
   \newcommand{\Floor}[1]
{\left\lfloor {#1} \right\rfloor}
   \DeclareMathOperator{\floor}{floor}
   \newcommand{\Ceil}[1]
{\left\lceil #1 \right\rceil}
   \DeclareMathOperator{\ceil}{ceil}
 EndPreamble
 

 As the description says, this module simply defines several useful math
 functions that are not available by default (I hope I did not overwrite
 existing LaTeX stuff). There are two versions of the floor and ceil
 functions, the one with a capital letter must be followed by \{xxx}
 where xxx is the number to which it is applied. It provides an aspect
 like in http://en.wikipedia.org/wiki/Floor_function

 I used http://en.wikipedia.org/wiki/List_of_mathematical_functions as a
 reference for the functions I added. And before someone says so, Fourier
 transform and its inverse are not functions, but I do not care ;-)

 I hope this can be helpful to someone. I like this layout module feature
 a lot, I created another one with custom char styles for filenames and
 code, based on Martin Vermeer's logicalmkup.module.

 Small question: should I change the Format 7 to Format 8 ?

 Best regards,

 Olivier

 PS: be careful, some lines are wrapped by the mail agent in the
 description.


Re: example of layout module for LyX 1.6

2008-08-19 Thread Steve Litt
On Tuesday 19 August 2008 13:16, Olivier Ripoll wrote:

 This layout module is simply adding the definitions to the preamble.
 Then, when you type in a formula \erf for instance, it will not be
 interpreted by LyX (unless you use preview-latex stuff). But when
 generating the pdf, they will be correctly interpreted as functions
 (i.e. not in italic, and with a small space afterwards).
 The advantage of having them in a layout module is that you do not have
 to add them in a preamble by hand. Just add the module to the document
 settings, as described in http://wiki.lyx.org/LyX/NewInLyX16#toc4 .

 Of course if someone has any ideas to provide more functionality, any
 idea is welcome (that's the reason for posting the module).

 You can also have layouts that will create text styles or environments,
 and those will appear in some menus automatically. That's how I have
 implemented my filename and code text styles. See the
 logicalmkup.module file for an example or my module below.
 When I add my customstyles.module to the document settings, two
 entries appear in the Edit-Text Style menu for using them. And when I
 use them, LyX correctly change the text style accordingly. Here it is
 for reference:

 ---
 #\DeclareLyXModule{Custom Styles}
 #DescriptionBegin
 #Custom character styles for code, filename.
 #DescriptionEnd

 # Author : Olivier Ripoll (based on layout by Martin Vermeer)

 Format 7

 InsetLayout CharStyle:Filename
   LyxType   charstyle
   LabelString   filename
   LatexType command
   LatexName filename
   Font
 Series  Bold
 Family  Typewriter
   EndFont
   Preamble
   \newcommand{\filename}[1]{\texttt{\textbf{#1}}}
   EndPreamble
 End


 InsetLayout CharStyle:Code
   LyxType   charstyle
   LabelString   code
   LatexType command
   LatexName code
   Font
 Family  Typewriter
   EndFont
   Preamble
   \newcommand{\code}[1]{\texttt{#1}}
   EndPreamble
 End
 ---

 Note that I am pretty sure you can create shortcuts for accessing the
 styles using what is described on the wiki:
 http://wiki.lyx.org/Tips/KeyboardShortcutForCharacterStyles

 Best regards,

 Olivier

Oh,

Maybe I do understand it. Is a layout module just a chunk of debugged 
LyX/LaTeX code that would normally go in a layout file, and gets included in 
the layout file by reference? So you could mix and match layout modules to 
get a more granular modularization, similar to #include in C?

So is it a way to write once, use many times? Is it a way to use 
known-debugged LyX/LaTeX code? And is it a way for all of us to trade 
debugged and tested code without throwing in every silly little feature we 
put in our book?

Thanks

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Lyx cross platform compatability - is there a problem?

2008-08-19 Thread Christian Ridderström

On Tue, 19 Aug 2008, Graham Smith wrote:

As you will see, from my other post, the issue was a leading comma in 
the preamble, setting the Komascript options.


It seems that both the Mac and Linux are forgiving of this syntax error, 
but Windows is not.


So it isn't a Windows issue


Hi Graham,

I'm glad you solved the problem.

regards,
Christian

--
Christian Ridderström, +46-8-768 39 44http://www.md.kth.se/~chr

Re: example of layout module for LyX 1.6

2008-08-19 Thread Christian Ridderström

On Tue, 19 Aug 2008, Steve Litt wrote:


Thanks Oliver,

I still don't understand the underlying philosophy of layout modules:

0) What is a layout module?
1) Why are they better than just writing your own layout file?
2) How do you decide when to use them?
3) By what design methodology do you create them?
4) What are the attributes of a good layout module?
5) What are the attributes of a bad layout module?


Hi Steve,

I personally have no idea, but I suspect the answer can be found by asking 
on the developers' list :-)


Best regards,
/Christian

PS. Once 1.6 is out, I think the layout module should be stored  somewhere 
in the wiki.



On Tuesday 19 August 2008 11:43, Olivier Ripoll wrote:

Hi,

I just wanted to share a simple and probably imperfect layout module for
LyX 1.6. I do not know much about LaTeX, so I used the examples provided
with LyX and google to create this file. I called it
moremathsfunctions.module (it should be placed in the layouts folder
in the lyx 1.6 preference folder of your home directory -- in
Application Data for windows users), and here is the content (between
the dashed lines, so people can comment on the code):


#\DeclareLyXModule{More Maths Functions}
#DescriptionBegin
#Additional functions: erf, erfc, sinc, sgn , missing hyperbolic 
inverse hyperbolic functions,
#Fourier transform  inverse, logarithms in base 10 and 2, floor/ceil
(letters and mathematical
#notation).
#DescriptionEnd

# Author : Olivier Ripoll

Format 7

Requiresamsmath,mathrsfs

AddToPreamble
\DeclareMathOperator{\sinc}{sinc}
\DeclareMathOperator{\sgn}{sgn}
\DeclareMathOperator{\erf}{erf}
\DeclareMathOperator{\erfc}{erfc}
\DeclareMathOperator{\FT}{\mathscr{F}}
\DeclareMathOperator{\iFT}{\mathscr{F}^{-1}}
\DeclareMathOperator{\logten}{log_{10}}
\DeclareMathOperator{\logtwo}{log_2}
\DeclareMathOperator{\sech}{sech}
\DeclareMathOperator{\csch}{csch}
\DeclareMathOperator{\arsinh}{arsinh}
\DeclareMathOperator{\arcosh}{arcosh}
\DeclareMathOperator{\artanh}{artanh}
\DeclareMathOperator{\arcoth}{arcoth}
\DeclareMathOperator{\arsech}{arsech}
\DeclareMathOperator{\arcsch}{arcsch}
\newcommand{\Floor}[1]
 {\left\lfloor {#1} \right\rfloor}
\DeclareMathOperator{\floor}{floor}
\newcommand{\Ceil}[1]
 {\left\lceil #1 \right\rceil}
\DeclareMathOperator{\ceil}{ceil}
EndPreamble


As the description says, this module simply defines several useful math
functions that are not available by default (I hope I did not overwrite
existing LaTeX stuff). There are two versions of the floor and ceil
functions, the one with a capital letter must be followed by \{xxx}
where xxx is the number to which it is applied. It provides an aspect
like in http://en.wikipedia.org/wiki/Floor_function

I used http://en.wikipedia.org/wiki/List_of_mathematical_functions as a
reference for the functions I added. And before someone says so, Fourier
transform and its inverse are not functions, but I do not care ;-)

I hope this can be helpful to someone. I like this layout module feature
a lot, I created another one with custom char styles for filenames and
code, based on Martin Vermeer's logicalmkup.module.

Small question: should I change the Format 7 to Format 8 ?

Best regards,

Olivier

PS: be careful, some lines are wrapped by the mail agent in the
description.





--
Christian Ridderström, +46-8-768 39 44http://www.md.kth.se/~chr

References

2008-08-19 Thread Hesham Kamel
Hello,
I am writing my thesis and each chapter is in a separate folder.
Now, How do you make the references appear in a separate file in the order
they appeared within the chapters?
Thank you

-- 
Hesham


Re: Lyx cross platform compatability - is there a problem?

2008-08-19 Thread Graham Smith

On 19 Aug 2008, at 19:57, Christian Ridderström wrote:


On Tue, 19 Aug 2008, Graham Smith wrote:

As you will see, from my other post, the issue was a leading comma  
in the preamble, setting the Komascript options.


It seems that both the Mac and Linux are forgiving of this syntax  
error, but Windows is not.


So it isn't a Windows issue


Hi Graham,

I'm glad you solved the problem.

regards,
Christian


I'm glad it was that simple.

Graham



file formats

2008-08-19 Thread Florin Oprina
Hi all!
I'm trying to add a new file format in the preferences dialogue.
However, the Add button is greyed out. What am I missing?

Using LyX 1.5.3 on Ubuntu Linux

Thanks in advance.


Re: file formats

2008-08-19 Thread killermike

Florin Oprina wrote:

Hi all!
I'm trying to add a new file format in the preferences dialogue.
However, the Add button is greyed out. What am I missing?
  

This can look a bit confusing at first. You start editing an existing
file format and then click on add.

--
http://www.unmusic.co.uk Michael Reed -- technology, gender, and geek 
culture freelance writer






Re: file formats

2008-08-19 Thread Florin Oprina
Thank you. It is confusing!

However, I've just discovered that it is covered in the documentation
(Appendix B of the user guide). My apologies for not RTFMing before.

Best.

On Wed, Aug 20, 2008 at 12:21 PM, killermike [EMAIL PROTECTED] wrote:
 Florin Oprina wrote:

 Hi all!
 I'm trying to add a new file format in the preferences dialogue.
 However, the Add button is greyed out. What am I missing?


 This can look a bit confusing at first. You start editing an existing
 file format and then click on add.

 --
 http://www.unmusic.co.uk Michael Reed -- technology, gender, and geek
 culture freelance writer






Re: Koma-script letter error on Windows but not on Mac

2008-08-19 Thread Graham Smith

Daniel

On 18 Aug 2008, at 17:32, Daniel Lohmann wrote:



On 18.08.2008, at 18:27, Graham Smith wrote:


I have a letter set up on a Mac, which works fine, but copying it to
Windows and trying to compile gives me the following error:
--
}

You have used \KOMAoptions to set `',
but KOMA-Script does not know any option named `'.
See the KOMA-Script manual for more informations about options and
their values.
-

Is  there something obviously different between the Mac and  
Windows that

could help me solve this problem.



Mac prefers to store text files in UTF-8, while Windows tends to  
use  either 16 bit unicode or ISO with codepages. Another issue are  
line endings. So you often need to convert text files when moving  
from one system to another.


Open the files with a text editor (such as TextWrangler) that can  
"translate" them  to Windows.


I have tried opening in Emacs and Notepad, and saving) and I have  
commented out all the lines and retyped them fresh, but still get the  
same error.  The file compiles OK on Linux as well as the Mac, so yes  
it seems to be something specific to Windows.


My lines of code giving the problem are:

\KOMAoptions{%
,fromalign=right
,fromrule=aftername
,fromlogo=true
,backaddress=false
}

Graham


Daniel




Re: Lyx cross platform compatability - is there a problem?

2008-08-19 Thread Christian Ridderström

On Tue, 19 Aug 2008, Graham Smith wrote:

I have asked in another question (sa far without a solution) about 
problems with getting a Lyx file created on a Mac to compile on Windows 
(it compiles fine on Linux).


As I intend sharing files with a Windows user, is this a common problem, 
and is there any routine methods of avoiding it.  Creating files on 
Macs/Linux that then won't compile on Windows is a major problem for me. 
Indeed, it will force me to stop using Lyx as our main document 
processor, as compatibility is fundamental.


Hi Graham,

I'm forwarding your post to the developers' list. We'd greatly appreciate 
a small example file that demonstrates the problem, can you supply one?


AFAIK, there shouldn't be any cross-platform issues. You may however have 
system compatibility issues, e.g. if some non-standard LaTeX packages that 
your document uses are missing from one of the systems.


Best regards,
Christian

--
Christian Ridderström, +46-8-768 39 44http://www.md.kth.se/~chr

Re: Melissa Woolston/GB/INT/Kelly is out of the office.

2008-08-19 Thread Manveru
Would be nice...

I am wondering who was so funny and add them to the lyx list???

2008/8/19 Steve Litt <[EMAIL PROTECTED]>

> Hi all,
>
> Kelly services UK is at it again, sending a bogus message to everyone who
> sends to the LyX list. Could somebody please just ban all mail coming from
> kellyservices.co.uk?
>
> Thanks
>
> SteveT
>
> --  Forwarded Message  --
>
> Subject: Melissa Woolston/GB/INT/Kelly is out of the office.
> Date: Monday 18 August 2008 20:01
> From: Melissa Woolston <[EMAIL PROTECTED]>
> To: Steve Litt <[EMAIL PROTECTED]>
>
> [...]
>
> ---
>



-- 
Manveru
jabber: [EMAIL PROTECTED]
gg: 1624001
  http://www.manveru.pl


Re: Melissa Woolston/GB/INT/Kelly is out of the office.

2008-08-19 Thread Jürgen Spitzmüller
Manveru wrote:
> Would be nice...
>
> I am wondering who was so funny and add them to the lyx list???

I don't think this is evil intention. Melissa kindly asked for help 
unsubscribing herself, some people assisted her, but obviously they didn't 
succeed.

I have now asked our mailing list maintainer to unsubscribe Melissa from the 
list. I hope this will finish the story.

Jürgen


Re: Melissa Woolston/GB/INT/Kelly is out of the office.

2008-08-19 Thread Manveru
This is not first time, when some unwanted people are subscribed to the
list. Maybe word "unwanted" is inadequate here... let's say they generated
unwanted garbage from time to time. Unanswered question is are they add
themselves some time ago or someone add them mistakenly (evil or not - does
not matter). I think someone should be moderator on this list able to
manually disable or unsubscribe people, who asking about it.

Automated "vacations" and responders do not recognize lists and replies to
everyone who to the list. That is why it is better to have multiple mail
accounts or separation system (procmail based for example).

2008/8/19 Jürgen Spitzmüller <[EMAIL PROTECTED]>

> Manveru wrote:
> > Would be nice...
> >
> > I am wondering who was so funny and add them to the lyx list???
>
> I don't think this is evil intention. Melissa kindly asked for help
> unsubscribing herself, some people assisted her, but obviously they didn't
> succeed.
>
> I have now asked our mailing list maintainer to unsubscribe Melissa from
> the
> list. I hope this will finish the story.
>
> Jürgen
>



-- 
Manveru
jabber: [EMAIL PROTECTED]
gg: 1624001
  http://www.manveru.pl


Re: Lyx cross platform compatability - is there a problem?

2008-08-19 Thread José Matos
On Tuesday 19 August 2008 06:35:32 Graham Smith wrote:
> I have asked in another question (sa far without a solution) about
> problems with getting a Lyx file created on a Mac to compile on
> Windows (it compiles fine on Linux).
>
> As I intend sharing files with a Windows user, is this a common
> problem, and is there any routine methods of avoiding it.  Creating
> files on Macs/Linux that then won't compile on Windows is a major
> problem for me. Indeed, it will force me to stop using Lyx as our
> main document processor, as compatibility is fundamental.

The error message suggests that the culprit is a different version installed 
of Koma between your different systems.

The next step is to identify what causes this difference in behaviour between 
the two versions, because sooner or later the same will happen when other 
systems update the Koma latex classes.

> Many thanks,
>
> Graham
>
> Graham Smith
> [EMAIL PROTECTED]

-- 
José Abílio




Re: Lyx cross platform compatability - is there a problem?

2008-08-19 Thread Graham Smith

On 19 Aug 2008, at 09:16, José Matos wrote:


On Tuesday 19 August 2008 06:35:32 Graham Smith wrote:

I have asked in another question (sa far without a solution) about
problems with getting a Lyx file created on a Mac to compile on
Windows (it compiles fine on Linux).

As I intend sharing files with a Windows user, is this a common
problem, and is there any routine methods of avoiding it.  Creating
files on Macs/Linux that then won't compile on Windows is a major
problem for me. Indeed, it will force me to stop using Lyx as our
main document processor, as compatibility is fundamental.


The error message suggests that the culprit is a different version  
installed

of Koma between your different systems.

The next step is to identify what causes this difference in  
behaviour between
the two versions, because sooner or later the same will happen when  
other

systems update the Koma latex classes.


Thanks, this could well be the case,  on the Mac and ubuntu its  
whatever installed by default, but on Windows, Koma Script wasn't  
installed with Lyx/Miktex and I needed to install Koma Script through  
MikTex, so I assume this will be the latest version, where as it  
might be older version on the Mac and Linux.


However, I realise I don't actually know how to find out the  
versions, or indeed even where the packages are installed on the  
different systems.  I will need to find out.


Graham






Re: Lyx cross platform compatability - is there a problem?

2008-08-19 Thread John McCabe-Dansted
On Tue, Aug 19, 2008 at 5:31 PM, Graham Smith <[EMAIL PROTECTED]> wrote:
> On 19 Aug 2008, at 09:16, José Matos wrote:
>> The error message suggests that the culprit is a different version
>> installed of Koma between your different systems.

> Thanks, this could well be the case,


I think bundling the KomaScript .sty file with the .lyx file may help
if this is the case.

> However, I realise I don't actually know how to find out the versions, or
> indeed even where the packages are installed on the different systems.  I
> will need to find out.

This should be listed in your log file. This can be viewed e.g. by the
menu item Document > LaTeX Log. However LyX does not allow searching
so you can't just do a find ".sty" to get this information unless you
dig around in /tmp/lyx_tmdir?? and open the .log file in a real
text editor/viewer.

-- 
John C. McCabe-Dansted
PhD Student
University of Western Australia


Re: Lyx 1.5.6 on Vista: Classes unavailable

2008-08-19 Thread Andreas K .
edi <[EMAIL PROTECTED]> writes:

> 
> 
> I have Lyx 1.5.6 on Vista. I've installed all packages and all classes as far
> as I know. However, I still see a lot of classes unavailable in the
> "Document ==> Settings ==> Doc. class" settings.


Are you really sure that you have installed all classes? Usually most of the 
non-standard classes has to be installed manually.

Look at Help > LaTeX Configuration. If it says "Found: no" for a class, than 
it is not installed.




Bibiliography

2008-08-19 Thread Hesham Kamel
Hello,
I am writing my thesis and each chapter is in a separate folder.
Now, How do you make the references appear in a separate file in the order
they appeared within the chapters?
Thank you

-- 
Hesham


Re: Lyx cross platform compatability - is there a problem?

2008-08-19 Thread Graham Smith





On 19 Aug 2008, at 10:59, John McCabe-Dansted wrote:

On Tue, Aug 19, 2008 at 5:31 PM, Graham Smith  
<[EMAIL PROTECTED]> wrote:

On 19 Aug 2008, at 09:16, José Matos wrote:

The error message suggests that the culprit is a different version
installed of Koma between your different systems.



Thanks, this could well be the case,



I think bundling the KomaScript .sty file with the .lyx file may help
if this is the case.

However, I realise I don't actually know how to find out the  
versions, or
indeed even where the packages are installed on the different  
systems.  I

will need to find out.


This should be listed in your log file. This can be viewed e.g. by the
menu item Document > LaTeX Log. However LyX does not allow searching
so you can't just do a find ".sty" to get this information unless you
dig around in /tmp/lyx_tmdir?? and open the .log file in a real
text editor/viewer.



Thanks it would seem that it is 2.95b on the Mac and 2.98 on Windows.

Assuming that is indeed the problem.

I'm not sure why editing directly in Windows isn't working

Graham



Re: Koma-script letter error on Windows but not on Mac

2008-08-19 Thread Konrad Hofbauer

Graham Smith wrote:

My lines of code giving the problem are:

\KOMAoptions{%
,fromalign=right
,fromrule=aftername
,fromlogo=true
,backaddress=false
}


Is this LyX-generated code or your own Preamble stuff?

I have not tried, but should there not be a %-sign at the end of each 
line ??? Plus, there is a ',' too much on the first line.
So this is I believe not a cross-platform issue but wrong syntax (which 
happens to be forgiven or not depending on the platform and Koma version).


Try putting everything on one line, i.e.
\KOMAoptions{fromalign=right, fromrule=aftername ,fromlogo=true, 
backaddress=false} and I am almost sure everything works.


HTH,
/Konrad



Re: Lyx cross platform compatability - is there a problem?

2008-08-19 Thread Graham Smith

Christian,

As you will see, from my other post,  the issue was a leading comma  
in the preamble, setting the Komascript options.


It seems that both the Mac and Linux are forgiving of this syntax  
error, but Windows is not.


So it isn't a Windows issue, but a sloppy syntax issue on my part.

Thanks for your help.

Graham

Graham Smith
[EMAIL PROTECTED]

Station Cottage, Station Road
Binegar, Somerset
BA3 4UQ




On 19 Aug 2008, at 07:52, Christian Ridderström wrote:


On Tue, 19 Aug 2008, Graham Smith wrote:

I have asked in another question (sa far without a solution) about  
problems with getting a Lyx file created on a Mac to compile on  
Windows (it compiles fine on Linux).


As I intend sharing files with a Windows user, is this a common  
problem, and is there any routine methods of avoiding it.   
Creating files on Macs/Linux that then won't compile on Windows is  
a major problem for me. Indeed, it will force me to stop using Lyx  
as our main document processor, as compatibility is fundamental.


Hi Graham,

I'm forwarding your post to the developers' list. We'd greatly  
appreciate a small example file that demonstrates the problem, can  
you supply one?


AFAIK, there shouldn't be any cross-platform issues. You may  
however have system compatibility issues, e.g. if some non-standard  
LaTeX packages that your document uses are missing from one of the  
systems.


Best regards,
Christian

--
Christian Ridderström, +46-8-768 39 44http:// 
www.md.kth.se/~chr




Re: Melissa Woolston/GB/INT/Kelly is out of the office.

2008-08-19 Thread Jürgen Spitzmüller
Manveru wrote:
> Unanswered question is are they add
> themselves some time ago or someone add them mistakenly (evil or not - does
> not matter). I think someone should be moderator on this list able to
> manually disable or unsubscribe people, who asking about it.

Actually, she used an envelope sender address, which was -- notabene -- your 
address.

Our mailing list maintainer now unsubscribed that address; maybe you need to 
resubsucribe yourself now.

Quoting Máté Wierld:

> Her envelope sender address was

> manveru at manveru dot pl

> and that's the address that was subscribed to the list.  What users need to
> do is look at the address  the list manager sends the message to.

Jürgen


Re: Melissa Woolston/GB/INT/Kelly is out of the office.

2008-08-19 Thread Jürgen Spitzmüller
Manveru wrote:
> This is my e-mail address, not her.

I know, but as I said, she obviously used your address as an envelope. I'm 
just reporting what our list maintainer told me, I do not know much about 
this stuff myself.

Jürgen


Re: Melissa Woolston/GB/INT/Kelly is out of the office.

2008-08-19 Thread Manveru
2008/8/19 Jürgen Spitzmüller <[EMAIL PROTECTED]>

>
>
> > manveru at manveru dot pl
>
>
>
This is my e-mail address, not her.

-- 
Manveru
jabber: [EMAIL PROTECTED]
gg: 1624001
http://www.manveru.pl


Re: Melissa Woolston/GB/INT/Kelly is out of the office.

2008-08-19 Thread Manveru
And... he removed me... it is good that I am back from vacation.

2008/8/19 Jürgen Spitzmüller <[EMAIL PROTECTED]>

> Manveru wrote:
> > This is my e-mail address, not her.
>
> I know, but as I said, she obviously used your address as an envelope. I'm
> just reporting what our list maintainer told me, I do not know much about
> this stuff myself.
>
> Jürgen
>



-- 
Manveru
jabber: [EMAIL PROTECTED]
gg: 1624001
http://www.manveru.pl


Re: AGU article (SGML) setup

2008-08-19 Thread José Matos
On Thursday 14 August 2008 19:38:24 Brian Larsen wrote:
> I am trying to get a publication ready for Geophysical Research
> Letters, an AGU journal.  I would love to be able to use the AGU
> article (SGML) document class but no matter what I try I can't seem to
> find the right files to put in my LaTeX distro.  Does anyone have any
> hints on this?  I have AGU++ Manuscript and AGU++ JGR working but they
> are not the one that the LyX included template is built one.

I am sorry for taking so long to answer, holidays and so on. :-)

AGU (SGML) does not use any latex backend, it uses instead its own set of 
tools. I am forwarding this message to Martin who is the creator of the AGU 
layout file.

> Thanks.,
>
> Brian

-- 
José Abílio


example of layout module for LyX 1.6

2008-08-19 Thread Olivier Ripoll

Hi,

I just wanted to share a simple and probably imperfect layout module for 
LyX 1.6. I do not know much about LaTeX, so I used the examples provided 
with LyX and google to create this file. I called it 
"moremathsfunctions.module" (it should be placed in the "layouts" folder 
in the lyx 1.6 preference folder of your home directory -- in 
"Application Data" for windows users), and here is the content (between 
the dashed lines, so people can comment on the code):



#\DeclareLyXModule{More Maths Functions}
#DescriptionBegin
#Additional functions: erf, erfc, sinc, sgn , missing hyperbolic & 
inverse hyperbolic functions,
#Fourier transform & inverse, logarithms in base 10 and 2, floor/ceil 
(letters and mathematical

#notation).
#DescriptionEnd

# Author : Olivier Ripoll

Format 7

Requiresamsmath,mathrsfs

AddToPreamble
\DeclareMathOperator{\sinc}{sinc}
\DeclareMathOperator{\sgn}{sgn}
\DeclareMathOperator{\erf}{erf}
\DeclareMathOperator{\erfc}{erfc}
\DeclareMathOperator{\FT}{\mathscr{F}}
\DeclareMathOperator{\iFT}{\mathscr{F}^{-1}}
\DeclareMathOperator{\logten}{log_{10}}
\DeclareMathOperator{\logtwo}{log_2}
\DeclareMathOperator{\sech}{sech}
\DeclareMathOperator{\csch}{csch}
\DeclareMathOperator{\arsinh}{arsinh}
\DeclareMathOperator{\arcosh}{arcosh}
\DeclareMathOperator{\artanh}{artanh}
\DeclareMathOperator{\arcoth}{arcoth}
\DeclareMathOperator{\arsech}{arsech}
\DeclareMathOperator{\arcsch}{arcsch}
\newcommand{\Floor}[1]
 {\left\lfloor {#1} \right\rfloor}
\DeclareMathOperator{\floor}{floor}
\newcommand{\Ceil}[1]
 {\left\lceil #1 \right\rceil}
\DeclareMathOperator{\ceil}{ceil}
EndPreamble


As the description says, this module simply defines several useful math 
functions that are not available by default (I hope I did not overwrite 
existing LaTeX stuff). There are two versions of the "floor" and "ceil" 
functions, the one with a capital letter must be followed by \{xxx} 
where xxx is the number to which it is applied. It provides an aspect 
like in http://en.wikipedia.org/wiki/Floor_function


I used http://en.wikipedia.org/wiki/List_of_mathematical_functions as a 
reference for the functions I added. And before someone says so, Fourier 
transform and its inverse are not functions, but I do not care ;-)


I hope this can be helpful to someone. I like this layout module feature 
a lot, I created another one with custom char styles for filenames and 
code, based on Martin Vermeer's "logicalmkup.module".


Small question: should I change the "Format 7" to "Format 8" ?

Best regards,

Olivier

PS: be careful, some lines are wrapped by the mail agent in the description.



Re: example of layout module for LyX 1.6

2008-08-19 Thread Manveru
I do not have 1.6 yet... but I do not understand how LyX understands how to
handle these new commands? From my understanding these go only to preamble
of document, but how to add these to some buttons on toolbar for example?

2008/8/19 Olivier Ripoll <[EMAIL PROTECTED]>

> Hi,
>
> I just wanted to share a simple and probably imperfect layout module for
> LyX 1.6. I do not know much about LaTeX, so I used the examples provided
> with LyX and google to create this file. I called it
> "moremathsfunctions.module" (it should be placed in the "layouts" folder in
> the lyx 1.6 preference folder of your home directory -- in "Application
> Data" for windows users), and here is the content (between the dashed lines,
> so people can comment on the code):
>
> 
> #\DeclareLyXModule{More Maths Functions}
> #DescriptionBegin
> #Additional functions: erf, erfc, sinc, sgn , missing hyperbolic & inverse
> hyperbolic functions,
> #Fourier transform & inverse, logarithms in base 10 and 2, floor/ceil
> (letters and mathematical
> #notation).
> #DescriptionEnd
>
> # Author : Olivier Ripoll
>
> Format 7
>
> Requiresamsmath,mathrsfs
>
> AddToPreamble
>\DeclareMathOperator{\sinc}{sinc}
>\DeclareMathOperator{\sgn}{sgn}
>\DeclareMathOperator{\erf}{erf}
>\DeclareMathOperator{\erfc}{erfc}
>\DeclareMathOperator{\FT}{\mathscr{F}}
>\DeclareMathOperator{\iFT}{\mathscr{F}^{-1}}
>\DeclareMathOperator{\logten}{log_{10}}
>\DeclareMathOperator{\logtwo}{log_2}
>\DeclareMathOperator{\sech}{sech}
>\DeclareMathOperator{\csch}{csch}
>\DeclareMathOperator{\arsinh}{arsinh}
>\DeclareMathOperator{\arcosh}{arcosh}
>\DeclareMathOperator{\artanh}{artanh}
>\DeclareMathOperator{\arcoth}{arcoth}
>\DeclareMathOperator{\arsech}{arsech}
>\DeclareMathOperator{\arcsch}{arcsch}
>\newcommand{\Floor}[1]
> {\left\lfloor {#1} \right\rfloor}
>\DeclareMathOperator{\floor}{floor}
>\newcommand{\Ceil}[1]
> {\left\lceil #1 \right\rceil}
>\DeclareMathOperator{\ceil}{ceil}
> EndPreamble
> 
>
> As the description says, this module simply defines several useful math
> functions that are not available by default (I hope I did not overwrite
> existing LaTeX stuff). There are two versions of the "floor" and "ceil"
> functions, the one with a capital letter must be followed by \{xxx} where
> xxx is the number to which it is applied. It provides an aspect like in
> http://en.wikipedia.org/wiki/Floor_function
>
> I used http://en.wikipedia.org/wiki/List_of_mathematical_functions as a
> reference for the functions I added. And before someone says so, Fourier
> transform and its inverse are not functions, but I do not care ;-)
>
> I hope this can be helpful to someone. I like this layout module feature a
> lot, I created another one with custom char styles for filenames and code,
> based on Martin Vermeer's "logicalmkup.module".
>
> Small question: should I change the "Format 7" to "Format 8" ?
>
> Best regards,
>
> Olivier
>
> PS: be careful, some lines are wrapped by the mail agent in the
> description.
>
>


-- 
Manveru
jabber: [EMAIL PROTECTED]
gg: 1624001
http://www.manveru.pl


Re: example of layout module for LyX 1.6

2008-08-19 Thread Olivier Ripoll

Manveru wrote:

I do not have 1.6 yet... but I do not understand how LyX understands how to
handle these new commands? From my understanding these go only to preamble
of document, but how to add these to some buttons on toolbar for example?


This layout module is simply adding the definitions to the preamble. 
Then, when you type in a formula \erf for instance, it will not be 
interpreted by LyX (unless you use preview-latex stuff). But when 
generating the pdf, they will be correctly interpreted as functions 
(i.e. not in italic, and with a small space afterwards).
The advantage of having them in a layout module is that you do not have 
to add them in a preamble by hand. Just add the module to the document 
settings, as described in http://wiki.lyx.org/LyX/NewInLyX16#toc4 .


Of course if someone has any ideas to provide more functionality, any 
idea is welcome (that's the reason for posting the module).


You can also have layouts that will create text styles or environments, 
and those will appear in some menus automatically. That's how I have 
implemented my "filename" and "code" text styles. See the 
"logicalmkup.module" file for an example or my module below.
When I add my "customstyles.module" to the document settings, two 
entries appear in the "Edit->Text Style" menu for using them. And when I 
use them, LyX correctly change the text style accordingly. Here it is 
for reference:


---
#\DeclareLyXModule{Custom Styles}
#DescriptionBegin
#Custom character styles for code, filename.
#DescriptionEnd

# Author : Olivier Ripoll (based on layout by Martin Vermeer)

Format 7

InsetLayout CharStyle:Filename
LyxType   charstyle
LabelString   filename
LatexType command
LatexName filename
Font
  Series  Bold
  Family  Typewriter
EndFont
Preamble
\newcommand{\filename}[1]{\texttt{\textbf{#1}}}
EndPreamble
End


InsetLayout CharStyle:Code
LyxType   charstyle
LabelString   code
LatexType command
LatexName code
Font
  Family  Typewriter
EndFont
Preamble
\newcommand{\code}[1]{\texttt{#1}}
EndPreamble
End
---

Note that I am pretty sure you can create shortcuts for accessing the 
styles using what is described on the wiki:

http://wiki.lyx.org/Tips/KeyboardShortcutForCharacterStyles

Best regards,

Olivier


2008/8/19 Olivier Ripoll <[EMAIL PROTECTED]>


Hi,

I just wanted to share a simple and probably imperfect layout module for
LyX 1.6. I do not know much about LaTeX, so I used the examples provided
with LyX and google to create this file. I called it
"moremathsfunctions.module" (it should be placed in the "layouts" folder in
the lyx 1.6 preference folder of your home directory -- in "Application
Data" for windows users), and here is the content (between the dashed lines,
so people can comment on the code):


#\DeclareLyXModule{More Maths Functions}
#DescriptionBegin
#Additional functions: erf, erfc, sinc, sgn , missing hyperbolic & inverse
hyperbolic functions,
#Fourier transform & inverse, logarithms in base 10 and 2, floor/ceil
(letters and mathematical
#notation).
#DescriptionEnd

# Author : Olivier Ripoll

Format 7

Requiresamsmath,mathrsfs

AddToPreamble
   \DeclareMathOperator{\sinc}{sinc}
   \DeclareMathOperator{\sgn}{sgn}
   \DeclareMathOperator{\erf}{erf}
   \DeclareMathOperator{\erfc}{erfc}
   \DeclareMathOperator{\FT}{\mathscr{F}}
   \DeclareMathOperator{\iFT}{\mathscr{F}^{-1}}
   \DeclareMathOperator{\logten}{log_{10}}
   \DeclareMathOperator{\logtwo}{log_2}
   \DeclareMathOperator{\sech}{sech}
   \DeclareMathOperator{\csch}{csch}
   \DeclareMathOperator{\arsinh}{arsinh}
   \DeclareMathOperator{\arcosh}{arcosh}
   \DeclareMathOperator{\artanh}{artanh}
   \DeclareMathOperator{\arcoth}{arcoth}
   \DeclareMathOperator{\arsech}{arsech}
   \DeclareMathOperator{\arcsch}{arcsch}
   \newcommand{\Floor}[1]
{\left\lfloor {#1} \right\rfloor}
   \DeclareMathOperator{\floor}{floor}
   \newcommand{\Ceil}[1]
{\left\lceil #1 \right\rceil}
   \DeclareMathOperator{\ceil}{ceil}
EndPreamble


As the description says, this module simply defines several useful math
functions that are not available by default (I hope I did not overwrite
existing LaTeX stuff). There are two versions of the "floor" and "ceil"
functions, the one with a capital letter must be followed by \{xxx} where
xxx is the number to which it is applied. It provides an aspect like in

Re: example of layout module for LyX 1.6

2008-08-19 Thread Steve Litt
Thanks Oliver,

I still don't understand the underlying philosophy of layout modules:

0) What is a layout module?
1) Why are they better than just writing your own layout file?
2) How do you decide when to use them?
3) By what design methodology do you create them?
4) What are the attributes of a "good" layout module?
5) What are the attributes of a "bad" layout module?

Thanks

SteveT

On Tuesday 19 August 2008 11:43, Olivier Ripoll wrote:
> Hi,
>
> I just wanted to share a simple and probably imperfect layout module for
> LyX 1.6. I do not know much about LaTeX, so I used the examples provided
> with LyX and google to create this file. I called it
> "moremathsfunctions.module" (it should be placed in the "layouts" folder
> in the lyx 1.6 preference folder of your home directory -- in
> "Application Data" for windows users), and here is the content (between
> the dashed lines, so people can comment on the code):
>
> 
> #\DeclareLyXModule{More Maths Functions}
> #DescriptionBegin
> #Additional functions: erf, erfc, sinc, sgn , missing hyperbolic &
> inverse hyperbolic functions,
> #Fourier transform & inverse, logarithms in base 10 and 2, floor/ceil
> (letters and mathematical
> #notation).
> #DescriptionEnd
>
> # Author : Olivier Ripoll
>
> Format 7
>
> Requires  amsmath,mathrsfs
>
> AddToPreamble
>   \DeclareMathOperator{\sinc}{sinc}
>   \DeclareMathOperator{\sgn}{sgn}
>   \DeclareMathOperator{\erf}{erf}
>   \DeclareMathOperator{\erfc}{erfc}
>   \DeclareMathOperator{\FT}{\mathscr{F}}
>   \DeclareMathOperator{\iFT}{\mathscr{F}^{-1}}
>   \DeclareMathOperator{\logten}{log_{10}}
>   \DeclareMathOperator{\logtwo}{log_2}
>   \DeclareMathOperator{\sech}{sech}
>   \DeclareMathOperator{\csch}{csch}
>   \DeclareMathOperator{\arsinh}{arsinh}
>   \DeclareMathOperator{\arcosh}{arcosh}
>   \DeclareMathOperator{\artanh}{artanh}
>   \DeclareMathOperator{\arcoth}{arcoth}
>   \DeclareMathOperator{\arsech}{arsech}
>   \DeclareMathOperator{\arcsch}{arcsch}
>   \newcommand{\Floor}[1]
>{\left\lfloor {#1} \right\rfloor}
>   \DeclareMathOperator{\floor}{floor}
>   \newcommand{\Ceil}[1]
>{\left\lceil #1 \right\rceil}
>   \DeclareMathOperator{\ceil}{ceil}
> EndPreamble
> 
>
> As the description says, this module simply defines several useful math
> functions that are not available by default (I hope I did not overwrite
> existing LaTeX stuff). There are two versions of the "floor" and "ceil"
> functions, the one with a capital letter must be followed by \{xxx}
> where xxx is the number to which it is applied. It provides an aspect
> like in http://en.wikipedia.org/wiki/Floor_function
>
> I used http://en.wikipedia.org/wiki/List_of_mathematical_functions as a
> reference for the functions I added. And before someone says so, Fourier
> transform and its inverse are not functions, but I do not care ;-)
>
> I hope this can be helpful to someone. I like this layout module feature
> a lot, I created another one with custom char styles for filenames and
> code, based on Martin Vermeer's "logicalmkup.module".
>
> Small question: should I change the "Format 7" to "Format 8" ?
>
> Best regards,
>
> Olivier
>
> PS: be careful, some lines are wrapped by the mail agent in the
> description.


Re: example of layout module for LyX 1.6

2008-08-19 Thread Steve Litt
On Tuesday 19 August 2008 13:16, Olivier Ripoll wrote:

> This layout module is simply adding the definitions to the preamble.
> Then, when you type in a formula \erf for instance, it will not be
> interpreted by LyX (unless you use preview-latex stuff). But when
> generating the pdf, they will be correctly interpreted as functions
> (i.e. not in italic, and with a small space afterwards).
> The advantage of having them in a layout module is that you do not have
> to add them in a preamble by hand. Just add the module to the document
> settings, as described in http://wiki.lyx.org/LyX/NewInLyX16#toc4 .
>
> Of course if someone has any ideas to provide more functionality, any
> idea is welcome (that's the reason for posting the module).
>
> You can also have layouts that will create text styles or environments,
> and those will appear in some menus automatically. That's how I have
> implemented my "filename" and "code" text styles. See the
> "logicalmkup.module" file for an example or my module below.
> When I add my "customstyles.module" to the document settings, two
> entries appear in the "Edit->Text Style" menu for using them. And when I
> use them, LyX correctly change the text style accordingly. Here it is
> for reference:
>
> ---
> #\DeclareLyXModule{Custom Styles}
> #DescriptionBegin
> #Custom character styles for code, filename.
> #DescriptionEnd
>
> # Author : Olivier Ripoll (based on layout by Martin Vermeer)
>
> Format 7
>
> InsetLayout CharStyle:Filename
>   LyxType   charstyle
>   LabelString   filename
>   LatexType command
>   LatexName filename
>   Font
> Series  Bold
> Family  Typewriter
>   EndFont
>   Preamble
>   \newcommand{\filename}[1]{\texttt{\textbf{#1}}}
>   EndPreamble
> End
>
>
> InsetLayout CharStyle:Code
>   LyxType   charstyle
>   LabelString   code
>   LatexType command
>   LatexName code
>   Font
> Family  Typewriter
>   EndFont
>   Preamble
>   \newcommand{\code}[1]{\texttt{#1}}
>   EndPreamble
> End
> ---
>
> Note that I am pretty sure you can create shortcuts for accessing the
> styles using what is described on the wiki:
> http://wiki.lyx.org/Tips/KeyboardShortcutForCharacterStyles
>
> Best regards,
>
> Olivier

Oh,

Maybe I do understand it. Is a layout module just a chunk of debugged 
LyX/LaTeX code that would normally go in a layout file, and gets included in 
the layout file by reference? So you could mix and match layout modules to 
get a more granular modularization, similar to #include in C?

So is it a way to write once, use many times? Is it a way to use 
known-debugged LyX/LaTeX code? And is it a way for all of us to trade 
debugged and tested code without throwing in every silly little feature we 
put in our book?

Thanks

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Lyx cross platform compatability - is there a problem?

2008-08-19 Thread Christian Ridderström

On Tue, 19 Aug 2008, Graham Smith wrote:

As you will see, from my other post, the issue was a leading comma in 
the preamble, setting the Komascript options.


It seems that both the Mac and Linux are forgiving of this syntax error, 
but Windows is not.


So it isn't a Windows issue


Hi Graham,

I'm glad you solved the problem.

regards,
Christian

--
Christian Ridderström, +46-8-768 39 44http://www.md.kth.se/~chr

Re: example of layout module for LyX 1.6

2008-08-19 Thread Christian Ridderström

On Tue, 19 Aug 2008, Steve Litt wrote:


Thanks Oliver,

I still don't understand the underlying philosophy of layout modules:

0) What is a layout module?
1) Why are they better than just writing your own layout file?
2) How do you decide when to use them?
3) By what design methodology do you create them?
4) What are the attributes of a "good" layout module?
5) What are the attributes of a "bad" layout module?


Hi Steve,

I personally have no idea, but I suspect the answer can be found by asking 
on the developers' list :-)


Best regards,
/Christian

PS. Once 1.6 is out, I think the layout module should be stored  somewhere 
in the wiki.



On Tuesday 19 August 2008 11:43, Olivier Ripoll wrote:

Hi,

I just wanted to share a simple and probably imperfect layout module for
LyX 1.6. I do not know much about LaTeX, so I used the examples provided
with LyX and google to create this file. I called it
"moremathsfunctions.module" (it should be placed in the "layouts" folder
in the lyx 1.6 preference folder of your home directory -- in
"Application Data" for windows users), and here is the content (between
the dashed lines, so people can comment on the code):


#\DeclareLyXModule{More Maths Functions}
#DescriptionBegin
#Additional functions: erf, erfc, sinc, sgn , missing hyperbolic &
inverse hyperbolic functions,
#Fourier transform & inverse, logarithms in base 10 and 2, floor/ceil
(letters and mathematical
#notation).
#DescriptionEnd

# Author : Olivier Ripoll

Format 7

Requiresamsmath,mathrsfs

AddToPreamble
\DeclareMathOperator{\sinc}{sinc}
\DeclareMathOperator{\sgn}{sgn}
\DeclareMathOperator{\erf}{erf}
\DeclareMathOperator{\erfc}{erfc}
\DeclareMathOperator{\FT}{\mathscr{F}}
\DeclareMathOperator{\iFT}{\mathscr{F}^{-1}}
\DeclareMathOperator{\logten}{log_{10}}
\DeclareMathOperator{\logtwo}{log_2}
\DeclareMathOperator{\sech}{sech}
\DeclareMathOperator{\csch}{csch}
\DeclareMathOperator{\arsinh}{arsinh}
\DeclareMathOperator{\arcosh}{arcosh}
\DeclareMathOperator{\artanh}{artanh}
\DeclareMathOperator{\arcoth}{arcoth}
\DeclareMathOperator{\arsech}{arsech}
\DeclareMathOperator{\arcsch}{arcsch}
\newcommand{\Floor}[1]
 {\left\lfloor {#1} \right\rfloor}
\DeclareMathOperator{\floor}{floor}
\newcommand{\Ceil}[1]
 {\left\lceil #1 \right\rceil}
\DeclareMathOperator{\ceil}{ceil}
EndPreamble


As the description says, this module simply defines several useful math
functions that are not available by default (I hope I did not overwrite
existing LaTeX stuff). There are two versions of the "floor" and "ceil"
functions, the one with a capital letter must be followed by \{xxx}
where xxx is the number to which it is applied. It provides an aspect
like in http://en.wikipedia.org/wiki/Floor_function

I used http://en.wikipedia.org/wiki/List_of_mathematical_functions as a
reference for the functions I added. And before someone says so, Fourier
transform and its inverse are not functions, but I do not care ;-)

I hope this can be helpful to someone. I like this layout module feature
a lot, I created another one with custom char styles for filenames and
code, based on Martin Vermeer's "logicalmkup.module".

Small question: should I change the "Format 7" to "Format 8" ?

Best regards,

Olivier

PS: be careful, some lines are wrapped by the mail agent in the
description.





--
Christian Ridderström, +46-8-768 39 44http://www.md.kth.se/~chr

References

2008-08-19 Thread Hesham Kamel
Hello,
I am writing my thesis and each chapter is in a separate folder.
Now, How do you make the references appear in a separate file in the order
they appeared within the chapters?
Thank you

-- 
Hesham


Re: Lyx cross platform compatability - is there a problem?

2008-08-19 Thread Graham Smith

On 19 Aug 2008, at 19:57, Christian Ridderström wrote:


On Tue, 19 Aug 2008, Graham Smith wrote:

As you will see, from my other post, the issue was a leading comma  
in the preamble, setting the Komascript options.


It seems that both the Mac and Linux are forgiving of this syntax  
error, but Windows is not.


So it isn't a Windows issue


Hi Graham,

I'm glad you solved the problem.

regards,
Christian


I'm glad it was that simple.

Graham



file formats

2008-08-19 Thread Florin Oprina
Hi all!
I'm trying to add a new "file format" in the preferences dialogue.
However, the Add button is greyed out. What am I missing?

Using LyX 1.5.3 on Ubuntu Linux

Thanks in advance.


Re: file formats

2008-08-19 Thread killermike

Florin Oprina wrote:

Hi all!
I'm trying to add a new "file format" in the preferences dialogue.
However, the Add button is greyed out. What am I missing?
  

This can look a bit confusing at first. You start editing an existing
file format and then click on add.

--
http://www.unmusic.co.uk Michael Reed -- technology, gender, and geek 
culture freelance writer






Re: file formats

2008-08-19 Thread Florin Oprina
Thank you. It is confusing!

However, I've just discovered that it is covered in the documentation
(Appendix B of the user guide). My apologies for not RTFMing before.

Best.

On Wed, Aug 20, 2008 at 12:21 PM, killermike <[EMAIL PROTECTED]> wrote:
> Florin Oprina wrote:
>>
>> Hi all!
>> I'm trying to add a new "file format" in the preferences dialogue.
>> However, the Add button is greyed out. What am I missing?
>>
>
> This can look a bit confusing at first. You start editing an existing
> file format and then click on add.
>
> --
> http://www.unmusic.co.uk Michael Reed -- technology, gender, and geek
> culture freelance writer
>
>
>
>