instant preview ignores some indices

2009-09-29 Thread Jannick Asmus

Hi,

the instant preview ignores some of the indices. E.g., $\Phi_{K}$ is 
correctly displayed whereas $\Phi_{\mathbb{Q}}$ ignores the index. The 
source is copied from the source code window.


Can this be amended?

I am using LyX 1.6.4. on WinVista.

Best wishes,
J. 





undo math code?

2009-09-29 Thread Jannick Asmus

Hi,

is it possible to undo the math code - which should be the inverse to 
ctrl+m - in LyX?


Thanks!

Best wishes,
J. 





Re: undo math code?

2009-09-29 Thread Jean-Marc Lasgouttes
Jannick Asmus jannick.n...@gmail.com writes:

 Hi,

 is it possible to undo the math code - which should be the inverse to
 ctrl+m - in LyX?

I do not understand. AFAICS, undo works well after Ctrl+m.

JMarc


Re: undo math code?

2009-09-29 Thread Guenter Milde
On 2009-09-29, Jean-Marc Lasgouttes wrote:
 Jannick Asmus jannick.n...@gmail.com writes:

 Hi,

 is it possible to undo the math code - which should be the inverse to
 ctrl+m - in LyX?

 I do not understand. AFAICS, undo works well after Ctrl+m.

I suppose the aim is to reverse the LaTeX-Code - math-inset conversion.

This can be done selecting the content of the math-inset (but not the
inset itself), copying (Ctrl-C) and pasting as text (Ctrl-V *outside* a
math inset). It might also work pasting with the middle mouse button.

Günter




AW: undo math code?

2009-09-29 Thread Jannick Asmus

Guenter Milde wrote:


On 2009-09-29, Jean-Marc Lasgouttes wrote:


is it possible to undo the math code - which should be the inverse 
to

ctrl+m - in LyX?



I do not understand. AFAICS, undo works well after Ctrl+m.


I suppose the aim is to reverse the LaTeX-Code - math-inset 
conversion.


This can be done selecting the content of the math-inset (but not 
the
inset itself), copying (Ctrl-C) and pasting as text (Ctrl-V 
*outside* a
math inset). It might also work pasting with the middle mouse 
button.


Thanks. That works perfectly.

J. 





Re: instant preview ignores some indices

2009-09-29 Thread Paul A. Rubin

Jannick Asmus wrote:

Hi,

the instant preview ignores some of the indices. E.g., $\Phi_{K}$ is 
correctly displayed whereas $\Phi_{\mathbb{Q}}$ ignores the index. The 
source is copied from the source code window.


Can this be amended?

I am using LyX 1.6.4. on WinVista.

Best wishes,
J.




In Document  Settings  Math Options, uncheck Use AMS Math package 
automatically and check Use AMS Math package.  Alternatively, you can 
add \usepackage{amssymb} to the preamble.  If LyX had noticed other 
things in the document that required AMS Math, it would have loaded the 
packages automatically, but apparently it did not.


/Paul



Re: Beamer portrait mode

2009-09-29 Thread Paul A. Rubin

E. Kaplan wrote:
Still no clue as to how to force Beamer to make slides in PORTRAIT mode, 
and whether it is possible to do it for individual slides in an 
otherwise landscape presentation...




I don't think it's possible.  Slide dimensions are hard-coded into 
Beamer.  In the Beamer user guide, section 24.2 (which covers the 
beamerseminar package), it explicitly says that portrait slides (which 
seminar apparently allows) are not supported.


/Paul



Re: Sudden crashes in LyX 16.4

2009-09-29 Thread Stefano Franchi
On Sunday 27 September 2009 04:49:38 am Jürgen Spitzmüller wrote:
 Stefano Franchi wrote:
  I recently updated to 1.6.4 and I experiencing crashes I did not have
   before.  These happen when working on a large document (a book) which is
   made up of several smaller files (the chapters). Lyx quits suddenly when
   scrolling the main . Can anyone remind me of which debug option I should
   choose to obtain any meaningful output in the terminal?
 
 What OS are you on?
 
 If you have gdb, try to get a backtrace as described here:
 http://wiki.lyx.org/FAQ/FurtherHelp#toc4
 
 Also, try to condense your document to a minimal text case that shows the
 behaviour.
 
 Jürgen
 

Well, I think I have encountered a bug related to the preview of input 
files. The backtrace (as far as I can tell) reports a problem with graphic 
functions, but there were no graphics on screen when the crash occurred. There 
was a preview of one of the chapters of the book, however (that is, the 
chapter was listed in the document as an input file, and the show preview 
checkbox in the settings panel was ticked).

With the file previewed, scrolling past the end of the previewed text or 
before its beginning caused a crash. If I turn preview off, no crash occurs.

I am still working on a minimal example. So far my attempts have failed: a 
master file with just one or two input files in preview mode seems to be 
working fine. So there may be some other condition that triggers the crash.

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. 

For the time being, I am switching my input statements to include.

gdb output just before the crash and following backtrace:

latex failed to compile 1lyxpreview.tex

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f9b6fa1f750 (LWP 26016)]
0x0064d757 in lyx::RenderPreview::imageReady ()
(gdb)
(gdb) bt
#0  0x0064d757 in lyx::RenderPreview::imageReady ()
#1  0x008e37dc in boost::function1void, lyx::graphics::PreviewImage 
const::operator() ()
#2  0x008e4272 in boost::signal1void, lyx::graphics::PreviewImage 
const, boost::last_valuevoid, int, std::lessint, boost::functionvoid ()
(lyx::graphics::PreviewImage const) ::operator() ()
#3  0x00727f0c in boost::function0void::operator() ()
#4  0x008d31cd in boost::signal0void, boost::last_valuevoid, int, 
std::lessint, boost::functionvoid ()() ::operator() ()
#5  0x00727f0c in boost::function0void::operator() ()
#6  0x008d31cd in boost::signal0void, boost::last_valuevoid, int, 
std::lessint, boost::functionvoid ()() ::operator() ()
#7  0x008d1fce in 
lyx::graphics::CacheItem::Impl::convertToDisplayFormat ()
#8  0x008d924e in lyx::graphics::LoaderQueue::loadNext ()
#9  0x00727f0c in boost::function0void::operator() ()
#10 0x008d31cd in boost::signal0void, boost::last_valuevoid, int, 
std::lessint, boost::functionvoid ()() ::operator() ()
#11 0x009159d5 in lyx::Timeout::emit ()
#12 0x7f9b6e560263 in QObject::event (this=0x3a91c10, e=0x3ae2768) at 
kernel/qobject.cpp:1075
#13 0x7f9b6e9e5f4d in QApplicationPrivate::notify_helper (this=0x11d5790, 
receiver=0x3a91c10, e=0x7fff77a62900)
at kernel/qapplication.cpp:4056
#14 0x7f9b6e9ee18a in QApplication::notify (this=0x11d3d20, 
receiver=0x3a91c10, e=0x7fff77a62900) at kernel/qapplication.cpp:4021
#15 0x0071e4f8 in lyx::frontend::GuiApplication::notify ()
#16 0x7f9b6e5506ac in QCoreApplication::notifyInternal (this=0x11d3d20, 
receiver=0x3a91c10, event=0x7fff77a62900)
at kernel/qcoreapplication.cpp:610
#17 0x7f9b6e57d516 in QTimerInfoList::activateTimers (this=0x11e4060)
at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#18 0x7f9b6e579b2d in timerSourceDispatch (source=value optimized out) 
at kernel/qeventdispatcher_glib.cpp:165
#19 0x7f9b6c40e20a in g_main_context_dispatch () from 
/usr/lib/libglib-2.0.so.0
#20 0x7f9b6c4118e0 in ?? () from /usr/lib/libglib-2.0.so.0
#21 0x7f9b6c411a7c in g_main_context_iteration () from 
/usr/lib/libglib-2.0.so.0
#22 0x7f9b6e579a8f in QEventDispatcherGlib::processEvents (this=0x1190a40, 
flags=value optimized out)
at kernel/qeventdispatcher_glib.cpp:327
#23 0x7f9b6ea7ebdf in QGuiEventDispatcherGlib::processEvents 
(this=0x30001, flags=value optimized out)
at kernel/qguieventdispatcher_glib.cpp:202
#24 0x7f9b6e54ef42 in QEventLoop::processEvents (this=value optimized 
out, flags={i = 2007378800}) at kernel/qeventloop.cpp:149
#25 0x7f9b6e54f314 in QEventLoop::exec (this=0x7fff77a62bb0, flags={i = 
2007378880}) at kernel/qeventloop.cpp:201
#26 0x7f9b6e5515e4 in QCoreApplication::exec () at 
kernel/qcoreapplication.cpp:888
#27 0x004e1484 in lyx::LyX::exec ()
#28 0x 

xy-package: referencing diagrams?

2009-09-29 Thread Jannick Asmus

Hi,

how can diagrams created with the xy-package be labelled for 
references? Furthermore, I would like to label the diagram with 
Diagram #label. How can this be done?


Thanks for your input.

Greets,
J. 





AW: instant preview ignores some indices

2009-09-29 Thread Jannick Asmus

Paul A. Rubin wrote:

the instant preview ignores some of the indices. E.g., $\Phi_{K}$ 
is correctly displayed whereas $\Phi_{\mathbb{Q}}$ ignores the 
index. The source is copied from the source code window.


Can this be amended?

I am using LyX 1.6.4. on WinVista.


In Document  Settings  Math Options, uncheck Use AMS Math package 
automatically and check Use AMS Math package.  Alternatively, you 
can add \usepackage{amssymb} to the preamble.  If LyX had noticed 
other things in the document that required AMS Math, it would have 
loaded the packages automatically, but apparently it did not.


That works. At this occacion I cleaned my preamble since it was new to 
me that with Use AMS Math package checked every missing Math package 
is automatically loaded.


Thanks a lot !!!

Best wishes,
J. 





Locating nomenclature items (outline)

2009-09-29 Thread James C. Sutherland
I really like the LyX outline feature that allows you to easily locate  
figures, equations, tables, etc. in your document.  However, there  
doesn't seem to be support for nomenclature entries.  Does anyone know  
if such a feature exists in LyX without resorting to a text editor?


Thanks,

James


Re: Beamer portrait mode

2009-09-29 Thread Stefano Baroni

SORRY: I sent this to EK only in the first place

...

By googling beamer portrait I found, omong others, the following:

http://www-i6.informatik.rwth-aachen.de/~dreuw/latexbeamerposter.php
http://en.kioskea.net/faq/sujet-3011-latex-beamer-transparent-a4-portrait

HTH - SB

On Sep 29, 2009, at 5:42 AM, E. Kaplan wrote:

Still no clue as to how to force Beamer to make slides in PORTRAIT  
mode, and whether it is possible to do it for individual slides in  
an otherwise landscape presentation...


EK




---
Stefano Baroni - SISSADEMOCRITOS National Simulation Center -  
Trieste
http://stefano.baroni.me [+39] 040 3787 406 (tel) -528 (fax) /  
stefanobaroni (skype)


La morale est une logique de l'action comme la logique est une morale  
de la pensée - Jean Piaget


Please, if possible, don't  send me MS Word or PowerPoint attachments
Why? See:  http://www.gnu.org/philosophy/no-word-attachments.html









LyX, child documents and \addtocontents

2009-09-29 Thread Daniel Owens
I am using LyX 1.6.4 with MikTeX, compiling using XeTeX (in case it 
matters), to format a dissertation.


I want to use child documents, but when I move all my chapters to child 
documents (chapter1.lyx, etc.), I have a problem with the table of 
contents. I have added a line in ERT to add Chapter above the first 
chapter in the TOC:


\addtocontents{toc}{\noindent CHAPTER \par}

It should look like this:

Chapter
   1. My First Chapter
   2. My Second Chapter

As long as I have the first chapter in the main LyX document, this works 
fine. Subsequent chapters can be in child documents--no problem.


If Chapter 1 is in a child document and included, then CHAPTER shows up 
in the TOC just after the first chapter and before the second chapter:


   1. My First Chapter
Chapter
   2. My Second Chapter

I can't think of why this is happening, though if I add some random text 
between the ERT and the Include: chapter1.lyx, it solves the problem 
(but adds unwanted text). It is as if the ERT is placed after the 
include command, but it's not--it's before.


Any ideas about how to fix this?

Daniel


Re: LyX, child documents and \addtocontents

2009-09-29 Thread Daniel Owens
To answer my own posting, I discovered that if I used Include: Input, 
the problem was solved. I thought I'd thought of everything...


Daniel Owens wrote:
I am using LyX 1.6.4 with MikTeX, compiling using XeTeX (in case it 
matters), to format a dissertation.


I want to use child documents, but when I move all my chapters to 
child documents (chapter1.lyx, etc.), I have a problem with the table 
of contents. I have added a line in ERT to add Chapter above the 
first chapter in the TOC:


\addtocontents{toc}{\noindent CHAPTER \par}

It should look like this:

Chapter
   1. My First Chapter
   2. My Second Chapter

As long as I have the first chapter in the main LyX document, this 
works fine. Subsequent chapters can be in child documents--no problem.


If Chapter 1 is in a child document and included, then CHAPTER shows 
up in the TOC just after the first chapter and before the second chapter:


   1. My First Chapter
Chapter
   2. My Second Chapter

I can't think of why this is happening, though if I add some random 
text between the ERT and the Include: chapter1.lyx, it solves the 
problem (but adds unwanted text). It is as if the ERT is placed after 
the include command, but it's not--it's before.


Any ideas about how to fix this?

Daniel



Starting LyX 1.6.4 with maximized window / Locale

2009-09-29 Thread Hellmut Weber

Hi list,

I have a small but annoying problem:

since i upgraded to 1.6.4 lyx starts every time with a small window in 
the upper left corner of my screen.
Although I maximize the window and close LyX with the maximized window 
next time when opening the small window appears.


I have set

tools Preferences look  feel User interface session
 Restore window layouts and geometries

Can I do something else?


Additionally, LyX ignores my locale which is set to de_DE.utf8 and comes 
up with the english menus, even if I call it with


LANG=de_DE.utf8 lyx fr_Inhalte+Zentral.lyx or
LC_ALL=de_DE.utf8 lyx fr_Inhalte+Zentral.lyx

Neither in ~/.lyx nor in /usr/share/lyx did I see anything which seemed 
helpful in these respects.


TIA

Hellmut

--
Dr. Hellmut Weber m...@hellmutweber.de
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq



(newbie) Scripting, MSword and Lyx

2009-09-29 Thread Simon
hello world!

Hi I'm Simon, I'm considering Lyx for my use, but I'd like your
opinion before I try it.  I'm currently downloading/compiling it on my
gentoo desktop, so meanwhile I thought I'd ask!

In a nutshell:
  I need a programmer-friendly way to output good looking documents
compatible with current MS word.  This is my problem.  I thought if
LyX can output to word documents, maybe I'm getting close to a
solution, but also, I'm sure you guys (this community i mean) also
have experience with some of my concerns and might be able to help me
out.

In details:
  I often need to write documents containing technical or repetitive
information that I feel a script would do better and faster.  (I could
write one to create such document in html within a few minutes).
These documents are opened by business people that know nothing
outside of their MS universe (a secretary once refused a PDF i sent
her saying she couldnt open it, that's 2 years ago!  I bet the
extension.rtf wouldnt do as good as .doc either...).  Some of them
have locked down computers and cant install or change anything, some
are scared about anything different and some just dont bother.
Another reason (quite a good one) is that sometimes these people need
to edit those documents and the only tool really suitable for them is
MSword...  These people are not under my supervision, they are my
partners, my clients, some employers, etc...  random business people.

  While on the other hand, authoring documents with MS tools is
extremely painful to me (i got the skin of a tux i guess!) and working
with OpenOffice is also quite painful...  I've tried converting HTML
to Office documents and got great results sometimes, while I got
horrible results other times (compatibility issue, like the story
about MSword not allowing tables inside tables!).  Conversion seems a
dangerous route (specially that I only own an old copy of office to
test the result...).

  I used to do my lab reports and several homework in LaTeX long ago
when I was in highschool and college, so I do have some memory of what
it's like to use tex.

The ideal route would be:myProg - (lyx?)  - msword

Thanks in advance for help and suggestions,
  Simon =)


Re: Starting LyX 1.6.4 with maximized window / Locale

2009-09-29 Thread rgheck

On 09/29/2009 06:43 PM, Hellmut Weber wrote:

Hi list,

I have a small but annoying problem:

since i upgraded to 1.6.4 lyx starts every time with a small window in 
the upper left corner of my screen.
Although I maximize the window and close LyX with the maximized window 
next time when opening the small window appears.


I have set

tools Preferences look  feel User interface session
Restore window layouts and geometries

Can I do something else?

Try deleting the sessions file from ~/.lyx. That may be the issue. You 
could have a permissions problem somewhere, too, that are preventing LyX 
from writing a sensible sessions file.




Re: (newbie) Scripting, MSword and Lyx

2009-09-29 Thread rgheck

On 09/29/2009 07:13 PM, Simon wrote:

   While on the other hand, authoring documents with MS tools is
extremely painful to me (i got the skin of a tux i guess!) and working
with OpenOffice is also quite painful...  I've tried converting HTML
to Office documents and got great results sometimes, while I got
horrible results other times (compatibility issue, like the story
about MSword not allowing tables inside tables!).  Conversion seems a
dangerous route (specially that I only own an old copy of office to
test the result...).

   I used to do my lab reports and several homework in LaTeX long ago
when I was in highschool and college, so I do have some memory of what
it's like to use tex.

The ideal route would be:myProg -  (lyx?)  -  msword

   
Something like this can work, but conversion from LyX to * generally 
relies upon LyX-LaTeX-*, though there is an exception, namely, the 
elyxer LyX-HTML converter. Whether you'd get decent results with that, 
given the problems you said you already had with HTML-Word, is hard to say.


That said, there are decent LaTeX-RTF converters, which means there's a 
decent LyX-RTF converter, and there's a good LaTeX-ODT converter, 
namely, the oolatex program that comes with tex4ht. People often have 
problems with oolatex on Windows, but it seems to work real well on 
Linux. Of course, you'd then have to do a manual ODT-Word (or 
RTF--Word) conversion in OOo, or write a simple script to do it using 
the OOo scripting capabilities. And then you have yet another step in 
the conversion chain, so YMMV, obviously.


So, *all* of that said, given that you're going via LaTeX anyway, and 
given that we're talking about generating this document programatically, 
I'd think that writing your script to generate LaTeX is going to be a 
lot easier than writing it to generate LyX's native file format, which 
is not exactly made for such things. Though you could use LyX's other 
scripting capabilities, via the so-called LyX server, to create the 
document, that seems to me like overkill, if what you want in the end is 
LaTeX. And LaTeX itself is sufficiently well-structured, and human 
readable, that I doubt you'd have too much trouble generating it. I can 
imagine something kind of like the old Perl cgi interface: a set of 
routines that completely hides what LaTeX is doing, but allows you to 
generate the document via a series of simple calls, like: 
doc-makeSection('My Section'), and so forth.


Anyway, hope that helps.

rh



Re: (newbie) Scripting, MSword and Lyx

2009-09-29 Thread Andrew Sullivan
On Tue, Sep 29, 2009 at 07:13:30PM -0400, Simon wrote:
   I need a programmer-friendly way to output good looking documents
 compatible with current MS word.

The only way I've been able to get LyX or LaTeX documents into native
Word format is to go by way of OpenOffice.org, and there are a bunch
of missing features that way (most irritating to me is that so far in
my experience, cross-references are always lost).  I don't think LyX
is the right tool for your job if you really want native Word format.

A

-- 
Andrew Sullivan
a...@shinkuro.com
Shinkuro, Inc.


Re: (newbie) Scripting, MSword and Lyx

2009-09-29 Thread Simon
Thanks a lot for the quick reply!

 Something like this can work, but conversion from LyX to * generally relies
 upon LyX-LaTeX-*, though there is an exception, namely, the elyxer
 LyX-HTML converter. Whether you'd get decent results with that, given the
 problems you said you already had with HTML-Word, is hard to say.

 That said, there are decent LaTeX-RTF converters, which means there's a
 decent LyX-RTF converter, and there's a good LaTeX-ODT converter, namely,
 the oolatex program that comes with tex4ht. People often have problems with
 oolatex on Windows, but it seems to work real well on Linux. Of course,
 you'd then have to do a manual ODT-Word (or RTF--Word) conversion in OOo,
 or write a simple script to do it using the OOo scripting capabilities. And
 then you have yet another step in the conversion chain, so YMMV, obviously.

I think I'll give a try to the route involving LaTeX and RTF, without
using LyX...  this seems promising enough.  I wonder if the RTF route
(compared to HTML) can do a better job at handling page breaks and
complex tables...  I guess I'll have to give it a try to know! But
thanks a lot for the several possibilities you ennumerated, gives me a
few good options! =)

 So, *all* of that said, given that you're going via LaTeX anyway, and given
 that we're talking about generating this document programatically, I'd think
 that writing your script to generate LaTeX is going to be a lot easier than
 writing it to generate LyX's native file format, which is not exactly made
 for such things.

I think you're right.  I mainly thought LyX could output msword
documents...  but I've done my homework and read several pages on the
website/wiki and seems like anything2msword is tricky!

 Though you could use LyX's other scripting capabilities,
 via the so-called LyX server, to create the document, that seems to me like
 overkill, if what you want in the end is LaTeX.

What's most overkill is that I'd have to learn LyX for so little
advantage after all...  unless there are some other advantages related
to my tasks that LyX could help with...

 And LaTeX itself is
 sufficiently well-structured, and human readable, that I doubt you'd have
 too much trouble generating it. I can imagine something kind of like the old
 Perl cgi interface: a set of routines that completely hides what LaTeX is
 doing, but allows you to generate the document via a series of simple calls,
 like: doc-makeSection('My Section'), and so forth.

This is exactly my plan (or the basics of it).  Since a few things
might get lost in the translation, I'll work on building such
functions that give the most stable final output.  Since I'm only
concerned about the final output, I wont have to work on making both
the LaTeX-PS output and the msword render the same (though this would
be highly convenient).

Thanks a lot!
  Simon


Re: Anyone used Lytex?

2009-09-29 Thread Paul Johnson
On Tue, Sep 8, 2009 at 3:13 PM, Sharma, Vivek shar...@upmc.edu wrote:
 Hi

 I do not have administrative privileges at work computers but am so dependent 
 on using lyx for my writing and want to be able to use it on a USB drive or a 
 network drive that I have access to. I wondered if anyone has used Lytex  as 
 suggested in the wiki?
 I tried it and get error messages. The home page for Lytex does not give any 
 email addresses for requesting help.

 Regards
 Vivek

If I were you, I'd compile LyX in my user account. All it requires is
a --prefix option to build it to install under your home.  I build
things and run from /home/pauljohn/packages all the time.

pj

If you want us to advise you about Lytex,  you should please provide
a precise URL so I can see what the hell you are talking about.


-- 
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas


AW: xy-pic: referencing diagrams?

2009-09-29 Thread Jannick Asmus
In case I was not too clear below, I am referring to the package 
xy-pic.


how can diagrams created with the xy-package be labelled for 
references? Furthermore, I would like to label the diagram with 
Diagram #label. How can this be done?


This is known for equations and that works pretty well. Now I would 
like to reference to diagrams within my document while the diagrams 
are labelled like, say, tables.


Thanks for your input.

J. 





instant preview ignores some indices

2009-09-29 Thread Jannick Asmus

Hi,

the instant preview ignores some of the indices. E.g., $\Phi_{K}$ is 
correctly displayed whereas $\Phi_{\mathbb{Q}}$ ignores the index. The 
source is copied from the source code window.


Can this be amended?

I am using LyX 1.6.4. on WinVista.

Best wishes,
J. 





undo math code?

2009-09-29 Thread Jannick Asmus

Hi,

is it possible to undo the math code - which should be the inverse to 
ctrl+m - in LyX?


Thanks!

Best wishes,
J. 





Re: undo math code?

2009-09-29 Thread Jean-Marc Lasgouttes
Jannick Asmus jannick.n...@gmail.com writes:

 Hi,

 is it possible to undo the math code - which should be the inverse to
 ctrl+m - in LyX?

I do not understand. AFAICS, undo works well after Ctrl+m.

JMarc


Re: undo math code?

2009-09-29 Thread Guenter Milde
On 2009-09-29, Jean-Marc Lasgouttes wrote:
 Jannick Asmus jannick.n...@gmail.com writes:

 Hi,

 is it possible to undo the math code - which should be the inverse to
 ctrl+m - in LyX?

 I do not understand. AFAICS, undo works well after Ctrl+m.

I suppose the aim is to reverse the LaTeX-Code - math-inset conversion.

This can be done selecting the content of the math-inset (but not the
inset itself), copying (Ctrl-C) and pasting as text (Ctrl-V *outside* a
math inset). It might also work pasting with the middle mouse button.

Günter




AW: undo math code?

2009-09-29 Thread Jannick Asmus

Guenter Milde wrote:


On 2009-09-29, Jean-Marc Lasgouttes wrote:


is it possible to undo the math code - which should be the inverse 
to

ctrl+m - in LyX?



I do not understand. AFAICS, undo works well after Ctrl+m.


I suppose the aim is to reverse the LaTeX-Code - math-inset 
conversion.


This can be done selecting the content of the math-inset (but not 
the
inset itself), copying (Ctrl-C) and pasting as text (Ctrl-V 
*outside* a
math inset). It might also work pasting with the middle mouse 
button.


Thanks. That works perfectly.

J. 





Re: instant preview ignores some indices

2009-09-29 Thread Paul A. Rubin

Jannick Asmus wrote:

Hi,

the instant preview ignores some of the indices. E.g., $\Phi_{K}$ is 
correctly displayed whereas $\Phi_{\mathbb{Q}}$ ignores the index. The 
source is copied from the source code window.


Can this be amended?

I am using LyX 1.6.4. on WinVista.

Best wishes,
J.




In Document  Settings  Math Options, uncheck Use AMS Math package 
automatically and check Use AMS Math package.  Alternatively, you can 
add \usepackage{amssymb} to the preamble.  If LyX had noticed other 
things in the document that required AMS Math, it would have loaded the 
packages automatically, but apparently it did not.


/Paul



Re: Beamer portrait mode

2009-09-29 Thread Paul A. Rubin

E. Kaplan wrote:
Still no clue as to how to force Beamer to make slides in PORTRAIT mode, 
and whether it is possible to do it for individual slides in an 
otherwise landscape presentation...




I don't think it's possible.  Slide dimensions are hard-coded into 
Beamer.  In the Beamer user guide, section 24.2 (which covers the 
beamerseminar package), it explicitly says that portrait slides (which 
seminar apparently allows) are not supported.


/Paul



Re: Sudden crashes in LyX 16.4

2009-09-29 Thread Stefano Franchi
On Sunday 27 September 2009 04:49:38 am Jürgen Spitzmüller wrote:
 Stefano Franchi wrote:
  I recently updated to 1.6.4 and I experiencing crashes I did not have
   before.  These happen when working on a large document (a book) which is
   made up of several smaller files (the chapters). Lyx quits suddenly when
   scrolling the main . Can anyone remind me of which debug option I should
   choose to obtain any meaningful output in the terminal?
 
 What OS are you on?
 
 If you have gdb, try to get a backtrace as described here:
 http://wiki.lyx.org/FAQ/FurtherHelp#toc4
 
 Also, try to condense your document to a minimal text case that shows the
 behaviour.
 
 Jürgen
 

Well, I think I have encountered a bug related to the preview of input 
files. The backtrace (as far as I can tell) reports a problem with graphic 
functions, but there were no graphics on screen when the crash occurred. There 
was a preview of one of the chapters of the book, however (that is, the 
chapter was listed in the document as an input file, and the show preview 
checkbox in the settings panel was ticked).

With the file previewed, scrolling past the end of the previewed text or 
before its beginning caused a crash. If I turn preview off, no crash occurs.

I am still working on a minimal example. So far my attempts have failed: a 
master file with just one or two input files in preview mode seems to be 
working fine. So there may be some other condition that triggers the crash.

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. 

For the time being, I am switching my input statements to include.

gdb output just before the crash and following backtrace:

latex failed to compile 1lyxpreview.tex

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f9b6fa1f750 (LWP 26016)]
0x0064d757 in lyx::RenderPreview::imageReady ()
(gdb)
(gdb) bt
#0  0x0064d757 in lyx::RenderPreview::imageReady ()
#1  0x008e37dc in boost::function1void, lyx::graphics::PreviewImage 
const::operator() ()
#2  0x008e4272 in boost::signal1void, lyx::graphics::PreviewImage 
const, boost::last_valuevoid, int, std::lessint, boost::functionvoid ()
(lyx::graphics::PreviewImage const) ::operator() ()
#3  0x00727f0c in boost::function0void::operator() ()
#4  0x008d31cd in boost::signal0void, boost::last_valuevoid, int, 
std::lessint, boost::functionvoid ()() ::operator() ()
#5  0x00727f0c in boost::function0void::operator() ()
#6  0x008d31cd in boost::signal0void, boost::last_valuevoid, int, 
std::lessint, boost::functionvoid ()() ::operator() ()
#7  0x008d1fce in 
lyx::graphics::CacheItem::Impl::convertToDisplayFormat ()
#8  0x008d924e in lyx::graphics::LoaderQueue::loadNext ()
#9  0x00727f0c in boost::function0void::operator() ()
#10 0x008d31cd in boost::signal0void, boost::last_valuevoid, int, 
std::lessint, boost::functionvoid ()() ::operator() ()
#11 0x009159d5 in lyx::Timeout::emit ()
#12 0x7f9b6e560263 in QObject::event (this=0x3a91c10, e=0x3ae2768) at 
kernel/qobject.cpp:1075
#13 0x7f9b6e9e5f4d in QApplicationPrivate::notify_helper (this=0x11d5790, 
receiver=0x3a91c10, e=0x7fff77a62900)
at kernel/qapplication.cpp:4056
#14 0x7f9b6e9ee18a in QApplication::notify (this=0x11d3d20, 
receiver=0x3a91c10, e=0x7fff77a62900) at kernel/qapplication.cpp:4021
#15 0x0071e4f8 in lyx::frontend::GuiApplication::notify ()
#16 0x7f9b6e5506ac in QCoreApplication::notifyInternal (this=0x11d3d20, 
receiver=0x3a91c10, event=0x7fff77a62900)
at kernel/qcoreapplication.cpp:610
#17 0x7f9b6e57d516 in QTimerInfoList::activateTimers (this=0x11e4060)
at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#18 0x7f9b6e579b2d in timerSourceDispatch (source=value optimized out) 
at kernel/qeventdispatcher_glib.cpp:165
#19 0x7f9b6c40e20a in g_main_context_dispatch () from 
/usr/lib/libglib-2.0.so.0
#20 0x7f9b6c4118e0 in ?? () from /usr/lib/libglib-2.0.so.0
#21 0x7f9b6c411a7c in g_main_context_iteration () from 
/usr/lib/libglib-2.0.so.0
#22 0x7f9b6e579a8f in QEventDispatcherGlib::processEvents (this=0x1190a40, 
flags=value optimized out)
at kernel/qeventdispatcher_glib.cpp:327
#23 0x7f9b6ea7ebdf in QGuiEventDispatcherGlib::processEvents 
(this=0x30001, flags=value optimized out)
at kernel/qguieventdispatcher_glib.cpp:202
#24 0x7f9b6e54ef42 in QEventLoop::processEvents (this=value optimized 
out, flags={i = 2007378800}) at kernel/qeventloop.cpp:149
#25 0x7f9b6e54f314 in QEventLoop::exec (this=0x7fff77a62bb0, flags={i = 
2007378880}) at kernel/qeventloop.cpp:201
#26 0x7f9b6e5515e4 in QCoreApplication::exec () at 
kernel/qcoreapplication.cpp:888
#27 0x004e1484 in lyx::LyX::exec ()
#28 0x 

xy-package: referencing diagrams?

2009-09-29 Thread Jannick Asmus

Hi,

how can diagrams created with the xy-package be labelled for 
references? Furthermore, I would like to label the diagram with 
Diagram #label. How can this be done?


Thanks for your input.

Greets,
J. 





AW: instant preview ignores some indices

2009-09-29 Thread Jannick Asmus

Paul A. Rubin wrote:

the instant preview ignores some of the indices. E.g., $\Phi_{K}$ 
is correctly displayed whereas $\Phi_{\mathbb{Q}}$ ignores the 
index. The source is copied from the source code window.


Can this be amended?

I am using LyX 1.6.4. on WinVista.


In Document  Settings  Math Options, uncheck Use AMS Math package 
automatically and check Use AMS Math package.  Alternatively, you 
can add \usepackage{amssymb} to the preamble.  If LyX had noticed 
other things in the document that required AMS Math, it would have 
loaded the packages automatically, but apparently it did not.


That works. At this occacion I cleaned my preamble since it was new to 
me that with Use AMS Math package checked every missing Math package 
is automatically loaded.


Thanks a lot !!!

Best wishes,
J. 





Locating nomenclature items (outline)

2009-09-29 Thread James C. Sutherland
I really like the LyX outline feature that allows you to easily locate  
figures, equations, tables, etc. in your document.  However, there  
doesn't seem to be support for nomenclature entries.  Does anyone know  
if such a feature exists in LyX without resorting to a text editor?


Thanks,

James


Re: Beamer portrait mode

2009-09-29 Thread Stefano Baroni

SORRY: I sent this to EK only in the first place

...

By googling beamer portrait I found, omong others, the following:

http://www-i6.informatik.rwth-aachen.de/~dreuw/latexbeamerposter.php
http://en.kioskea.net/faq/sujet-3011-latex-beamer-transparent-a4-portrait

HTH - SB

On Sep 29, 2009, at 5:42 AM, E. Kaplan wrote:

Still no clue as to how to force Beamer to make slides in PORTRAIT  
mode, and whether it is possible to do it for individual slides in  
an otherwise landscape presentation...


EK




---
Stefano Baroni - SISSADEMOCRITOS National Simulation Center -  
Trieste
http://stefano.baroni.me [+39] 040 3787 406 (tel) -528 (fax) /  
stefanobaroni (skype)


La morale est une logique de l'action comme la logique est une morale  
de la pensée - Jean Piaget


Please, if possible, don't  send me MS Word or PowerPoint attachments
Why? See:  http://www.gnu.org/philosophy/no-word-attachments.html









LyX, child documents and \addtocontents

2009-09-29 Thread Daniel Owens
I am using LyX 1.6.4 with MikTeX, compiling using XeTeX (in case it 
matters), to format a dissertation.


I want to use child documents, but when I move all my chapters to child 
documents (chapter1.lyx, etc.), I have a problem with the table of 
contents. I have added a line in ERT to add Chapter above the first 
chapter in the TOC:


\addtocontents{toc}{\noindent CHAPTER \par}

It should look like this:

Chapter
   1. My First Chapter
   2. My Second Chapter

As long as I have the first chapter in the main LyX document, this works 
fine. Subsequent chapters can be in child documents--no problem.


If Chapter 1 is in a child document and included, then CHAPTER shows up 
in the TOC just after the first chapter and before the second chapter:


   1. My First Chapter
Chapter
   2. My Second Chapter

I can't think of why this is happening, though if I add some random text 
between the ERT and the Include: chapter1.lyx, it solves the problem 
(but adds unwanted text). It is as if the ERT is placed after the 
include command, but it's not--it's before.


Any ideas about how to fix this?

Daniel


Re: LyX, child documents and \addtocontents

2009-09-29 Thread Daniel Owens
To answer my own posting, I discovered that if I used Include: Input, 
the problem was solved. I thought I'd thought of everything...


Daniel Owens wrote:
I am using LyX 1.6.4 with MikTeX, compiling using XeTeX (in case it 
matters), to format a dissertation.


I want to use child documents, but when I move all my chapters to 
child documents (chapter1.lyx, etc.), I have a problem with the table 
of contents. I have added a line in ERT to add Chapter above the 
first chapter in the TOC:


\addtocontents{toc}{\noindent CHAPTER \par}

It should look like this:

Chapter
   1. My First Chapter
   2. My Second Chapter

As long as I have the first chapter in the main LyX document, this 
works fine. Subsequent chapters can be in child documents--no problem.


If Chapter 1 is in a child document and included, then CHAPTER shows 
up in the TOC just after the first chapter and before the second chapter:


   1. My First Chapter
Chapter
   2. My Second Chapter

I can't think of why this is happening, though if I add some random 
text between the ERT and the Include: chapter1.lyx, it solves the 
problem (but adds unwanted text). It is as if the ERT is placed after 
the include command, but it's not--it's before.


Any ideas about how to fix this?

Daniel



Starting LyX 1.6.4 with maximized window / Locale

2009-09-29 Thread Hellmut Weber

Hi list,

I have a small but annoying problem:

since i upgraded to 1.6.4 lyx starts every time with a small window in 
the upper left corner of my screen.
Although I maximize the window and close LyX with the maximized window 
next time when opening the small window appears.


I have set

tools Preferences look  feel User interface session
 Restore window layouts and geometries

Can I do something else?


Additionally, LyX ignores my locale which is set to de_DE.utf8 and comes 
up with the english menus, even if I call it with


LANG=de_DE.utf8 lyx fr_Inhalte+Zentral.lyx or
LC_ALL=de_DE.utf8 lyx fr_Inhalte+Zentral.lyx

Neither in ~/.lyx nor in /usr/share/lyx did I see anything which seemed 
helpful in these respects.


TIA

Hellmut

--
Dr. Hellmut Weber m...@hellmutweber.de
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq



(newbie) Scripting, MSword and Lyx

2009-09-29 Thread Simon
hello world!

Hi I'm Simon, I'm considering Lyx for my use, but I'd like your
opinion before I try it.  I'm currently downloading/compiling it on my
gentoo desktop, so meanwhile I thought I'd ask!

In a nutshell:
  I need a programmer-friendly way to output good looking documents
compatible with current MS word.  This is my problem.  I thought if
LyX can output to word documents, maybe I'm getting close to a
solution, but also, I'm sure you guys (this community i mean) also
have experience with some of my concerns and might be able to help me
out.

In details:
  I often need to write documents containing technical or repetitive
information that I feel a script would do better and faster.  (I could
write one to create such document in html within a few minutes).
These documents are opened by business people that know nothing
outside of their MS universe (a secretary once refused a PDF i sent
her saying she couldnt open it, that's 2 years ago!  I bet the
extension.rtf wouldnt do as good as .doc either...).  Some of them
have locked down computers and cant install or change anything, some
are scared about anything different and some just dont bother.
Another reason (quite a good one) is that sometimes these people need
to edit those documents and the only tool really suitable for them is
MSword...  These people are not under my supervision, they are my
partners, my clients, some employers, etc...  random business people.

  While on the other hand, authoring documents with MS tools is
extremely painful to me (i got the skin of a tux i guess!) and working
with OpenOffice is also quite painful...  I've tried converting HTML
to Office documents and got great results sometimes, while I got
horrible results other times (compatibility issue, like the story
about MSword not allowing tables inside tables!).  Conversion seems a
dangerous route (specially that I only own an old copy of office to
test the result...).

  I used to do my lab reports and several homework in LaTeX long ago
when I was in highschool and college, so I do have some memory of what
it's like to use tex.

The ideal route would be:myProg - (lyx?)  - msword

Thanks in advance for help and suggestions,
  Simon =)


Re: Starting LyX 1.6.4 with maximized window / Locale

2009-09-29 Thread rgheck

On 09/29/2009 06:43 PM, Hellmut Weber wrote:

Hi list,

I have a small but annoying problem:

since i upgraded to 1.6.4 lyx starts every time with a small window in 
the upper left corner of my screen.
Although I maximize the window and close LyX with the maximized window 
next time when opening the small window appears.


I have set

tools Preferences look  feel User interface session
Restore window layouts and geometries

Can I do something else?

Try deleting the sessions file from ~/.lyx. That may be the issue. You 
could have a permissions problem somewhere, too, that are preventing LyX 
from writing a sensible sessions file.




Re: (newbie) Scripting, MSword and Lyx

2009-09-29 Thread rgheck

On 09/29/2009 07:13 PM, Simon wrote:

   While on the other hand, authoring documents with MS tools is
extremely painful to me (i got the skin of a tux i guess!) and working
with OpenOffice is also quite painful...  I've tried converting HTML
to Office documents and got great results sometimes, while I got
horrible results other times (compatibility issue, like the story
about MSword not allowing tables inside tables!).  Conversion seems a
dangerous route (specially that I only own an old copy of office to
test the result...).

   I used to do my lab reports and several homework in LaTeX long ago
when I was in highschool and college, so I do have some memory of what
it's like to use tex.

The ideal route would be:myProg -  (lyx?)  -  msword

   
Something like this can work, but conversion from LyX to * generally 
relies upon LyX-LaTeX-*, though there is an exception, namely, the 
elyxer LyX-HTML converter. Whether you'd get decent results with that, 
given the problems you said you already had with HTML-Word, is hard to say.


That said, there are decent LaTeX-RTF converters, which means there's a 
decent LyX-RTF converter, and there's a good LaTeX-ODT converter, 
namely, the oolatex program that comes with tex4ht. People often have 
problems with oolatex on Windows, but it seems to work real well on 
Linux. Of course, you'd then have to do a manual ODT-Word (or 
RTF--Word) conversion in OOo, or write a simple script to do it using 
the OOo scripting capabilities. And then you have yet another step in 
the conversion chain, so YMMV, obviously.


So, *all* of that said, given that you're going via LaTeX anyway, and 
given that we're talking about generating this document programatically, 
I'd think that writing your script to generate LaTeX is going to be a 
lot easier than writing it to generate LyX's native file format, which 
is not exactly made for such things. Though you could use LyX's other 
scripting capabilities, via the so-called LyX server, to create the 
document, that seems to me like overkill, if what you want in the end is 
LaTeX. And LaTeX itself is sufficiently well-structured, and human 
readable, that I doubt you'd have too much trouble generating it. I can 
imagine something kind of like the old Perl cgi interface: a set of 
routines that completely hides what LaTeX is doing, but allows you to 
generate the document via a series of simple calls, like: 
doc-makeSection('My Section'), and so forth.


Anyway, hope that helps.

rh



Re: (newbie) Scripting, MSword and Lyx

2009-09-29 Thread Andrew Sullivan
On Tue, Sep 29, 2009 at 07:13:30PM -0400, Simon wrote:
   I need a programmer-friendly way to output good looking documents
 compatible with current MS word.

The only way I've been able to get LyX or LaTeX documents into native
Word format is to go by way of OpenOffice.org, and there are a bunch
of missing features that way (most irritating to me is that so far in
my experience, cross-references are always lost).  I don't think LyX
is the right tool for your job if you really want native Word format.

A

-- 
Andrew Sullivan
a...@shinkuro.com
Shinkuro, Inc.


Re: (newbie) Scripting, MSword and Lyx

2009-09-29 Thread Simon
Thanks a lot for the quick reply!

 Something like this can work, but conversion from LyX to * generally relies
 upon LyX-LaTeX-*, though there is an exception, namely, the elyxer
 LyX-HTML converter. Whether you'd get decent results with that, given the
 problems you said you already had with HTML-Word, is hard to say.

 That said, there are decent LaTeX-RTF converters, which means there's a
 decent LyX-RTF converter, and there's a good LaTeX-ODT converter, namely,
 the oolatex program that comes with tex4ht. People often have problems with
 oolatex on Windows, but it seems to work real well on Linux. Of course,
 you'd then have to do a manual ODT-Word (or RTF--Word) conversion in OOo,
 or write a simple script to do it using the OOo scripting capabilities. And
 then you have yet another step in the conversion chain, so YMMV, obviously.

I think I'll give a try to the route involving LaTeX and RTF, without
using LyX...  this seems promising enough.  I wonder if the RTF route
(compared to HTML) can do a better job at handling page breaks and
complex tables...  I guess I'll have to give it a try to know! But
thanks a lot for the several possibilities you ennumerated, gives me a
few good options! =)

 So, *all* of that said, given that you're going via LaTeX anyway, and given
 that we're talking about generating this document programatically, I'd think
 that writing your script to generate LaTeX is going to be a lot easier than
 writing it to generate LyX's native file format, which is not exactly made
 for such things.

I think you're right.  I mainly thought LyX could output msword
documents...  but I've done my homework and read several pages on the
website/wiki and seems like anything2msword is tricky!

 Though you could use LyX's other scripting capabilities,
 via the so-called LyX server, to create the document, that seems to me like
 overkill, if what you want in the end is LaTeX.

What's most overkill is that I'd have to learn LyX for so little
advantage after all...  unless there are some other advantages related
to my tasks that LyX could help with...

 And LaTeX itself is
 sufficiently well-structured, and human readable, that I doubt you'd have
 too much trouble generating it. I can imagine something kind of like the old
 Perl cgi interface: a set of routines that completely hides what LaTeX is
 doing, but allows you to generate the document via a series of simple calls,
 like: doc-makeSection('My Section'), and so forth.

This is exactly my plan (or the basics of it).  Since a few things
might get lost in the translation, I'll work on building such
functions that give the most stable final output.  Since I'm only
concerned about the final output, I wont have to work on making both
the LaTeX-PS output and the msword render the same (though this would
be highly convenient).

Thanks a lot!
  Simon


Re: Anyone used Lytex?

2009-09-29 Thread Paul Johnson
On Tue, Sep 8, 2009 at 3:13 PM, Sharma, Vivek shar...@upmc.edu wrote:
 Hi

 I do not have administrative privileges at work computers but am so dependent 
 on using lyx for my writing and want to be able to use it on a USB drive or a 
 network drive that I have access to. I wondered if anyone has used Lytex  as 
 suggested in the wiki?
 I tried it and get error messages. The home page for Lytex does not give any 
 email addresses for requesting help.

 Regards
 Vivek

If I were you, I'd compile LyX in my user account. All it requires is
a --prefix option to build it to install under your home.  I build
things and run from /home/pauljohn/packages all the time.

pj

If you want us to advise you about Lytex,  you should please provide
a precise URL so I can see what the hell you are talking about.


-- 
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas


AW: xy-pic: referencing diagrams?

2009-09-29 Thread Jannick Asmus
In case I was not too clear below, I am referring to the package 
xy-pic.


how can diagrams created with the xy-package be labelled for 
references? Furthermore, I would like to label the diagram with 
Diagram #label. How can this be done?


This is known for equations and that works pretty well. Now I would 
like to reference to diagrams within my document while the diagrams 
are labelled like, say, tables.


Thanks for your input.

J. 





instant preview ignores some indices

2009-09-29 Thread Jannick Asmus

Hi,

the instant preview ignores some of the indices. E.g., $\Phi_{K}$ is 
correctly displayed whereas $\Phi_{\mathbb{Q}}$ ignores the index. The 
source is copied from the source code window.


Can this be amended?

I am using LyX 1.6.4. on WinVista.

Best wishes,
J. 





"undo" math code?

2009-09-29 Thread Jannick Asmus

Hi,

is it possible to undo the math code - which should be the inverse to 
ctrl+m - in LyX?


Thanks!

Best wishes,
J. 





Re: "undo" math code?

2009-09-29 Thread Jean-Marc Lasgouttes
"Jannick Asmus"  writes:

> Hi,
>
> is it possible to undo the math code - which should be the inverse to
> ctrl+m - in LyX?

I do not understand. AFAICS, undo works well after Ctrl+m.

JMarc


Re: "undo" math code?

2009-09-29 Thread Guenter Milde
On 2009-09-29, Jean-Marc Lasgouttes wrote:
> "Jannick Asmus"  writes:

>> Hi,

>> is it possible to undo the math code - which should be the inverse to
>> ctrl+m - in LyX?

> I do not understand. AFAICS, undo works well after Ctrl+m.

I suppose the aim is to reverse the LaTeX-Code -> math-inset conversion.

This can be done selecting the content of the math-inset (but not the
inset itself), copying (Ctrl-C) and pasting as text (Ctrl-V *outside* a
math inset). It might also work pasting with the middle mouse button.

Günter




AW: "undo" math code?

2009-09-29 Thread Jannick Asmus

Guenter Milde wrote:


On 2009-09-29, Jean-Marc Lasgouttes wrote:


is it possible to undo the math code - which should be the inverse 
to

ctrl+m - in LyX?



I do not understand. AFAICS, undo works well after Ctrl+m.


I suppose the aim is to reverse the LaTeX-Code -> math-inset 
conversion.


This can be done selecting the content of the math-inset (but not 
the
inset itself), copying (Ctrl-C) and pasting as text (Ctrl-V 
*outside* a
math inset). It might also work pasting with the middle mouse 
button.


Thanks. That works perfectly.

J. 





Re: instant preview ignores some indices

2009-09-29 Thread Paul A. Rubin

Jannick Asmus wrote:

Hi,

the instant preview ignores some of the indices. E.g., $\Phi_{K}$ is 
correctly displayed whereas $\Phi_{\mathbb{Q}}$ ignores the index. The 
source is copied from the source code window.


Can this be amended?

I am using LyX 1.6.4. on WinVista.

Best wishes,
J.




In Document > Settings > Math Options, uncheck "Use AMS Math package 
automatically" and check "Use AMS Math package".  Alternatively, you can 
add \usepackage{amssymb} to the preamble.  If LyX had noticed other 
things in the document that required AMS Math, it would have loaded the 
packages automatically, but apparently it did not.


/Paul



Re: Beamer portrait mode

2009-09-29 Thread Paul A. Rubin

E. Kaplan wrote:
Still no clue as to how to force Beamer to make slides in PORTRAIT mode, 
and whether it is possible to do it for individual slides in an 
otherwise landscape presentation...




I don't think it's possible.  Slide dimensions are hard-coded into 
Beamer.  In the Beamer user guide, section 24.2 (which covers the 
beamerseminar package), it explicitly says that portrait slides (which 
seminar apparently allows) are not supported.


/Paul



Re: Sudden crashes in LyX 16.4

2009-09-29 Thread Stefano Franchi
On Sunday 27 September 2009 04:49:38 am Jürgen Spitzmüller wrote:
> Stefano Franchi wrote:
> > I recently updated to 1.6.4 and I experiencing crashes I did not have
> >  before.  These happen when working on a large document (a book) which is
> >  made up of several smaller files (the chapters). Lyx quits suddenly when
> >  scrolling the main . Can anyone remind me of which debug option I should
> >  choose to obtain any meaningful output in the terminal?
> 
> What OS are you on?
> 
> If you have gdb, try to get a backtrace as described here:
> http://wiki.lyx.org/FAQ/FurtherHelp#toc4
> 
> Also, try to condense your document to a minimal text case that shows the
> behaviour.
> 
> Jürgen
> 

Well, I think I have encountered a bug related to the "preview" of input 
files. The backtrace (as far as I can tell) reports a problem with graphic 
functions, but there were no graphics on screen when the crash occurred. There 
was a preview of one of the chapters of the book, however (that is, the 
chapter was listed in the document as an input file, and the "show preview" 
checkbox in the settings panel was ticked).

With the file previewed, scrolling past the end of the previewed text or 
before its beginning caused a crash. If I turn preview off, no crash occurs.

I am still working on a minimal example. So far my attempts have failed: a 
master file with just one or two input files in preview mode seems to be 
working fine. So there may be some other condition that triggers the crash.

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. 

For the time being, I am switching my "input" statements to "include."

gdb output just before the crash and following backtrace:

latex failed to compile 1lyxpreview.tex

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f9b6fa1f750 (LWP 26016)]
0x0064d757 in lyx::RenderPreview::imageReady ()
(gdb)
(gdb) bt
#0  0x0064d757 in lyx::RenderPreview::imageReady ()
#1  0x008e37dc in boost::function1::operator() ()
#2  0x008e4272 in boost::signal1::operator() ()
#3  0x00727f0c in boost::function0::operator() ()
#4  0x008d31cd in boost::signal0::operator() ()
#5  0x00727f0c in boost::function0::operator() ()
#6  0x008d31cd in boost::signal0::operator() ()
#7  0x008d1fce in 
lyx::graphics::CacheItem::Impl::convertToDisplayFormat ()
#8  0x008d924e in lyx::graphics::LoaderQueue::loadNext ()
#9  0x00727f0c in boost::function0::operator() ()
#10 0x008d31cd in boost::signal0::operator() ()
#11 0x009159d5 in lyx::Timeout::emit ()
#12 0x7f9b6e560263 in QObject::event (this=0x3a91c10, e=0x3ae2768) at 
kernel/qobject.cpp:1075
#13 0x7f9b6e9e5f4d in QApplicationPrivate::notify_helper (this=0x11d5790, 
receiver=0x3a91c10, e=0x7fff77a62900)
at kernel/qapplication.cpp:4056
#14 0x7f9b6e9ee18a in QApplication::notify (this=0x11d3d20, 
receiver=0x3a91c10, e=0x7fff77a62900) at kernel/qapplication.cpp:4021
#15 0x0071e4f8 in lyx::frontend::GuiApplication::notify ()
#16 0x7f9b6e5506ac in QCoreApplication::notifyInternal (this=0x11d3d20, 
receiver=0x3a91c10, event=0x7fff77a62900)
at kernel/qcoreapplication.cpp:610
#17 0x7f9b6e57d516 in QTimerInfoList::activateTimers (this=0x11e4060)
at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#18 0x7f9b6e579b2d in timerSourceDispatch (source=) 
at kernel/qeventdispatcher_glib.cpp:165
#19 0x7f9b6c40e20a in g_main_context_dispatch () from 
/usr/lib/libglib-2.0.so.0
#20 0x7f9b6c4118e0 in ?? () from /usr/lib/libglib-2.0.so.0
#21 0x7f9b6c411a7c in g_main_context_iteration () from 
/usr/lib/libglib-2.0.so.0
#22 0x7f9b6e579a8f in QEventDispatcherGlib::processEvents (this=0x1190a40, 
flags=)
at kernel/qeventdispatcher_glib.cpp:327
#23 0x7f9b6ea7ebdf in QGuiEventDispatcherGlib::processEvents 
(this=0x30001, flags=)
at kernel/qguieventdispatcher_glib.cpp:202
#24 0x7f9b6e54ef42 in QEventLoop::processEvents (this=, flags={i = 2007378800}) at kernel/qeventloop.cpp:149
#25 0x7f9b6e54f314 in QEventLoop::exec (this=0x7fff77a62bb0, flags={i = 
2007378880}) at kernel/qeventloop.cpp:201
#26 0x7f9b6e5515e4 in QCoreApplication::exec () at 
kernel/qcoreapplication.cpp:888
#27 0x004e1484 in lyx::LyX::exec ()
#28 0x 
__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas A University  

xy-package: referencing diagrams?

2009-09-29 Thread Jannick Asmus

Hi,

how can diagrams created with the xy-package be labelled for 
references? Furthermore, I would like to label the diagram with 
"Diagram #label". How can this be done?


Thanks for your input.

Greets,
J. 





AW: instant preview ignores some indices

2009-09-29 Thread Jannick Asmus

Paul A. Rubin wrote:

the instant preview ignores some of the indices. E.g., $\Phi_{K}$ 
is correctly displayed whereas $\Phi_{\mathbb{Q}}$ ignores the 
index. The source is copied from the source code window.


Can this be amended?

I am using LyX 1.6.4. on WinVista.


In Document > Settings > Math Options, uncheck "Use AMS Math package 
automatically" and check "Use AMS Math package".  Alternatively, you 
can add \usepackage{amssymb} to the preamble.  If LyX had noticed 
other things in the document that required AMS Math, it would have 
loaded the packages automatically, but apparently it did not.


That works. At this occacion I cleaned my preamble since it was new to 
me that with "Use AMS Math package" checked every missing Math package 
is automatically loaded.


Thanks a lot !!!

Best wishes,
J. 





Locating nomenclature items (outline)

2009-09-29 Thread James C. Sutherland
I really like the LyX outline feature that allows you to easily locate  
figures, equations, tables, etc. in your document.  However, there  
doesn't seem to be support for nomenclature entries.  Does anyone know  
if such a feature exists in LyX without resorting to a text editor?


Thanks,

James


Re: Beamer portrait mode

2009-09-29 Thread Stefano Baroni

SORRY: I sent this to EK only in the first place

...

By googling "beamer portrait" I found, omong others, the following:

http://www-i6.informatik.rwth-aachen.de/~dreuw/latexbeamerposter.php
http://en.kioskea.net/faq/sujet-3011-latex-beamer-transparent-a4-portrait

HTH - SB

On Sep 29, 2009, at 5:42 AM, E. Kaplan wrote:

Still no clue as to how to force Beamer to make slides in PORTRAIT  
mode, and whether it is possible to do it for individual slides in  
an otherwise landscape presentation...


EK




---
Stefano Baroni - SISSA  &  DEMOCRITOS National Simulation Center -  
Trieste
http://stefano.baroni.me [+39] 040 3787 406 (tel) -528 (fax) /  
stefanobaroni (skype)


La morale est une logique de l'action comme la logique est une morale  
de la pensée - Jean Piaget


Please, if possible, don't  send me MS Word or PowerPoint attachments
Why? See:  http://www.gnu.org/philosophy/no-word-attachments.html









LyX, child documents and \addtocontents

2009-09-29 Thread Daniel Owens
I am using LyX 1.6.4 with MikTeX, compiling using XeTeX (in case it 
matters), to format a dissertation.


I want to use child documents, but when I move all my chapters to child 
documents (chapter1.lyx, etc.), I have a problem with the table of 
contents. I have added a line in ERT to add "Chapter" above the first 
chapter in the TOC:


\addtocontents{toc}{\noindent CHAPTER \par}

It should look like this:

Chapter
   1. My First Chapter
   2. My Second Chapter

As long as I have the first chapter in the main LyX document, this works 
fine. Subsequent chapters can be in child documents--no problem.


If Chapter 1 is in a child document and included, then CHAPTER shows up 
in the TOC just after the first chapter and before the second chapter:


   1. My First Chapter
Chapter
   2. My Second Chapter

I can't think of why this is happening, though if I add some random text 
between the ERT and the Include: chapter1.lyx, it solves the problem 
(but adds unwanted text). It is as if the ERT is placed after the 
include command, but it's not--it's before.


Any ideas about how to fix this?

Daniel


Re: LyX, child documents and \addtocontents

2009-09-29 Thread Daniel Owens
To answer my own posting, I discovered that if I used Include: Input, 
the problem was solved. I thought I'd thought of everything...


Daniel Owens wrote:
I am using LyX 1.6.4 with MikTeX, compiling using XeTeX (in case it 
matters), to format a dissertation.


I want to use child documents, but when I move all my chapters to 
child documents (chapter1.lyx, etc.), I have a problem with the table 
of contents. I have added a line in ERT to add "Chapter" above the 
first chapter in the TOC:


\addtocontents{toc}{\noindent CHAPTER \par}

It should look like this:

Chapter
   1. My First Chapter
   2. My Second Chapter

As long as I have the first chapter in the main LyX document, this 
works fine. Subsequent chapters can be in child documents--no problem.


If Chapter 1 is in a child document and included, then CHAPTER shows 
up in the TOC just after the first chapter and before the second chapter:


   1. My First Chapter
Chapter
   2. My Second Chapter

I can't think of why this is happening, though if I add some random 
text between the ERT and the Include: chapter1.lyx, it solves the 
problem (but adds unwanted text). It is as if the ERT is placed after 
the include command, but it's not--it's before.


Any ideas about how to fix this?

Daniel



Starting LyX 1.6.4 with maximized window / Locale

2009-09-29 Thread Hellmut Weber

Hi list,

I have a small but annoying problem:

since i upgraded to 1.6.4 lyx starts every time with a small window in 
the upper left corner of my screen.
Although I maximize the window and close LyX with the maximized window 
next time when opening the small window appears.


I have set

>>tools >Preferences >look & feel >User interface >session
 >Restore window layouts and geometries

Can I do something else?


Additionally, LyX ignores my locale which is set to de_DE.utf8 and comes 
up with the english menus, even if I call it with


LANG="de_DE.utf8" lyx fr_Inhalte+Zentral.lyx or
LC_ALL="de_DE.utf8" lyx fr_Inhalte+Zentral.lyx

Neither in ~/.lyx nor in /usr/share/lyx did I see anything which seemed 
helpful in these respects.


TIA

Hellmut

--
Dr. Hellmut Weber m...@hellmutweber.de
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq



(newbie) Scripting, MSword and Lyx

2009-09-29 Thread Simon
"hello world!"

Hi I'm Simon, I'm considering Lyx for my use, but I'd like your
opinion before I try it.  I'm currently downloading/compiling it on my
gentoo desktop, so meanwhile I thought I'd ask!

In a nutshell:
  I need a programmer-friendly way to output good looking documents
compatible with current MS word.  This is my problem.  I thought if
LyX can output to word documents, maybe I'm getting close to a
solution, but also, I'm sure you guys (this community i mean) also
have experience with some of my concerns and might be able to help me
out.

In details:
  I often need to write documents containing technical or repetitive
information that I feel a script would do better and faster.  (I could
write one to create such document in html within a few minutes).
These documents are opened by business people that know nothing
outside of their MS universe (a secretary once refused a PDF i sent
her saying she couldnt open it, that's 2 years ago!  I bet the
extension.rtf wouldnt do as good as .doc either...).  Some of them
have locked down computers and cant install or change anything, some
are scared about anything different and some just dont bother.
Another reason (quite a good one) is that sometimes these people need
to edit those documents and the only tool really suitable for them is
MSword...  These people are not under my supervision, they are my
partners, my clients, some employers, etc...  random business people.

  While on the other hand, authoring documents with MS tools is
extremely painful to me (i got the skin of a tux i guess!) and working
with OpenOffice is also quite painful...  I've tried converting HTML
to Office documents and got great results sometimes, while I got
horrible results other times (compatibility issue, like the story
about MSword not allowing tables inside tables!).  Conversion seems a
dangerous route (specially that I only own an old copy of office to
test the result...).

  I used to do my lab reports and several homework in LaTeX long ago
when I was in highschool and college, so I do have some memory of what
it's like to use tex.

The ideal route would be:myProg -> (lyx?)  -> msword

Thanks in advance for help and suggestions,
  Simon =)


Re: Starting LyX 1.6.4 with maximized window / Locale

2009-09-29 Thread rgheck

On 09/29/2009 06:43 PM, Hellmut Weber wrote:

Hi list,

I have a small but annoying problem:

since i upgraded to 1.6.4 lyx starts every time with a small window in 
the upper left corner of my screen.
Although I maximize the window and close LyX with the maximized window 
next time when opening the small window appears.


I have set

>>tools >Preferences >look & feel >User interface >session
>Restore window layouts and geometries

Can I do something else?

Try deleting the sessions file from ~/.lyx. That may be the issue. You 
could have a permissions problem somewhere, too, that are preventing LyX 
from writing a sensible sessions file.




Re: (newbie) Scripting, MSword and Lyx

2009-09-29 Thread rgheck

On 09/29/2009 07:13 PM, Simon wrote:

   While on the other hand, authoring documents with MS tools is
extremely painful to me (i got the skin of a tux i guess!) and working
with OpenOffice is also quite painful...  I've tried converting HTML
to Office documents and got great results sometimes, while I got
horrible results other times (compatibility issue, like the story
about MSword not allowing tables inside tables!).  Conversion seems a
dangerous route (specially that I only own an old copy of office to
test the result...).

   I used to do my lab reports and several homework in LaTeX long ago
when I was in highschool and college, so I do have some memory of what
it's like to use tex.

The ideal route would be:myProg ->  (lyx?)  ->  msword

   
Something like this can work, but conversion from LyX to * generally 
relies upon LyX->LaTeX->*, though there is an exception, namely, the 
elyxer LyX->HTML converter. Whether you'd get decent results with that, 
given the problems you said you already had with HTML->Word, is hard to say.


That said, there are decent LaTeX->RTF converters, which means there's a 
decent LyX->RTF converter, and there's a good LaTeX->ODT converter, 
namely, the oolatex program that comes with tex4ht. People often have 
problems with oolatex on Windows, but it seems to work real well on 
Linux. Of course, you'd then have to do a manual ODT->Word (or 
RTF-->Word) conversion in OOo, or write a simple script to do it using 
the OOo scripting capabilities. And then you have yet another step in 
the conversion chain, so YMMV, obviously.


So, *all* of that said, given that you're going via LaTeX anyway, and 
given that we're talking about generating this document programatically, 
I'd think that writing your script to generate LaTeX is going to be a 
lot easier than writing it to generate LyX's native file format, which 
is not exactly made for such things. Though you could use LyX's other 
scripting capabilities, via the so-called LyX server, to create the 
document, that seems to me like overkill, if what you want in the end is 
LaTeX. And LaTeX itself is sufficiently well-structured, and human 
readable, that I doubt you'd have too much trouble generating it. I can 
imagine something kind of like the old Perl cgi interface: a set of 
routines that completely hides what LaTeX is doing, but allows you to 
generate the document via a series of simple calls, like: 
doc->makeSection('My Section'), and so forth.


Anyway, hope that helps.

rh



Re: (newbie) Scripting, MSword and Lyx

2009-09-29 Thread Andrew Sullivan
On Tue, Sep 29, 2009 at 07:13:30PM -0400, Simon wrote:
>   I need a programmer-friendly way to output good looking documents
> compatible with current MS word.

The only way I've been able to get LyX or LaTeX documents into native
Word format is to go by way of OpenOffice.org, and there are a bunch
of missing features that way (most irritating to me is that so far in
my experience, cross-references are always lost).  I don't think LyX
is the right tool for your job if you really want native Word format.

A

-- 
Andrew Sullivan
a...@shinkuro.com
Shinkuro, Inc.


Re: (newbie) Scripting, MSword and Lyx

2009-09-29 Thread Simon
Thanks a lot for the quick reply!

> Something like this can work, but conversion from LyX to * generally relies
> upon LyX->LaTeX->*, though there is an exception, namely, the elyxer
> LyX->HTML converter. Whether you'd get decent results with that, given the
> problems you said you already had with HTML->Word, is hard to say.
>
> That said, there are decent LaTeX->RTF converters, which means there's a
> decent LyX->RTF converter, and there's a good LaTeX->ODT converter, namely,
> the oolatex program that comes with tex4ht. People often have problems with
> oolatex on Windows, but it seems to work real well on Linux. Of course,
> you'd then have to do a manual ODT->Word (or RTF-->Word) conversion in OOo,
> or write a simple script to do it using the OOo scripting capabilities. And
> then you have yet another step in the conversion chain, so YMMV, obviously.

I think I'll give a try to the route involving LaTeX and RTF, without
using LyX...  this seems promising enough.  I wonder if the RTF route
(compared to HTML) can do a better job at handling page breaks and
complex tables...  I guess I'll have to give it a try to know! But
thanks a lot for the several possibilities you ennumerated, gives me a
few good options! =)

> So, *all* of that said, given that you're going via LaTeX anyway, and given
> that we're talking about generating this document programatically, I'd think
> that writing your script to generate LaTeX is going to be a lot easier than
> writing it to generate LyX's native file format, which is not exactly made
> for such things.

I think you're right.  I mainly thought LyX could output msword
documents...  but I've done my homework and read several pages on the
website/wiki and seems like anything2msword is tricky!

> Though you could use LyX's other scripting capabilities,
> via the so-called LyX server, to create the document, that seems to me like
> overkill, if what you want in the end is LaTeX.

What's most overkill is that I'd have to learn LyX for so little
advantage after all...  unless there are some other advantages related
to my tasks that LyX could help with...

> And LaTeX itself is
> sufficiently well-structured, and human readable, that I doubt you'd have
> too much trouble generating it. I can imagine something kind of like the old
> Perl cgi interface: a set of routines that completely hides what LaTeX is
> doing, but allows you to generate the document via a series of simple calls,
> like: doc->makeSection('My Section'), and so forth.

This is exactly my plan (or the basics of it).  Since a few things
might "get lost in the translation", I'll work on building such
functions that give the most stable final output.  Since I'm only
concerned about the final output, I wont have to work on making both
the LaTeX->PS output and the msword render the same (though this would
be highly convenient).

Thanks a lot!
  Simon


Re: Anyone used Lytex?

2009-09-29 Thread Paul Johnson
On Tue, Sep 8, 2009 at 3:13 PM, Sharma, Vivek  wrote:
> Hi
>
> I do not have administrative privileges at work computers but am so dependent 
> on using lyx for my writing and want to be able to use it on a USB drive or a 
> network drive that I have access to. I wondered if anyone has used Lytex  as 
> suggested in the wiki?
> I tried it and get error messages. The home page for Lytex does not give any 
> email addresses for requesting help.
>
> Regards
> Vivek
>
If I were you, I'd compile LyX in my user account. All it requires is
a --prefix option to build it to install under your home.  I build
things and run from /home/pauljohn/packages all the time.

pj

If you want us to advise you about "Lytex",  you should please provide
a precise URL so I can see what the hell you are talking about.


-- 
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas


AW: xy-pic: referencing diagrams?

2009-09-29 Thread Jannick Asmus
In case I was not too clear below, I am referring to the package 
xy-pic.


how can diagrams created with the xy-package be labelled for 
references? Furthermore, I would like to label the diagram with 
"Diagram #label". How can this be done?


This is known for equations and that works pretty well. Now I would 
like to reference to diagrams within my document while the diagrams 
are labelled like, say, tables.


Thanks for your input.

J.