Re: rotated figure, unrotated caption?

2006-05-17 Thread Eric Zollars

Stephen Harris wrote:

Eric Zollars wrote:

I have a figure that is imported and rotated 90 degrees (so it reads 
down to up), but the caption remains left to right.


Is there a way to make a caption (in a float) read down to up?

Eric



http://www.ece.tamu.edu/~tex/manual/node37.html

If a figure or table is too wide, you may try to rotate the figure or 
table 90 degrees counter-clockwise to produce a landscape figure or 
table. Figures can be rotated using the angle option in 
\includegraphics. If the caption also needs to be rotated, use the 
\rotcaption command instead of \caption command in the \figure 
environment. The \rotcaption command requires \usepackage{rotating} to 
be placed before the \begin{document} in the thesis.tex file. For example,


\begin{figure}
\includegraphics[angle=90]{file.ps}
\rotcaption{Figure Caption}
\label{fig}
\end{figure}

Tables and figures can be rotated using the \sideways environment. This 
environments always rotates 90 degrees counter-clockwise.


There is a caption package also. I'm not sure this answered your
question if you meant something like:

T
h
i
s

i
s

a

c
a
p
t
i
o
n

Yes, if you meant rotate to landscape and maintain
prior caption orientation. A useful resource: 
www.tug.org/tex-archive/info/visualFAQ/visualFAQ.pdf

For instance the 1st page answers your copyright and trademark question.

Regards,
Stephen


Thanks for the references, and I guess I was not perfectly clear.

If I have a figure:

aa
aa
aa
aa
Figure 4.2 bbb

I want the whole block (figure and citation) to be rotated counterclockwise.

Is there a way to do this in LyX? Specifically in the float environment?

I will try your LaTeX solution.

Thanks.
Eric


Re: rotated figure, unrotated caption?-MORE

2006-05-17 Thread Eric Zollars
I need to rotate a figure and the associated caption by 90 degrees 
counterclockwise.






http://www.ece.tamu.edu/~tex/manual/node37.html

If a figure or table is too wide, you may try to rotate the figure or 
table 90 degrees counter-clockwise to produce a landscape figure or 
table. Figures can be rotated using the angle option in 
\includegraphics. If the caption also needs to be rotated, use the 
\rotcaption command instead of \caption command in the \figure 
environment. The \rotcaption command requires \usepackage{rotating} to 
be placed before the \begin{document} in the thesis.tex file. For example,


\begin{figure}
\includegraphics[angle=90]{file.ps}
\rotcaption{Figure Caption}
\label{fig}
\end{figure}


I have tried this (viewing in DVI) and the figure is rotated 
counterclockwise but the caption remains left-to-right across the bottom 
of the page.


A separate issue is that when I try to export to PDF with pdflatex I get 
the error LaTeX Error: Unknown graphics extension: .eps. for this one 
figure. There are dozens of eps figures in the rest of the document that 
LyX correctly imports (Insert-Graphics). So, if I do get the 
\includegraphics working correctly with the sideways caption what do I 
have to do to the .eps file for LaTeX to correctly export to pdf?



Yes, if you meant rotate to landscape and maintain
prior caption orientation. A useful resource: 
www.tug.org/tex-archive/info/visualFAQ/visualFAQ.pdf

For instance the 1st page answers your copyright and trademark question.


I did not find an example in visualFAQ.pdf similar to what I want.

Thanks
Eric


Re: lyx language code

2006-05-17 Thread Holger Blasum
On 05-16, Wolfgang Engelmann wrote:
 Thanks, Holger,
 that is strange: 
 The lyx file is ISO...
 [EMAIL PROTECTED]:~/PP-buch file engelmann.lyx
 engelmann.lyx: ISO-8859 C program text

Ok, here file guessed correctly the encoding (ISO-8859-1) but 
then your lyx file looked a bit like C code to the libmagic
guessing (*maybe* because of an lyx-comment (#) at the beginning that is 
also used for C include headers). Heuristics are never perfect, and
I am not aware that libmagic has any implementation for specifically
recognizing lyx files but I think guessing the charset (what you needed 
here) is more reliable than guessing the file type (what you dont need 
here) ...

 But the bib file, produced by Jabref, although it is said to be set to 
 ISO-88.. by default (Optionspreferencesdefault encoding) is UTF
 pp-plants-newz.bib: UTF-8 Unicode English text
 [EMAIL PROTECTED]:~/PP-buch/PP-chapter-bib cd ..
 What to do??

Either use an editor (Kate was suggested by K Elo yesterday) or do 
cp pp-plants-new.bib pp-plants-new-2.bib
recode UTF-8..ISO-8859-1 pp-plants-new-2.bib

It *may* happen that if your bib file contains non ISO-8859-1
characters (say Chinese, Cyrillic or just any of the Eastern 
European latin extensions) then if I remember correctly recode will 
complain. In that case you also might want to try: 

iconv -f UTF-8 -t ISO-8859-1 -input pp-plants-new.bib 
  -c -output pp-plants-new-2.bib

where -c omits characters invalid in the target encoding. That of 
course is not a lossless conversion so keep the original file.

Cheers,

-- 
Holger Blasum +49-174-7313590 (gsm) GnuPG 1024D/ACDFC3B769DC1ED66B47



Re: lyx language code

2006-05-17 Thread Wolfgang Engelmann
Am Mittwoch, 17. Mai 2006 07:47 schrieb K. Elo:
 Hi,

 2006-05-16 20:01 +0200, Wolfgang Engelmann:
  Am Dienstag, 16. Mai 2006 18:31 schrieb Holger Blasum:
   Hello Wolfgang,
  
   On 05-16, Wolfgang Engelmann wrote:
I have some difficulties with my references. I use a Jabref created
data
  
   To change the encoding, use recode or iconv (warning:
   at least recode acts in-place, so perhaps make a backup first).

 You can also use e.g. the editor Kate: Open the bibliography in Kate,
 then select Tools-Encoding-ISO-8859-1 and finally save the file.
 Ready!

 Hope this helps,
 Kimmo

Kimmo,

I followed your suggestion. However, the dvi output does still not displays 
the diacretics correctly. Could it be that by entering the bibfile by lyx it 
checks the first line of the bibfile which still says:
This file was created with JabRef 1.7.1.
Encoding: UTF-8

and could I just through these lines out or replace it with the iso-8859-1?
thanks
Wolfgang


Re: citationstyle natbib

2006-05-17 Thread Wolfgang Engelmann
Am Mittwoch, 17. Mai 2006 07:44 schrieb K. Elo:
 Hi,

 2006-05-16 14:45 +0200, Wolfgang Engelmann:
  I am using citationstyle natbib \usepackage{natbib} which gives me e.g.
  author [2003].
  It should, however, be
  author 2003
  How do I achieve this?

 Click the citation in LyX and the citation dialog appears. There is a
 drop-down list called 'Citation style'. Use it to change the citation
 style.

would this work globaly in the whole document?

I tried it with one citation, but the citation style is greyed out, can´t 
click it.
Note that I use a Jabref created bib file for the citations in the document.

Wolfgang


Using the theorem enviroment with Koma-script in 1.4.x

2006-05-17 Thread John McCabe-Dansted

When writting my thesis I found that I needed komascript to format a
Thesis correctly, but that LyX would only allow me to enter Theorems
in a AMS class. My solution to this was to have a Book(koma-script)
main document that included Book(AMS) LyX documents which contained
the theorems, lemmas etc.

However with 1.4.1 LyX now generates a prompt
 LyX: Different textclasses
 Included file `afile.lyx'
 has textclass `amsbook'
 while parent file has textclass `scrbook'.
for each included file. As I have a dozen included files, just
clicking OK can take a while. Does anyone know of a way to suppress
these dialogs or otherwise allow theorems to be entered via the LyX
GUI into a komascript document?

--
John C. McCabe-Dansted
PhD Student
University of Western Australia


Show entry type in References

2006-05-17 Thread Ares

Hello everyone,
I'm using LyX to compile a PhD thesis and a bibtex database for
references, and I'm new to both.
I would like to group the references according to entry type, and to
show the entry type itself in the references. this would look like, for
instance:

...
References

articles
[Art1] article1
[Art2] article2
etc
Books
[Book1] book1
[Book2] book2
etc
etc
...

Is there anyone who knows how to do that? maybe using an appropriate bst
file that does that??
Thanks for your support
Diego


Re: lyx language code

2006-05-17 Thread Georg Baum
K. Elo wrote:

 You can also use e.g. the editor Kate: Open the bibliography in Kate,
 then select Tools-Encoding-ISO-8859-1 and finally save the file.
 Ready!

That does not work, because it does not change the encoding of the file, it
only changes how kate interprets the file and therefore the on-screen
display. recode or iconv are needed here.


Georg



Re: lyx language code

2006-05-17 Thread K. Elo
Hi again,

2006-05-17 09:53 +0200, Wolfgang Engelmann:
 Am Mittwoch, 17. Mai 2006 07:47 schrieb K. Elo:
  Hi,
 
  2006-05-16 20:01 +0200, Wolfgang Engelmann:
   Am Dienstag, 16. Mai 2006 18:31 schrieb Holger Blasum:
Hello Wolfgang,
   
On 05-16, Wolfgang Engelmann wrote:
 I have some difficulties with my references. I use a Jabref created
 data
   
To change the encoding, use recode or iconv (warning:
at least recode acts in-place, so perhaps make a backup first).
 
  You can also use e.g. the editor Kate: Open the bibliography in Kate,
  then select Tools-Encoding-ISO-8859-1 and finally save the file.
  Ready!
 
  Hope this helps,
  Kimmo
 
 Kimmo,
 
 I followed your suggestion. However, the dvi output does still not displays 
 the diacretics correctly. 

Have You checked out the file to be sure the conversion of special
characters worked correctly?

 Could it be that by entering the bibfile by lyx it 
 checks the first line of the bibfile which still says:
 This file was created with JabRef 1.7.1.
 Encoding: UTF-8 
 and could I just through these lines out or replace it with the iso-8859-1?

First, maybe You should upgrade Jabref to 2.0.1? It's really worth
upgrading.

Second, I'm not sure if replacing the header really helps. My own Jabref
bibliography begins with:

This file was created with JabRef 2.0.1.
Encoding: ISO8859_1

You may try replacing the encoding definition manually, maybe it
helps...

Kind regards,
Kimmo



Re: lyx language code

2006-05-17 Thread K. Elo
Hi Georg,

2006-05-17 10:04 +0200, Georg Baum:
 K. Elo wrote:
 
  You can also use e.g. the editor Kate: Open the bibliography in Kate,
  then select Tools-Encoding-ISO-8859-1 and finally save the file.
  Ready!
 
 That does not work, because it does not change the encoding of the file, it
 only changes how kate interprets the file and therefore the on-screen
 display. recode or iconv are needed here.

Sorry, my mistake. But iconv or recode is not needed, because You can
select the encoding for the file in Kate, too: File-Save As. In the
upper-right corner, beneath the path list, is a drop-down menu for
encoding.

Kind regards,
Kimmo




Re: citationstyle natbib

2006-05-17 Thread K. Elo
Hi,

2006-05-17 09:58 +0200, Wolfgang Engelmann:
 Am Mittwoch, 17. Mai 2006 07:44 schrieb K. Elo:
  Hi,
 
  2006-05-16 14:45 +0200, Wolfgang Engelmann:
   I am using citationstyle natbib \usepackage{natbib} which gives me e.g.
   author [2003].
   It should, however, be
   author 2003
   How do I achieve this?
 
  Click the citation in LyX and the citation dialog appears. There is a
  drop-down list called 'Citation style'. Use it to change the citation
  style.
 would this work globaly in the whole document?

AFAIK, no. It's works only for the selected citation.

 I tried it with one citation, but the citation style is greyed out, can´t 
 click it.
 Note that I use a Jabref created bib file for the citations in the document.

Pushing from Jabref into a Lyx document should not cause any such
problems (I have just pushed a citation into Lyx and could change the
sitation style with no problems at all). What Lyx-version are You using?
1.4.1?

Kind regards,
Kimmo




Re: [Pkg-lyx-devel] Re: dvipost (hopefully) ready for Debian

2006-05-17 Thread Sven Hoexter
On Tue, May 16, 2006 at 03:55:58PM +0200, Per Olofsson wrote:
 Sven Hoexter:
  Hi all,
  yesterday I've been working on Matej Cepl's dvipost package
  so that it can stand the Debian QA and move into the main
  archive.
  
  So if you've some spare time please give it a try and if you're
  familiar with Debian packages please look over the source package
  aswell.
 
 Good work!
*sigh* and still so many glitches left to workaround ...
 
 Some suggestions:
 
 * It should be possible to have TeXlive installed instead of teTex. It
   should probably depend on tetex-bin | texlive-base-bin or something.
Oh I remember I've read something about TeXlive somewhere somewho.
I definetly need to dig deeper here. Good point.

   BTW, is it really necessary to depend on TeX at all? Can't this
   package be used without TeX, if you have a DVI file? Maybe you
   should just recommend TeX instead?
Well my Tex knowledge is very low (that's why I like to put Lyx between
me and latex) but I think it's needed to register the style file
dvipost.sty. So with my current knowledge I think Tex is required.

 * There are missing ending newlines in postinst and postrm.
Hmpf fixed that in control, donno why I missed those two. Fixed now.

 * You should use dh_installtex instead of running texhash manually (I
   think). Have you read the TeX policy in the tex-common package? Also
   see the dh_installtex(1) manpage.
I had to ask on the mentors mailinglist and Frank did not recommend
dh_installtex. (hm I would like to copy and paste the link but somehow
I'm unable to copy and paste from from elinks with gpm *grummel*)

Reading the manpage it's talking about mapfiles and language files
and the examples have nothing with .sty. As said above I've no clue
about the inner workings of latex.

 * Do you really need to create those directories listed in
   debian/dirs?
Hm not all of them.

 * The configure script checks things by running kpsewhich and
   tex. These are not listed in the Build-Depends. You should probably
   try to hardwire these values, or, if you must, build-depend on TeX.
Sure, need to patch that out. Frank told me that those workarounds used
in the configure script are ugly and wrong.

 * There are lintian errors. Please fix them.
Hm with which options did you run lintian?

 * The package is configured two times when using debuild (which uses
   dpkg-buildpackage). The problem seems to be the patch target
   dependency. You should probably move the dependency from the
   config.status target to the build target (before build-stamp).
Ah that's a little bit odd. We need to patch some things in configure
and makefile.in so the patches have to be applied bevore the first
configure run. Guess I've to re-read some things about dpatch.

Thanks for your detailed feedback.

Sv*back-to-work*en
-- 
If you won't forgive me the rest of my life
Let me apologize while I'm still alive
I know it's time to face all of my past mistakes
  [Less than Jake - Rest Of My Life]


Size of superindex

2006-05-17 Thread icebna

Hi
How can adjust the size of superindex - for example ª, ª = number -  
in the menu Insert - Special character - Superindex, because is a little 
big. I work with lyx-1.3.7 in Mandriva 2006.

Thanks advanced
Miguel


smime.p7s
Description: S/MIME Cryptographic Signature


Re: [Pkg-lyx-devel] Re: dvipost (hopefully) ready for Debian

2006-05-17 Thread Per Olofsson
Sven Hoexter:
 *sigh* and still so many glitches left to workaround ...

Well, there are always glitches. You never get everything right from
the start.

 Well my Tex knowledge is very low (that's why I like to put Lyx between
 me and latex) but I think it's needed to register the style file
 dvipost.sty. So with my current knowledge I think Tex is required.

I think TeX will register it when it is installed, because it is
already placed in the right directory and TeX will run texhash upon
installation. So you could probably run texhash if it is available and
otherwise do nothing. But it doesn't matter much since people will
generally have TeX installed anyway.

(I don't know very much about TeX either.)

 I had to ask on the mentors mailinglist and Frank did not recommend
 dh_installtex. (hm I would like to copy and paste the link but somehow
 I'm unable to copy and paste from from elinks with gpm *grummel*)
 
 Reading the manpage it's talking about mapfiles and language files
 and the examples have nothing with .sty. As said above I've no clue
 about the inner workings of latex.

Sounds right.

  * There are lintian errors. Please fix them.
 Hm with which options did you run lintian?

$ lintian --version
Lintian v1.23.21
$ lintian dvipost_1.1-1_i386.deb 
E: dvipost: description-starts-with-package-name
E: dvipost: description-too-long
E: dvipost: spelling-error-in-description prefered preferred

Some other comments about the description:

Dvipost is used for special modes, which normally needs the support ...

needs should be need since modes is plural.


With dvipost, this features ...

should be these features.

 
  * The package is configured two times when using debuild (which uses
dpkg-buildpackage). The problem seems to be the patch target
dependency. You should probably move the dependency from the
config.status target to the build target (before build-stamp).
 Ah that's a little bit odd. We need to patch some things in configure
 and makefile.in so the patches have to be applied bevore the first
 configure run. Guess I've to re-read some things about dpatch.

Well, even if you move it to the build target it can run before
./configure. Just put the dependency before the config.status
dependency.

 Thanks for your detailed feedback.

Glad to help!

-- 
Pelle


Error during generation of dvi file

2006-05-17 Thread Vivek Sharma
I am trying to generate a dvi file and get a error when two or more citations 
are together stating:

Argument of [EMAIL PROTECTED] has an extra}
Paragraph ended before [EMAIL PROTECTED] was complete
Missing control sequence inserted...

The error does not occur when generating pdflatex.

I have tried disabling \usepackage{babel}

It does not help 

Does anyone know what this is due to and how to correct it?

I can attach the offending lyx file and the bib file.

I use Lyxwin1.4.1 on win xp with miktex, the version available from the 
official web ftp site, not the one provided by uwe.

thanks

vivek







Re: eqnarray numbering

2006-05-17 Thread kai-martin knaak
[EMAIL PROTECTED] wrote:

 does anybody knows how to number e.g. the first and the third equation?

See the manual , section 5.5

Add numbers ti a specific equation only: 
  Insert a label at the end of that line

Disable numbers for a specific equation: 
  Use the menu Edit-Math-Toggle_Numbering_of_Line


---(kaimartin)---
-- 
Kai-Martin Knaak
http://lilalaser.de/blog



Centering a float figure

2006-05-17 Thread Patton, Eric
I have a figure float in my paragraph that looks pretty good; the caption is
centered in the page, but the image itself is left-justified, seemingly by
default. None of the right-click context menu options seems to allow the
justification of the image itself, only the float position on the page.

Is it possible to center the image in the page, above the caption?

 
~~~
 
Eric Patton
 


Re: rotated figure, unrotated caption?-MORE

2006-05-17 Thread Paul A. Rubin

Eric Zollars wrote:
I need to rotate a figure and the associated caption by 90 degrees 
counterclockwise.




Have a look at http://www.perce.de/LaTeX/rotating.pdf.

/Paul



Re: Error during generation of dvi file

2006-05-17 Thread Paul A. Rubin

Vivek Sharma wrote:
I am trying to generate a dvi file and get a error when two or more citations 
are together stating:


Argument of [EMAIL PROTECTED] has an extra}
Paragraph ended before [EMAIL PROTECTED] was complete
Missing control sequence inserted...

The error does not occur when generating pdflatex.

I have tried disabling \usepackage{babel}

It does not help 


Does anyone know what this is due to and how to correct it?

I can attach the offending lyx file and the bib file.

I use Lyxwin1.4.1 on win xp with miktex, the version available from the 
official web ftp site, not the one provided by uwe.


thanks

vivek



I think you'll need to post the offending document and bib files.

/Paul



Re: reference list

2006-05-17 Thread Paul A. Rubin

Wolfgang Engelmann wrote:

I am using natbib and the references are given in the reference list as
A.B. Author
it should, however, be
Author AB

Do I need to dig into the art of using Bibtex or is there an easy solution?

Wolfgang



This is controlled by the BibTeX style file (.bst) that you're using. 
If you cannot find a style file that matches what you want, you can use 
the makebst utility to build one fairly easily.


/Paul



Re: Centering a float figure

2006-05-17 Thread Sara Stymne

Hi!

There is probably a better way, but one way that works is to enter 
\centering in ERT in the figure float.


/Sara

Patton, Eric wrote:


I have a figure float in my paragraph that looks pretty good; the caption is
centered in the page, but the image itself is left-justified, seemingly by
default. None of the right-click context menu options seems to allow the
justification of the image itself, only the float position on the page.

Is it possible to center the image in the page, above the caption?


~~~

Eric Patton

 





Re: Centering a float figure

2006-05-17 Thread Paul A. Rubin

Patton, Eric wrote:

I have a figure float in my paragraph that looks pretty good; the caption is
centered in the page, but the image itself is left-justified, seemingly by
default. None of the right-click context menu options seems to allow the
justification of the image itself, only the float position on the page.

Is it possible to center the image in the page, above the caption?


Put the cursor alongside the image, and center it the same way you would 
center a paragraph.  In LyX 1.4.x, this would be Edit-Paragraph 
settings; in 1.3.x, it would be Layout-Paragraph.


/Paul




Re: German Spellchecker

2006-05-17 Thread Theo
 Do you also have de-only.rws in C:\Aspell\dict\?  That's the actual 
 dictionary (I think). You probably should also have de_DE-only.rws.

i only have the de_DE-only.rws in C:\Aspell\lib\aspell-0.60
(i don't have the de-only.rws) 

now it started working. but sometimes it just stops and the alert pops up. if i
try again it works again.

that's ok for me, since i am running a little short in time regarding the print
date of my master's thesis :-)

thanks for your help.
theo






Re: Using the theorem enviroment with Koma-script in 1.4.x

2006-05-17 Thread Ingo Klöcker
Am Mittwoch, 17. Mai 2006 09:57 schrieb John McCabe-Dansted:
 When writting my thesis I found that I needed komascript to format a
 Thesis correctly, but that LyX would only allow me to enter Theorems
 in a AMS class. My solution to this was to have a Book(koma-script)
 main document that included Book(AMS) LyX documents which contained
 the theorems, lemmas etc.

 However with 1.4.1 LyX now generates a prompt
   LyX: Different textclasses
   Included file `afile.lyx'
   has textclass `amsbook'
   while parent file has textclass `scrbook'.
 for each included file. As I have a dozen included files, just
 clicking OK can take a while. Does anyone know of a way to suppress
 these dialogs or otherwise allow theorems to be entered via the LyX
 GUI into a komascript document?

As always in such a case it's best to write a new layout file. 
Obviously, this layout file should be derived from the KOMA book layout 
file. For my thesis I've created a layout file for KOMA book with 
ntheorem and paralist package. I've attached the corresponding files. 
You have to put them into ~/.lyx/layouts (at least on Linux/Unix). Then 
you have to run Edit-Reconfigure... After restarting the new text 
class (called book (Doktorarbeit koma)) should be available. If it 
works then switch the class of all files to this class. Make sure you 
make a backup of your thesis before you try this!

Regards,
Ingo

# Author: Ingo Kloecker [EMAIL PROTECTED]
# This defines the theorem styles environments provided by ntheorem.sty.
# Most of this stuff was adapted from the layout files for AMS document
# classes.
# This version has Theorems and other results numbered in one sequence, and all
# numbered environments (figures as well) containing the section number.
# (Theorem (1.1), Corollary (1.2) Theorem (1.3), etc.
# This is the english version.

# Due to a bug (?) in LyX the following has to be copied to the Preamble block
# of the layout file which includes this file. Changing it here doesn't have
# any effect.
Preamble
  \usepackage{amsmath}
  \usepackage[standard,amsmath,thmmarks]{ntheorem}
  \theoremstyle{plain}
  \newtheorem{thm}{Theorem}[chapter]
EndPreamble

# The environments defined are :
# - Proof
# - Theorem
# - Theorem*
# - Lemma
# - Lemma*
# - Proposition
# - Proposition*
# - Corollary
# - Corollary*
# - Definition
# - Definition*
# - Remark
# - Remark*
# - Example
# - Example*

# Proof style declaration
Style Proof
  MarginFirst_Dynamic
  LatexType Environment
  LatexName proof
  NextNoIndent  1
  LabelSep  xx
  ParIndent MMM  
  ParSkip   0.4
  ItemSep   0.2
  TopSep0.7
  BottomSep 0.7
  ParSep0.3
  Align Block
  AlignPossible Block, Left
  LabelType Static
  LabelString   Proof.
  EndLabelType  Box
  
  # standard font definition
  Font
Shape   Up
SizeNormal
  EndFont

  # label font definition
  LabelFont
Shape   Italic
  EndFont

  # We don't want the preamble from Theorem
  Preamble
  EndPreamble 
End  

# Theorem-numbered style declaration
Style Theorem
  MarginFirst_Dynamic
  LatexType Environment
  LatexName thm
  NextNoIndent  1
  LabelSep  xx
  ParIndent MMM  
  ParSkip   0.4
  ItemSep   0.2
  TopSep0.7
  BottomSep 0.7
  ParSep0.3
  Align Block
  AlignPossible Block, Left
  LabelType Static
  LabelString   Theorem #.

  
  # standard font definition
  Font
Shape   Italic
SizeNormal
  EndFont

  # label font definition
  LabelFont
Shape   Up
Series  Bold
  EndFont

End  

# Theorem-unnumbered style declaration
Style Theorem*
  CopyStyle Theorem
  LatexName thmNN*
  LabelString   Theorem.

  Preamble
\theoremstyle{plain}
\newtheorem*{thmNN*}{Theorem} %% unnumbered; needed for LyX
  EndPreamble
End  

# Lemma-numbered style declaration
Style Lemma
  CopyStyle Theorem
  LatexName lem
  LabelString   Lemma #.

  Preamble
\theoremstyle{plain}
\newtheorem{lem}[thm]{Lemma} %%Delete [thm] to re-start numbering
  EndPreamble
End  

# Lemma-unnumbered style declaration
Style Lemma*
  CopyStyle Theorem
  LatexName lemNN*
  LabelString   Lemma.

  Preamble
\theoremstyle{plain}
\newtheorem*{lemNN*}{Lemma} %% unnumbered; needed for LyX
  EndPreamble
End  

# Proposition-numbered style declaration
Style Proposition
  CopyStyle Theorem
  LatexName prop
  LabelString   Proposition #.

  Preamble
\theoremstyle{plain}
\newtheorem{prop}[thm]{Proposition} %%Delete [thm] to re-start 

Border around Image

2006-05-17 Thread Theo
Hi,

i'd like to have a 1px border around images. do i have to install some kind of
border-package or is there an easy way in LyX i just haven't found ?

cheers,
theo




Re: Border around Image

2006-05-17 Thread Paul Smith

On 5/17/06, Theo [EMAIL PROTECTED] wrote:

i'd like to have a 1px border around images. do i have to install some kind of
border-package or is there an easy way in LyX i just haven't found ?


Check the command \fbox.

Paul


Re: rotated figure, unrotated caption?-MORE

2006-05-17 Thread Eric Zollars
I discovered that the problem is that the DVI is not displaying the 
rotated caption correctly. This is Yap 2.4.1803 on Windows.


pdflatex displays the rotated caption correctly (and the figure once I 
convert it to pdf).


So the problem appears to be DVI. (I already had this problem with a 
multipage landscape table, which is why I checked.)


Is this a known problem?

Eric

Paul A. Rubin wrote:

Eric Zollars wrote:

I need to rotate a figure and the associated caption by 90 degrees 
counterclockwise.




Have a look at http://www.perce.de/LaTeX/rotating.pdf.

/Paul



make a .pdf of part of a document

2006-05-17 Thread mail.k
Is it possible to make a .pdf of a specific chapter or section of a long 
document (not the whole document)?


regards,
eran


Re: eqnarray numbering

2006-05-17 Thread Uwe Stöhr

[EMAIL PROTECTED] schrieb:


i would like to number NOT all equations in an array of equations. but i
can just number all or none.


Set the cursor in a line of the equation and then press Alt-m N (not 
Alt-m n). The alternative is the menu Edit - Math - Toggle Line Numbering.


regards Uwe


Re: eqnarray numbering

2006-05-17 Thread tceglare
That's it. Thank you.

 Disable numbers for a specific equation:
   Use the menu Edit-Math-Toggle_Numbering_of_Line



Re: rotated figure, unrotated caption?-MORE

2006-05-17 Thread Stephen Harris

Eric Zollars wrote:
I discovered that the problem is that the DVI is not displaying the 
rotated caption correctly. This is Yap 2.4.1803 on Windows.


pdflatex displays the rotated caption correctly (and the figure once I 
convert it to pdf).


So the problem appears to be DVI. (I already had this problem with a 
multipage landscape table, which is why I checked.)


Is this a known problem?

Eric



Circumstantially, yes. I doubt that it is worth the effort
to install Cygwin to get xdvi, although xdvi is a better
viewer. The command dvips filename produces a .ps file
which gsview (better than the Cygwin gv counterpart) can view.
You probably have gsview installed as your Postscript viewer.




The LaTeX caption package

Note that the TrueTeX Previewer provided with SWP and SW doesn't 
support rotation; you must use a different DVI previewer and print 
driver if you want to use the caption package to create rotated

captions in a DVI file.

However, PDF viewers do support rotation, so you can use the
packages to create rotated captions in typeset PDF files.

---

epslatex.pdf

* The eps graphics are not included in the dvi file. Since the eps files
must be present when the dvi file is converted to ps, the eps files must
accompany dvi files whenever they are moved.

* The eps graphics do not appear in most dvi viewers. To help the user
with placement of the graphics, dvi viewers generally display the
BoundingBox in which the graphics will be inserted. (Some viewers, such
as xdvi, use ghostscript to interpret the eps graphics and display them
in the dvi viewer.)

---

dvipdfm will work if the image files are _only_ eps.
There is also a package to make a boundingBox if it is missing.

Regards,
Stephen


Re: rotated figure, unrotated caption?-MORE

2006-05-17 Thread Stephen Harris

Stephen Harris wrote:

Eric Zollars wrote:
I discovered that the problem is that the DVI is not displaying the 
rotated caption correctly. This is Yap 2.4.1803 on Windows.


pdflatex displays the rotated caption correctly (and the figure once I 
convert it to pdf).


So the problem appears to be DVI. (I already had this problem with a 
multipage landscape table, which is why I checked.)


Is this a known problem?



---

epslatex.pdf

1. The EPS file contains a long binary preview.
Some applications place a binary preview of the graphics at the 
beginning of the eps file. This allows applications (such as dvi 
viewers) to display the graphics even though the application cannot 
interpret PostScript. Currently, relatively few TEX-related

applications use such previews.

-

docs.miktex.org/2.5/preview.pdf [Coming attractions/upgrade of 2.4]


11 Yap
11.1 PostScript
Support for PostScript has been improved significantly. For example,
in the past Yap refused to display rotated text. This is not a problem 
anymore (see Figure 2). The motto is: Every DVI document that can be 
viewed with a PostScript viewer (after DVI-to-PostScript conversion)

can be viewed with Yap.

---

Regards,
Stephen


Re: rotated figure, unrotated caption?

2006-05-17 Thread Eric Zollars

Stephen Harris wrote:

Eric Zollars wrote:

I have a figure that is imported and rotated 90 degrees (so it reads 
down to up), but the caption remains left to right.


Is there a way to make a caption (in a float) read down to up?

Eric



http://www.ece.tamu.edu/~tex/manual/node37.html

If a figure or table is too wide, you may try to rotate the figure or 
table 90 degrees counter-clockwise to produce a landscape figure or 
table. Figures can be rotated using the angle option in 
\includegraphics. If the caption also needs to be rotated, use the 
\rotcaption command instead of \caption command in the \figure 
environment. The \rotcaption command requires \usepackage{rotating} to 
be placed before the \begin{document} in the thesis.tex file. For example,


\begin{figure}
\includegraphics[angle=90]{file.ps}
\rotcaption{Figure Caption}
\label{fig}
\end{figure}

Tables and figures can be rotated using the \sideways environment. This 
environments always rotates 90 degrees counter-clockwise.


There is a caption package also. I'm not sure this answered your
question if you meant something like:

T
h
i
s

i
s

a

c
a
p
t
i
o
n

Yes, if you meant rotate to landscape and maintain
prior caption orientation. A useful resource: 
www.tug.org/tex-archive/info/visualFAQ/visualFAQ.pdf

For instance the 1st page answers your copyright and trademark question.

Regards,
Stephen


Thanks for the references, and I guess I was not perfectly clear.

If I have a figure:

aa
aa
aa
aa
Figure 4.2 bbb

I want the whole block (figure and citation) to be rotated counterclockwise.

Is there a way to do this in LyX? Specifically in the float environment?

I will try your LaTeX solution.

Thanks.
Eric


Re: rotated figure, unrotated caption?-MORE

2006-05-17 Thread Eric Zollars
I need to rotate a figure and the associated caption by 90 degrees 
counterclockwise.






http://www.ece.tamu.edu/~tex/manual/node37.html

If a figure or table is too wide, you may try to rotate the figure or 
table 90 degrees counter-clockwise to produce a landscape figure or 
table. Figures can be rotated using the angle option in 
\includegraphics. If the caption also needs to be rotated, use the 
\rotcaption command instead of \caption command in the \figure 
environment. The \rotcaption command requires \usepackage{rotating} to 
be placed before the \begin{document} in the thesis.tex file. For example,


\begin{figure}
\includegraphics[angle=90]{file.ps}
\rotcaption{Figure Caption}
\label{fig}
\end{figure}


I have tried this (viewing in DVI) and the figure is rotated 
counterclockwise but the caption remains left-to-right across the bottom 
of the page.


A separate issue is that when I try to export to PDF with pdflatex I get 
the error LaTeX Error: Unknown graphics extension: .eps. for this one 
figure. There are dozens of eps figures in the rest of the document that 
LyX correctly imports (Insert-Graphics). So, if I do get the 
\includegraphics working correctly with the sideways caption what do I 
have to do to the .eps file for LaTeX to correctly export to pdf?



Yes, if you meant rotate to landscape and maintain
prior caption orientation. A useful resource: 
www.tug.org/tex-archive/info/visualFAQ/visualFAQ.pdf

For instance the 1st page answers your copyright and trademark question.


I did not find an example in visualFAQ.pdf similar to what I want.

Thanks
Eric


Re: lyx language code

2006-05-17 Thread Holger Blasum
On 05-16, Wolfgang Engelmann wrote:
 Thanks, Holger,
 that is strange: 
 The lyx file is ISO...
 [EMAIL PROTECTED]:~/PP-buch file engelmann.lyx
 engelmann.lyx: ISO-8859 C program text

Ok, here file guessed correctly the encoding (ISO-8859-1) but 
then your lyx file looked a bit like C code to the libmagic
guessing (*maybe* because of an lyx-comment (#) at the beginning that is 
also used for C include headers). Heuristics are never perfect, and
I am not aware that libmagic has any implementation for specifically
recognizing lyx files but I think guessing the charset (what you needed 
here) is more reliable than guessing the file type (what you dont need 
here) ...

 But the bib file, produced by Jabref, although it is said to be set to 
 ISO-88.. by default (Optionspreferencesdefault encoding) is UTF
 pp-plants-newz.bib: UTF-8 Unicode English text
 [EMAIL PROTECTED]:~/PP-buch/PP-chapter-bib cd ..
 What to do??

Either use an editor (Kate was suggested by K Elo yesterday) or do 
cp pp-plants-new.bib pp-plants-new-2.bib
recode UTF-8..ISO-8859-1 pp-plants-new-2.bib

It *may* happen that if your bib file contains non ISO-8859-1
characters (say Chinese, Cyrillic or just any of the Eastern 
European latin extensions) then if I remember correctly recode will 
complain. In that case you also might want to try: 

iconv -f UTF-8 -t ISO-8859-1 -input pp-plants-new.bib 
  -c -output pp-plants-new-2.bib

where -c omits characters invalid in the target encoding. That of 
course is not a lossless conversion so keep the original file.

Cheers,

-- 
Holger Blasum +49-174-7313590 (gsm) GnuPG 1024D/ACDFC3B769DC1ED66B47



Re: lyx language code

2006-05-17 Thread Wolfgang Engelmann
Am Mittwoch, 17. Mai 2006 07:47 schrieb K. Elo:
 Hi,

 2006-05-16 20:01 +0200, Wolfgang Engelmann:
  Am Dienstag, 16. Mai 2006 18:31 schrieb Holger Blasum:
   Hello Wolfgang,
  
   On 05-16, Wolfgang Engelmann wrote:
I have some difficulties with my references. I use a Jabref created
data
  
   To change the encoding, use recode or iconv (warning:
   at least recode acts in-place, so perhaps make a backup first).

 You can also use e.g. the editor Kate: Open the bibliography in Kate,
 then select Tools-Encoding-ISO-8859-1 and finally save the file.
 Ready!

 Hope this helps,
 Kimmo

Kimmo,

I followed your suggestion. However, the dvi output does still not displays 
the diacretics correctly. Could it be that by entering the bibfile by lyx it 
checks the first line of the bibfile which still says:
This file was created with JabRef 1.7.1.
Encoding: UTF-8

and could I just through these lines out or replace it with the iso-8859-1?
thanks
Wolfgang


Re: citationstyle natbib

2006-05-17 Thread Wolfgang Engelmann
Am Mittwoch, 17. Mai 2006 07:44 schrieb K. Elo:
 Hi,

 2006-05-16 14:45 +0200, Wolfgang Engelmann:
  I am using citationstyle natbib \usepackage{natbib} which gives me e.g.
  author [2003].
  It should, however, be
  author 2003
  How do I achieve this?

 Click the citation in LyX and the citation dialog appears. There is a
 drop-down list called 'Citation style'. Use it to change the citation
 style.

would this work globaly in the whole document?

I tried it with one citation, but the citation style is greyed out, can´t 
click it.
Note that I use a Jabref created bib file for the citations in the document.

Wolfgang


Using the theorem enviroment with Koma-script in 1.4.x

2006-05-17 Thread John McCabe-Dansted

When writting my thesis I found that I needed komascript to format a
Thesis correctly, but that LyX would only allow me to enter Theorems
in a AMS class. My solution to this was to have a Book(koma-script)
main document that included Book(AMS) LyX documents which contained
the theorems, lemmas etc.

However with 1.4.1 LyX now generates a prompt
 LyX: Different textclasses
 Included file `afile.lyx'
 has textclass `amsbook'
 while parent file has textclass `scrbook'.
for each included file. As I have a dozen included files, just
clicking OK can take a while. Does anyone know of a way to suppress
these dialogs or otherwise allow theorems to be entered via the LyX
GUI into a komascript document?

--
John C. McCabe-Dansted
PhD Student
University of Western Australia


Show entry type in References

2006-05-17 Thread Ares

Hello everyone,
I'm using LyX to compile a PhD thesis and a bibtex database for
references, and I'm new to both.
I would like to group the references according to entry type, and to
show the entry type itself in the references. this would look like, for
instance:

...
References

articles
[Art1] article1
[Art2] article2
etc
Books
[Book1] book1
[Book2] book2
etc
etc
...

Is there anyone who knows how to do that? maybe using an appropriate bst
file that does that??
Thanks for your support
Diego


Re: lyx language code

2006-05-17 Thread Georg Baum
K. Elo wrote:

 You can also use e.g. the editor Kate: Open the bibliography in Kate,
 then select Tools-Encoding-ISO-8859-1 and finally save the file.
 Ready!

That does not work, because it does not change the encoding of the file, it
only changes how kate interprets the file and therefore the on-screen
display. recode or iconv are needed here.


Georg



Re: lyx language code

2006-05-17 Thread K. Elo
Hi again,

2006-05-17 09:53 +0200, Wolfgang Engelmann:
 Am Mittwoch, 17. Mai 2006 07:47 schrieb K. Elo:
  Hi,
 
  2006-05-16 20:01 +0200, Wolfgang Engelmann:
   Am Dienstag, 16. Mai 2006 18:31 schrieb Holger Blasum:
Hello Wolfgang,
   
On 05-16, Wolfgang Engelmann wrote:
 I have some difficulties with my references. I use a Jabref created
 data
   
To change the encoding, use recode or iconv (warning:
at least recode acts in-place, so perhaps make a backup first).
 
  You can also use e.g. the editor Kate: Open the bibliography in Kate,
  then select Tools-Encoding-ISO-8859-1 and finally save the file.
  Ready!
 
  Hope this helps,
  Kimmo
 
 Kimmo,
 
 I followed your suggestion. However, the dvi output does still not displays 
 the diacretics correctly. 

Have You checked out the file to be sure the conversion of special
characters worked correctly?

 Could it be that by entering the bibfile by lyx it 
 checks the first line of the bibfile which still says:
 This file was created with JabRef 1.7.1.
 Encoding: UTF-8 
 and could I just through these lines out or replace it with the iso-8859-1?

First, maybe You should upgrade Jabref to 2.0.1? It's really worth
upgrading.

Second, I'm not sure if replacing the header really helps. My own Jabref
bibliography begins with:

This file was created with JabRef 2.0.1.
Encoding: ISO8859_1

You may try replacing the encoding definition manually, maybe it
helps...

Kind regards,
Kimmo



Re: lyx language code

2006-05-17 Thread K. Elo
Hi Georg,

2006-05-17 10:04 +0200, Georg Baum:
 K. Elo wrote:
 
  You can also use e.g. the editor Kate: Open the bibliography in Kate,
  then select Tools-Encoding-ISO-8859-1 and finally save the file.
  Ready!
 
 That does not work, because it does not change the encoding of the file, it
 only changes how kate interprets the file and therefore the on-screen
 display. recode or iconv are needed here.

Sorry, my mistake. But iconv or recode is not needed, because You can
select the encoding for the file in Kate, too: File-Save As. In the
upper-right corner, beneath the path list, is a drop-down menu for
encoding.

Kind regards,
Kimmo




Re: citationstyle natbib

2006-05-17 Thread K. Elo
Hi,

2006-05-17 09:58 +0200, Wolfgang Engelmann:
 Am Mittwoch, 17. Mai 2006 07:44 schrieb K. Elo:
  Hi,
 
  2006-05-16 14:45 +0200, Wolfgang Engelmann:
   I am using citationstyle natbib \usepackage{natbib} which gives me e.g.
   author [2003].
   It should, however, be
   author 2003
   How do I achieve this?
 
  Click the citation in LyX and the citation dialog appears. There is a
  drop-down list called 'Citation style'. Use it to change the citation
  style.
 would this work globaly in the whole document?

AFAIK, no. It's works only for the selected citation.

 I tried it with one citation, but the citation style is greyed out, can´t 
 click it.
 Note that I use a Jabref created bib file for the citations in the document.

Pushing from Jabref into a Lyx document should not cause any such
problems (I have just pushed a citation into Lyx and could change the
sitation style with no problems at all). What Lyx-version are You using?
1.4.1?

Kind regards,
Kimmo




Re: [Pkg-lyx-devel] Re: dvipost (hopefully) ready for Debian

2006-05-17 Thread Sven Hoexter
On Tue, May 16, 2006 at 03:55:58PM +0200, Per Olofsson wrote:
 Sven Hoexter:
  Hi all,
  yesterday I've been working on Matej Cepl's dvipost package
  so that it can stand the Debian QA and move into the main
  archive.
  
  So if you've some spare time please give it a try and if you're
  familiar with Debian packages please look over the source package
  aswell.
 
 Good work!
*sigh* and still so many glitches left to workaround ...
 
 Some suggestions:
 
 * It should be possible to have TeXlive installed instead of teTex. It
   should probably depend on tetex-bin | texlive-base-bin or something.
Oh I remember I've read something about TeXlive somewhere somewho.
I definetly need to dig deeper here. Good point.

   BTW, is it really necessary to depend on TeX at all? Can't this
   package be used without TeX, if you have a DVI file? Maybe you
   should just recommend TeX instead?
Well my Tex knowledge is very low (that's why I like to put Lyx between
me and latex) but I think it's needed to register the style file
dvipost.sty. So with my current knowledge I think Tex is required.

 * There are missing ending newlines in postinst and postrm.
Hmpf fixed that in control, donno why I missed those two. Fixed now.

 * You should use dh_installtex instead of running texhash manually (I
   think). Have you read the TeX policy in the tex-common package? Also
   see the dh_installtex(1) manpage.
I had to ask on the mentors mailinglist and Frank did not recommend
dh_installtex. (hm I would like to copy and paste the link but somehow
I'm unable to copy and paste from from elinks with gpm *grummel*)

Reading the manpage it's talking about mapfiles and language files
and the examples have nothing with .sty. As said above I've no clue
about the inner workings of latex.

 * Do you really need to create those directories listed in
   debian/dirs?
Hm not all of them.

 * The configure script checks things by running kpsewhich and
   tex. These are not listed in the Build-Depends. You should probably
   try to hardwire these values, or, if you must, build-depend on TeX.
Sure, need to patch that out. Frank told me that those workarounds used
in the configure script are ugly and wrong.

 * There are lintian errors. Please fix them.
Hm with which options did you run lintian?

 * The package is configured two times when using debuild (which uses
   dpkg-buildpackage). The problem seems to be the patch target
   dependency. You should probably move the dependency from the
   config.status target to the build target (before build-stamp).
Ah that's a little bit odd. We need to patch some things in configure
and makefile.in so the patches have to be applied bevore the first
configure run. Guess I've to re-read some things about dpatch.

Thanks for your detailed feedback.

Sv*back-to-work*en
-- 
If you won't forgive me the rest of my life
Let me apologize while I'm still alive
I know it's time to face all of my past mistakes
  [Less than Jake - Rest Of My Life]


Size of superindex

2006-05-17 Thread icebna

Hi
How can adjust the size of superindex - for example ª, ª = number -  
in the menu Insert - Special character - Superindex, because is a little 
big. I work with lyx-1.3.7 in Mandriva 2006.

Thanks advanced
Miguel


smime.p7s
Description: S/MIME Cryptographic Signature


Re: [Pkg-lyx-devel] Re: dvipost (hopefully) ready for Debian

2006-05-17 Thread Per Olofsson
Sven Hoexter:
 *sigh* and still so many glitches left to workaround ...

Well, there are always glitches. You never get everything right from
the start.

 Well my Tex knowledge is very low (that's why I like to put Lyx between
 me and latex) but I think it's needed to register the style file
 dvipost.sty. So with my current knowledge I think Tex is required.

I think TeX will register it when it is installed, because it is
already placed in the right directory and TeX will run texhash upon
installation. So you could probably run texhash if it is available and
otherwise do nothing. But it doesn't matter much since people will
generally have TeX installed anyway.

(I don't know very much about TeX either.)

 I had to ask on the mentors mailinglist and Frank did not recommend
 dh_installtex. (hm I would like to copy and paste the link but somehow
 I'm unable to copy and paste from from elinks with gpm *grummel*)
 
 Reading the manpage it's talking about mapfiles and language files
 and the examples have nothing with .sty. As said above I've no clue
 about the inner workings of latex.

Sounds right.

  * There are lintian errors. Please fix them.
 Hm with which options did you run lintian?

$ lintian --version
Lintian v1.23.21
$ lintian dvipost_1.1-1_i386.deb 
E: dvipost: description-starts-with-package-name
E: dvipost: description-too-long
E: dvipost: spelling-error-in-description prefered preferred

Some other comments about the description:

Dvipost is used for special modes, which normally needs the support ...

needs should be need since modes is plural.


With dvipost, this features ...

should be these features.

 
  * The package is configured two times when using debuild (which uses
dpkg-buildpackage). The problem seems to be the patch target
dependency. You should probably move the dependency from the
config.status target to the build target (before build-stamp).
 Ah that's a little bit odd. We need to patch some things in configure
 and makefile.in so the patches have to be applied bevore the first
 configure run. Guess I've to re-read some things about dpatch.

Well, even if you move it to the build target it can run before
./configure. Just put the dependency before the config.status
dependency.

 Thanks for your detailed feedback.

Glad to help!

-- 
Pelle


Error during generation of dvi file

2006-05-17 Thread Vivek Sharma
I am trying to generate a dvi file and get a error when two or more citations 
are together stating:

Argument of [EMAIL PROTECTED] has an extra}
Paragraph ended before [EMAIL PROTECTED] was complete
Missing control sequence inserted...

The error does not occur when generating pdflatex.

I have tried disabling \usepackage{babel}

It does not help 

Does anyone know what this is due to and how to correct it?

I can attach the offending lyx file and the bib file.

I use Lyxwin1.4.1 on win xp with miktex, the version available from the 
official web ftp site, not the one provided by uwe.

thanks

vivek







Re: eqnarray numbering

2006-05-17 Thread kai-martin knaak
[EMAIL PROTECTED] wrote:

 does anybody knows how to number e.g. the first and the third equation?

See the manual , section 5.5

Add numbers ti a specific equation only: 
  Insert a label at the end of that line

Disable numbers for a specific equation: 
  Use the menu Edit-Math-Toggle_Numbering_of_Line


---(kaimartin)---
-- 
Kai-Martin Knaak
http://lilalaser.de/blog



Centering a float figure

2006-05-17 Thread Patton, Eric
I have a figure float in my paragraph that looks pretty good; the caption is
centered in the page, but the image itself is left-justified, seemingly by
default. None of the right-click context menu options seems to allow the
justification of the image itself, only the float position on the page.

Is it possible to center the image in the page, above the caption?

 
~~~
 
Eric Patton
 


Re: rotated figure, unrotated caption?-MORE

2006-05-17 Thread Paul A. Rubin

Eric Zollars wrote:
I need to rotate a figure and the associated caption by 90 degrees 
counterclockwise.




Have a look at http://www.perce.de/LaTeX/rotating.pdf.

/Paul



Re: Error during generation of dvi file

2006-05-17 Thread Paul A. Rubin

Vivek Sharma wrote:
I am trying to generate a dvi file and get a error when two or more citations 
are together stating:


Argument of [EMAIL PROTECTED] has an extra}
Paragraph ended before [EMAIL PROTECTED] was complete
Missing control sequence inserted...

The error does not occur when generating pdflatex.

I have tried disabling \usepackage{babel}

It does not help 


Does anyone know what this is due to and how to correct it?

I can attach the offending lyx file and the bib file.

I use Lyxwin1.4.1 on win xp with miktex, the version available from the 
official web ftp site, not the one provided by uwe.


thanks

vivek



I think you'll need to post the offending document and bib files.

/Paul



Re: reference list

2006-05-17 Thread Paul A. Rubin

Wolfgang Engelmann wrote:

I am using natbib and the references are given in the reference list as
A.B. Author
it should, however, be
Author AB

Do I need to dig into the art of using Bibtex or is there an easy solution?

Wolfgang



This is controlled by the BibTeX style file (.bst) that you're using. 
If you cannot find a style file that matches what you want, you can use 
the makebst utility to build one fairly easily.


/Paul



Re: Centering a float figure

2006-05-17 Thread Sara Stymne

Hi!

There is probably a better way, but one way that works is to enter 
\centering in ERT in the figure float.


/Sara

Patton, Eric wrote:


I have a figure float in my paragraph that looks pretty good; the caption is
centered in the page, but the image itself is left-justified, seemingly by
default. None of the right-click context menu options seems to allow the
justification of the image itself, only the float position on the page.

Is it possible to center the image in the page, above the caption?


~~~

Eric Patton

 





Re: Centering a float figure

2006-05-17 Thread Paul A. Rubin

Patton, Eric wrote:

I have a figure float in my paragraph that looks pretty good; the caption is
centered in the page, but the image itself is left-justified, seemingly by
default. None of the right-click context menu options seems to allow the
justification of the image itself, only the float position on the page.

Is it possible to center the image in the page, above the caption?


Put the cursor alongside the image, and center it the same way you would 
center a paragraph.  In LyX 1.4.x, this would be Edit-Paragraph 
settings; in 1.3.x, it would be Layout-Paragraph.


/Paul




Re: German Spellchecker

2006-05-17 Thread Theo
 Do you also have de-only.rws in C:\Aspell\dict\?  That's the actual 
 dictionary (I think). You probably should also have de_DE-only.rws.

i only have the de_DE-only.rws in C:\Aspell\lib\aspell-0.60
(i don't have the de-only.rws) 

now it started working. but sometimes it just stops and the alert pops up. if i
try again it works again.

that's ok for me, since i am running a little short in time regarding the print
date of my master's thesis :-)

thanks for your help.
theo






Re: Using the theorem enviroment with Koma-script in 1.4.x

2006-05-17 Thread Ingo Klöcker
Am Mittwoch, 17. Mai 2006 09:57 schrieb John McCabe-Dansted:
 When writting my thesis I found that I needed komascript to format a
 Thesis correctly, but that LyX would only allow me to enter Theorems
 in a AMS class. My solution to this was to have a Book(koma-script)
 main document that included Book(AMS) LyX documents which contained
 the theorems, lemmas etc.

 However with 1.4.1 LyX now generates a prompt
   LyX: Different textclasses
   Included file `afile.lyx'
   has textclass `amsbook'
   while parent file has textclass `scrbook'.
 for each included file. As I have a dozen included files, just
 clicking OK can take a while. Does anyone know of a way to suppress
 these dialogs or otherwise allow theorems to be entered via the LyX
 GUI into a komascript document?

As always in such a case it's best to write a new layout file. 
Obviously, this layout file should be derived from the KOMA book layout 
file. For my thesis I've created a layout file for KOMA book with 
ntheorem and paralist package. I've attached the corresponding files. 
You have to put them into ~/.lyx/layouts (at least on Linux/Unix). Then 
you have to run Edit-Reconfigure... After restarting the new text 
class (called book (Doktorarbeit koma)) should be available. If it 
works then switch the class of all files to this class. Make sure you 
make a backup of your thesis before you try this!

Regards,
Ingo

# Author: Ingo Kloecker [EMAIL PROTECTED]
# This defines the theorem styles environments provided by ntheorem.sty.
# Most of this stuff was adapted from the layout files for AMS document
# classes.
# This version has Theorems and other results numbered in one sequence, and all
# numbered environments (figures as well) containing the section number.
# (Theorem (1.1), Corollary (1.2) Theorem (1.3), etc.
# This is the english version.

# Due to a bug (?) in LyX the following has to be copied to the Preamble block
# of the layout file which includes this file. Changing it here doesn't have
# any effect.
Preamble
  \usepackage{amsmath}
  \usepackage[standard,amsmath,thmmarks]{ntheorem}
  \theoremstyle{plain}
  \newtheorem{thm}{Theorem}[chapter]
EndPreamble

# The environments defined are :
# - Proof
# - Theorem
# - Theorem*
# - Lemma
# - Lemma*
# - Proposition
# - Proposition*
# - Corollary
# - Corollary*
# - Definition
# - Definition*
# - Remark
# - Remark*
# - Example
# - Example*

# Proof style declaration
Style Proof
  MarginFirst_Dynamic
  LatexType Environment
  LatexName proof
  NextNoIndent  1
  LabelSep  xx
  ParIndent MMM  
  ParSkip   0.4
  ItemSep   0.2
  TopSep0.7
  BottomSep 0.7
  ParSep0.3
  Align Block
  AlignPossible Block, Left
  LabelType Static
  LabelString   Proof.
  EndLabelType  Box
  
  # standard font definition
  Font
Shape   Up
SizeNormal
  EndFont

  # label font definition
  LabelFont
Shape   Italic
  EndFont

  # We don't want the preamble from Theorem
  Preamble
  EndPreamble 
End  

# Theorem-numbered style declaration
Style Theorem
  MarginFirst_Dynamic
  LatexType Environment
  LatexName thm
  NextNoIndent  1
  LabelSep  xx
  ParIndent MMM  
  ParSkip   0.4
  ItemSep   0.2
  TopSep0.7
  BottomSep 0.7
  ParSep0.3
  Align Block
  AlignPossible Block, Left
  LabelType Static
  LabelString   Theorem #.

  
  # standard font definition
  Font
Shape   Italic
SizeNormal
  EndFont

  # label font definition
  LabelFont
Shape   Up
Series  Bold
  EndFont

End  

# Theorem-unnumbered style declaration
Style Theorem*
  CopyStyle Theorem
  LatexName thmNN*
  LabelString   Theorem.

  Preamble
\theoremstyle{plain}
\newtheorem*{thmNN*}{Theorem} %% unnumbered; needed for LyX
  EndPreamble
End  

# Lemma-numbered style declaration
Style Lemma
  CopyStyle Theorem
  LatexName lem
  LabelString   Lemma #.

  Preamble
\theoremstyle{plain}
\newtheorem{lem}[thm]{Lemma} %%Delete [thm] to re-start numbering
  EndPreamble
End  

# Lemma-unnumbered style declaration
Style Lemma*
  CopyStyle Theorem
  LatexName lemNN*
  LabelString   Lemma.

  Preamble
\theoremstyle{plain}
\newtheorem*{lemNN*}{Lemma} %% unnumbered; needed for LyX
  EndPreamble
End  

# Proposition-numbered style declaration
Style Proposition
  CopyStyle Theorem
  LatexName prop
  LabelString   Proposition #.

  Preamble
\theoremstyle{plain}
\newtheorem{prop}[thm]{Proposition} %%Delete [thm] to re-start 

Border around Image

2006-05-17 Thread Theo
Hi,

i'd like to have a 1px border around images. do i have to install some kind of
border-package or is there an easy way in LyX i just haven't found ?

cheers,
theo




Re: Border around Image

2006-05-17 Thread Paul Smith

On 5/17/06, Theo [EMAIL PROTECTED] wrote:

i'd like to have a 1px border around images. do i have to install some kind of
border-package or is there an easy way in LyX i just haven't found ?


Check the command \fbox.

Paul


Re: rotated figure, unrotated caption?-MORE

2006-05-17 Thread Eric Zollars
I discovered that the problem is that the DVI is not displaying the 
rotated caption correctly. This is Yap 2.4.1803 on Windows.


pdflatex displays the rotated caption correctly (and the figure once I 
convert it to pdf).


So the problem appears to be DVI. (I already had this problem with a 
multipage landscape table, which is why I checked.)


Is this a known problem?

Eric

Paul A. Rubin wrote:

Eric Zollars wrote:

I need to rotate a figure and the associated caption by 90 degrees 
counterclockwise.




Have a look at http://www.perce.de/LaTeX/rotating.pdf.

/Paul



make a .pdf of part of a document

2006-05-17 Thread mail.k
Is it possible to make a .pdf of a specific chapter or section of a long 
document (not the whole document)?


regards,
eran


Re: eqnarray numbering

2006-05-17 Thread Uwe Stöhr

[EMAIL PROTECTED] schrieb:


i would like to number NOT all equations in an array of equations. but i
can just number all or none.


Set the cursor in a line of the equation and then press Alt-m N (not 
Alt-m n). The alternative is the menu Edit - Math - Toggle Line Numbering.


regards Uwe


Re: eqnarray numbering

2006-05-17 Thread tceglare
That's it. Thank you.

 Disable numbers for a specific equation:
   Use the menu Edit-Math-Toggle_Numbering_of_Line



Re: rotated figure, unrotated caption?-MORE

2006-05-17 Thread Stephen Harris

Eric Zollars wrote:
I discovered that the problem is that the DVI is not displaying the 
rotated caption correctly. This is Yap 2.4.1803 on Windows.


pdflatex displays the rotated caption correctly (and the figure once I 
convert it to pdf).


So the problem appears to be DVI. (I already had this problem with a 
multipage landscape table, which is why I checked.)


Is this a known problem?

Eric



Circumstantially, yes. I doubt that it is worth the effort
to install Cygwin to get xdvi, although xdvi is a better
viewer. The command dvips filename produces a .ps file
which gsview (better than the Cygwin gv counterpart) can view.
You probably have gsview installed as your Postscript viewer.




The LaTeX caption package

Note that the TrueTeX Previewer provided with SWP and SW doesn't 
support rotation; you must use a different DVI previewer and print 
driver if you want to use the caption package to create rotated

captions in a DVI file.

However, PDF viewers do support rotation, so you can use the
packages to create rotated captions in typeset PDF files.

---

epslatex.pdf

* The eps graphics are not included in the dvi file. Since the eps files
must be present when the dvi file is converted to ps, the eps files must
accompany dvi files whenever they are moved.

* The eps graphics do not appear in most dvi viewers. To help the user
with placement of the graphics, dvi viewers generally display the
BoundingBox in which the graphics will be inserted. (Some viewers, such
as xdvi, use ghostscript to interpret the eps graphics and display them
in the dvi viewer.)

---

dvipdfm will work if the image files are _only_ eps.
There is also a package to make a boundingBox if it is missing.

Regards,
Stephen


Re: rotated figure, unrotated caption?-MORE

2006-05-17 Thread Stephen Harris

Stephen Harris wrote:

Eric Zollars wrote:
I discovered that the problem is that the DVI is not displaying the 
rotated caption correctly. This is Yap 2.4.1803 on Windows.


pdflatex displays the rotated caption correctly (and the figure once I 
convert it to pdf).


So the problem appears to be DVI. (I already had this problem with a 
multipage landscape table, which is why I checked.)


Is this a known problem?



---

epslatex.pdf

1. The EPS file contains a long binary preview.
Some applications place a binary preview of the graphics at the 
beginning of the eps file. This allows applications (such as dvi 
viewers) to display the graphics even though the application cannot 
interpret PostScript. Currently, relatively few TEX-related

applications use such previews.

-

docs.miktex.org/2.5/preview.pdf [Coming attractions/upgrade of 2.4]


11 Yap
11.1 PostScript
Support for PostScript has been improved significantly. For example,
in the past Yap refused to display rotated text. This is not a problem 
anymore (see Figure 2). The motto is: Every DVI document that can be 
viewed with a PostScript viewer (after DVI-to-PostScript conversion)

can be viewed with Yap.

---

Regards,
Stephen


Re: rotated figure, unrotated caption?

2006-05-17 Thread Eric Zollars

Stephen Harris wrote:

Eric Zollars wrote:

I have a figure that is imported and rotated 90 degrees (so it reads 
down to up), but the caption remains left to right.


Is there a way to make a caption (in a float) read down to up?

Eric



http://www.ece.tamu.edu/~tex/manual/node37.html

"If a figure or table is too wide, you may try to rotate the figure or 
table 90 degrees counter-clockwise to produce a landscape figure or 
table. Figures can be rotated using the angle option in 
\includegraphics. If the caption also needs to be rotated, use the 
\rotcaption command instead of \caption command in the \figure 
environment. The \rotcaption command requires \usepackage{rotating} to 
be placed before the \begin{document} in the thesis.tex file. For example,


\begin{figure}
\includegraphics[angle=90]{file.ps}
\rotcaption{Figure Caption}
\label{fig}
\end{figure}

Tables and figures can be rotated using the \sideways environment. This 
environments always rotates 90 degrees counter-clockwise."


There is a caption package also. I'm not sure this answered your
question if you meant something like:

T
h
i
s

i
s

a

c
a
p
t
i
o
n

Yes, if you meant rotate to landscape and maintain
prior caption orientation. A useful resource: 
www.tug.org/tex-archive/info/visualFAQ/visualFAQ.pdf

For instance the 1st page answers your copyright and trademark question.

Regards,
Stephen


Thanks for the references, and I guess I was not perfectly clear.

If I have a figure:

aa
aa
aa
aa
Figure 4.2 bbb

I want the whole block (figure and citation) to be rotated counterclockwise.

Is there a way to do this in LyX? Specifically in the float environment?

I will try your LaTeX solution.

Thanks.
Eric


Re: rotated figure, unrotated caption?-MORE

2006-05-17 Thread Eric Zollars
I need to rotate a figure and the associated caption by 90 degrees 
counterclockwise.






http://www.ece.tamu.edu/~tex/manual/node37.html

"If a figure or table is too wide, you may try to rotate the figure or 
table 90 degrees counter-clockwise to produce a landscape figure or 
table. Figures can be rotated using the angle option in 
\includegraphics. If the caption also needs to be rotated, use the 
\rotcaption command instead of \caption command in the \figure 
environment. The \rotcaption command requires \usepackage{rotating} to 
be placed before the \begin{document} in the thesis.tex file. For example,


\begin{figure}
\includegraphics[angle=90]{file.ps}
\rotcaption{Figure Caption}
\label{fig}
\end{figure}


I have tried this (viewing in DVI) and the figure is rotated 
counterclockwise but the caption remains left-to-right across the bottom 
of the page.


A separate issue is that when I try to export to PDF with pdflatex I get 
the error "LaTeX Error: Unknown graphics extension: .eps." for this one 
figure. There are dozens of eps figures in the rest of the document that 
LyX correctly imports (Insert->Graphics). So, if I do get the 
\includegraphics working correctly with the sideways caption what do I 
have to do to the .eps file for LaTeX to correctly export to pdf?



Yes, if you meant rotate to landscape and maintain
prior caption orientation. A useful resource: 
www.tug.org/tex-archive/info/visualFAQ/visualFAQ.pdf

For instance the 1st page answers your copyright and trademark question.


I did not find an example in visualFAQ.pdf similar to what I want.

Thanks
Eric


Re: lyx language code

2006-05-17 Thread Holger Blasum
On 05-16, Wolfgang Engelmann wrote:
> Thanks, Holger,
> that is strange: 
> The lyx file is ISO...
> [EMAIL PROTECTED]:~/PP-buch> file engelmann.lyx
> engelmann.lyx: ISO-8859 C program text

Ok, here "file" guessed correctly the encoding (ISO-8859-1) but 
then your lyx file looked a bit like C code to the libmagic
guessing (*maybe* because of an lyx-comment (#) at the beginning that is 
also used for C include headers). Heuristics are never perfect, and
I am not aware that libmagic has any implementation for specifically
recognizing lyx files but I think guessing the charset (what you needed 
here) is more reliable than guessing the file type (what you dont need 
here) ...

> But the bib file, produced by Jabref, although it is said to be set to 
> ISO-88.. by default (Options>preferences>default encoding) is UTF
> pp-plants-newz.bib: UTF-8 Unicode English text
> [EMAIL PROTECTED]:~/PP-buch/PP-chapter-bib> cd ..
> What to do??

Either use an editor (Kate was suggested by K Elo yesterday) or do 
cp pp-plants-new.bib pp-plants-new-2.bib
recode UTF-8..ISO-8859-1 pp-plants-new-2.bib

It *may* happen that if your bib file contains non ISO-8859-1
characters (say Chinese, Cyrillic or just any of the Eastern 
European latin extensions) then if I remember correctly recode will 
complain. In that case you also might want to try: 

iconv -f UTF-8 -t ISO-8859-1 -input pp-plants-new.bib 
  -c -output pp-plants-new-2.bib

where "-c" omits characters invalid in the target encoding. That of 
course is not a lossless conversion so keep the original file.

Cheers,

-- 
Holger Blasum +49-174-7313590 (gsm) GnuPG 1024D/ACDFC3B769DC1ED66B47



Re: lyx language code

2006-05-17 Thread Wolfgang Engelmann
Am Mittwoch, 17. Mai 2006 07:47 schrieb K. Elo:
> Hi,
>
> 2006-05-16 20:01 +0200, Wolfgang Engelmann:
> > Am Dienstag, 16. Mai 2006 18:31 schrieb Holger Blasum:
> > > Hello Wolfgang,
> > >
> > > On 05-16, Wolfgang Engelmann wrote:
> > > > I have some difficulties with my references. I use a Jabref created
> > > > data
> > >
> > > To change the encoding, use "recode" or "iconv" (warning:
> > > at least recode acts in-place, so perhaps make a backup first).
>
> You can also use e.g. the editor Kate: Open the bibliography in Kate,
> then select Tools->Encoding->ISO-8859-1 and finally save the file.
> Ready!
>
> Hope this helps,
> Kimmo

Kimmo,

I followed your suggestion. However, the dvi output does still not displays 
the diacretics correctly. Could it be that by entering the bibfile by lyx it 
checks the first line of the bibfile which still says:
This file was created with JabRef 1.7.1.
Encoding: UTF-8

and could I just through these lines out or replace it with the iso-8859-1?
thanks
Wolfgang


Re: citationstyle natbib

2006-05-17 Thread Wolfgang Engelmann
Am Mittwoch, 17. Mai 2006 07:44 schrieb K. Elo:
> Hi,
>
> 2006-05-16 14:45 +0200, Wolfgang Engelmann:
> > I am using citationstyle natbib \usepackage{natbib} which gives me e.g.
> > author [2003].
> > It should, however, be
> > author 2003
> > How do I achieve this?
>
> Click the citation in LyX and the citation dialog appears. There is a
> drop-down list called 'Citation style'. Use it to change the citation
> style.

would this work globaly in the whole document?

I tried it with one citation, but the citation style is greyed out, can´t 
click it.
Note that I use a Jabref created bib file for the citations in the document.

Wolfgang


Using the theorem enviroment with Koma-script in 1.4.x

2006-05-17 Thread John McCabe-Dansted

When writting my thesis I found that I needed komascript to format a
Thesis correctly, but that LyX would only allow me to enter Theorems
in a AMS class. My solution to this was to have a Book(koma-script)
main document that included Book(AMS) LyX documents which contained
the theorems, lemmas etc.

However with 1.4.1 LyX now generates a prompt
 "LyX: Different textclasses
 Included file `afile.lyx'
 has textclass `amsbook'
 while parent file has textclass `scrbook'."
for each included file. As I have a dozen included files, just
clicking OK can take a while. Does anyone know of a way to suppress
these dialogs or otherwise allow theorems to be entered via the LyX
GUI into a komascript document?

--
John C. McCabe-Dansted
PhD Student
University of Western Australia


Show entry type in References

2006-05-17 Thread Ares

Hello everyone,
I'm using LyX to compile a PhD thesis and a bibtex database for
references, and I'm new to both.
I would like to group the references according to entry type, and to
show the entry type itself in the references. this would look like, for
instance:

...
References

articles
[Art1] article1
[Art2] article2
etc
Books
[Book1] book1
[Book2] book2
etc
etc
...

Is there anyone who knows how to do that? maybe using an appropriate bst
file that does that??
Thanks for your support
Diego


Re: lyx language code

2006-05-17 Thread Georg Baum
K. Elo wrote:

> You can also use e.g. the editor Kate: Open the bibliography in Kate,
> then select Tools->Encoding->ISO-8859-1 and finally save the file.
> Ready!

That does not work, because it does not change the encoding of the file, it
only changes how kate interprets the file and therefore the on-screen
display. recode or iconv are needed here.


Georg



Re: lyx language code

2006-05-17 Thread K. Elo
Hi again,

2006-05-17 09:53 +0200, Wolfgang Engelmann:
> Am Mittwoch, 17. Mai 2006 07:47 schrieb K. Elo:
> > Hi,
> >
> > 2006-05-16 20:01 +0200, Wolfgang Engelmann:
> > > Am Dienstag, 16. Mai 2006 18:31 schrieb Holger Blasum:
> > > > Hello Wolfgang,
> > > >
> > > > On 05-16, Wolfgang Engelmann wrote:
> > > > > I have some difficulties with my references. I use a Jabref created
> > > > > data
> > > >
> > > > To change the encoding, use "recode" or "iconv" (warning:
> > > > at least recode acts in-place, so perhaps make a backup first).
> >
> > You can also use e.g. the editor Kate: Open the bibliography in Kate,
> > then select Tools->Encoding->ISO-8859-1 and finally save the file.
> > Ready!
> >
> > Hope this helps,
> > Kimmo
> 
> Kimmo,
> 
> I followed your suggestion. However, the dvi output does still not displays 
> the diacretics correctly. 

Have You checked out the file to be sure the conversion of special
characters worked correctly?

> Could it be that by entering the bibfile by lyx it 
> checks the first line of the bibfile which still says:
> This file was created with JabRef 1.7.1.
> Encoding: UTF-8 
> and could I just through these lines out or replace it with the iso-8859-1?

First, maybe You should upgrade Jabref to 2.0.1? It's really worth
upgrading.

Second, I'm not sure if replacing the header really helps. My own Jabref
bibliography begins with:

This file was created with JabRef 2.0.1.
Encoding: ISO8859_1

You may try replacing the encoding definition manually, maybe it
helps...

Kind regards,
Kimmo



Re: lyx language code

2006-05-17 Thread K. Elo
Hi Georg,

2006-05-17 10:04 +0200, Georg Baum:
> K. Elo wrote:
> 
> > You can also use e.g. the editor Kate: Open the bibliography in Kate,
> > then select Tools->Encoding->ISO-8859-1 and finally save the file.
> > Ready!
> 
> That does not work, because it does not change the encoding of the file, it
> only changes how kate interprets the file and therefore the on-screen
> display. recode or iconv are needed here.

Sorry, my mistake. But iconv or recode is not needed, because You can
select the encoding for the file in Kate, too: File->Save As. In the
upper-right corner, beneath the path list, is a drop-down menu for
encoding.

Kind regards,
Kimmo




Re: citationstyle natbib

2006-05-17 Thread K. Elo
Hi,

2006-05-17 09:58 +0200, Wolfgang Engelmann:
> Am Mittwoch, 17. Mai 2006 07:44 schrieb K. Elo:
> > Hi,
> >
> > 2006-05-16 14:45 +0200, Wolfgang Engelmann:
> > > I am using citationstyle natbib \usepackage{natbib} which gives me e.g.
> > > author [2003].
> > > It should, however, be
> > > author 2003
> > > How do I achieve this?
> >
> > Click the citation in LyX and the citation dialog appears. There is a
> > drop-down list called 'Citation style'. Use it to change the citation
> > style.
> would this work globaly in the whole document?

AFAIK, no. It's works only for the selected citation.

> I tried it with one citation, but the citation style is greyed out, can´t 
> click it.
> Note that I use a Jabref created bib file for the citations in the document.

Pushing from Jabref into a Lyx document should not cause any such
problems (I have just pushed a citation into Lyx and could change the
sitation style with no problems at all). What Lyx-version are You using?
1.4.1?

Kind regards,
Kimmo




Re: [Pkg-lyx-devel] Re: dvipost (hopefully) ready for Debian

2006-05-17 Thread Sven Hoexter
On Tue, May 16, 2006 at 03:55:58PM +0200, Per Olofsson wrote:
> Sven Hoexter:
> > Hi all,
> > yesterday I've been working on Matej Cepl's dvipost package
> > so that it can stand the Debian QA and move into the main
> > archive.
> > 
> > So if you've some spare time please give it a try and if you're
> > familiar with Debian packages please look over the source package
> > aswell.
> 
> Good work!
*sigh* and still so many glitches left to workaround ...
 
> Some suggestions:
> 
> * It should be possible to have TeXlive installed instead of teTex. It
>   should probably depend on tetex-bin | texlive-base-bin or something.
Oh I remember I've read something about TeXlive somewhere somewho.
I definetly need to dig deeper here. Good point.

>   BTW, is it really necessary to depend on TeX at all? Can't this
>   package be used without TeX, if you have a DVI file? Maybe you
>   should just recommend TeX instead?
Well my Tex knowledge is very low (that's why I like to put Lyx between
me and latex) but I think it's needed to register the style file
dvipost.sty. So with my current knowledge I think Tex is required.

> * There are missing ending newlines in postinst and postrm.
Hmpf fixed that in control, donno why I missed those two. Fixed now.

> * You should use dh_installtex instead of running texhash manually (I
>   think). Have you read the TeX policy in the tex-common package? Also
>   see the dh_installtex(1) manpage.
I had to ask on the mentors mailinglist and Frank did not recommend
dh_installtex. (hm I would like to copy and paste the link but somehow
I'm unable to copy and paste from from elinks with gpm *grummel*)

Reading the manpage it's talking about mapfiles and language files
and the examples have nothing with .sty. As said above I've no clue
about the inner workings of latex.

> * Do you really need to create those directories listed in
>   debian/dirs?
Hm not all of them.

> * The configure script checks things by running kpsewhich and
>   tex. These are not listed in the Build-Depends. You should probably
>   try to hardwire these values, or, if you must, build-depend on TeX.
Sure, need to patch that out. Frank told me that those workarounds used
in the configure script are ugly and wrong.

> * There are lintian errors. Please fix them.
Hm with which options did you run lintian?

> * The package is configured two times when using debuild (which uses
>   dpkg-buildpackage). The problem seems to be the patch target
>   dependency. You should probably move the dependency from the
>   config.status target to the build target (before build-stamp).
Ah that's a little bit odd. We need to patch some things in configure
and makefile.in so the patches have to be applied bevore the first
configure run. Guess I've to re-read some things about dpatch.

Thanks for your detailed feedback.

Sv*back-to-work*en
-- 
If you won't forgive me the rest of my life
Let me apologize while I'm still alive
I know it's time to face all of my past mistakes
  [Less than Jake - Rest Of My Life]


Size of superindex

2006-05-17 Thread icebna

Hi
How can adjust the size of superindex - for example ª, ª = number -  
in the menu Insert - Special character - Superindex, because is a little 
big. I work with lyx-1.3.7 in Mandriva 2006.

Thanks advanced
Miguel


smime.p7s
Description: S/MIME Cryptographic Signature


Re: [Pkg-lyx-devel] Re: dvipost (hopefully) ready for Debian

2006-05-17 Thread Per Olofsson
Sven Hoexter:
> *sigh* and still so many glitches left to workaround ...

Well, there are always glitches. You never get everything right from
the start.

> Well my Tex knowledge is very low (that's why I like to put Lyx between
> me and latex) but I think it's needed to register the style file
> dvipost.sty. So with my current knowledge I think Tex is required.

I think TeX will register it when it is installed, because it is
already placed in the right directory and TeX will run texhash upon
installation. So you could probably run texhash if it is available and
otherwise do nothing. But it doesn't matter much since people will
generally have TeX installed anyway.

(I don't know very much about TeX either.)

> I had to ask on the mentors mailinglist and Frank did not recommend
> dh_installtex. (hm I would like to copy and paste the link but somehow
> I'm unable to copy and paste from from elinks with gpm *grummel*)
> 
> Reading the manpage it's talking about mapfiles and language files
> and the examples have nothing with .sty. As said above I've no clue
> about the inner workings of latex.

Sounds right.

> > * There are lintian errors. Please fix them.
> Hm with which options did you run lintian?

$ lintian --version
Lintian v1.23.21
$ lintian dvipost_1.1-1_i386.deb 
E: dvipost: description-starts-with-package-name
E: dvipost: description-too-long
E: dvipost: spelling-error-in-description prefered preferred

Some other comments about the description:

"Dvipost is used for special modes, which normally needs the support ..."

"needs" should be "need" since "modes" is plural.


"With dvipost, this features ..."

should be "these" features.

> 
> > * The package is configured two times when using debuild (which uses
> >   dpkg-buildpackage). The problem seems to be the patch target
> >   dependency. You should probably move the dependency from the
> >   config.status target to the build target (before build-stamp).
> Ah that's a little bit odd. We need to patch some things in configure
> and makefile.in so the patches have to be applied bevore the first
> configure run. Guess I've to re-read some things about dpatch.

Well, even if you move it to the build target it can run before
./configure. Just put the dependency before the config.status
dependency.

> Thanks for your detailed feedback.

Glad to help!

-- 
Pelle


Error during generation of dvi file

2006-05-17 Thread Vivek Sharma
I am trying to generate a dvi file and get a error when two or more citations 
are together stating:

Argument of [EMAIL PROTECTED] has an extra}
Paragraph ended before [EMAIL PROTECTED] was complete
Missing control sequence inserted...

The error does not occur when generating pdflatex.

I have tried disabling \usepackage{babel}

It does not help 

Does anyone know what this is due to and how to correct it?

I can attach the offending lyx file and the bib file.

I use Lyxwin1.4.1 on win xp with miktex, the version available from the 
official web ftp site, not the one provided by uwe.

thanks

vivek







Re: eqnarray numbering

2006-05-17 Thread kai-martin knaak
[EMAIL PROTECTED] wrote:

> does anybody knows how to number e.g. the first and the third equation?

See the manual , section 5.5

Add numbers ti a specific equation only: 
  Insert a label at the end of that line

Disable numbers for a specific equation: 
  Use the menu Edit-Math-Toggle_Numbering_of_Line


---<(kaimartin)>---
-- 
Kai-Martin Knaak
http://lilalaser.de/blog



Centering a float figure

2006-05-17 Thread Patton, Eric
I have a figure float in my paragraph that looks pretty good; the caption is
centered in the page, but the image itself is left-justified, seemingly by
default. None of the right-click context menu options seems to allow the
justification of the image itself, only the float position on the page.

Is it possible to center the image in the page, above the caption?

 
~~~
 
Eric Patton
 


Re: rotated figure, unrotated caption?-MORE

2006-05-17 Thread Paul A. Rubin

Eric Zollars wrote:
I need to rotate a figure and the associated caption by 90 degrees 
counterclockwise.




Have a look at http://www.perce.de/LaTeX/rotating.pdf.

/Paul



Re: Error during generation of dvi file

2006-05-17 Thread Paul A. Rubin

Vivek Sharma wrote:
I am trying to generate a dvi file and get a error when two or more citations 
are together stating:


Argument of [EMAIL PROTECTED] has an extra}
Paragraph ended before [EMAIL PROTECTED] was complete
Missing control sequence inserted...

The error does not occur when generating pdflatex.

I have tried disabling \usepackage{babel}

It does not help 


Does anyone know what this is due to and how to correct it?

I can attach the offending lyx file and the bib file.

I use Lyxwin1.4.1 on win xp with miktex, the version available from the 
official web ftp site, not the one provided by uwe.


thanks

vivek



I think you'll need to post the offending document and bib files.

/Paul



Re: reference list

2006-05-17 Thread Paul A. Rubin

Wolfgang Engelmann wrote:

I am using natbib and the references are given in the reference list as
A.B. Author
it should, however, be
Author AB

Do I need to dig into the art of using Bibtex or is there an easy solution?

Wolfgang



This is controlled by the BibTeX style file (.bst) that you're using. 
If you cannot find a style file that matches what you want, you can use 
the makebst utility to build one fairly easily.


/Paul



Re: Centering a float figure

2006-05-17 Thread Sara Stymne

Hi!

There is probably a better way, but one way that works is to enter 
\centering in ERT in the figure float.


/Sara

Patton, Eric wrote:


I have a figure float in my paragraph that looks pretty good; the caption is
centered in the page, but the image itself is left-justified, seemingly by
default. None of the right-click context menu options seems to allow the
justification of the image itself, only the float position on the page.

Is it possible to center the image in the page, above the caption?


~~~

Eric Patton

 





Re: Centering a float figure

2006-05-17 Thread Paul A. Rubin

Patton, Eric wrote:

I have a figure float in my paragraph that looks pretty good; the caption is
centered in the page, but the image itself is left-justified, seemingly by
default. None of the right-click context menu options seems to allow the
justification of the image itself, only the float position on the page.

Is it possible to center the image in the page, above the caption?


Put the cursor alongside the image, and center it the same way you would 
center a paragraph.  In LyX 1.4.x, this would be Edit->Paragraph 
settings; in 1.3.x, it would be Layout->Paragraph.


/Paul




Re: German Spellchecker

2006-05-17 Thread Theo
> Do you also have de-only.rws in C:\Aspell\dict\?  That's the actual 
> dictionary (I think). You probably should also have de_DE-only.rws.

i only have the de_DE-only.rws in C:\Aspell\lib\aspell-0.60
(i don't have the de-only.rws) 

now it started working. but sometimes it just stops and the alert pops up. if i
try again it works again.

that's ok for me, since i am running a little short in time regarding the print
date of my master's thesis :-)

thanks for your help.
theo






Re: Using the theorem enviroment with Koma-script in 1.4.x

2006-05-17 Thread Ingo Klöcker
Am Mittwoch, 17. Mai 2006 09:57 schrieb John McCabe-Dansted:
> When writting my thesis I found that I needed komascript to format a
> Thesis correctly, but that LyX would only allow me to enter Theorems
> in a AMS class. My solution to this was to have a Book(koma-script)
> main document that included Book(AMS) LyX documents which contained
> the theorems, lemmas etc.
>
> However with 1.4.1 LyX now generates a prompt
>   "LyX: Different textclasses
>   Included file `afile.lyx'
>   has textclass `amsbook'
>   while parent file has textclass `scrbook'."
> for each included file. As I have a dozen included files, just
> clicking OK can take a while. Does anyone know of a way to suppress
> these dialogs or otherwise allow theorems to be entered via the LyX
> GUI into a komascript document?

As always in such a case it's best to write a new layout file. 
Obviously, this layout file should be derived from the KOMA book layout 
file. For my thesis I've created a layout file for KOMA book with 
ntheorem and paralist package. I've attached the corresponding files. 
You have to put them into ~/.lyx/layouts (at least on Linux/Unix). Then 
you have to run Edit->Reconfigure... After restarting the new text 
class (called "book (Doktorarbeit koma)") should be available. If it 
works then switch the class of all files to this class. Make sure you 
make a backup of your thesis before you try this!

Regards,
Ingo

# Author: Ingo Kloecker <[EMAIL PROTECTED]>
# This defines the theorem styles environments provided by ntheorem.sty.
# Most of this stuff was adapted from the layout files for AMS document
# classes.
# This version has Theorems and other results numbered in one sequence, and all
# numbered environments (figures as well) containing the section number.
# (Theorem (1.1), Corollary (1.2) Theorem (1.3), etc.
# This is the english version.

# Due to a bug (?) in LyX the following has to be copied to the Preamble block
# of the layout file which includes this file. Changing it here doesn't have
# any effect.
Preamble
  \usepackage{amsmath}
  \usepackage[standard,amsmath,thmmarks]{ntheorem}
  \theoremstyle{plain}
  \newtheorem{thm}{Theorem}[chapter]
EndPreamble

# The environments defined are :
# - Proof
# - Theorem
# - Theorem*
# - Lemma
# - Lemma*
# - Proposition
# - Proposition*
# - Corollary
# - Corollary*
# - Definition
# - Definition*
# - Remark
# - Remark*
# - Example
# - Example*

# Proof style declaration
Style Proof
  MarginFirst_Dynamic
  LatexType Environment
  LatexName proof
  NextNoIndent  1
  LabelSep  xx
  ParIndent MMM  
  ParSkip   0.4
  ItemSep   0.2
  TopSep0.7
  BottomSep 0.7
  ParSep0.3
  Align Block
  AlignPossible Block, Left
  LabelType Static
  LabelString   "Proof."
  EndLabelType  Box
  
  # standard font definition
  Font
Shape   Up
SizeNormal
  EndFont

  # label font definition
  LabelFont
Shape   Italic
  EndFont

  # We don't want the preamble from Theorem
  Preamble
  EndPreamble 
End  

# Theorem-numbered style declaration
Style Theorem
  MarginFirst_Dynamic
  LatexType Environment
  LatexName thm
  NextNoIndent  1
  LabelSep  xx
  ParIndent MMM  
  ParSkip   0.4
  ItemSep   0.2
  TopSep0.7
  BottomSep 0.7
  ParSep0.3
  Align Block
  AlignPossible Block, Left
  LabelType Static
  LabelString   "Theorem #."

  
  # standard font definition
  Font
Shape   Italic
SizeNormal
  EndFont

  # label font definition
  LabelFont
Shape   Up
Series  Bold
  EndFont

End  

# Theorem-unnumbered style declaration
Style Theorem*
  CopyStyle Theorem
  LatexName thmNN*
  LabelString   "Theorem."

  Preamble
\theoremstyle{plain}
\newtheorem*{thmNN*}{Theorem} %% unnumbered; needed for LyX
  EndPreamble
End  

# Lemma-numbered style declaration
Style Lemma
  CopyStyle Theorem
  LatexName lem
  LabelString   "Lemma #."

  Preamble
\theoremstyle{plain}
\newtheorem{lem}[thm]{Lemma} %%Delete [thm] to re-start numbering
  EndPreamble
End  

# Lemma-unnumbered style declaration
Style Lemma*
  CopyStyle Theorem
  LatexName lemNN*
  LabelString   "Lemma."

  Preamble
\theoremstyle{plain}
\newtheorem*{lemNN*}{Lemma} %% unnumbered; needed for LyX
  EndPreamble
End  

# Proposition-numbered style declaration
Style Proposition
  CopyStyle Theorem
  LatexName prop
  LabelString   "Proposition #."

  Preamble
\theoremstyle{plain}

Border around Image

2006-05-17 Thread Theo
Hi,

i'd like to have a 1px border around images. do i have to install some kind of
"border-package" or is there an easy way in LyX i just haven't found ?

cheers,
theo




Re: Border around Image

2006-05-17 Thread Paul Smith

On 5/17/06, Theo <[EMAIL PROTECTED]> wrote:

i'd like to have a 1px border around images. do i have to install some kind of
"border-package" or is there an easy way in LyX i just haven't found ?


Check the command \fbox.

Paul


Re: rotated figure, unrotated caption?-MORE

2006-05-17 Thread Eric Zollars
I discovered that the problem is that the DVI is not displaying the 
rotated caption correctly. This is Yap 2.4.1803 on Windows.


pdflatex displays the rotated caption correctly (and the figure once I 
convert it to pdf).


So the problem appears to be DVI. (I already had this problem with a 
multipage landscape table, which is why I checked.)


Is this a known problem?

Eric

Paul A. Rubin wrote:

Eric Zollars wrote:

I need to rotate a figure and the associated caption by 90 degrees 
counterclockwise.




Have a look at http://www.perce.de/LaTeX/rotating.pdf.

/Paul



make a .pdf of part of a document

2006-05-17 Thread mail.k
Is it possible to make a .pdf of a specific chapter or section of a long 
document (not the whole document)?


regards,
eran


Re: eqnarray numbering

2006-05-17 Thread Uwe Stöhr

[EMAIL PROTECTED] schrieb:


i would like to number NOT all equations in an array of equations. but i
can just number all or none.


Set the cursor in a line of the equation and then press Alt-m N (not 
Alt-m n). The alternative is the menu Edit -> Math -> Toggle Line Numbering.


regards Uwe


Re: eqnarray numbering

2006-05-17 Thread tceglare
That's it. Thank you.

> Disable numbers for a specific equation:
>   Use the menu Edit-Math-Toggle_Numbering_of_Line



Re: rotated figure, unrotated caption?-MORE

2006-05-17 Thread Stephen Harris

Eric Zollars wrote:
I discovered that the problem is that the DVI is not displaying the 
rotated caption correctly. This is Yap 2.4.1803 on Windows.


pdflatex displays the rotated caption correctly (and the figure once I 
convert it to pdf).


So the problem appears to be DVI. (I already had this problem with a 
multipage landscape table, which is why I checked.)


Is this a known problem?

Eric



Circumstantially, yes. I doubt that it is worth the effort
to install Cygwin to get xdvi, although xdvi is a better
viewer. The command "dvips filename" produces a .ps file
which gsview (better than the Cygwin gv counterpart) can view.
You probably have gsview installed as your Postscript viewer.




The LaTeX caption package

"Note that the TrueTeX Previewer provided with SWP and SW doesn't 
support rotation; you must use a different DVI previewer and print 
driver if you want to use the caption package to create rotated

captions in a DVI file.

However, PDF viewers do support rotation, so you can use the
packages to create rotated captions in typeset PDF files."

---

epslatex.pdf

* The eps graphics are not included in the dvi file. Since the eps files
must be present when the dvi file is converted to ps, the eps files must
accompany dvi files whenever they are moved.

* The eps graphics do not appear in most dvi viewers. To help the user
with placement of the graphics, dvi viewers generally display the
BoundingBox in which the graphics will be inserted. (Some viewers, such
as xdvi, use ghostscript to interpret the eps graphics and display them
in the dvi viewer.)

---

dvipdfm will work if the image files are _only_ eps.
There is also a package to make a boundingBox if it is missing.

Regards,
Stephen


Re: rotated figure, unrotated caption?-MORE

2006-05-17 Thread Stephen Harris

Stephen Harris wrote:

Eric Zollars wrote:
I discovered that the problem is that the DVI is not displaying the 
rotated caption correctly. This is Yap 2.4.1803 on Windows.


pdflatex displays the rotated caption correctly (and the figure once I 
convert it to pdf).


So the problem appears to be DVI. (I already had this problem with a 
multipage landscape table, which is why I checked.)


Is this a known problem?



---

epslatex.pdf

1. The EPS file contains a long binary preview.
Some applications place a binary preview of the graphics at the 
beginning of the eps file. This allows applications (such as dvi 
viewers) to display the graphics even though the application cannot 
interpret PostScript. Currently, relatively few TEX-related

applications use such previews.

-

docs.miktex.org/2.5/preview.pdf [Coming attractions/upgrade of 2.4]


11 Yap
11.1 PostScript
Support for PostScript has been improved significantly. For example,
in the past Yap refused to display rotated text. This is not a problem 
anymore (see Figure 2). The motto is: Every DVI document that can be 
viewed with a PostScript viewer (after DVI-to-PostScript conversion)

can be viewed with Yap.

---

Regards,
Stephen