Problem print pdflatex even page

2008-08-11 Thread Waluyo Adi Siswanto
Hi All

I have a problem when printing from viewpdf(pdflatex).
The print result of the even page always shifted to the left (towards outer
margin, it looks like the left margin of the even pages indented  about 12
mm),
therefore when I print double sided, the text area does not match.  The
correct ones is the odd pages.

This behavior does not happen in dvi and ps, the text areas in odd and even
pages are perfectly matched in double sided,
but the printed fonts are less quality compared with pdf print.

How can I get the matched text areas when I print viewpdf(psdflatex).

Thanks
/Adi


Compatibiliy issue with beamer-class and xcolor package

2008-08-11 Thread Literatur Hiwi
Hello!

In Lyx I chose a beamer class to be my document class.

Now I would like to use the xcolor package, hence I entered the following
into the preamble:

 

\usepackage[x11names]{xcolor}



Unfortunately I get the following message once I try to compile my file:

\definecolor
{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
The package xcolor has already been loaded with options:
[]
There has now been an attempt to load it with options
[x11names]
Adding the global options:
,x11names
to your \documentclass declaration may fix this.
Try typing to proceed.



Is there a possibiliy to add the x11names option to the assumably already
loaded xcolor package?

Thanks a lot in advance!

 

Best regards,

 

TJ

 



Re: Compatibiliy issue with beamer-class and xcolor package

2008-08-11 Thread Micha
Try adding it as a document option instead of a package option, I believe
packages use document options they recognize

On Fri, 8 Aug 2008 13:14:46 +0200
Literatur Hiwi [EMAIL PROTECTED] wrote:

 Hello!
 
 In Lyx I chose a beamer class to be my document class.
 
 Now I would like to use the xcolor package, hence I entered the following
 into the preamble:
 
  
 
 \usepackage[x11names]{xcolor}
 
 
 
 Unfortunately I get the following message once I try to compile my file:
 
 \definecolor
 {darkgreen}{cmyk}{0.5, 0, 1, 0.5}
 The package xcolor has already been loaded with options:
 []
 There has now been an attempt to load it with options
 [x11names]
 Adding the global options:
 ,x11names
 to your \documentclass declaration may fix this.
 Try typing to proceed.
 
 
 
 Is there a possibiliy to add the x11names option to the assumably already
 loaded xcolor package?
 
 Thanks a lot in advance!
 
  
 
 Best regards,
 
  
 
 TJ
 
  
 


Re: preview PDF in a lyx file?

2008-08-11 Thread bigblop



bigblop wrote:
 
 When I include an image in my lyx file it is previewed in the lyx file
 just fine when I use png or jpg images. But when I include a PDF it cannot
 be previewed:
 
 Error converting to loadable format
 
 Is there a fix for this?
 


The problem also appears when including EPS.  But the debugger hinted that
there was a mismatch between gs 8.60 and 8.62. I have now updated to gs 8.62
and now EPS are previewed!
-- 
View this message in context: 
http://n2.nabble.com/preview-PDF-in-a-lyx-file--tp683855p685580.html
Sent from the LyX - Users mailing list archive at Nabble.com.



inserting subfigures in lyx 1.6?

2008-08-11 Thread Micha
How do I insert subfigures in lyx 1.6?

I tried inserting another figure in the figure, it shows up as a subfloat:
figure with a caption Sub-Figure a: but when I try to compile the document I
get the error:

no counter [EMAIL PROTECTED]

 \subfloat
   []{
Your command was ignored.
Type  I command return  to replace it with another command,
or  return  to continue without it.


Re: inserting subfigures in lyx 1.6? [solved]

2008-08-11 Thread Micha
sorry, my bad. I had a \usepackage[subfigure] in an included file and it messed
with the lyx subfigure through insert-float-figure

On Mon, 11 Aug 2008 12:48:46 +0300
Micha [EMAIL PROTECTED] wrote:

 How do I insert subfigures in lyx 1.6?
 
 I tried inserting another figure in the figure, it shows up as a subfloat:
 figure with a caption Sub-Figure a: but when I try to compile the document I
 get the error:
 
 no counter [EMAIL PROTECTED]
 
  \subfloat
[]{
 Your command was ignored.
 Type  I command return  to replace it with another command,
 or  return  to continue without it.
 


Re: Problem print pdflatex even page

2008-08-11 Thread Waluyo Adi Siswanto
I just want to add the information regarding this problem.
When I print file to pdf, from viewpdf(pdflatex), then I open this file,
now I can see the shifted text area in every even page (different with
viewpdf), just like what I get from the printer.

Could anyone help me to solve this problem.

/Adi


On Mon, 2008-08-11 at 16:23 +0800, Waluyo Adi Siswanto wrote:
 Hi All
 
 I have a problem when printing from viewpdf(pdflatex).
 The print result of the even page always shifted to the left (towards
 outer margin, it looks like the left margin of the even pages indented
 about 12 mm), 
 therefore when I print double sided, the text area does not match.
 The correct ones is the odd pages.
 
 This behavior does not happen in dvi and ps, the text areas in odd and
 even pages are perfectly matched in double sided,
 but the printed fonts are less quality compared with pdf print.
 
 How can I get the matched text areas when I print viewpdf(psdflatex).
 
 Thanks
 /Adi
 



xcolor package vs. beamer class

2008-08-11 Thread Literatur Hiwi
Hallo!

I am using a beamer class in Lyx and have a problem with applying the xcolor
package to it.

In Latex the command is  \documentclass[xcolor=x11names]{beamer}. How can
I make it work in Lyx?

Thanks!

Best regards, 

TJ



Re: xcolor package vs. beamer class

2008-08-11 Thread Micha
On Mon, 11 Aug 2008 13:00:15 +0200
Literatur Hiwi [EMAIL PROTECTED] wrote:

 Hallo!
 
 I am using a beamer class in Lyx and have a problem with applying the xcolor
 package to it.
 
 In Latex the command is  \documentclass[xcolor=x11names]{beamer}. How can
 I make it work in Lyx?
 
 Thanks!
 
 Best regards, 
 
 TJ
 

under Document-Settings-Document Class
the first drop down box is the document class (you choose beamer there) and the
second line is the document options, you put xcolor=x11names there


Re: different margins

2008-08-11 Thread rgheck

Ark wrote:

Hi!
In my document I need the first page in every chapter with different margins
than the rest.  I'm a novel LyX user and I'm not sure how to achieve this.
I would appreciate any help.

  

Which document class are you using?

rh



Re: Problem print pdflatex even page

2008-08-11 Thread rgheck

Waluyo Adi Siswanto wrote:

I just want to add the information regarding this problem.
When I print file to pdf, from viewpdf(pdflatex), then I open this file,
now I can see the shifted text area in every even page (different with
viewpdf), just like what I get from the printer.

Could anyone help me to solve this problem.

  
It sounds as if you are set to print double-sided, in which case this is 
normal. Just turn off double-sided printing, in DocumentSettingsPage 
LayoutTwo-sided Document.


rh



Re: Problem print pdflatex even page

2008-08-11 Thread Waluyo Adi Siswanto
 

 It sounds as if you are set to print double-sided, in which case this is 
 normal. Just turn off double-sided printing, in DocumentSettingsPage 
 LayoutTwo-sided Document.
 
 rh
 
If I disable two-sided, the there is no problem, the text area will be
printed in the at the center of the page, it does not differentiate
between odd and even number. But one-side is not applicable in a book
document, the odd and even headings are different, chapter always
written in odd page.
Actually the class that I have chosen (book KOMA-script, option DIV9)
does perfectly, it shows a correct pdf view, but when I print, I get
shifted text area of even pages.

I just recently tested two documents form help (did not change anything,
only view and print)
1. User Guide (book KOMA-script, two-sided)
   in view pdflatex, it shows a correct margin setting,
   but when it is printed, the even pages also shifted.
   ==you can try to print for example page 1 and page 2, two-sided,
 you will see page 2 shifted)
2. Introduction (book, two-sided)
   view pdflatex and print result perfectly matched.

I tried other documents in help, they behave similarly, KOMA-script
does not print as the view pdf.

I still need further discussion as I have not found a way to solve this.
Please let me now if this problem occurs only to me(need to
reinstall?)

I am using LyX 1.5.5 in Ubuntu 8.04 .. 
not expert in LaTeX, just LyX user since months ago

Thanks
/Adi





Re: different margins

2008-08-11 Thread Waluyo Adi Siswanto
On Sun, 2008-08-10 at 22:02 -0500, Ark wrote:
 Hi!
 In my document I need the first page in every chapter with different margins
 than the rest.  I'm a novel LyX user and I'm not sure how to achieve this.
 I would appreciate any help.
 
 Thanks

If you are using a book or book KOMA-script class, the first page of
each chapter (by selecting the Chapter environment) will be  treated
differently.
Just have a try...

/Adi



Re: different margins

2008-08-11 Thread Robert Orr
Include this in ERT

\setlength{\evensidemargin}{-1cm}
\setlength{\oddsidemargin}{-1cm}




--- On Mon, 8/11/08, rgheck [EMAIL PROTECTED] wrote:

 From: rgheck [EMAIL PROTECTED]
 Subject: Re: different margins
 To: Ark [EMAIL PROTECTED]
 Cc: lyx-users@lists.lyx.org
 Date: Monday, August 11, 2008, 8:43 AM
 Ark wrote:
  Hi!
  In my document I need the first page in every chapter
 with different margins
  than the rest.  I'm a novel LyX user and I'm
 not sure how to achieve this.
  I would appreciate any help.
 

 Which document class are you using?
 
 rh


  


Re: math tool

2008-08-11 Thread Michael Wojcik

Christian Ridderström wrote:

On Fri, 8 Aug 2008, Abdelrazak Younes wrote:


[Sometimes I don't get Abdel's messages to the list. I only see them 
when someone quotes them, as Christian did here. I don't know why. 
They're not getting caught by Thunderbird's spam filter; and it only 
happens to some of them. I haven't noticed any other missing lyx-users 
messages. Odd.]


I don't think you missed anything. And we'd be delighted to have you 
within the development team :-)


I keep meaning to pull the sources from Subversion and take a look. 
I've just been too busy between work and this part-time Master's 
degree I'm working on.


What I really *should* do is send in a financial contribution.

--
Michael Wojcik
Micro Focus
Rhetoric  Writing, Michigan State University



how to convert bib file with valid escape sequence

2008-08-11 Thread Abe Lau
As pointed out by Juergen, I should save my bibtex file as latin1 encoding
because I would likely get into problem with a UTF-8 encoded bibliography.
He further pointed out I should get all non-ascii character escaped.

I resaved my existing bibliography in JabRef using latin-1 encoding, and all
my child document works fine.  The problem arise when I build from my master
document, and I get tons of error:

e.g. Missing $ inserted.
..  Surg Br}, 84-B\penalty0 (SUPP_
  I):\penalty0 65--c,
   \url
Missing \endgroup inserted
   {http://proceedings.ieee/cgi/content/abstract/84-B/SUPP_I/...
The control sequence at the end of the top line
Latex Error: Lonely Item -- Perhaps a missing \list environment
etc

It looks like it is because my bib is not properly escaped.  I am wondering
what is the best way to apply proper escape sequence to existing
bibliography database (~200 entries).  Juergen suggested using recode
l1..ltex myfile.bib but mentioned there maybe chance that it mis-transform
\ to \backslash.

Despite the backslash problem (-d option just give me Recoding
reference_articles.bib... failed: Untranslatable input in step
`ISO-8859-1..LaTeX', and failed to convert), my doc now compiles without
error.

At the same time, all my bibliography attached at the end of the doc is
almost empty with a few a. b. c. as the first character!

and my bib is formatted like this:
@ARTICLE\{someone2008,
  author = \{someone\},
  title = \{The title\},
  journal = \{J something\},
  year = \{2008\},

Any insight on how I should fix the problem, or deal with the problem is
very much appreciated.
Abe


Re: I'm unable to add a language to the listing package

2008-08-11 Thread Daniel Lohmann


On 10.08.2008, at 18:24, Paul A. Rubin wrote:


Steve Burton wrote:


I tried using ERT. If I got it wrong Lyx crashed.


If that's reproducible, it should probably be entered into bugzilla.


If I got it right it
worked until I closed Lyx. When the document was re-opened Lyx  
spotted

the  listings stuff but didn't understand the language. Return to Go,
go directly to Go, do not collect £200!


When you reopened the doc, did LyX convert your ERT listings stuff  
to a listings inset??  If so, that can probably be worked around.   
You could load the listings package in the preamble and add a new  
environment (say mylistings) that simply begins/ends a listings  
environment with your new language selected.  Then use  
\begin{mylistings}...\end{mylistings} in ERT.  I doubt LyX would  
make any attempt to convert that.


I do not think that this is the problem. I used to use listings in ERT  
all the time and LyX never converted it automagically. I only  
recently switched to the listings inset, so in many of my documents  
ERT-based listings and listing insets now happily co-exist. I also use  
an own language.


A better workaround:

Load (or define) your language in the preamble. In the listings inset  
select No language, go to the Advanced page and directly pass the  
language= parameter to listings.


Daniel

Re[2]: I'm unable to add a language to the listing package

2008-08-11 Thread Steve Burton
 Steve Burton wrote:
 Hi,

 I've  just spent an afternoon and evening failing to add a language to
 listings. This is what I have:

 Lyx 1.5.6 with MiKTeX 2.7 running on Windows XP.

 I   have  written  a  language  definition  to  highlight  Cisco  IOS
 configurations and :-

 put   it   in   a   file   lstlang0.sty  in  C:\Program  Files\MiKTeX
 2.7\tex\latex\listings,  refreshed  the FNDB and formats in MiKTeX and
 reconfigured Lyx. It doesn't appear in the language drop down.

 Added  the definition to an existing .sty refreshed and reconfigured -
 same result.

 Moved  the  files  in  the  listing directory above to somewhere else.
 Refreshed and reconfigured and Lyx put them back! Same result.

 I  have read the listing documentation, searched the Lyx users archive
 and googled extensively but I'm no further forward.

 I  realize  that  I've  done  wrong and that I'm probably stupid but I
 can't trigger as much as an error message.

 Any  help  or  pointers  would  be  appreciated  before  my  mind goes
 completely.

 Steve.


   
 This should work, as I'm using it extensively. If you define the 
 language in the preamble like:

 \usepackage[usenames]{color}

 \definecolor{darkgreen}{rgb}{0.3,0.5,0.3}

 \definecolor{darkblue}{rgb}{0.3,0.3,0.5}

 \definecolor{darkred}{rgb}{0.5,0.3,0.3}

 \definecolor{darkcyan}{rgb}{0.3,0.5,0.5}


 \lstdefinelanguage{LUA}{%

 sensitive=true,%

 columns=fixed,%

 keywordstyle=[1]{\color{darkblue}\bfseries},%

 keywordstyle=[2]{\color{darkgreen}\bfseries},%

 morekeywords=[1]{local,if,then,else,end,while,do,function,coroutine,yield},%
 Official LUA keywords

 morekeywords=[2]{},% Your private keywords

 otherkeywords={.,=,~,*,,:},%

 morestring=[b],%

 stringstyle={\color{darkred}\itshape},%

 breaklines=true,%

 linewidth=\textwidth,%

 comment=[l]{--}%

 }


 You can set it as language in the inline or external listing by using
 language=LUA and bypassing validation.


 Marc Flerackers

Marc,

I've  played  with  this  and it's just what I need. Now I can produce
truly   ghastly   multicoloured   listings   at  the drop of a hat. Is
there a blink tag?

It would be nice though if Lyx picked up the language definitions from
lstlangx.sty.

Thanks to all for helpful advice and solutions.

Steve.





Tutorial Published on Using XSL stylesheets to fix lyX's Docbook XML implementation

2008-08-11 Thread Chad A.
Hi,

I have published a tutorial on how to use lyX to produce Docbook XML which
can be transformed into XHTML or PDF documents.  The tutorial shows how to
leverage XML technologies, such as XSL, to create customized versions of
Docbook XSL stylesheets that fix some of lyX's Docbook problems.

The tutorial, with source code, has been posted here:
http://www.neomantic.com/tutorials/lyx-and-docbookXML

Any feedback would be greatly appreciated,
Chad
http://www.neomantic.com/tutorials/lyx-and-docbookXML/
-- 
Chad A.
http://www.neomantic.com


Re: math tool

2008-08-11 Thread Christian Ridderström

On Mon, 11 Aug 2008, Michael Wojcik wrote:


Christian Ridderström wrote:

 On Fri, 8 Aug 2008, Abdelrazak Younes wrote:


[Sometimes I don't get Abdel's messages to the list. I only see them 
when someone quotes them, as Christian did here. I don't know why. 
They're not getting caught by Thunderbird's spam filter; and it only 
happens to some of them. I haven't noticed any other missing lyx-users 
messages. Odd.]


What if you check for the messages on gmane? (The news interface). Do you 
see them there?


  I don't think you missed anything. And we'd be delighted to have you 
  within the development team :-)


I keep meaning to pull the sources from Subversion and take a look. I've 
just been too busy between work and this part-time Master's degree I'm 
working on.


Try doing easy/shorter things then. Getting into the code can be a lot to 
start with, and if the threshold is to high, you never get around to it 
:-)


For instance, pick an unconfirmed bug from bugzilla and try to replicate 
it and thus confirming it. That does help.


Or you could create a LyX example, illustrating something and then put it 
on the wiki. Or create a screencast?


I think the important thing is that you pick something that you'll enjoy 
doing (or that teaches you something you want to learn).


regards
/Christian

By the way, trying to fix some of the minor bugs doesn't have to be that 
difficult.


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

Re: math tool

2008-08-11 Thread Christian Ridderström

On Mon, 11 Aug 2008, Michael Wojcik wrote:


Christian Ridderström wrote:

 On Fri, 8 Aug 2008, Abdelrazak Younes wrote:


[Sometimes I don't get Abdel's messages to the list. I only see them when 
someone quotes them, as Christian did here. I don't know why. They're not 
getting caught by Thunderbird's spam filter; and it only happens to some of 
them. I haven't noticed any other missing lyx-users messages. Odd.]


  I don't think you missed anything. And we'd be delighted to have you 
  within the development team :-)


I keep meaning to pull the sources from Subversion and take a look. I've just 
been too busy between work and this part-time Master's degree I'm working on.



Michael Wojcik
Micro Focus
Rhetoric  Writing, Michigan State University


Umm... given your signature, improving the documentation seems like a good 
candidate. Either the help documents, or the wiki. Just some ideas..


Or perhaps preparing good arguments for why LyX is a good choice:-)

/Christian

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

Re: Tutorial Published on Using XSL stylesheets to fix lyX's Docbook XML implementation

2008-08-11 Thread Christian Ridderström

On Mon, 11 Aug 2008, Chad A. wrote:

The tutorial, with source code, has been posted here: 
http://www.neomantic.com/tutorials/lyx-and-docbookXML


What do think of hosting it on the LyX wiki? (Either moving it, or just 
mirroring it there).


/Christian

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

Re: Problem print pdflatex even page

2008-08-11 Thread Waluyo Adi Siswanto
Report:

I did try in Windows XP SP3 (LyX version 1.5.6):
I got perfectly matched even and odd pages for KOMA-script, when I
print two-sided.
So.. for the time being: I work in Ubuntu and print using Windows.
Maybe after I finish this book.. I will try 1.6 in Ubuntu

/Adi



On Mon, Aug 11, 2008 at 10:27 PM, Waluyo Adi Siswanto [EMAIL PROTECTED]wrote:

  
  
  It sounds as if you are set to print double-sided, in which case this is
  normal. Just turn off double-sided printing, in DocumentSettingsPage
  LayoutTwo-sided Document.
 
  rh
 
 If I disable two-sided, the there is no problem, the text area will be
 printed in the at the center of the page, it does not differentiate
 between odd and even number. But one-side is not applicable in a book
 document, the odd and even headings are different, chapter always
 written in odd page.
 Actually the class that I have chosen (book KOMA-script, option DIV9)
 does perfectly, it shows a correct pdf view, but when I print, I get
 shifted text area of even pages.

 I just recently tested two documents form help (did not change anything,
 only view and print)
 1. User Guide (book KOMA-script, two-sided)
   in view pdflatex, it shows a correct margin setting,
   but when it is printed, the even pages also shifted.
   ==you can try to print for example page 1 and page 2, two-sided,
 you will see page 2 shifted)
 2. Introduction (book, two-sided)
   view pdflatex and print result perfectly matched.

 I tried other documents in help, they behave similarly, KOMA-script
 does not print as the view pdf.

 I still need further discussion as I have not found a way to solve this.
 Please let me now if this problem occurs only to me(need to
 reinstall?)

 I am using LyX 1.5.5 in Ubuntu 8.04 ..
 not expert in LaTeX, just LyX user since months ago

 Thanks
 /Adi






-- 
Waluyo Adi Siswanto, PhD
Dept. Engineering Mechanics
Univ. Tun Hussein Onn Malaysia (UTHM)
http://www.uthm.edu.my


How to get Springer class working?

2008-08-11 Thread Sengly Heng
Dear all,

I am looking for help in getting a springer class works. I have searched
through the web and the forum and tried to modified this and that but still
I could not manage to get it working. There is always this message:

Warning: Document class not available

The layout file requested by this document,
llncs.layout,
is not usable. This is probably because a LaTeX
class or style file required by it is not
available. See the Customization documentation
for more information.
LyX will not be able to produce output.

Please share your experience.

Thank you.

Regards,

Sengly


Problem print pdflatex even page

2008-08-11 Thread Waluyo Adi Siswanto
Hi All

I have a problem when printing from viewpdf(pdflatex).
The print result of the even page always shifted to the left (towards outer
margin, it looks like the left margin of the even pages indented  about 12
mm),
therefore when I print double sided, the text area does not match.  The
correct ones is the odd pages.

This behavior does not happen in dvi and ps, the text areas in odd and even
pages are perfectly matched in double sided,
but the printed fonts are less quality compared with pdf print.

How can I get the matched text areas when I print viewpdf(psdflatex).

Thanks
/Adi


Compatibiliy issue with beamer-class and xcolor package

2008-08-11 Thread Literatur Hiwi
Hello!

In Lyx I chose a beamer class to be my document class.

Now I would like to use the xcolor package, hence I entered the following
into the preamble:

 

\usepackage[x11names]{xcolor}



Unfortunately I get the following message once I try to compile my file:

\definecolor
{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
The package xcolor has already been loaded with options:
[]
There has now been an attempt to load it with options
[x11names]
Adding the global options:
,x11names
to your \documentclass declaration may fix this.
Try typing to proceed.



Is there a possibiliy to add the x11names option to the assumably already
loaded xcolor package?

Thanks a lot in advance!

 

Best regards,

 

TJ

 



Re: Compatibiliy issue with beamer-class and xcolor package

2008-08-11 Thread Micha
Try adding it as a document option instead of a package option, I believe
packages use document options they recognize

On Fri, 8 Aug 2008 13:14:46 +0200
Literatur Hiwi [EMAIL PROTECTED] wrote:

 Hello!
 
 In Lyx I chose a beamer class to be my document class.
 
 Now I would like to use the xcolor package, hence I entered the following
 into the preamble:
 
  
 
 \usepackage[x11names]{xcolor}
 
 
 
 Unfortunately I get the following message once I try to compile my file:
 
 \definecolor
 {darkgreen}{cmyk}{0.5, 0, 1, 0.5}
 The package xcolor has already been loaded with options:
 []
 There has now been an attempt to load it with options
 [x11names]
 Adding the global options:
 ,x11names
 to your \documentclass declaration may fix this.
 Try typing to proceed.
 
 
 
 Is there a possibiliy to add the x11names option to the assumably already
 loaded xcolor package?
 
 Thanks a lot in advance!
 
  
 
 Best regards,
 
  
 
 TJ
 
  
 


Re: preview PDF in a lyx file?

2008-08-11 Thread bigblop



bigblop wrote:
 
 When I include an image in my lyx file it is previewed in the lyx file
 just fine when I use png or jpg images. But when I include a PDF it cannot
 be previewed:
 
 Error converting to loadable format
 
 Is there a fix for this?
 


The problem also appears when including EPS.  But the debugger hinted that
there was a mismatch between gs 8.60 and 8.62. I have now updated to gs 8.62
and now EPS are previewed!
-- 
View this message in context: 
http://n2.nabble.com/preview-PDF-in-a-lyx-file--tp683855p685580.html
Sent from the LyX - Users mailing list archive at Nabble.com.



inserting subfigures in lyx 1.6?

2008-08-11 Thread Micha
How do I insert subfigures in lyx 1.6?

I tried inserting another figure in the figure, it shows up as a subfloat:
figure with a caption Sub-Figure a: but when I try to compile the document I
get the error:

no counter [EMAIL PROTECTED]

 \subfloat
   []{
Your command was ignored.
Type  I command return  to replace it with another command,
or  return  to continue without it.


Re: inserting subfigures in lyx 1.6? [solved]

2008-08-11 Thread Micha
sorry, my bad. I had a \usepackage[subfigure] in an included file and it messed
with the lyx subfigure through insert-float-figure

On Mon, 11 Aug 2008 12:48:46 +0300
Micha [EMAIL PROTECTED] wrote:

 How do I insert subfigures in lyx 1.6?
 
 I tried inserting another figure in the figure, it shows up as a subfloat:
 figure with a caption Sub-Figure a: but when I try to compile the document I
 get the error:
 
 no counter [EMAIL PROTECTED]
 
  \subfloat
[]{
 Your command was ignored.
 Type  I command return  to replace it with another command,
 or  return  to continue without it.
 


Re: Problem print pdflatex even page

2008-08-11 Thread Waluyo Adi Siswanto
I just want to add the information regarding this problem.
When I print file to pdf, from viewpdf(pdflatex), then I open this file,
now I can see the shifted text area in every even page (different with
viewpdf), just like what I get from the printer.

Could anyone help me to solve this problem.

/Adi


On Mon, 2008-08-11 at 16:23 +0800, Waluyo Adi Siswanto wrote:
 Hi All
 
 I have a problem when printing from viewpdf(pdflatex).
 The print result of the even page always shifted to the left (towards
 outer margin, it looks like the left margin of the even pages indented
 about 12 mm), 
 therefore when I print double sided, the text area does not match.
 The correct ones is the odd pages.
 
 This behavior does not happen in dvi and ps, the text areas in odd and
 even pages are perfectly matched in double sided,
 but the printed fonts are less quality compared with pdf print.
 
 How can I get the matched text areas when I print viewpdf(psdflatex).
 
 Thanks
 /Adi
 



xcolor package vs. beamer class

2008-08-11 Thread Literatur Hiwi
Hallo!

I am using a beamer class in Lyx and have a problem with applying the xcolor
package to it.

In Latex the command is  \documentclass[xcolor=x11names]{beamer}. How can
I make it work in Lyx?

Thanks!

Best regards, 

TJ



Re: xcolor package vs. beamer class

2008-08-11 Thread Micha
On Mon, 11 Aug 2008 13:00:15 +0200
Literatur Hiwi [EMAIL PROTECTED] wrote:

 Hallo!
 
 I am using a beamer class in Lyx and have a problem with applying the xcolor
 package to it.
 
 In Latex the command is  \documentclass[xcolor=x11names]{beamer}. How can
 I make it work in Lyx?
 
 Thanks!
 
 Best regards, 
 
 TJ
 

under Document-Settings-Document Class
the first drop down box is the document class (you choose beamer there) and the
second line is the document options, you put xcolor=x11names there


Re: different margins

2008-08-11 Thread rgheck

Ark wrote:

Hi!
In my document I need the first page in every chapter with different margins
than the rest.  I'm a novel LyX user and I'm not sure how to achieve this.
I would appreciate any help.

  

Which document class are you using?

rh



Re: Problem print pdflatex even page

2008-08-11 Thread rgheck

Waluyo Adi Siswanto wrote:

I just want to add the information regarding this problem.
When I print file to pdf, from viewpdf(pdflatex), then I open this file,
now I can see the shifted text area in every even page (different with
viewpdf), just like what I get from the printer.

Could anyone help me to solve this problem.

  
It sounds as if you are set to print double-sided, in which case this is 
normal. Just turn off double-sided printing, in DocumentSettingsPage 
LayoutTwo-sided Document.


rh



Re: Problem print pdflatex even page

2008-08-11 Thread Waluyo Adi Siswanto
 

 It sounds as if you are set to print double-sided, in which case this is 
 normal. Just turn off double-sided printing, in DocumentSettingsPage 
 LayoutTwo-sided Document.
 
 rh
 
If I disable two-sided, the there is no problem, the text area will be
printed in the at the center of the page, it does not differentiate
between odd and even number. But one-side is not applicable in a book
document, the odd and even headings are different, chapter always
written in odd page.
Actually the class that I have chosen (book KOMA-script, option DIV9)
does perfectly, it shows a correct pdf view, but when I print, I get
shifted text area of even pages.

I just recently tested two documents form help (did not change anything,
only view and print)
1. User Guide (book KOMA-script, two-sided)
   in view pdflatex, it shows a correct margin setting,
   but when it is printed, the even pages also shifted.
   ==you can try to print for example page 1 and page 2, two-sided,
 you will see page 2 shifted)
2. Introduction (book, two-sided)
   view pdflatex and print result perfectly matched.

I tried other documents in help, they behave similarly, KOMA-script
does not print as the view pdf.

I still need further discussion as I have not found a way to solve this.
Please let me now if this problem occurs only to me(need to
reinstall?)

I am using LyX 1.5.5 in Ubuntu 8.04 .. 
not expert in LaTeX, just LyX user since months ago

Thanks
/Adi





Re: different margins

2008-08-11 Thread Waluyo Adi Siswanto
On Sun, 2008-08-10 at 22:02 -0500, Ark wrote:
 Hi!
 In my document I need the first page in every chapter with different margins
 than the rest.  I'm a novel LyX user and I'm not sure how to achieve this.
 I would appreciate any help.
 
 Thanks

If you are using a book or book KOMA-script class, the first page of
each chapter (by selecting the Chapter environment) will be  treated
differently.
Just have a try...

/Adi



Re: different margins

2008-08-11 Thread Robert Orr
Include this in ERT

\setlength{\evensidemargin}{-1cm}
\setlength{\oddsidemargin}{-1cm}




--- On Mon, 8/11/08, rgheck [EMAIL PROTECTED] wrote:

 From: rgheck [EMAIL PROTECTED]
 Subject: Re: different margins
 To: Ark [EMAIL PROTECTED]
 Cc: lyx-users@lists.lyx.org
 Date: Monday, August 11, 2008, 8:43 AM
 Ark wrote:
  Hi!
  In my document I need the first page in every chapter
 with different margins
  than the rest.  I'm a novel LyX user and I'm
 not sure how to achieve this.
  I would appreciate any help.
 

 Which document class are you using?
 
 rh


  


Re: math tool

2008-08-11 Thread Michael Wojcik

Christian Ridderström wrote:

On Fri, 8 Aug 2008, Abdelrazak Younes wrote:


[Sometimes I don't get Abdel's messages to the list. I only see them 
when someone quotes them, as Christian did here. I don't know why. 
They're not getting caught by Thunderbird's spam filter; and it only 
happens to some of them. I haven't noticed any other missing lyx-users 
messages. Odd.]


I don't think you missed anything. And we'd be delighted to have you 
within the development team :-)


I keep meaning to pull the sources from Subversion and take a look. 
I've just been too busy between work and this part-time Master's 
degree I'm working on.


What I really *should* do is send in a financial contribution.

--
Michael Wojcik
Micro Focus
Rhetoric  Writing, Michigan State University



how to convert bib file with valid escape sequence

2008-08-11 Thread Abe Lau
As pointed out by Juergen, I should save my bibtex file as latin1 encoding
because I would likely get into problem with a UTF-8 encoded bibliography.
He further pointed out I should get all non-ascii character escaped.

I resaved my existing bibliography in JabRef using latin-1 encoding, and all
my child document works fine.  The problem arise when I build from my master
document, and I get tons of error:

e.g. Missing $ inserted.
..  Surg Br}, 84-B\penalty0 (SUPP_
  I):\penalty0 65--c,
   \url
Missing \endgroup inserted
   {http://proceedings.ieee/cgi/content/abstract/84-B/SUPP_I/...
The control sequence at the end of the top line
Latex Error: Lonely Item -- Perhaps a missing \list environment
etc

It looks like it is because my bib is not properly escaped.  I am wondering
what is the best way to apply proper escape sequence to existing
bibliography database (~200 entries).  Juergen suggested using recode
l1..ltex myfile.bib but mentioned there maybe chance that it mis-transform
\ to \backslash.

Despite the backslash problem (-d option just give me Recoding
reference_articles.bib... failed: Untranslatable input in step
`ISO-8859-1..LaTeX', and failed to convert), my doc now compiles without
error.

At the same time, all my bibliography attached at the end of the doc is
almost empty with a few a. b. c. as the first character!

and my bib is formatted like this:
@ARTICLE\{someone2008,
  author = \{someone\},
  title = \{The title\},
  journal = \{J something\},
  year = \{2008\},

Any insight on how I should fix the problem, or deal with the problem is
very much appreciated.
Abe


Re: I'm unable to add a language to the listing package

2008-08-11 Thread Daniel Lohmann


On 10.08.2008, at 18:24, Paul A. Rubin wrote:


Steve Burton wrote:


I tried using ERT. If I got it wrong Lyx crashed.


If that's reproducible, it should probably be entered into bugzilla.


If I got it right it
worked until I closed Lyx. When the document was re-opened Lyx  
spotted

the  listings stuff but didn't understand the language. Return to Go,
go directly to Go, do not collect £200!


When you reopened the doc, did LyX convert your ERT listings stuff  
to a listings inset??  If so, that can probably be worked around.   
You could load the listings package in the preamble and add a new  
environment (say mylistings) that simply begins/ends a listings  
environment with your new language selected.  Then use  
\begin{mylistings}...\end{mylistings} in ERT.  I doubt LyX would  
make any attempt to convert that.


I do not think that this is the problem. I used to use listings in ERT  
all the time and LyX never converted it automagically. I only  
recently switched to the listings inset, so in many of my documents  
ERT-based listings and listing insets now happily co-exist. I also use  
an own language.


A better workaround:

Load (or define) your language in the preamble. In the listings inset  
select No language, go to the Advanced page and directly pass the  
language= parameter to listings.


Daniel

Re[2]: I'm unable to add a language to the listing package

2008-08-11 Thread Steve Burton
 Steve Burton wrote:
 Hi,

 I've  just spent an afternoon and evening failing to add a language to
 listings. This is what I have:

 Lyx 1.5.6 with MiKTeX 2.7 running on Windows XP.

 I   have  written  a  language  definition  to  highlight  Cisco  IOS
 configurations and :-

 put   it   in   a   file   lstlang0.sty  in  C:\Program  Files\MiKTeX
 2.7\tex\latex\listings,  refreshed  the FNDB and formats in MiKTeX and
 reconfigured Lyx. It doesn't appear in the language drop down.

 Added  the definition to an existing .sty refreshed and reconfigured -
 same result.

 Moved  the  files  in  the  listing directory above to somewhere else.
 Refreshed and reconfigured and Lyx put them back! Same result.

 I  have read the listing documentation, searched the Lyx users archive
 and googled extensively but I'm no further forward.

 I  realize  that  I've  done  wrong and that I'm probably stupid but I
 can't trigger as much as an error message.

 Any  help  or  pointers  would  be  appreciated  before  my  mind goes
 completely.

 Steve.


   
 This should work, as I'm using it extensively. If you define the 
 language in the preamble like:

 \usepackage[usenames]{color}

 \definecolor{darkgreen}{rgb}{0.3,0.5,0.3}

 \definecolor{darkblue}{rgb}{0.3,0.3,0.5}

 \definecolor{darkred}{rgb}{0.5,0.3,0.3}

 \definecolor{darkcyan}{rgb}{0.3,0.5,0.5}


 \lstdefinelanguage{LUA}{%

 sensitive=true,%

 columns=fixed,%

 keywordstyle=[1]{\color{darkblue}\bfseries},%

 keywordstyle=[2]{\color{darkgreen}\bfseries},%

 morekeywords=[1]{local,if,then,else,end,while,do,function,coroutine,yield},%
 Official LUA keywords

 morekeywords=[2]{},% Your private keywords

 otherkeywords={.,=,~,*,,:},%

 morestring=[b],%

 stringstyle={\color{darkred}\itshape},%

 breaklines=true,%

 linewidth=\textwidth,%

 comment=[l]{--}%

 }


 You can set it as language in the inline or external listing by using
 language=LUA and bypassing validation.


 Marc Flerackers

Marc,

I've  played  with  this  and it's just what I need. Now I can produce
truly   ghastly   multicoloured   listings   at  the drop of a hat. Is
there a blink tag?

It would be nice though if Lyx picked up the language definitions from
lstlangx.sty.

Thanks to all for helpful advice and solutions.

Steve.





Tutorial Published on Using XSL stylesheets to fix lyX's Docbook XML implementation

2008-08-11 Thread Chad A.
Hi,

I have published a tutorial on how to use lyX to produce Docbook XML which
can be transformed into XHTML or PDF documents.  The tutorial shows how to
leverage XML technologies, such as XSL, to create customized versions of
Docbook XSL stylesheets that fix some of lyX's Docbook problems.

The tutorial, with source code, has been posted here:
http://www.neomantic.com/tutorials/lyx-and-docbookXML

Any feedback would be greatly appreciated,
Chad
http://www.neomantic.com/tutorials/lyx-and-docbookXML/
-- 
Chad A.
http://www.neomantic.com


Re: math tool

2008-08-11 Thread Christian Ridderström

On Mon, 11 Aug 2008, Michael Wojcik wrote:


Christian Ridderström wrote:

 On Fri, 8 Aug 2008, Abdelrazak Younes wrote:


[Sometimes I don't get Abdel's messages to the list. I only see them 
when someone quotes them, as Christian did here. I don't know why. 
They're not getting caught by Thunderbird's spam filter; and it only 
happens to some of them. I haven't noticed any other missing lyx-users 
messages. Odd.]


What if you check for the messages on gmane? (The news interface). Do you 
see them there?


  I don't think you missed anything. And we'd be delighted to have you 
  within the development team :-)


I keep meaning to pull the sources from Subversion and take a look. I've 
just been too busy between work and this part-time Master's degree I'm 
working on.


Try doing easy/shorter things then. Getting into the code can be a lot to 
start with, and if the threshold is to high, you never get around to it 
:-)


For instance, pick an unconfirmed bug from bugzilla and try to replicate 
it and thus confirming it. That does help.


Or you could create a LyX example, illustrating something and then put it 
on the wiki. Or create a screencast?


I think the important thing is that you pick something that you'll enjoy 
doing (or that teaches you something you want to learn).


regards
/Christian

By the way, trying to fix some of the minor bugs doesn't have to be that 
difficult.


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

Re: math tool

2008-08-11 Thread Christian Ridderström

On Mon, 11 Aug 2008, Michael Wojcik wrote:


Christian Ridderström wrote:

 On Fri, 8 Aug 2008, Abdelrazak Younes wrote:


[Sometimes I don't get Abdel's messages to the list. I only see them when 
someone quotes them, as Christian did here. I don't know why. They're not 
getting caught by Thunderbird's spam filter; and it only happens to some of 
them. I haven't noticed any other missing lyx-users messages. Odd.]


  I don't think you missed anything. And we'd be delighted to have you 
  within the development team :-)


I keep meaning to pull the sources from Subversion and take a look. I've just 
been too busy between work and this part-time Master's degree I'm working on.



Michael Wojcik
Micro Focus
Rhetoric  Writing, Michigan State University


Umm... given your signature, improving the documentation seems like a good 
candidate. Either the help documents, or the wiki. Just some ideas..


Or perhaps preparing good arguments for why LyX is a good choice:-)

/Christian

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

Re: Tutorial Published on Using XSL stylesheets to fix lyX's Docbook XML implementation

2008-08-11 Thread Christian Ridderström

On Mon, 11 Aug 2008, Chad A. wrote:

The tutorial, with source code, has been posted here: 
http://www.neomantic.com/tutorials/lyx-and-docbookXML


What do think of hosting it on the LyX wiki? (Either moving it, or just 
mirroring it there).


/Christian

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

Re: Problem print pdflatex even page

2008-08-11 Thread Waluyo Adi Siswanto
Report:

I did try in Windows XP SP3 (LyX version 1.5.6):
I got perfectly matched even and odd pages for KOMA-script, when I
print two-sided.
So.. for the time being: I work in Ubuntu and print using Windows.
Maybe after I finish this book.. I will try 1.6 in Ubuntu

/Adi



On Mon, Aug 11, 2008 at 10:27 PM, Waluyo Adi Siswanto [EMAIL PROTECTED]wrote:

  
  
  It sounds as if you are set to print double-sided, in which case this is
  normal. Just turn off double-sided printing, in DocumentSettingsPage
  LayoutTwo-sided Document.
 
  rh
 
 If I disable two-sided, the there is no problem, the text area will be
 printed in the at the center of the page, it does not differentiate
 between odd and even number. But one-side is not applicable in a book
 document, the odd and even headings are different, chapter always
 written in odd page.
 Actually the class that I have chosen (book KOMA-script, option DIV9)
 does perfectly, it shows a correct pdf view, but when I print, I get
 shifted text area of even pages.

 I just recently tested two documents form help (did not change anything,
 only view and print)
 1. User Guide (book KOMA-script, two-sided)
   in view pdflatex, it shows a correct margin setting,
   but when it is printed, the even pages also shifted.
   ==you can try to print for example page 1 and page 2, two-sided,
 you will see page 2 shifted)
 2. Introduction (book, two-sided)
   view pdflatex and print result perfectly matched.

 I tried other documents in help, they behave similarly, KOMA-script
 does not print as the view pdf.

 I still need further discussion as I have not found a way to solve this.
 Please let me now if this problem occurs only to me(need to
 reinstall?)

 I am using LyX 1.5.5 in Ubuntu 8.04 ..
 not expert in LaTeX, just LyX user since months ago

 Thanks
 /Adi






-- 
Waluyo Adi Siswanto, PhD
Dept. Engineering Mechanics
Univ. Tun Hussein Onn Malaysia (UTHM)
http://www.uthm.edu.my


How to get Springer class working?

2008-08-11 Thread Sengly Heng
Dear all,

I am looking for help in getting a springer class works. I have searched
through the web and the forum and tried to modified this and that but still
I could not manage to get it working. There is always this message:

Warning: Document class not available

The layout file requested by this document,
llncs.layout,
is not usable. This is probably because a LaTeX
class or style file required by it is not
available. See the Customization documentation
for more information.
LyX will not be able to produce output.

Please share your experience.

Thank you.

Regards,

Sengly


Problem print pdflatex even page

2008-08-11 Thread Waluyo Adi Siswanto
Hi All

I have a problem when printing from viewpdf(pdflatex).
The print result of the even page always shifted to the left (towards outer
margin, it looks like the left margin of the even pages indented  about 12
mm),
therefore when I print double sided, the text area does not match.  The
correct ones is the odd pages.

This behavior does not happen in dvi and ps, the text areas in odd and even
pages are perfectly matched in double sided,
but the printed fonts are less quality compared with pdf print.

How can I get the matched text areas when I print viewpdf(psdflatex).

Thanks
/Adi


Compatibiliy issue with beamer-class and xcolor package

2008-08-11 Thread Literatur Hiwi
Hello!

In Lyx I chose a beamer class to be my "document class".

Now I would like to use the xcolor package, hence I entered the following
into the preamble:

 

\usepackage[x11names]{xcolor}



Unfortunately I get the following message once I try to compile my file:

\definecolor
{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
The package xcolor has already been loaded with options:
[]
There has now been an attempt to load it with options
[x11names]
Adding the global options:
,x11names
to your \documentclass declaration may fix this.
Try typing to proceed.



Is there a possibiliy to add the x11names option to the assumably already
loaded xcolor package?

Thanks a lot in advance!

 

Best regards,

 

TJ

 



Re: Compatibiliy issue with beamer-class and xcolor package

2008-08-11 Thread Micha
Try adding it as a document option instead of a package option, I believe
packages use document options they recognize

On Fri, 8 Aug 2008 13:14:46 +0200
"Literatur Hiwi" <[EMAIL PROTECTED]> wrote:

> Hello!
> 
> In Lyx I chose a beamer class to be my "document class".
> 
> Now I would like to use the xcolor package, hence I entered the following
> into the preamble:
> 
>  
> 
> \usepackage[x11names]{xcolor}
> 
> 
> 
> Unfortunately I get the following message once I try to compile my file:
> 
> \definecolor
> {darkgreen}{cmyk}{0.5, 0, 1, 0.5}
> The package xcolor has already been loaded with options:
> []
> There has now been an attempt to load it with options
> [x11names]
> Adding the global options:
> ,x11names
> to your \documentclass declaration may fix this.
> Try typing to proceed.
> 
> 
> 
> Is there a possibiliy to add the x11names option to the assumably already
> loaded xcolor package?
> 
> Thanks a lot in advance!
> 
>  
> 
> Best regards,
> 
>  
> 
> TJ
> 
>  
> 


Re: preview PDF in a lyx file?

2008-08-11 Thread bigblop



bigblop wrote:
> 
> When I include an image in my lyx file it is previewed in the lyx file
> just fine when I use png or jpg images. But when I include a PDF it cannot
> be previewed:
> 
> Error converting to loadable format
> 
> Is there a fix for this?
> 


The problem also appears when including EPS.  But the debugger hinted that
there was a mismatch between gs 8.60 and 8.62. I have now updated to gs 8.62
and now EPS are previewed!
-- 
View this message in context: 
http://n2.nabble.com/preview-PDF-in-a-lyx-file--tp683855p685580.html
Sent from the LyX - Users mailing list archive at Nabble.com.



inserting subfigures in lyx 1.6?

2008-08-11 Thread Micha
How do I insert subfigures in lyx 1.6?

I tried inserting another figure in the figure, it shows up as a subfloat:
figure with a caption Sub-Figure a: but when I try to compile the document I
get the error:

no counter [EMAIL PROTECTED]

 \subfloat
   []{
Your command was ignored.
Type  Ito replace it with another command,
orto continue without it.


Re: inserting subfigures in lyx 1.6? [solved]

2008-08-11 Thread Micha
sorry, my bad. I had a \usepackage[subfigure] in an included file and it messed
with the lyx subfigure through insert->float->figure

On Mon, 11 Aug 2008 12:48:46 +0300
Micha <[EMAIL PROTECTED]> wrote:

> How do I insert subfigures in lyx 1.6?
> 
> I tried inserting another figure in the figure, it shows up as a subfloat:
> figure with a caption Sub-Figure a: but when I try to compile the document I
> get the error:
> 
> no counter [EMAIL PROTECTED]
> 
>  \subfloat
>[]{
> Your command was ignored.
> Type  Ito replace it with another command,
> orto continue without it.
> 


Re: Problem print pdflatex even page

2008-08-11 Thread Waluyo Adi Siswanto
I just want to add the information regarding this problem.
When I print file to pdf, from viewpdf(pdflatex), then I open this file,
now I can see the shifted text area in every even page (different with
viewpdf), just like what I get from the printer.

Could anyone help me to solve this problem.

/Adi


On Mon, 2008-08-11 at 16:23 +0800, Waluyo Adi Siswanto wrote:
> Hi All
> 
> I have a problem when printing from viewpdf(pdflatex).
> The print result of the even page always shifted to the left (towards
> outer margin, it looks like the left margin of the even pages indented
> about 12 mm), 
> therefore when I print double sided, the text area does not match.
> The correct ones is the odd pages.
> 
> This behavior does not happen in dvi and ps, the text areas in odd and
> even pages are perfectly matched in double sided,
> but the printed fonts are less quality compared with pdf print.
> 
> How can I get the matched text areas when I print viewpdf(psdflatex).
> 
> Thanks
> /Adi
> 



xcolor package vs. beamer class

2008-08-11 Thread Literatur Hiwi
Hallo!

I am using a beamer class in Lyx and have a problem with applying the xcolor
package to it.

In Latex the command is  "\documentclass[xcolor=x11names]{beamer}". How can
I make it work in Lyx?

Thanks!

Best regards, 

TJ



Re: xcolor package vs. beamer class

2008-08-11 Thread Micha
On Mon, 11 Aug 2008 13:00:15 +0200
"Literatur Hiwi" <[EMAIL PROTECTED]> wrote:

> Hallo!
> 
> I am using a beamer class in Lyx and have a problem with applying the xcolor
> package to it.
> 
> In Latex the command is  "\documentclass[xcolor=x11names]{beamer}". How can
> I make it work in Lyx?
> 
> Thanks!
> 
> Best regards, 
> 
> TJ
> 

under Document->Settings->Document Class
the first drop down box is the document class (you choose beamer there) and the
second line is the document options, you put xcolor=x11names there


Re: different margins

2008-08-11 Thread rgheck

Ark wrote:

Hi!
In my document I need the first page in every chapter with different margins
than the rest.  I'm a novel LyX user and I'm not sure how to achieve this.
I would appreciate any help.

  

Which document class are you using?

rh



Re: Problem print pdflatex even page

2008-08-11 Thread rgheck

Waluyo Adi Siswanto wrote:

I just want to add the information regarding this problem.
When I print file to pdf, from viewpdf(pdflatex), then I open this file,
now I can see the shifted text area in every even page (different with
viewpdf), just like what I get from the printer.

Could anyone help me to solve this problem.

  
It sounds as if you are set to print double-sided, in which case this is 
normal. Just turn off double-sided printing, in Document>Settings>Page 
Layout>Two-sided Document.


rh



Re: Problem print pdflatex even page

2008-08-11 Thread Waluyo Adi Siswanto
> >
> >   
> It sounds as if you are set to print double-sided, in which case this is 
> normal. Just turn off double-sided printing, in Document>Settings>Page 
> Layout>Two-sided Document.
> 
> rh
> 
If I disable two-sided, the there is no problem, the text area will be
printed in the at the center of the page, it does not differentiate
between odd and even number. But one-side is not applicable in a "book"
document, the odd and even headings are different, chapter always
written in odd page.
Actually the class that I have chosen (book KOMA-script, option DIV9)
does perfectly, it shows a correct pdf view, but when I print, I get
shifted text area of even pages.

I just recently tested two documents form help (did not change anything,
only view and print)
1. User Guide (book KOMA-script, two-sided)
   in view pdflatex, it shows a correct margin setting,
   but when it is printed, the even pages also shifted.
   ==you can try to print for example page 1 and page 2, two-sided,
 you will see page 2 shifted)
2. Introduction (book, two-sided)
   view pdflatex and print result perfectly matched.

I tried other documents in "help", they behave similarly, KOMA-script
does not print as the view pdf.

I still need further discussion as I have not found a way to solve this.
Please let me now if this problem occurs only to me(need to
reinstall?)

I am using LyX 1.5.5 in Ubuntu 8.04 .. 
not expert in LaTeX, just LyX user since months ago

Thanks
/Adi





Re: different margins

2008-08-11 Thread Waluyo Adi Siswanto
On Sun, 2008-08-10 at 22:02 -0500, Ark wrote:
> Hi!
> In my document I need the first page in every chapter with different margins
> than the rest.  I'm a novel LyX user and I'm not sure how to achieve this.
> I would appreciate any help.
> 
> Thanks

If you are using a "book" or "book KOMA-script" class, the first page of
each chapter (by selecting the Chapter environment) will be  treated
differently.
Just have a try...

/Adi



Re: different margins

2008-08-11 Thread Robert Orr
Include this in ERT

\setlength{\evensidemargin}{-1cm}
\setlength{\oddsidemargin}{-1cm}




--- On Mon, 8/11/08, rgheck <[EMAIL PROTECTED]> wrote:

> From: rgheck <[EMAIL PROTECTED]>
> Subject: Re: different margins
> To: "Ark" <[EMAIL PROTECTED]>
> Cc: lyx-users@lists.lyx.org
> Date: Monday, August 11, 2008, 8:43 AM
> Ark wrote:
> > Hi!
> > In my document I need the first page in every chapter
> with different margins
> > than the rest.  I'm a novel LyX user and I'm
> not sure how to achieve this.
> > I would appreciate any help.
> >
> >   
> Which document class are you using?
> 
> rh


  


Re: math tool

2008-08-11 Thread Michael Wojcik

Christian Ridderström wrote:

On Fri, 8 Aug 2008, Abdelrazak Younes wrote:


[Sometimes I don't get Abdel's messages to the list. I only see them 
when someone quotes them, as Christian did here. I don't know why. 
They're not getting caught by Thunderbird's spam filter; and it only 
happens to some of them. I haven't noticed any other missing lyx-users 
messages. Odd.]


I don't think you missed anything. And we'd be delighted to have you 
within the development team :-)


I keep meaning to pull the sources from Subversion and take a look. 
I've just been too busy between work and this part-time Master's 
degree I'm working on.


What I really *should* do is send in a financial contribution.

--
Michael Wojcik
Micro Focus
Rhetoric & Writing, Michigan State University



how to convert bib file with valid escape sequence

2008-08-11 Thread Abe Lau
As pointed out by Juergen, I should save my bibtex file as latin1 encoding
because I would likely get into problem with a UTF-8 encoded bibliography.
He further pointed out I should get all non-ascii character escaped.

I resaved my existing bibliography in JabRef using latin-1 encoding, and all
my child document works fine.  The problem arise when I build from my master
document, and I get tons of error:

e.g. Missing $ inserted.
..  Surg Br}, 84-B\penalty0 (SUPP_
  I):\penalty0 65--c,
   \url
Missing \endgroup inserted
   {http://proceedings.ieee/cgi/content/abstract/84-B/SUPP_I/...
The control sequence at the end of the top line
Latex Error: Lonely Item -- Perhaps a missing \list environment
etc

It looks like it is because my bib is not properly escaped.  I am wondering
what is the best way to apply proper escape sequence to existing
bibliography database (~200 entries).  Juergen suggested using "recode
l1..ltex myfile.bib" but mentioned there maybe chance that it mis-transform
"\" to "\backslash".

Despite the backslash problem (-d option just give me Recoding
reference_articles.bib... failed: Untranslatable input in step
`ISO-8859-1..LaTeX', and failed to convert), my doc now compiles without
error.

At the same time, all my bibliography attached at the end of the doc is
almost empty with a few "a." "b." "c." as the first character!

and my bib is formatted like this:
@ARTICLE\{someone2008,
  author = \{someone\},
  title = \{The title\},
  journal = \{J something\},
  year = \{2008\},

Any insight on how I should fix the problem, or deal with the problem is
very much appreciated.
Abe


Re: I'm unable to add a language to the listing package

2008-08-11 Thread Daniel Lohmann


On 10.08.2008, at 18:24, Paul A. Rubin wrote:


Steve Burton wrote:


I tried using ERT. If I got it wrong Lyx crashed.


If that's reproducible, it should probably be entered into bugzilla.


If I got it right it
worked until I closed Lyx. When the document was re-opened Lyx  
spotted

the  listings stuff but didn't understand the language. Return to Go,
go directly to Go, do not collect £200!


When you reopened the doc, did LyX convert your ERT listings stuff  
to a listings inset??  If so, that can probably be worked around.   
You could load the listings package in the preamble and add a new  
environment (say "mylistings") that simply begins/ends a listings  
environment with your new language selected.  Then use  
\begin{mylistings}...\end{mylistings} in ERT.  I doubt LyX would  
make any attempt to convert that.


I do not think that this is the problem. I used to use listings in ERT  
all the time and LyX never converted it "automagically". I only  
recently switched to the listings inset, so in many of my documents  
ERT-based listings and listing insets now happily co-exist. I also use  
an own language.


A better workaround:

Load (or define) your language in the preamble. In the listings inset  
select "No language", go to the "Advanced" page and directly pass the  
language= parameter to listings.


Daniel

Re[2]: I'm unable to add a language to the listing package

2008-08-11 Thread Steve Burton
> Steve Burton wrote:
>> Hi,
>>
>> I've  just spent an afternoon and evening failing to add a language to
>> listings. This is what I have:
>>
>> Lyx 1.5.6 with MiKTeX 2.7 running on Windows XP.
>>
>> I   have  written  a  language  definition  to  highlight  Cisco  IOS
>> configurations and :-
>>
>> put   it   in   a   file   lstlang0.sty  in  C:\Program  Files\MiKTeX
>> 2.7\tex\latex\listings,  refreshed  the FNDB and formats in MiKTeX and
>> reconfigured Lyx. It doesn't appear in the language drop down.
>>
>> Added  the definition to an existing .sty refreshed and reconfigured -
>> same result.
>>
>> Moved  the  files  in  the  listing directory above to somewhere else.
>> Refreshed and reconfigured and Lyx put them back! Same result.
>>
>> I  have read the listing documentation, searched the Lyx users archive
>> and googled extensively but I'm no further forward.
>>
>> I  realize  that  I've  done  wrong and that I'm probably stupid but I
>> can't trigger as much as an error message.
>>
>> Any  help  or  pointers  would  be  appreciated  before  my  mind goes
>> completely.
>>
>> Steve.
>>
>>
>>   
> This should work, as I'm using it extensively. If you define the 
> language in the preamble like:

> \usepackage[usenames]{color}

> \definecolor{darkgreen}{rgb}{0.3,0.5,0.3}

> \definecolor{darkblue}{rgb}{0.3,0.3,0.5}

> \definecolor{darkred}{rgb}{0.5,0.3,0.3}

> \definecolor{darkcyan}{rgb}{0.3,0.5,0.5}


> \lstdefinelanguage{LUA}{%

> sensitive=true,%

> columns=fixed,%

> keywordstyle=[1]{\color{darkblue}\bfseries},%

> keywordstyle=[2]{\color{darkgreen}\bfseries},%

> morekeywords=[1]{local,if,then,else,end,while,do,function,coroutine,yield},%
> Official LUA keywords

> morekeywords=[2]{},% Your private keywords

> otherkeywords={.,=,~,*,>,:},%

> morestring=[b]",%

> stringstyle={\color{darkred}\itshape},%

> breaklines=true,%

> linewidth=\textwidth,%

> comment=[l]{--}%

> }


> You can set it as language in the inline or external listing by using
> "language=LUA" and bypassing validation.


> Marc Flerackers

Marc,

I've  played  with  this  and it's just what I need. Now I can produce
truly   ghastly   multicoloured   listings   at  the drop of a hat. Is
there a  tag?

It would be nice though if Lyx picked up the language definitions from
lstlangx.sty.

Thanks to all for helpful advice and solutions.

Steve.





Tutorial Published on Using XSL stylesheets to fix lyX's Docbook XML implementation

2008-08-11 Thread Chad A.
Hi,

I have published a tutorial on how to use lyX to produce Docbook XML which
can be transformed into XHTML or PDF documents.  The tutorial shows how to
leverage XML technologies, such as XSL, to create customized versions of
Docbook XSL stylesheets that fix some of lyX's Docbook problems.

The tutorial, with source code, has been posted here:
http://www.neomantic.com/tutorials/lyx-and-docbookXML

Any feedback would be greatly appreciated,
Chad

-- 
Chad A.
http://www.neomantic.com


Re: math tool

2008-08-11 Thread Christian Ridderström

On Mon, 11 Aug 2008, Michael Wojcik wrote:


Christian Ridderström wrote:

 On Fri, 8 Aug 2008, Abdelrazak Younes wrote:


[Sometimes I don't get Abdel's messages to the list. I only see them 
when someone quotes them, as Christian did here. I don't know why. 
They're not getting caught by Thunderbird's spam filter; and it only 
happens to some of them. I haven't noticed any other missing lyx-users 
messages. Odd.]


What if you check for the messages on gmane? (The news interface). Do you 
see them there?


>  I don't think you missed anything. And we'd be delighted to have you 
>  within the development team :-)


I keep meaning to pull the sources from Subversion and take a look. I've 
just been too busy between work and this part-time Master's degree I'm 
working on.


Try doing easy/shorter things then. Getting into the code can be a lot to 
start with, and if the threshold is to high, you never get around to it 
:-)


For instance, pick an unconfirmed bug from bugzilla and try to replicate 
it and thus confirming it. That does help.


Or you could create a LyX example, illustrating something and then put it 
on the wiki. Or create a screencast?


I think the important thing is that you pick something that you'll enjoy 
doing (or that teaches you something you want to learn).


regards
/Christian

By the way, trying to fix some of the minor bugs doesn't have to be that 
difficult.


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

Re: math tool

2008-08-11 Thread Christian Ridderström

On Mon, 11 Aug 2008, Michael Wojcik wrote:


Christian Ridderström wrote:

 On Fri, 8 Aug 2008, Abdelrazak Younes wrote:


[Sometimes I don't get Abdel's messages to the list. I only see them when 
someone quotes them, as Christian did here. I don't know why. They're not 
getting caught by Thunderbird's spam filter; and it only happens to some of 
them. I haven't noticed any other missing lyx-users messages. Odd.]


>  I don't think you missed anything. And we'd be delighted to have you 
>  within the development team :-)


I keep meaning to pull the sources from Subversion and take a look. I've just 
been too busy between work and this part-time Master's degree I'm working on.



Michael Wojcik
Micro Focus
Rhetoric & Writing, Michigan State University


Umm... given your signature, improving the documentation seems like a good 
candidate. Either the help documents, or the wiki. Just some ideas..


Or perhaps preparing good arguments for why LyX is a good choice:-)

/Christian

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

Re: Tutorial Published on Using XSL stylesheets to fix lyX's Docbook XML implementation

2008-08-11 Thread Christian Ridderström

On Mon, 11 Aug 2008, Chad A. wrote:

The tutorial, with source code, has been posted here: 
http://www.neomantic.com/tutorials/lyx-and-docbookXML


What do think of hosting it on the LyX wiki? (Either moving it, or just 
mirroring it there).


/Christian

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

Re: Problem print pdflatex even page

2008-08-11 Thread Waluyo Adi Siswanto
Report:

I did try in Windows XP SP3 (LyX version 1.5.6):
I got perfectly matched even and odd pages for KOMA-script, when I
print two-sided.
So.. for the time being: I work in Ubuntu and print using Windows.
Maybe after I finish this book.. I will try 1.6 in Ubuntu

/Adi



On Mon, Aug 11, 2008 at 10:27 PM, Waluyo Adi Siswanto <[EMAIL PROTECTED]>wrote:

> > >
> > >
> > It sounds as if you are set to print double-sided, in which case this is
> > normal. Just turn off double-sided printing, in Document>Settings>Page
> > Layout>Two-sided Document.
> >
> > rh
> >
> If I disable two-sided, the there is no problem, the text area will be
> printed in the at the center of the page, it does not differentiate
> between odd and even number. But one-side is not applicable in a "book"
> document, the odd and even headings are different, chapter always
> written in odd page.
> Actually the class that I have chosen (book KOMA-script, option DIV9)
> does perfectly, it shows a correct pdf view, but when I print, I get
> shifted text area of even pages.
>
> I just recently tested two documents form help (did not change anything,
> only view and print)
> 1. User Guide (book KOMA-script, two-sided)
>   in view pdflatex, it shows a correct margin setting,
>   but when it is printed, the even pages also shifted.
>   ==you can try to print for example page 1 and page 2, two-sided,
> you will see page 2 shifted)
> 2. Introduction (book, two-sided)
>   view pdflatex and print result perfectly matched.
>
> I tried other documents in "help", they behave similarly, KOMA-script
> does not print as the view pdf.
>
> I still need further discussion as I have not found a way to solve this.
> Please let me now if this problem occurs only to me(need to
> reinstall?)
>
> I am using LyX 1.5.5 in Ubuntu 8.04 ..
> not expert in LaTeX, just LyX user since months ago
>
> Thanks
> /Adi
>
>
>
>


-- 
Waluyo Adi Siswanto, PhD
Dept. Engineering Mechanics
Univ. Tun Hussein Onn Malaysia (UTHM)
http://www.uthm.edu.my


How to get Springer class working?

2008-08-11 Thread Sengly Heng
Dear all,

I am looking for help in getting a springer class works. I have searched
through the web and the forum and tried to modified this and that but still
I could not manage to get it working. There is always this message:

Warning: Document class not available

The layout file requested by this document,
llncs.layout,
is not usable. This is probably because a LaTeX
class or style file required by it is not
available. See the Customization documentation
for more information.
LyX will not be able to produce output.

Please share your experience.

Thank you.

Regards,

Sengly