problems opening a lyx 1.5.6 file with lyx 1.6.3

2009-08-11 Thread Niall Robinson

Hello,

I'm trying to open a report I wrote with Lyx 1.5.6 in 1.6.3 and am 
getting LOTS of different errors. It seems odd that the old version of 
lyx doesn't complain though. I don't know weather I'm doing something 
stupid with the setup of the new version of lyx. The errors mostly 
consist of Undefined control sequence and LaTeX error: cannot 
determine size of graphic  some figure. I've tried setting a new 
document and pasting things in section at a time till I get an error and 
then seeing if I can sort that. However I just tried to put a subfigure 
in and it seems to have cause loads of errors in the text that has been 
working this far.

As I say the document works perfectly in Lyx 1.5.6

Thanks for any help. I really don't want to have to type this again
Niall


Re: problems opening a lyx 1.5.6 file with lyx 1.6.3

2009-08-11 Thread Jürgen Spitzmüller
Niall Robinson wrote:
 I'm trying to open a report I wrote with Lyx 1.5.6 in 1.6.3 and am
 getting LOTS of different errors. It seems odd that the old version of
 lyx doesn't complain though. I don't know weather I'm doing something
 stupid with the setup of the new version of lyx. The errors mostly
 consist of Undefined control sequence and LaTeX error: cannot
 determine size of graphic  some figure. I've tried setting a new
 document and pasting things in section at a time till I get an error and
 then seeing if I can sort that. However I just tried to put a subfigure
 in and it seems to have cause loads of errors in the text that has been
 working this far.

Could you send me the document in private mail? Some import problems have been 
fixed since 1.6.3, I can check if yours is among them (or try to fix it 
otherwise).

Jürgen


RE: problems opening a lyx 1.5.6 file with lyx 1.6.3

2009-08-11 Thread Vincent van Ravesteijn - TNW
 
I'm trying to open a report I wrote with Lyx 1.5.6 in
1.6.3 and am getting LOTS of different errors. 

We really need some more information and, preferably, a minimal example
or else the document itself.


Vincent


Re: How to get a preview for custom graphics format?

2009-08-11 Thread Daniel Lohmann


On 09.08.2009, at 17:31, Pavel Sanda wrote:


Daniel Lohmann wrote:

Your  help is highly appreciated!


try to mimic http://www.lyx.org/trac/changeset/27914
and ask for inclusion if you succeed. you may also
want to comment on bug 4882.


Hi Pavel,

Thanks for your answer!

However, I have to admit that I don't really get what you suggest me  
to do. As I read 27914, this introduces Dia support via  
external_templates. Does that mean that it is *not possible* to  
achieve goal (1) (the preview in LyX, everything else works) via file  
formats and converters only?  Do I have to go the external_templates  
route?


Thanks!

Daniel




Hi,

Even though I consider myself a LyX master in many respects, the  
exact usage of File Formats, Converters and External  
Material... have always remained a mystery to me. Today I gave it  
another try (LyX 1.6.3-mac) -- and failed again.


So here is what I want to achieve:

I have some TikZ figures (which are actually stand-alone LaTeX- 
documents with the extension .tikz) that I want to embed (not the  
source, but the PDF/EPS via \includegraphics) into my LyX document  
in a way that (1) the LyX-Preview does work (2) PDF generation does  
work, and (3) the .tikz-file is opened in vim when I select Edit  
externally...


So far I got (2) and (3) working, but not (1):

-- Under [File Handling -- File formats] I have added a new file  
format TikZ as Vector graphics format,Short Name: Tikz,  
Extension: tikz, and Editor: vim.


-- Under [File Handling -- Converters] I have added a Converter  
Definition TikZ -- PDF (ps2pdf)with Converter: pdflatex $$i


If I now embed a .tikz-file, external editing and PDF generation  
works fine, but LyX is not able to show a preview. As I interpret  
the output of lyx -dbg graphics, LyX does not know how to  
generate a pixmap  from the input format (TikZ). Do I have to  
define a converter to some pixmap format as well?  How to do so?


This is pretty confusing. As I understand the manuals (don't  
remember where exactly I have read this) LyX should be able to  
deduce its route through conversion rules automatically, that is,  
to convert from TikZ to PDF first  and then from PDF to the pixmap  
required for the preview functionality.


Re: How to get a preview for custom graphics format?

2009-08-11 Thread Pavel Sanda
Daniel Lohmann wrote:
 that mean that it is *not possible* to achieve goal (1) (the preview in 
 LyX, everything else works) via file formats and converters only?

unless imagemagick convert utility knows how to deal with it (i think it 
doesn't)
i'm not aware of such a plain route.
pavel


New literate programming with Lyx

2009-08-11 Thread Sam Liddicott
I've posted on http://www.lyx.org/trac/attachment/ticket/6137/
my alternative literate programming style with Lyx. I put this together
because literate programming with noweb and Lyx has been absolutely
awful in so many ways - if I wasn't a sed wizard I'd have given up.

I encourage people to try this and to give feedback.

A literate class is no longer used, you can have any document class and
add the Newfangle Literate Listings module to your document.

Your document will no longer be the literate format, so you add a
build script as a conversion from Latex to Program

Noweave is not needed, but is (mostly) impemented as Latex macros.

The excellent lstlistings package is used for format the listings; it
has good support for syntax highlighting, line-numbering and so forth.

Because lstlistings is used server-goto-file-row almost works, so
compile errors bring you to the write lstlistings at least - but not the
actual line number,

notangle (which was buggy) is not used to generate the source, instead
an awk script, newfangle, is used, fixing various notangle bugs.

A new style Chunk is defined which can be used to easily name your
next lstlisting (otherwise right-clicking and using advanced) is a bit
long winded and you can't see the name you give it once you clicked OK.

Tomorrow I hope to post the chapter that produces a Makefile.inc which
automatically extracts all file sources, and can also glue into another
build system using recursive make (if you are writing literate modules
for an existing project).

Future:
I'm planning to add markup conversions between chunks; so that (for
instance) a shell-script fragment when included into a makefile will
automatically have $ converted to $$, and line endings with a \ for
multi-line shell script. This works nicely with lstlistings language
support.

There's already basic support for including fragments into some comment
contexts:

# frag
will cause each line of frag to being with #

frag \
causes each line of frag to end with \, ideal when C code is being
included into a mutli-line C macro.

Sam


Go Away Drawer

2009-08-11 Thread Bruce Pourciau
In LyX 1.6.3, how cam I make the Table of Contents drawer go away?  
Also, after I set the window size and position for one file, LyX 1.5.6  
would open all subsequent files in that window, but 1.6.3 opens some  
subsequent files (those it hasn't seen before) in a small window which  
I then have to resize. Any way to fix this?


Bruce


RE: Go Away Drawer

2009-08-11 Thread Vincent van Ravesteijn - TNW
 
In LyX 1.6.3, how cam I make the Table of Contents drawer go away?  

By pressing the small 'x' ?


Also, after I set the window size and position for
one file, LyX 1.5.6 would open all subsequent files
in that window, but 1.6.3 opens some subsequent files
(those it hasn't seen before) in a small window which
I then have to resize. Any way to fix this?

You're probably on a Mac then, you can turn off the fact that we open a
new view for each document by checking:

Tools-Preferences-Look  Feel-Open Document in Tabs.

A new view is opened with a default size. Maybe it's a good idea to
resize a new view to the size of the view that has last been resized.

Bruce

Vincent


Re: Problems with indentation and linguistics module (covington)

2009-08-11 Thread Johannes Knaus

Hello again,

After some days of playing around I still haven't found a solution to  
the problem. Indeed it seems a very tricky business.


It seems that \leftmargin is completely ignored:

\setlength{\leftmargin}{2pt}
or
\setlength{\leftmargin}{92pt}

do not change anything in the pdf-output.

The labels are still standing out/are not aligned with the leftmargin  
of the main text.

Here's the whole relevant part of the preamble:

%correctly adjustment of covington examples
\renewenvironment{example}{%
\begin{examples}
\settowidth{\labelwidth}{(0.00)}
\setlength{\leftmargin}{92pt}
\item}
{\end{examples}}

Can you/someone help me?

Johannes



Am 06.08.2009 um 19:21 schrieb Jürgen Spitzmüller:


Johannes Knaus wrote:

I added these lines to the preamble and now the numbers are correctly
indented but on the beginning/the left side they stand out a little
bit, seen from the left textborder.
That isn't the case without the lines above.


You need to play with other list values such as \leftmargin.  
Adjusting lists

can be a tricky business.

Jürgen


Re: hi friends of lyx

2009-08-11 Thread rgheck

On 08/11/2009 12:53 PM, Adrian Diaz wrote:

Hi rgheck
I am writing my thesis with lyx 1.6.3, and i have set up the Document 
Class:

book (more font sizes) and in Page Layout -  Headings Style: headings.
I would like to watch all numbers of pages at the botton of center on each
page. However there are number of pages which appear at the top rigth  of
some pages.


Which pages are these? Is there any pattern?
Yes, there is a pattern. For example: when on the firts page where 
appear Chapter and the name of the chapter, the number of page 
appears at the botton center, however the next page until the last 
page (where the chapter end) the numbers of pages appear at the top 
right. The file example_numeration.jpg shows

a example.
That's normal behavior for the headings style. Page numbers are upper 
right (actually, upper outer, for two-sided), but bottom center for 
starts of chapters, etc. If you want to modify this, you'll need to use 
fancyhdr, I think, which is discussed in one or another of the LyX docs.


rh

PS Keep discussion on the list, in case someone else has a better 
answer! And also in case others want to know the answer


changing margins in article class when using Beamer

2009-08-11 Thread Graham M Smith
I'm using Beamer, and producing a presentation handout by switching to 
the beamer article class, which defaults to wide margins.


If I change the margins in documents settings, this then prevents the 
beamer slides being produced (I get a compile error). I assume I can put 
something in the preamble that will switch the margins for beamer 
article only, but don't know what this might be.


Can anyone help with this?

Many thanks,

Graham


How to embed a spreadsheet in LyX or LaTeX?

2009-08-11 Thread Steve Litt
Hi all,

How can I embed a spreadsheet (MS Excel I assume) into a LyX or LaTeX 
document?

Thanks

SteveT

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




Re: changing margins in article class when using Beamer

2009-08-11 Thread rgheck

On 08/11/2009 03:27 PM, Graham M Smith wrote:
I'm using Beamer, and producing a presentation handout by switching to 
the beamer article class, which defaults to wide margins.


If I change the margins in documents settings, this then prevents the 
beamer slides being produced (I get a compile error). I assume I can 
put something in the preamble that will switch the margins for beamer 
article only, but don't know what this might be.


If you can find some macro that is defined in this case, but not in the 
other case, then all you need is:

\ifx\thatmacro\undefined\relax\else
 your stuff here 
\fi
I don't know what \thatmacro might be, though.

rh



Re: How to embed a spreadsheet in LyX or LaTeX?

2009-08-11 Thread rgheck

On 08/11/2009 03:31 PM, Steve Litt wrote:

Hi all,

How can I embed a spreadsheet (MS Excel I assume) into a LyX or LaTeX
document?

   
What do you want them to look like? Do you want them to be editable? If 
not, then export to csv and you can use the import filter.


If you do want it to be editable, then I have no idea.

rh



Re: How to embed a spreadsheet in LyX or LaTeX?

2009-08-11 Thread Hellmut Weber

Steve Litt schrieb:

Hi all,

How can I embed a spreadsheet (MS Excel I assume) into a LyX or LaTeX 
document?


Thanks

SteveT

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





Hi Steve,

in Excel

* mark the cells you wnat to show in your document
* export marked area to eps

in LyX
--
* import eps graphic

So you have a scalable graphic and no problems with bitmap resolution

HTH

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



Re: changing margins in article class when using Beamer

2009-08-11 Thread Graham M Smith

rh
If you can find some macro that is defined in this case, but not in 
the other case, then all you need is:

\ifx\thatmacro\undefined\relax\else
 your stuff here 
\fi
I don't know what \thatmacro might be, though.
Thanks, but unfortunately, this doesn't mean very much to me, I confess 
I was hoping for a single options line in the preamble :-(


Graham


Chapter styles...

2009-08-11 Thread Frederick Noronha [फ़रेदरिक नोरो नया]
Could someone tell me where I could find more chapter styles for a book? I
mean something like http://zoonek.free.fr/LaTeX/LaTeX_samples_chapter/0.html
Many thanks in advance. FN
-- 
FN +91-9822122436 P +91-832-2409490
Konkani adages  http://konkani-adages.notlong.com/
Medieval Goa http://medieval-goa.notlong.com/


Re: How to embed a spreadsheet in LyX or LaTeX?

2009-08-11 Thread Phil

You might also try excel2latex


  


Re: Lyx 1.6.3 Can I ditch the pointNclick list of open files below the toolbars???

2009-08-11 Thread Joe(theWordy)Philbrook

It would appear that on Aug 7, Vincent van Ravesteijn did say:

 Magically, the dropdownbox is also shown when the toolbar is hidden (after
 Alt-P space)

Well Vincent, I'm glad to hear that it's supposed to work like that.
But it doesn't work that way for me...

I'm using LyX 1.6.3 as emerged for Sabayon Linux 4.2 (the kde/x86-64
version)... When I edited /usr/share/lyx/ui/classic.ui to say:
standard off,top
and restarted LyX, I tried the alt+P[space] shortcut.

When I first pressed alt+P the status line at the bottom of the LyX
window displayed a long list of options. When I completed the shortcut
by tapping the spacebar the status line briefly indicated that I had
pressed the spacebar, but the dropdownbox did NOT magically appear.

Perhaps this automagic behavior is dependent on the windowmanager?

I installed the kde version of Sabayon rather than the gnome version
because I'm used to having all the kde tools available to me and I
never liked gnome's interface. HOWEVER kde4 caused me to run screaming
into the arms of enlightenment. And I'm currently using e17 for my
window manager rather than putting up with kde4. Perhaps that could
have something to do with the dropdownbox failing to automagicly appear?

-- 
|  ~^~   ~^~
|  ?   ? Joe (theWordy) Philbrook
|  ^  J(tWdy)P
|\___/ jtw...@ttlc.net



Re: Lyx 1.6.3 Can I ditch the pointNclick list of open files below the toolbars???

2009-08-11 Thread rgheck

On 08/11/2009 07:41 PM, Joe(theWordy)Philbrook wrote:

It would appear that on Aug 7, Vincent van Ravesteijn did say:

   

Magically, the dropdownbox is also shown when the toolbar is hidden (after
Alt-Pspace)
 


Well Vincent, I'm glad to hear that it's supposed to work like that.
But it doesn't work that way for me...

I'm using LyX 1.6.3 as emerged for Sabayon Linux 4.2 (the kde/x86-64
version)... When I edited /usr/share/lyx/ui/classic.ui to say:
 standard off,top
and restarted LyX, I tried thealt+P[space] shortcut.

When I first pressedalt+P  the status line at the bottom of the LyX
window displayed a long list of options. When I completed the shortcut
by tapping the spacebar the status line briefly indicated that I had
pressed the spacebar, but the dropdownbox did NOT magically appear.

Perhaps this automagic behavior is dependent on the windowmanager?

I installed the kde version of Sabayon rather than the gnome version
because I'm used to having all the kde tools available to me and I
never liked gnome's interface. HOWEVER kde4 caused me to run screaming
into the arms of enlightenment. And I'm currently using e17 for my
window manager rather than putting up with kde4. Perhaps that could
have something to do with the dropdownbox failing to automagicly appear?

   
This shouldn't be WM dependent, except in so far as the WM might steal 
keypresses. But I can't see that that's very likely here.


Do other alt-p options work?

I think if the paragraph layout selection combo isn't displayed, then 
the shortcut Alt-p+space won't work. It's displayed or not?


FWIW, I stuck with kde 3.5.x for a long time, but am pretty happy with 
kde 4.2.x and expect to be a lot happier with kede 4.3.x. There are 
differences but most of what you're accustomed to can be done now.


rh




problems opening a lyx 1.5.6 file with lyx 1.6.3

2009-08-11 Thread Niall Robinson

Hello,

I'm trying to open a report I wrote with Lyx 1.5.6 in 1.6.3 and am 
getting LOTS of different errors. It seems odd that the old version of 
lyx doesn't complain though. I don't know weather I'm doing something 
stupid with the setup of the new version of lyx. The errors mostly 
consist of Undefined control sequence and LaTeX error: cannot 
determine size of graphic  some figure. I've tried setting a new 
document and pasting things in section at a time till I get an error and 
then seeing if I can sort that. However I just tried to put a subfigure 
in and it seems to have cause loads of errors in the text that has been 
working this far.

As I say the document works perfectly in Lyx 1.5.6

Thanks for any help. I really don't want to have to type this again
Niall


Re: problems opening a lyx 1.5.6 file with lyx 1.6.3

2009-08-11 Thread Jürgen Spitzmüller
Niall Robinson wrote:
 I'm trying to open a report I wrote with Lyx 1.5.6 in 1.6.3 and am
 getting LOTS of different errors. It seems odd that the old version of
 lyx doesn't complain though. I don't know weather I'm doing something
 stupid with the setup of the new version of lyx. The errors mostly
 consist of Undefined control sequence and LaTeX error: cannot
 determine size of graphic  some figure. I've tried setting a new
 document and pasting things in section at a time till I get an error and
 then seeing if I can sort that. However I just tried to put a subfigure
 in and it seems to have cause loads of errors in the text that has been
 working this far.

Could you send me the document in private mail? Some import problems have been 
fixed since 1.6.3, I can check if yours is among them (or try to fix it 
otherwise).

Jürgen


RE: problems opening a lyx 1.5.6 file with lyx 1.6.3

2009-08-11 Thread Vincent van Ravesteijn - TNW
 
I'm trying to open a report I wrote with Lyx 1.5.6 in
1.6.3 and am getting LOTS of different errors. 

We really need some more information and, preferably, a minimal example
or else the document itself.


Vincent


Re: How to get a preview for custom graphics format?

2009-08-11 Thread Daniel Lohmann


On 09.08.2009, at 17:31, Pavel Sanda wrote:


Daniel Lohmann wrote:

Your  help is highly appreciated!


try to mimic http://www.lyx.org/trac/changeset/27914
and ask for inclusion if you succeed. you may also
want to comment on bug 4882.


Hi Pavel,

Thanks for your answer!

However, I have to admit that I don't really get what you suggest me  
to do. As I read 27914, this introduces Dia support via  
external_templates. Does that mean that it is *not possible* to  
achieve goal (1) (the preview in LyX, everything else works) via file  
formats and converters only?  Do I have to go the external_templates  
route?


Thanks!

Daniel




Hi,

Even though I consider myself a LyX master in many respects, the  
exact usage of File Formats, Converters and External  
Material... have always remained a mystery to me. Today I gave it  
another try (LyX 1.6.3-mac) -- and failed again.


So here is what I want to achieve:

I have some TikZ figures (which are actually stand-alone LaTeX- 
documents with the extension .tikz) that I want to embed (not the  
source, but the PDF/EPS via \includegraphics) into my LyX document  
in a way that (1) the LyX-Preview does work (2) PDF generation does  
work, and (3) the .tikz-file is opened in vim when I select Edit  
externally...


So far I got (2) and (3) working, but not (1):

-- Under [File Handling -- File formats] I have added a new file  
format TikZ as Vector graphics format,Short Name: Tikz,  
Extension: tikz, and Editor: vim.


-- Under [File Handling -- Converters] I have added a Converter  
Definition TikZ -- PDF (ps2pdf)with Converter: pdflatex $$i


If I now embed a .tikz-file, external editing and PDF generation  
works fine, but LyX is not able to show a preview. As I interpret  
the output of lyx -dbg graphics, LyX does not know how to  
generate a pixmap  from the input format (TikZ). Do I have to  
define a converter to some pixmap format as well?  How to do so?


This is pretty confusing. As I understand the manuals (don't  
remember where exactly I have read this) LyX should be able to  
deduce its route through conversion rules automatically, that is,  
to convert from TikZ to PDF first  and then from PDF to the pixmap  
required for the preview functionality.


Re: How to get a preview for custom graphics format?

2009-08-11 Thread Pavel Sanda
Daniel Lohmann wrote:
 that mean that it is *not possible* to achieve goal (1) (the preview in 
 LyX, everything else works) via file formats and converters only?

unless imagemagick convert utility knows how to deal with it (i think it 
doesn't)
i'm not aware of such a plain route.
pavel


New literate programming with Lyx

2009-08-11 Thread Sam Liddicott
I've posted on http://www.lyx.org/trac/attachment/ticket/6137/
my alternative literate programming style with Lyx. I put this together
because literate programming with noweb and Lyx has been absolutely
awful in so many ways - if I wasn't a sed wizard I'd have given up.

I encourage people to try this and to give feedback.

A literate class is no longer used, you can have any document class and
add the Newfangle Literate Listings module to your document.

Your document will no longer be the literate format, so you add a
build script as a conversion from Latex to Program

Noweave is not needed, but is (mostly) impemented as Latex macros.

The excellent lstlistings package is used for format the listings; it
has good support for syntax highlighting, line-numbering and so forth.

Because lstlistings is used server-goto-file-row almost works, so
compile errors bring you to the write lstlistings at least - but not the
actual line number,

notangle (which was buggy) is not used to generate the source, instead
an awk script, newfangle, is used, fixing various notangle bugs.

A new style Chunk is defined which can be used to easily name your
next lstlisting (otherwise right-clicking and using advanced) is a bit
long winded and you can't see the name you give it once you clicked OK.

Tomorrow I hope to post the chapter that produces a Makefile.inc which
automatically extracts all file sources, and can also glue into another
build system using recursive make (if you are writing literate modules
for an existing project).

Future:
I'm planning to add markup conversions between chunks; so that (for
instance) a shell-script fragment when included into a makefile will
automatically have $ converted to $$, and line endings with a \ for
multi-line shell script. This works nicely with lstlistings language
support.

There's already basic support for including fragments into some comment
contexts:

# frag
will cause each line of frag to being with #

frag \
causes each line of frag to end with \, ideal when C code is being
included into a mutli-line C macro.

Sam


Go Away Drawer

2009-08-11 Thread Bruce Pourciau
In LyX 1.6.3, how cam I make the Table of Contents drawer go away?  
Also, after I set the window size and position for one file, LyX 1.5.6  
would open all subsequent files in that window, but 1.6.3 opens some  
subsequent files (those it hasn't seen before) in a small window which  
I then have to resize. Any way to fix this?


Bruce


RE: Go Away Drawer

2009-08-11 Thread Vincent van Ravesteijn - TNW
 
In LyX 1.6.3, how cam I make the Table of Contents drawer go away?  

By pressing the small 'x' ?


Also, after I set the window size and position for
one file, LyX 1.5.6 would open all subsequent files
in that window, but 1.6.3 opens some subsequent files
(those it hasn't seen before) in a small window which
I then have to resize. Any way to fix this?

You're probably on a Mac then, you can turn off the fact that we open a
new view for each document by checking:

Tools-Preferences-Look  Feel-Open Document in Tabs.

A new view is opened with a default size. Maybe it's a good idea to
resize a new view to the size of the view that has last been resized.

Bruce

Vincent


Re: Problems with indentation and linguistics module (covington)

2009-08-11 Thread Johannes Knaus

Hello again,

After some days of playing around I still haven't found a solution to  
the problem. Indeed it seems a very tricky business.


It seems that \leftmargin is completely ignored:

\setlength{\leftmargin}{2pt}
or
\setlength{\leftmargin}{92pt}

do not change anything in the pdf-output.

The labels are still standing out/are not aligned with the leftmargin  
of the main text.

Here's the whole relevant part of the preamble:

%correctly adjustment of covington examples
\renewenvironment{example}{%
\begin{examples}
\settowidth{\labelwidth}{(0.00)}
\setlength{\leftmargin}{92pt}
\item}
{\end{examples}}

Can you/someone help me?

Johannes



Am 06.08.2009 um 19:21 schrieb Jürgen Spitzmüller:


Johannes Knaus wrote:

I added these lines to the preamble and now the numbers are correctly
indented but on the beginning/the left side they stand out a little
bit, seen from the left textborder.
That isn't the case without the lines above.


You need to play with other list values such as \leftmargin.  
Adjusting lists

can be a tricky business.

Jürgen


Re: hi friends of lyx

2009-08-11 Thread rgheck

On 08/11/2009 12:53 PM, Adrian Diaz wrote:

Hi rgheck
I am writing my thesis with lyx 1.6.3, and i have set up the Document 
Class:

book (more font sizes) and in Page Layout -  Headings Style: headings.
I would like to watch all numbers of pages at the botton of center on each
page. However there are number of pages which appear at the top rigth  of
some pages.


Which pages are these? Is there any pattern?
Yes, there is a pattern. For example: when on the firts page where 
appear Chapter and the name of the chapter, the number of page 
appears at the botton center, however the next page until the last 
page (where the chapter end) the numbers of pages appear at the top 
right. The file example_numeration.jpg shows

a example.
That's normal behavior for the headings style. Page numbers are upper 
right (actually, upper outer, for two-sided), but bottom center for 
starts of chapters, etc. If you want to modify this, you'll need to use 
fancyhdr, I think, which is discussed in one or another of the LyX docs.


rh

PS Keep discussion on the list, in case someone else has a better 
answer! And also in case others want to know the answer


changing margins in article class when using Beamer

2009-08-11 Thread Graham M Smith
I'm using Beamer, and producing a presentation handout by switching to 
the beamer article class, which defaults to wide margins.


If I change the margins in documents settings, this then prevents the 
beamer slides being produced (I get a compile error). I assume I can put 
something in the preamble that will switch the margins for beamer 
article only, but don't know what this might be.


Can anyone help with this?

Many thanks,

Graham


How to embed a spreadsheet in LyX or LaTeX?

2009-08-11 Thread Steve Litt
Hi all,

How can I embed a spreadsheet (MS Excel I assume) into a LyX or LaTeX 
document?

Thanks

SteveT

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




Re: changing margins in article class when using Beamer

2009-08-11 Thread rgheck

On 08/11/2009 03:27 PM, Graham M Smith wrote:
I'm using Beamer, and producing a presentation handout by switching to 
the beamer article class, which defaults to wide margins.


If I change the margins in documents settings, this then prevents the 
beamer slides being produced (I get a compile error). I assume I can 
put something in the preamble that will switch the margins for beamer 
article only, but don't know what this might be.


If you can find some macro that is defined in this case, but not in the 
other case, then all you need is:

\ifx\thatmacro\undefined\relax\else
 your stuff here 
\fi
I don't know what \thatmacro might be, though.

rh



Re: How to embed a spreadsheet in LyX or LaTeX?

2009-08-11 Thread rgheck

On 08/11/2009 03:31 PM, Steve Litt wrote:

Hi all,

How can I embed a spreadsheet (MS Excel I assume) into a LyX or LaTeX
document?

   
What do you want them to look like? Do you want them to be editable? If 
not, then export to csv and you can use the import filter.


If you do want it to be editable, then I have no idea.

rh



Re: How to embed a spreadsheet in LyX or LaTeX?

2009-08-11 Thread Hellmut Weber

Steve Litt schrieb:

Hi all,

How can I embed a spreadsheet (MS Excel I assume) into a LyX or LaTeX 
document?


Thanks

SteveT

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





Hi Steve,

in Excel

* mark the cells you wnat to show in your document
* export marked area to eps

in LyX
--
* import eps graphic

So you have a scalable graphic and no problems with bitmap resolution

HTH

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



Re: changing margins in article class when using Beamer

2009-08-11 Thread Graham M Smith

rh
If you can find some macro that is defined in this case, but not in 
the other case, then all you need is:

\ifx\thatmacro\undefined\relax\else
 your stuff here 
\fi
I don't know what \thatmacro might be, though.
Thanks, but unfortunately, this doesn't mean very much to me, I confess 
I was hoping for a single options line in the preamble :-(


Graham


Chapter styles...

2009-08-11 Thread Frederick Noronha [फ़रेदरिक नोरो नया]
Could someone tell me where I could find more chapter styles for a book? I
mean something like http://zoonek.free.fr/LaTeX/LaTeX_samples_chapter/0.html
Many thanks in advance. FN
-- 
FN +91-9822122436 P +91-832-2409490
Konkani adages  http://konkani-adages.notlong.com/
Medieval Goa http://medieval-goa.notlong.com/


Re: How to embed a spreadsheet in LyX or LaTeX?

2009-08-11 Thread Phil

You might also try excel2latex


  


Re: Lyx 1.6.3 Can I ditch the pointNclick list of open files below the toolbars???

2009-08-11 Thread Joe(theWordy)Philbrook

It would appear that on Aug 7, Vincent van Ravesteijn did say:

 Magically, the dropdownbox is also shown when the toolbar is hidden (after
 Alt-P space)

Well Vincent, I'm glad to hear that it's supposed to work like that.
But it doesn't work that way for me...

I'm using LyX 1.6.3 as emerged for Sabayon Linux 4.2 (the kde/x86-64
version)... When I edited /usr/share/lyx/ui/classic.ui to say:
standard off,top
and restarted LyX, I tried the alt+P[space] shortcut.

When I first pressed alt+P the status line at the bottom of the LyX
window displayed a long list of options. When I completed the shortcut
by tapping the spacebar the status line briefly indicated that I had
pressed the spacebar, but the dropdownbox did NOT magically appear.

Perhaps this automagic behavior is dependent on the windowmanager?

I installed the kde version of Sabayon rather than the gnome version
because I'm used to having all the kde tools available to me and I
never liked gnome's interface. HOWEVER kde4 caused me to run screaming
into the arms of enlightenment. And I'm currently using e17 for my
window manager rather than putting up with kde4. Perhaps that could
have something to do with the dropdownbox failing to automagicly appear?

-- 
|  ~^~   ~^~
|  ?   ? Joe (theWordy) Philbrook
|  ^  J(tWdy)P
|\___/ jtw...@ttlc.net



Re: Lyx 1.6.3 Can I ditch the pointNclick list of open files below the toolbars???

2009-08-11 Thread rgheck

On 08/11/2009 07:41 PM, Joe(theWordy)Philbrook wrote:

It would appear that on Aug 7, Vincent van Ravesteijn did say:

   

Magically, the dropdownbox is also shown when the toolbar is hidden (after
Alt-Pspace)
 


Well Vincent, I'm glad to hear that it's supposed to work like that.
But it doesn't work that way for me...

I'm using LyX 1.6.3 as emerged for Sabayon Linux 4.2 (the kde/x86-64
version)... When I edited /usr/share/lyx/ui/classic.ui to say:
 standard off,top
and restarted LyX, I tried thealt+P[space] shortcut.

When I first pressedalt+P  the status line at the bottom of the LyX
window displayed a long list of options. When I completed the shortcut
by tapping the spacebar the status line briefly indicated that I had
pressed the spacebar, but the dropdownbox did NOT magically appear.

Perhaps this automagic behavior is dependent on the windowmanager?

I installed the kde version of Sabayon rather than the gnome version
because I'm used to having all the kde tools available to me and I
never liked gnome's interface. HOWEVER kde4 caused me to run screaming
into the arms of enlightenment. And I'm currently using e17 for my
window manager rather than putting up with kde4. Perhaps that could
have something to do with the dropdownbox failing to automagicly appear?

   
This shouldn't be WM dependent, except in so far as the WM might steal 
keypresses. But I can't see that that's very likely here.


Do other alt-p options work?

I think if the paragraph layout selection combo isn't displayed, then 
the shortcut Alt-p+space won't work. It's displayed or not?


FWIW, I stuck with kde 3.5.x for a long time, but am pretty happy with 
kde 4.2.x and expect to be a lot happier with kede 4.3.x. There are 
differences but most of what you're accustomed to can be done now.


rh




problems opening a lyx 1.5.6 file with lyx 1.6.3

2009-08-11 Thread Niall Robinson

Hello,

I'm trying to open a report I wrote with Lyx 1.5.6 in 1.6.3 and am 
getting LOTS of different errors. It seems odd that the old version of 
lyx doesn't complain though. I don't know weather I'm doing something 
stupid with the setup of the new version of lyx. The errors mostly 
consist of "Undefined control sequence" and "LaTeX error: cannot 
determine size of graphic " . I've tried setting a new 
document and pasting things in section at a time till I get an error and 
then seeing if I can sort that. However I just tried to put a subfigure 
in and it seems to have cause loads of errors in the text that has been 
working this far.

As I say the document works perfectly in Lyx 1.5.6

Thanks for any help. I really don't want to have to type this again
Niall


Re: problems opening a lyx 1.5.6 file with lyx 1.6.3

2009-08-11 Thread Jürgen Spitzmüller
Niall Robinson wrote:
> I'm trying to open a report I wrote with Lyx 1.5.6 in 1.6.3 and am
> getting LOTS of different errors. It seems odd that the old version of
> lyx doesn't complain though. I don't know weather I'm doing something
> stupid with the setup of the new version of lyx. The errors mostly
> consist of "Undefined control sequence" and "LaTeX error: cannot
> determine size of graphic " . I've tried setting a new
> document and pasting things in section at a time till I get an error and
> then seeing if I can sort that. However I just tried to put a subfigure
> in and it seems to have cause loads of errors in the text that has been
> working this far.

Could you send me the document in private mail? Some import problems have been 
fixed since 1.6.3, I can check if yours is among them (or try to fix it 
otherwise).

Jürgen


RE: problems opening a lyx 1.5.6 file with lyx 1.6.3

2009-08-11 Thread Vincent van Ravesteijn - TNW
 
>I'm trying to open a report I wrote with Lyx 1.5.6 in
>1.6.3 and am getting LOTS of different errors. 

We really need some more information and, preferably, a minimal example
or else the document itself.


Vincent


Re: How to get a preview for "custom" graphics format?

2009-08-11 Thread Daniel Lohmann


On 09.08.2009, at 17:31, Pavel Sanda wrote:


Daniel Lohmann wrote:

Your  help is highly appreciated!


try to mimic http://www.lyx.org/trac/changeset/27914
and ask for inclusion if you succeed. you may also
want to comment on bug 4882.


Hi Pavel,

Thanks for your answer!

However, I have to admit that I don't really get what you suggest me  
to do. As I read 27914, this introduces "Dia" support via  
external_templates. Does that mean that it is *not possible* to  
achieve goal (1) (the preview in LyX, everything else works) via file  
formats and converters only?  Do I have to go the external_templates  
route?


Thanks!

Daniel




Hi,

Even though I consider myself a "LyX master" in many respects, the  
exact usage of "File Formats", "Converters" and "External  
Material..." have always remained a mystery to me. Today I gave it  
another try (LyX 1.6.3-mac) -- and failed again.


So here is what I want to achieve:

I have some TikZ figures (which are actually stand-alone LaTeX- 
documents with the extension .tikz) that I want to embed (not the  
source, but the PDF/EPS via \includegraphics) into my LyX document  
in a way that (1) the LyX-Preview does work (2) PDF generation does  
work, and (3) the .tikz-file is opened in vim when I select "Edit  
externally..."


So far I got (2) and (3) working, but not (1):

-- Under [File Handling --> File formats] I have added a new file  
format "TikZ" as Vector graphics format,Short Name: "Tikz",  
Extension: "tikz", and Editor: "vim".


-- Under [File Handling --> Converters] I have added a Converter  
Definition "TikZ --> PDF (ps2pdf)"with Converter: "pdflatex $$i"


If I now embed a .tikz-file, external editing and PDF generation  
works fine, but LyX is not able to show a preview. As I interpret  
the output of "lyx -dbg graphics", LyX does not know how to  
generate a pixmap  from the input format ("TikZ"). Do I have to  
define a converter to some pixmap format as well?  How to do so?


This is pretty confusing. As I understand the manuals (don't  
remember where exactly I have read this) LyX should be able to  
deduce its route through conversion rules automatically, that is,  
to convert from TikZ to PDF first  and then from PDF to the pixmap  
required for the preview functionality.


Re: How to get a preview for "custom" graphics format?

2009-08-11 Thread Pavel Sanda
Daniel Lohmann wrote:
> that mean that it is *not possible* to achieve goal (1) (the preview in 
> LyX, everything else works) via file formats and converters only?

unless imagemagick convert utility knows how to deal with it (i think it 
doesn't)
i'm not aware of such a plain route.
pavel


New literate programming with Lyx

2009-08-11 Thread Sam Liddicott
I've posted on http://www.lyx.org/trac/attachment/ticket/6137/
my alternative literate programming style with Lyx. I put this together
because literate programming with noweb and Lyx has been absolutely
awful in so many ways - if I wasn't a sed wizard I'd have given up.

I encourage people to try this and to give feedback.

A literate class is no longer used, you can have any document class and
add the "Newfangle Literate Listings" module to your document.

Your document will no longer be the "literate" format, so you add a
build script as a conversion from "Latex" to "Program"

Noweave is not needed, but is (mostly) impemented as Latex macros.

The excellent lstlistings package is used for format the listings; it
has good support for syntax highlighting, line-numbering and so forth.

Because lstlistings is used server-goto-file-row almost works, so
compile errors bring you to the write lstlistings at least - but not the
actual line number,

notangle (which was buggy) is not used to generate the source, instead
an awk script, newfangle, is used, fixing various notangle bugs.

A new style "Chunk" is defined which can be used to easily name your
next lstlisting (otherwise right-clicking and using advanced) is a bit
long winded and you can't see the name you give it once you clicked OK.

Tomorrow I hope to post the chapter that produces a Makefile.inc which
automatically extracts all file sources, and can also glue into another
build system using recursive make (if you are writing literate modules
for an existing project).

Future:
I'm planning to add markup conversions between chunks; so that (for
instance) a shell-script fragment when included into a makefile will
automatically have $ converted to $$, and line endings with a \ for
multi-line shell script. This works nicely with lstlistings language
support.

There's already basic support for including fragments into some comment
contexts:

# <>
will cause each line of frag to being with #

<> \
causes each line of frag to end with \, ideal when C code is being
included into a mutli-line C macro.

Sam


Go Away Drawer

2009-08-11 Thread Bruce Pourciau
In LyX 1.6.3, how cam I make the Table of Contents drawer go away?  
Also, after I set the window size and position for one file, LyX 1.5.6  
would open all subsequent files in that window, but 1.6.3 opens some  
subsequent files (those it hasn't seen before) in a small window which  
I then have to resize. Any way to fix this?


Bruce


RE: Go Away Drawer

2009-08-11 Thread Vincent van Ravesteijn - TNW
 
>In LyX 1.6.3, how cam I make the Table of Contents drawer go away?  

By pressing the small 'x' ?


>Also, after I set the window size and position for
>one file, LyX 1.5.6 would open all subsequent files
>in that window, but 1.6.3 opens some subsequent files
>(those it hasn't seen before) in a small window which
>I then have to resize. Any way to fix this?

You're probably on a Mac then, you can turn off the fact that we open a
new view for each document by checking:

Tools->Preferences->Look & Feel->Open Document in Tabs.

A new view is opened with a default size. Maybe it's a good idea to
resize a new view to the size of the view that has last been resized.

>Bruce

Vincent


Re: Problems with indentation and linguistics module (covington)

2009-08-11 Thread Johannes Knaus

Hello again,

After some days of playing around I still haven't found a solution to  
the problem. Indeed it seems a very tricky business.


It seems that \leftmargin is completely ignored:

\setlength{\leftmargin}{2pt}
or
\setlength{\leftmargin}{92pt}

do not change anything in the pdf-output.

The labels are still standing out/are not aligned with the leftmargin  
of the main text.

Here's the whole relevant part of the preamble:

%correctly adjustment of covington examples
\renewenvironment{example}{%
\begin{examples}
\settowidth{\labelwidth}{(0.00)}
\setlength{\leftmargin}{92pt}
\item}
{\end{examples}}

Can you/someone help me?

Johannes



Am 06.08.2009 um 19:21 schrieb Jürgen Spitzmüller:


Johannes Knaus wrote:

I added these lines to the preamble and now the numbers are correctly
indented but on the beginning/the left side they stand out a little
bit, seen from the left textborder.
That isn't the case without the lines above.


You need to play with other list values such as \leftmargin.  
Adjusting lists

can be a tricky business.

Jürgen


Re: hi friends of lyx

2009-08-11 Thread rgheck

On 08/11/2009 12:53 PM, Adrian Diaz wrote:

Hi rgheck
I am writing my thesis with lyx 1.6.3, and i have set up the Document 
Class:

book (more font sizes) and in Page Layout ->  Headings Style: headings.
I would like to watch all numbers of pages at the botton of center on each
page. However there are number of pages which appear at the top rigth  of
some pages.


Which pages are these? Is there any pattern?
Yes, there is a pattern. For example: when on the firts page where 
appear "Chapter" and the name of the chapter, the number of page 
appears at the botton center, however the next page until the last 
page (where the chapter end) the numbers of pages appear at the top 
right. The file example_numeration.jpg shows

a example.
That's normal behavior for the headings style. Page numbers are upper 
right (actually, upper outer, for two-sided), but bottom center for 
starts of chapters, etc. If you want to modify this, you'll need to use 
fancyhdr, I think, which is discussed in one or another of the LyX docs.


rh

PS Keep discussion on the list, in case someone else has a better 
answer! And also in case others want to know the answer


changing margins in article class when using Beamer

2009-08-11 Thread Graham M Smith
I'm using Beamer, and producing a presentation handout by switching to 
the beamer article class, which defaults to wide margins.


If I change the margins in documents settings, this then prevents the 
beamer slides being produced (I get a compile error). I assume I can put 
something in the preamble that will switch the margins for beamer 
article only, but don't know what this might be.


Can anyone help with this?

Many thanks,

Graham


How to embed a spreadsheet in LyX or LaTeX?

2009-08-11 Thread Steve Litt
Hi all,

How can I embed a spreadsheet (MS Excel I assume) into a LyX or LaTeX 
document?

Thanks

SteveT

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




Re: changing margins in article class when using Beamer

2009-08-11 Thread rgheck

On 08/11/2009 03:27 PM, Graham M Smith wrote:
I'm using Beamer, and producing a presentation handout by switching to 
the beamer article class, which defaults to wide margins.


If I change the margins in documents settings, this then prevents the 
beamer slides being produced (I get a compile error). I assume I can 
put something in the preamble that will switch the margins for beamer 
article only, but don't know what this might be.


If you can find some macro that is defined in this case, but not in the 
other case, then all you need is:

\ifx\thatmacro\undefined\relax\else
 your stuff here 
\fi
I don't know what \thatmacro might be, though.

rh



Re: How to embed a spreadsheet in LyX or LaTeX?

2009-08-11 Thread rgheck

On 08/11/2009 03:31 PM, Steve Litt wrote:

Hi all,

How can I embed a spreadsheet (MS Excel I assume) into a LyX or LaTeX
document?

   
What do you want them to look like? Do you want them to be editable? If 
not, then export to csv and you can use the import filter.


If you do want it to be editable, then I have no idea.

rh



Re: How to embed a spreadsheet in LyX or LaTeX?

2009-08-11 Thread Hellmut Weber

Steve Litt schrieb:

Hi all,

How can I embed a spreadsheet (MS Excel I assume) into a LyX or LaTeX 
document?


Thanks

SteveT

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





Hi Steve,

in Excel

* mark the cells you wnat to show in your document
* export marked area to eps

in LyX
--
* import eps graphic

So you have a scalable graphic and no problems with bitmap resolution

HTH

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



Re: changing margins in article class when using Beamer

2009-08-11 Thread Graham M Smith

rh
If you can find some macro that is defined in this case, but not in 
the other case, then all you need is:

\ifx\thatmacro\undefined\relax\else
 your stuff here 
\fi
I don't know what \thatmacro might be, though.
Thanks, but unfortunately, this doesn't mean very much to me, I confess 
I was hoping for a single options line in the preamble :-(


Graham


Chapter styles...

2009-08-11 Thread Frederick Noronha [फ़रेदरिक नोरो नया]
Could someone tell me where I could find more chapter styles for a book? I
mean something like http://zoonek.free.fr/LaTeX/LaTeX_samples_chapter/0.html
Many thanks in advance. FN
-- 
FN +91-9822122436 P +91-832-2409490
Konkani adages  http://konkani-adages.notlong.com/
Medieval Goa http://medieval-goa.notlong.com/


Re: How to embed a spreadsheet in LyX or LaTeX?

2009-08-11 Thread Phil

You might also try excel2latex


  


Re: Lyx 1.6.3 Can I ditch the pointNclick list of open files below the toolbars???

2009-08-11 Thread Joe(theWordy)Philbrook

It would appear that on Aug 7, Vincent van Ravesteijn did say:

> Magically, the dropdownbox is also shown when the toolbar is hidden (after
> Alt-P )

Well Vincent, I'm glad to hear that it's supposed to work like that.
But it doesn't work that way for me...

I'm using LyX 1.6.3 as emerged for Sabayon Linux 4.2 (the kde/x86-64
version)... When I edited /usr/share/lyx/ui/classic.ui to say:
"standard" "off,top"
and restarted LyX, I tried the +[space] shortcut.

When I first pressed + the status line at the bottom of the LyX
window displayed a long list of options. When I completed the shortcut
by tapping the spacebar the status line briefly indicated that I had
pressed the spacebar, but the dropdownbox did NOT "magically" appear.

Perhaps this "automagic" behavior is dependent on the windowmanager?

I installed the kde version of Sabayon rather than the gnome version
because I'm used to having all the kde tools available to me and I
never liked gnome's interface. HOWEVER kde4 caused me to run screaming
into the arms of enlightenment. And I'm currently using e17 for my
window manager rather than putting up with kde4. Perhaps that could
have something to do with the dropdownbox failing to automagicly appear?

-- 
|  ~^~   ~^~
|  Joe (theWordy) Philbrook
|  ^  J(tWdy)P
|\___/ <>



Re: Lyx 1.6.3 Can I ditch the pointNclick list of open files below the toolbars???

2009-08-11 Thread rgheck

On 08/11/2009 07:41 PM, Joe(theWordy)Philbrook wrote:

It would appear that on Aug 7, Vincent van Ravesteijn did say:

   

Magically, the dropdownbox is also shown when the toolbar is hidden (after
Alt-P)
 


Well Vincent, I'm glad to hear that it's supposed to work like that.
But it doesn't work that way for me...

I'm using LyX 1.6.3 as emerged for Sabayon Linux 4.2 (the kde/x86-64
version)... When I edited /usr/share/lyx/ui/classic.ui to say:
 "standard" "off,top"
and restarted LyX, I tried the+[space] shortcut.

When I first pressed+  the status line at the bottom of the LyX
window displayed a long list of options. When I completed the shortcut
by tapping the spacebar the status line briefly indicated that I had
pressed the spacebar, but the dropdownbox did NOT "magically" appear.

Perhaps this "automagic" behavior is dependent on the windowmanager?

I installed the kde version of Sabayon rather than the gnome version
because I'm used to having all the kde tools available to me and I
never liked gnome's interface. HOWEVER kde4 caused me to run screaming
into the arms of enlightenment. And I'm currently using e17 for my
window manager rather than putting up with kde4. Perhaps that could
have something to do with the dropdownbox failing to automagicly appear?

   
This shouldn't be WM dependent, except in so far as the WM might steal 
keypresses. But I can't see that that's very likely here.


Do other alt-p options work?

I think if the paragraph layout selection combo isn't displayed, then 
the shortcut Alt-p+ won't work. It's displayed or not?


FWIW, I stuck with kde 3.5.x for a long time, but am pretty happy with 
kde 4.2.x and expect to be a lot happier with kede 4.3.x. There are 
differences but most of what you're accustomed to can be done now.


rh