Greek in Lyx

2006-05-19 Thread Jörn Kobes

Greeting to all folks,

I have a question: in which way can I write text in Lyx in 
Polutoniko (ancient) Greek? Normally, I write Greek with:

\usepackage[polutonikogreek,german]{babel}; but how in Lyx (1.4.1)?

Thanks for helpful informations,

Jörn
--
**
Dr. Jörn Kobes, Hauptstr. 60, 55595 Gutenberg
Mail:  [EMAIL PROTECTED]
Fon:   +49 67 06 / 91 51 13 -- mobil: + 49 160 115 0693
WWW: www.computus-druck.de
**


Equation numbering corresponding to section number

2006-05-19 Thread Liu Feng
Hi,Sir
I could not number equations like 5.1, 5.2 within
section 5.1 in Chapter 5. All eaqutions numbered just
start from (1),(2) in global way. How to number
eqaution according to the number of section or the
number of chapter.
BTW,I am using 'book' doc. class with lyx-1.4 in Win
XP
Frank

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Re: make a .pdf of part of a document

2006-05-19 Thread christian . ridderstrom

On Thu, 18 May 2006, Steve Litt wrote:


On Wednesday 17 May 2006 09:50 pm, Paul A. Rubin wrote:

mail.k wrote:

Is it possible to make a .pdf of a specific chapter or section of a long
document (not the whole document)?

regards,
eran


Method 1: Stick everything except the desired part in comments (and hope
this does not screw up the pagination, or leave cross-references
undefined).

Method 2: Make a PDF of the entire document, then use Ghostscript to
produce a PDF of selected pages, as in the following (which extracts
pages 3 through 5 inclusive from sourcefile.pdf):

gsc -dFirstPage=3 -dLastPage=5 -sDEVICE=pdfwrite -sOutputFile=test.pdf
-dBATCH -dNOPAUSE sourcefile.pdf

Method 3: I use a PDF printer driver (PDFCreator) that, like most
printer drivers, can output selected pages.  So I can print the document
to it from Acrobat Reader and extract just the pages I want.


Method 4:

pdftk sourcefile.pdf cat 130-140 output test.pdf

You can find pdftk here:

http://www.accesspdf.com/pdftk/

It can do lots of other stuff, including merging pdfs, splitting pdfs,
reading, inserting and changing metadata, and lots more. I first heard about
it on this list.


May I suggest that you add these methods/tips to this page:

http://wiki.lyx.org/FAQ/PDF

Or, if this subject is complicated enought to deserve a page of it's own, 
how about creating this page


http://wiki.lyx.org/Tips/HowToIncludePDF

(I'm not happy with the page name, but that's life...)

sincere regards
/Christian

--
Christian Ridderstrצm, +46-8-768 39 44   http://www.md.kth.se/~chr

Re: Nonprintable text in pdf output SOLVED

2006-05-19 Thread christian . ridderstrom



On Saturday 08 April 2006 09:07 pm, [EMAIL PROTECTED] wrote:

On Sat, 8 Apr 2006, Steve Litt wrote:

Hi Steve

I think I understand what you're doing, but would you mind explaining why?

best regards
/Christian

PS. Then I could add what you wrote to some wiki page if you'd like, but
only if I can understand the purpose :-)


Hi Steve

For some reason I had a copy of your post left in my folder... I've added 
some comments to this page


http://wiki.lyx.org/Tips/AddingInvisibleTagToPDF

So I'm not sure why, maybe I was waiting for some kind of comment from 
you?


Anyway, the page is there now :-)

/Christian




On Sun, 9 Apr 2006, Steve Litt wrote:

Sure Christian,

I'm publishing an Ebook in PDF format. I want to discourage copying, but don't
want to do obnoxious DRM like not allowing printing, degrading printing, or
locking it to a specific computer.

So I do 2 things:

1) Print the customer's name in a footer at the bottom of the page (which is
why I asked before how to get a footer to print from paper edge to paper
edge). This discourages the customer from giving the PDF to his friends,
because it's his name on the book, and if it escapes into the wild, it's
obvious who did it. Now you and I probably know at least 3 ways to get rid of
that name, but your average joe doesn't.

2) In case it escapes into the wild and maybe someone altered the name in the
footer, I want a code inside the pdf that doesn't print. The easiest way I
know to do this is to make the code a metadata property with a key and a
value. The key will be a nonobvious string, and the value will look like
gibberish, but I can scan the PDF for the key, get the value, and relate it
back to my book sales.

So to add a key-value pair, you use the pdftk dump_data to write all metadata
to a text file, then append the new key and value to the text file, then
pdftk update_info to put back all the metadata, including the new key value
pair.

You can then use grep to get the line containing the key and value, and sed to
partially remove garbage, and my the listed C program to strip it down to
nothing but the value so it can be assigned to a variable in a script using
backticks or $(mycommand) syntax.

I hope this helps you understand what I was doing, but if you or anyone else
has any questions, please feel free to ask.

Thanks

SteveT




On Saturday 08 April 2006 03:34 pm, Steve Litt wrote:

Hi all,

Is there a way I can have something in my LyX file (maybe a comment
environment or something), and have it occur in the PDF output without
having it print or be viewable?

If that's not possible, is there a way I can brand a PDF with a
number somehow? I have pdftk.

Thanks

SteveT


Here's how it's done, assuming you want to tweak org.pdf so it includes
metadata MYKEY=MYVALUE in the output PDF, tweaked.pdf:

[EMAIL PROTECTED] ~]$ pdftk org.pdf dump_data output mymetadata.txt
[EMAIL PROTECTED] ~]$ echo InfoKey: MYKEY  mymetadata.txt
[EMAIL PROTECTED] ~]$ echo InfoValue: MYVALUE  mymetadata.txt
[EMAIL PROTECTED] ~]$ pdftk org.pdf update_info mymetadata.txt output
tweaked.pdf

You've now put metadata key MYKEY with value MYVALUE into tweaked.pdf.
You can quickly pull that data out with my check_pdf.sh script:

[EMAIL PROTECTED] ~]$ ./check_pdf.sh tweaked.pdf MYKEY
[EMAIL PROTECTED] ~]$

Here's the (bash script) code for check_pdf.sh, which I put in the public
domain and disclaim all warranty and liability:

#!/bin/bash
cat $1 | grep -a $2 | sed -e s/.*$2\s*// |
format_pdf_metadata_value.exe

format_pdf_metadata_value.exe simply grabs the value from the line
containing the key. It should work under Linux or Windows (or BSD, which
I assume would make it Mac compatible). Here is the C source code for
format_pdf_metadata_value.exe, which I put in the public domain and
disclaim all warranty and liability:

#include stdio.h
int main(int argc, char *argv[])
{
int ord = getc(stdin);
int count = 0;

/* GO TO OPENING PAREN */
for(; ord != '('  count  20; count++, ord=getc(stdin));
if(count = 20) /* magic number, much bigger than needed */
{
fprintf(stderr, Value not found\n);
return(1);
}

/* GO PAST OPENING PAREN */
for(; ord == '('; ord=getc(stdin));

/* BLOW OFF LEADING NONPRINTABLES */
for(;((ord  0) || (ord  127)); ord = getc(stdin));

/* PRINT UP TO BUT NOT INCLUDING CLOSING PAREN */
/* DO NOT PRINT ALL THE NULL BYTES */
for(; ord != ')'; ord = getc(stdin))
if(ord != 0)
putc(ord, stdout);
return 0;
}





--
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr

Re: Equation numbering corresponding to section number

2006-05-19 Thread Uwe Stöhr

Liu Feng schrieb:


I could not number equations like 5.1, 5.2 within
section 5.1 in Chapter 5.


Add the following line to your LyX document preamble:

\numberwithin{equation}{chapter}

regards Uwe


A newbie question, please?

2006-05-19 Thread David Neeley

As a newcomer to Lyx and to LaTex, I have a rather simple question
that is so far rather aggravating. Today, I wrote a letter using the
letter style template that shipped with Lyx (1.3.7 for Kubuntu Linux,
with teTeX also installed).

This was a business letter--and of course the template has an inside
address for the recipient. However, try as I might, I could *not* get
it to print the inside address at all. It was missing from the DVI
view and from all printable views (the various PostScript and PDF
options).

I trust there was something I should have known how to find and
adjust--but it doesn't seem to be part of the document properties
settings or paragraph properties settings either. I presume it must be
in the laTeX code?

Thanks for any kind words you can give to point me in the right
direction! I am buried in the various document files--but so far, this
appears to be missing from the Lyx User Guide, anyway.

Another question, if I may--the letter style defaults to justified
text--yet the right margin was anything but completely uniform. I had
to put discretionary hyphens a few places--no big deal, really--but in
other places the right was simply a bit ragged. Since TeX is a
typesetting language, I suspect I have something set up wrong. Any
pointers as to where to begin to look?

Again, thanks very kindly for any suggestions you might be able to
give. From what I have seen thus far, I intend to stick with it and to
continue to climb the learning curve. I can already see where it
should pay off very shortly!

David Neeley


Re: numbered list: space between rows

2006-05-19 Thread Theo
thanx paul,

i found this example. 

http://tug.org/TeXnik/list/intro.pdf

but do i have to write it in the preamble or does the whole block come inside
the ERT (aka TeX-button)?

cheers,
theo




Image before Title?

2006-05-19 Thread Theo
Hi everybody,

i would like to have an image before the title of the document (article), but
the title seems to consist on beeng first on the page and doesn't allow an image
above itself, on the same page.

how can i get an image up there, without changing the document class?

thank,
theo







Re: help with titlesec package - SOLVED

2006-05-19 Thread Marcelo Acuña
  You might try something like:
 
  \renewpagestyle{headings}[OPTIONAL]{
  \headrule
  \sethead{\chaptertitle}{}{\sectiontitle}
  \setfoot{}{\usepage}{}
  }
  
  I put this in preamble and nothing occurs. When I
 add \pagestyle{headings}
  I get error: extra }
  I chequed for {} and all is OK, but error appears.

 I don't know why you are having this problem. It
 works for me. The way to diagnose the problem is to
export to LaTeX and  then compile it manually.
 Richard
 

 I found that with (pagestyles provided by titlesec)
and (tag for cross references in titles of section)
appears errors in compilation (extra }).
 I moved tag from titles to body of text and no more
errors.

 Thanks. Marcelo





_ 
Horóscopos, Salud y belleza, Chistes, Consejos de amor: 
el contenido más divertido para tu celular está en Yahoo! Móvil. 
Obtenelo en http://movil.yahoo.com.ar


Re: Image before Title?

2006-05-19 Thread Uwe Stöhr

Theo wrote:


i would like to have an image before the title of the document (article), but
the title seems to consist on beeng first on the page and doesn't allow an image
above itself, on the same page.


Use the subject environment for that. I attached an example LyX-file.

regards Uwe


test.lyx
Description: application/lyx


Adding TeX class problem

2006-05-19 Thread Eugeny N Dzhurinsky
Hello!

Co-workers sent me some TeX document to work on and class required for this
document. I copied class to /usr/local/share/texmf/latex/company/company.cls
together with EPS images. Then I invoked texhash command as root, and then I
choose Tools-Reconfigure in LyX (1.4.1).

Now I can see company.cls in Tools-TeX information list of TeX classes.

Then I created some dummy layout in $HOME/.lyx/layouts/company.layout which
just defines class and then imports acticle.layout. I was able to use tex2lyx
and it created LyX document for me. But when I opening LyX document, LyX
complains about 

Using default document class, because the class company is unknown.

I can't see this class in document-settings-class either

But I did the exactly same stuff with cv.cls I found somewhere on the net, and 
it
is listed as circullum vitae in class list!

What do I miss?

-- 
Eugene N Dzhurinsky


Re: A newbie question, please?

2006-05-19 Thread Rich Shepard

On Fri, 19 May 2006, David Neeley wrote:


This was a business letter--and of course the template has an inside
address for the recipient. However, try as I might, I could *not* get it to
print the inside address at all. It was missing from the DVI view and from
all printable views (the various PostScript and PDF options).


David,

  First, upgrade from 1.3.7 to 1.4.1. Second, there is a non-intuitive order
of elements in the letter. It's been many years, but I believe that the
signature block has to be entered toward the top of the letter. I was
thinking recently that I need to re-visit how to use LaTeX for letters. Take
a look at the Koma-script series for documentation.

  This might help: http://www.maths.ox.ac.uk/help/faqs/latex/letters.shtml

This is descibed in the LaTeX book by Leslie Lamport and others. A basic
example of its use is

\documentclass{letter}
\address{12 The Street \\ Oxford \\ OX1 1AA}
\name{Me}
\signature{My Signature line}
\begin{document}
\begin{letter}{M. Renault \\ Sorbonne \\ Paris}
\opening{Dear Sir,}

 text of the letter 

\closing{Yours faithfully}
\end{letter}
\end{document}

Additional commands you may use include

\cc{Jane Jones}
\encl{My newest poem}

which can be put after the closing but before the end letter to list those
the letter has been cc'ed to and any documents enclosed.


Another question, if I may--the letter style defaults to justified
text--yet the right margin was anything but completely uniform. I had to
put discretionary hyphens a few places--no big deal, really--but in other
places the right was simply a bit ragged. Since TeX is a typesetting
language, I suspect I have something set up wrong. Any pointers as to where
to begin to look?


  No, you have nothing set incorrectly. The TeX engine sometimes cannot
figure out where to properly break a line, so it juts into the right margin.
It's called an overfull line and needs human correction. You can either
provide hints where the word could be hyphenated (by entering {\-} in ERT
boxes at the appropriate places), or re-writing the sentence so the word
order is different.

  If you're going to be using LaTeX and Lyx extensively, consider purchasing
two references to start:

  Kopka, H. and P.W. Daly. Guide to LaTeX, 4th Edition
  Mittlebach, F. and M. Goossens. The LaTeX Companion, 2nd Edition.

HTH,

Rich

--
Richard B. Shepard, Ph.D. |  The Environmental Compliance
Applied Ecosystem Services, Inc.(TM)  |  Accelerator
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: Image before Title?

2006-05-19 Thread Theo
Uwe, thank you so much. but i still have this problem:
i don't use the book(koma-script), because i don't want to have this kind of
Headline Font. but when i use article, there is no subject.

cheers,
theo







Re: Image before Title?

2006-05-19 Thread Theo
...second thought:

of course i *would* like to use book(koma-script). But i don't know 

1) how to change the headline font to serif 
(just something normal, not that fancy)
2) how to tell lyx to start numbering everything with 1 - and not with 0.1

thanks for your help,
theo







Re: Equation numbering corresponding to section number

2006-05-19 Thread Andreas K .
Liu Feng [EMAIL PROTECTED] writes:

 
 Hi,Sir
 I could not number equations like 5.1, 5.2 within
 section 5.1 in Chapter 5. All eaqutions numbered just
 start from (1),(2) in global way. How to number
 eqaution according to the number of section or the
 number of chapter.
 

I have added this as an enhancement suggestion in bugzilla, see 
http://bugzilla.lyx.org/show_bug.cgi?id=2605

Regards,
Andreas





Re: Greek in Lyx

2006-05-19 Thread Oisin C. Feeley
On Fri, May 19, 2006 at 09:12:59AM +0200, Jörn Kobes wrote:
 Greeting to all folks,
 
 I have a question: in which way can I write text in Lyx in 
 Polutoniko (ancient) Greek? Normally, I write Greek with:
 \usepackage[polutonikogreek,german]{babel}; but how in Lyx (1.4.1)?
 
 Thanks for helpful informations,

Works for me, same as LyX 1.3.7  What exactly are you having a problem with?

Oisin


article (koma-script) with serif font (headlines) ?

2006-05-19 Thread Theo
Hi,
i am using the article(koma-script) but i don't want to have this modern looking
Sans font. i'd like to have something very oldschool and conservativ (and
serif). how can i change this global font settings?

thanks,
theo
 



Re: article (koma-script) with serif font (headlines) ?

2006-05-19 Thread Rich Shepard

On Fri, 19 May 2006, Theo wrote:


i am using the article(koma-script) but i don't want to have this modern
looking Sans font. i'd like to have something very oldschool and
conservativ (and serif). how can i change this global font settings?


theo,

  I'm using Koma-script's book class, but changed the title and section
typeface by putting this in the preamble:

\setkomafont{sectioning}{\normalfont\bfseries}

HTH,

Rich

--
Richard B. Shepard, Ph.D. |  The Environmental Compliance
Applied Ecosystem Services, Inc.(TM)  |  Accelerator
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: article (koma-script) with serif font (headlines) ?

2006-05-19 Thread Theo
 \setkomafont{sectioning}{\normalfont\bfseries}

Thanx Rich ! 

i changed it to:
\setkomafont{sectioning}{\normalfont\rmfamily}

that's ok for me :).

theo



Re: Image before Title?

2006-05-19 Thread Uwe Stöhr

Theo schrieb:

of course i *would* like to use book(koma-script). But i don't know 

1) how to change the headline font to serif 
(just something normal, not that fancy)


That's easy, use the command similar to

\setkomafont{captionlabel}{\bfseries}

For the exact command have a look at the koma-skript manual:

http://www.tug.org/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf


2) how to tell lyx to start numbering everything with 1 - and not with 0.1


What do you mean? The section numbering in koma-book starts with 0.1 
when you don't have a chapter at the start of the document. You can 
easily switch from the xxx.yyy numbering to another one, have a look at 
koma-scripts manual.


Koma-scripts offers you many things you normally need extra packages 
for, e.g. the caption handling, title page and TOC formatting, and of 
course its famous print space calculation (no need to set the page 
border manually and binding correction is supported).


regards Uwe


Re: Adding TeX class problem

2006-05-19 Thread Ingo Klöcker
Am Freitag, 19. Mai 2006 15:30 schrieb Eugeny N Dzhurinsky:
 Hello!

 Co-workers sent me some TeX document to work on and class required
 for this document. I copied class to
 /usr/local/share/texmf/latex/company/company.cls together with EPS
 images. Then I invoked texhash command as root, and then I choose
 Tools-Reconfigure in LyX (1.4.1).

 Now I can see company.cls in Tools-TeX information list of TeX
 classes.

 Then I created some dummy layout in $HOME/.lyx/layouts/company.layout
 which just defines class and then imports acticle.layout. I was able
 to use tex2lyx and it created LyX document for me. But when I opening
 LyX document, LyX complains about

 Using default document class, because the class company is unknown.

 I can't see this class in document-settings-class either

 But I did the exactly same stuff with cv.cls I found somewhere on the
 net, and it is listed as circullum vitae in class list!

 What do I miss?

You have to choose Tools-Reconfigure _after_ creating the dummy 
layout because Reconfigure looks for new layouts. From your description 
you did it before you created the dummy layout.

Regards,
Ingo

-- 
Ingo Klöcker
Lehrstuhl A für Mathematik
RWTH Aachen
52056 Aachen



pgp9H9wSPSjT1.pgp
Description: PGP signature


Re: numbered list: space between rows

2006-05-19 Thread Paul A. Rubin

Theo wrote:

thanx paul,

i found this example. 


http://tug.org/TeXnik/list/intro.pdf

but do i have to write it in the preamble or does the whole block come inside
the ERT (aka TeX-button)?



You can do it list-by-list in the document body, or you can define a new 
environment in the preamble and then use ERT to start/end the 
environment (and to flag items).  I'm attaching a sample document.


/Paul


spacing.lyx
Description: application/lyx


Re: make a .pdf of part of a document

2006-05-19 Thread Paul A. Rubin

[EMAIL PROTECTED] wrote:



May I suggest that you add these methods/tips to this page:

http://wiki.lyx.org/FAQ/PDF



Done.
/Paul



Info messages in the calling shell

2006-05-19 Thread Jean-Pierre Chretien
Hello LyXers

Since LyX-1.4, I see a lot of informative messages printed in the shell
from which I called LYx, like (while spellchecking):
ControlSpellchecker::replace(sans)

Did I miss an option when I configured ?
LyX built from source on Solaris.

-- 
Jean-Pierre




Re: numbered list: space between rows

2006-05-19 Thread Juergen Spitzmueller
Paul A. Rubin wrote:
 You can do it list-by-list in the document body, or you can define a new
 environment in the preamble and then use ERT to start/end the
 environment (and to flag items).  I'm attaching a sample document.

A much simpler solution, which works generally, is to put this in the preamble 
(provided you have the enumitem package installed):

\usepackage{enumitem}
\setenumerate{parsep=0pt,itemsep=0pt,partopsep=0pt}

Read the enumtiem documentation for more possibilities.

Jürgen


Re: Adding TeX class problem

2006-05-19 Thread Eugeny N Dzhurinsky
On Fri, May 19, 2006 at 05:31:22PM +0200, Ingo Kl?cker wrote:
 You have to choose Tools-Reconfigure _after_ creating the dummy 
 layout because Reconfigure looks for new layouts. From your description 
 you did it before you created the dummy layout.

Really, you were right!

Now I'm able to open document in LyX. However I can't see it as DVI, it
complains about

 \confidential
  {} \docstatus{} \docversion{1.0}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.


-- 
Eugene N Dzhurinsky


spellchecker problem

2006-05-19 Thread Liu Feng
Dir Sir
when I want to activate the spellchecker via TOOL-Preference, but 'Spellchecker 
executable' is grey out. No chance do it. Could you please tell me to fix this 
problem. Thanks
BTW I am using lyx-1.4 English version in Win XP 
Feng




-
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ 
countries) for 2¢/min or less.

Extending book (koma-script)

2006-05-19 Thread Oliver Ruebenkoenig

Hi there,

my goal is to make available the definition, example, etc from book (AMS) 
in book (koma-script). Now, I am not en expert and the fact that this has not 
been done, probably does have some reason which I, very well, might have 
missed. Anyways, what I did was to copy scrbook.layout to ~/.lyx/layouts 
and inset a

#  \DeclareLaTeXClass[scrbook]{book (koma-script + AMS)}

then I tried two things. First 

Input amsmaths.inc

This did not work. Lyx: The document could not be converted into the 
document class scrbookAMS.

Second I did:

I am aware of 
http://www.troubleshooters.com/linux/lyx/index.htm#textclass_mod_tut

and so I included

Preamble
  \theoremstyle{plain}
\newtheorem{thm}{Theorem}[section]
EndPreamble

but then I got the message that /theoremstyle{plain} is an undef. control 
sequence - which I agree to, but where do I get it from? 

I would appreciate any hints to enlighten my dull mind.

Oliver


Oliver Ruebenkoenig, [EMAIL PROTECTED]
   Phone: ++49 +761 203 7388


Re: spellchecker problem

2006-05-19 Thread Uwe Stöhr

Liu Feng wrote:


when I want to activate the spellchecker via TOOL-Preference, but 'Spellchecker 
executable' is grey out. No chance do it. Could you please tell me to fix this 
problem. Thanks
BTW I am using lyx-1.4 English version in Win XP


This option is deactivated in LyX for Windows because you have to use in 
any case the spellchecker aspell.

If you installed Lyx using this installer:
http://wiki.lyx.org/Windows/LyXWinInstaller
You only need to install an aspell dictionary from here:

http://developer.berlios.de/project/showfiles.php?group_id=5117release_id=9651

otherwise install aspell using this version:

http://wiki.lyx.org/uploads/Windows/Aspell6/AspellData-0.60.4.exe

and then install an aspell dictionary.

regards Uwe


Re: Equation numbering corresponding to section number

2006-05-19 Thread Uwe Stöhr

Liu Feng wrote:


Thank you for expertise response, it works. But the
equation number goes to the left of the equation, I
want it set on the right, could you gave me anothery
key to fix it?


Then you use a special document class or your document uses the option 
leqno (in LyX's menu Document - Settings - Document Class - Class 
Options)
To get the formula numbers on the right side delete this option, or if 
this doesn't help try to use the option reqno (add it in the document 
class option field).


regards Uwe


Re: spellchecker problem

2006-05-19 Thread Stephen Harris

Liu Feng wrote:

Dir Sir
when I want to activate the spellchecker via TOOL-Preference, but 'Spellchecker 
executable' is grey out. No chance do it. Could you please tell me to fix this 
problem. Thanks
BTW I am using lyx-1.4 English version in Win XP 
Feng





I assume you meant lyx1.4.1 since 1.4.0 is fairly buggy.
Aspell is used by LyX and must be installed in C:\Aspell
Your idea above, of how to install Aspell is not needed.

You will need to install the Aspell program and also a
dictionary for your language; then LyX-Tools-Reconfigure

http://wiki.lyx.org/Windows/LyX14x
http://wiki.lyx.org/Windows/Aspell6

If you have other packages missing it might be better
to uninstall LyX and reinstall with the WinLyXInstaller.
http://wiki.lyx.org/Windows/LyXWinInstaller (complete)

It is possible to have LyX1.3.7 with the older Aspell
.53 version and LyX 1.4.1 with the newer .6 version
Aspell engine and dict. both be installed and working.

\the_end
Stephen


alignment shortcut

2006-05-19 Thread Sanda Pavel
hi,

i would like to use shortcuts for paragraph alignments (lyx 1.3.5),
but i havent found any function which i can use for such a bind.
how can i do that bind ?

thanks
pavel


Greek in Lyx

2006-05-19 Thread Jörn Kobes

Greeting to all folks,

I have a question: in which way can I write text in Lyx in 
Polutoniko (ancient) Greek? Normally, I write Greek with:

\usepackage[polutonikogreek,german]{babel}; but how in Lyx (1.4.1)?

Thanks for helpful informations,

Jörn
--
**
Dr. Jörn Kobes, Hauptstr. 60, 55595 Gutenberg
Mail:  [EMAIL PROTECTED]
Fon:   +49 67 06 / 91 51 13 -- mobil: + 49 160 115 0693
WWW: www.computus-druck.de
**


Equation numbering corresponding to section number

2006-05-19 Thread Liu Feng
Hi,Sir
I could not number equations like 5.1, 5.2 within
section 5.1 in Chapter 5. All eaqutions numbered just
start from (1),(2) in global way. How to number
eqaution according to the number of section or the
number of chapter.
BTW,I am using 'book' doc. class with lyx-1.4 in Win
XP
Frank

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Re: make a .pdf of part of a document

2006-05-19 Thread christian . ridderstrom

On Thu, 18 May 2006, Steve Litt wrote:


On Wednesday 17 May 2006 09:50 pm, Paul A. Rubin wrote:

mail.k wrote:

Is it possible to make a .pdf of a specific chapter or section of a long
document (not the whole document)?

regards,
eran


Method 1: Stick everything except the desired part in comments (and hope
this does not screw up the pagination, or leave cross-references
undefined).

Method 2: Make a PDF of the entire document, then use Ghostscript to
produce a PDF of selected pages, as in the following (which extracts
pages 3 through 5 inclusive from sourcefile.pdf):

gsc -dFirstPage=3 -dLastPage=5 -sDEVICE=pdfwrite -sOutputFile=test.pdf
-dBATCH -dNOPAUSE sourcefile.pdf

Method 3: I use a PDF printer driver (PDFCreator) that, like most
printer drivers, can output selected pages.  So I can print the document
to it from Acrobat Reader and extract just the pages I want.


Method 4:

pdftk sourcefile.pdf cat 130-140 output test.pdf

You can find pdftk here:

http://www.accesspdf.com/pdftk/

It can do lots of other stuff, including merging pdfs, splitting pdfs,
reading, inserting and changing metadata, and lots more. I first heard about
it on this list.


May I suggest that you add these methods/tips to this page:

http://wiki.lyx.org/FAQ/PDF

Or, if this subject is complicated enought to deserve a page of it's own, 
how about creating this page


http://wiki.lyx.org/Tips/HowToIncludePDF

(I'm not happy with the page name, but that's life...)

sincere regards
/Christian

--
Christian Ridderstrצm, +46-8-768 39 44   http://www.md.kth.se/~chr

Re: Nonprintable text in pdf output SOLVED

2006-05-19 Thread christian . ridderstrom



On Saturday 08 April 2006 09:07 pm, [EMAIL PROTECTED] wrote:

On Sat, 8 Apr 2006, Steve Litt wrote:

Hi Steve

I think I understand what you're doing, but would you mind explaining why?

best regards
/Christian

PS. Then I could add what you wrote to some wiki page if you'd like, but
only if I can understand the purpose :-)


Hi Steve

For some reason I had a copy of your post left in my folder... I've added 
some comments to this page


http://wiki.lyx.org/Tips/AddingInvisibleTagToPDF

So I'm not sure why, maybe I was waiting for some kind of comment from 
you?


Anyway, the page is there now :-)

/Christian




On Sun, 9 Apr 2006, Steve Litt wrote:

Sure Christian,

I'm publishing an Ebook in PDF format. I want to discourage copying, but don't
want to do obnoxious DRM like not allowing printing, degrading printing, or
locking it to a specific computer.

So I do 2 things:

1) Print the customer's name in a footer at the bottom of the page (which is
why I asked before how to get a footer to print from paper edge to paper
edge). This discourages the customer from giving the PDF to his friends,
because it's his name on the book, and if it escapes into the wild, it's
obvious who did it. Now you and I probably know at least 3 ways to get rid of
that name, but your average joe doesn't.

2) In case it escapes into the wild and maybe someone altered the name in the
footer, I want a code inside the pdf that doesn't print. The easiest way I
know to do this is to make the code a metadata property with a key and a
value. The key will be a nonobvious string, and the value will look like
gibberish, but I can scan the PDF for the key, get the value, and relate it
back to my book sales.

So to add a key-value pair, you use the pdftk dump_data to write all metadata
to a text file, then append the new key and value to the text file, then
pdftk update_info to put back all the metadata, including the new key value
pair.

You can then use grep to get the line containing the key and value, and sed to
partially remove garbage, and my the listed C program to strip it down to
nothing but the value so it can be assigned to a variable in a script using
backticks or $(mycommand) syntax.

I hope this helps you understand what I was doing, but if you or anyone else
has any questions, please feel free to ask.

Thanks

SteveT




On Saturday 08 April 2006 03:34 pm, Steve Litt wrote:

Hi all,

Is there a way I can have something in my LyX file (maybe a comment
environment or something), and have it occur in the PDF output without
having it print or be viewable?

If that's not possible, is there a way I can brand a PDF with a
number somehow? I have pdftk.

Thanks

SteveT


Here's how it's done, assuming you want to tweak org.pdf so it includes
metadata MYKEY=MYVALUE in the output PDF, tweaked.pdf:

[EMAIL PROTECTED] ~]$ pdftk org.pdf dump_data output mymetadata.txt
[EMAIL PROTECTED] ~]$ echo InfoKey: MYKEY  mymetadata.txt
[EMAIL PROTECTED] ~]$ echo InfoValue: MYVALUE  mymetadata.txt
[EMAIL PROTECTED] ~]$ pdftk org.pdf update_info mymetadata.txt output
tweaked.pdf

You've now put metadata key MYKEY with value MYVALUE into tweaked.pdf.
You can quickly pull that data out with my check_pdf.sh script:

[EMAIL PROTECTED] ~]$ ./check_pdf.sh tweaked.pdf MYKEY
[EMAIL PROTECTED] ~]$

Here's the (bash script) code for check_pdf.sh, which I put in the public
domain and disclaim all warranty and liability:

#!/bin/bash
cat $1 | grep -a $2 | sed -e s/.*$2\s*// |
format_pdf_metadata_value.exe

format_pdf_metadata_value.exe simply grabs the value from the line
containing the key. It should work under Linux or Windows (or BSD, which
I assume would make it Mac compatible). Here is the C source code for
format_pdf_metadata_value.exe, which I put in the public domain and
disclaim all warranty and liability:

#include stdio.h
int main(int argc, char *argv[])
{
int ord = getc(stdin);
int count = 0;

/* GO TO OPENING PAREN */
for(; ord != '('  count  20; count++, ord=getc(stdin));
if(count = 20) /* magic number, much bigger than needed */
{
fprintf(stderr, Value not found\n);
return(1);
}

/* GO PAST OPENING PAREN */
for(; ord == '('; ord=getc(stdin));

/* BLOW OFF LEADING NONPRINTABLES */
for(;((ord  0) || (ord  127)); ord = getc(stdin));

/* PRINT UP TO BUT NOT INCLUDING CLOSING PAREN */
/* DO NOT PRINT ALL THE NULL BYTES */
for(; ord != ')'; ord = getc(stdin))
if(ord != 0)
putc(ord, stdout);
return 0;
}





--
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr

Re: Equation numbering corresponding to section number

2006-05-19 Thread Uwe Stöhr

Liu Feng schrieb:


I could not number equations like 5.1, 5.2 within
section 5.1 in Chapter 5.


Add the following line to your LyX document preamble:

\numberwithin{equation}{chapter}

regards Uwe


A newbie question, please?

2006-05-19 Thread David Neeley

As a newcomer to Lyx and to LaTex, I have a rather simple question
that is so far rather aggravating. Today, I wrote a letter using the
letter style template that shipped with Lyx (1.3.7 for Kubuntu Linux,
with teTeX also installed).

This was a business letter--and of course the template has an inside
address for the recipient. However, try as I might, I could *not* get
it to print the inside address at all. It was missing from the DVI
view and from all printable views (the various PostScript and PDF
options).

I trust there was something I should have known how to find and
adjust--but it doesn't seem to be part of the document properties
settings or paragraph properties settings either. I presume it must be
in the laTeX code?

Thanks for any kind words you can give to point me in the right
direction! I am buried in the various document files--but so far, this
appears to be missing from the Lyx User Guide, anyway.

Another question, if I may--the letter style defaults to justified
text--yet the right margin was anything but completely uniform. I had
to put discretionary hyphens a few places--no big deal, really--but in
other places the right was simply a bit ragged. Since TeX is a
typesetting language, I suspect I have something set up wrong. Any
pointers as to where to begin to look?

Again, thanks very kindly for any suggestions you might be able to
give. From what I have seen thus far, I intend to stick with it and to
continue to climb the learning curve. I can already see where it
should pay off very shortly!

David Neeley


Re: numbered list: space between rows

2006-05-19 Thread Theo
thanx paul,

i found this example. 

http://tug.org/TeXnik/list/intro.pdf

but do i have to write it in the preamble or does the whole block come inside
the ERT (aka TeX-button)?

cheers,
theo




Image before Title?

2006-05-19 Thread Theo
Hi everybody,

i would like to have an image before the title of the document (article), but
the title seems to consist on beeng first on the page and doesn't allow an image
above itself, on the same page.

how can i get an image up there, without changing the document class?

thank,
theo







Re: help with titlesec package - SOLVED

2006-05-19 Thread Marcelo Acuña
  You might try something like:
 
  \renewpagestyle{headings}[OPTIONAL]{
  \headrule
  \sethead{\chaptertitle}{}{\sectiontitle}
  \setfoot{}{\usepage}{}
  }
  
  I put this in preamble and nothing occurs. When I
 add \pagestyle{headings}
  I get error: extra }
  I chequed for {} and all is OK, but error appears.

 I don't know why you are having this problem. It
 works for me. The way to diagnose the problem is to
export to LaTeX and  then compile it manually.
 Richard
 

 I found that with (pagestyles provided by titlesec)
and (tag for cross references in titles of section)
appears errors in compilation (extra }).
 I moved tag from titles to body of text and no more
errors.

 Thanks. Marcelo





_ 
Horóscopos, Salud y belleza, Chistes, Consejos de amor: 
el contenido más divertido para tu celular está en Yahoo! Móvil. 
Obtenelo en http://movil.yahoo.com.ar


Re: Image before Title?

2006-05-19 Thread Uwe Stöhr

Theo wrote:


i would like to have an image before the title of the document (article), but
the title seems to consist on beeng first on the page and doesn't allow an image
above itself, on the same page.


Use the subject environment for that. I attached an example LyX-file.

regards Uwe


test.lyx
Description: application/lyx


Adding TeX class problem

2006-05-19 Thread Eugeny N Dzhurinsky
Hello!

Co-workers sent me some TeX document to work on and class required for this
document. I copied class to /usr/local/share/texmf/latex/company/company.cls
together with EPS images. Then I invoked texhash command as root, and then I
choose Tools-Reconfigure in LyX (1.4.1).

Now I can see company.cls in Tools-TeX information list of TeX classes.

Then I created some dummy layout in $HOME/.lyx/layouts/company.layout which
just defines class and then imports acticle.layout. I was able to use tex2lyx
and it created LyX document for me. But when I opening LyX document, LyX
complains about 

Using default document class, because the class company is unknown.

I can't see this class in document-settings-class either

But I did the exactly same stuff with cv.cls I found somewhere on the net, and 
it
is listed as circullum vitae in class list!

What do I miss?

-- 
Eugene N Dzhurinsky


Re: A newbie question, please?

2006-05-19 Thread Rich Shepard

On Fri, 19 May 2006, David Neeley wrote:


This was a business letter--and of course the template has an inside
address for the recipient. However, try as I might, I could *not* get it to
print the inside address at all. It was missing from the DVI view and from
all printable views (the various PostScript and PDF options).


David,

  First, upgrade from 1.3.7 to 1.4.1. Second, there is a non-intuitive order
of elements in the letter. It's been many years, but I believe that the
signature block has to be entered toward the top of the letter. I was
thinking recently that I need to re-visit how to use LaTeX for letters. Take
a look at the Koma-script series for documentation.

  This might help: http://www.maths.ox.ac.uk/help/faqs/latex/letters.shtml

This is descibed in the LaTeX book by Leslie Lamport and others. A basic
example of its use is

\documentclass{letter}
\address{12 The Street \\ Oxford \\ OX1 1AA}
\name{Me}
\signature{My Signature line}
\begin{document}
\begin{letter}{M. Renault \\ Sorbonne \\ Paris}
\opening{Dear Sir,}

 text of the letter 

\closing{Yours faithfully}
\end{letter}
\end{document}

Additional commands you may use include

\cc{Jane Jones}
\encl{My newest poem}

which can be put after the closing but before the end letter to list those
the letter has been cc'ed to and any documents enclosed.


Another question, if I may--the letter style defaults to justified
text--yet the right margin was anything but completely uniform. I had to
put discretionary hyphens a few places--no big deal, really--but in other
places the right was simply a bit ragged. Since TeX is a typesetting
language, I suspect I have something set up wrong. Any pointers as to where
to begin to look?


  No, you have nothing set incorrectly. The TeX engine sometimes cannot
figure out where to properly break a line, so it juts into the right margin.
It's called an overfull line and needs human correction. You can either
provide hints where the word could be hyphenated (by entering {\-} in ERT
boxes at the appropriate places), or re-writing the sentence so the word
order is different.

  If you're going to be using LaTeX and Lyx extensively, consider purchasing
two references to start:

  Kopka, H. and P.W. Daly. Guide to LaTeX, 4th Edition
  Mittlebach, F. and M. Goossens. The LaTeX Companion, 2nd Edition.

HTH,

Rich

--
Richard B. Shepard, Ph.D. |  The Environmental Compliance
Applied Ecosystem Services, Inc.(TM)  |  Accelerator
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: Image before Title?

2006-05-19 Thread Theo
Uwe, thank you so much. but i still have this problem:
i don't use the book(koma-script), because i don't want to have this kind of
Headline Font. but when i use article, there is no subject.

cheers,
theo







Re: Image before Title?

2006-05-19 Thread Theo
...second thought:

of course i *would* like to use book(koma-script). But i don't know 

1) how to change the headline font to serif 
(just something normal, not that fancy)
2) how to tell lyx to start numbering everything with 1 - and not with 0.1

thanks for your help,
theo







Re: Equation numbering corresponding to section number

2006-05-19 Thread Andreas K .
Liu Feng [EMAIL PROTECTED] writes:

 
 Hi,Sir
 I could not number equations like 5.1, 5.2 within
 section 5.1 in Chapter 5. All eaqutions numbered just
 start from (1),(2) in global way. How to number
 eqaution according to the number of section or the
 number of chapter.
 

I have added this as an enhancement suggestion in bugzilla, see 
http://bugzilla.lyx.org/show_bug.cgi?id=2605

Regards,
Andreas





Re: Greek in Lyx

2006-05-19 Thread Oisin C. Feeley
On Fri, May 19, 2006 at 09:12:59AM +0200, Jörn Kobes wrote:
 Greeting to all folks,
 
 I have a question: in which way can I write text in Lyx in 
 Polutoniko (ancient) Greek? Normally, I write Greek with:
 \usepackage[polutonikogreek,german]{babel}; but how in Lyx (1.4.1)?
 
 Thanks for helpful informations,

Works for me, same as LyX 1.3.7  What exactly are you having a problem with?

Oisin


article (koma-script) with serif font (headlines) ?

2006-05-19 Thread Theo
Hi,
i am using the article(koma-script) but i don't want to have this modern looking
Sans font. i'd like to have something very oldschool and conservativ (and
serif). how can i change this global font settings?

thanks,
theo
 



Re: article (koma-script) with serif font (headlines) ?

2006-05-19 Thread Rich Shepard

On Fri, 19 May 2006, Theo wrote:


i am using the article(koma-script) but i don't want to have this modern
looking Sans font. i'd like to have something very oldschool and
conservativ (and serif). how can i change this global font settings?


theo,

  I'm using Koma-script's book class, but changed the title and section
typeface by putting this in the preamble:

\setkomafont{sectioning}{\normalfont\bfseries}

HTH,

Rich

--
Richard B. Shepard, Ph.D. |  The Environmental Compliance
Applied Ecosystem Services, Inc.(TM)  |  Accelerator
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: article (koma-script) with serif font (headlines) ?

2006-05-19 Thread Theo
 \setkomafont{sectioning}{\normalfont\bfseries}

Thanx Rich ! 

i changed it to:
\setkomafont{sectioning}{\normalfont\rmfamily}

that's ok for me :).

theo



Re: Image before Title?

2006-05-19 Thread Uwe Stöhr

Theo schrieb:

of course i *would* like to use book(koma-script). But i don't know 

1) how to change the headline font to serif 
(just something normal, not that fancy)


That's easy, use the command similar to

\setkomafont{captionlabel}{\bfseries}

For the exact command have a look at the koma-skript manual:

http://www.tug.org/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf


2) how to tell lyx to start numbering everything with 1 - and not with 0.1


What do you mean? The section numbering in koma-book starts with 0.1 
when you don't have a chapter at the start of the document. You can 
easily switch from the xxx.yyy numbering to another one, have a look at 
koma-scripts manual.


Koma-scripts offers you many things you normally need extra packages 
for, e.g. the caption handling, title page and TOC formatting, and of 
course its famous print space calculation (no need to set the page 
border manually and binding correction is supported).


regards Uwe


Re: Adding TeX class problem

2006-05-19 Thread Ingo Klöcker
Am Freitag, 19. Mai 2006 15:30 schrieb Eugeny N Dzhurinsky:
 Hello!

 Co-workers sent me some TeX document to work on and class required
 for this document. I copied class to
 /usr/local/share/texmf/latex/company/company.cls together with EPS
 images. Then I invoked texhash command as root, and then I choose
 Tools-Reconfigure in LyX (1.4.1).

 Now I can see company.cls in Tools-TeX information list of TeX
 classes.

 Then I created some dummy layout in $HOME/.lyx/layouts/company.layout
 which just defines class and then imports acticle.layout. I was able
 to use tex2lyx and it created LyX document for me. But when I opening
 LyX document, LyX complains about

 Using default document class, because the class company is unknown.

 I can't see this class in document-settings-class either

 But I did the exactly same stuff with cv.cls I found somewhere on the
 net, and it is listed as circullum vitae in class list!

 What do I miss?

You have to choose Tools-Reconfigure _after_ creating the dummy 
layout because Reconfigure looks for new layouts. From your description 
you did it before you created the dummy layout.

Regards,
Ingo

-- 
Ingo Klöcker
Lehrstuhl A für Mathematik
RWTH Aachen
52056 Aachen



pgp9H9wSPSjT1.pgp
Description: PGP signature


Re: numbered list: space between rows

2006-05-19 Thread Paul A. Rubin

Theo wrote:

thanx paul,

i found this example. 


http://tug.org/TeXnik/list/intro.pdf

but do i have to write it in the preamble or does the whole block come inside
the ERT (aka TeX-button)?



You can do it list-by-list in the document body, or you can define a new 
environment in the preamble and then use ERT to start/end the 
environment (and to flag items).  I'm attaching a sample document.


/Paul


spacing.lyx
Description: application/lyx


Re: make a .pdf of part of a document

2006-05-19 Thread Paul A. Rubin

[EMAIL PROTECTED] wrote:



May I suggest that you add these methods/tips to this page:

http://wiki.lyx.org/FAQ/PDF



Done.
/Paul



Info messages in the calling shell

2006-05-19 Thread Jean-Pierre Chretien
Hello LyXers

Since LyX-1.4, I see a lot of informative messages printed in the shell
from which I called LYx, like (while spellchecking):
ControlSpellchecker::replace(sans)

Did I miss an option when I configured ?
LyX built from source on Solaris.

-- 
Jean-Pierre




Re: numbered list: space between rows

2006-05-19 Thread Juergen Spitzmueller
Paul A. Rubin wrote:
 You can do it list-by-list in the document body, or you can define a new
 environment in the preamble and then use ERT to start/end the
 environment (and to flag items).  I'm attaching a sample document.

A much simpler solution, which works generally, is to put this in the preamble 
(provided you have the enumitem package installed):

\usepackage{enumitem}
\setenumerate{parsep=0pt,itemsep=0pt,partopsep=0pt}

Read the enumtiem documentation for more possibilities.

Jürgen


Re: Adding TeX class problem

2006-05-19 Thread Eugeny N Dzhurinsky
On Fri, May 19, 2006 at 05:31:22PM +0200, Ingo Kl?cker wrote:
 You have to choose Tools-Reconfigure _after_ creating the dummy 
 layout because Reconfigure looks for new layouts. From your description 
 you did it before you created the dummy layout.

Really, you were right!

Now I'm able to open document in LyX. However I can't see it as DVI, it
complains about

 \confidential
  {} \docstatus{} \docversion{1.0}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.


-- 
Eugene N Dzhurinsky


spellchecker problem

2006-05-19 Thread Liu Feng
Dir Sir
when I want to activate the spellchecker via TOOL-Preference, but 'Spellchecker 
executable' is grey out. No chance do it. Could you please tell me to fix this 
problem. Thanks
BTW I am using lyx-1.4 English version in Win XP 
Feng




-
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ 
countries) for 2¢/min or less.

Extending book (koma-script)

2006-05-19 Thread Oliver Ruebenkoenig

Hi there,

my goal is to make available the definition, example, etc from book (AMS) 
in book (koma-script). Now, I am not en expert and the fact that this has not 
been done, probably does have some reason which I, very well, might have 
missed. Anyways, what I did was to copy scrbook.layout to ~/.lyx/layouts 
and inset a

#  \DeclareLaTeXClass[scrbook]{book (koma-script + AMS)}

then I tried two things. First 

Input amsmaths.inc

This did not work. Lyx: The document could not be converted into the 
document class scrbookAMS.

Second I did:

I am aware of 
http://www.troubleshooters.com/linux/lyx/index.htm#textclass_mod_tut

and so I included

Preamble
  \theoremstyle{plain}
\newtheorem{thm}{Theorem}[section]
EndPreamble

but then I got the message that /theoremstyle{plain} is an undef. control 
sequence - which I agree to, but where do I get it from? 

I would appreciate any hints to enlighten my dull mind.

Oliver


Oliver Ruebenkoenig, [EMAIL PROTECTED]
   Phone: ++49 +761 203 7388


Re: spellchecker problem

2006-05-19 Thread Uwe Stöhr

Liu Feng wrote:


when I want to activate the spellchecker via TOOL-Preference, but 'Spellchecker 
executable' is grey out. No chance do it. Could you please tell me to fix this 
problem. Thanks
BTW I am using lyx-1.4 English version in Win XP


This option is deactivated in LyX for Windows because you have to use in 
any case the spellchecker aspell.

If you installed Lyx using this installer:
http://wiki.lyx.org/Windows/LyXWinInstaller
You only need to install an aspell dictionary from here:

http://developer.berlios.de/project/showfiles.php?group_id=5117release_id=9651

otherwise install aspell using this version:

http://wiki.lyx.org/uploads/Windows/Aspell6/AspellData-0.60.4.exe

and then install an aspell dictionary.

regards Uwe


Re: Equation numbering corresponding to section number

2006-05-19 Thread Uwe Stöhr

Liu Feng wrote:


Thank you for expertise response, it works. But the
equation number goes to the left of the equation, I
want it set on the right, could you gave me anothery
key to fix it?


Then you use a special document class or your document uses the option 
leqno (in LyX's menu Document - Settings - Document Class - Class 
Options)
To get the formula numbers on the right side delete this option, or if 
this doesn't help try to use the option reqno (add it in the document 
class option field).


regards Uwe


Re: spellchecker problem

2006-05-19 Thread Stephen Harris

Liu Feng wrote:

Dir Sir
when I want to activate the spellchecker via TOOL-Preference, but 'Spellchecker 
executable' is grey out. No chance do it. Could you please tell me to fix this 
problem. Thanks
BTW I am using lyx-1.4 English version in Win XP 
Feng





I assume you meant lyx1.4.1 since 1.4.0 is fairly buggy.
Aspell is used by LyX and must be installed in C:\Aspell
Your idea above, of how to install Aspell is not needed.

You will need to install the Aspell program and also a
dictionary for your language; then LyX-Tools-Reconfigure

http://wiki.lyx.org/Windows/LyX14x
http://wiki.lyx.org/Windows/Aspell6

If you have other packages missing it might be better
to uninstall LyX and reinstall with the WinLyXInstaller.
http://wiki.lyx.org/Windows/LyXWinInstaller (complete)

It is possible to have LyX1.3.7 with the older Aspell
.53 version and LyX 1.4.1 with the newer .6 version
Aspell engine and dict. both be installed and working.

\the_end
Stephen


alignment shortcut

2006-05-19 Thread Sanda Pavel
hi,

i would like to use shortcuts for paragraph alignments (lyx 1.3.5),
but i havent found any function which i can use for such a bind.
how can i do that bind ?

thanks
pavel


Greek in Lyx

2006-05-19 Thread Jörn Kobes

Greeting to all folks,

I have a question: in which way can I write text in Lyx in 
Polutoniko (ancient) Greek? Normally, I write Greek with:

\usepackage[polutonikogreek,german]{babel}; but how in Lyx (1.4.1)?

Thanks for helpful informations,

Jörn
--
**
Dr. Jörn Kobes, Hauptstr. 60, 55595 Gutenberg
Mail:  [EMAIL PROTECTED]
Fon:   +49 67 06 / 91 51 13 -- mobil: + 49 160 115 0693
WWW: www.computus-druck.de
**


Equation numbering corresponding to section number

2006-05-19 Thread Liu Feng
Hi,Sir
I could not number equations like 5.1, 5.2 within
section 5.1 in Chapter 5. All eaqutions numbered just
start from (1),(2) in global way. How to number
eqaution according to the number of section or the
number of chapter.
BTW,I am using 'book' doc. class with lyx-1.4 in Win
XP
Frank

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Re: make a .pdf of part of a document

2006-05-19 Thread christian . ridderstrom

On Thu, 18 May 2006, Steve Litt wrote:


On Wednesday 17 May 2006 09:50 pm, Paul A. Rubin wrote:

mail.k wrote:

Is it possible to make a .pdf of a specific chapter or section of a long
document (not the whole document)?

regards,
eran


Method 1: Stick everything except the desired part in comments (and hope
this does not screw up the pagination, or leave cross-references
undefined).

Method 2: Make a PDF of the entire document, then use Ghostscript to
produce a PDF of selected pages, as in the following (which extracts
pages 3 through 5 inclusive from sourcefile.pdf):

gsc -dFirstPage=3 -dLastPage=5 -sDEVICE=pdfwrite -sOutputFile=test.pdf
-dBATCH -dNOPAUSE sourcefile.pdf

Method 3: I use a PDF printer driver (PDFCreator) that, like most
printer drivers, can output selected pages.  So I can print the document
to it from Acrobat Reader and extract just the pages I want.


Method 4:

pdftk sourcefile.pdf cat 130-140 output test.pdf

You can find pdftk here:

http://www.accesspdf.com/pdftk/

It can do lots of other stuff, including merging pdfs, splitting pdfs,
reading, inserting and changing metadata, and lots more. I first heard about
it on this list.


May I suggest that you add these methods/tips to this page:

http://wiki.lyx.org/FAQ/PDF

Or, if this subject is complicated enought to deserve a page of it's own, 
how about creating this page


http://wiki.lyx.org/Tips/HowToIncludePDF

(I'm not happy with the page name, but that's life...)

sincere regards
/Christian

--
Christian Ridderstrצm, +46-8-768 39 44   http://www.md.kth.se/~chr

Re: Nonprintable text in pdf output

2006-05-19 Thread christian . ridderstrom



On Saturday 08 April 2006 09:07 pm, [EMAIL PROTECTED] wrote:

On Sat, 8 Apr 2006, Steve Litt wrote:

Hi Steve

I think I understand what you're doing, but would you mind explaining why?

best regards
/Christian

PS. Then I could add what you wrote to some wiki page if you'd like, but
only if I can understand the purpose :-)


Hi Steve

For some reason I had a copy of your post left in my folder... I've added 
some comments to this page


http://wiki.lyx.org/Tips/AddingInvisibleTagToPDF

So I'm not sure why, maybe I was waiting for some kind of comment from 
you?


Anyway, the page is there now :-)

/Christian




On Sun, 9 Apr 2006, Steve Litt wrote:

Sure Christian,

I'm publishing an Ebook in PDF format. I want to discourage copying, but don't
want to do obnoxious DRM like not allowing printing, degrading printing, or
locking it to a specific computer.

So I do 2 things:

1) Print the customer's name in a footer at the bottom of the page (which is
why I asked before how to get a footer to print from paper edge to paper
edge). This discourages the customer from giving the PDF to his friends,
because it's his name on the book, and if it "escapes" into the wild, it's
obvious who did it. Now you and I probably know at least 3 ways to get rid of
that name, but your average joe doesn't.

2) In case it escapes into the wild and maybe someone altered the name in the
footer, I want a code inside the pdf that doesn't print. The easiest way I
know to do this is to make the code a metadata property with a key and a
value. The key will be a nonobvious string, and the value will look like
gibberish, but I can scan the PDF for the key, get the value, and relate it
back to my book sales.

So to add a key->value pair, you use the pdftk dump_data to write all metadata
to a text file, then append the new key and value to the text file, then
pdftk update_info to put back all the metadata, including the new key value
pair.

You can then use grep to get the line containing the key and value, and sed to
partially remove garbage, and my the listed C program to strip it down to
nothing but the value so it can be assigned to a variable in a script using
backticks or $(mycommand) syntax.

I hope this helps you understand what I was doing, but if you or anyone else
has any questions, please feel free to ask.

Thanks

SteveT




On Saturday 08 April 2006 03:34 pm, Steve Litt wrote:

Hi all,

Is there a way I can have something in my LyX file (maybe a comment
environment or something), and have it occur in the PDF output without
having it print or be viewable?

If that's not possible, is there a way I can "brand" a PDF with a
number somehow? I have pdftk.

Thanks

SteveT


Here's how it's done, assuming you want to tweak org.pdf so it includes
metadata MYKEY=MYVALUE in the output PDF, tweaked.pdf:

[EMAIL PROTECTED] ~]$ pdftk org.pdf dump_data output mymetadata.txt
[EMAIL PROTECTED] ~]$ echo InfoKey: MYKEY >> mymetadata.txt
[EMAIL PROTECTED] ~]$ echo InfoValue: MYVALUE >> mymetadata.txt
[EMAIL PROTECTED] ~]$ pdftk org.pdf update_info mymetadata.txt output
tweaked.pdf

You've now put metadata key MYKEY with value MYVALUE into tweaked.pdf.
You can quickly pull that data out with my check_pdf.sh script:

[EMAIL PROTECTED] ~]$ ./check_pdf.sh tweaked.pdf MYKEY
[EMAIL PROTECTED] ~]$

Here's the (bash script) code for check_pdf.sh, which I put in the public
domain and disclaim all warranty and liability:

#!/bin/bash
cat $1 | grep -a "$2" | sed -e "s/.*$2\s*//" |
format_pdf_metadata_value.exe

format_pdf_metadata_value.exe simply grabs the value from the line
containing the key. It should work under Linux or Windows (or BSD, which
I assume would make it Mac compatible). Here is the C source code for
format_pdf_metadata_value.exe, which I put in the public domain and
disclaim all warranty and liability:

#include 
int main(int argc, char *argv[])
{
int ord = getc(stdin);
int count = 0;

/* GO TO OPENING PAREN */
for(; ord != '(' && count < 20; count++, ord=getc(stdin));
if(count >= 20) /* magic number, much bigger than needed */
{
fprintf(stderr, "Value not found\n");
return(1);
}

/* GO PAST OPENING PAREN */
for(; ord == '('; ord=getc(stdin));

/* BLOW OFF LEADING NONPRINTABLES */
for(;((ord < 0) || (ord > 127)); ord = getc(stdin));

/* PRINT UP TO BUT NOT INCLUDING CLOSING PAREN */
/* DO NOT PRINT ALL THE NULL BYTES */
for(; ord != ')'; ord = getc(stdin))
if(ord != 0)
putc(ord, stdout);
return 0;
}





--
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr

Re: Equation numbering corresponding to section number

2006-05-19 Thread Uwe Stöhr

Liu Feng schrieb:


I could not number equations like 5.1, 5.2 within
section 5.1 in Chapter 5.


Add the following line to your LyX document preamble:

\numberwithin{equation}{chapter}

regards Uwe


A "newbie" question, please?

2006-05-19 Thread David Neeley

As a newcomer to Lyx and to LaTex, I have a rather simple question
that is so far rather aggravating. Today, I wrote a letter using the
letter style template that shipped with Lyx (1.3.7 for Kubuntu Linux,
with teTeX also installed).

This was a business letter--and of course the template has an inside
address for the recipient. However, try as I might, I could *not* get
it to print the inside address at all. It was missing from the DVI
view and from all printable views (the various PostScript and PDF
options).

I trust there was something I should have known how to find and
adjust--but it doesn't seem to be part of the document properties
settings or paragraph properties settings either. I presume it must be
in the laTeX code?

Thanks for any kind words you can give to point me in the right
direction! I am buried in the various document files--but so far, this
appears to be missing from the Lyx User Guide, anyway.

Another question, if I may--the letter style defaults to justified
text--yet the right margin was anything but completely uniform. I had
to put discretionary hyphens a few places--no big deal, really--but in
other places the right was simply a bit ragged. Since TeX is a
typesetting language, I suspect I have something set up wrong. Any
pointers as to where to begin to look?

Again, thanks very kindly for any suggestions you might be able to
give. From what I have seen thus far, I intend to stick with it and to
continue to climb the learning curve. I can already see where it
should pay off very shortly!

David Neeley


Re: numbered list: space between rows

2006-05-19 Thread Theo
thanx paul,

i found this example. 

http://tug.org/TeXnik/list/intro.pdf

but do i have to write it in the preamble or does the whole block come inside
the ERT (aka TeX-button)?

cheers,
theo




Image before Title?

2006-05-19 Thread Theo
Hi everybody,

i would like to have an image before the title of the document (article), but
the title seems to consist on beeng first on the page and doesn't allow an image
above itself, on the same page.

how can i get an image up there, without changing the document class?

thank,
theo







Re: help with titlesec package - SOLVED

2006-05-19 Thread Marcelo Acuña
> >> You might try something like:
> >>
> >> \renewpagestyle{headings}[OPTIONAL]{
> >> \headrule
> >> \sethead{\chaptertitle}{}{\sectiontitle}
> >> \setfoot{}{\usepage}{}
> >> }
> >> 
> > I put this in preamble and nothing occurs. When I
> add \pagestyle{headings}
> > I get error: extra }
> > I chequed for {} and all is OK, but error appears.
> >   
> I don't know why you are having this problem. It
> works for me. The way to diagnose the problem is to
>export to LaTeX and  then compile it manually.
> Richard
> 

 I found that with (pagestyles provided by titlesec)
and (tag for cross references in titles of section)
appears errors in compilation (extra }).
 I moved tag from titles to body of text and no more
errors.

 Thanks. Marcelo





_ 
Horóscopos, Salud y belleza, Chistes, Consejos de amor: 
el contenido más divertido para tu celular está en Yahoo! Móvil. 
Obtenelo en http://movil.yahoo.com.ar


Re: Image before Title?

2006-05-19 Thread Uwe Stöhr

Theo wrote:


i would like to have an image before the title of the document (article), but
the title seems to consist on beeng first on the page and doesn't allow an image
above itself, on the same page.


Use the subject environment for that. I attached an example LyX-file.

regards Uwe


test.lyx
Description: application/lyx


Adding TeX class problem

2006-05-19 Thread Eugeny N Dzhurinsky
Hello!

Co-workers sent me some TeX document to work on and class required for this
document. I copied class to /usr/local/share/texmf/latex/company/company.cls
together with EPS images. Then I invoked "texhash" command as root, and then I
choose "Tools->Reconfigure" in LyX (1.4.1).

Now I can see company.cls in Tools->TeX information list of TeX classes.

Then I created some dummy layout in $HOME/.lyx/layouts/company.layout which
just defines class and then imports acticle.layout. I was able to use tex2lyx
and it created LyX document for me. But when I opening LyX document, LyX
complains about 

"Using default document class, because the class company is unknown".

I can't see this class in document->settings->class either

But I did the exactly same stuff with cv.cls I found somewhere on the net, and 
it
is listed as "circullum vitae" in class list!

What do I miss?

-- 
Eugene N Dzhurinsky


Re: A "newbie" question, please?

2006-05-19 Thread Rich Shepard

On Fri, 19 May 2006, David Neeley wrote:


This was a business letter--and of course the template has an inside
address for the recipient. However, try as I might, I could *not* get it to
print the inside address at all. It was missing from the DVI view and from
all printable views (the various PostScript and PDF options).


David,

  First, upgrade from 1.3.7 to 1.4.1. Second, there is a non-intuitive order
of elements in the letter. It's been many years, but I believe that the
signature block has to be entered toward the top of the letter. I was
thinking recently that I need to re-visit how to use LaTeX for letters. Take
a look at the Koma-script series for documentation.

  This might help: 

"This is descibed in the LaTeX book by Leslie Lamport and others. A basic
example of its use is

\documentclass{letter}
\address{12 The Street \\ Oxford \\ OX1 1AA}
\name{Me}
\signature{My Signature line}
\begin{document}
\begin{letter}{M. Renault \\ Sorbonne \\ Paris}
\opening{Dear Sir,}

 text of the letter 

\closing{Yours faithfully}
\end{letter}
\end{document}

Additional commands you may use include

\cc{Jane Jones}
\encl{My newest poem}

which can be put after the closing but before the end letter to list those
the letter has been cc'ed to and any documents enclosed."


Another question, if I may--the letter style defaults to justified
text--yet the right margin was anything but completely uniform. I had to
put discretionary hyphens a few places--no big deal, really--but in other
places the right was simply a bit ragged. Since TeX is a typesetting
language, I suspect I have something set up wrong. Any pointers as to where
to begin to look?


  No, you have nothing set incorrectly. The TeX engine sometimes cannot
figure out where to properly break a line, so it juts into the right margin.
It's called an overfull line and needs human correction. You can either
provide hints where the word could be hyphenated (by entering {\-} in ERT
boxes at the appropriate places), or re-writing the sentence so the word
order is different.

  If you're going to be using LaTeX and Lyx extensively, consider purchasing
two references to start:

  Kopka, H. and P.W. Daly. Guide to LaTeX, 4th Edition
  Mittlebach, F. and M. Goossens. The LaTeX Companion, 2nd Edition.

HTH,

Rich

--
Richard B. Shepard, Ph.D. |  The Environmental Compliance
Applied Ecosystem Services, Inc.(TM)  |  Accelerator
 Voice: 503-667-4517  Fax: 503-667-8863


Re: Image before Title?

2006-05-19 Thread Theo
Uwe, thank you so much. but i still have this problem:
i don't use the book(koma-script), because i don't want to have this kind of
Headline Font. but when i use article, there is no subject.

cheers,
theo







Re: Image before Title?

2006-05-19 Thread Theo
...second thought:

of course i *would* like to use book(koma-script). But i don't know 

1) how to change the headline font to serif 
(just something normal, not that fancy)
2) how to tell lyx to start numbering everything with 1 - and not with 0.1

thanks for your help,
theo







Re: Equation numbering corresponding to section number

2006-05-19 Thread Andreas K .
Liu Feng <[EMAIL PROTECTED]> writes:

> 
> Hi,Sir
> I could not number equations like 5.1, 5.2 within
> section 5.1 in Chapter 5. All eaqutions numbered just
> start from (1),(2) in global way. How to number
> eqaution according to the number of section or the
> number of chapter.
> 

I have added this as an enhancement suggestion in bugzilla, see 
http://bugzilla.lyx.org/show_bug.cgi?id=2605

Regards,
Andreas





Re: Greek in Lyx

2006-05-19 Thread Oisin C. Feeley
On Fri, May 19, 2006 at 09:12:59AM +0200, Jörn Kobes wrote:
> Greeting to all folks,
> 
> I have a question: in which way can I write text in Lyx in 
> Polutoniko (ancient) Greek? Normally, I write Greek with:
> \usepackage[polutonikogreek,german]{babel}; but how in Lyx (1.4.1)?
> 
> Thanks for helpful informations,

Works for me, same as LyX 1.3.7  What exactly are you having a problem with?

Oisin


article (koma-script) with serif font (headlines) ?

2006-05-19 Thread Theo
Hi,
i am using the article(koma-script) but i don't want to have this modern looking
Sans font. i'd like to have something very oldschool and conservativ (and
serif). how can i change this global font settings?

thanks,
theo
 



Re: article (koma-script) with serif font (headlines) ?

2006-05-19 Thread Rich Shepard

On Fri, 19 May 2006, Theo wrote:


i am using the article(koma-script) but i don't want to have this modern
looking Sans font. i'd like to have something very oldschool and
conservativ (and serif). how can i change this global font settings?


theo,

  I'm using Koma-script's book class, but changed the title and section
typeface by putting this in the preamble:

\setkomafont{sectioning}{\normalfont\bfseries}

HTH,

Rich

--
Richard B. Shepard, Ph.D. |  The Environmental Compliance
Applied Ecosystem Services, Inc.(TM)  |  Accelerator
 Voice: 503-667-4517  Fax: 503-667-8863


Re: article (koma-script) with serif font (headlines) ?

2006-05-19 Thread Theo
> \setkomafont{sectioning}{\normalfont\bfseries}

Thanx Rich ! 

i changed it to:
\setkomafont{sectioning}{\normalfont\rmfamily}

that's ok for me :).

theo



Re: Image before Title?

2006-05-19 Thread Uwe Stöhr

Theo schrieb:

of course i *would* like to use book(koma-script). But i don't know 

1) how to change the headline font to serif 
(just something normal, not that fancy)


That's easy, use the command similar to

\setkomafont{captionlabel}{\bfseries}

For the exact command have a look at the koma-skript manual:

http://www.tug.org/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf


2) how to tell lyx to start numbering everything with 1 - and not with 0.1


What do you mean? The section numbering in koma-book starts with 0.1 
when you don't have a chapter at the start of the document. You can 
easily switch from the xxx.yyy numbering to another one, have a look at 
koma-scripts manual.


Koma-scripts offers you many things you normally need extra packages 
for, e.g. the caption handling, title page and TOC formatting, and of 
course its famous print space calculation (no need to set the page 
border manually and binding correction is supported).


regards Uwe


Re: Adding TeX class problem

2006-05-19 Thread Ingo Klöcker
Am Freitag, 19. Mai 2006 15:30 schrieb Eugeny N Dzhurinsky:
> Hello!
>
> Co-workers sent me some TeX document to work on and class required
> for this document. I copied class to
> /usr/local/share/texmf/latex/company/company.cls together with EPS
> images. Then I invoked "texhash" command as root, and then I choose
> "Tools->Reconfigure" in LyX (1.4.1).
>
> Now I can see company.cls in Tools->TeX information list of TeX
> classes.
>
> Then I created some dummy layout in $HOME/.lyx/layouts/company.layout
> which just defines class and then imports acticle.layout. I was able
> to use tex2lyx and it created LyX document for me. But when I opening
> LyX document, LyX complains about
>
> "Using default document class, because the class company is unknown".
>
> I can't see this class in document->settings->class either
>
> But I did the exactly same stuff with cv.cls I found somewhere on the
> net, and it is listed as "circullum vitae" in class list!
>
> What do I miss?

You have to choose "Tools->Reconfigure" _after_ creating the dummy 
layout because Reconfigure looks for new layouts. From your description 
you did it before you created the dummy layout.

Regards,
Ingo

-- 
Ingo Klöcker
Lehrstuhl A für Mathematik
RWTH Aachen
52056 Aachen



pgp9H9wSPSjT1.pgp
Description: PGP signature


Re: numbered list: space between rows

2006-05-19 Thread Paul A. Rubin

Theo wrote:

thanx paul,

i found this example. 


http://tug.org/TeXnik/list/intro.pdf

but do i have to write it in the preamble or does the whole block come inside
the ERT (aka TeX-button)?



You can do it list-by-list in the document body, or you can define a new 
environment in the preamble and then use ERT to start/end the 
environment (and to flag items).  I'm attaching a sample document.


/Paul


spacing.lyx
Description: application/lyx


Re: make a .pdf of part of a document

2006-05-19 Thread Paul A. Rubin

[EMAIL PROTECTED] wrote:



May I suggest that you add these methods/tips to this page:

http://wiki.lyx.org/FAQ/PDF



Done.
/Paul



Info messages in the calling shell

2006-05-19 Thread Jean-Pierre Chretien
Hello LyXers

Since LyX-1.4, I see a lot of informative messages printed in the shell
from which I called LYx, like (while spellchecking):
ControlSpellchecker::replace(sans)

Did I miss an option when I configured ?
LyX built from source on Solaris.

-- 
Jean-Pierre




Re: numbered list: space between rows

2006-05-19 Thread Juergen Spitzmueller
Paul A. Rubin wrote:
> You can do it list-by-list in the document body, or you can define a new
> environment in the preamble and then use ERT to start/end the
> environment (and to flag items).  I'm attaching a sample document.

A much simpler solution, which works generally, is to put this in the preamble 
(provided you have the enumitem package installed):

\usepackage{enumitem}
\setenumerate{parsep=0pt,itemsep=0pt,partopsep=0pt}

Read the enumtiem documentation for more possibilities.

Jürgen


Re: Adding TeX class problem

2006-05-19 Thread Eugeny N Dzhurinsky
On Fri, May 19, 2006 at 05:31:22PM +0200, Ingo Kl?cker wrote:
> You have to choose "Tools->Reconfigure" _after_ creating the dummy 
> layout because Reconfigure looks for new layouts. From your description 
> you did it before you created the dummy layout.

Really, you were right!

Now I'm able to open document in LyX. However I can't see it as DVI, it
complains about

 \confidential
  {} \docstatus{} \docversion{1.0}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.


-- 
Eugene N Dzhurinsky


spellchecker problem

2006-05-19 Thread Liu Feng
Dir Sir
when I want to activate the spellchecker via TOOL-Preference, but 'Spellchecker 
executable' is grey out. No chance do it. Could you please tell me to fix this 
problem. Thanks
BTW I am using lyx-1.4 English version in Win XP 
Feng




-
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ 
countries) for 2¢/min or less.

Extending book (koma-script)

2006-05-19 Thread Oliver Ruebenkoenig

Hi there,

my goal is to make available the definition, example, etc from book (AMS) 
in book (koma-script). Now, I am not en expert and the fact that this has not 
been done, probably does have some reason which I, very well, might have 
missed. Anyways, what I did was to copy scrbook.layout to ~/.lyx/layouts 
and inset a

#  \DeclareLaTeXClass[scrbook]{book (koma-script + AMS)}

then I tried two things. First 

Input amsmaths.inc

This did not work. Lyx: The document could not be converted into the 
document class scrbookAMS.

Second I did:

I am aware of 
http://www.troubleshooters.com/linux/lyx/index.htm#textclass_mod_tut

and so I included

Preamble
  \theoremstyle{plain}
\newtheorem{thm}{Theorem}[section]
EndPreamble

but then I got the message that /theoremstyle{plain} is an undef. control 
sequence - which I agree to, but where do I get it from? 

I would appreciate any hints to enlighten my dull mind.

Oliver


Oliver Ruebenkoenig, <[EMAIL PROTECTED]>
   Phone: ++49 +761 203 7388


Re: spellchecker problem

2006-05-19 Thread Uwe Stöhr

Liu Feng wrote:


when I want to activate the spellchecker via TOOL-Preference, but 'Spellchecker 
executable' is grey out. No chance do it. Could you please tell me to fix this 
problem. Thanks
BTW I am using lyx-1.4 English version in Win XP


This option is deactivated in LyX for Windows because you have to use in 
any case the spellchecker "aspell".

If you installed Lyx using this installer:
http://wiki.lyx.org/Windows/LyXWinInstaller
You only need to install an aspell dictionary from here:

http://developer.berlios.de/project/showfiles.php?group_id=5117_id=9651

otherwise install aspell using this version:

http://wiki.lyx.org/uploads/Windows/Aspell6/AspellData-0.60.4.exe

and then install an aspell dictionary.

regards Uwe


Re: Equation numbering corresponding to section number

2006-05-19 Thread Uwe Stöhr

Liu Feng wrote:


Thank you for expertise response, it works. But the
equation number goes to the left of the equation, I
want it set on the right, could you gave me anothery
key to fix it?


Then you use a special document class or your document uses the option 
"leqno" (in LyX's menu Document -> Settings -> Document Class -> Class 
Options)
To get the formula numbers on the right side delete this option, or if 
this doesn't help try to use the option "reqno" (add it in the document 
class option field).


regards Uwe


Re: spellchecker problem

2006-05-19 Thread Stephen Harris

Liu Feng wrote:

Dir Sir
when I want to activate the spellchecker via TOOL-Preference, but 'Spellchecker 
executable' is grey out. No chance do it. Could you please tell me to fix this 
problem. Thanks
BTW I am using lyx-1.4 English version in Win XP 
Feng





I assume you meant lyx1.4.1 since 1.4.0 is fairly buggy.
Aspell is used by LyX and must be installed in C:\Aspell
Your idea above, of how to install Aspell is not needed.

You will need to install the Aspell program and also a
dictionary for your language; then LyX->Tools->Reconfigure

http://wiki.lyx.org/Windows/LyX14x
http://wiki.lyx.org/Windows/Aspell6

If you have other packages missing it might be better
to uninstall LyX and reinstall with the WinLyXInstaller.
http://wiki.lyx.org/Windows/LyXWinInstaller (complete)

It is possible to have LyX1.3.7 with the older Aspell
.53 version and LyX 1.4.1 with the newer .6 version
Aspell engine and dict. both be installed and working.

\the_end
Stephen


alignment shortcut

2006-05-19 Thread Sanda Pavel
hi,

i would like to use shortcuts for paragraph alignments (lyx 1.3.5),
but i havent found any function which i can use for such a bind.
how can i do that bind ?

thanks
pavel