Re: Check speller in LyX 2.0 alpha3

2010-05-30 Thread Francisco J . Ruiz-Ruano Campaña
Hi.

I have installed the packages libaspell-dev and libhunspell-dev. I
have recompilled and reinstalled, and it works!

Thanks, Ignacio.

Bye.


On Fri, May 28, 2010 at 8:25 AM, icebna ice...@telefonica.net wrote:
 Hi

 I have Mandriva in my computer and I have installed aspell-es and
 libaspell-devel and work fine.

 Regards


 On 27/05/10 22:13, Francisco J. Ruiz-Ruano Campaña wrote:

 I have installed LyX 2.0 alpha3 in Ubuntu, but I check speller is
 deactivated since I have installed it.

 I have installed aspell, ispell and hunspell in spanish, but it doesn't
 work.

 Some ideas?

 Thanks.






-- 
Más allá de la confusión, persiste la duda.


Lyx 1.6.6.1 Compilation problems on Fedora 13

2010-05-30 Thread Alok Shukla
Dear All,

  After configuring lyx-1.6.6.1 properly on my Fedora 13 laptop
  when I run the make command, the compilation doesn't
  get completed. Instead, it ends with the error message (relevant portions
include):

   g++ -O2 -o lyx main.o ISpell.o SpellBase.o BiblioInfo.o Box.o Dimension.o
PrinterParams.o Thesaurus.o  ./.libs/liblyxcore.a ./.libs/liblyxmathed.a
./.libs/liblyxinsets.a frontends/.libs/liblyxfrontends.a
frontends/qt4/.libs/liblyxqt4.a ./.libs/liblyxgraphics.a
support/.libs/liblyxsupport.a ../boost/.libs/liblyxboost.a -lAiksaurus -lz
-lQtGui -lQtCore
/usr/bin/ld: frontends/qt4/.libs/liblyxqt4.a(GuiWorkArea.o): undefined
reference to symbol 'XEventsQueued'
/usr/bin/ld: note: 'XEventsQueued' is defined in DSO /usr/lib64/libX11.so.6
so try adding it to the linker command line
/usr/lib64/libX11.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[4]: *** [lyx] Error 1

I will appreciate any help in this matter.

--Alok


Re: Lyx 1.6.6.1 Compilation problems on Fedora 13

2010-05-30 Thread Kornel Benko
Am Sonntag 30 Mai 2010 schrieb Alok Shukla:
 Dear All,
 
   After configuring lyx-1.6.6.1 properly on my Fedora 13 laptop
   when I run the make command, the compilation doesn't
   get completed. Instead, it ends with the error message (relevant portions
 include):
 
g++ -O2 -o lyx main.o ISpell.o SpellBase.o BiblioInfo.o Box.o
 Dimension.o PrinterParams.o Thesaurus.o  ./.libs/liblyxcore.a
 ./.libs/liblyxmathed.a ./.libs/liblyxinsets.a
 frontends/.libs/liblyxfrontends.a
 frontends/qt4/.libs/liblyxqt4.a ./.libs/liblyxgraphics.a
 support/.libs/liblyxsupport.a ../boost/.libs/liblyxboost.a -lAiksaurus -lz
 -lQtGui -lQtCore
 /usr/bin/ld: frontends/qt4/.libs/liblyxqt4.a(GuiWorkArea.o): undefined
 reference to symbol 'XEventsQueued'
 /usr/bin/ld: note: 'XEventsQueued' is defined in DSO /usr/lib64/libX11.so.6
 so try adding it to the linker command line
 /usr/lib64/libX11.so.6: could not read symbols: Invalid operation
 collect2: ld returned 1 exit status
 make[4]: *** [lyx] Error 1

I would try to install the devel-package of libX11.so (not only the standard 
package with libX11.so.6)
On ubuntu would be the package libx11-dev.

 I will appreciate any help in this matter.
 
 --Alok

Kornel
-- 
Kornel Benko
kornel.be...@berlin.de


signature.asc
Description: This is a digitally signed message part.


all cited references

2010-05-30 Thread jelle
Hi,

I'm running into an issue where all references in my .bib file
 are added to the bibliography. Using the all cited references
 you'd expect only the actually cited references to show up
rather than seeing every entry in the .bib file. I'm using the
 acmsiggraph1 citations style and there is no difference in 
using all references or all cited references.
I've tried setting bibtex - bibtex -min-crossrefs=200
 but that doesnt help either. For the article I'm currently editing,
 its easy to work around it, but it would be much 
more efficient if this is dealt with for me. 
Any pointers in how to solve this are much appreciated!

Many thanks,

-jelle



Re: LyX layout for tRES?

2010-05-30 Thread Nikos Alexandris
On Friday 28 of May 2010 12:16:15 Nikos Alexandris wrote:
[...] 
 Should (all) this info go to the wiki? Are there other things to test?

If there are no objections, could someone approve the site-links and upload 
the attached layout in http://wiki.lyx.org/Layouts/TRES2e?

Thank you, Nikos
#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[tRES2e]{article (tres2)}
# 

Format 11
Input stdclass.inc

DefaultModule theorems-ams

SecNumDepth 3
TocDepth3

NoStyle Chapter
NoStyle Chapter*




Author-Year Citation+Bibliography by using Biblatex generates wrong output

2010-05-30 Thread Hans J. Prueller
hi all,

we are writing a thesis in german and the Author Year citation is
required. 

after some googe-ing we decided to use biblatex within lyx as it seems
that this is the state of the art way to do that (and it read rather
easily).

we installed biblatex tex/latex packages (via synaptic package manager
on our ubuntu laptops), so biblatex is basically available for
tex/latex.

after that we installed the biblatex.module into the lyx user directory
and reconfigured lyx (everthing as decribed within the howtos on the lyx
web site).

we could add the biblatex module to our document and within LyX, the
inserted citations look ok -- the preview in LyX itself is Author Year
- -perfekt.

the big Problem:

if we generate a PDF file (or dvi or any other output format), within
the Output the citation is in wrong format - author-year is lost --
simply the bibtex-keys for
the entries are printed out instead of author year. the whole
bibliography is missing and not printed in the output document !


as in lyx everything seems ok, I guess this could be a latex related
problem --- we tried several things but nothing worked really out.


any ideas are appreciated!

regards,
hans



Re: Problems with Elsearticle template

2010-05-30 Thread Bruno Cocciaro


From: Bruno Cocciaro 
Sent: Saturday, May 29, 2010 8:21 PM
To: lyx-users@lists.lyx.org 
Subject: Problems with Elsearticle template


 I cannot add hyperlink in a file opened from elsearticle template.

My problem is partially solved.
After creating a new file from New from template-Elsearticle.lyx, I must do
Document-settings-PDF Properties
and select Use hyperref support

to avoid the errors I described in my previous post.

But I receive similar errors (but not only 2, very much more) when I try to 
view the pdf of my elsearticle file that I created modifing the Elsearticle.lyx 
which I obtained when installed the Elsearticle class.

Evidently there is something in my file which conflict with the hyperref 
support (I receive errors also if I do not insert any hyperref in my file but 
only set the Use hyperref support).

I'll go to try to understand which is the conflicting part that I inserted and, 
eventually, I'll askk again for help.

Thank you.

Bruno Cocciaro

--- Li portammo sull'orlo del baratro e ordinammo loro di volare.
--- Resistevano. Volate, dicemmo. Continuavano a opporre resistenza.
--- Li spingemmo oltre il bordo. E volarono. (G. Apollinaire)

Re: Justifying figures to outer margin

2010-05-30 Thread Uwe Stöhr

Am 30.05.2010 05:45, schrieb george legge:


Thank you Uwe. Overhang is exactly what I need.
However, I do not want wrapping, and overhang seems to be offered only by
Wrap Float.
I don't think a plain Figure Float recognizes overhang.
Is there an easy way to insert an overhang command into a Figure Float?


You only need to specify a width for your image that is wider than the page or column width. Use for 
example a width of 110 column%. Attached is an example where I have done this for a box.


regards Uwe


newfile2.lyx
Description: application/lyx


Fwd: off the list

2010-05-30 Thread Manolo Martínez
 I've been off the LyX-Users list for a month and didn't even know it, 
but I'm

 back now.


wow, the same had happened to me until a couple of days ago. I thought I
had done something wrong, but now I'm not so sure. Is there any way to
find out whether the majordomo has kicked more list subscribers out?

Manolo



Re: Fwd: off the list

2010-05-30 Thread Vincent van Ravesteijn

Op 30-5-2010 18:16, Manolo Martínez schreef:
 I've been off the LyX-Users list for a month and didn't even know 
it, but I'm

 back now.


wow, the same had happened to me until a couple of days ago. I thought I
had done something wrong, but now I'm not so sure. Is there any way to
find out whether the majordomo has kicked more list subscribers out?


You could start by reading the news message on ww.lyx.org.

Vincent


help with creating an environment

2010-05-30 Thread Artimess
I would like to create a LyX module for the  environment that I borrowed
from the tex version of memoir book (code e  in blue).  I used Steve Litt's
tutorial to experiment with it (code in green), when I run  I get  two
errors in red.

I would appreciate if you explain to me what I am doing wrong.
Also, It is preferable t have this as module rater than layout how should I
go about doing it as a module?

Many thanks,
Artimess

 ! LaTeX Error: Environment Syntax undefined.

! LaTeX Error: \begin{document} ended by \end{Syntax}.


% LaTeX syntax
 control space above/below center environment
\newcommand*{\tightcenter}{%
  \topsep=0.25\onelineskip\trivlist \centering\item\relax}
\def\endtightcenter{\endtrivlist}
\newenvironment{syntax}{\begin{tightcenter}
\begin{tabular}{|p{0.9\linewidth}|} \hline}%
   {\hline
\end{tabular}
\end{tightcenter}}



#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[book]{mybook}

Input stdclass.inc

Preamble
% LaTeX syntax
 control space above/below center environment
\newcommand*{\tightcenter}{%
  \topsep=0.25\onelineskip\trivlist \centering\item\relax}
\def\endtightcenter{\endtrivlist}
\newenvironment{syntax}{%
 ~\\
\begin{tightcenter}
\begin{tabular}{|p{0.9\linewidth}|} \hline}%
   {\hline
\end{tabular}
\end{tightcenter}
  ~\\

 }

EndPreamble

Style Syntax
Style Syntax
  CopyStyle Standard
  LatexType Environment
  LatexName Syntax
  LeftMarginMM
  RightMarginMM
  Font
Shape   Italic
  EndFont
End


Re: Fwd: off the list

2010-05-30 Thread Manolo Martínez



You could start by reading the news message on ww.lyx.org.


Sorry, my bad. Anyway, it would have been nice to have an item on the 
news /during/ the downtime. I checked the news a couple of times during 
the firsts weeks, then gave up.


Manolo


Re: help with creating an environment

2010-05-30 Thread Richard Heck

On 05/30/2010 12:23 PM, Artimess wrote:
I would like to create a LyX module for the  environment that I 
borrowed from the tex version of memoir book (code e  in blue).  I 
used Steve Litt's  tutorial to experiment with it (code in green), 
when I run  I get  two errors in red.


I would appreciate if you explain to me what I am doing wrong.

There are a lot of errors in the LaTeX code. Always try to get the LaTeX 
code working in a trivial LaTeX file, outside of LyX. It's too hard to 
work on the LaTeX and the module code at the same time.


In any event, this works for me:

% LaTeX syntax
 control space above/below center environment
\newenvironment{tightcenter}%
  {\setlength{\topsep}{0.25in}\begin{list}{}{}\item\relax}
  {\end{list}}
\newenvironment{syntax}{%
  ~\\
  \begin{tightcenter}
  \begin{tabular}{|p{0.9\linewidth}|}\hline
}%
{%
  \\
  \hline
  \end{tabular}
  \end{tightcenter}
~\\
}

That said, I'm not sure \topsep can be controlled that way. See here:
http://dcwww.camd.dtu.dk/~schiotz/comp/LatexTips/LatexTips.html

Also, It is preferable to have this as module rater than layout how 
should I go about doing it as a module?


Look at one of the module files that ships with LyX for an example you 
can adapt. From your point of view, the difference is only in the 
header of the file. Instead of \DeclareLaTeXClass you have 
\DeclareLyXModule, etc. See also section 5.2.1 of the Customization manual.





#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[book]{mybook}


You need a format line, like
Format 11
All LyX layout files must have such a line.


Input stdclass.inc

Preamble
% LaTeX syntax
 control space above/below center environment
\newcommand*{\tightcenter}{%
  \topsep=0.25\onelineskip\trivlist \centering\item\relax}
\def\endtightcenter{\endtrivlist}
\newenvironment{syntax}{%
 ~\\
\begin{tightcenter}
\begin{tabular}{|p{0.9\linewidth}|} \hline}%
   {\hline
\end{tabular}
\end{tightcenter}
  ~\\

 }

EndPreamble

You presumably want to use AddToPreamble here. The straight Preamble 
will overwrite any previous Preamble declaration, which you do not want.


Also, since the syntax part, at least, applies only to the Syntax style, 
it would be better to put it in a Preamble block within the Style 
declaration. Then the code will go into the preamble only if the Syntax 
style is used. Look e.g. at hanging.module for how this is done.




Style Syntax
Style Syntax


One is enough!


  CopyStyle Standard
  LatexType Environment
  LatexName Syntax
  LeftMarginMM
  RightMarginMM
  Font
Shape   Italic
  EndFont
End







Re: Inline equation uneven spacing

2010-05-30 Thread Paul A. Rubin

On 5/23/2010 6:32 PM, Amir wrote:

I have an inline equation that results in uneven spacing of the lines. How can I
fix that?



LaTeX will add extra space between lines if it perceives the equation to 
be expanding too far into the existing space (crowding the next line 
above or below too much).  So you have multiple options:


1.  Reduce the vertical dimension of the equation by replacing 
\frac{a}{b} with a/b, eliminating large symbols, etc.  This only works 
if you can make changes that reduce the vertical dimension without 
screwing up the content of the equation.


2.  Reduce the vertical dimension of the equation by shrinking the font 
size within the equation.  This may result in the equation looking odd 
(or possibly even being small enough to be difficult to read).


3.  Increase the spacing between lines (go from single space to 
space-and-a-half or double space, for instance).  This presumably would 
have to be applied to the whole document.


4.  Make the equation a display equation (and leave it unnumbered).

I personally tend to use option 1 if it works, option 4 otherwise.  To 
quote (well, paraphrase) the immortal philosopher Dolly Parton, this is 
what happens when you try to put 10 pounds of mud in a five pound sack.


/Paul





Spellchecking OSX and cocoAspell

2010-05-30 Thread jezZiFeR

Hello,

I have tried to use Spellchecking with LyX 1.6.5 on OSX with  
cocoAspell. It seems to work fine with the english dictionary, which I  
have added as »Alternative language«, as described. But as soon as I  
want to use another language (german), which I have placed in the same  
folder as the English-file, I get the following message:


Das Rechtschreibprogramm konnte nicht gestartet werden
Error: The file /Library/Application
Support/cocoAspell/aspell6-de-20030222-1.alias can not be opened for  
reading.


I hope you could help me. When I switch back to the English file  the  
spellchecker works again…


Best
Jess

Re: Justifying figures to outer margin

2010-05-30 Thread george legge

   Is there an easy way to insert an overhang command into a Figure Float?


 You only need to specify a width for your image that is wider than the page
 or column width. Use for example a width of 110 column%. Attached is an
 example where I have done this for a box.

 regards Uwe


Thank you Uwe, but that merely enlarges the image and extends it into the
margin.
It does not MOVE the image.  An overhang moves the image across into the
margin which is what I need.
Think of it this way:
 I wish to have an image (of any desired size) placed in the top
outer corner of the page.
Images will vary in width; but their outer edge will always hang outside the
text edge by the same distance.
It seems to me that this is exactly what overhang achieves.
If only I can get it to work with a regular image float, not just with a
wrap float.

Cheers, George


Re: Justifying figures to outer margin

2010-05-30 Thread Uwe Stöhr

Am 30.05.2010 23:22, schrieb george legge:


Thank you Uwe, but that merely enlarges the image and extends it into the
margin.
It does not MOVE the image.  An overhang moves the image across into the
margin which is what I need.


This is against usual typesetting rules and therefore not supported by LaTeX. I showed you 2 tricks 
to overcome this and I don't see other ways.
But you should have a very, very important reason to print something in the page margin. Because in 
case that you print your document by a printing press you will get big problems.


regards Uwe


Re: Justifying figures to outer margin

2010-05-30 Thread george legge

 This is against usual typesetting rules and therefore not supported by
 LaTeX. I showed you 2 tricks to overcome this and I don't see other ways.
 But you should have a very, very important reason to print something in the
 page margin. Because in case that you print your document by a printing
 press you will get big problems.

 regards Uwe


I still have a real margin of about 1.5cm outside the images. But there is a
much larger margin outside the text.
It is quite common to use what is treated as a margin by the text, but is
available for placement of figures.
Possibly a layout program does it by setting up two columns and restricting
the text to just the inner column.
I don't think that is easy to do with LaTeX.
However your suggestion of using overhang was wonderful.I don't know how
overhang is achieved.
I just need the macro that produces overhang without the macro that
produces wrap.
That sounds simple, but maybe it isn't.
Thank you for trying to help.

Cheers, George


Re: Problems with Elsearticle template

2010-05-30 Thread Uwe Stöhr

Am 29.05.2010 20:21, schrieb Bruno Cocciaro:


I cannot add hyperlink in a file opened from elsarticle template.


It seems that the elsarticle class doesn't allow to use hyperref. But this is not problematic 
because Elsevier will in every case reformat your journal submission. They will decide to make a 
real hyperlink out of your URL or not.
You can therefore insert your URL as normal text. If you prefer a special formatting of your URL, 
you might try out the LyX menu Insert-URL.


regards Uwe


Re: Justifying figures to outer margin

2010-05-30 Thread george legge
Sorry Uwe, I forgot to add that the geometry package allows me to set up
exactly what I need in the way of margins.
It can set:
paperwidth = inner + width + outer   [I am calling them inner and outer
rather than left and right, because it is double sided]
where inner and outer are true margins, not used for printing.
and  width = textwidth + (marginparsep + marginparwidth)

It is the outer edge of this (marginparsep + marginparwidth) region which I
attempted to justify my figures to.
My requirement was that the outer edge of a figure line up with the outer
edge of the marginpara,
and the figure could extend back as far as needed into the text area, with
any space left available for caption.
I was having difficulty with this and I noticed that memoir by itself could
perform many (though not all) of geometry actions.
Then I was overjoyed to get your suggestion of using overhang but
subsequently underjoyed to find I could not free it from wrap.
If I cannot free overhang from wrap, I shall go back to wrestling with
geometry.
Thank you again for your help.

Cheers, George


Re: Justifying figures to outer margin

2010-05-30 Thread Uwe Stöhr

Am 31.05.2010 03:06, schrieb george legge:


It is the outer edge of this (marginparsep + marginparwidth) region which I
attempted to justify my figures to.
My requirement was that the outer edge of a figure line up with the outer
edge of the marginpara,


I expect that you need low-level TeX primitives to achieve this.


If I cannot free overhang from wrap, I shall go back to wrestling with
geometry.


Perhaps this helps you:
http://wiki.lyx.org/Tips/PaperLayout

regards Uwe


Re: Check speller in LyX 2.0 alpha3

2010-05-30 Thread Francisco J . Ruiz-Ruano Campaña
Hi.

I have installed the packages libaspell-dev and libhunspell-dev. I
have recompilled and reinstalled, and it works!

Thanks, Ignacio.

Bye.


On Fri, May 28, 2010 at 8:25 AM, icebna ice...@telefonica.net wrote:
 Hi

 I have Mandriva in my computer and I have installed aspell-es and
 libaspell-devel and work fine.

 Regards


 On 27/05/10 22:13, Francisco J. Ruiz-Ruano Campaña wrote:

 I have installed LyX 2.0 alpha3 in Ubuntu, but I check speller is
 deactivated since I have installed it.

 I have installed aspell, ispell and hunspell in spanish, but it doesn't
 work.

 Some ideas?

 Thanks.






-- 
Más allá de la confusión, persiste la duda.


Lyx 1.6.6.1 Compilation problems on Fedora 13

2010-05-30 Thread Alok Shukla
Dear All,

  After configuring lyx-1.6.6.1 properly on my Fedora 13 laptop
  when I run the make command, the compilation doesn't
  get completed. Instead, it ends with the error message (relevant portions
include):

   g++ -O2 -o lyx main.o ISpell.o SpellBase.o BiblioInfo.o Box.o Dimension.o
PrinterParams.o Thesaurus.o  ./.libs/liblyxcore.a ./.libs/liblyxmathed.a
./.libs/liblyxinsets.a frontends/.libs/liblyxfrontends.a
frontends/qt4/.libs/liblyxqt4.a ./.libs/liblyxgraphics.a
support/.libs/liblyxsupport.a ../boost/.libs/liblyxboost.a -lAiksaurus -lz
-lQtGui -lQtCore
/usr/bin/ld: frontends/qt4/.libs/liblyxqt4.a(GuiWorkArea.o): undefined
reference to symbol 'XEventsQueued'
/usr/bin/ld: note: 'XEventsQueued' is defined in DSO /usr/lib64/libX11.so.6
so try adding it to the linker command line
/usr/lib64/libX11.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[4]: *** [lyx] Error 1

I will appreciate any help in this matter.

--Alok


Re: Lyx 1.6.6.1 Compilation problems on Fedora 13

2010-05-30 Thread Kornel Benko
Am Sonntag 30 Mai 2010 schrieb Alok Shukla:
 Dear All,
 
   After configuring lyx-1.6.6.1 properly on my Fedora 13 laptop
   when I run the make command, the compilation doesn't
   get completed. Instead, it ends with the error message (relevant portions
 include):
 
g++ -O2 -o lyx main.o ISpell.o SpellBase.o BiblioInfo.o Box.o
 Dimension.o PrinterParams.o Thesaurus.o  ./.libs/liblyxcore.a
 ./.libs/liblyxmathed.a ./.libs/liblyxinsets.a
 frontends/.libs/liblyxfrontends.a
 frontends/qt4/.libs/liblyxqt4.a ./.libs/liblyxgraphics.a
 support/.libs/liblyxsupport.a ../boost/.libs/liblyxboost.a -lAiksaurus -lz
 -lQtGui -lQtCore
 /usr/bin/ld: frontends/qt4/.libs/liblyxqt4.a(GuiWorkArea.o): undefined
 reference to symbol 'XEventsQueued'
 /usr/bin/ld: note: 'XEventsQueued' is defined in DSO /usr/lib64/libX11.so.6
 so try adding it to the linker command line
 /usr/lib64/libX11.so.6: could not read symbols: Invalid operation
 collect2: ld returned 1 exit status
 make[4]: *** [lyx] Error 1

I would try to install the devel-package of libX11.so (not only the standard 
package with libX11.so.6)
On ubuntu would be the package libx11-dev.

 I will appreciate any help in this matter.
 
 --Alok

Kornel
-- 
Kornel Benko
kornel.be...@berlin.de


signature.asc
Description: This is a digitally signed message part.


all cited references

2010-05-30 Thread jelle
Hi,

I'm running into an issue where all references in my .bib file
 are added to the bibliography. Using the all cited references
 you'd expect only the actually cited references to show up
rather than seeing every entry in the .bib file. I'm using the
 acmsiggraph1 citations style and there is no difference in 
using all references or all cited references.
I've tried setting bibtex - bibtex -min-crossrefs=200
 but that doesnt help either. For the article I'm currently editing,
 its easy to work around it, but it would be much 
more efficient if this is dealt with for me. 
Any pointers in how to solve this are much appreciated!

Many thanks,

-jelle



Re: LyX layout for tRES?

2010-05-30 Thread Nikos Alexandris
On Friday 28 of May 2010 12:16:15 Nikos Alexandris wrote:
[...] 
 Should (all) this info go to the wiki? Are there other things to test?

If there are no objections, could someone approve the site-links and upload 
the attached layout in http://wiki.lyx.org/Layouts/TRES2e?

Thank you, Nikos
#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[tRES2e]{article (tres2)}
# 

Format 11
Input stdclass.inc

DefaultModule theorems-ams

SecNumDepth 3
TocDepth3

NoStyle Chapter
NoStyle Chapter*




Author-Year Citation+Bibliography by using Biblatex generates wrong output

2010-05-30 Thread Hans J. Prueller
hi all,

we are writing a thesis in german and the Author Year citation is
required. 

after some googe-ing we decided to use biblatex within lyx as it seems
that this is the state of the art way to do that (and it read rather
easily).

we installed biblatex tex/latex packages (via synaptic package manager
on our ubuntu laptops), so biblatex is basically available for
tex/latex.

after that we installed the biblatex.module into the lyx user directory
and reconfigured lyx (everthing as decribed within the howtos on the lyx
web site).

we could add the biblatex module to our document and within LyX, the
inserted citations look ok -- the preview in LyX itself is Author Year
- -perfekt.

the big Problem:

if we generate a PDF file (or dvi or any other output format), within
the Output the citation is in wrong format - author-year is lost --
simply the bibtex-keys for
the entries are printed out instead of author year. the whole
bibliography is missing and not printed in the output document !


as in lyx everything seems ok, I guess this could be a latex related
problem --- we tried several things but nothing worked really out.


any ideas are appreciated!

regards,
hans



Re: Problems with Elsearticle template

2010-05-30 Thread Bruno Cocciaro


From: Bruno Cocciaro 
Sent: Saturday, May 29, 2010 8:21 PM
To: lyx-users@lists.lyx.org 
Subject: Problems with Elsearticle template


 I cannot add hyperlink in a file opened from elsearticle template.

My problem is partially solved.
After creating a new file from New from template-Elsearticle.lyx, I must do
Document-settings-PDF Properties
and select Use hyperref support

to avoid the errors I described in my previous post.

But I receive similar errors (but not only 2, very much more) when I try to 
view the pdf of my elsearticle file that I created modifing the Elsearticle.lyx 
which I obtained when installed the Elsearticle class.

Evidently there is something in my file which conflict with the hyperref 
support (I receive errors also if I do not insert any hyperref in my file but 
only set the Use hyperref support).

I'll go to try to understand which is the conflicting part that I inserted and, 
eventually, I'll askk again for help.

Thank you.

Bruno Cocciaro

--- Li portammo sull'orlo del baratro e ordinammo loro di volare.
--- Resistevano. Volate, dicemmo. Continuavano a opporre resistenza.
--- Li spingemmo oltre il bordo. E volarono. (G. Apollinaire)

Re: Justifying figures to outer margin

2010-05-30 Thread Uwe Stöhr

Am 30.05.2010 05:45, schrieb george legge:


Thank you Uwe. Overhang is exactly what I need.
However, I do not want wrapping, and overhang seems to be offered only by
Wrap Float.
I don't think a plain Figure Float recognizes overhang.
Is there an easy way to insert an overhang command into a Figure Float?


You only need to specify a width for your image that is wider than the page or column width. Use for 
example a width of 110 column%. Attached is an example where I have done this for a box.


regards Uwe


newfile2.lyx
Description: application/lyx


Fwd: off the list

2010-05-30 Thread Manolo Martínez
 I've been off the LyX-Users list for a month and didn't even know it, 
but I'm

 back now.


wow, the same had happened to me until a couple of days ago. I thought I
had done something wrong, but now I'm not so sure. Is there any way to
find out whether the majordomo has kicked more list subscribers out?

Manolo



Re: Fwd: off the list

2010-05-30 Thread Vincent van Ravesteijn

Op 30-5-2010 18:16, Manolo Martínez schreef:
 I've been off the LyX-Users list for a month and didn't even know 
it, but I'm

 back now.


wow, the same had happened to me until a couple of days ago. I thought I
had done something wrong, but now I'm not so sure. Is there any way to
find out whether the majordomo has kicked more list subscribers out?


You could start by reading the news message on ww.lyx.org.

Vincent


help with creating an environment

2010-05-30 Thread Artimess
I would like to create a LyX module for the  environment that I borrowed
from the tex version of memoir book (code e  in blue).  I used Steve Litt's
tutorial to experiment with it (code in green), when I run  I get  two
errors in red.

I would appreciate if you explain to me what I am doing wrong.
Also, It is preferable t have this as module rater than layout how should I
go about doing it as a module?

Many thanks,
Artimess

 ! LaTeX Error: Environment Syntax undefined.

! LaTeX Error: \begin{document} ended by \end{Syntax}.


% LaTeX syntax
 control space above/below center environment
\newcommand*{\tightcenter}{%
  \topsep=0.25\onelineskip\trivlist \centering\item\relax}
\def\endtightcenter{\endtrivlist}
\newenvironment{syntax}{\begin{tightcenter}
\begin{tabular}{|p{0.9\linewidth}|} \hline}%
   {\hline
\end{tabular}
\end{tightcenter}}



#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[book]{mybook}

Input stdclass.inc

Preamble
% LaTeX syntax
 control space above/below center environment
\newcommand*{\tightcenter}{%
  \topsep=0.25\onelineskip\trivlist \centering\item\relax}
\def\endtightcenter{\endtrivlist}
\newenvironment{syntax}{%
 ~\\
\begin{tightcenter}
\begin{tabular}{|p{0.9\linewidth}|} \hline}%
   {\hline
\end{tabular}
\end{tightcenter}
  ~\\

 }

EndPreamble

Style Syntax
Style Syntax
  CopyStyle Standard
  LatexType Environment
  LatexName Syntax
  LeftMarginMM
  RightMarginMM
  Font
Shape   Italic
  EndFont
End


Re: Fwd: off the list

2010-05-30 Thread Manolo Martínez



You could start by reading the news message on ww.lyx.org.


Sorry, my bad. Anyway, it would have been nice to have an item on the 
news /during/ the downtime. I checked the news a couple of times during 
the firsts weeks, then gave up.


Manolo


Re: help with creating an environment

2010-05-30 Thread Richard Heck

On 05/30/2010 12:23 PM, Artimess wrote:
I would like to create a LyX module for the  environment that I 
borrowed from the tex version of memoir book (code e  in blue).  I 
used Steve Litt's  tutorial to experiment with it (code in green), 
when I run  I get  two errors in red.


I would appreciate if you explain to me what I am doing wrong.

There are a lot of errors in the LaTeX code. Always try to get the LaTeX 
code working in a trivial LaTeX file, outside of LyX. It's too hard to 
work on the LaTeX and the module code at the same time.


In any event, this works for me:

% LaTeX syntax
 control space above/below center environment
\newenvironment{tightcenter}%
  {\setlength{\topsep}{0.25in}\begin{list}{}{}\item\relax}
  {\end{list}}
\newenvironment{syntax}{%
  ~\\
  \begin{tightcenter}
  \begin{tabular}{|p{0.9\linewidth}|}\hline
}%
{%
  \\
  \hline
  \end{tabular}
  \end{tightcenter}
~\\
}

That said, I'm not sure \topsep can be controlled that way. See here:
http://dcwww.camd.dtu.dk/~schiotz/comp/LatexTips/LatexTips.html

Also, It is preferable to have this as module rater than layout how 
should I go about doing it as a module?


Look at one of the module files that ships with LyX for an example you 
can adapt. From your point of view, the difference is only in the 
header of the file. Instead of \DeclareLaTeXClass you have 
\DeclareLyXModule, etc. See also section 5.2.1 of the Customization manual.





#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[book]{mybook}


You need a format line, like
Format 11
All LyX layout files must have such a line.


Input stdclass.inc

Preamble
% LaTeX syntax
 control space above/below center environment
\newcommand*{\tightcenter}{%
  \topsep=0.25\onelineskip\trivlist \centering\item\relax}
\def\endtightcenter{\endtrivlist}
\newenvironment{syntax}{%
 ~\\
\begin{tightcenter}
\begin{tabular}{|p{0.9\linewidth}|} \hline}%
   {\hline
\end{tabular}
\end{tightcenter}
  ~\\

 }

EndPreamble

You presumably want to use AddToPreamble here. The straight Preamble 
will overwrite any previous Preamble declaration, which you do not want.


Also, since the syntax part, at least, applies only to the Syntax style, 
it would be better to put it in a Preamble block within the Style 
declaration. Then the code will go into the preamble only if the Syntax 
style is used. Look e.g. at hanging.module for how this is done.




Style Syntax
Style Syntax


One is enough!


  CopyStyle Standard
  LatexType Environment
  LatexName Syntax
  LeftMarginMM
  RightMarginMM
  Font
Shape   Italic
  EndFont
End







Re: Inline equation uneven spacing

2010-05-30 Thread Paul A. Rubin

On 5/23/2010 6:32 PM, Amir wrote:

I have an inline equation that results in uneven spacing of the lines. How can I
fix that?



LaTeX will add extra space between lines if it perceives the equation to 
be expanding too far into the existing space (crowding the next line 
above or below too much).  So you have multiple options:


1.  Reduce the vertical dimension of the equation by replacing 
\frac{a}{b} with a/b, eliminating large symbols, etc.  This only works 
if you can make changes that reduce the vertical dimension without 
screwing up the content of the equation.


2.  Reduce the vertical dimension of the equation by shrinking the font 
size within the equation.  This may result in the equation looking odd 
(or possibly even being small enough to be difficult to read).


3.  Increase the spacing between lines (go from single space to 
space-and-a-half or double space, for instance).  This presumably would 
have to be applied to the whole document.


4.  Make the equation a display equation (and leave it unnumbered).

I personally tend to use option 1 if it works, option 4 otherwise.  To 
quote (well, paraphrase) the immortal philosopher Dolly Parton, this is 
what happens when you try to put 10 pounds of mud in a five pound sack.


/Paul





Spellchecking OSX and cocoAspell

2010-05-30 Thread jezZiFeR

Hello,

I have tried to use Spellchecking with LyX 1.6.5 on OSX with  
cocoAspell. It seems to work fine with the english dictionary, which I  
have added as »Alternative language«, as described. But as soon as I  
want to use another language (german), which I have placed in the same  
folder as the English-file, I get the following message:


Das Rechtschreibprogramm konnte nicht gestartet werden
Error: The file /Library/Application
Support/cocoAspell/aspell6-de-20030222-1.alias can not be opened for  
reading.


I hope you could help me. When I switch back to the English file  the  
spellchecker works again…


Best
Jess

Re: Justifying figures to outer margin

2010-05-30 Thread george legge

   Is there an easy way to insert an overhang command into a Figure Float?


 You only need to specify a width for your image that is wider than the page
 or column width. Use for example a width of 110 column%. Attached is an
 example where I have done this for a box.

 regards Uwe


Thank you Uwe, but that merely enlarges the image and extends it into the
margin.
It does not MOVE the image.  An overhang moves the image across into the
margin which is what I need.
Think of it this way:
 I wish to have an image (of any desired size) placed in the top
outer corner of the page.
Images will vary in width; but their outer edge will always hang outside the
text edge by the same distance.
It seems to me that this is exactly what overhang achieves.
If only I can get it to work with a regular image float, not just with a
wrap float.

Cheers, George


Re: Justifying figures to outer margin

2010-05-30 Thread Uwe Stöhr

Am 30.05.2010 23:22, schrieb george legge:


Thank you Uwe, but that merely enlarges the image and extends it into the
margin.
It does not MOVE the image.  An overhang moves the image across into the
margin which is what I need.


This is against usual typesetting rules and therefore not supported by LaTeX. I showed you 2 tricks 
to overcome this and I don't see other ways.
But you should have a very, very important reason to print something in the page margin. Because in 
case that you print your document by a printing press you will get big problems.


regards Uwe


Re: Justifying figures to outer margin

2010-05-30 Thread george legge

 This is against usual typesetting rules and therefore not supported by
 LaTeX. I showed you 2 tricks to overcome this and I don't see other ways.
 But you should have a very, very important reason to print something in the
 page margin. Because in case that you print your document by a printing
 press you will get big problems.

 regards Uwe


I still have a real margin of about 1.5cm outside the images. But there is a
much larger margin outside the text.
It is quite common to use what is treated as a margin by the text, but is
available for placement of figures.
Possibly a layout program does it by setting up two columns and restricting
the text to just the inner column.
I don't think that is easy to do with LaTeX.
However your suggestion of using overhang was wonderful.I don't know how
overhang is achieved.
I just need the macro that produces overhang without the macro that
produces wrap.
That sounds simple, but maybe it isn't.
Thank you for trying to help.

Cheers, George


Re: Problems with Elsearticle template

2010-05-30 Thread Uwe Stöhr

Am 29.05.2010 20:21, schrieb Bruno Cocciaro:


I cannot add hyperlink in a file opened from elsarticle template.


It seems that the elsarticle class doesn't allow to use hyperref. But this is not problematic 
because Elsevier will in every case reformat your journal submission. They will decide to make a 
real hyperlink out of your URL or not.
You can therefore insert your URL as normal text. If you prefer a special formatting of your URL, 
you might try out the LyX menu Insert-URL.


regards Uwe


Re: Justifying figures to outer margin

2010-05-30 Thread george legge
Sorry Uwe, I forgot to add that the geometry package allows me to set up
exactly what I need in the way of margins.
It can set:
paperwidth = inner + width + outer   [I am calling them inner and outer
rather than left and right, because it is double sided]
where inner and outer are true margins, not used for printing.
and  width = textwidth + (marginparsep + marginparwidth)

It is the outer edge of this (marginparsep + marginparwidth) region which I
attempted to justify my figures to.
My requirement was that the outer edge of a figure line up with the outer
edge of the marginpara,
and the figure could extend back as far as needed into the text area, with
any space left available for caption.
I was having difficulty with this and I noticed that memoir by itself could
perform many (though not all) of geometry actions.
Then I was overjoyed to get your suggestion of using overhang but
subsequently underjoyed to find I could not free it from wrap.
If I cannot free overhang from wrap, I shall go back to wrestling with
geometry.
Thank you again for your help.

Cheers, George


Re: Justifying figures to outer margin

2010-05-30 Thread Uwe Stöhr

Am 31.05.2010 03:06, schrieb george legge:


It is the outer edge of this (marginparsep + marginparwidth) region which I
attempted to justify my figures to.
My requirement was that the outer edge of a figure line up with the outer
edge of the marginpara,


I expect that you need low-level TeX primitives to achieve this.


If I cannot free overhang from wrap, I shall go back to wrestling with
geometry.


Perhaps this helps you:
http://wiki.lyx.org/Tips/PaperLayout

regards Uwe


Re: Check speller in LyX 2.0 alpha3

2010-05-30 Thread Francisco J . Ruiz-Ruano Campaña
Hi.

I have installed the packages libaspell-dev and libhunspell-dev. I
have recompilled and reinstalled, and it works!

Thanks, Ignacio.

Bye.


On Fri, May 28, 2010 at 8:25 AM, icebna  wrote:
> Hi
>
> I have Mandriva in my computer and I have installed aspell-es and
> libaspell-devel and work fine.
>
> Regards
>
>
> On 27/05/10 22:13, Francisco J. Ruiz-Ruano Campaña wrote:
>>
>> I have installed LyX 2.0 alpha3 in Ubuntu, but I check speller is
>> deactivated since I have installed it.
>>
>> I have installed aspell, ispell and hunspell in spanish, but it doesn't
>> work.
>>
>> Some ideas?
>>
>> Thanks.
>>
>
>



-- 
Más allá de la confusión, persiste la duda.


Lyx 1.6.6.1 Compilation problems on Fedora 13

2010-05-30 Thread Alok Shukla
Dear All,

  After configuring lyx-1.6.6.1 properly on my Fedora 13 laptop
  when I run the make command, the compilation doesn't
  get completed. Instead, it ends with the error message (relevant portions
include):

   g++ -O2 -o lyx main.o ISpell.o SpellBase.o BiblioInfo.o Box.o Dimension.o
PrinterParams.o Thesaurus.o  ./.libs/liblyxcore.a ./.libs/liblyxmathed.a
./.libs/liblyxinsets.a frontends/.libs/liblyxfrontends.a
frontends/qt4/.libs/liblyxqt4.a ./.libs/liblyxgraphics.a
support/.libs/liblyxsupport.a ../boost/.libs/liblyxboost.a -lAiksaurus -lz
-lQtGui -lQtCore
/usr/bin/ld: frontends/qt4/.libs/liblyxqt4.a(GuiWorkArea.o): undefined
reference to symbol 'XEventsQueued'
/usr/bin/ld: note: 'XEventsQueued' is defined in DSO /usr/lib64/libX11.so.6
so try adding it to the linker command line
/usr/lib64/libX11.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[4]: *** [lyx] Error 1

I will appreciate any help in this matter.

--Alok


Re: Lyx 1.6.6.1 Compilation problems on Fedora 13

2010-05-30 Thread Kornel Benko
Am Sonntag 30 Mai 2010 schrieb Alok Shukla:
> Dear All,
> 
>   After configuring lyx-1.6.6.1 properly on my Fedora 13 laptop
>   when I run the make command, the compilation doesn't
>   get completed. Instead, it ends with the error message (relevant portions
> include):
> 
>g++ -O2 -o lyx main.o ISpell.o SpellBase.o BiblioInfo.o Box.o
> Dimension.o PrinterParams.o Thesaurus.o  ./.libs/liblyxcore.a
> ./.libs/liblyxmathed.a ./.libs/liblyxinsets.a
> frontends/.libs/liblyxfrontends.a
> frontends/qt4/.libs/liblyxqt4.a ./.libs/liblyxgraphics.a
> support/.libs/liblyxsupport.a ../boost/.libs/liblyxboost.a -lAiksaurus -lz
> -lQtGui -lQtCore
> /usr/bin/ld: frontends/qt4/.libs/liblyxqt4.a(GuiWorkArea.o): undefined
> reference to symbol 'XEventsQueued'
> /usr/bin/ld: note: 'XEventsQueued' is defined in DSO /usr/lib64/libX11.so.6
> so try adding it to the linker command line
> /usr/lib64/libX11.so.6: could not read symbols: Invalid operation
> collect2: ld returned 1 exit status
> make[4]: *** [lyx] Error 1

I would try to install the devel-package of "libX11.so" (not only the standard 
package with "libX11.so.6")
On ubuntu would be the package "libx11-dev".

> I will appreciate any help in this matter.
> 
> --Alok

Kornel
-- 
Kornel Benko
kornel.be...@berlin.de


signature.asc
Description: This is a digitally signed message part.


all cited references

2010-05-30 Thread jelle
Hi,

I'm running into an issue where all references in my .bib file
 are added to the bibliography. Using the "all cited references"
 you'd expect only the actually cited references to show up
rather than seeing every entry in the .bib file. I'm using the
 acmsiggraph1 citations style and there is no difference in 
using "all references" or "all cited references".
I've tried setting bibtex -> bibtex -min-crossrefs=200
 but that doesnt help either. For the article I'm currently editing,
 its easy to work around it, but it would be much 
more efficient if this is dealt with for me. 
Any pointers in how to solve this are much appreciated!

Many thanks,

-jelle



Re: LyX layout for tRES?

2010-05-30 Thread Nikos Alexandris
On Friday 28 of May 2010 12:16:15 Nikos Alexandris wrote:
[...] 
> Should (all) this info go to the wiki? Are there other things to test?

If there are no objections, could someone approve the site-links and upload 
the attached layout in ?

Thank you, Nikos
#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[tRES2e]{article (tres2)}
# 

Format 11
Input stdclass.inc

DefaultModule theorems-ams

SecNumDepth 3
TocDepth3

NoStyle Chapter
NoStyle Chapter*




Author-Year Citation+Bibliography by using Biblatex generates wrong output

2010-05-30 Thread Hans J. Prueller
hi all,

we are writing a thesis in german and the "Author Year" citation is
required. 

after some googe-ing we decided to use "biblatex" within lyx as it seems
that this is the "state of the art" way to do that (and it read rather
easily).

we installed "biblatex" tex/latex packages (via synaptic package manager
on our ubuntu laptops), so biblatex is basically available for
tex/latex.

after that we installed the biblatex.module into the lyx user directory
and reconfigured lyx (everthing as decribed within the howtos on the lyx
web site).

we could add the "biblatex" module to our document and within LyX, the
inserted citations look ok -- the "preview" in LyX itself is Author Year
- -perfekt.

the big Problem:

if we generate a PDF file (or dvi or any other output format), within
the Output the citation is in wrong format - author-year is lost --
simply the bibtex-keys for
the entries are printed out instead of author year. the whole
bibliography is missing and not printed in the output document !


as in lyx everything seems ok, I guess this could be a latex related
problem --- we tried several things but nothing worked really out.


any ideas are appreciated!

regards,
hans



Re: Problems with Elsearticle template

2010-05-30 Thread Bruno Cocciaro


From: Bruno Cocciaro 
Sent: Saturday, May 29, 2010 8:21 PM
To: lyx-users@lists.lyx.org 
Subject: Problems with Elsearticle template


> I cannot add hyperlink in a file opened from elsearticle template.

My problem is partially solved.
After creating a new file from New from template->Elsearticle.lyx, I must do
Document->settings-PDF Properties
and select Use hyperref support

to avoid the errors I described in my previous post.

But I receive similar errors (but not only 2, very much more) when I try to 
view the pdf of my elsearticle file that I created modifing the Elsearticle.lyx 
which I obtained when installed the Elsearticle class.

Evidently there is something in my file which conflict with the hyperref 
support (I receive errors also if I do not insert any hyperref in my file but 
only set the "Use hyperref support").

I'll go to try to understand which is the conflicting part that I inserted and, 
eventually, I'll askk again for help.

Thank you.

Bruno Cocciaro

--- Li portammo sull'orlo del baratro e ordinammo loro di volare.
--- Resistevano. Volate, dicemmo. Continuavano a opporre resistenza.
--- Li spingemmo oltre il bordo. E volarono. (G. Apollinaire)

Re: Justifying figures to outer margin

2010-05-30 Thread Uwe Stöhr

Am 30.05.2010 05:45, schrieb george legge:


Thank you Uwe. "Overhang" is exactly what I need.
However, I do not want wrapping, and "overhang" seems to be offered only by
Wrap Float.
I don't think a plain Figure Float recognizes "overhang".
Is there an easy way to insert an "overhang" command into a Figure Float?


You only need to specify a width for your image that is wider than the page or column width. Use for 
example a width of 110 column%. Attached is an example where I have done this for a box.


regards Uwe


newfile2.lyx
Description: application/lyx


Fwd: off the list

2010-05-30 Thread Manolo Martínez
> I've been off the LyX-Users list for a month and didn't even know it, 
but I'm

> back now.
>

wow, the same had happened to me until a couple of days ago. I thought I
had done something wrong, but now I'm not so sure. Is there any way to
find out whether the majordomo has kicked more list subscribers out?

Manolo



Re: Fwd: off the list

2010-05-30 Thread Vincent van Ravesteijn

Op 30-5-2010 18:16, Manolo Martínez schreef:
> I've been off the LyX-Users list for a month and didn't even know 
it, but I'm

> back now.
>

wow, the same had happened to me until a couple of days ago. I thought I
had done something wrong, but now I'm not so sure. Is there any way to
find out whether the majordomo has kicked more list subscribers out?


You could start by reading the news message on ww.lyx.org.

Vincent


help with creating an environment

2010-05-30 Thread Artimess
I would like to create a LyX module for the  environment that I borrowed
from the tex version of memoir book (code e  in blue).  I used Steve Litt's
tutorial to experiment with it (code in green), when I run  I get  two
errors in red.

I would appreciate if you explain to me what I am doing wrong.
Also, It is preferable t have this as module rater than layout how should I
go about doing it as a module?

Many thanks,
Artimess

 ! LaTeX Error: Environment Syntax undefined.

! LaTeX Error: \begin{document} ended by \end{Syntax}.


% LaTeX syntax
 control space above/below center environment
\newcommand*{\tightcenter}{%
  \topsep=0.25\onelineskip\trivlist \centering\item\relax}
\def\endtightcenter{\endtrivlist}
\newenvironment{syntax}{\begin{tightcenter}
\begin{tabular}{|p{0.9\linewidth}|} \hline}%
   {\hline
\end{tabular}
\end{tightcenter}}



#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[book]{mybook}

Input stdclass.inc

Preamble
% LaTeX syntax
 control space above/below center environment
\newcommand*{\tightcenter}{%
  \topsep=0.25\onelineskip\trivlist \centering\item\relax}
\def\endtightcenter{\endtrivlist}
\newenvironment{syntax}{%
 ~\\
\begin{tightcenter}
\begin{tabular}{|p{0.9\linewidth}|} \hline}%
   {\hline
\end{tabular}
\end{tightcenter}
  ~\\

 }

EndPreamble

Style Syntax
Style Syntax
  CopyStyle Standard
  LatexType Environment
  LatexName Syntax
  LeftMargin"MM"
  RightMargin"MM"
  Font
Shape   Italic
  EndFont
End


Re: Fwd: off the list

2010-05-30 Thread Manolo Martínez



You could start by reading the news message on ww.lyx.org.


Sorry, my bad. Anyway, it would have been nice to have an item on the 
news /during/ the downtime. I checked the news a couple of times during 
the firsts weeks, then gave up.


Manolo


Re: help with creating an environment

2010-05-30 Thread Richard Heck

On 05/30/2010 12:23 PM, Artimess wrote:
I would like to create a LyX module for the  environment that I 
borrowed from the tex version of memoir book (code e  in blue).  I 
used Steve Litt's  tutorial to experiment with it (code in green), 
when I run  I get  two errors in red.


I would appreciate if you explain to me what I am doing wrong.

There are a lot of errors in the LaTeX code. Always try to get the LaTeX 
code working in a trivial LaTeX file, outside of LyX. It's too hard to 
work on the LaTeX and the module code at the same time.


In any event, this works for me:

% LaTeX syntax
 control space above/below center environment
\newenvironment{tightcenter}%
  {\setlength{\topsep}{0.25in}\begin{list}{}{}\item\relax}
  {\end{list}}
\newenvironment{syntax}{%
  ~\\
  \begin{tightcenter}
  \begin{tabular}{|p{0.9\linewidth}|}\hline
}%
{%
  \\
  \hline
  \end{tabular}
  \end{tightcenter}
~\\
}

That said, I'm not sure \topsep can be controlled that way. See here:
http://dcwww.camd.dtu.dk/~schiotz/comp/LatexTips/LatexTips.html

Also, It is preferable to have this as module rater than layout how 
should I go about doing it as a module?


Look at one of the module files that ships with LyX for an example you 
can adapt. From your point of view, the difference is only in the 
"header" of the file. Instead of \DeclareLaTeXClass you have 
\DeclareLyXModule, etc. See also section 5.2.1 of the Customization manual.





#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[book]{mybook}


You need a format line, like
Format 11
All LyX layout files must have such a line.


Input stdclass.inc

Preamble
% LaTeX syntax
 control space above/below center environment
\newcommand*{\tightcenter}{%
  \topsep=0.25\onelineskip\trivlist \centering\item\relax}
\def\endtightcenter{\endtrivlist}
\newenvironment{syntax}{%
 ~\\
\begin{tightcenter}
\begin{tabular}{|p{0.9\linewidth}|} \hline}%
   {\hline
\end{tabular}
\end{tightcenter}
  ~\\

 }

EndPreamble

You presumably want to use "AddToPreamble" here. The straight "Preamble" 
will overwrite any previous Preamble declaration, which you do not want.


Also, since the syntax part, at least, applies only to the Syntax style, 
it would be better to put it in a Preamble block within the Style 
declaration. Then the code will go into the preamble only if the Syntax 
style is used. Look e.g. at hanging.module for how this is done.




Style Syntax
Style Syntax


One is enough!


  CopyStyle Standard
  LatexType Environment
  LatexName Syntax
  LeftMargin"MM"
  RightMargin"MM"
  Font
Shape   Italic
  EndFont
End







Re: Inline equation uneven spacing

2010-05-30 Thread Paul A. Rubin

On 5/23/2010 6:32 PM, Amir wrote:

I have an inline equation that results in uneven spacing of the lines. How can I
fix that?



LaTeX will add extra space between lines if it perceives the equation to 
be expanding too far into the existing space (crowding the next line 
above or below too much).  So you have multiple options:


1.  Reduce the vertical dimension of the equation by replacing 
\frac{a}{b} with a/b, eliminating large symbols, etc.  This only works 
if you can make changes that reduce the vertical dimension without 
screwing up the content of the equation.


2.  Reduce the vertical dimension of the equation by shrinking the font 
size within the equation.  This may result in the equation looking odd 
(or possibly even being small enough to be difficult to read).


3.  Increase the spacing between lines (go from single space to 
space-and-a-half or double space, for instance).  This presumably would 
have to be applied to the whole document.


4.  Make the equation a display equation (and leave it unnumbered).

I personally tend to use option 1 if it works, option 4 otherwise.  To 
quote (well, paraphrase) the immortal philosopher Dolly Parton, this is 
what happens when you try to put 10 pounds of mud in a five pound sack.


/Paul





Spellchecking OSX and cocoAspell

2010-05-30 Thread jezZiFeR

Hello,

I have tried to use Spellchecking with LyX 1.6.5 on OSX with  
cocoAspell. It seems to work fine with the english dictionary, which I  
have added as »Alternative language«, as described. But as soon as I  
want to use another language (german), which I have placed in the same  
folder as the English-file, I get the following message:


"Das Rechtschreibprogramm konnte nicht gestartet werden
Error: The file "/Library/Application
Support/cocoAspell/aspell6-de-20030222-1.alias" can not be opened for  
reading."


I hope you could help me. When I switch back to the English file  the  
spellchecker works again…


Best
Jess

Re: Justifying figures to outer margin

2010-05-30 Thread george legge
>
>   Is there an easy way to insert an "overhang" command into a Figure Float?
>>
>
> You only need to specify a width for your image that is wider than the page
> or column width. Use for example a width of 110 column%. Attached is an
> example where I have done this for a box.
>
> regards Uwe
>

Thank you Uwe, but that merely enlarges the image and extends it into the
margin.
It does not MOVE the image.  An overhang moves the image across into the
margin which is what I need.
Think of it this way:
 I wish to have an image (of any desired size) placed in the top
outer corner of the page.
Images will vary in width; but their outer edge will always hang outside the
text edge by the same distance.
It seems to me that this is exactly what "overhang" achieves.
If only I can get it to work with a regular image float, not just with a
wrap float.

Cheers, George


Re: Justifying figures to outer margin

2010-05-30 Thread Uwe Stöhr

Am 30.05.2010 23:22, schrieb george legge:


Thank you Uwe, but that merely enlarges the image and extends it into the
margin.
It does not MOVE the image.  An overhang moves the image across into the
margin which is what I need.


This is against usual typesetting rules and therefore not supported by LaTeX. I showed you 2 tricks 
to overcome this and I don't see other ways.
But you should have a very, very important reason to print something in the page margin. Because in 
case that you print your document by a printing press you will get big problems.


regards Uwe


Re: Justifying figures to outer margin

2010-05-30 Thread george legge
>
> This is against usual typesetting rules and therefore not supported by
> LaTeX. I showed you 2 tricks to overcome this and I don't see other ways.
> But you should have a very, very important reason to print something in the
> page margin. Because in case that you print your document by a printing
> press you will get big problems.
>
> regards Uwe
>

I still have a real margin of about 1.5cm outside the images. But there is a
much larger margin outside the text.
It is quite common to use what is treated as a margin by the text, but is
available for placement of figures.
Possibly a layout program does it by setting up two columns and restricting
the text to just the inner column.
I don't think that is easy to do with LaTeX.
However your suggestion of using "overhang" was wonderful.I don't know how
"overhang" is achieved.
I just need the macro that produces "overhang" without the macro that
produces "wrap".
That sounds simple, but maybe it isn't.
Thank you for trying to help.

Cheers, George


Re: Problems with Elsearticle template

2010-05-30 Thread Uwe Stöhr

Am 29.05.2010 20:21, schrieb Bruno Cocciaro:


I cannot add hyperlink in a file opened from elsarticle template.


It seems that the elsarticle class doesn't allow to use hyperref. But this is not problematic 
because Elsevier will in every case reformat your journal submission. They will decide to make a 
real hyperlink out of your URL or not.
You can therefore insert your URL as normal text. If you prefer a special formatting of your URL, 
you might try out the LyX menu Insert->URL.


regards Uwe


Re: Justifying figures to outer margin

2010-05-30 Thread george legge
Sorry Uwe, I forgot to add that the geometry package allows me to set up
exactly what I need in the way of margins.
It can set:
paperwidth = inner + width + outer   [I am calling them inner and outer
rather than left and right, because it is double sided]
where inner and outer are true margins, not used for printing.
and  width = textwidth + (marginparsep + marginparwidth)

It is the outer edge of this (marginparsep + marginparwidth) region which I
attempted to justify my figures to.
My requirement was that the outer edge of a figure line up with the outer
edge of the marginpara,
and the figure could extend back as far as needed into the text area, with
any space left available for caption.
I was having difficulty with this and I noticed that memoir by itself could
perform many (though not all) of geometry actions.
Then I was overjoyed to get your suggestion of using "overhang" but
subsequently "underjoyed" to find I could not free it from wrap.
If I cannot free "overhang" from wrap, I shall go back to wrestling with
geometry.
Thank you again for your help.

Cheers, George


Re: Justifying figures to outer margin

2010-05-30 Thread Uwe Stöhr

Am 31.05.2010 03:06, schrieb george legge:


It is the outer edge of this (marginparsep + marginparwidth) region which I
attempted to justify my figures to.
My requirement was that the outer edge of a figure line up with the outer
edge of the marginpara,


I expect that you need low-level TeX primitives to achieve this.


If I cannot free "overhang" from wrap, I shall go back to wrestling with
geometry.


Perhaps this helps you:
http://wiki.lyx.org/Tips/PaperLayout

regards Uwe