Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Guenter Milde
On 2009-05-22, Florian Rubach wrote:
 Robert Neumann schrieb:
 Hello,
 I have a problem with the quality of jpg-images.

 ...
 I' using Lyx 1.3.4 on a Suse Linux (and I dont want to update, because
 all new lyx are slower it has to to with the latex)

 Seriously, what do you expect? If you're not willing to upgrade, I don't 
 think there is any possibility to fix _any_ issue...

This is simply not true. Especially the mentioned problem has nothing
to do with the LyX version!

 Also I can't really imagine any situation where anything regarding lyx 
 and latex takes longer than one could bear.

This very much depends on what one could bear and on the available
hardware. Faster than Word does not mean acceptable or nice to everyone.

Günter



Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Guenter Milde
On 2009-05-23, Robert Neumann wrote:
 Hello Wayan,
 I usually use eps for all my vektordrawings, but once in a while I have 
 to include an jpg, but the funny thing is, that it works with Lyx 1.5 
 on a Suse 11,so it seems to be possible. The ps-File on my old Suse with
 Lyx 1.3 has no pixels either when I export to ps(as I just posted in 
 reply to Steve) but when I use the ps2pdf from the new Linux on the old 
 Linux, it still has pixels. So it is very odd to figure out where the 
 problem lies.

Do you scale the figure in question or set a fixed size? Re-sizing pixel
images can lead to bad surprises.

EPS and PDF can both include JPEG and PNG images -- in newer versions.
Some convertors, however, will default to the save old format versions and
convert the image to an internal representation of the pixel data. You will
usually realize this by a huge increase of the file size.

Günter



Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Florian Rubach

Guenter Milde schrieb:

On 2009-05-22, Florian Rubach wrote:
  

Robert Neumann schrieb:


Hello,
I have a problem with the quality of jpg-images.
  


  

...


I' using Lyx 1.3.4 on a Suse Linux (and I dont want to update, because
all new lyx are slower it has to to with the latex)
  


  
Seriously, what do you expect? If you're not willing to upgrade, I don't 
think there is any possibility to fix _any_ issue...



This is simply not true. Especially the mentioned problem has nothing
to do with the LyX version!

  
Also I can't really imagine any situation where anything regarding lyx 
and latex takes longer than one could bear.



This very much depends on what one could bear and on the available
hardware. Faster than Word does not mean acceptable or nice to everyone.

Günter


Well, seems like the time to apologize. It was my point of view and I 
was wrong. Next time, I try to be more constructive...


Regards,
Florian


Re: Is PDF the best graphic format for LyX?

2009-05-25 Thread Guenter Milde
On 2009-05-21, Steve Litt wrote:

Is PDF the best graphic format for LyX?

No. As usual it depends...

 Is it my imagination, or do things go MUCH better when graphics
 included in a LyX diagram are PDFs? 

I found that I can convert easily forth and back between EPS and PDF
and from SVG to either of the two without loss of quality in most cases.

An exception are graphics with transparency, as EPS does not support an
alpha channel and has to use faked transparency.

 Is this a placebo effect, or do PDFs really work much, much better as
 LyX doc graphics?

If your output format is PDF only (I often use PS), having the included
files in this format too saves the trouble of dealing with the
converters. OTOH, for me it is in most cases easier to insert inkscape
made graphics as SVG, so I can edit them easily and don't have 2 files
lying around.

Günter



Re: LyX - cross platform core toolkit for scientific and technical writing?

2009-05-25 Thread José Matos
On Sunday 24 May 2009 17:44:16 Graham Smith wrote:
 Thanks,

 As you say an interesting combination, but if I wasn't using R, I would
 be using very expensive commercial alternatives, which I still have
 licenses for , but no longer upgrade.

I use mostly gnuplot (for 3d), matplotlib and R. Sometimes I call both gnuplot 
and R from python (rpy for the r - python part).

 Graham

-- 
José Abílio


Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Robert Neumann
Guenter Milde mi...@... writes:

 
 Do you scale the figure in question or set a fixed size? Re-sizing pixel
 images can lead to bad surprises.
yes, I just tried with 100%: No Difference. 

 EPS and PDF can both include JPEG and PNG images -- in newer versions.
 Some convertors, however, will default to the save old format versions and
 convert the image to an internal representation of the pixel data. You will
 usually realize this by a huge increase of the file size.
I found a solution which is acceptable for me: I export it from CorelDraw as a
grayscale-Gif. This works fairly well, at least I can life with that...
Regards Robert




Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Robert Neumann

 Well, seems like the time to apologize. It was my point of view and I 
 was wrong. Next time, I try to be more constructive...

Accepted;-)
Next time I have a problem, I will post the link to the old thread about the
strange fact that the newer latex takes more than twice the time immediately. It
could seem a bit weird, that I don't want to upgrade...

http://thread.gmane.org/gmane.editors.lyx.general/34234/focus=34251

Regards
Robert





Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Guenter Milde
On 2009-05-25, Robert Neumann wrote:
 Guenter Milde mi...@... writes:

 I found a solution which is acceptable for me: I export it from
 CorelDraw as a grayscale-Gif. This works fairly well, at least I can
 life with that... Regards Robert

Fine. Generally, JPEG is not suited for drawings or any images with
sharp lines. It is designed for fotographies with smoth gradients.
If it worked well with some images, this might just be a coincidence.

The rule of thumb I use is

* if possible, use a vector format (SVG, PDF, EPS)

* for a pixel graphic with few colours and sharp lines, use a
  lossless pixel comprssion (PNG or GIF, TIFF)
  
* for photo images (smoth gradient, many colours) use JPEG.

Günter  



Re: LyX - cross platform core toolkit for scientific and technical writing?

2009-05-25 Thread Graham Smith

José Matos wrote:


I use mostly gnuplot (for 3d), matplotlib and R. Sometimes I call both gnuplot 
and R from python (rpy for the r - python part).


  

It does look like Python offers a rather useful thing to learn.

Graham



Re: coloured background in header and margin

2009-05-25 Thread Helge Hafting

Uwe Stöhr wrote:

Christiaan Pauw schrieb:

Is it possible to use background colours in a header, footer and 
margin (or part of a each) only. I want to create a layout for a 
report that looks something like this:...


Coloring the header and footer should be possible, but coloring the 
margin note seems not to be possible.


Is it really a colored margin note (with text), or simply a colored 
rectangle decorating part of the margin area?


It is possible to put a colored box or image just where you want it. The 
true height and width of the thing can be hidden from latex by embedding 
it in a raisebox commands that gives it a fake zero size.


Obviously, nothing prevent other typeset material from crashing into 
such a construct, but there is usually nothing in the margin anyway. I 
used such a technique for the chapter pages in my book. The publisher 
gave me a full-page image with various colored edges that were supposed 
to go from edge to edge on the paper.


I see no problem with this page layout, except that it may require some 
oddball latex commands and a bit of trial and error. Could surely be a 
problem for anyone who don't have time to learn latex commands though.


Helge Hafting


Re: Is PDF the best graphic format for LyX?

2009-05-25 Thread Helge Hafting

Steve Litt wrote:

Hi all,

Is it my imagination, or do things go MUCH better when graphics included in a 
LyX diagram are PDFs? That's what I've found. I've found them infinitely and 
continuously scalable, and if I create the PDF with embed fonts, I think 
they work anywhere.


I'm so old I remember the days when LyX seemed to work reliably only 
with .eps. THen it could work with .png/.jpg/.gif. But nowadays my personal 
experience is that PDF images inside the doc work much better than any of 
those other formats ever did. Is this a placebo effect, or do PDFs really 
work much, much better as LyX doc graphics?


Any supported vector format ought to look fine, or there is a bug. There 
should be no difference between pdf and eps images. PDF might compile 
faster with pdflatex though.


The problem with bitmaps is that screens have different resolutions, and 
even a cheap printer has much much higher resolution than an expensive 
big screen. And good printers have much better resolution than that.


So, a jpeg that looks good printed on a photosetter or something will 
have to be one huge file, maybe a full-resolution image from a good 
camera. But such a big file will render slowly on a computer, and it 
will not be necessary to look good on a screen.


Helge Hafting


memoir class lyx-1.5 file does not work with lyx-1.6

2009-05-25 Thread Oscar Lopez

Dear Lyxers

I am trying to use a lyx template which uses the memoir book class that 
worked pretty well with lyx-1.5.4 but now with lyx-1.6.2 refuses to 
compile because the lyx error (in fact latex error) says:
\pagestyle{myMainheading} I've run across a `}' that doesn't seem to 
match anything. For example, `\def\a#1{...}' and `\a}' would produce 
this error. If you simply proceed now, the `\par' that I've just 
inserted will cause me to report a runaway argument that might be the 
root of the problem. But if your `}' was spurious, just type `2' and it 
will go away.


I thought that the problem could be related to this chunk of code

\makepsmarks{companion}{%
\l...@mkboth\markboth
\def\chaptermark##1{\markboth{##1}{##1}}% % left  right marks
\def\sectionmark##1{\markright{% % right mark
\ifnum \...@secnumdepth\z@
\thesection. \% % section number
\fi
##1}}
}

because when I remove it, everything works (the above code is a copy  of 
the memoir manual) I've tried to reproduce the error in a minimal 
document but unfortunately I am not able to reproduce the error which 
suggest me that it could be a problem related with other packages.


My question is that if there have been some modifications to the memoir 
layout from lyx-1.5 which can be responsible of the error. Do you have 
some advises to debug the problem because I am running out of ideas?


Thank you very much for all your help
Best regards
Oscar


Navigation menu - list of tables includes comment tables

2009-05-25 Thread Hauser Helmut

Hello,

I use Lyx 1.5.2 on Fedora. I have noted that in the Navigation menu - 
list of tables Lyx lists also tables which are
in the note (commentary) environment and therefore are not seen in the 
LaTeX output. For the counts in Lyx (e.g. Table 3) it counts these 
tables too. The same is right for figures.


Is that a bug (maybe already cleaned in newer versions) or is there a 
good reason for that, which I am not able to see?


Thanks for your help and the awesome program!!
Cheer,
- helmut

--

Helmut Hauser
Institute for Theoretical Computer Sciences
Technische Universitaet Graz
Inffeldgasse 16b, I
A-8010 Graz, Austria
---
helmut.hau...@igi.tugraz.at
Tel: + 43 316 873-5821
Fax: + 43 316 873-5805
http://www.igi.TUGraz.at/helmut/





RE: Navigation menu - list of tables includes comment tables

2009-05-25 Thread Vincent van Ravesteijn - TNW
 
I use Lyx 1.5.2 on Fedora. I have noted that in the
Navigation menu - list of tables Lyx lists also tables
which are in the note (commentary) environment and
therefore are not seen in the LaTeX output. For the
counts in Lyx (e.g. Table 3) it counts these tables
too. The same is right for figures.

Is that a bug (maybe already cleaned in newer versions)
or is there a good reason for that, which I am not able
to see?

Yes, this was a bug and it is indeed fixed in newer versions of LyX
(1.6.3 will be released quite soon).

Vincent


Lyx Print-out?

2009-05-25 Thread Bruhtesfa Ebrahim
Hey all,

I am using lyx to write my thesis. Everything is ok except one problem.

When I see the pdf output, the width of the text on the page is too narrow.
The PDF text covers only about 50% of the width of the page. Because of
this,
my thesis is elongated to many pages than it will actually be.

But, this is not the case in latex or when you convert word to pdf. So, what
is the solution for this
problem. Is there some setting that can increase the length of text per line
so that the text covers most of the page?

Thank you in advance for the help!

Bruh


RE: Lyx Print-out?

2009-05-25 Thread Vincent van Ravesteijn - TNW

Hey all,

I am using lyx to write my thesis. Everything is ok except
one problem.

When I see the pdf output, the width of the text on the
page is too narrow. The PDF text covers only about 50% of
the width of the page. Because of this, my thesis is
elongated to many pages than it will actually be.

But, this is not the case in latex or when you convert
word to pdf.

This depends on the document class you use. With the same document
class, this should be the same as in latex.

So, what is the solution for this problem. Is there some
setting that can increase the length of text per line so
that the text covers most of the page?

You could either choose a different document class (in
Document-Settings...-Document Class), or you may  adjust the Page
Format (in Document-Settings...-Page Layout) or you might want to
choose other Page Margins (in Document-Settings...-Page Margins).

Vincent


Re: coloured background in header and margin

2009-05-25 Thread Paul A. Rubin

Christiaan Pauw wrote:



Is it possible to use background colours in a header, footer and margin 
(or part of a each) only. I want to create a layout for a report that 
looks something like this:




I don't know about odd v. even pages, but the beamer presentation 
package includes styles that use various combinations of colored 
headers, footers and sidebars.


/Paul



Re: Lyx Print-out?

2009-05-25 Thread Erez Yerushalmi
Hi,

Do like Vincent said

To get MS-Word margins

Go to Document  settings  page margins
and use Top/bottom 2.54
right/left margins 3.17.

Another options is to plug into the preamble

\usepackage{geometry}
\geometry{verbose,letterpaper,tmargin=2.54cm,bmargin=2.54cm,lmargin=3.17cm,rmargin=3.17cm}

But then, if you have a heading, you need to fix that, because it will still
be in default,  more narrow.

Erez



On Mon, May 25, 2009 at 2:34 PM, Vincent van Ravesteijn - TNW 
v.f.vanraveste...@tudelft.nl wrote:


 Hey all,
 
 I am using lyx to write my thesis. Everything is ok except
 one problem.
 
 When I see the pdf output, the width of the text on the
 page is too narrow. The PDF text covers only about 50% of
 the width of the page. Because of this, my thesis is
 elongated to many pages than it will actually be.

 But, this is not the case in latex or when you convert
 word to pdf.

 This depends on the document class you use. With the same document
 class, this should be the same as in latex.

 So, what is the solution for this problem. Is there some
 setting that can increase the length of text per line so
 that the text covers most of the page?

 You could either choose a different document class (in
 Document-Settings...-Document Class), or you may  adjust the Page
 Format (in Document-Settings...-Page Layout) or you might want to
 choose other Page Margins (in Document-Settings...-Page Margins).

 Vincent




-- 
Erez Yerushalmi
PhD Student
Warwick University, UK
homepage:
http://www2.warwick.ac.uk/fac/soc/economics/research/phds/3rd_year/yerushalmi


XFig and LyX (Was: Re: Is PDF the best graphic format for LyX?)

2009-05-25 Thread curtis osterhoudt
Dear all, 

   I have just (within the last week or so, using the 2.0.0 svn development 
code, which I've kept up with and compiled) started having problems using XFig 
figures within LyX. 

Previously (and the mechanism is still there), to insert an XFig figure, I'd 
use the external material insert, and choose the xfig type. Currently, if I 
do that, the preview will no longer show up in LyX, and upon trying to compile 
the document, a message complaining of a missing figure will show up, with a 
mangled path to the file. *However*, quite by accident, I found that inserting 
the XFig file as a regular graphic (such as a .jpeg or .pdf) now seems to work. 

Is this going to be a long-term change to the code? It'll certainly make things 
more consistent to my mind, so long as the documentation is fixed, too.

  --C.O.
 

 /
Down with categorical imperative!
flutz...@yahoo.com
/





From: Helge Hafting helge.haft...@hist.no
To: Steve Litt sl...@troubleshooters.com
Cc: lyx-users@lists.lyx.org
Sent: Monday, May 25, 2009 4:36:08 AM
Subject: Re: Is PDF the best graphic format for LyX?

Steve Litt wrote:
 Hi all,
 
 Is it my imagination, or do things go MUCH better when graphics included in a 
 LyX diagram are PDFs? That's what I've found. I've found them infinitely and 
 continuously scalable, and if I create the PDF with embed fonts, I think 
 they work anywhere.
 
 I'm so old I remember the days when LyX seemed to work reliably only with 
 .eps. THen it could work with .png/.jpg/.gif. But nowadays my personal 
 experience is that PDF images inside the doc work much better than any of 
 those other formats ever did. Is this a placebo effect, or do PDFs really 
 work much, much better as LyX doc graphics?

Any supported vector format ought to look fine, or there is a bug. There should 
be no difference between pdf and eps images. PDF might compile faster with 
pdflatex though.

The problem with bitmaps is that screens have different resolutions, and even a 
cheap printer has much much higher resolution than an expensive big screen. And 
good printers have much better resolution than that.

So, a jpeg that looks good printed on a photosetter or something will have to 
be one huge file, maybe a full-resolution image from a good camera. But such a 
big file will render slowly on a computer, and it will not be necessary to look 
good on a screen.

Helge Hafting



  

Output resolution of PDF

2009-05-25 Thread Micha Feigin
I'm trying to include equations created in lyx/latex inside a scribus poster (The scribus 
plugin doesn't seem to do what I want). The output resolution is too low though (seems to 
be 72dpi) and the fonts look really bad. Is there a way to get latex to output the 
document at a higher resolution? (I'm using the palatino font at the moment)


Thanks


Re: memoir class lyx-1.5 file does not work with lyx-1.6

2009-05-25 Thread Oscar Lopez

Dear all

I have been able to reproduce the problem. Attached there is a minimal 
lyx file together with a minimal preamble (foo.tex) which reproduces the 
problem.


* if the lyx preamble consists of \input{foo.tex} it does not work and 
the aforementioned error appears. If I enclose \input{foo.tex} between 
\makeatletter and \makeatother then it works, which really puzzles me.


*if the content of the preamble foo.tex is directly included in the lyx 
preamble

everything work like expected.

I am completely shocked about such behaviour. I am not sure what is 
going on and I'd appreciate somebody could comment about this. I have 
thought that could be related to master-child documents (the initial lyx 
file was a master and several child but now it is just one document) but 
it does not make any sense at all.


I usually write the preamble into an external text file, especially when 
the preamble is complicated like the one of the book in order to be able 
to easily edit it. However, I enclosing the lyx preamble of the actual 
book between \makeatletter and \makeatother another errors appear as it 
would be expected. So, I am completely lost and I do not know how the 
problem could be solved. Perhaps I am missing something quite evident 
and I am writing rubbish. Any comment or suggestion is appreciated.


Thank you very much for all your help
Best regards
Oscar


Oscar Lopez wrote:

Dear Lyxers

I am trying to use a lyx template which uses the memoir book class 
that worked pretty well with lyx-1.5.4 but now with lyx-1.6.2 refuses 
to compile because the lyx error (in fact latex error) says:
\pagestyle{myMainheading} I've run across a `}' that doesn't seem to 
match anything. For example, `\def\a#1{...}' and `\a}' would produce 
this error. If you simply proceed now, the `\par' that I've just 
inserted will cause me to report a runaway argument that might be the 
root of the problem. But if your `}' was spurious, just type `2' and 
it will go away.


I thought that the problem could be related to this chunk of code

\makepsmarks{companion}{%
\l...@mkboth\markboth
\def\chaptermark##1{\markboth{##1}{##1}}% % left  right marks
\def\sectionmark##1{\markright{% % right mark
\ifnum \...@secnumdepth\z@
\thesection. \% % section number
\fi
##1}}
}

because when I remove it, everything works (the above code is a copy  
of the memoir manual) I've tried to reproduce the error in a minimal 
document but unfortunately I am not able to reproduce the error which 
suggest me that it could be a problem related with other packages.


My question is that if there have been some modifications to the 
memoir layout from lyx-1.5 which can be responsible of the error. Do 
you have some advises to debug the problem because I am running out of 
ideas?


Thank you very much for all your help
Best regards
Oscar




%---
% Definir los encabezados y pies de los capitulos
\makepagestyle{myMainheading}
\makerunningwidth{myMainheading}{\textwidth}
\makeheadposition{myMainheading}{flushright}{flushleft}{}{}
\makepsmarks{myMainheading}{%
  \l...@mkboth\markboth
  \def\chaptermark##1{\markboth{##1}{##1}}% % left  right marks
  \def\sectionmark##1{\markright{%  % right mark
\ifnum \...@secnumdepth\z@
  \thesection .\hspace{4pt}   % section number
\fi
##1}}
}
\makeevenhead{myMainheading}{\normalfont\footnotesize\thepage}{}%
{\normalfont\footnotesize\leftmark}
\makeoddhead{myMainheading}{\normalfont\footnotesize\rightmark}{}%
   {\normalfont\footnotesize\thepage}



plantilla.lyx
Description: application/lyx


Re: Output resolution of PDF

2009-05-25 Thread Guenter Milde
On 2009-05-25, Micha Feigin wrote:

 I'm trying to include equations created in lyx/latex inside a scribus
 poster (The scribus plugin doesn't seem to do what I want). The output
 resolution is too low though (seems to be 72dpi) and the fonts look
 really bad. Is there a way to get latex to output the document at a
 higher resolution? (I'm using the palatino font at the moment)

PDF does not have an output resolution, as it is a vector format. If
you use palatino, the font is in vector format too.

OTOH, scribus cannot import PDF as vector image but converts it to a
raster image! Try to configure the PDF import settings or try via SVG.

Also, if you include the equations via screen-shots the resolution will
of course be bad.

Günter



Re: memoir class lyx-1.5 file does not work with lyx-1.6

2009-05-25 Thread Jürgen Spitzmüller
Oscar Lopez wrote:
 * if the lyx preamble consists of \input{foo.tex} it does not work and
 the aforementioned error appears. If I enclose \input{foo.tex} between
 \makeatletter and \makeatother then it works, which really puzzles me.

 *if the content of the preamble foo.tex is directly included in the lyx
 preamble
 everything work like expected.

The glyph '@' has two different meanings in LaTeX. It is used as an active 
char (inside the document) and (for instance) as a namespace delimiter (in 
classes). The latter is the case in your preamble snippet, e.g. in

l...@mkboth\markboth 

To switch between these two meanings, the commands \makeatletter and 
\makeatother are used. In general, you always need to embrace preamble code 
with

\makeatletter
...
\makeatother

if it contains an '@'.

LyX does this automatically for you, that's why your document works if the 
code is inserted directly to the preamble. In former versions, Lyx blindly 
embraced any preamble with this pair. Now, it tries to be smart and only 
embraces it if the preamble actually contains an @-glyph.
In the \include-version, this is not the case.

The solution is

a.) to embrace the original code accordingly, if it is in a normal tex file
or
b.) make it a real sty-File (where this is not needed).


HTH,
Jürgen



Re: memoir class lyx-1.5 file does not work with lyx-1.6

2009-05-25 Thread Steve Litt
On Monday 25 May 2009 10:40:43 am Oscar Lopez wrote:
 Dear all

 I have been able to reproduce the problem. Attached there is a minimal
 lyx file together with a minimal preamble (foo.tex) which reproduces the
 problem.

 * if the lyx preamble consists of \input{foo.tex} it does not work and
 the aforementioned error appears. If I enclose \input{foo.tex} between
 \makeatletter and \makeatother then it works, which really puzzles me.

 *if the content of the preamble foo.tex is directly included in the lyx
 preamble
 everything work like expected.

 I am completely shocked about such behaviour. 

:-)  You'd be a little less shocked if you worked with macros in C :-)

 I am not sure what is 
 going on and I'd appreciate somebody could comment about this. 

You have a command in foo.tex that can't be nested further. I think they're 
called fragile commands, although we're getting past my LaTeX expertise at 
this point. You already found the solution -- surround with 
makeatletter/makeatother.

What surprises me is that it's dependent on LyX version. If the LyX file is 
called bar.lyx, I'd like to see you do the following:

lyx-1.5.4 -e latex bar.lyx
mv bar.tex bar-1.5.4.tex
lyx-1.6.2 -e latex bar.lyx
mv bar.tex bar-1.6.2.tex
diff bar-1.5.4.tex bar-1.6.2.tex

Then run latex on both tex files and see if one errors out while the other 
doesn't. Exploit the differences.

HTH

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



Underscore in Bibliography

2009-05-25 Thread Hesham Kamel
Hi,
Please, I have many references with underscore in the url,
which generates an error when creating the pdf view.
I'd appreciate your suggestions.
Thank you

-- 
Hesham


Bibliography Is really complex , or it is a bug

2009-05-25 Thread Marcelo Reis
Guys, believe me I did a lot of research regarding this, but until now I 
was not able to make things works the way I want.


I'm developing (at least trying) my thesis, and I can't make things goes 
the way I want.


I need the following style to  Bibliography:
[Author Name, YEAR] Last Name, First Name;Last Name, First Name. 
Title of the book Publisher. Year


a example would be:
[Reyes  Wiles, 2007] Reyes, A.  Wiles, J. Best Dawn Cybercrime and 
Digital Forensics

Book. Syngress. 2007.

I'm from brazil, so I need or the sign  or the word E (the same as and) 
to separate the names inside [].


I tried A LOT of styles, and finally I was able to find one that I 
thought that meet my needs.it is the ALIKE2 style.

When I use it things are PERFECT!..
*BUT HERE IS THE HUGE PROBLEM:
*When I create ANY citation in my document, ALL the things inside 
the [ ] in  Bibliography just disappear.
   If I remove the citation, things back to normal and [Name of Author, 
YEAR] came back.


Example:
Without Citation in document:
*[Reyes  Wiles, 2007] Reyes, A.  Wiles, J. Best Dawn Cybercrime and 
Digital Forensics.Book. Syngress. 2007.

*With Citation in document:
*Reyes, A.  Wiles, J. Best Dawn Cybercrime and Digital Forensics.Book. 
Syngress. 2007.


Why this happens?!
*
ANY Thoughts?!?!

I'm in this problem for weeks and I'm really tired of it, I would 
appreciate a LOT if some one help me.

Marcelo


An extra space after hyperlinks in PDF

2009-05-25 Thread Dan Phan
I use hyperref to generate clickable links in PDFs file, but I got extra
spaces after many, but not all, of my links. That means an end of sentence
period or comma may end up in another line, which is very ugly.
Is this a Latex or LyX problem? How do I resolve it?

Thanks

Dan


Re: LFUN to switch focus to outline pane and back

2009-05-25 Thread Pavel Sanda
Hellmut Weber wrote:
 Are there lfuns which switch the focus from the text panel to the outline 
 panel and back.

i think its even impossible to get keyboard focus inside outline even if you
try to set it by mouse

pavel


Re: formatting help needed

2009-05-25 Thread Markus Büchele
Hello Richard,

sorry for my long silence - I didn't resolve the issues completely, but I got 
over an important hurdle.

I exported my .lyx-file to a .tex-file. This was the only way, I could get in 
the \setlength\parindent{0.7cm} option. It was quite hard for me because 
the German umlaut didn't get translated properly. I found out that I had to 
change the encoding to utf8 to make it work.

I also added:
\usepackage{fancyhdr}
\pagestyle{fancy}

The next point I need to solve is the header issue: 
* page number: font size 12
* left pages: chapter title (right-aligned) in small capitals and font size 10
* right pages: subchapter title (left-aligned) in small capitals and font size 
10
header not on first page of chapter

At present I get both chapter and subchapter titles in the header so that they 
overwrite each other and are unreadable. The page number is in the footer and 
should go up to the header.

A second point is the font size (12 and solved ;-) but the line distance 
should be 14 points. How do I get that?

Thanks a lot for your help!

Markus

Just is case it may help, here is my header of the .tex file:

%% LyX 1.6.2 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[12pt,english,ngerman]{extbook}
\usepackage{mathptmx}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[a4paper]{geometry}
\geometry{verbose,tmargin=3.6cm,bmargin=3.6cm,lmargin=3.5cm,rmargin=3.5cm,headsep=1.2cm,footskip=1.25cm}
\usepackage{fancyhdr}
\pagestyle{fancy}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\usepackage{color}
\usepackage{array}
\usepackage{textcomp}

\setlength\parindent{0.7cm}


%% LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}

\usepackage{babel}

\begin{document}


Am Donnerstag, 7. Mai 2009 15:03:42 schrieb rgheck:
 Markus Büchele wrote:
  Hi Lyx experts,
 
  I have been using LYX for over decade now. It has always been a fantastic
  tool, especially for my PhD thesis.
 
  Unfortunately I have arrived at a dead end just before publication. My
  publisher (Franz Steiner Verlag, Stuttgart, Germany) has very percise
  ideas about the layout of the text and I am unable to adjust to his
  wishes with LYX.

 All of this can be done, probably without too much trouble.

  Things which need to be adapted are:
  * font in the header, which has to be small capitals instead of capitals
  and a different font size

 I assume here that you mean the page header, or do you mean the chapter
 titles? Adjusting the page headers can be done use the fancyhdr package,
 and is fairly simple.
 http://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
 Adjusting the chapter titles can be done using the titlesec package and
 is also fairly simple.
 http://www.ctan.org/tex-archive/macros/latex/contrib/titlesec/
 We can work out the details.

  * header (left pages): the word chapter is printed in all chapters in
  German (Kapitel which is correct), but in chapter 9 there is chapter
  in the header (a bug?)

 Did you have some English in the document somewhere? It seems as if the
 language has gotten changed.

  * space of indentation at the beginning of paragraphs

 In your preamble, put:
 \setlength\parindent{2cm}
 or whatever it is you need. LaTeX will accept lots of different units,
 too. See here:

 http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/teTeX/latex/latex2e-html
/ltx-86.html for help.

  * headlines of chapters without the word chapter in the headline and
  different font size

 I think this is where you want to use titlesec.

 An alternative might be to switch to use the book (koma-script) class.
 The koma-script classes provide for a LOT of customization.

 Richard




Re: An extra space after hyperlinks in PDF

2009-05-25 Thread Uwe Stöhr

Dan Phan schrieb:


I use hyperref to generate clickable links in PDFs file, but I got extra
spaces after many, but not all, of my links.


Can you please provide a _small_ LyX example file?

regards Uwe


Re: Bibliography Is really complex , or it is a bug

2009-05-25 Thread cmiramon
Marcelo Reis wrote:
 I tried A LOT of styles, and finally I was able to find one that I
 thought that meet my needs.it is the ALIKE2 style.

I can't find anything called alike2.bst. Are you using natbib ?


 I'm in this problem for weeks and I'm really tired of it, I would
 appreciate a LOT if some one help me.

Don't worry. Bibliographies can be very frustrating and hard to debug.

You should give more details. Are you using natbib, jurabib, biblatex ? and
a small file with a small bib file.

It seems to me that what you want to achieve can be done with natbib. I
don't know very well natbib but look the documentation or wait that
somebody on the list with more knowledge answers.

Cheers,
Charles 




Re: memoir class lyx-1.5 file does not work with lyx-1.6

2009-05-25 Thread Enrico Forestieri
Jürgen Spitzmüller writes:

 LyX does this automatically for you, that's why your document works if the 
 code is inserted directly to the preamble. In former versions, Lyx blindly 
 embraced any preamble with this pair. Now, it tries to be smart and only 
 embraces it if the preamble actually contains an @-glyph.

Right, but LyX could also check whether \input is used in the preamble
and add the \makeatletter,\makeatother pair as a safety measure.

-- 
Enrico





Re: Bibliography Is really complex , or it is a bug

2009-05-25 Thread Marcelo Reis

cmira...@kde-france.org wrote:

Marcelo Reis wrote:
  

I tried A LOT of styles, and finally I was able to find one that I
thought that meet my needs.it is the ALIKE2 style.



I can't find anything called alike2.bst. Are you using natbib ?
  

/Sorry, the file can be found at:
C:\Arquivos de programas\MiKTeX 2.7\bibtex\bst\apalike\apalike2.bst

My only worry is: Why after I include any citation, all my  
Bibliographies is messed up :-(

Should not be this way, I think
/


  

I'm in this problem for weeks and I'm really tired of it, I would
appreciate a LOT if some one help me.



Don't worry. Bibliographies can be very frustrating and hard to debug.

You should give more details. Are you using natbib, jurabib, biblatex ? and
a small file with a small bib file.

It seems to me that what you want to achieve can be done with natbib. I
don't know very well natbib but look the documentation or wait that
somebody on the list with more knowledge answers.

Cheers,
Charles 
  
/Yes, Maybe I should try another way but since I spend a lot of time 
using JabRef, creating the Bib Files and other things I was trying first 
to solve this frustrating issue :-(

Hope some one give me an idea.
Thanks
/



  




Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Robert Neumann
 
 If you use Coreldraw, don't export to jpg you graphic, but directly to eps 
 type 2 and you will have best quality and no pixelated contours.

thats what I did, normaly I do the complete drawing but in this case I had to
include a jg.
With GIF-Export it works fairly well, thats what I found out the last days.
Regards Robert



Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Guenter Milde
On 2009-05-22, Florian Rubach wrote:
 Robert Neumann schrieb:
 Hello,
 I have a problem with the quality of jpg-images.

 ...
 I' using Lyx 1.3.4 on a Suse Linux (and I dont want to update, because
 all new lyx are slower it has to to with the latex)

 Seriously, what do you expect? If you're not willing to upgrade, I don't 
 think there is any possibility to fix _any_ issue...

This is simply not true. Especially the mentioned problem has nothing
to do with the LyX version!

 Also I can't really imagine any situation where anything regarding lyx 
 and latex takes longer than one could bear.

This very much depends on what one could bear and on the available
hardware. Faster than Word does not mean acceptable or nice to everyone.

Günter



Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Guenter Milde
On 2009-05-23, Robert Neumann wrote:
 Hello Wayan,
 I usually use eps for all my vektordrawings, but once in a while I have 
 to include an jpg, but the funny thing is, that it works with Lyx 1.5 
 on a Suse 11,so it seems to be possible. The ps-File on my old Suse with
 Lyx 1.3 has no pixels either when I export to ps(as I just posted in 
 reply to Steve) but when I use the ps2pdf from the new Linux on the old 
 Linux, it still has pixels. So it is very odd to figure out where the 
 problem lies.

Do you scale the figure in question or set a fixed size? Re-sizing pixel
images can lead to bad surprises.

EPS and PDF can both include JPEG and PNG images -- in newer versions.
Some convertors, however, will default to the save old format versions and
convert the image to an internal representation of the pixel data. You will
usually realize this by a huge increase of the file size.

Günter



Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Florian Rubach

Guenter Milde schrieb:

On 2009-05-22, Florian Rubach wrote:
  

Robert Neumann schrieb:


Hello,
I have a problem with the quality of jpg-images.
  


  

...


I' using Lyx 1.3.4 on a Suse Linux (and I dont want to update, because
all new lyx are slower it has to to with the latex)
  


  
Seriously, what do you expect? If you're not willing to upgrade, I don't 
think there is any possibility to fix _any_ issue...



This is simply not true. Especially the mentioned problem has nothing
to do with the LyX version!

  
Also I can't really imagine any situation where anything regarding lyx 
and latex takes longer than one could bear.



This very much depends on what one could bear and on the available
hardware. Faster than Word does not mean acceptable or nice to everyone.

Günter


Well, seems like the time to apologize. It was my point of view and I 
was wrong. Next time, I try to be more constructive...


Regards,
Florian


Re: Is PDF the best graphic format for LyX?

2009-05-25 Thread Guenter Milde
On 2009-05-21, Steve Litt wrote:

Is PDF the best graphic format for LyX?

No. As usual it depends...

 Is it my imagination, or do things go MUCH better when graphics
 included in a LyX diagram are PDFs? 

I found that I can convert easily forth and back between EPS and PDF
and from SVG to either of the two without loss of quality in most cases.

An exception are graphics with transparency, as EPS does not support an
alpha channel and has to use faked transparency.

 Is this a placebo effect, or do PDFs really work much, much better as
 LyX doc graphics?

If your output format is PDF only (I often use PS), having the included
files in this format too saves the trouble of dealing with the
converters. OTOH, for me it is in most cases easier to insert inkscape
made graphics as SVG, so I can edit them easily and don't have 2 files
lying around.

Günter



Re: LyX - cross platform core toolkit for scientific and technical writing?

2009-05-25 Thread José Matos
On Sunday 24 May 2009 17:44:16 Graham Smith wrote:
 Thanks,

 As you say an interesting combination, but if I wasn't using R, I would
 be using very expensive commercial alternatives, which I still have
 licenses for , but no longer upgrade.

I use mostly gnuplot (for 3d), matplotlib and R. Sometimes I call both gnuplot 
and R from python (rpy for the r - python part).

 Graham

-- 
José Abílio


Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Robert Neumann
Guenter Milde mi...@... writes:

 
 Do you scale the figure in question or set a fixed size? Re-sizing pixel
 images can lead to bad surprises.
yes, I just tried with 100%: No Difference. 

 EPS and PDF can both include JPEG and PNG images -- in newer versions.
 Some convertors, however, will default to the save old format versions and
 convert the image to an internal representation of the pixel data. You will
 usually realize this by a huge increase of the file size.
I found a solution which is acceptable for me: I export it from CorelDraw as a
grayscale-Gif. This works fairly well, at least I can life with that...
Regards Robert




Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Robert Neumann

 Well, seems like the time to apologize. It was my point of view and I 
 was wrong. Next time, I try to be more constructive...

Accepted;-)
Next time I have a problem, I will post the link to the old thread about the
strange fact that the newer latex takes more than twice the time immediately. It
could seem a bit weird, that I don't want to upgrade...

http://thread.gmane.org/gmane.editors.lyx.general/34234/focus=34251

Regards
Robert





Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Guenter Milde
On 2009-05-25, Robert Neumann wrote:
 Guenter Milde mi...@... writes:

 I found a solution which is acceptable for me: I export it from
 CorelDraw as a grayscale-Gif. This works fairly well, at least I can
 life with that... Regards Robert

Fine. Generally, JPEG is not suited for drawings or any images with
sharp lines. It is designed for fotographies with smoth gradients.
If it worked well with some images, this might just be a coincidence.

The rule of thumb I use is

* if possible, use a vector format (SVG, PDF, EPS)

* for a pixel graphic with few colours and sharp lines, use a
  lossless pixel comprssion (PNG or GIF, TIFF)
  
* for photo images (smoth gradient, many colours) use JPEG.

Günter  



Re: LyX - cross platform core toolkit for scientific and technical writing?

2009-05-25 Thread Graham Smith

José Matos wrote:


I use mostly gnuplot (for 3d), matplotlib and R. Sometimes I call both gnuplot 
and R from python (rpy for the r - python part).


  

It does look like Python offers a rather useful thing to learn.

Graham



Re: coloured background in header and margin

2009-05-25 Thread Helge Hafting

Uwe Stöhr wrote:

Christiaan Pauw schrieb:

Is it possible to use background colours in a header, footer and 
margin (or part of a each) only. I want to create a layout for a 
report that looks something like this:...


Coloring the header and footer should be possible, but coloring the 
margin note seems not to be possible.


Is it really a colored margin note (with text), or simply a colored 
rectangle decorating part of the margin area?


It is possible to put a colored box or image just where you want it. The 
true height and width of the thing can be hidden from latex by embedding 
it in a raisebox commands that gives it a fake zero size.


Obviously, nothing prevent other typeset material from crashing into 
such a construct, but there is usually nothing in the margin anyway. I 
used such a technique for the chapter pages in my book. The publisher 
gave me a full-page image with various colored edges that were supposed 
to go from edge to edge on the paper.


I see no problem with this page layout, except that it may require some 
oddball latex commands and a bit of trial and error. Could surely be a 
problem for anyone who don't have time to learn latex commands though.


Helge Hafting


Re: Is PDF the best graphic format for LyX?

2009-05-25 Thread Helge Hafting

Steve Litt wrote:

Hi all,

Is it my imagination, or do things go MUCH better when graphics included in a 
LyX diagram are PDFs? That's what I've found. I've found them infinitely and 
continuously scalable, and if I create the PDF with embed fonts, I think 
they work anywhere.


I'm so old I remember the days when LyX seemed to work reliably only 
with .eps. THen it could work with .png/.jpg/.gif. But nowadays my personal 
experience is that PDF images inside the doc work much better than any of 
those other formats ever did. Is this a placebo effect, or do PDFs really 
work much, much better as LyX doc graphics?


Any supported vector format ought to look fine, or there is a bug. There 
should be no difference between pdf and eps images. PDF might compile 
faster with pdflatex though.


The problem with bitmaps is that screens have different resolutions, and 
even a cheap printer has much much higher resolution than an expensive 
big screen. And good printers have much better resolution than that.


So, a jpeg that looks good printed on a photosetter or something will 
have to be one huge file, maybe a full-resolution image from a good 
camera. But such a big file will render slowly on a computer, and it 
will not be necessary to look good on a screen.


Helge Hafting


memoir class lyx-1.5 file does not work with lyx-1.6

2009-05-25 Thread Oscar Lopez

Dear Lyxers

I am trying to use a lyx template which uses the memoir book class that 
worked pretty well with lyx-1.5.4 but now with lyx-1.6.2 refuses to 
compile because the lyx error (in fact latex error) says:
\pagestyle{myMainheading} I've run across a `}' that doesn't seem to 
match anything. For example, `\def\a#1{...}' and `\a}' would produce 
this error. If you simply proceed now, the `\par' that I've just 
inserted will cause me to report a runaway argument that might be the 
root of the problem. But if your `}' was spurious, just type `2' and it 
will go away.


I thought that the problem could be related to this chunk of code

\makepsmarks{companion}{%
\l...@mkboth\markboth
\def\chaptermark##1{\markboth{##1}{##1}}% % left  right marks
\def\sectionmark##1{\markright{% % right mark
\ifnum \...@secnumdepth\z@
\thesection. \% % section number
\fi
##1}}
}

because when I remove it, everything works (the above code is a copy  of 
the memoir manual) I've tried to reproduce the error in a minimal 
document but unfortunately I am not able to reproduce the error which 
suggest me that it could be a problem related with other packages.


My question is that if there have been some modifications to the memoir 
layout from lyx-1.5 which can be responsible of the error. Do you have 
some advises to debug the problem because I am running out of ideas?


Thank you very much for all your help
Best regards
Oscar


Navigation menu - list of tables includes comment tables

2009-05-25 Thread Hauser Helmut

Hello,

I use Lyx 1.5.2 on Fedora. I have noted that in the Navigation menu - 
list of tables Lyx lists also tables which are
in the note (commentary) environment and therefore are not seen in the 
LaTeX output. For the counts in Lyx (e.g. Table 3) it counts these 
tables too. The same is right for figures.


Is that a bug (maybe already cleaned in newer versions) or is there a 
good reason for that, which I am not able to see?


Thanks for your help and the awesome program!!
Cheer,
- helmut

--

Helmut Hauser
Institute for Theoretical Computer Sciences
Technische Universitaet Graz
Inffeldgasse 16b, I
A-8010 Graz, Austria
---
helmut.hau...@igi.tugraz.at
Tel: + 43 316 873-5821
Fax: + 43 316 873-5805
http://www.igi.TUGraz.at/helmut/





RE: Navigation menu - list of tables includes comment tables

2009-05-25 Thread Vincent van Ravesteijn - TNW
 
I use Lyx 1.5.2 on Fedora. I have noted that in the
Navigation menu - list of tables Lyx lists also tables
which are in the note (commentary) environment and
therefore are not seen in the LaTeX output. For the
counts in Lyx (e.g. Table 3) it counts these tables
too. The same is right for figures.

Is that a bug (maybe already cleaned in newer versions)
or is there a good reason for that, which I am not able
to see?

Yes, this was a bug and it is indeed fixed in newer versions of LyX
(1.6.3 will be released quite soon).

Vincent


Lyx Print-out?

2009-05-25 Thread Bruhtesfa Ebrahim
Hey all,

I am using lyx to write my thesis. Everything is ok except one problem.

When I see the pdf output, the width of the text on the page is too narrow.
The PDF text covers only about 50% of the width of the page. Because of
this,
my thesis is elongated to many pages than it will actually be.

But, this is not the case in latex or when you convert word to pdf. So, what
is the solution for this
problem. Is there some setting that can increase the length of text per line
so that the text covers most of the page?

Thank you in advance for the help!

Bruh


RE: Lyx Print-out?

2009-05-25 Thread Vincent van Ravesteijn - TNW

Hey all,

I am using lyx to write my thesis. Everything is ok except
one problem.

When I see the pdf output, the width of the text on the
page is too narrow. The PDF text covers only about 50% of
the width of the page. Because of this, my thesis is
elongated to many pages than it will actually be.

But, this is not the case in latex or when you convert
word to pdf.

This depends on the document class you use. With the same document
class, this should be the same as in latex.

So, what is the solution for this problem. Is there some
setting that can increase the length of text per line so
that the text covers most of the page?

You could either choose a different document class (in
Document-Settings...-Document Class), or you may  adjust the Page
Format (in Document-Settings...-Page Layout) or you might want to
choose other Page Margins (in Document-Settings...-Page Margins).

Vincent


Re: coloured background in header and margin

2009-05-25 Thread Paul A. Rubin

Christiaan Pauw wrote:



Is it possible to use background colours in a header, footer and margin 
(or part of a each) only. I want to create a layout for a report that 
looks something like this:




I don't know about odd v. even pages, but the beamer presentation 
package includes styles that use various combinations of colored 
headers, footers and sidebars.


/Paul



Re: Lyx Print-out?

2009-05-25 Thread Erez Yerushalmi
Hi,

Do like Vincent said

To get MS-Word margins

Go to Document  settings  page margins
and use Top/bottom 2.54
right/left margins 3.17.

Another options is to plug into the preamble

\usepackage{geometry}
\geometry{verbose,letterpaper,tmargin=2.54cm,bmargin=2.54cm,lmargin=3.17cm,rmargin=3.17cm}

But then, if you have a heading, you need to fix that, because it will still
be in default,  more narrow.

Erez



On Mon, May 25, 2009 at 2:34 PM, Vincent van Ravesteijn - TNW 
v.f.vanraveste...@tudelft.nl wrote:


 Hey all,
 
 I am using lyx to write my thesis. Everything is ok except
 one problem.
 
 When I see the pdf output, the width of the text on the
 page is too narrow. The PDF text covers only about 50% of
 the width of the page. Because of this, my thesis is
 elongated to many pages than it will actually be.

 But, this is not the case in latex or when you convert
 word to pdf.

 This depends on the document class you use. With the same document
 class, this should be the same as in latex.

 So, what is the solution for this problem. Is there some
 setting that can increase the length of text per line so
 that the text covers most of the page?

 You could either choose a different document class (in
 Document-Settings...-Document Class), or you may  adjust the Page
 Format (in Document-Settings...-Page Layout) or you might want to
 choose other Page Margins (in Document-Settings...-Page Margins).

 Vincent




-- 
Erez Yerushalmi
PhD Student
Warwick University, UK
homepage:
http://www2.warwick.ac.uk/fac/soc/economics/research/phds/3rd_year/yerushalmi


XFig and LyX (Was: Re: Is PDF the best graphic format for LyX?)

2009-05-25 Thread curtis osterhoudt
Dear all, 

   I have just (within the last week or so, using the 2.0.0 svn development 
code, which I've kept up with and compiled) started having problems using XFig 
figures within LyX. 

Previously (and the mechanism is still there), to insert an XFig figure, I'd 
use the external material insert, and choose the xfig type. Currently, if I 
do that, the preview will no longer show up in LyX, and upon trying to compile 
the document, a message complaining of a missing figure will show up, with a 
mangled path to the file. *However*, quite by accident, I found that inserting 
the XFig file as a regular graphic (such as a .jpeg or .pdf) now seems to work. 

Is this going to be a long-term change to the code? It'll certainly make things 
more consistent to my mind, so long as the documentation is fixed, too.

  --C.O.
 

 /
Down with categorical imperative!
flutz...@yahoo.com
/





From: Helge Hafting helge.haft...@hist.no
To: Steve Litt sl...@troubleshooters.com
Cc: lyx-users@lists.lyx.org
Sent: Monday, May 25, 2009 4:36:08 AM
Subject: Re: Is PDF the best graphic format for LyX?

Steve Litt wrote:
 Hi all,
 
 Is it my imagination, or do things go MUCH better when graphics included in a 
 LyX diagram are PDFs? That's what I've found. I've found them infinitely and 
 continuously scalable, and if I create the PDF with embed fonts, I think 
 they work anywhere.
 
 I'm so old I remember the days when LyX seemed to work reliably only with 
 .eps. THen it could work with .png/.jpg/.gif. But nowadays my personal 
 experience is that PDF images inside the doc work much better than any of 
 those other formats ever did. Is this a placebo effect, or do PDFs really 
 work much, much better as LyX doc graphics?

Any supported vector format ought to look fine, or there is a bug. There should 
be no difference between pdf and eps images. PDF might compile faster with 
pdflatex though.

The problem with bitmaps is that screens have different resolutions, and even a 
cheap printer has much much higher resolution than an expensive big screen. And 
good printers have much better resolution than that.

So, a jpeg that looks good printed on a photosetter or something will have to 
be one huge file, maybe a full-resolution image from a good camera. But such a 
big file will render slowly on a computer, and it will not be necessary to look 
good on a screen.

Helge Hafting



  

Output resolution of PDF

2009-05-25 Thread Micha Feigin
I'm trying to include equations created in lyx/latex inside a scribus poster (The scribus 
plugin doesn't seem to do what I want). The output resolution is too low though (seems to 
be 72dpi) and the fonts look really bad. Is there a way to get latex to output the 
document at a higher resolution? (I'm using the palatino font at the moment)


Thanks


Re: memoir class lyx-1.5 file does not work with lyx-1.6

2009-05-25 Thread Oscar Lopez

Dear all

I have been able to reproduce the problem. Attached there is a minimal 
lyx file together with a minimal preamble (foo.tex) which reproduces the 
problem.


* if the lyx preamble consists of \input{foo.tex} it does not work and 
the aforementioned error appears. If I enclose \input{foo.tex} between 
\makeatletter and \makeatother then it works, which really puzzles me.


*if the content of the preamble foo.tex is directly included in the lyx 
preamble

everything work like expected.

I am completely shocked about such behaviour. I am not sure what is 
going on and I'd appreciate somebody could comment about this. I have 
thought that could be related to master-child documents (the initial lyx 
file was a master and several child but now it is just one document) but 
it does not make any sense at all.


I usually write the preamble into an external text file, especially when 
the preamble is complicated like the one of the book in order to be able 
to easily edit it. However, I enclosing the lyx preamble of the actual 
book between \makeatletter and \makeatother another errors appear as it 
would be expected. So, I am completely lost and I do not know how the 
problem could be solved. Perhaps I am missing something quite evident 
and I am writing rubbish. Any comment or suggestion is appreciated.


Thank you very much for all your help
Best regards
Oscar


Oscar Lopez wrote:

Dear Lyxers

I am trying to use a lyx template which uses the memoir book class 
that worked pretty well with lyx-1.5.4 but now with lyx-1.6.2 refuses 
to compile because the lyx error (in fact latex error) says:
\pagestyle{myMainheading} I've run across a `}' that doesn't seem to 
match anything. For example, `\def\a#1{...}' and `\a}' would produce 
this error. If you simply proceed now, the `\par' that I've just 
inserted will cause me to report a runaway argument that might be the 
root of the problem. But if your `}' was spurious, just type `2' and 
it will go away.


I thought that the problem could be related to this chunk of code

\makepsmarks{companion}{%
\l...@mkboth\markboth
\def\chaptermark##1{\markboth{##1}{##1}}% % left  right marks
\def\sectionmark##1{\markright{% % right mark
\ifnum \...@secnumdepth\z@
\thesection. \% % section number
\fi
##1}}
}

because when I remove it, everything works (the above code is a copy  
of the memoir manual) I've tried to reproduce the error in a minimal 
document but unfortunately I am not able to reproduce the error which 
suggest me that it could be a problem related with other packages.


My question is that if there have been some modifications to the 
memoir layout from lyx-1.5 which can be responsible of the error. Do 
you have some advises to debug the problem because I am running out of 
ideas?


Thank you very much for all your help
Best regards
Oscar




%---
% Definir los encabezados y pies de los capitulos
\makepagestyle{myMainheading}
\makerunningwidth{myMainheading}{\textwidth}
\makeheadposition{myMainheading}{flushright}{flushleft}{}{}
\makepsmarks{myMainheading}{%
  \l...@mkboth\markboth
  \def\chaptermark##1{\markboth{##1}{##1}}% % left  right marks
  \def\sectionmark##1{\markright{%  % right mark
\ifnum \...@secnumdepth\z@
  \thesection .\hspace{4pt}   % section number
\fi
##1}}
}
\makeevenhead{myMainheading}{\normalfont\footnotesize\thepage}{}%
{\normalfont\footnotesize\leftmark}
\makeoddhead{myMainheading}{\normalfont\footnotesize\rightmark}{}%
   {\normalfont\footnotesize\thepage}



plantilla.lyx
Description: application/lyx


Re: Output resolution of PDF

2009-05-25 Thread Guenter Milde
On 2009-05-25, Micha Feigin wrote:

 I'm trying to include equations created in lyx/latex inside a scribus
 poster (The scribus plugin doesn't seem to do what I want). The output
 resolution is too low though (seems to be 72dpi) and the fonts look
 really bad. Is there a way to get latex to output the document at a
 higher resolution? (I'm using the palatino font at the moment)

PDF does not have an output resolution, as it is a vector format. If
you use palatino, the font is in vector format too.

OTOH, scribus cannot import PDF as vector image but converts it to a
raster image! Try to configure the PDF import settings or try via SVG.

Also, if you include the equations via screen-shots the resolution will
of course be bad.

Günter



Re: memoir class lyx-1.5 file does not work with lyx-1.6

2009-05-25 Thread Jürgen Spitzmüller
Oscar Lopez wrote:
 * if the lyx preamble consists of \input{foo.tex} it does not work and
 the aforementioned error appears. If I enclose \input{foo.tex} between
 \makeatletter and \makeatother then it works, which really puzzles me.

 *if the content of the preamble foo.tex is directly included in the lyx
 preamble
 everything work like expected.

The glyph '@' has two different meanings in LaTeX. It is used as an active 
char (inside the document) and (for instance) as a namespace delimiter (in 
classes). The latter is the case in your preamble snippet, e.g. in

l...@mkboth\markboth 

To switch between these two meanings, the commands \makeatletter and 
\makeatother are used. In general, you always need to embrace preamble code 
with

\makeatletter
...
\makeatother

if it contains an '@'.

LyX does this automatically for you, that's why your document works if the 
code is inserted directly to the preamble. In former versions, Lyx blindly 
embraced any preamble with this pair. Now, it tries to be smart and only 
embraces it if the preamble actually contains an @-glyph.
In the \include-version, this is not the case.

The solution is

a.) to embrace the original code accordingly, if it is in a normal tex file
or
b.) make it a real sty-File (where this is not needed).


HTH,
Jürgen



Re: memoir class lyx-1.5 file does not work with lyx-1.6

2009-05-25 Thread Steve Litt
On Monday 25 May 2009 10:40:43 am Oscar Lopez wrote:
 Dear all

 I have been able to reproduce the problem. Attached there is a minimal
 lyx file together with a minimal preamble (foo.tex) which reproduces the
 problem.

 * if the lyx preamble consists of \input{foo.tex} it does not work and
 the aforementioned error appears. If I enclose \input{foo.tex} between
 \makeatletter and \makeatother then it works, which really puzzles me.

 *if the content of the preamble foo.tex is directly included in the lyx
 preamble
 everything work like expected.

 I am completely shocked about such behaviour. 

:-)  You'd be a little less shocked if you worked with macros in C :-)

 I am not sure what is 
 going on and I'd appreciate somebody could comment about this. 

You have a command in foo.tex that can't be nested further. I think they're 
called fragile commands, although we're getting past my LaTeX expertise at 
this point. You already found the solution -- surround with 
makeatletter/makeatother.

What surprises me is that it's dependent on LyX version. If the LyX file is 
called bar.lyx, I'd like to see you do the following:

lyx-1.5.4 -e latex bar.lyx
mv bar.tex bar-1.5.4.tex
lyx-1.6.2 -e latex bar.lyx
mv bar.tex bar-1.6.2.tex
diff bar-1.5.4.tex bar-1.6.2.tex

Then run latex on both tex files and see if one errors out while the other 
doesn't. Exploit the differences.

HTH

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



Underscore in Bibliography

2009-05-25 Thread Hesham Kamel
Hi,
Please, I have many references with underscore in the url,
which generates an error when creating the pdf view.
I'd appreciate your suggestions.
Thank you

-- 
Hesham


Bibliography Is really complex , or it is a bug

2009-05-25 Thread Marcelo Reis
Guys, believe me I did a lot of research regarding this, but until now I 
was not able to make things works the way I want.


I'm developing (at least trying) my thesis, and I can't make things goes 
the way I want.


I need the following style to  Bibliography:
[Author Name, YEAR] Last Name, First Name;Last Name, First Name. 
Title of the book Publisher. Year


a example would be:
[Reyes  Wiles, 2007] Reyes, A.  Wiles, J. Best Dawn Cybercrime and 
Digital Forensics

Book. Syngress. 2007.

I'm from brazil, so I need or the sign  or the word E (the same as and) 
to separate the names inside [].


I tried A LOT of styles, and finally I was able to find one that I 
thought that meet my needs.it is the ALIKE2 style.

When I use it things are PERFECT!..
*BUT HERE IS THE HUGE PROBLEM:
*When I create ANY citation in my document, ALL the things inside 
the [ ] in  Bibliography just disappear.
   If I remove the citation, things back to normal and [Name of Author, 
YEAR] came back.


Example:
Without Citation in document:
*[Reyes  Wiles, 2007] Reyes, A.  Wiles, J. Best Dawn Cybercrime and 
Digital Forensics.Book. Syngress. 2007.

*With Citation in document:
*Reyes, A.  Wiles, J. Best Dawn Cybercrime and Digital Forensics.Book. 
Syngress. 2007.


Why this happens?!
*
ANY Thoughts?!?!

I'm in this problem for weeks and I'm really tired of it, I would 
appreciate a LOT if some one help me.

Marcelo


An extra space after hyperlinks in PDF

2009-05-25 Thread Dan Phan
I use hyperref to generate clickable links in PDFs file, but I got extra
spaces after many, but not all, of my links. That means an end of sentence
period or comma may end up in another line, which is very ugly.
Is this a Latex or LyX problem? How do I resolve it?

Thanks

Dan


Re: LFUN to switch focus to outline pane and back

2009-05-25 Thread Pavel Sanda
Hellmut Weber wrote:
 Are there lfuns which switch the focus from the text panel to the outline 
 panel and back.

i think its even impossible to get keyboard focus inside outline even if you
try to set it by mouse

pavel


Re: formatting help needed

2009-05-25 Thread Markus Büchele
Hello Richard,

sorry for my long silence - I didn't resolve the issues completely, but I got 
over an important hurdle.

I exported my .lyx-file to a .tex-file. This was the only way, I could get in 
the \setlength\parindent{0.7cm} option. It was quite hard for me because 
the German umlaut didn't get translated properly. I found out that I had to 
change the encoding to utf8 to make it work.

I also added:
\usepackage{fancyhdr}
\pagestyle{fancy}

The next point I need to solve is the header issue: 
* page number: font size 12
* left pages: chapter title (right-aligned) in small capitals and font size 10
* right pages: subchapter title (left-aligned) in small capitals and font size 
10
header not on first page of chapter

At present I get both chapter and subchapter titles in the header so that they 
overwrite each other and are unreadable. The page number is in the footer and 
should go up to the header.

A second point is the font size (12 and solved ;-) but the line distance 
should be 14 points. How do I get that?

Thanks a lot for your help!

Markus

Just is case it may help, here is my header of the .tex file:

%% LyX 1.6.2 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[12pt,english,ngerman]{extbook}
\usepackage{mathptmx}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[a4paper]{geometry}
\geometry{verbose,tmargin=3.6cm,bmargin=3.6cm,lmargin=3.5cm,rmargin=3.5cm,headsep=1.2cm,footskip=1.25cm}
\usepackage{fancyhdr}
\pagestyle{fancy}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\usepackage{color}
\usepackage{array}
\usepackage{textcomp}

\setlength\parindent{0.7cm}


%% LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}

\usepackage{babel}

\begin{document}


Am Donnerstag, 7. Mai 2009 15:03:42 schrieb rgheck:
 Markus Büchele wrote:
  Hi Lyx experts,
 
  I have been using LYX for over decade now. It has always been a fantastic
  tool, especially for my PhD thesis.
 
  Unfortunately I have arrived at a dead end just before publication. My
  publisher (Franz Steiner Verlag, Stuttgart, Germany) has very percise
  ideas about the layout of the text and I am unable to adjust to his
  wishes with LYX.

 All of this can be done, probably without too much trouble.

  Things which need to be adapted are:
  * font in the header, which has to be small capitals instead of capitals
  and a different font size

 I assume here that you mean the page header, or do you mean the chapter
 titles? Adjusting the page headers can be done use the fancyhdr package,
 and is fairly simple.
 http://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
 Adjusting the chapter titles can be done using the titlesec package and
 is also fairly simple.
 http://www.ctan.org/tex-archive/macros/latex/contrib/titlesec/
 We can work out the details.

  * header (left pages): the word chapter is printed in all chapters in
  German (Kapitel which is correct), but in chapter 9 there is chapter
  in the header (a bug?)

 Did you have some English in the document somewhere? It seems as if the
 language has gotten changed.

  * space of indentation at the beginning of paragraphs

 In your preamble, put:
 \setlength\parindent{2cm}
 or whatever it is you need. LaTeX will accept lots of different units,
 too. See here:

 http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/teTeX/latex/latex2e-html
/ltx-86.html for help.

  * headlines of chapters without the word chapter in the headline and
  different font size

 I think this is where you want to use titlesec.

 An alternative might be to switch to use the book (koma-script) class.
 The koma-script classes provide for a LOT of customization.

 Richard




Re: An extra space after hyperlinks in PDF

2009-05-25 Thread Uwe Stöhr

Dan Phan schrieb:


I use hyperref to generate clickable links in PDFs file, but I got extra
spaces after many, but not all, of my links.


Can you please provide a _small_ LyX example file?

regards Uwe


Re: Bibliography Is really complex , or it is a bug

2009-05-25 Thread cmiramon
Marcelo Reis wrote:
 I tried A LOT of styles, and finally I was able to find one that I
 thought that meet my needs.it is the ALIKE2 style.

I can't find anything called alike2.bst. Are you using natbib ?


 I'm in this problem for weeks and I'm really tired of it, I would
 appreciate a LOT if some one help me.

Don't worry. Bibliographies can be very frustrating and hard to debug.

You should give more details. Are you using natbib, jurabib, biblatex ? and
a small file with a small bib file.

It seems to me that what you want to achieve can be done with natbib. I
don't know very well natbib but look the documentation or wait that
somebody on the list with more knowledge answers.

Cheers,
Charles 




Re: memoir class lyx-1.5 file does not work with lyx-1.6

2009-05-25 Thread Enrico Forestieri
Jürgen Spitzmüller writes:

 LyX does this automatically for you, that's why your document works if the 
 code is inserted directly to the preamble. In former versions, Lyx blindly 
 embraced any preamble with this pair. Now, it tries to be smart and only 
 embraces it if the preamble actually contains an @-glyph.

Right, but LyX could also check whether \input is used in the preamble
and add the \makeatletter,\makeatother pair as a safety measure.

-- 
Enrico





Re: Bibliography Is really complex , or it is a bug

2009-05-25 Thread Marcelo Reis

cmira...@kde-france.org wrote:

Marcelo Reis wrote:
  

I tried A LOT of styles, and finally I was able to find one that I
thought that meet my needs.it is the ALIKE2 style.



I can't find anything called alike2.bst. Are you using natbib ?
  

/Sorry, the file can be found at:
C:\Arquivos de programas\MiKTeX 2.7\bibtex\bst\apalike\apalike2.bst

My only worry is: Why after I include any citation, all my  
Bibliographies is messed up :-(

Should not be this way, I think
/


  

I'm in this problem for weeks and I'm really tired of it, I would
appreciate a LOT if some one help me.



Don't worry. Bibliographies can be very frustrating and hard to debug.

You should give more details. Are you using natbib, jurabib, biblatex ? and
a small file with a small bib file.

It seems to me that what you want to achieve can be done with natbib. I
don't know very well natbib but look the documentation or wait that
somebody on the list with more knowledge answers.

Cheers,
Charles 
  
/Yes, Maybe I should try another way but since I spend a lot of time 
using JabRef, creating the Bib Files and other things I was trying first 
to solve this frustrating issue :-(

Hope some one give me an idea.
Thanks
/



  




Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Robert Neumann
 
 If you use Coreldraw, don't export to jpg you graphic, but directly to eps 
 type 2 and you will have best quality and no pixelated contours.

thats what I did, normaly I do the complete drawing but in this case I had to
include a jg.
With GIF-Export it works fairly well, thats what I found out the last days.
Regards Robert



Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Guenter Milde
On 2009-05-22, Florian Rubach wrote:
> Robert Neumann schrieb:
>> Hello,
>> I have a problem with the quality of jpg-images.

> ...
>> I' using Lyx 1.3.4 on a Suse Linux (and I dont want to update, because
>> all new lyx are slower it has to to with the latex)

> Seriously, what do you expect? If you're not willing to upgrade, I don't 
> think there is any possibility to fix _any_ issue...

This is simply not true. Especially the mentioned problem has nothing
to do with the LyX version!

> Also I can't really imagine any situation where anything regarding lyx 
> and latex takes longer than one could bear.

This very much depends on what one could bear and on the available
hardware. Faster than Word does not mean acceptable or nice to everyone.

Günter



Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Guenter Milde
On 2009-05-23, Robert Neumann wrote:
> Hello Wayan,
> I usually use eps for all my vektordrawings, but once in a while I have 
> to include an jpg, but the funny thing is, that it works with Lyx 1.5 
> on a Suse 11,so it seems to be possible. The ps-File on my old Suse with
> Lyx 1.3 has no pixels either when I export to ps(as I just posted in 
> reply to Steve) but when I use the ps2pdf from the new Linux on the old 
> Linux, it still has pixels. So it is very odd to figure out where the 
> problem lies.

Do you scale the figure in question or set a fixed size? Re-sizing pixel
images can lead to bad surprises.

EPS and PDF can both "include" JPEG and PNG images -- in newer versions.
Some convertors, however, will default to the "save" old format versions and
convert the image to an internal representation of the pixel data. You will
usually realize this by a huge increase of the file size.

Günter



Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Florian Rubach

Guenter Milde schrieb:

On 2009-05-22, Florian Rubach wrote:
  

Robert Neumann schrieb:


Hello,
I have a problem with the quality of jpg-images.
  


  

...


I' using Lyx 1.3.4 on a Suse Linux (and I dont want to update, because
all new lyx are slower it has to to with the latex)
  


  
Seriously, what do you expect? If you're not willing to upgrade, I don't 
think there is any possibility to fix _any_ issue...



This is simply not true. Especially the mentioned problem has nothing
to do with the LyX version!

  
Also I can't really imagine any situation where anything regarding lyx 
and latex takes longer than one could bear.



This very much depends on what one could bear and on the available
hardware. Faster than Word does not mean acceptable or nice to everyone.

Günter


Well, seems like the time to apologize. It was my point of view and I 
was wrong. Next time, I try to be more constructive...


Regards,
Florian


Re: Is PDF the best graphic format for LyX?

2009-05-25 Thread Guenter Milde
On 2009-05-21, Steve Litt wrote:

Is PDF the best graphic format for LyX?

No. As usual it depends...

> Is it my imagination, or do things go MUCH better when graphics
> included in a LyX diagram are PDFs? 

I found that I can convert easily forth and back between EPS and PDF
and from SVG to either of the two without loss of quality in most cases.

An exception are graphics with transparency, as EPS does not support an
alpha channel and has to use "faked transparency".

> Is this a placebo effect, or do PDFs really work much, much better as
> LyX doc graphics?

If your output format is PDF only (I often use PS), having the included
files in this format too saves the trouble of dealing with the
converters. OTOH, for me it is in most cases easier to insert inkscape
made graphics as SVG, so I can edit them easily and don't have 2 files
lying around.

Günter



Re: LyX - cross platform core toolkit for scientific and technical writing?

2009-05-25 Thread José Matos
On Sunday 24 May 2009 17:44:16 Graham Smith wrote:
> Thanks,
>
> As you say an interesting combination, but if I wasn't using R, I would
> be using very expensive commercial alternatives, which I still have
> licenses for , but no longer upgrade.

I use mostly gnuplot (for 3d), matplotlib and R. Sometimes I call both gnuplot 
and R from python (rpy for the r <-> python part).

> Graham

-- 
José Abílio


Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Robert Neumann
Guenter Milde  writes:

 
> Do you scale the figure in question or set a fixed size? Re-sizing pixel
> images can lead to bad surprises.
yes, I just tried with 100%: No Difference. 

> EPS and PDF can both "include" JPEG and PNG images -- in newer versions.
> Some convertors, however, will default to the "save" old format versions and
> convert the image to an internal representation of the pixel data. You will
> usually realize this by a huge increase of the file size.
I found a solution which is acceptable for me: I export it from CorelDraw as a
grayscale-Gif. This works fairly well, at least I can life with that...
Regards Robert




Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Robert Neumann

> Well, seems like the time to apologize. It was my point of view and I 
> was wrong. Next time, I try to be more constructive...

Accepted;-)
Next time I have a problem, I will post the link to the old thread about the
strange fact that the newer latex takes more than twice the time immediately. It
could seem a bit weird, that I don't want to upgrade...

http://thread.gmane.org/gmane.editors.lyx.general/34234/focus=34251

Regards
Robert





Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Guenter Milde
On 2009-05-25, Robert Neumann wrote:
> Guenter Milde  writes:

> I found a solution which is acceptable for me: I export it from
> CorelDraw as a grayscale-Gif. This works fairly well, at least I can
> life with that... Regards Robert

Fine. Generally, JPEG is not suited for drawings or any images with
sharp lines. It is designed for fotographies with smoth gradients.
If it worked well with some images, this might just be a coincidence.

The rule of thumb I use is

* if possible, use a vector format (SVG, PDF, EPS)

* for a pixel graphic with few colours and sharp lines, use a
  lossless pixel comprssion (PNG or GIF, TIFF)
  
* for photo images (smoth gradient, many colours) use JPEG.

Günter  



Re: LyX - cross platform core toolkit for scientific and technical writing?

2009-05-25 Thread Graham Smith

José Matos wrote:


I use mostly gnuplot (for 3d), matplotlib and R. Sometimes I call both gnuplot 
and R from python (rpy for the r <-> python part).


  

It does look like Python offers a rather useful thing to learn.

Graham



Re: coloured background in header and margin

2009-05-25 Thread Helge Hafting

Uwe Stöhr wrote:

Christiaan Pauw schrieb:

Is it possible to use background colours in a header, footer and 
margin (or part of a each) only. I want to create a layout for a 
report that looks something like this:...


Coloring the header and footer should be possible, but coloring the 
margin note seems not to be possible.


Is it really a colored margin note (with text), or simply a colored 
rectangle decorating part of the margin area?


It is possible to put a colored box or image just where you want it. The 
true height and width of the thing can be hidden from latex by embedding 
it in a raisebox commands that gives it a fake zero size.


Obviously, nothing prevent other typeset material from crashing into 
such a construct, but there is usually nothing in the margin anyway. I 
used such a technique for the chapter pages in my book. The publisher 
gave me a full-page image with various colored edges that were supposed 
to go from edge to edge on the paper.


I see no problem with this page layout, except that it may require some 
oddball latex commands and a bit of trial and error. Could surely be a 
problem for anyone who don't have time to learn latex commands though.


Helge Hafting


Re: Is PDF the best graphic format for LyX?

2009-05-25 Thread Helge Hafting

Steve Litt wrote:

Hi all,

Is it my imagination, or do things go MUCH better when graphics included in a 
LyX diagram are PDFs? That's what I've found. I've found them infinitely and 
continuously scalable, and if I create the PDF with "embed fonts", I think 
they work anywhere.


I'm so old I remember the days when LyX seemed to work reliably only 
with .eps. THen it could work with .png/.jpg/.gif. But nowadays my personal 
experience is that PDF images inside the doc work much better than any of 
those other formats ever did. Is this a placebo effect, or do PDFs really 
work much, much better as LyX doc graphics?


Any supported vector format ought to look fine, or there is a bug. There 
should be no difference between pdf and eps images. PDF might compile 
faster with pdflatex though.


The problem with bitmaps is that screens have different resolutions, and 
even a cheap printer has much much higher resolution than an expensive 
big screen. And good printers have much better resolution than that.


So, a jpeg that looks good printed on a photosetter or something will 
have to be one huge file, maybe a full-resolution image from a good 
camera. But such a big file will render slowly on a computer, and it 
will not be necessary to look good on a screen.


Helge Hafting


memoir class lyx-1.5 file does not work with lyx-1.6

2009-05-25 Thread Oscar Lopez

Dear Lyxers

I am trying to use a lyx template which uses the memoir book class that 
worked pretty well with lyx-1.5.4 but now with lyx-1.6.2 refuses to 
compile because the lyx error (in fact latex error) says:
\pagestyle{myMainheading} I've run across a `}' that doesn't seem to 
match anything. For example, `\def\a#1{...}' and `\a}' would produce 
this error. If you simply proceed now, the `\par' that I've just 
inserted will cause me to report a runaway argument that might be the 
root of the problem. But if your `}' was spurious, just type `2' and it 
will go away.


I thought that the problem could be related to this chunk of code

\makepsmarks{companion}{%
\l...@mkboth\markboth
\def\chaptermark##1{\markboth{##1}{##1}}% % left & right marks
\def\sectionmark##1{\markright{% % right mark
\ifnum \...@secnumdepth>\z@
\thesection. \% % section number
\fi
##1}}
}

because when I remove it, everything works (the above code is a copy  of 
the memoir manual) I've tried to reproduce the error in a minimal 
document but unfortunately I am not able to reproduce the error which 
suggest me that it could be a problem related with other packages.


My question is that if there have been some modifications to the memoir 
layout from lyx-1.5 which can be responsible of the error. Do you have 
some advises to debug the problem because I am running out of ideas?


Thank you very much for all your help
Best regards
Oscar


Navigation menu -> list of tables includes comment tables

2009-05-25 Thread Hauser Helmut

Hello,

I use Lyx 1.5.2 on Fedora. I have noted that in the Navigation menu -> 
list of tables Lyx lists also tables which are
in the "note" (commentary) environment and therefore are not seen in the 
LaTeX output. For the counts in Lyx (e.g. Table 3) it counts these 
tables too. The same is right for figures.


Is that a bug (maybe already cleaned in newer versions) or is there a 
good reason for that, which I am not able to see?


Thanks for your help and the awesome program!!
Cheer,
- helmut

--

Helmut Hauser
Institute for Theoretical Computer Sciences
Technische Universitaet Graz
Inffeldgasse 16b, I
A-8010 Graz, Austria
---
helmut.hau...@igi.tugraz.at
Tel: + 43 316 873-5821
Fax: + 43 316 873-5805
http://www.igi.TUGraz.at/helmut/





RE: Navigation menu -> list of tables includes comment tables

2009-05-25 Thread Vincent van Ravesteijn - TNW
 
>I use Lyx 1.5.2 on Fedora. I have noted that in the
>Navigation menu -> list of tables Lyx lists also tables
>which are in the "note" (commentary) environment and
>therefore are not seen in the LaTeX output. For the
>counts in Lyx (e.g. Table 3) it counts these tables
>too. The same is right for figures.
>
>Is that a bug (maybe already cleaned in newer versions)
>or is there a good reason for that, which I am not able
>to see?

Yes, this was a bug and it is indeed fixed in newer versions of LyX
(1.6.3 will be released quite soon).

Vincent


Lyx Print-out?

2009-05-25 Thread Bruhtesfa Ebrahim
Hey all,

I am using lyx to write my thesis. Everything is ok except one problem.

When I see the pdf output, the width of the text on the page is too narrow.
The PDF text covers only about 50% of the width of the page. Because of
this,
my thesis is elongated to many pages than it will actually be.

But, this is not the case in latex or when you convert word to pdf. So, what
is the solution for this
problem. Is there some setting that can increase the length of text per line
so that the text covers most of the page?

Thank you in advance for the help!

Bruh


RE: Lyx Print-out?

2009-05-25 Thread Vincent van Ravesteijn - TNW

>Hey all,
>
>I am using lyx to write my thesis. Everything is ok except
>one problem.
>
>When I see the pdf output, the width of the text on the
>page is too narrow. The PDF text covers only about 50% of
>the width of the page. Because of this, my thesis is
>elongated to many pages than it will actually be.

>But, this is not the case in latex or when you convert
>word to pdf.

This depends on the document class you use. With the same document
class, this should be the same as in latex.

>So, what is the solution for this problem. Is there some
>setting that can increase the length of text per line so
>that the text covers most of the page?

You could either choose a different document class (in
"Document->Settings...->Document Class"), or you may  adjust the Page
Format (in "Document->Settings...->Page Layout") or you might want to
choose other Page Margins (in "Document->Settings...->Page Margins).

Vincent


Re: coloured background in header and margin

2009-05-25 Thread Paul A. Rubin

Christiaan Pauw wrote:



Is it possible to use background colours in a header, footer and margin 
(or part of a each) only. I want to create a layout for a report that 
looks something like this:




I don't know about odd v. even pages, but the beamer presentation 
package includes styles that use various combinations of colored 
headers, footers and sidebars.


/Paul



Re: Lyx Print-out?

2009-05-25 Thread Erez Yerushalmi
Hi,

Do like Vincent said

To get MS-Word margins

Go to Document > settings > page margins
and use Top/bottom 2.54
right/left margins 3.17.

Another options is to plug into the preamble

\usepackage{geometry}
\geometry{verbose,letterpaper,tmargin=2.54cm,bmargin=2.54cm,lmargin=3.17cm,rmargin=3.17cm}

But then, if you have a heading, you need to fix that, because it will still
be in default,  more narrow.

Erez



On Mon, May 25, 2009 at 2:34 PM, Vincent van Ravesteijn - TNW <
v.f.vanraveste...@tudelft.nl> wrote:

>
> >Hey all,
> >
> >I am using lyx to write my thesis. Everything is ok except
> >one problem.
> >
> >When I see the pdf output, the width of the text on the
> >page is too narrow. The PDF text covers only about 50% of
> >the width of the page. Because of this, my thesis is
> >elongated to many pages than it will actually be.
>
> >But, this is not the case in latex or when you convert
> >word to pdf.
>
> This depends on the document class you use. With the same document
> class, this should be the same as in latex.
>
> >So, what is the solution for this problem. Is there some
> >setting that can increase the length of text per line so
> >that the text covers most of the page?
>
> You could either choose a different document class (in
> "Document->Settings...->Document Class"), or you may  adjust the Page
> Format (in "Document->Settings...->Page Layout") or you might want to
> choose other Page Margins (in "Document->Settings...->Page Margins).
>
> Vincent
>



-- 
Erez Yerushalmi
PhD Student
Warwick University, UK
homepage:
http://www2.warwick.ac.uk/fac/soc/economics/research/phds/3rd_year/yerushalmi


XFig and LyX (Was: Re: Is PDF the best graphic format for LyX?)

2009-05-25 Thread curtis osterhoudt
Dear all, 

   I have just (within the last week or so, using the 2.0.0 svn development 
code, which I've kept up with and compiled) started having problems using XFig 
figures within LyX. 

Previously (and the mechanism is still there), to insert an XFig figure, I'd 
use the "external material" insert, and choose the "xfig" type. Currently, if I 
do that, the preview will no longer show up in LyX, and upon trying to compile 
the document, a message complaining of a missing figure will show up, with a 
mangled path to the file. *However*, quite by accident, I found that inserting 
the XFig file as a regular graphic (such as a .jpeg or .pdf) now seems to work. 

Is this going to be a long-term change to the code? It'll certainly make things 
more consistent to my mind, so long as the documentation is fixed, too.

  --C.O.
 

 /
Down with categorical imperative!
flutz...@yahoo.com
/





From: Helge Hafting 
To: Steve Litt 
Cc: lyx-users@lists.lyx.org
Sent: Monday, May 25, 2009 4:36:08 AM
Subject: Re: Is PDF the best graphic format for LyX?

Steve Litt wrote:
> Hi all,
> 
> Is it my imagination, or do things go MUCH better when graphics included in a 
> LyX diagram are PDFs? That's what I've found. I've found them infinitely and 
> continuously scalable, and if I create the PDF with "embed fonts", I think 
> they work anywhere.
> 
> I'm so old I remember the days when LyX seemed to work reliably only with 
> .eps. THen it could work with .png/.jpg/.gif. But nowadays my personal 
> experience is that PDF images inside the doc work much better than any of 
> those other formats ever did. Is this a placebo effect, or do PDFs really 
> work much, much better as LyX doc graphics?

Any supported vector format ought to look fine, or there is a bug. There should 
be no difference between pdf and eps images. PDF might compile faster with 
pdflatex though.

The problem with bitmaps is that screens have different resolutions, and even a 
cheap printer has much much higher resolution than an expensive big screen. And 
good printers have much better resolution than that.

So, a jpeg that looks good printed on a photosetter or something will have to 
be one huge file, maybe a full-resolution image from a good camera. But such a 
big file will render slowly on a computer, and it will not be necessary to look 
good on a screen.

Helge Hafting



  

Output resolution of PDF

2009-05-25 Thread Micha Feigin
I'm trying to include equations created in lyx/latex inside a scribus poster (The scribus 
plugin doesn't seem to do what I want). The output resolution is too low though (seems to 
be 72dpi) and the fonts look really bad. Is there a way to get latex to output the 
document at a higher resolution? (I'm using the palatino font at the moment)


Thanks


Re: memoir class lyx-1.5 file does not work with lyx-1.6

2009-05-25 Thread Oscar Lopez

Dear all

I have been able to reproduce the problem. Attached there is a minimal 
lyx file together with a minimal preamble (foo.tex) which reproduces the 
problem.


* if the lyx preamble consists of \input{foo.tex} it does not work and 
the aforementioned error appears. If I enclose \input{foo.tex} between 
\makeatletter and \makeatother then it works, which really puzzles me.


*if the content of the preamble foo.tex is directly included in the lyx 
preamble

everything work like expected.

I am completely shocked about such behaviour. I am not sure what is 
going on and I'd appreciate somebody could comment about this. I have 
thought that could be related to master-child documents (the initial lyx 
file was a master and several child but now it is just one document) but 
it does not make any sense at all.


I usually write the preamble into an external text file, especially when 
the preamble is complicated like the one of the book in order to be able 
to easily edit it. However, I enclosing the lyx preamble of the actual 
book between \makeatletter and \makeatother another errors appear as it 
would be expected. So, I am completely lost and I do not know how the 
problem could be solved. Perhaps I am missing something quite evident 
and I am writing rubbish. Any comment or suggestion is appreciated.


Thank you very much for all your help
Best regards
Oscar


Oscar Lopez wrote:

Dear Lyxers

I am trying to use a lyx template which uses the memoir book class 
that worked pretty well with lyx-1.5.4 but now with lyx-1.6.2 refuses 
to compile because the lyx error (in fact latex error) says:
\pagestyle{myMainheading} I've run across a `}' that doesn't seem to 
match anything. For example, `\def\a#1{...}' and `\a}' would produce 
this error. If you simply proceed now, the `\par' that I've just 
inserted will cause me to report a runaway argument that might be the 
root of the problem. But if your `}' was spurious, just type `2' and 
it will go away.


I thought that the problem could be related to this chunk of code

\makepsmarks{companion}{%
\l...@mkboth\markboth
\def\chaptermark##1{\markboth{##1}{##1}}% % left & right marks
\def\sectionmark##1{\markright{% % right mark
\ifnum \...@secnumdepth>\z@
\thesection. \% % section number
\fi
##1}}
}

because when I remove it, everything works (the above code is a copy  
of the memoir manual) I've tried to reproduce the error in a minimal 
document but unfortunately I am not able to reproduce the error which 
suggest me that it could be a problem related with other packages.


My question is that if there have been some modifications to the 
memoir layout from lyx-1.5 which can be responsible of the error. Do 
you have some advises to debug the problem because I am running out of 
ideas?


Thank you very much for all your help
Best regards
Oscar




%---
% Definir los encabezados y pies de los capitulos
\makepagestyle{myMainheading}
\makerunningwidth{myMainheading}{\textwidth}
\makeheadposition{myMainheading}{flushright}{flushleft}{}{}
\makepsmarks{myMainheading}{%
  \l...@mkboth\markboth
  \def\chaptermark##1{\markboth{##1}{##1}}% % left & right marks
  \def\sectionmark##1{\markright{%  % right mark
\ifnum \...@secnumdepth>\z@
  \thesection .\hspace{4pt}   % section number
\fi
##1}}
}
\makeevenhead{myMainheading}{\normalfont\footnotesize\thepage}{}%
{\normalfont\footnotesize\leftmark}
\makeoddhead{myMainheading}{\normalfont\footnotesize\rightmark}{}%
   {\normalfont\footnotesize\thepage}



plantilla.lyx
Description: application/lyx


Re: Output resolution of PDF

2009-05-25 Thread Guenter Milde
On 2009-05-25, Micha Feigin wrote:

> I'm trying to include equations created in lyx/latex inside a scribus
> poster (The scribus plugin doesn't seem to do what I want). The output
> resolution is too low though (seems to be 72dpi) and the fonts look
> really bad. Is there a way to get latex to output the document at a
> higher resolution? (I'm using the palatino font at the moment)

PDF does not have an output resolution, as it is a vector format. If
you use palatino, the font is in vector format too.

OTOH, scribus cannot import PDF as vector image but converts it to a
raster image! Try to configure the PDF import settings or try via SVG.

Also, if you include the equations via screen-shots the resolution will
of course be bad.

Günter



Re: memoir class lyx-1.5 file does not work with lyx-1.6

2009-05-25 Thread Jürgen Spitzmüller
Oscar Lopez wrote:
> * if the lyx preamble consists of \input{foo.tex} it does not work and
> the aforementioned error appears. If I enclose \input{foo.tex} between
> \makeatletter and \makeatother then it works, which really puzzles me.
>
> *if the content of the preamble foo.tex is directly included in the lyx
> preamble
> everything work like expected.

The glyph '@' has two different meanings in LaTeX. It is used as an active 
char (inside the document) and (for instance) as a namespace delimiter (in 
classes). The latter is the case in your preamble snippet, e.g. in

l...@mkboth\markboth 

To switch between these two meanings, the commands \makeatletter and 
\makeatother are used. In general, you always need to embrace preamble code 
with

\makeatletter
...
\makeatother

if it contains an '@'.

LyX does this automatically for you, that's why your document works if the 
code is inserted directly to the preamble. In former versions, Lyx blindly 
embraced any preamble with this pair. Now, it tries to be smart and only 
embraces it if the preamble actually contains an @-glyph.
In the \include-version, this is not the case.

The solution is

a.) to embrace the original code accordingly, if it is in a normal tex file
or
b.) make it a real sty-File (where this is not needed).


HTH,
Jürgen



Re: memoir class lyx-1.5 file does not work with lyx-1.6

2009-05-25 Thread Steve Litt
On Monday 25 May 2009 10:40:43 am Oscar Lopez wrote:
> Dear all
>
> I have been able to reproduce the problem. Attached there is a minimal
> lyx file together with a minimal preamble (foo.tex) which reproduces the
> problem.
>
> * if the lyx preamble consists of \input{foo.tex} it does not work and
> the aforementioned error appears. If I enclose \input{foo.tex} between
> \makeatletter and \makeatother then it works, which really puzzles me.
>
> *if the content of the preamble foo.tex is directly included in the lyx
> preamble
> everything work like expected.
>
> I am completely shocked about such behaviour. 

:-)  You'd be a little less shocked if you worked with macros in C :-)

> I am not sure what is 
> going on and I'd appreciate somebody could comment about this. 

You have a command in foo.tex that can't be nested further. I think they're 
called "fragile commands", although we're getting past my LaTeX expertise at 
this point. You already found the solution -- surround with 
makeatletter/makeatother.

What surprises me is that it's dependent on LyX version. If the LyX file is 
called bar.lyx, I'd like to see you do the following:

lyx-1.5.4 -e latex bar.lyx
mv bar.tex bar-1.5.4.tex
lyx-1.6.2 -e latex bar.lyx
mv bar.tex bar-1.6.2.tex
diff bar-1.5.4.tex bar-1.6.2.tex

Then run latex on both tex files and see if one errors out while the other 
doesn't. Exploit the differences.

HTH

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



Underscore in Bibliography

2009-05-25 Thread Hesham Kamel
Hi,
Please, I have many references with underscore in the url,
which generates an error when creating the pdf view.
I'd appreciate your suggestions.
Thank you

-- 
Hesham


Bibliography Is really complex , or it is a bug

2009-05-25 Thread Marcelo Reis
Guys, believe me I did a lot of research regarding this, but until now I 
was not able to make things works the way I want.


I'm developing (at least trying) my thesis, and I can't make things goes 
the way I want.


I need the following style to  Bibliography:
[Author Name, YEAR] ;. 
 . 


a example would be:
[Reyes & Wiles, 2007] Reyes, A. & Wiles, J. Best Dawn Cybercrime and 
Digital Forensics

Book. Syngress. 2007.

I'm from brazil, so I need or the sign & or the word E (the same as and) 
to separate the names inside [].


I tried A LOT of styles, and finally I was able to find one that I 
thought that meet my needs.it is the ALIKE2 style.

When I use it things are PERFECT!..
*BUT HERE IS THE HUGE PROBLEM:
*When I create ANY citation in my document, ALL the things inside 
the [ ] in  Bibliography just disappear.
   If I remove the citation, things back to normal and [Name of Author, 
YEAR] came back.


Example:
Without Citation in document:
*[Reyes & Wiles, 2007] Reyes, A. & Wiles, J. Best Dawn Cybercrime and 
Digital Forensics.Book. Syngress. 2007.

*With Citation in document:
*Reyes, A. & Wiles, J. Best Dawn Cybercrime and Digital Forensics.Book. 
Syngress. 2007.


Why this happens?!
*
ANY Thoughts?!?!

I'm in this problem for weeks and I'm really tired of it, I would 
appreciate a LOT if some one help me.

Marcelo


An extra space after hyperlinks in PDF

2009-05-25 Thread Dan Phan
I use hyperref to generate clickable links in PDFs file, but I got extra
spaces after many, but not all, of my links. That means an end of sentence
period or comma may end up in another line, which is very ugly.
Is this a Latex or LyX problem? How do I resolve it?

Thanks

Dan


Re: LFUN to switch focus to outline pane and back

2009-05-25 Thread Pavel Sanda
Hellmut Weber wrote:
> Are there lfuns which switch the focus from the text panel to the outline 
> panel and back.

i think its even impossible to get keyboard focus inside outline even if you
try to set it by mouse

pavel


Re: formatting help needed

2009-05-25 Thread Markus Büchele
Hello Richard,

sorry for my long silence - I didn't resolve the issues completely, but I got 
over an important hurdle.

I exported my .lyx-file to a .tex-file. This was the only way, I could get in 
the "\setlength\parindent{0.7cm}" option. It was quite hard for me because 
the German umlaut didn't get translated properly. I found out that I had to 
change the encoding to utf8 to make it work.

I also added:
\usepackage{fancyhdr}
\pagestyle{fancy}

The next point I need to solve is the header issue: 
* page number: font size 12
* left pages: chapter title (right-aligned) in small capitals and font size 10
* right pages: subchapter title (left-aligned) in small capitals and font size 
10
header not on first page of chapter

At present I get both chapter and subchapter titles in the header so that they 
overwrite each other and are unreadable. The page number is in the footer and 
should go up to the header.

A second point is the font size (12 and solved ;-) but the line distance 
should be 14 points. How do I get that?

Thanks a lot for your help!

Markus

Just is case it may help, here is my header of the .tex file:

%% LyX 1.6.2 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[12pt,english,ngerman]{extbook}
\usepackage{mathptmx}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[a4paper]{geometry}
\geometry{verbose,tmargin=3.6cm,bmargin=3.6cm,lmargin=3.5cm,rmargin=3.5cm,headsep=1.2cm,footskip=1.25cm}
\usepackage{fancyhdr}
\pagestyle{fancy}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\usepackage{color}
\usepackage{array}
\usepackage{textcomp}

\setlength\parindent{0.7cm}


%% LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}

\usepackage{babel}

\begin{document}


Am Donnerstag, 7. Mai 2009 15:03:42 schrieb rgheck:
> Markus Büchele wrote:
> > Hi Lyx experts,
> >
> > I have been using LYX for over decade now. It has always been a fantastic
> > tool, especially for my PhD thesis.
> >
> > Unfortunately I have arrived at a dead end just before publication. My
> > publisher (Franz Steiner Verlag, Stuttgart, Germany) has very percise
> > ideas about the layout of the text and I am unable to adjust to his
> > wishes with LYX.
>
> All of this can be done, probably without too much trouble.
>
> > Things which need to be adapted are:
> > * font in the header, which has to be small capitals instead of capitals
> > and a different font size
>
> I assume here that you mean the page header, or do you mean the chapter
> titles? Adjusting the page headers can be done use the fancyhdr package,
> and is fairly simple.
> http://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
> Adjusting the chapter titles can be done using the titlesec package and
> is also fairly simple.
> http://www.ctan.org/tex-archive/macros/latex/contrib/titlesec/
> We can work out the details.
>
> > * header (left pages): the word chapter is printed in all chapters in
> > German ("Kapitel" which is correct), but in chapter 9 there is "chapter"
> > in the header (a bug?)
>
> Did you have some English in the document somewhere? It seems as if the
> language has gotten changed.
>
> > * space of indentation at the beginning of paragraphs
>
> In your preamble, put:
> \setlength\parindent{2cm}
> or whatever it is you need. LaTeX will accept lots of different units,
> too. See here:
>
> http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/teTeX/latex/latex2e-html
>/ltx-86.html for help.
>
> > * headlines of chapters without the word "chapter" in the headline and
> > different font size
>
> I think this is where you want to use titlesec.
>
> An alternative might be to switch to use the book (koma-script) class.
> The koma-script classes provide for a LOT of customization.
>
> Richard




Re: An extra space after hyperlinks in PDF

2009-05-25 Thread Uwe Stöhr

Dan Phan schrieb:


I use hyperref to generate clickable links in PDFs file, but I got extra
spaces after many, but not all, of my links.


Can you please provide a _small_ LyX example file?

regards Uwe


Re: Bibliography Is really complex , or it is a bug

2009-05-25 Thread cmiramon
Marcelo Reis wrote:
> I tried A LOT of styles, and finally I was able to find one that I
> thought that meet my needs.it is the ALIKE2 style.

I can't find anything called alike2.bst. Are you using natbib ?


> I'm in this problem for weeks and I'm really tired of it, I would
> appreciate a LOT if some one help me.

Don't worry. Bibliographies can be very frustrating and hard to debug.

You should give more details. Are you using natbib, jurabib, biblatex ? and
a small file with a small bib file.

It seems to me that what you want to achieve can be done with natbib. I
don't know very well natbib but look the documentation or wait that
somebody on the list with more knowledge answers.

Cheers,
Charles 




Re: memoir class lyx-1.5 file does not work with lyx-1.6

2009-05-25 Thread Enrico Forestieri
Jürgen Spitzmüller writes:

> LyX does this automatically for you, that's why your document works if the 
> code is inserted directly to the preamble. In former versions, Lyx blindly 
> embraced any preamble with this pair. Now, it tries to be smart and only 
> embraces it if the preamble actually contains an @-glyph.

Right, but LyX could also check whether \input is used in the preamble
and add the \makeatletter,\makeatother pair as a safety measure.

-- 
Enrico





  1   2   >