hyperlinks in LyX

2009-10-05 Thread 0
I've got Section 1 and Section 2 in a LyX document. In Section 1, I want to 
have a click-able link to Section 2. How do I make it?


  


Re: Underline lines blues

2009-10-05 Thread Wolfgang Engelmann
Am Sunday 04 October 2009 21:56:36 schrieb Murat Yildizoglu:

and if you want to get rid of the blue underlines, 

-edittextstyleuserdefinedlanguagereset
Wolfgang

 Hi Adrian,
 This normally signals a difference in langauage between the main
 language of the doc and the one of the pasted elements.

 Murat

 2009/10/4 Adrian Diaz aedmci...@gmail.com:
  Hi Friends
 
  I am writing my thesis with Lyx 1.6.3 ( a soosn as posssible i will set
  up on my computer Lyx 1.6.4).
 
  Howerver, there is a problem which i do not undertansd. I am doing a copy
  and paste on
  some paragraph,from some file to another one, and when i select the paste
  option, the paragraph
   is copied ok, but it has an underline blue line. Could you tell me how
  can i  avoid it?.
 
                                                Thanks in advice Adrián



-- 
-
Wolfgang Engelmann
Schlossgartenstrasse 22
D-72070 Tübingen
Tel 07071 68325


Re: Why Lyx seems to arbitrarily align left margins in the officicial tutorial?

2009-10-05 Thread Helge Hafting

fabio de francesco wrote:
My interest for Lyx's philosophy has been caught up by a recent article on the 
power of WYSIWYM. So I am a perfect newbie asking for something that could be 
perfectly obvious to you all.


I started by opening the tutorial and making  pdf of it. I have immediately 
noticed that Lyx seems to arbitrarily align each line of entire pages of the 
document. There are pages where the text starts almost at a quarter of a page 
from the left.


Margins for odd and even pages are different. But print on a two-sided 
printer, and you'll see that the odd and even margins line up perfectly.


Two-sided printing saves paper, and look more professional too. It is 
possible to do this on a single-side printer too, by printing all the

odd pages first, and then print the even pages on the backsides.

If you simply find the margins too big for your taste:
Document-Settings-Page Margins
Note that more than 66 letters or so per line is not good
for readability, so you may want a bigger font to go
with wider margins:
Document-Settings-Fonts

On the other hand, if you simply want to spend
paper on a single-sided printout:
Document-Settings-Page Layout,
and uncheck Two-sided document

Helge Hafting


Images always on new page; never centered

2009-10-05 Thread Berthold Metz (PH-Freiburg)

Hi all,

I am using koma-Book and encounter the following problem:

When I insert graphics into the Appendix, they are always shown on the 
next page. When I set the image into a float-object and use the setting 
here, always (sorry ... german version), then _sometimes_ it works 
without page-break. But I don't want to place it as a float-object, 
because in the Appendix it has to be right in the place I choose.


The next problem: The inserted graphics are never centered, even if I 
use the paragraph-setting align: center. It makes no difference if I 
insert them as floating object or just as image.


Thanks in advance for any idea,
Berthold


Command-H does not hide window in Mac Lyx 1.6.0

2009-10-05 Thread zp
For most Mac applications, the command-H key shortcut hides the window.
This shortcut does not work for the Lyx window.  

I'm sure that many users are not aware of this key combination but it is an
essential part of my work flow (and I'm sure others' too!).

I have checked if the key combination is mapped to internal commands and it does
not appear to be.  

Is this a bug or an intended 'feature'?



Re: Re: problem with graphics in beamerlyxexample1.lyx

2009-10-05 Thread BigG


Paul A. Rubin wrote:
 div class=moz-text-flowed style=font-family: -moz-fixedBigG wrote:
 I have LyX 1.6.4 installed in cygwin on W2K, and LyXWindows 1.6.4 on
 W2K on another box. When I use beamerlyxexample1.lyx, warnings about
 missing graphics are generated. The following are
 examples:

 Package pgf Warning: File beamer-icsi-logo not found when defining
 image ics
 i-logo.
 (pgf)Tried all extensions in .pdf:.jpg:.jpeg:.png:
 on input l
 ine 49.


 Package pgf Warning: Missing height for image icsi-logo in draft mode.
 (pgf)Using 1cm instead on input line 49.


 Package pgf Warning: File beamer-knight1-mask not found when
 defining mask k
 night1-mask.
 (pgf)Tried all extensions in .pdf:.jpg:.jpeg:.png:
 on input l
 ine 169.


 Package pgf Warning: File beamer-knight1 not found when defining
 image knigh
 t1.
 (pgf)Tried all extensions in .pdf:.jpg:.jpeg:.png:
 on input l
 ine 169.

 The PDF generated is fine, but missing the four knight images, and the
 ICSI logo. This is what I
 would expect. However, the relevant image files are actually there in
 the same directory as
 beamerlyxexample1.lyx. For example,

 $ ls -w 80 /usr/local/share/lyx/examples/beam*
 /usr/local/share/lyx/examples/beamer-g4-mask.jpg*
 /usr/local/share/lyx/examples/beamer-g4.jpg*
 /usr/local/share/lyx/examples/beamer-icsi-logo.pdf*
 /usr/local/share/lyx/examples/beamer-knight1-mask.png*
 /usr/local/share/lyx/examples/beamer-knight1.png*
 /usr/local/share/lyx/examples/beamer-knight2-mask.png*
 /usr/local/share/lyx/examples/beamer-knight2.png*
 /usr/local/share/lyx/examples/beamer-knight3-mask.png*
 /usr/local/share/lyx/examples/beamer-knight3.png*
 /usr/local/share/lyx/examples/beamer-knight4-mask.png*
 /usr/local/share/lyx/examples/beamer-knight4.png*
 /usr/local/share/lyx/examples/beamerlyxexample1.lyx*

 Why can't pdflatex find them?

 Bill Gordon

 
 Works fine on Win XP here.  Is this occurring when you try View-PDF
 (pdflatex)?  If so, here are a couple of things to try:
 
 1.  Try exporting a TeX file and running pdflatex against it manually.
 
 2.  Do View-PDF (pdflatex) and, while the PDF version is open, use a
 DOS window to navigate to your temp directory.  (Tools - Preferences -
 Paths - Temporary directory will point you to it if the location is not
 obvious.)  You should see beamerlyxexample1.tex sitting there.  Open it
 with any text viewer.  About the third line should be a path command,
 something like
 
 \def\in...@path{{\stringC:/Program
 Files/LyX16/Resources/examples/\string/}}
 
 (give or take).  Check to make sure the path is correct.
 
 /Paul
 
 
 /div
 
Thanks for responding Paul.

I now have three machines with the following setups:

Machine 1:  W2K LyX 1.6.4 on cygwin(tetex)
LyXWindows 1.6.4 MiKTeX 2.7
Machine 2:  W2K LyXWindows 1.6.4 MiKTeX 2.7
Machine 3:  XP  LyXWindows 1.6.4 MiKTeX 2.7

so that's four installations of LyX. They all give basically the same result 
for beamerlyxexample1.lyx, which is as follows:

File-Export-LaTeX (pdflatex) produces a TeX file which does not have the 
\def\input line. Running this through pdflatex produces the warnings above, and 
a PDF with no graphics. However, if the graphics files are put into the same 
directory as the TeX file, there are no warnings about missing graphics files, 
and the PDF file does have the appropriate graphics. This seems consistent with 
the lack of \def\input line.

View-PDF (pdflatex) produces a TeX file which does have the \def\input line. 
In each of the four cases, the path appears to be correct (in the cygwin case, 
the two occurences of \string are not present, though). Running these through 
pdflatex produces the warnings above, and a PDF with no graphics in each of the 
four cases. Again, if the the graphics files are put into the same directory as 
the TeX file, there are no warnings about missing graphics files, and the PDF 
file does have the appropriate graphics. This would imply that the \def\input 
line is ignored for some reason.

So

a) your XP installation works, mine doesn't
b) my \def\input lines appear to be OK, but are ignored or incorrectly 
interpreted by pdflatex
c) my Export-ed files don't have the \def\input line (don't know if this is as 
expected or not).

Any thoughts, anyone?

Bill Gordon




Hebrew support in LyX - Culmus and MikTeX 2.8

2009-10-05 Thread Barak Sh
Hello all,
I've been working with LyX and MikTeX for a few years, and Hebrew worked
without problem with Culmus.
However, after upgrading to MikTeX 2.8, Hebrew support failed. When
compiling a LyX document with Hebrew characters, I get:

Font LHE/cmr/m/n/10=jerus10 at 10.0pt not loadable: Metric (TFM) file not
found
\begin{document}

 I wasn't able to read the size data for this font,

so I will ignore the font specification.

[Wizards can fix TFM files using TFtoPL/PLtoTF.]

You might try inserting a different font spec;

e.g., type `I\fontsame font id=substitute font name'.


I tried copying the files manually to the MikTeX folder and running
'initexmf -u' and 'initexmf --mkmaps', but now I get this message:

Font HE8/cmr/m/n/10=david at 10.0pt not loadable: Metric (TFM) file not
found

I also tried uninstalling LyX  MikTeX entirely and re-installing them
again, and then followed exactly the instructions here:

http://wiki.lyx.org/Windows/Hebrew

But this did not work either. Perhaps the Culmus fonts no longer work with
the new version of MikTeX (2.8)?
I would appreciate help with getting Hebrew support to work again. I think
perhaps downgrading to MikTeX 2.7 will solve the problem, but I assume only
a few changes are required for Culmus to work with 2.8.

Thanks in advance,
Barak


Re: Re: Re: problem with graphics in beamerlyxexample1.lyx

2009-10-05 Thread BigG
 BigG writes:
  
  I have LyX 1.6.4 installed in cygwin on W2K, and LyXWindows 1.6.4 on W2K on
  another box. When I 
  use beamerlyxexample1.lyx, warnings about missing graphics are generated.
 [...]
  The PDF generated is fine, but missing the four knight images, and the ICSI
  logo. This is what I
  would expect. However, the relevant image files are actually there in the
  same directory as
  beamerlyxexample1.lyx. For example,
  
  $ ls -w 80 /usr/local/share/lyx/examples/beam*
  /usr/local/share/lyx/examples/beamer-g4-mask.jpg*
  /usr/local/share/lyx/examples/beamer-g4.jpg*
  /usr/local/share/lyx/examples/beamer-icsi-logo.pdf*
  /usr/local/share/lyx/examples/beamer-knight1-mask.png*
  /usr/local/share/lyx/examples/beamer-knight1.png*
  /usr/local/share/lyx/examples/beamer-knight2-mask.png*
  /usr/local/share/lyx/examples/beamer-knight2.png*
  /usr/local/share/lyx/examples/beamer-knight3-mask.png*
  /usr/local/share/lyx/examples/beamer-knight3.png*
  /usr/local/share/lyx/examples/beamer-knight4-mask.png*
  /usr/local/share/lyx/examples/beamer-knight4.png*
  /usr/local/share/lyx/examples/beamerlyxexample1.lyx*
  
  Why can't pdflatex find them?
 
 This is a known pgf bug:
 http://sourceforge.net/tracker/index.php?func=detailaid=1336165group_id=92412atid=600660
 
 A patch has been proposed, but it has not still been applied:
 http://sourceforge.net/tracker/index.php?func=detailaid=1447974group_id=92412atid=600662
 
 -- 
 Enrico

Thanks for this Enrico - and thanks for the workaround for my other
problem with tetex

--
Bill Gordon



Re: Command-H does not hide window in Mac Lyx 1.6.0

2009-10-05 Thread BH
On Mon, Oct 5, 2009 at 5:38 AM, zp l...@greenant.net wrote:
 For most Mac applications, the command-H key shortcut hides the window.
 This shortcut does not work for the Lyx window.

 I'm sure that many users are not aware of this key combination but it is an
 essential part of my work flow (and I'm sure others' too!).

 I have checked if the key combination is mapped to internal commands and it 
 does
 not appear to be.

 Is this a bug or an intended 'feature'?

It works as expected for me. (Does the option show up under the LyX menu?)

BH


Document title in the footer.

2009-10-05 Thread bart

Hello All
I want an alternative for MS Word for the creation of the documents 
within our company. The only restriction is that it should be able to do 
same as Word but better. So I have been trying in LyX to get the same 
page layout as in Word. It seems that I have everything except that i 
can't get the title to appear in the footer. I have put this in the 
preamble:


\footskip2cm

\fancyhf{}

\lfoot{\begin{minipage}{4cm} \scriptsize \...@title \end{minipage}}

\rfoot{\begin{minipage}{5cm}\small \copyright This piece of text i want in
the right footer.\end{minipage}}

This doesn't work the way I would like. I don't get an error and I don't 
get a title in the footer. If I replace \...@title by the actual text this 
text does appear in the footer. the Rightfooter is fine though. Could 
someone tell me if I am doing something wrong and if so what. Thanks in 
advance.


regards
Bart


page n of m in header

2009-10-05 Thread bart

Hi
I would like to have in the header the pagenumber and the total number 
of pages in the header in the format page n of m. In the fancyheader 
manual I have found that I have to use the package lastpage so I've 
put in the preamble:


\usepackage{lastpage}

\fancyhf{}

\fancyhead[LE,RO]{\thepage\ of \pageref{lastpage}}


The result I get is: 2 of ?? (on page 2 for instance).

I don't get any error messages but it seems that it is unknown how many 
pages the document has. How can I solve this?


Regards
Bart



Re: page n of m in header

2009-10-05 Thread Olivier Ripoll

bart wrote:

Hi
I would like to have in the header the pagenumber and the total number 
of pages in the header in the format page n of m. In the fancyheader 
manual I have found that I have to use the package lastpage so I've 
put in the preamble:


\usepackage{lastpage}

\fancyhf{}

\fancyhead[LE,RO]{\thepage\ of \pageref{lastpage}}


The result I get is: 2 of ?? (on page 2 for instance).

I don't get any error messages but it seems that it is unknown how many 
pages the document has. How can I solve this?


Hi,

I'm not an expert, but looking at the fancy header manual (e.g. section 
16 on page 15, you should use

\pageref{LastPage}
instead of
\pageref{lastpage}

For me, this small change is sufficient to have a correct last page number.

Also, you do have warnings that could have pointed you to this:
In Documents-LaTeX Log you can access the log, in which you can see 
several warnings (in blue) from latex saying:
LaTeX Warning: Reference `lastpage' on page 1 undefined on input line 
37. (the page number and line number can be different for you)


Best regards,

Olivier



Regards
Bart






LyX Layout file for custom class using XeTeX

2009-10-05 Thread Daniel Owens
I am working on a dissertation class for my school, and I need to use 
XeTeX. The class is working well using LaTeX, but when I create a layout 
file for LyX to use the class, it ignores the commands for using 
TrueType fonts, so Greek is not typeset. I don't have this problem in 
LyX if I just use a *.sty file instead of a class. Then LyX handles 
XeTeX very well. Does anyone have any theories about what is going on? 
The only thing I can think of is that my layout file is doing something 
to interfere with XeTeX. It compiles okay just without the right fonts.


Daniel


Re: Command-H does not hide window in Mac Lyx 1.6.0

2009-10-05 Thread zp

 It works as expected for me. (Does the option show up under the LyX menu?)
 
 BH
 
 


Yes, funnily enough it does show under the lyx menu, but the menu item does not
trigger hiding of the window either.
In fact I think I remember that it used to work... quite strange!

Perhaps this is not a lyx bug and something funny happening in my leopard 
install
(10.5.2)

Frank






esint conflicts

2009-10-05 Thread David Wang
Hi there,

I'm writing for an American Meteorological Society journal. They have their
own style file etc.

http://www.ctan.org/tex-archive/macros/latex/contrib/ametsoc/

Since I understand it's nontrivial to create a layout corresponding to that,
what I do is to import a blank template tex file they provide into lyx,
write everything in lyx, and export the latex source which only needs slight
modification to conform to their format.

However, when I have integrals in my text, the lyx file fails to compile,
with error messages like,

command \iint already defined.

Apparently there is a conflict between the esint package that lyx uses and
something in the ametsoc package. I wonder how I can solve this conflict.
I'm new to lyx and have limited knowledge of latex.

Thank you,
David


-- 
turn and live.


Converting from Preamble to Layout

2009-10-05 Thread Daniel Joshua Stark
Dear all,I am working on a thesis. Currently, I have to put the list of committee members in the LaTeX preamble with the following command: \committee{Thomas C. Killian, Chair \\Associate Professor of Physics and Astronomy\and Robert M. Raphael, Thesis Advisor \\Associate Professor of Bioengineering\and Jason H. Hafner \\Associate Professor of Physics and Astronomy \and Paul M. Stevenson \\Professor of Physics and Astronomy}I would like to modify the layout file to have an "Committee member" and "Committee department" environment so that I can display the committee list visually within the document, much like the Title or Author. I have tried adding something along the lines of:Style "Committee Member"	Margin			Static	LatexType		Command	Category		FrontMatter	InTitle			1	OptionalArgs		1	LatexName		committee	LabelSep		xxx	ParSkip			0.4	TopSep			1.3	BottomSep		0.7	ParSep			0.7	Align			Center	LabelType		No_Label	Font	 Size			Large	EndFontEndBut it will only put the last member down (the Paul Stevens). I don't know how to set up the \and and the \\ to put multiple members and their departments down.Does anyone have any clue on how to do this?Attached are the layout and the cls file.

rice_thesis.cls
Description: Binary data


rice_thesis.layout
Description: Binary data
Thanks for all the help,
Daniel StarkPhD CandidatePhysics and Astronomy, MS-61BRC 702Rice University6500 Main StreetHouston TX77030USAPh: +1-713-348-3126Fx: +1-713-348-2603In physics, you don't have to go around making trouble for yourself - nature does it for you.-Frank WilczekI think physicists are the Peter Pans of the human race. They never grow up and they keep their curiosity. -Isidor Isaac Rabi



Re: LyX Layout file for custom class using XeTeX

2009-10-05 Thread rgheck

On 10/05/2009 01:36 PM, Daniel Owens wrote:
I am working on a dissertation class for my school, and I need to use 
XeTeX. The class is working well using LaTeX, but when I create a 
layout file for LyX to use the class, it ignores the commands for 
using TrueType fonts, so Greek is not typeset. I don't have this 
problem in LyX if I just use a *.sty file instead of a class. Then LyX 
handles XeTeX very well. Does anyone have any theories about what is 
going on? The only thing I can think of is that my layout file is 
doing something to interfere with XeTeX. It compiles okay just without 
the right fonts.


I have no idea what is happening, but here's how to find out. Construct 
some simple test file that exhibits the behavior you mention, i.e., it 
works with the sty and not with the cls. Now export both to LaTeX. Look 
carefully at the preamble and in particular at the order in which things 
are being loaded. Somewhere in there is probably the difference.  If 
not, then check the order in which things are being loaded in your class 
and style files. Maybe it's there.


rh



Re: Converting from Preamble to Layout

2009-10-05 Thread rgheck

On 10/05/2009 03:15 PM, Daniel Joshua Stark wrote:

Dear all,

I am working on a thesis.  Currently, I have to put the list of 
committee members in the LaTeX preamble with the following command:


\committee{Thomas C. Killian, Chair \\Associate smb://Associate 
Professor of Physics and Astronomy
\and Robert M. Raphael, Thesis Advisor \\Associate smb://Associate 
Professor of Bioengineering
\and Jason H. Hafner \\Associate smb://Associate Professor of 
Physics and Astronomy
\and Paul M. Stevenson \\Professor smb://Professor of Physics and 
Astronomy}


I would like to modify the layout file to have an Committee member 
and Committee department environment so that I can display the 
committee list visually within the document, much like the Title or 
Author.


I have tried adding something along the lines of:
Style Committee Member
Margin Static
LatexType Command
Category FrontMatter
InTitle 1
OptionalArgs 1
LatexName committee
LabelSep xxx
ParSkip 0.4
TopSep 1.3
BottomSep 0.7
ParSep 0.7
Align Center
LabelType No_Label
Font
 Size Large
EndFont
End

But it will only put the last member down (the Paul Stevens).  I don't 
know how to set up the \and and the \\ to put multiple members and 
their departments down.


Does anyone have any clue on how to do this?

One thing to say first: I think LyX is limited in the same way as 
regards authors. You have to enter the \and and so forth manually in 
the authors field. So one possibility is to accept this, and enter the 
committee members, etc, into the Committee layout you already have, as:


Thomas C. Killian, Chair [Newline]Associate smb://Associate Professor 
of Physics and Astronomy [ERT]\and[/ERT]Robert M. Raphael, Thesis 
Advisor[Newline]Associate smb://Associate Professor of 
Bioengineering[ERT]\and[/ERT]etc. etc.


You save a bit of ERT there. (As for Newline, you probably know that you 
get this with Ctrl-Enter.)


If you don't want to do that, then you have to create a new set of 
macros that will collect the names of your committee members and their 
departments, and then output them. I.e., we basically want an array of 
committee members and their departments, and then we loop over the 
arrays to output them as argument to \committee (which itself now needs 
to be redefined somehow). Unfortunately, my LaTeX knowledge is giving 
out at this point, and I'm not sure how to do this kind of thing in LaTeX.


Richard



Re: Sudden crashes in LyX 16.4

2009-10-05 Thread Pavel Sanda
Stefano Franchi wrote:
 On Sunday 04 October 2009 05:57:16 am Pavel Sanda wrote:
  Stefano Franchi wrote:
   On Sunday 27 September 2009 04:49:38 am Jürgen Spitzmüller wrote:
   Any suggestion on how to narrow down the problem further is welcome. I
   checked the bug tracker and could not find a related ticket, with the
   exception of the old (and fixed)  #3970 which may or may not be related.
  
  can you try to apply the following patch and post the output from console
  when lyx collapses?
  
  pavel
  
 
 
 Hi Pavel,
 
   the console output after the crash is not very informative:
 
 lyx: SIGSEGV signal caught
 Sorry, you have found a bug in LyX. Please read the bug-reporting 
 instructions 
 in Help-Introduction and send us a bug report, if necessary. Thanks !
 Bye.
 Aborted
 
 
 I am appending below the backtraces from gdb, both with an unpatched and with 
 a patched versions of lyx 1.6.4 stable:
 
 Backtrace on unpatched lyx 1.6.4 (stable)
 
 latex failed to compile 0lyxpreview.tex
 
 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread 0x7f06830d1750 (LWP 32678)]
 0x0064d757 in lyx::RenderPreview::imageReady ()
 (gdb)
 (gdb) bt
 #0  0x0064d757 in lyx::RenderPreview::imageReady ()

can you put breakpoint on the begining of imageReady function
and check on which line it really crashes?

in gdb something like:
set break RenderPreview.cpp:line_number
run
cont

//cont as many times until crash happens - then you which is the last
one, so again run, cont times-1 and use 'n' for step by step walk...

pavel


Converting paragraph breaks to newlines in a .layout file

2009-10-05 Thread Jack M. Lyon

Esteemed LyXers:

For any particular style in a custom LyX layout file, is there a way to 
have LyX convert paragraph breaks to newlines (\\) when converting the 
text to LaTeX?


For example, in the following style--

Style Poem
Category  Poem
MarginStatic
LatexType Environment
LatexName verse1
LeftMargin
TopSep1
BottomSep 1
ParSkip   0.4
Align Left
AlignPossible Block, Left, Right, Center
LabelType No_Label
End

--I need a command that will convert paragraph breaks to newlines in the 
LaTeX text inside the paragraph environment verse1. So the text in LyX 
will look like this (styled as Poem):


My name is Ozymandias, king of kings.
Look on my works, ye Mighty, and despair!

And the text in LaTeX will look like this--

\begin{verse1}
My name is Ozymandias, king of kings.\\
Look on my works, ye Mighty, and despair!
\end{verse1}

--RATHER than this:

\begin{verse1}
My name is Ozymandias, king of kings.

Look on my works, ye Mighty, and despair!
\end{verse1}

I've explored Newline and PassThru, but they don't seem to do what I 
need. Any suggestions?


Or, failing that, is there a way to do the conversion (just for that 
environment) in LaTeX itself, rather than having LyX do it?


Thanks for any help you can provide.

Best wishes,
Jack Lyon
The Editorium
http://www.editorium.com
Waking Lion Press
http://www.wakinglionpress.com



Re: Converting paragraph breaks to newlines in a .layout file

2009-10-05 Thread rgheck

On 10/05/2009 04:03 PM, Jack M. Lyon wrote:

Esteemed LyXers:

For any particular style in a custom LyX layout file, is there a way 
to have LyX convert paragraph breaks to newlines (\\) when converting 
the text to LaTeX?


For example, in the following style--

Style Poem
Category  Poem
Margin  Static
LatexType Environment
LatexName verse1
LeftMargin
TopSep   1
BottomSep  1
ParSkip   0.4
Align Left
AlignPossible Block, Left, Right, Center
LabelType No_Label
End

--I need a command that will convert paragraph breaks to newlines in 
the LaTeX text inside the paragraph environment verse1. So the text in 
LyX will look like this (styled as Poem):


My name is Ozymandias, king of kings.
Look on my works, ye Mighty, and despair!

And the text in LaTeX will look like this--

\begin{verse1}
My name is Ozymandias, king of kings.\\
Look on my works, ye Mighty, and despair!
\end{verse1}

--RATHER than this:

\begin{verse1}
My name is Ozymandias, king of kings.

Look on my works, ye Mighty, and despair!
\end{verse1}

I've explored Newline and PassThru, but they don't seem to do what I 
need. Any suggestions?


Or, failing that, is there a way to do the conversion (just for that 
environment) in LaTeX itself, rather than having LyX do it?


I don't think there's any way to do this, as you describe what you want. 
Probably there is some way to redefine charcodes, etc, inside the verse1 
environment, so that \n\n becomes just a newline, but that is way beyond me.


That said, I'm guessing that what you want, perhaps, is just not to have 
such a large line separation in the output. If so, then perhaps 
redefining \parsep in the definition of the verse1 environment---or 
defining a new environment, if that's what's necessary---would give you 
the output you want.


rh



hyperlinks in LyX

2009-10-05 Thread 0
I've got Section 1 and Section 2 in a LyX document. In Section 1, I want to 
have a click-able link to Section 2. How do I make it?


  


Re: Underline lines blues

2009-10-05 Thread Wolfgang Engelmann
Am Sunday 04 October 2009 21:56:36 schrieb Murat Yildizoglu:

and if you want to get rid of the blue underlines, 

-edittextstyleuserdefinedlanguagereset
Wolfgang

 Hi Adrian,
 This normally signals a difference in langauage between the main
 language of the doc and the one of the pasted elements.

 Murat

 2009/10/4 Adrian Diaz aedmci...@gmail.com:
  Hi Friends
 
  I am writing my thesis with Lyx 1.6.3 ( a soosn as posssible i will set
  up on my computer Lyx 1.6.4).
 
  Howerver, there is a problem which i do not undertansd. I am doing a copy
  and paste on
  some paragraph,from some file to another one, and when i select the paste
  option, the paragraph
   is copied ok, but it has an underline blue line. Could you tell me how
  can i  avoid it?.
 
                                                Thanks in advice Adrián



-- 
-
Wolfgang Engelmann
Schlossgartenstrasse 22
D-72070 Tübingen
Tel 07071 68325


Re: Why Lyx seems to arbitrarily align left margins in the officicial tutorial?

2009-10-05 Thread Helge Hafting

fabio de francesco wrote:
My interest for Lyx's philosophy has been caught up by a recent article on the 
power of WYSIWYM. So I am a perfect newbie asking for something that could be 
perfectly obvious to you all.


I started by opening the tutorial and making  pdf of it. I have immediately 
noticed that Lyx seems to arbitrarily align each line of entire pages of the 
document. There are pages where the text starts almost at a quarter of a page 
from the left.


Margins for odd and even pages are different. But print on a two-sided 
printer, and you'll see that the odd and even margins line up perfectly.


Two-sided printing saves paper, and look more professional too. It is 
possible to do this on a single-side printer too, by printing all the

odd pages first, and then print the even pages on the backsides.

If you simply find the margins too big for your taste:
Document-Settings-Page Margins
Note that more than 66 letters or so per line is not good
for readability, so you may want a bigger font to go
with wider margins:
Document-Settings-Fonts

On the other hand, if you simply want to spend
paper on a single-sided printout:
Document-Settings-Page Layout,
and uncheck Two-sided document

Helge Hafting


Images always on new page; never centered

2009-10-05 Thread Berthold Metz (PH-Freiburg)

Hi all,

I am using koma-Book and encounter the following problem:

When I insert graphics into the Appendix, they are always shown on the 
next page. When I set the image into a float-object and use the setting 
here, always (sorry ... german version), then _sometimes_ it works 
without page-break. But I don't want to place it as a float-object, 
because in the Appendix it has to be right in the place I choose.


The next problem: The inserted graphics are never centered, even if I 
use the paragraph-setting align: center. It makes no difference if I 
insert them as floating object or just as image.


Thanks in advance for any idea,
Berthold


Command-H does not hide window in Mac Lyx 1.6.0

2009-10-05 Thread zp
For most Mac applications, the command-H key shortcut hides the window.
This shortcut does not work for the Lyx window.  

I'm sure that many users are not aware of this key combination but it is an
essential part of my work flow (and I'm sure others' too!).

I have checked if the key combination is mapped to internal commands and it does
not appear to be.  

Is this a bug or an intended 'feature'?



Re: Re: problem with graphics in beamerlyxexample1.lyx

2009-10-05 Thread BigG


Paul A. Rubin wrote:
 div class=moz-text-flowed style=font-family: -moz-fixedBigG wrote:
 I have LyX 1.6.4 installed in cygwin on W2K, and LyXWindows 1.6.4 on
 W2K on another box. When I use beamerlyxexample1.lyx, warnings about
 missing graphics are generated. The following are
 examples:

 Package pgf Warning: File beamer-icsi-logo not found when defining
 image ics
 i-logo.
 (pgf)Tried all extensions in .pdf:.jpg:.jpeg:.png:
 on input l
 ine 49.


 Package pgf Warning: Missing height for image icsi-logo in draft mode.
 (pgf)Using 1cm instead on input line 49.


 Package pgf Warning: File beamer-knight1-mask not found when
 defining mask k
 night1-mask.
 (pgf)Tried all extensions in .pdf:.jpg:.jpeg:.png:
 on input l
 ine 169.


 Package pgf Warning: File beamer-knight1 not found when defining
 image knigh
 t1.
 (pgf)Tried all extensions in .pdf:.jpg:.jpeg:.png:
 on input l
 ine 169.

 The PDF generated is fine, but missing the four knight images, and the
 ICSI logo. This is what I
 would expect. However, the relevant image files are actually there in
 the same directory as
 beamerlyxexample1.lyx. For example,

 $ ls -w 80 /usr/local/share/lyx/examples/beam*
 /usr/local/share/lyx/examples/beamer-g4-mask.jpg*
 /usr/local/share/lyx/examples/beamer-g4.jpg*
 /usr/local/share/lyx/examples/beamer-icsi-logo.pdf*
 /usr/local/share/lyx/examples/beamer-knight1-mask.png*
 /usr/local/share/lyx/examples/beamer-knight1.png*
 /usr/local/share/lyx/examples/beamer-knight2-mask.png*
 /usr/local/share/lyx/examples/beamer-knight2.png*
 /usr/local/share/lyx/examples/beamer-knight3-mask.png*
 /usr/local/share/lyx/examples/beamer-knight3.png*
 /usr/local/share/lyx/examples/beamer-knight4-mask.png*
 /usr/local/share/lyx/examples/beamer-knight4.png*
 /usr/local/share/lyx/examples/beamerlyxexample1.lyx*

 Why can't pdflatex find them?

 Bill Gordon

 
 Works fine on Win XP here.  Is this occurring when you try View-PDF
 (pdflatex)?  If so, here are a couple of things to try:
 
 1.  Try exporting a TeX file and running pdflatex against it manually.
 
 2.  Do View-PDF (pdflatex) and, while the PDF version is open, use a
 DOS window to navigate to your temp directory.  (Tools - Preferences -
 Paths - Temporary directory will point you to it if the location is not
 obvious.)  You should see beamerlyxexample1.tex sitting there.  Open it
 with any text viewer.  About the third line should be a path command,
 something like
 
 \def\in...@path{{\stringC:/Program
 Files/LyX16/Resources/examples/\string/}}
 
 (give or take).  Check to make sure the path is correct.
 
 /Paul
 
 
 /div
 
Thanks for responding Paul.

I now have three machines with the following setups:

Machine 1:  W2K LyX 1.6.4 on cygwin(tetex)
LyXWindows 1.6.4 MiKTeX 2.7
Machine 2:  W2K LyXWindows 1.6.4 MiKTeX 2.7
Machine 3:  XP  LyXWindows 1.6.4 MiKTeX 2.7

so that's four installations of LyX. They all give basically the same result 
for beamerlyxexample1.lyx, which is as follows:

File-Export-LaTeX (pdflatex) produces a TeX file which does not have the 
\def\input line. Running this through pdflatex produces the warnings above, and 
a PDF with no graphics. However, if the graphics files are put into the same 
directory as the TeX file, there are no warnings about missing graphics files, 
and the PDF file does have the appropriate graphics. This seems consistent with 
the lack of \def\input line.

View-PDF (pdflatex) produces a TeX file which does have the \def\input line. 
In each of the four cases, the path appears to be correct (in the cygwin case, 
the two occurences of \string are not present, though). Running these through 
pdflatex produces the warnings above, and a PDF with no graphics in each of the 
four cases. Again, if the the graphics files are put into the same directory as 
the TeX file, there are no warnings about missing graphics files, and the PDF 
file does have the appropriate graphics. This would imply that the \def\input 
line is ignored for some reason.

So

a) your XP installation works, mine doesn't
b) my \def\input lines appear to be OK, but are ignored or incorrectly 
interpreted by pdflatex
c) my Export-ed files don't have the \def\input line (don't know if this is as 
expected or not).

Any thoughts, anyone?

Bill Gordon




Hebrew support in LyX - Culmus and MikTeX 2.8

2009-10-05 Thread Barak Sh
Hello all,
I've been working with LyX and MikTeX for a few years, and Hebrew worked
without problem with Culmus.
However, after upgrading to MikTeX 2.8, Hebrew support failed. When
compiling a LyX document with Hebrew characters, I get:

Font LHE/cmr/m/n/10=jerus10 at 10.0pt not loadable: Metric (TFM) file not
found
\begin{document}

 I wasn't able to read the size data for this font,

so I will ignore the font specification.

[Wizards can fix TFM files using TFtoPL/PLtoTF.]

You might try inserting a different font spec;

e.g., type `I\fontsame font id=substitute font name'.


I tried copying the files manually to the MikTeX folder and running
'initexmf -u' and 'initexmf --mkmaps', but now I get this message:

Font HE8/cmr/m/n/10=david at 10.0pt not loadable: Metric (TFM) file not
found

I also tried uninstalling LyX  MikTeX entirely and re-installing them
again, and then followed exactly the instructions here:

http://wiki.lyx.org/Windows/Hebrew

But this did not work either. Perhaps the Culmus fonts no longer work with
the new version of MikTeX (2.8)?
I would appreciate help with getting Hebrew support to work again. I think
perhaps downgrading to MikTeX 2.7 will solve the problem, but I assume only
a few changes are required for Culmus to work with 2.8.

Thanks in advance,
Barak


Re: Re: Re: problem with graphics in beamerlyxexample1.lyx

2009-10-05 Thread BigG
 BigG writes:
  
  I have LyX 1.6.4 installed in cygwin on W2K, and LyXWindows 1.6.4 on W2K on
  another box. When I 
  use beamerlyxexample1.lyx, warnings about missing graphics are generated.
 [...]
  The PDF generated is fine, but missing the four knight images, and the ICSI
  logo. This is what I
  would expect. However, the relevant image files are actually there in the
  same directory as
  beamerlyxexample1.lyx. For example,
  
  $ ls -w 80 /usr/local/share/lyx/examples/beam*
  /usr/local/share/lyx/examples/beamer-g4-mask.jpg*
  /usr/local/share/lyx/examples/beamer-g4.jpg*
  /usr/local/share/lyx/examples/beamer-icsi-logo.pdf*
  /usr/local/share/lyx/examples/beamer-knight1-mask.png*
  /usr/local/share/lyx/examples/beamer-knight1.png*
  /usr/local/share/lyx/examples/beamer-knight2-mask.png*
  /usr/local/share/lyx/examples/beamer-knight2.png*
  /usr/local/share/lyx/examples/beamer-knight3-mask.png*
  /usr/local/share/lyx/examples/beamer-knight3.png*
  /usr/local/share/lyx/examples/beamer-knight4-mask.png*
  /usr/local/share/lyx/examples/beamer-knight4.png*
  /usr/local/share/lyx/examples/beamerlyxexample1.lyx*
  
  Why can't pdflatex find them?
 
 This is a known pgf bug:
 http://sourceforge.net/tracker/index.php?func=detailaid=1336165group_id=92412atid=600660
 
 A patch has been proposed, but it has not still been applied:
 http://sourceforge.net/tracker/index.php?func=detailaid=1447974group_id=92412atid=600662
 
 -- 
 Enrico

Thanks for this Enrico - and thanks for the workaround for my other
problem with tetex

--
Bill Gordon



Re: Command-H does not hide window in Mac Lyx 1.6.0

2009-10-05 Thread BH
On Mon, Oct 5, 2009 at 5:38 AM, zp l...@greenant.net wrote:
 For most Mac applications, the command-H key shortcut hides the window.
 This shortcut does not work for the Lyx window.

 I'm sure that many users are not aware of this key combination but it is an
 essential part of my work flow (and I'm sure others' too!).

 I have checked if the key combination is mapped to internal commands and it 
 does
 not appear to be.

 Is this a bug or an intended 'feature'?

It works as expected for me. (Does the option show up under the LyX menu?)

BH


Document title in the footer.

2009-10-05 Thread bart

Hello All
I want an alternative for MS Word for the creation of the documents 
within our company. The only restriction is that it should be able to do 
same as Word but better. So I have been trying in LyX to get the same 
page layout as in Word. It seems that I have everything except that i 
can't get the title to appear in the footer. I have put this in the 
preamble:


\footskip2cm

\fancyhf{}

\lfoot{\begin{minipage}{4cm} \scriptsize \...@title \end{minipage}}

\rfoot{\begin{minipage}{5cm}\small \copyright This piece of text i want in
the right footer.\end{minipage}}

This doesn't work the way I would like. I don't get an error and I don't 
get a title in the footer. If I replace \...@title by the actual text this 
text does appear in the footer. the Rightfooter is fine though. Could 
someone tell me if I am doing something wrong and if so what. Thanks in 
advance.


regards
Bart


page n of m in header

2009-10-05 Thread bart

Hi
I would like to have in the header the pagenumber and the total number 
of pages in the header in the format page n of m. In the fancyheader 
manual I have found that I have to use the package lastpage so I've 
put in the preamble:


\usepackage{lastpage}

\fancyhf{}

\fancyhead[LE,RO]{\thepage\ of \pageref{lastpage}}


The result I get is: 2 of ?? (on page 2 for instance).

I don't get any error messages but it seems that it is unknown how many 
pages the document has. How can I solve this?


Regards
Bart



Re: page n of m in header

2009-10-05 Thread Olivier Ripoll

bart wrote:

Hi
I would like to have in the header the pagenumber and the total number 
of pages in the header in the format page n of m. In the fancyheader 
manual I have found that I have to use the package lastpage so I've 
put in the preamble:


\usepackage{lastpage}

\fancyhf{}

\fancyhead[LE,RO]{\thepage\ of \pageref{lastpage}}


The result I get is: 2 of ?? (on page 2 for instance).

I don't get any error messages but it seems that it is unknown how many 
pages the document has. How can I solve this?


Hi,

I'm not an expert, but looking at the fancy header manual (e.g. section 
16 on page 15, you should use

\pageref{LastPage}
instead of
\pageref{lastpage}

For me, this small change is sufficient to have a correct last page number.

Also, you do have warnings that could have pointed you to this:
In Documents-LaTeX Log you can access the log, in which you can see 
several warnings (in blue) from latex saying:
LaTeX Warning: Reference `lastpage' on page 1 undefined on input line 
37. (the page number and line number can be different for you)


Best regards,

Olivier



Regards
Bart






LyX Layout file for custom class using XeTeX

2009-10-05 Thread Daniel Owens
I am working on a dissertation class for my school, and I need to use 
XeTeX. The class is working well using LaTeX, but when I create a layout 
file for LyX to use the class, it ignores the commands for using 
TrueType fonts, so Greek is not typeset. I don't have this problem in 
LyX if I just use a *.sty file instead of a class. Then LyX handles 
XeTeX very well. Does anyone have any theories about what is going on? 
The only thing I can think of is that my layout file is doing something 
to interfere with XeTeX. It compiles okay just without the right fonts.


Daniel


Re: Command-H does not hide window in Mac Lyx 1.6.0

2009-10-05 Thread zp

 It works as expected for me. (Does the option show up under the LyX menu?)
 
 BH
 
 


Yes, funnily enough it does show under the lyx menu, but the menu item does not
trigger hiding of the window either.
In fact I think I remember that it used to work... quite strange!

Perhaps this is not a lyx bug and something funny happening in my leopard 
install
(10.5.2)

Frank






esint conflicts

2009-10-05 Thread David Wang
Hi there,

I'm writing for an American Meteorological Society journal. They have their
own style file etc.

http://www.ctan.org/tex-archive/macros/latex/contrib/ametsoc/

Since I understand it's nontrivial to create a layout corresponding to that,
what I do is to import a blank template tex file they provide into lyx,
write everything in lyx, and export the latex source which only needs slight
modification to conform to their format.

However, when I have integrals in my text, the lyx file fails to compile,
with error messages like,

command \iint already defined.

Apparently there is a conflict between the esint package that lyx uses and
something in the ametsoc package. I wonder how I can solve this conflict.
I'm new to lyx and have limited knowledge of latex.

Thank you,
David


-- 
turn and live.


Converting from Preamble to Layout

2009-10-05 Thread Daniel Joshua Stark
Dear all,I am working on a thesis. Currently, I have to put the list of committee members in the LaTeX preamble with the following command: \committee{Thomas C. Killian, Chair \\Associate Professor of Physics and Astronomy\and Robert M. Raphael, Thesis Advisor \\Associate Professor of Bioengineering\and Jason H. Hafner \\Associate Professor of Physics and Astronomy \and Paul M. Stevenson \\Professor of Physics and Astronomy}I would like to modify the layout file to have an "Committee member" and "Committee department" environment so that I can display the committee list visually within the document, much like the Title or Author. I have tried adding something along the lines of:Style "Committee Member"	Margin			Static	LatexType		Command	Category		FrontMatter	InTitle			1	OptionalArgs		1	LatexName		committee	LabelSep		xxx	ParSkip			0.4	TopSep			1.3	BottomSep		0.7	ParSep			0.7	Align			Center	LabelType		No_Label	Font	 Size			Large	EndFontEndBut it will only put the last member down (the Paul Stevens). I don't know how to set up the \and and the \\ to put multiple members and their departments down.Does anyone have any clue on how to do this?Attached are the layout and the cls file.

rice_thesis.cls
Description: Binary data


rice_thesis.layout
Description: Binary data
Thanks for all the help,
Daniel StarkPhD CandidatePhysics and Astronomy, MS-61BRC 702Rice University6500 Main StreetHouston TX77030USAPh: +1-713-348-3126Fx: +1-713-348-2603In physics, you don't have to go around making trouble for yourself - nature does it for you.-Frank WilczekI think physicists are the Peter Pans of the human race. They never grow up and they keep their curiosity. -Isidor Isaac Rabi



Re: LyX Layout file for custom class using XeTeX

2009-10-05 Thread rgheck

On 10/05/2009 01:36 PM, Daniel Owens wrote:
I am working on a dissertation class for my school, and I need to use 
XeTeX. The class is working well using LaTeX, but when I create a 
layout file for LyX to use the class, it ignores the commands for 
using TrueType fonts, so Greek is not typeset. I don't have this 
problem in LyX if I just use a *.sty file instead of a class. Then LyX 
handles XeTeX very well. Does anyone have any theories about what is 
going on? The only thing I can think of is that my layout file is 
doing something to interfere with XeTeX. It compiles okay just without 
the right fonts.


I have no idea what is happening, but here's how to find out. Construct 
some simple test file that exhibits the behavior you mention, i.e., it 
works with the sty and not with the cls. Now export both to LaTeX. Look 
carefully at the preamble and in particular at the order in which things 
are being loaded. Somewhere in there is probably the difference.  If 
not, then check the order in which things are being loaded in your class 
and style files. Maybe it's there.


rh



Re: Converting from Preamble to Layout

2009-10-05 Thread rgheck

On 10/05/2009 03:15 PM, Daniel Joshua Stark wrote:

Dear all,

I am working on a thesis.  Currently, I have to put the list of 
committee members in the LaTeX preamble with the following command:


\committee{Thomas C. Killian, Chair \\Associate smb://Associate 
Professor of Physics and Astronomy
\and Robert M. Raphael, Thesis Advisor \\Associate smb://Associate 
Professor of Bioengineering
\and Jason H. Hafner \\Associate smb://Associate Professor of 
Physics and Astronomy
\and Paul M. Stevenson \\Professor smb://Professor of Physics and 
Astronomy}


I would like to modify the layout file to have an Committee member 
and Committee department environment so that I can display the 
committee list visually within the document, much like the Title or 
Author.


I have tried adding something along the lines of:
Style Committee Member
Margin Static
LatexType Command
Category FrontMatter
InTitle 1
OptionalArgs 1
LatexName committee
LabelSep xxx
ParSkip 0.4
TopSep 1.3
BottomSep 0.7
ParSep 0.7
Align Center
LabelType No_Label
Font
 Size Large
EndFont
End

But it will only put the last member down (the Paul Stevens).  I don't 
know how to set up the \and and the \\ to put multiple members and 
their departments down.


Does anyone have any clue on how to do this?

One thing to say first: I think LyX is limited in the same way as 
regards authors. You have to enter the \and and so forth manually in 
the authors field. So one possibility is to accept this, and enter the 
committee members, etc, into the Committee layout you already have, as:


Thomas C. Killian, Chair [Newline]Associate smb://Associate Professor 
of Physics and Astronomy [ERT]\and[/ERT]Robert M. Raphael, Thesis 
Advisor[Newline]Associate smb://Associate Professor of 
Bioengineering[ERT]\and[/ERT]etc. etc.


You save a bit of ERT there. (As for Newline, you probably know that you 
get this with Ctrl-Enter.)


If you don't want to do that, then you have to create a new set of 
macros that will collect the names of your committee members and their 
departments, and then output them. I.e., we basically want an array of 
committee members and their departments, and then we loop over the 
arrays to output them as argument to \committee (which itself now needs 
to be redefined somehow). Unfortunately, my LaTeX knowledge is giving 
out at this point, and I'm not sure how to do this kind of thing in LaTeX.


Richard



Re: Sudden crashes in LyX 16.4

2009-10-05 Thread Pavel Sanda
Stefano Franchi wrote:
 On Sunday 04 October 2009 05:57:16 am Pavel Sanda wrote:
  Stefano Franchi wrote:
   On Sunday 27 September 2009 04:49:38 am Jürgen Spitzmüller wrote:
   Any suggestion on how to narrow down the problem further is welcome. I
   checked the bug tracker and could not find a related ticket, with the
   exception of the old (and fixed)  #3970 which may or may not be related.
  
  can you try to apply the following patch and post the output from console
  when lyx collapses?
  
  pavel
  
 
 
 Hi Pavel,
 
   the console output after the crash is not very informative:
 
 lyx: SIGSEGV signal caught
 Sorry, you have found a bug in LyX. Please read the bug-reporting 
 instructions 
 in Help-Introduction and send us a bug report, if necessary. Thanks !
 Bye.
 Aborted
 
 
 I am appending below the backtraces from gdb, both with an unpatched and with 
 a patched versions of lyx 1.6.4 stable:
 
 Backtrace on unpatched lyx 1.6.4 (stable)
 
 latex failed to compile 0lyxpreview.tex
 
 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread 0x7f06830d1750 (LWP 32678)]
 0x0064d757 in lyx::RenderPreview::imageReady ()
 (gdb)
 (gdb) bt
 #0  0x0064d757 in lyx::RenderPreview::imageReady ()

can you put breakpoint on the begining of imageReady function
and check on which line it really crashes?

in gdb something like:
set break RenderPreview.cpp:line_number
run
cont

//cont as many times until crash happens - then you which is the last
one, so again run, cont times-1 and use 'n' for step by step walk...

pavel


Converting paragraph breaks to newlines in a .layout file

2009-10-05 Thread Jack M. Lyon

Esteemed LyXers:

For any particular style in a custom LyX layout file, is there a way to 
have LyX convert paragraph breaks to newlines (\\) when converting the 
text to LaTeX?


For example, in the following style--

Style Poem
Category  Poem
MarginStatic
LatexType Environment
LatexName verse1
LeftMargin
TopSep1
BottomSep 1
ParSkip   0.4
Align Left
AlignPossible Block, Left, Right, Center
LabelType No_Label
End

--I need a command that will convert paragraph breaks to newlines in the 
LaTeX text inside the paragraph environment verse1. So the text in LyX 
will look like this (styled as Poem):


My name is Ozymandias, king of kings.
Look on my works, ye Mighty, and despair!

And the text in LaTeX will look like this--

\begin{verse1}
My name is Ozymandias, king of kings.\\
Look on my works, ye Mighty, and despair!
\end{verse1}

--RATHER than this:

\begin{verse1}
My name is Ozymandias, king of kings.

Look on my works, ye Mighty, and despair!
\end{verse1}

I've explored Newline and PassThru, but they don't seem to do what I 
need. Any suggestions?


Or, failing that, is there a way to do the conversion (just for that 
environment) in LaTeX itself, rather than having LyX do it?


Thanks for any help you can provide.

Best wishes,
Jack Lyon
The Editorium
http://www.editorium.com
Waking Lion Press
http://www.wakinglionpress.com



Re: Converting paragraph breaks to newlines in a .layout file

2009-10-05 Thread rgheck

On 10/05/2009 04:03 PM, Jack M. Lyon wrote:

Esteemed LyXers:

For any particular style in a custom LyX layout file, is there a way 
to have LyX convert paragraph breaks to newlines (\\) when converting 
the text to LaTeX?


For example, in the following style--

Style Poem
Category  Poem
Margin  Static
LatexType Environment
LatexName verse1
LeftMargin
TopSep   1
BottomSep  1
ParSkip   0.4
Align Left
AlignPossible Block, Left, Right, Center
LabelType No_Label
End

--I need a command that will convert paragraph breaks to newlines in 
the LaTeX text inside the paragraph environment verse1. So the text in 
LyX will look like this (styled as Poem):


My name is Ozymandias, king of kings.
Look on my works, ye Mighty, and despair!

And the text in LaTeX will look like this--

\begin{verse1}
My name is Ozymandias, king of kings.\\
Look on my works, ye Mighty, and despair!
\end{verse1}

--RATHER than this:

\begin{verse1}
My name is Ozymandias, king of kings.

Look on my works, ye Mighty, and despair!
\end{verse1}

I've explored Newline and PassThru, but they don't seem to do what I 
need. Any suggestions?


Or, failing that, is there a way to do the conversion (just for that 
environment) in LaTeX itself, rather than having LyX do it?


I don't think there's any way to do this, as you describe what you want. 
Probably there is some way to redefine charcodes, etc, inside the verse1 
environment, so that \n\n becomes just a newline, but that is way beyond me.


That said, I'm guessing that what you want, perhaps, is just not to have 
such a large line separation in the output. If so, then perhaps 
redefining \parsep in the definition of the verse1 environment---or 
defining a new environment, if that's what's necessary---would give you 
the output you want.


rh



hyperlinks in LyX

2009-10-05 Thread 0
I've got "Section 1" and "Section 2" in a LyX document. In Section 1, I want to 
have a click-able link to Section 2. How do I make it?


  


Re: Underline lines blues

2009-10-05 Thread Wolfgang Engelmann
Am Sunday 04 October 2009 21:56:36 schrieb Murat Yildizoglu:

and if you want to get rid of the blue underlines, 

->edit>textstyle>userdefined>language>reset
Wolfgang

> Hi Adrian,
> This normally signals a difference in langauage between the main
> language of the doc and the one of the pasted elements.
>
> Murat
>
> 2009/10/4 Adrian Diaz :
> > Hi Friends
> >
> > I am writing my thesis with Lyx 1.6.3 ( a soosn as posssible i will set
> > up on my computer Lyx 1.6.4).
> >
> > Howerver, there is a problem which i do not undertansd. I am doing a copy
> > and paste on
> > some paragraph,from some file to another one, and when i select the paste
> > option, the paragraph
> >  is copied ok, but it has an underline blue line. Could you tell me how
> > can i  avoid it?.
> >
> >                                               Thanks in advice Adrián



-- 
-
Wolfgang Engelmann
Schlossgartenstrasse 22
D-72070 Tübingen
Tel 07071 68325


Re: Why Lyx seems to arbitrarily align left margins in the officicial tutorial?

2009-10-05 Thread Helge Hafting

fabio de francesco wrote:
My interest for Lyx's philosophy has been caught up by a recent article on the 
power of WYSIWYM. So I am a perfect newbie asking for something that could be 
perfectly obvious to you all.


I started by opening the tutorial and making  pdf of it. I have immediately 
noticed that Lyx seems to arbitrarily align each line of entire pages of the 
document. There are pages where the text starts almost at a quarter of a page 
from the left.


Margins for odd and even pages are different. But print on a two-sided 
printer, and you'll see that the odd and even margins line up perfectly.


Two-sided printing saves paper, and look more professional too. It is 
possible to do this on a single-side printer too, by printing all the

odd pages first, and then print the even pages on the backsides.

If you simply find the margins too big for your taste:
Document->Settings->Page Margins
Note that more than 66 letters or so per line is not good
for readability, so you may want a bigger font to go
with wider margins:
Document->Settings->Fonts

On the other hand, if you simply want to spend
paper on a single-sided printout:
Document->Settings->Page Layout,
and uncheck "Two-sided document"

Helge Hafting


Images always on new page; never centered

2009-10-05 Thread Berthold Metz (PH-Freiburg)

Hi all,

I am using koma-Book and encounter the following problem:

When I insert graphics into the Appendix, they are always shown on the 
next page. When I set the image into a float-object and use the setting 
"here, always" (sorry ... german version), then _sometimes_ it works 
without page-break. But I don't want to place it as a float-object, 
because in the Appendix it has to be right in the place I choose.


The next problem: The inserted graphics are never centered, even if I 
use the paragraph-setting "align: center". It makes no difference if I 
insert them as floating object or just as image.


Thanks in advance for any idea,
Berthold


Command-H does not hide window in Mac Lyx 1.6.0

2009-10-05 Thread zp
For most Mac applications, the command-H key shortcut hides the window.
This shortcut does not work for the Lyx window.  

I'm sure that many users are not aware of this key combination but it is an
essential part of my work flow (and I'm sure others' too!).

I have checked if the key combination is mapped to internal commands and it does
not appear to be.  

Is this a bug or an intended 'feature'?



Re: Re: problem with graphics in beamerlyxexample1.lyx

2009-10-05 Thread BigG


Paul A. Rubin wrote:
> BigG wrote:
>> I have LyX 1.6.4 installed in cygwin on W2K, and LyXWindows 1.6.4 on
>> W2K on another box. When I use beamerlyxexample1.lyx, warnings about
>> missing graphics are generated. The following are
>> examples:
>>
>> Package pgf Warning: File "beamer-icsi-logo" not found when defining
>> image "ics
>> i-logo".
>> (pgf)Tried all extensions in ".pdf:.jpg:.jpeg:.png:"
>> on input l
>> ine 49.
>>
>>
>> Package pgf Warning: Missing height for image "icsi-logo" in draft mode.
>> (pgf)Using 1cm instead on input line 49.
>>
>>
>> Package pgf Warning: File "beamer-knight1-mask" not found when
>> defining mask "k
>> night1-mask".
>> (pgf)Tried all extensions in ".pdf:.jpg:.jpeg:.png:"
>> on input l
>> ine 169.
>>
>>
>> Package pgf Warning: File "beamer-knight1" not found when defining
>> image "knigh
>> t1".
>> (pgf)Tried all extensions in ".pdf:.jpg:.jpeg:.png:"
>> on input l
>> ine 169.
>>
>> The PDF generated is fine, but missing the four knight images, and the
>> ICSI logo. This is what I
>> would expect. However, the relevant image files are actually there in
>> the same directory as
>> beamerlyxexample1.lyx. For example,
>>
>> $ ls -w 80 /usr/local/share/lyx/examples/beam*
>> /usr/local/share/lyx/examples/beamer-g4-mask.jpg*
>> /usr/local/share/lyx/examples/beamer-g4.jpg*
>> /usr/local/share/lyx/examples/beamer-icsi-logo.pdf*
>> /usr/local/share/lyx/examples/beamer-knight1-mask.png*
>> /usr/local/share/lyx/examples/beamer-knight1.png*
>> /usr/local/share/lyx/examples/beamer-knight2-mask.png*
>> /usr/local/share/lyx/examples/beamer-knight2.png*
>> /usr/local/share/lyx/examples/beamer-knight3-mask.png*
>> /usr/local/share/lyx/examples/beamer-knight3.png*
>> /usr/local/share/lyx/examples/beamer-knight4-mask.png*
>> /usr/local/share/lyx/examples/beamer-knight4.png*
>> /usr/local/share/lyx/examples/beamerlyxexample1.lyx*
>>
>> Why can't pdflatex find them?
>>
>> Bill Gordon
>>
> 
> Works fine on Win XP here.  Is this occurring when you try View->PDF
> (pdflatex)?  If so, here are a couple of things to try:
> 
> 1.  Try exporting a TeX file and running pdflatex against it manually.
> 
> 2.  Do View->PDF (pdflatex) and, while the PDF version is open, use a
> DOS window to navigate to your temp directory.  (Tools -> Preferences ->
> Paths -> Temporary directory will point you to it if the location is not
> obvious.)  You should see beamerlyxexample1.tex sitting there.  Open it
> with any text viewer.  About the third line should be a path command,
> something like
> 
> \def\in...@path{{\string"C:/Program
> Files/LyX16/Resources/examples/\string"/}}
> 
> (give or take).  Check to make sure the path is correct.
> 
> /Paul
> 
> 
> 
> 
Thanks for responding Paul.

I now have three machines with the following setups:

Machine 1:  W2K LyX 1.6.4 on cygwin(tetex)
LyXWindows 1.6.4 MiKTeX 2.7
Machine 2:  W2K LyXWindows 1.6.4 MiKTeX 2.7
Machine 3:  XP  LyXWindows 1.6.4 MiKTeX 2.7

so that's four installations of LyX. They all give basically the same result 
for beamerlyxexample1.lyx, which is as follows:

File->Export->LaTeX (pdflatex) produces a TeX file which does not have the 
\def\input line. Running this through pdflatex produces the warnings above, and 
a PDF with no graphics. However, if the graphics files are put into the same 
directory as the TeX file, there are no warnings about missing graphics files, 
and the PDF file does have the appropriate graphics. This seems consistent with 
the lack of \def\input line.

View->PDF (pdflatex) produces a TeX file which does have the \def\input line. 
In each of the four cases, the path appears to be correct (in the cygwin case, 
the two occurences of \string are not present, though). Running these through 
pdflatex produces the warnings above, and a PDF with no graphics in each of the 
four cases. Again, if the the graphics files are put into the same directory as 
the TeX file, there are no warnings about missing graphics files, and the PDF 
file does have the appropriate graphics. This would imply that the \def\input 
line is ignored for some reason.

So

a) your XP installation works, mine doesn't
b) my \def\input lines appear to be OK, but are ignored or incorrectly 
interpreted by pdflatex
c) my Export-ed files don't have the \def\input line (don't know if this is as 
expected or not).

Any thoughts, anyone?

Bill Gordon




Hebrew support in LyX - Culmus and MikTeX 2.8

2009-10-05 Thread Barak Sh
Hello all,
I've been working with LyX and MikTeX for a few years, and Hebrew worked
without problem with Culmus.
However, after upgrading to MikTeX 2.8, Hebrew support failed. When
compiling a LyX document with Hebrew characters, I get:

Font LHE/cmr/m/n/10=jerus10 at 10.0pt not loadable: Metric (TFM) file not
found
\begin{document}

 I wasn't able to read the size data for this font,

so I will ignore the font specification.

[Wizards can fix TFM files using TFtoPL/PLtoTF.]

You might try inserting a different font spec;

e.g., type `I\font='.


I tried copying the files manually to the MikTeX folder and running
'initexmf -u' and 'initexmf --mkmaps', but now I get this message:

Font HE8/cmr/m/n/10=david at 10.0pt not loadable: Metric (TFM) file not
found

I also tried uninstalling LyX & MikTeX entirely and re-installing them
again, and then followed exactly the instructions here:

http://wiki.lyx.org/Windows/Hebrew

But this did not work either. Perhaps the Culmus fonts no longer work with
the new version of MikTeX (2.8)?
I would appreciate help with getting Hebrew support to work again. I think
perhaps downgrading to MikTeX 2.7 will solve the problem, but I assume only
a few changes are required for Culmus to work with 2.8.

Thanks in advance,
Barak


Re: Re: Re: problem with graphics in beamerlyxexample1.lyx

2009-10-05 Thread BigG
> BigG writes:
> > 
> > I have LyX 1.6.4 installed in cygwin on W2K, and LyXWindows 1.6.4 on W2K on
> > another box. When I 
> > use beamerlyxexample1.lyx, warnings about missing graphics are generated.
> [...]
> > The PDF generated is fine, but missing the four knight images, and the ICSI
> > logo. This is what I
> > would expect. However, the relevant image files are actually there in the
> > same directory as
> > beamerlyxexample1.lyx. For example,
> > 
> > $ ls -w 80 /usr/local/share/lyx/examples/beam*
> > /usr/local/share/lyx/examples/beamer-g4-mask.jpg*
> > /usr/local/share/lyx/examples/beamer-g4.jpg*
> > /usr/local/share/lyx/examples/beamer-icsi-logo.pdf*
> > /usr/local/share/lyx/examples/beamer-knight1-mask.png*
> > /usr/local/share/lyx/examples/beamer-knight1.png*
> > /usr/local/share/lyx/examples/beamer-knight2-mask.png*
> > /usr/local/share/lyx/examples/beamer-knight2.png*
> > /usr/local/share/lyx/examples/beamer-knight3-mask.png*
> > /usr/local/share/lyx/examples/beamer-knight3.png*
> > /usr/local/share/lyx/examples/beamer-knight4-mask.png*
> > /usr/local/share/lyx/examples/beamer-knight4.png*
> > /usr/local/share/lyx/examples/beamerlyxexample1.lyx*
> > 
> > Why can't pdflatex find them?
> 
> This is a known pgf bug:
> http://sourceforge.net/tracker/index.php?func=detail=1336165_id=92412=600660
> 
> A patch has been proposed, but it has not still been applied:
> http://sourceforge.net/tracker/index.php?func=detail=1447974_id=92412=600662
> 
> -- 
> Enrico

Thanks for this Enrico - and thanks for the workaround for my other
problem with tetex

--
Bill Gordon



Re: Command-H does not hide window in Mac Lyx 1.6.0

2009-10-05 Thread BH
On Mon, Oct 5, 2009 at 5:38 AM, zp  wrote:
> For most Mac applications, the command-H key shortcut hides the window.
> This shortcut does not work for the Lyx window.
>
> I'm sure that many users are not aware of this key combination but it is an
> essential part of my work flow (and I'm sure others' too!).
>
> I have checked if the key combination is mapped to internal commands and it 
> does
> not appear to be.
>
> Is this a bug or an intended 'feature'?

It works as expected for me. (Does the option show up under the LyX menu?)

BH


Document title in the footer.

2009-10-05 Thread bart

Hello All
I want an alternative for MS Word for the creation of the documents 
within our company. The only restriction is that it should be able to do 
same as Word but better. So I have been trying in LyX to get the same 
page layout as in Word. It seems that I have everything except that i 
can't get the title to appear in the footer. I have put this in the 
preamble:


\footskip2cm

\fancyhf{}

\lfoot{\begin{minipage}{4cm} \scriptsize \...@title \end{minipage}}

\rfoot{\begin{minipage}{5cm}\small \copyright This piece of text i want in
the right footer.\end{minipage}}

This doesn't work the way I would like. I don't get an error and I don't 
get a title in the footer. If I replace \...@title by the actual text this 
text does appear in the footer. the Rightfooter is fine though. Could 
someone tell me if I am doing something wrong and if so what. Thanks in 
advance.


regards
Bart


page n of m in header

2009-10-05 Thread bart

Hi
I would like to have in the header the pagenumber and the total number 
of pages in the header in the format" page n of m". In the fancyheader 
manual I have found that I have to use the package "lastpage" so I've 
put in the preamble:


\usepackage{lastpage}

\fancyhf{}

\fancyhead[LE,RO]{\thepage\ of \pageref{lastpage}}


The result I get is: 2 of ?? (on page 2 for instance).

I don't get any error messages but it seems that it is unknown how many 
pages the document has. How can I solve this?


Regards
Bart



Re: page n of m in header

2009-10-05 Thread Olivier Ripoll

bart wrote:

Hi
I would like to have in the header the pagenumber and the total number 
of pages in the header in the format" page n of m". In the fancyheader 
manual I have found that I have to use the package "lastpage" so I've 
put in the preamble:


\usepackage{lastpage}

\fancyhf{}

\fancyhead[LE,RO]{\thepage\ of \pageref{lastpage}}


The result I get is: 2 of ?? (on page 2 for instance).

I don't get any error messages but it seems that it is unknown how many 
pages the document has. How can I solve this?


Hi,

I'm not an expert, but looking at the fancy header manual (e.g. section 
16 on page 15, you should use

\pageref{LastPage}
instead of
\pageref{lastpage}

For me, this small change is sufficient to have a correct last page number.

Also, you do have warnings that could have pointed you to this:
In Documents->LaTeX Log you can access the log, in which you can see 
several warnings (in blue) from latex saying:
"LaTeX Warning: Reference `lastpage' on page 1 undefined on input line 
37." (the page number and line number can be different for you)


Best regards,

Olivier



Regards
Bart






LyX Layout file for custom class using XeTeX

2009-10-05 Thread Daniel Owens
I am working on a dissertation class for my school, and I need to use 
XeTeX. The class is working well using LaTeX, but when I create a layout 
file for LyX to use the class, it ignores the commands for using 
TrueType fonts, so Greek is not typeset. I don't have this problem in 
LyX if I just use a *.sty file instead of a class. Then LyX handles 
XeTeX very well. Does anyone have any theories about what is going on? 
The only thing I can think of is that my layout file is doing something 
to interfere with XeTeX. It compiles okay just without the right fonts.


Daniel


Re: Command-H does not hide window in Mac Lyx 1.6.0

2009-10-05 Thread zp

> It works as expected for me. (Does the option show up under the LyX menu?)
> 
> BH
> 
> 


Yes, funnily enough it does show under the lyx menu, but the menu item does not
trigger hiding of the window either.
In fact I think I remember that it used to work... quite strange!

Perhaps this is not a lyx bug and something funny happening in my leopard 
install
(10.5.2)

Frank






esint conflicts

2009-10-05 Thread David Wang
Hi there,

I'm writing for an American Meteorological Society journal. They have their
own style file etc.

http://www.ctan.org/tex-archive/macros/latex/contrib/ametsoc/

Since I understand it's nontrivial to create a layout corresponding to that,
what I do is to import a blank template tex file they provide into lyx,
write everything in lyx, and export the latex source which only needs slight
modification to conform to their format.

However, when I have integrals in my text, the lyx file fails to compile,
with error messages like,

command \iint already defined.

Apparently there is a conflict between the esint package that lyx uses and
something in the ametsoc package. I wonder how I can solve this conflict.
I'm new to lyx and have limited knowledge of latex.

Thank you,
David


-- 
turn and live.


Converting from Preamble to Layout

2009-10-05 Thread Daniel Joshua Stark
Dear all,I am working on a thesis.  Currently, I have to put the list of committee members in the LaTeX preamble with the following command:    \committee{Thomas C. Killian, Chair \\Associate Professor of Physics and Astronomy\and Robert M. Raphael, Thesis Advisor \\Associate Professor of Bioengineering\and Jason H. Hafner \\Associate Professor of Physics and Astronomy \and Paul M. Stevenson \\Professor of Physics and Astronomy}I would like to modify the layout file to have an "Committee member" and "Committee department" environment so that I can display the committee list visually within the document, much like the Title or Author.  I have tried adding something along the lines of: Style "Committee Member"	Margin			Static	LatexType		Command	Category		FrontMatter	InTitle			1	OptionalArgs		1	LatexName		committee	LabelSep		xxx	ParSkip			0.4	TopSep			1.3	BottomSep		0.7	ParSep			0.7	Align			Center	LabelType		No_Label	Font	  Size			Large	EndFontEndBut it will only put the last member down (the Paul Stevens).  I don't know how to set up the \and and the \\ to put multiple members and their departments down.Does anyone have any clue on how to do this?Attached are the layout and the cls file.

rice_thesis.cls
Description: Binary data


rice_thesis.layout
Description: Binary data
Thanks for all the help,
Daniel StarkPhD CandidatePhysics and Astronomy, MS-61BRC 702Rice University6500 Main StreetHouston TX 77030USAPh: +1-713-348-3126Fx:  +1-713-348-2603In physics, you don't have to go around making trouble for yourself - nature does it for you. - Frank WilczekI think physicists are the Peter Pans of the human race. They never grow up and they keep their curiosity. - Isidor Isaac Rabi



Re: LyX Layout file for custom class using XeTeX

2009-10-05 Thread rgheck

On 10/05/2009 01:36 PM, Daniel Owens wrote:
I am working on a dissertation class for my school, and I need to use 
XeTeX. The class is working well using LaTeX, but when I create a 
layout file for LyX to use the class, it ignores the commands for 
using TrueType fonts, so Greek is not typeset. I don't have this 
problem in LyX if I just use a *.sty file instead of a class. Then LyX 
handles XeTeX very well. Does anyone have any theories about what is 
going on? The only thing I can think of is that my layout file is 
doing something to interfere with XeTeX. It compiles okay just without 
the right fonts.


I have no idea what is happening, but here's how to find out. Construct 
some simple test file that exhibits the behavior you mention, i.e., it 
works with the sty and not with the cls. Now export both to LaTeX. Look 
carefully at the preamble and in particular at the order in which things 
are being loaded. Somewhere in there is probably the difference.  If 
not, then check the order in which things are being loaded in your class 
and style files. Maybe it's there.


rh



Re: Converting from Preamble to Layout

2009-10-05 Thread rgheck

On 10/05/2009 03:15 PM, Daniel Joshua Stark wrote:

Dear all,

I am working on a thesis.  Currently, I have to put the list of 
committee members in the LaTeX preamble with the following command:


\committee{Thomas C. Killian, Chair \\Associate  
Professor of Physics and Astronomy
\and Robert M. Raphael, Thesis Advisor \\Associate  
Professor of Bioengineering
\and Jason H. Hafner \\Associate  Professor of 
Physics and Astronomy
\and Paul M. Stevenson \\Professor  of Physics and 
Astronomy}


I would like to modify the layout file to have an "Committee member" 
and "Committee department" environment so that I can display the 
committee list visually within the document, much like the Title or 
Author.


I have tried adding something along the lines of:
Style "Committee Member"
Margin Static
LatexType Command
Category FrontMatter
InTitle 1
OptionalArgs 1
LatexName committee
LabelSep xxx
ParSkip 0.4
TopSep 1.3
BottomSep 0.7
ParSep 0.7
Align Center
LabelType No_Label
Font
 Size Large
EndFont
End

But it will only put the last member down (the Paul Stevens).  I don't 
know how to set up the \and and the \\ to put multiple members and 
their departments down.


Does anyone have any clue on how to do this?

One thing to say first: I think LyX is limited in the same way as 
regards authors. You have to enter the "\and" and so forth manually in 
the authors field. So one possibility is to accept this, and enter the 
committee members, etc, into the Committee layout you already have, as:


Thomas C. Killian, Chair [Newline]Associate  Professor 
of Physics and Astronomy [ERT]\and[/ERT]Robert M. Raphael, Thesis 
Advisor[Newline]Associate  Professor of 
Bioengineering[ERT]\and[/ERT]etc. etc.


You save a bit of ERT there. (As for Newline, you probably know that you 
get this with Ctrl-Enter.)


If you don't want to do that, then you have to create a new set of 
macros that will collect the names of your committee members and their 
departments, and then output them. I.e., we basically want an array of 
committee members and their departments, and then we loop over the 
arrays to output them as argument to \committee (which itself now needs 
to be redefined somehow). Unfortunately, my LaTeX knowledge is giving 
out at this point, and I'm not sure how to do this kind of thing in LaTeX.


Richard



Re: Sudden crashes in LyX 16.4

2009-10-05 Thread Pavel Sanda
Stefano Franchi wrote:
> On Sunday 04 October 2009 05:57:16 am Pavel Sanda wrote:
> > Stefano Franchi wrote:
> > > On Sunday 27 September 2009 04:49:38 am Jürgen Spitzmüller wrote:
> > > Any suggestion on how to narrow down the problem further is welcome. I
> > > checked the bug tracker and could not find a related ticket, with the
> > > exception of the old (and fixed)  #3970 which may or may not be related.
> > 
> > can you try to apply the following patch and post the output from console
> > when lyx collapses?
> > 
> > pavel
> > 
> 
> 
> Hi Pavel,
> 
>   the console output after the crash is not very informative:
> 
> lyx: SIGSEGV signal caught
> Sorry, you have found a bug in LyX. Please read the bug-reporting 
> instructions 
> in Help->Introduction and send us a bug report, if necessary. Thanks !
> Bye.
> Aborted
> 
> 
> I am appending below the backtraces from gdb, both with an unpatched and with 
> a patched versions of lyx 1.6.4 stable:
> 
> Backtrace on unpatched lyx 1.6.4 (stable)
> 
> latex failed to compile 0lyxpreview.tex
> 
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x7f06830d1750 (LWP 32678)]
> 0x0064d757 in lyx::RenderPreview::imageReady ()
> (gdb)
> (gdb) bt
> #0  0x0064d757 in lyx::RenderPreview::imageReady ()

can you put breakpoint on the begining of imageReady function
and check on which line it really crashes?

in gdb something like:
set break RenderPreview.cpp:line_number
run
cont

//cont as many times until crash happens - then you which is the last
one, so again run, cont times-1 and use 'n' for step by step walk...

pavel


Converting paragraph breaks to newlines in a .layout file

2009-10-05 Thread Jack M. Lyon

Esteemed LyXers:

For any particular style in a custom LyX layout file, is there a way to 
have LyX convert paragraph breaks to newlines (\\) when converting the 
text to LaTeX?


For example, in the following style--

Style Poem
Category  Poem
MarginStatic
LatexType Environment
LatexName verse1
LeftMargin
TopSep1
BottomSep 1
ParSkip   0.4
Align Left
AlignPossible Block, Left, Right, Center
LabelType No_Label
End

--I need a command that will convert paragraph breaks to newlines in the 
LaTeX text inside the paragraph environment verse1. So the text in LyX 
will look like this (styled as Poem):


My name is Ozymandias, king of kings.
Look on my works, ye Mighty, and despair!

And the text in LaTeX will look like this--

\begin{verse1}
My name is Ozymandias, king of kings.\\
Look on my works, ye Mighty, and despair!
\end{verse1}

--RATHER than this:

\begin{verse1}
My name is Ozymandias, king of kings.

Look on my works, ye Mighty, and despair!
\end{verse1}

I've explored Newline and PassThru, but they don't seem to do what I 
need. Any suggestions?


Or, failing that, is there a way to do the conversion (just for that 
environment) in LaTeX itself, rather than having LyX do it?


Thanks for any help you can provide.

Best wishes,
Jack Lyon
The Editorium
http://www.editorium.com
Waking Lion Press
http://www.wakinglionpress.com



Re: Converting paragraph breaks to newlines in a .layout file

2009-10-05 Thread rgheck

On 10/05/2009 04:03 PM, Jack M. Lyon wrote:

Esteemed LyXers:

For any particular style in a custom LyX layout file, is there a way 
to have LyX convert paragraph breaks to newlines (\\) when converting 
the text to LaTeX?


For example, in the following style--

Style Poem
Category  Poem
Margin  Static
LatexType Environment
LatexName verse1
LeftMargin
TopSep   1
BottomSep  1
ParSkip   0.4
Align Left
AlignPossible Block, Left, Right, Center
LabelType No_Label
End

--I need a command that will convert paragraph breaks to newlines in 
the LaTeX text inside the paragraph environment verse1. So the text in 
LyX will look like this (styled as Poem):


My name is Ozymandias, king of kings.
Look on my works, ye Mighty, and despair!

And the text in LaTeX will look like this--

\begin{verse1}
My name is Ozymandias, king of kings.\\
Look on my works, ye Mighty, and despair!
\end{verse1}

--RATHER than this:

\begin{verse1}
My name is Ozymandias, king of kings.

Look on my works, ye Mighty, and despair!
\end{verse1}

I've explored Newline and PassThru, but they don't seem to do what I 
need. Any suggestions?


Or, failing that, is there a way to do the conversion (just for that 
environment) in LaTeX itself, rather than having LyX do it?


I don't think there's any way to do this, as you describe what you want. 
Probably there is some way to redefine charcodes, etc, inside the verse1 
environment, so that \n\n becomes just a newline, but that is way beyond me.


That said, I'm guessing that what you want, perhaps, is just not to have 
such a large line separation in the output. If so, then perhaps 
redefining \parsep in the definition of the verse1 environment---or 
defining a new environment, if that's what's necessary---would give you 
the output you want.


rh