Re: Compare Changes/Differences between LyX Documents

2008-01-24 Thread Jean-Marc Lasgouttes
John Pye <[EMAIL PROTECTED]> writes:

> Just FYI, a nice way of doing file comparisons against a subversion
> repository for Windows/Word users exists, it would be great to see this
> functionality one day in LyX:
>
> http://newgeeks.blogspot.com/2006/08/word-document-management-using-svn.html

Well, to get that, we need first to implement the lyxdiff thing.

JMarc


lyx crash when loading eps files

2008-01-24 Thread Luca Giambonini
Hi all,
I have written a document containing images in eps. Now, mysteriously,
when I try to open the same document  lyx crash. I have isolated the
problem and I can recreate without problems, I create a new document,
add image, I choose a file in eps format and confirm. During the
creation of the preview lyx crash.
I have test also with lyx1.5.1(ubuntu repository), 1.5.3
(http://ubuntuforums.org/showthread.php?t=672626) an the problem
persists.
I use kubuntu 7.10 with QT4.3.2, and this problem was surely born
after an updating, but I doesn't know what.

In debug mode i see this message.
##
LoaderQueue: 1 items in the queue
Recognised Fileformat: eps
[graphics::CacheItem::Impl::convertToDisplayFormat]
Attempting to convert image file: /xxx/aufbau1.eps
with displayed filename: ~/xxx/aufbau1.eps
Recognised Fileformat: eps

The file contains eps format data.

The image loader can load the following directly:
BW, EPS, EPSF, EPSI, EXR, ICO, PCX, PSD, RGB, RGBA, SGI, TGA, XCF,
bmp, bw, dds, eps, epsf, epsi, exr, gif, ico, jp2, jpeg, jpg, mng,
pbm, pcx, pgm, png, ppm, psd, rgb, rgba, sgi, svg, tga, tif, tiff,
xbm, xcf, xpm, xv,
Of these, LyX recognises the following formats:
eps, bmp, eps, gif, jpg, jpg, pbm, pgm, png, ppm, tiff, xbm, xpm

No conversion needed (from == to)!
Loading image.
(14187)/ EPSHandler::read: kimgio EPS: starting...
(14187)/ seekToCodeStart: kimgio EPS: normal EPS file
(14187)/ bbox: kimgio EPS BBOX:  0   0   785   539
Fatal error: you need to have a KComponentData object before
you do anything that requires it! Examples of this are config
objects, standard directories or translations.
Aborted (core dumped)
##

Some suggestions? are there perhaps some packets in conflict?

Thanks (sorry for my English)


Re: lyx crash when loading eps files

2008-01-24 Thread Juergen Spitzmueller
Luca Giambonini wrote:

> I have written a document containing images in eps. Now, mysteriously,
> when I try to open the same document  lyx crash.

This is a known problem. The culprit is kdelibs from KDE4. The only known
workaround is to deinstall kde4libs (i.e. KDE4, for that matter).

Jürgen



Re: Compare Changes/Differences between LyX Documents

2008-01-24 Thread Ken
Thanks for all the replies.  I like the suggestion below about
possibly incorporating a feature within LyX.  Since LyX already has a
"Track Changes" feature, I wonder whether it would be difficult to add
a "Show Changes" feature with respect to a different LyX file.

In the meantime it seems like diff is the way to go.

Thanks all!

-Ken


On Jan 22, 2008 7:00 PM, Bo Peng <[EMAIL PROTECTED]> wrote:
> > > Is there an easy way to compare the changes or differences between two
> > > LyX documents?
>
> You can file a feature request (someone else might have done it) to
> compare two documents and produce a document with revision markers. I
> have occasionally though of this feature but there seems to be no easy
> implementation.
>
> Cheers,
> Bo
>


Re: Citation Problem in Lyx 1.5.1

2008-01-24 Thread Uwe Stöhr

Paulina Restrepo schrieb:

I upgraded to Lyx 1.5.1 . The References  come up just fine, with 
numbers and everything, but in the text when I make a citation
I get a question mark instead of the number corresponding to that 
reference.


Does anyone know how to fix this?


Then your BibTeX file has bugs. To find them, view your document as PDF or DVI and then check the 
LaTeX-logfile in the LyX menu Document -> LaTeX Log. There LateX writes what the problem is.


Often the problems is that you used Unicode characters in the BibTeX file, because BibTeX can in 
contrary to LyX and LaTeX not handle Unicode.


regards Uwe


Re: Moving graphics from R into LyX - best format?

2008-01-24 Thread Liviu Andronic
On 1/23/08, Paul Johnson <[EMAIL PROTECTED]> wrote:
> Brief correction. I worked out a way in which to use Sweave within
> lyx. The instruction is posted in the Lyx Wiki
>
> http://wiki.lyx.org/LyX/LyxWithRThroughSweave

Based on Gregor's article and on recent discussions, these were the
changes needed to get LyX and Sweave up and running on my system
(Gentoo Linux).

1. Put noweb.sty [1] in your TeX PATH, followed by TeX rehash and LyX
reconfigure.
2. Add the following lines to the LyX preferences file:
# FORMATS SECTION ##
\format "literate" "Rnw" "Sweave"   "" "editor" "editor"
\format "r""R"   "R/S code" "" "editor" "editor"
\format "pdflatex" "tex" "LaTeX (pdflatex)" "" "editor" "editor"
\format "latex""tex" "LaTeX (plain)""" "editor" "editor" "document"

# CONVERTERS SECTION ##
\converter "literate" "r""R CMD Stangle $$i" ""
\converter "literate"  "latex" "R CMD Sweave $$i" ""
\converter "literate"  "pdflatex" "R CMD Sweave $$i" ""

As a result, using LyX 1.5.2, pdflatex and R 2.6.1, the documents that
you made available Normal-01.lyx [2] and Gamma-02.lyx [3] compile like
a sweet.

Contrary to the Wikipedia entry, it doesn't seem necessary to create a
specific "Rweave" "batch" script for processing Rnw-files. I never got
into the subtleties of the applied changes, but those mentioned above
seem enough to make LyX and Sweave interact well together.

Regards,
Liviu

[1] http://tug.ctan.org/cgi-bin/getFile.py?fn=/web/noweb/src/tex/noweb.sty
[2] http://wiki.lyx.org/uploads/LaTeX/SweaveR/Normal-01.lyx
[3] http://wiki.lyx.org/uploads/LaTeX/SweaveR/Gamma-02.lyx


Re: lyx crash when loading eps files

2008-01-24 Thread David Hewitt



>> I have written a document containing images in eps. Now, mysteriously,
>> when I try to open the same document  lyx crash.
> 
> This is a known problem. The culprit is kdelibs from KDE4. The only known
> workaround is to deinstall kde4libs (i.e. KDE4, for that matter).
> 

So, the recent suggestion to create EPS files of graphics in R for use in
LyX floats seems less palatable. If PDF is the endpoint for the LyX
document, perhaps PDF output from R is best?


-
David Hewitt
Virginia Institute of Marine Science
http://www.vims.edu/fish/students/dhewitt/
-- 
View this message in context: 
http://www.nabble.com/lyx-crash-when-loading-eps-files-tp15063140p15067525.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: Moving graphics from R into LyX - best format?

2008-01-24 Thread Paul Johnson
On 1/24/08, Liviu Andronic <[EMAIL PROTECTED]> wrote:
> On 1/23/08, Paul Johnson <[EMAIL PROTECTED]> wrote:
> > Brief correction. I worked out a way in which to use Sweave within
> > lyx. The instruction is posted in the Lyx Wiki
> >
> > http://wiki.lyx.org/LyX/LyxWithRThroughSweave
>
> Based on Gregor's article and on recent discussions, these were the
> changes needed to get LyX and Sweave up and running on my system
> (Gentoo Linux).
>
> 1. Put noweb.sty [1] in your TeX PATH, followed by TeX rehash and LyX
> reconfigure.
> 2. Add the following lines to the LyX preferences file:
> # FORMATS SECTION ##
> \format "literate" "Rnw" "Sweave"   "" "editor" "editor"
> \format "r""R"   "R/S code" "" "editor" "editor"
> \format "pdflatex" "tex" "LaTeX (pdflatex)" "" "editor" "editor"
> \format "latex""tex" "LaTeX (plain)""" "editor" "editor" "document"
>
> # CONVERTERS SECTION ##
> \converter "literate" "r""R CMD Stangle $$i" ""
> \converter "literate"  "latex" "R CMD Sweave $$i" ""
> \converter "literate"  "pdflatex" "R CMD Sweave $$i" ""
>
> As a result, using LyX 1.5.2, pdflatex and R 2.6.1, the documents that
> you made available Normal-01.lyx [2] and Gamma-02.lyx [3] compile like
> a sweet.

Awesome.  Sounds vain, but I feel stronger knowing those docs livve in
 moree computers than minne.



>
> Contrary to the Wikipedia entry, it doesn't seem necessary to create a
> specific "Rweave" "batch" script for processing Rnw-files. I never got
> into the subtleties of the applied changes, but those mentioned above
> seem enough to make LyX and Sweave interact well together.
>
R 2.6 added that function for us, so user no longer needs to.




> Regards,
> Liviu
>
> [1] http://tug.ctan.org/cgi-bin/getFile.py?fn=/web/noweb/src/tex/noweb.sty
> [2] http://wiki.lyx.org/uploads/LaTeX/SweaveR/Normal-01.lyx
> [3] http://wiki.lyx.org/uploads/LaTeX/SweaveR/Gamma-02.lyx
>


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


Change position of caption in a float-figure

2008-01-24 Thread Susanne Gütter
Hi all,

how can I change the position of the caption in a floatfigure? 
The command 
\align left 
enclosed to the lyx-file in a texteditor
does it only in lyx. When I convert to ps, then there is the LaTeX Error: 
Something's wrong--perhaps a missing \item.
 ...Plot}Log-Log-Plot \protect\end{flushleft}}
  
Try typingto proceed.
If that doesn't work, type  X   to quit.

Best regards

Susanne


Re: Change position of caption in a float-figure

2008-01-24 Thread Uwe Stöhr

Susanne Gütter schrieb:


how can I change the position of the caption in a floatfigure?


Use for this the LaTeX-package "caption" in the document preamble.
Here's the manual of caption:
http://www.ctan.org/get/macros/latex/contrib/caption/caption.pdf

regards Uwe


Outputting Notes in a PDF from LyX?

2008-01-24 Thread B. Bogart
Hello all,

I'm working on my Thesis in LyX and using a lot of notes to communicate
with myself. I would now also like to pass drafts onto my committee, but
 Notes are not included in pdflatex output. Is there a way to put the
document in a "draft" mode so that the Notes are output? I do recall an
older version of LyX did print the notes in a lighter shade, can I get
that behaviour back?

Thanks,
B. Bogart


Re: Change position of caption in a float-figure

2008-01-24 Thread Uwe Stöhr
I forgot to mention that the EmbeddedObjects manual describes the caotion package a bit in section 
3.7 and 3.8.


Uwe


Re: Outputting Notes in a PDF from LyX?

2008-01-24 Thread Les Denham
On Thursday 24 January 2008, B. Bogart wrote:
> Hello all,
>
> I'm working on my Thesis in LyX and using a lot of notes to communicate
> with myself. I would now also like to pass drafts onto my committee, but
>  Notes are not included in pdflatex output. Is there a way to put the
> document in a "draft" mode so that the Notes are output? I do recall an
> older version of LyX did print the notes in a lighter shade, can I get
> that behaviour back?
>
> Thanks,
> B. Bogart

If you right click on the Note box a pop-up window (in 1.5.2) gives you the 
choice of:

LyX Note
Comment
Greyed out
Framed
Shaded

In 1.4.2 the choices are:

LyX Note
Comment
Greyed out

The "Greyed out" option gives you the effect you're looking for.  


-- 
Les

~~
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


Re: lyx crash when loading eps files

2008-01-24 Thread David Hewitt



>>> I have written a document containing images in eps. Now, mysteriously,
>>> when I try to open the same document  lyx crash.
> 
>>This is a known problem. The culprit is kdelibs from KDE4. The only known
>>workaround is to deinstall kde4libs (i.e. KDE4, for that matter).
> 
> So, the recent suggestion to create EPS files of graphics in R for use in
> LyX floats seems less palatable. If PDF is the endpoint for the LyX
> document, perhaps PDF output from R is best?
> 

Responding to myself... I had reason to just now try an EPS figure in LyX
and it worked fine. Is this known problem restricted to Linux, or
specifically Kubuntu?

(And, I say "worked fine", but actually the preview in the float window was
chopped in half, but the output was fine.)


-
David Hewitt
Virginia Institute of Marine Science
http://www.vims.edu/fish/students/dhewitt/
-- 
View this message in context: 
http://www.nabble.com/lyx-crash-when-loading-eps-files-tp15063140p15074477.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: Compare Changes/Differences between LyX Documents

2008-01-24 Thread Dov Feldstern

Juergen Spitzmueller wrote:

Bo Peng wrote:


http://www.cs.bgu.ac.il/~dekelts/ldiff/

Quite interesting, do you see any hope of integrating this to lyx?


ldiff basically just compares tex files (LyX files are converted to tex via
lyx -e by the script). I think we should build in some native comparing
feature instead (which will mark differences with our change tracking
markup). IIRC we have an enhancement request about this.

Jürgen



Once we move to the xml format, we may be able to leverage some generic 
xml-diff tools. One that seems quite good (though not very active): 
http://www.logilab.org/859/


Dov


URLs Extending Into Right Margin

2008-01-24 Thread Rich Shepard

  In my document's preamble I have '\usepackage{url}', and in the body of
the text where there is a URL it's inserted as ERT '\url{http://etc.}'. But,
when I view the document (ctrl-d), some of the long strings extend into the
right margin.

  I thought that the URL package would handle this, and TLC2 suggests that
it should. But, it's not doing the job in at least two instances.

  Is there something I've missed in using this package?

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
 Voice: 503-667-4517  Fax: 503-667-8863


Promote/demote entire branches.

2008-01-24 Thread shiknar
How do I promote/demote an entire branch?

For example let's say I have the following table of contents:

1. Hello
2. World
2.1 How
2.2 Are
2.3 You

If I demote the second heading using the Document->Outline sidebar, lyx will
give me this:

1. Hello
1.1 World
1.2 How
1.3 Are
1.4 You

In other words lyx will only demote the heading and ignore all of it's
content thereby breaking the hierarchical structure of the document.
Sometimes this is what I want, but more often than not, what I really need
is for lyx to demote the entire branch of the tree giving me something like
this:

1. Hello
1.1. World
1.1.1 How
1.1.2 Are
1.1.3 You

As best as I can tell the only way of doing this in lyx is to manually
demote every single subheading. This makes reorganising the structure of
hierarchical documents unnecessarily time consuming. Is there a better way
of doing this?


Problem using pseudocode using algorithm/algpseudocode and Lyx

2008-01-24 Thread erwin


Sorry if this is obvious, but I've been searching for quite a while without 
luck. Basically I would like to use Lyx and edit pseudocode using packages 
algorithm/algorithmic/algpseudocode. Preferably the notation using arrows 
for assignment, as demonstrated in the .tex file. 

This .tex file works fine using LaTeX but when importing the file into LyX, 
and creating a pdf preview, LyX complains: 

- 

LaTeX Error: Something's wrong--perhaps a missing item. 


...uclid} \begin{algorithmic}{[}1] \Procedure
{Euclid}{$a,b$}\Comment{The
Try typingto proceed.
If that doesn't work, type  X   to quit.
- 


The link that might offer help in this similar issue is broken.
http://www.mail-archive.com/lyx-users@lists.lyx.org/msg06574.html 


Can anyone help and show how to do this within LyX?
Thanks,
Erwin 



- 

\documentclass{article} 


\usepackage{algorithm}
\usepackage{algpseudocode}
\usepackage{graphicx} 

\begin{document} 


\title{Introduction to \LaTeX{}}
\author{Author's Name} 

\maketitle 


\begin{abstract}
The abstract text goes here.
\end{abstract} 


\section{Introduction}
Here is the text of your introduction. 


\begin{equation}
  \label{simple_equation}
  \alpha = \sqrt{ \beta }
\end{equation} 


\subsection{Subsection Heading Here}
Write your subsection text here. 




\section{Conclusion}
Write your conclusion here. 



\begin{algorithm}
\caption{Euclid's algorithm}\label{euclid}
\begin{algorithmic}[1]
\Procedure{Euclid}{$a,b$}\Comment{The g.c.d. of a and b}
\State $r\gets a\bmod b$
\If {$r\not=0$}
\While{$r\not=0$}\Comment{We have the answer if r is 0}
\State $a\gets b$
\State $b\gets r$
\State $r\gets a\bmod b$
\EndWhile\label{euclidendwhile}
\EndIf
\State \textbf{return} $b$\Comment{The g.c.d. is b}
\EndProcedure
\end{algorithmic}
\end{algorithm} 



\end{document} 



Promote/demote entire branches.

2008-01-24 Thread Anders Ekberg

Click the triangle next to 2. World to close the section. The indent.

/Anders


shiknar
Thu, 24 Jan 2008 22:07:47 -0800

How do I promote/demote an entire branch?

For example let's say I have the following table of contents:

1. Hello
2. World
2.1 How
2.2 Are
2.3 You

If I demote the second heading using the Document->Outline sidebar,  
lyx will

give me this:

1. Hello
1.1 World
1.2 How
1.3 Are
1.4 You

In other words lyx will only demote the heading and ignore all of it's
content thereby breaking the hierarchical structure of the document.
Sometimes this is what I want, but more often than not, what I  
really need
is for lyx to demote the entire branch of the tree giving me  
something like

this:

1. Hello
1.1. World
1.1.1 How
1.1.2 Are
1.1.3 You

As best as I can tell the only way of doing this in lyx is to manually
demote every single subheading. This makes reorganising the  
structure of
hierarchical documents unnecessarily time consuming. Is there a  
better way

of doing this?