Daniel | 9 Feb 12:46
Picon
Picon
Favicon
Gravatar

beamer ornate template

Dear Lyx Developers,

I usually use latex directy (with vim&pdflatex), however I recently saw 
a presentation with an interesting design and the guy claimed to have 
used lyx. Anyway I installed it and yes: the beamer template tracks the 
sections in a top(!) bar, not a side bar. I converted to tex an searched 
the code, but not find out, how it is done!!
Can you tell me, who created this template? And do you get 
(sub-)sections into the top bar!!

Thanks,

Daniel who is grateful for any hint

Kornel Benko | 7 Feb 11:15
Favicon

Missing support for using \vref

Hi,
if I try tu use cross-references like "<reference> on page <page>", the created latex
is not compilable.

After some googling this seems to be an effect of loading package hyperref together with varioref.

A working solution was for me to load also package cleveref

e.g.

	...
	% 
	\usepackge{varioref} % loaded automatically
	...
	\usepackge[unicode=true]{hyperref} % loaded automatically
	...
	% later in preamble
	\usepackge{cleveref}

Could it be added automatically too if needed?

	Kornel
Jens Nöckel | 6 Feb 04:16
Favicon

Possible bug with keyboard shortcut parsing

Hi,
I just noticed a weird bug on Mac OS C with LyX 2.02. First I couldn't reproduce it, but now I think I have a recipe, and hopefully someone can confirm it. In some cases, the _sequence_ of Control-x and Control-s that emacs keybindings reserve for saving a document doesn't work. Instead, only the _last_ of the two (Control-s) is apparently captured and leads to the opening of the search dialog because the emacs keybinding for search is Control-s.

You probably don't have to do steps 1) - 4), but I did these steps very recently.

1)
Move ~/Library/Application Support/LyX-2.0 to the Desktop.

2)
Fresh download of 
LyX-2.0.2+qt4-cocoa.dmg
from www.lyx.org

3)
Move old LyX out of Application folder

4)
Install downloaded LyX and launch it

5)
In Preferences, I then chose the xemacs bind file, and checked the box "Do not swap Apple and Control Keys"

6)
Open a new document and type "Hello" or something like that, then save it. To save it with keyboard shortcuts, 

7)
Open the LyX User's Guide (or another document) from the Help menu (that took me some time to figure out). It opens in a tab.

8)
Go back to the first document, make some changes and try to save using the emacs keybinding Control-x Control-s. Now instead of saving, LyX opens the search dialog. This behavior doesn't go away if I close the User' Guide again. I have to restart LyX to recover.

This problem _doesn't_ appear when I open two of my own documents, either in separate windows or tabs. It on;y seems to appear when I also open Help documents!

Jens



Xu Wang | 4 Feb 21:04
Picon

google summer of code is starting

I remember there was an effort to participate last year but it didn't work out. Just thought I would share this that gives the timeline for this year:

http://google-opensource.blogspot.com/2012/02/google-summer-of-code-2012-is-on.html

Xu

Rob Oakes | 4 Feb 18:03
Picon

eLyXer for Document Parsing

Dear eLyXer Users and Developers,

I'm still at work on the import/export module for Microsoft Word documents. I'm making pretty good
progress. I've got a rough prototype that works pretty well and I'm now starting to refine it.

My approach up to now has been to use regular expressions to match portions of the document and then use a
library to translate those to the corresponding Word XML structures. It's working pretty well with my
simple test documents.

Before going too far with this approach, though, I wanted to post (another general query).

In the eLyXer library, there is already a robust set of tools used for converting LyX documents to HTML. Does
anyone know if the library is written in such as way that getting a generic in-memory representation of the
document would be possible? It would be awesome to re-use as much existing code for the Word document
export as possible. That would allow me to support a broader number of features, and gives me a framework
for working with maths.

Any thoughts Alex (and others)? I've downloaded the sources and have begun to work through them, but before
spending hours to days trying to wrap my head around them, I thought I would ask.

Cheers,

Rob
Pavel Sanda | 4 Feb 15:20
Favicon

AdvFind for EOLN

Tommaso,

is there some way how to replace normal end of paragraph with forced new line
(ctrl+enter) via advanced search/replace dialog?

Pavel

Kornel Benko | 3 Feb 13:46
Favicon

LyXHTML export

Exporting this minimal example will give invalid xhml.

1.) it outputs a comment
        <!-- Output Error: Tried to close `div' when no tags were open! -->
2.) the next <div> ends with </body> (should be </dev></body>)

The error shows iff:
a.) The branch in main module is active
b.) The file Thanks.lyx is inside the branch
c.) the "addcontentsline..." line in file Thanks.lyx is there

	Kornel
Attachment (Check.lyx): application/x-lyx, 1776 bytes
Attachment (Thanks.lyx): application/x-lyx, 1721 bytes
Attachment (Check.xhtml): application/xhtml+xml, 2128 bytes
Kornel Benko | 3 Feb 10:39
Favicon

LyXHTML export

Exporting this minimal example will give invalid xhml.

1.) it outputs a comment
	<!-- Output Error: Tried to close `div' when no tags were open! -->
2.) the next <div> ends with </body> (should be </dev></body>)

The error shows iff:
a.) The branch in main module is active
b.) The file Thanks.lyx is inside the branch
c.) the "addcontentsline..." line in file Thanks.lyx is there

	Kornel

Attachment (Check.lyx): application/x-lyx, 1777 bytes
Attachment (Thanks.lyx): application/x-lyx, 1722 bytes
Attachment (Check.xhtml): application/xhtml+xml, 2129 bytes
Yihui Xie | 1 Feb 22:18
Favicon
Gravatar

timeout when using the Sweave module

Hi,

I guess LyX should give the literate programming modules (e.g.
Sweave/knitr) more time to run their code. Currently I see the time
allowed is about 3 minutes, and LyX will raise an error after that. I
tested it with the following chunk in Sweave:

<<>>=
for (i in 1:100) {
    Sys.sleep(10)
    cat(i, "\n", file = "time.txt", append = TRUE)
}
@

Literate programming documents may involve with intensive
computations, so it will be ideal if we have an option to ignore
timeout (I did not find such an option in the preferences).

Regards,
Yihui
--
Yihui Xie <xieyihui <at> gmail.com>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA

Rob Oakes | 1 Feb 20:59
Picon

Import into LyX

Dear Users and Developers,

Some time ago, I was experimenting with importing documents into LyX (specifically about how to crack the import MS Word to LyX nut). In the process, I got really excited about using OpenOffice to convert the word document to HTML, running tidy on the HTML and then importing that way. (The original blog article about this can be found at http://blog.oak-tree.us/index.php/2010/05/14/msword-lyx-import.)

Since I'm (re)writing a book chapter about this topic, I thought that I would look at alternative strategies for importing Word (and other file formats) into LyX. While doing research, I came across a (potentially) much better solution.

Somewhat recently (in 2010), a group of Python libraries were written that handle document conversions. They are part of the epub-tools library (http://code.google.com/p/epub-tools/). (I've been experimenting with ePub document creation from LyX, which is how I found them.)

One of the tools in the library is able to parse Microsoft word documents and convert them to XHTML in preparation for generating an ePub file. I think that the tool can be adapted for directly converting Word docs to LyX. Not to LaTeX and then to LyX, but directly to LyX.

I'm putting together a library to experiment with direct conversions (this is ostensibly being done for the never-ending book project, but will be released as open code), but before getting too deep into development, I wanted to poll:
  1. Is this a tool that would prove useful to yourselves, your collaborators, and others?
  2. What features would you consider essential?

    (Right now, styles based conversion looks pretty easy -- going from Heading 1 in Word to Chapter, for example. But I'm not sure how well it would convert maths. This is something I'll still need to look at, and may require writing an additional module.)

  3. What is the best tool to look at for guidance in creating a new script for word2lyx? tex2lyx?
  4. Does the script need to support special cases, such as importing Word "track changes"?
  5. Just how important do you consider "round-tripping" a document, e.g., going from LyX to Word and back to LyX.
  6. Is there anyone who might be interested in collaborating on this?
Any thoughts would be greatly appreciated.

Cheers,

Rob Oakes
Picon
Favicon
Gravatar

Sweave manual pdf compilation fails

Hello,

I took a look to the new specific manual describing sweave with the latest 
2.0.3svn. The pdf export fails on an Rscript error:

<cite>
Running: Rscript --verbose --no-save --no-restore 
"/usr/local/share/lyx-2.0.3svn/scripts/lyxsweave.R" 
"/tmp/lyx_tmpdir.T21839/lyx_tmpbuf2/""sweave.Rnw" 
"/tmp/lyx_tmpdir.T21839/lyx_tmpbuf2/""sweave.tex" ISO-8859-15 
"/usr/local/share/lyx-2.0.3svn/examples/"
running
   '/usr/lib/R/bin/R --slave --no-restore --no-save --no-restore 
--file=/usr/local/share/lyx-2.0.3svn/scripts/lyxsweave.R --args 
/tmp/lyx_tmpdir.T21839/lyx_tmpbuf2/sweave.Rnw 
/tmp/lyx_tmpdir.T21839/lyx_tmpbuf2/sweave.tex ISO-8859-15'

[1] FALSE
Writing to file /tmp/lyx_tmpdir.T21839/lyx_tmpbuf2/sweave.tex
Processing code chunks ...
  1 : term verbatim
  2 : echo (label=sweave-sty)
  3 : echo keep.source term verbatim (label=setup)
  4 : echo keep.source (label=sweave-manual)
  5 : echo keep.source term verbatim (label=print-integers)
  6 : echo term hide (label=hide-results)
  7 : echo term verbatim (label=calculator)
  8 : echo term verbatim (label=rnorm)
  9 : echo term verbatim (label=iris-summary)
10 : term tex (label=xtable-demo)
Loading required package: xtable
11 : echo term verbatim eps pdf (label=iris-pairs)

Erreur :  chunk 11 (label=iris-pairs)
Error in function (file = ifelse(onefile, "Rplots.pdf", "Rplot%03d.pdf"),  :
   impossible de démarrer le périphérique pdf
De plus : Messages d'avis :
1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return 
= TRUE,  :
   there is no package called 'xtable'
2: In function (file = ifelse(onefile, "Rplots.pdf", "Rplot%03d.pdf"),  :
   impossible d'ouvrir le fichier en argument de 'pdf' 'Rplots.pdf'
Exécution arrêtée
Systemcall.cpp(270): Systemcall: 'Rscript --verbose --no-save --no-restore 
"/usr/local/share/lyx-2.0.3svn/scripts/lyxsweave.R" 
"/tmp/lyx_tmpdir.T21839/lyx_tmpbuf2/""sweave.Rnw" 
"/tmp/lyx_tmpdir.T21839/lyx_tmpbuf2/""sweave.tex" ISO-8859-15 
"/usr/local/share/lyx-2.0.3svn/examples/"' finished with exit code 1
Error: Conversion du fichier impossible
</cite>

I installed R and related packages on my Debian box (Squeeze, R version 2.11). 
While updating fr.po for 2.0.3, I saw something about a requirement for R 
version >=2.14.
Is that the reason of failure ?

--

-- 
Jean-Pierre


Gmane