Re: bibtex references not in compiled document...

2012-03-02 Thread Jonas Lindh
My only working solution to problems with bibtex has unfortunately been to
leave Lyx and clean up plain latex and compile...
I have basically tried everything to get this to work in lyx...
Jonas


http://www.ling.gu.se/~jonas


2012/2/27 Jonas Lindh jonas.lindh...@gmail.com

 When I create a test file and use same bst or different (plainnat) I get
 the same errors from bibtex... I am still presuming I have to put the bsts
 yet some other place, but they are all over now... any input more on this?
 Best regards
 Jonas


 2012/2/27 Jonas Lindh jonas.lindh...@gmail.com

 According to http://tug.org/mactex/faq/#qm04 I should put my bst file
 under ~/Library/texmf/tex/ which I have already done (also tried several
 other places, so I can't understand why it can't be read?
 Jonas


 2012/2/24 Jonas Lindh jonas.lindh...@gmail.com



 On Friday, February 24, 2012, Richard Heck wrote:

 On 02/24/2012 08:46 AM, Jonas Lindh wrote:
  Hi.
  After updating etc I can't seem to get my references into the compiled
  pdf using lyx 2.0.2 on macosx 10.7.3 and a bst that used to work great
  from a professor at my dept. MacTeX 2011 is installed and updated
  using Tex live...
 
  I am attaching the bst.+AKA-
 
  The output gives me (?) for refs and error for bibtex is :
  This is 8-bit Big BibTeX version 0.99d
  Implementation: +AKA-C for Unix
  Release version: 3.71 (31 May 2005)
 
  Error: cannot open CS file: 88591lat.csf
  The top-level auxiliary file: thesis+AF8-vers16.1.aux
  I couldn't open style file
 
 45+AF8-Users+AF8-jonas+AF8-Dropbox+AF8-thesis+AF8-version16+AF8-mybib.bst
  ---line 1387 of file thesis+AF8-vers16.1.aux
  +AKA-:
 
 +AFw-bibstyle+AHs-45+AF8-Users+AF8-jonas+AF8-Dropbox+AF8-thesis+AF8-version16+AF8-mybib
  +AKA-: +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA-
  +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA-
  +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKAAfQ-
  I'm skipping whatever remains of this command
  I couldn't open database file
 
 44+AF8-Users+AF8-jonas+AF8-Dropbox+AF8-thesis+AF8-version16+AF8-thesis+AF8-vers16.bib
  ---line 1388 of file thesis+AF8-vers16.1.aux
  +AKA-:
 
 +AFw-bibdata+AHs-44+AF8-Users+AF8-jonas+AF8-Dropbox+AF8-thesis+AF8-version16+AF8-thesis+AF8-vers16
  +AKA-: +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA-
  +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA-
  +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AH0-
  I'm skipping whatever remains of this command
  I found no database files---while reading file thesis+AF8-vers16.1.aux
  I found no style file---while reading file thesis+AF8-vers16.1.aux
 
 I'm not sure what you updated, but it looks as if LaTeX simply isn't
 finding the bst file.


 I ran tex check... Then checked log - bibtex


 It also looks as if LyX is copying it to your
 temporary directory, and THEN LaTeX isn't finding it. This may be due to
 some changes in how local files are handled in 2.0.2.


 Suspected that too and put it in the same folder as the lyx doc, but
 also in tex folders I could think of and find documentation of, but didn't
 help, maybe need to put in yet another path, somebody knows where it's
 looking on mac/unix?


 I'd suggest that
 you put the bst file in some location where LaTeX will find it without
 its having to be copied to the temporary directory. Where this is on
 Mac, I'm afraid I do not know.

 After you get this error, you might also look in the temporary
 directory. Is the referenced file there?


 Which tmp? Lyx?
 Thanks for answering so quickly...
 Jonas



 Richard



 --
 
 http://www.ling.gu.se/~jonas




 --
 http://www.ling.gu.se/~jonas





 --
 http://www.ling.gu.se/~jonas





-- 
http://www.ling.gu.se/~jonas


Conversion to HTML(MS Word)

2012-03-02 Thread Myriam Abramson

Hello, 

I have Lyx 1.6.5 with Ubuntu Lucid Lynx. I use the conversion to
HTML(MS Word) to convert to HTML and import into Word. The
conversion of the pictures is not very good for some reason. The
pictures are all blurry. How can I get a better conversion? 

TIA,

-- 
   myriam



Gtk-warning

2012-03-02 Thread Graham Smith
I have just updated Lyx by adding the new  the Ubuntu ppa to Ubuntu 11.10
and I am getting the following warning:

(lyx:2997): Gtk-WARNING **: Unable to locate theme engine in module_path:
pixmap,

Is this something to be worried about, and if so can anyone help me fix it.

Many thanks,

Graham


Re: Gtk-warning

2012-03-02 Thread Richard Heck

On 03/02/2012 12:04 PM, Graham Smith wrote:
I have just updated Lyx by adding the new  the Ubuntu ppa to Ubuntu 
11.10 and I am getting the following warning:


(lyx:2997): Gtk-WARNING **: Unable to locate theme engine in 
module_path: pixmap,


Is this something to be worried about, and if so can anyone help me 
fix it.



Probably not a LyX issue as such, since LyX does not use Gtk itself.

Richard



Re: need working example of copier to customize pdf output

2012-03-02 Thread Richard Heck

On 03/02/2012 02:02 AM, Paul Johnson wrote:

Oh, heck. I broke the regular export of the one-page at a time PDF
when I added my copier for the 4 sheets on one page.

Details below, please advise.


Sorry, I'm not sure I understand the issue yet.

If you export to PDF (Beamer), then this will always give you the 2x2 
thing, since the copier will always be invoked.


If you try to export to just PDF (pdflatex), is that when you have a 
problem?


Richard


On Mon, Feb 27, 2012 at 2:15 PM, Richard Heckrgh...@comcast.net  wrote:

On 02/27/2012 01:11 PM, Paul Johnson wrote:

When this finally seemed to work, I was so happy.  However, I see now
I've broken the pdf export.

The weird thing is that LyX asks me if I want to replace the old pdf
version, and I say yes, it still does not get copied.

Just now, I worked on lecture notes and exported to PDF(Beamer). I end up with
-rw-r--r--  1 337226 Mar  2 00:57 Regression-MultipleInputs-lecture-2-2x2.pdf
-rw-r--r--  1  56429 Mar  2 00:55 Regression-MultipleInputs-lecture-2.lyx
-rw-r--r--  1543209 Sep 29 12:17 Regression-MultipleInputs-lecture-2.pdf

I do get the 4 slides on 1 page output, the one with 2x2 on the end.
The lyx file is saved, but last semester's pdf is stuck there.

Here's what I'm using now.

In .lyx/preferences, I add:

\format pdf5 pdf PDF (Beamer)  evince  document,vector,menu=export

\converter pdflatex pdf5 pdflatex $$i latex=pdflatex

\copier pdf5 pdfcopier.sh \$$i\ \$$o\

And here's pdfcopier.sh

#!/bin/bash
INFILE=$1;
pdfnup --nup 2x2  --frame true --suffix '2x2' --batch $INFILE;

Inside LyX, I can Export to PDF(Beamer) and it does export the file
with the 2x2 format, and the name is set correctly.
.
What do you think?





Re: Conversion to HTML(MS Word)

2012-03-02 Thread Richard Heck

On 03/02/2012 08:09 AM, Myriam Abramson wrote:

Hello,

I have Lyx 1.6.5 with Ubuntu Lucid Lynx. I use the conversion to
HTML(MS Word) to convert to HTML and import into Word. The
conversion of the pictures is not very good for some reason. The
pictures are all blurry. How can I get a better conversion?

This mostly depends upon what kinds of images you are trying to use.
I'm not sure what htlatex, which is what actually does the conversion,
uses to convert the images.

You might try just exporting via LyX's own LyXHTML export function.
I've had pretty good luck with that.

Richard



word2lyx (Word to LyX Translator): Status Update

2012-03-02 Thread Rob Oakes
Dear Users and Developers,

I wanted to give everyone a quick status update on what I've been doing
with the Word to LyX importer.

Over the past couple of weeks, I've been working on it full steam and
it's now pretty functional. It supports:

 1. Translating Word paragraph and character styles to LyX paragraph and
character styles. In the case of character styles that aren't
defined, it will write entries for them into the local layout
(including basic LaTeX commands).
 2. Importing Word tables, including those with merged rows or columns.
It will also do its best with the table borders.
 3. Enumerated and itemized lists.
 4. Importing images from the Word document. (It skips over embedded
objects, such as charts from Excel.)
 5. The use of custom templates, which allows you to fine tune importing
your documents. I've created templates for article.cls and book.cls.
I'll also probably create one for memoir.cls as well.

Before release, I still need to implement support for footnotes and
endnotes (which is pretty easy).

Which brings me to the main reason I'm writing. Before releasing the
code, I'd really like to test it on a couple of in the wild documents.
It does pretty well on the test documents I've thrown at it from my own
library. But ... that's just me. I use Word in a very particular way.

If there's anyone who wouldn't mind, I'd really like to throw other test
documents at it. If you would be willing to donate one, please let me
know. This would allow me to check a wide variety of work and nail down
a couple more issues before a public test. I will keep all documents
confidential and delete after I've finished testing.

If everything goes well, I'll release the 0.1 version (which will still
need quite some cleaning up) early next week.

Cheers,

Rob


Re: Page numbers for the bibliography in book(AMS) document class.

2012-03-02 Thread Richard Heck

On 03/01/2012 03:56 AM, UD wrote:
On the first page of the chapter the command: 
\thispagestyle{myheadings} puts the page number in the upper right 
corner, but at the beginning of the bibliography that command does 
nothing


It probably comes too early or too late. If you put it before the 
bibliography command, it is on the previous page. If after it, it's 
probably on a later page.


I think you probably have to modify the chapter* environment to get this 
to work. This is what I find in amsbook.cls:


\def\chapter{%
  \if@openright\cleardoublepage\else\clearpage\fi
  \thispagestyle{plain}\global\@topnum\z@
  \@afterindenttrue \secdef\@chapter\@schapter}

So I'd try:

\def\chapter{%
  \if@openright\cleardoublepage\else\clearpage\fi
  \thispagestyle{myheadings}\global\@topnum\z@
  \@afterindenttrue \secdef\@chapter\@schapter}

in the preamble. This will take care of all the chapter pages at once.

If you only want to modify the bibliography page, then the easiest way 
is probably to modify the declaration of the thebibliography environment.


Richard



Re: word2lyx (Word to LyX Translator): Status Update

2012-03-02 Thread Richard Heck


Nice going!!

Richard


On 03/02/2012 12:33 PM, Rob Oakes wrote:

Dear Users and Developers,

I wanted to give everyone a quick status update on what I've been 
doing with the Word to LyX importer.


Over the past couple of weeks, I've been working on it full steam and 
it's now pretty functional. It supports:


 1. Translating Word paragraph and character styles to LyX paragraph
and character styles. In the case of character styles that aren't
defined, it will write entries for them into the local layout
(including basic LaTeX commands).
 2. Importing Word tables, including those with merged rows or
columns. It will also do its best with the table borders.
 3. Enumerated and itemized lists.
 4. Importing images from the Word document. (It skips over embedded
objects, such as charts from Excel.)
 5. The use of custom templates, which allows you to fine tune
importing your documents. I've created templates for article.cls
and book.cls. I'll also probably create one for memoir.cls as well.

Before release, I still need to implement support for footnotes and 
endnotes (which is pretty easy).


Which brings me to the main reason I'm writing. Before releasing the 
code, I'd really like to test it on a couple of in the wild 
documents. It does pretty well on the test documents I've thrown at it 
from my own library. But ... that's just me. I use Word in a very 
particular way.


If there's anyone who wouldn't mind, I'd really like to throw other 
test documents at it. If you would be willing to donate one, please 
let me know. This would allow me to check a wide variety of work and 
nail down a couple more issues before a public test. I will keep all 
documents confidential and delete after I've finished testing.


If everything goes well, I'll release the 0.1 version (which will 
still need quite some cleaning up) early next week.


Cheers,

Rob




Re: making a Box: using floatrow package in place of default float

2012-03-02 Thread Csikos Bela
Justin Wood upas...@gmail.com írta:
Hi all. Bit of a tortured question, but hoping someone can help me sort this 
out.The goal: I#39;m trying to add the ability to create box floats in my 
doctoral thesis, which are used to contain regular text displayed as an 
important aside. Attached is an example of what I#39;m after (box.pdf), based 
on what I have so far.


Functionality requirements:* a float, framed* numbered caption, derived from 
containing chapter (Box 2.1, 2.2, etc) which is included in the List of X in 
TOC* that caption should be at the top and inside the box itself

* text should be smaller font size
The setup:* LyX 2.0.2 on OS X 10.7.3 with TeXLive 2011.* documents use the 
bundled thesis template (KOMA-script), set with XeTeX for additional fonts 
(though the same function was provided by this mechanism when it was 
#39;just#39; LaTeX).

To date (~18 months) I#39;ve been using a custom boxedfloat.module that Jürgen 
Spitzmüller provided me with (attached), with the following LaTeX preamble to 
control the caption format:\@ifundefined{fs@boxed}{}% do nothing if not in use

{%  \usepackage{framed}

   \newcommand\floatc@simplerule[2]{\flushleft{\@fs@cfont #1 #2}}  
\renewcommand\fs@boxed{%

   \def\@fs@cfont{\bfseries}\let\@fs@capt\floatc@simplerule    
\def\@fs@pre{\begin{framed}}%

    \def\@fs@post{\end{framed}}%    \def\@fs@mid{\kern8pt}%

    \let\@fs@iftopcapt\iftrue}}%This works very well — again, producing the 
example — however I have a couple of limitations that the floatrow package 
seems to be able to address:

* specifying the font size once in preamble, whereas at the moment I#39;ve not 
been able to find any other way than ERT at the beginning and end of the float 
to add {\small ... }

* the ability to use normal paragraph breaks rather than manually entering 
\medskip* the ability to include footnotes within the Box, which to date has 
proved impossible but floatrow states that it can do soThe problem...:

I cannot get floatrow to work. I found this previous list trail from 2011, and 
followed the suggestion to implement floatrow.module (aside: looking at 
exported LaTeX, \usepackage{floatrow} is still inserted twice). Unfortunately 
nothing I#39;ve tried has succeeded, and my knowledge of LaTeX and/or LyX 
modules doesn#39;t appear up to the task... It seems that the module 
overriding of the auto-included float package does not occur before LyX 
automatically adds the configuration commands pertaining to the original float 
package; namely:

\floatstyle{boxed}\newfloat{boxfloat}{tbh}{lob}[chapter]

\providecommand{\boxfloatname}{Box}\floatname{boxfloat}{\protect\boxfloatname}

floatrow documentation sort of says this should work anyway, but it 
doesn#39;t. Any time I try to replace or override this in the floatrow.module 
or LaTeX preamble, compilation (XeTeX) throws an Undefined control sequence 
error, protesting that \floatstyle{boxed} was not \def#39;d, followed by a 
missing \begin{document}. My tentative guess is that the float style commands 
are effectively being given twice?

The request:I#39;ll be eternally grateful if someone can help me solve this! I 
don#39;t much care how it#39;s done, whether by resolving this particular 
issue with using floatrow over the default float or by some other package or 
LaTeX wizardry. Perhaps it could even be added to LyX proper; surely I#39;m 
not that unusual in seeking this format type?

Thanks as always!PS - slightly less than 6 months till immutable submission 
deadline...


~:justin.wood:~ ≤ 350ppm


Hello:

Here are two example lyx files. See the difference between the location of
the floats, which is reflected in the TOC.

This requires caption and floatrow packages but not the module you mentioned.
For details see the documentation of floatrow package.

Cheers,

bcsikos





textbox-float-a.lyx
Description: Binary data


textbox-float-b.lyx
Description: Binary data


Re: Page numbers for the bibliography in book(AMS) document class.

2012-03-02 Thread UD
Thanks SO MUCH, Richard-- your little tweak of the chapter* environment 
did the trick!

Yours,
Ehud Kaplan

On 03/02/2012 12:35 PM, Richard Heck wrote:

On 03/01/2012 03:56 AM, UD wrote:
On the first page of the chapter the command: 
\thispagestyle{myheadings} puts the page number in the upper right 
corner, but at the beginning of the bibliography that command does 
nothing


It probably comes too early or too late. If you put it before the 
bibliography command, it is on the previous page. If after it, it's 
probably on a later page.


I think you probably have to modify the chapter* environment to get 
this to work. This is what I find in amsbook.cls:


\def\chapter{%
  \if@openright\cleardoublepage\else\clearpage\fi
  \thispagestyle{plain}\global\@topnum\z@
  \@afterindenttrue \secdef\@chapter\@schapter}

So I'd try:

\def\chapter{%
  \if@openright\cleardoublepage\else\clearpage\fi
  \thispagestyle{myheadings}\global\@topnum\z@
  \@afterindenttrue \secdef\@chapter\@schapter}

in the preamble. This will take care of all the chapter pages at once.

If you only want to modify the bibliography page, then the easiest way 
is probably to modify the declaration of the thebibliography environment.


Richard



-


Re: word2lyx (Word to LyX Translator): Status Update

2012-03-02 Thread James Sutherland
Rob,
This sounds very nice!
Any ideas about whether you will be able to support cross references and
translate that into LyX/LaTeX labels/references?
James


On Fri, Mar 2, 2012 at 10:33 AM, Rob Oakes rob.oa...@oak-tree.us wrote:

  Dear Users and Developers,

 I wanted to give everyone a quick status update on what I've been doing
 with the Word to LyX importer.

 Over the past couple of weeks, I've been working on it full steam and it's
 now pretty functional. It supports:

1. Translating Word paragraph and character styles to LyX paragraph
and character styles. In the case of character styles that aren't defined,
it will write entries for them into the local layout (including basic LaTeX
commands).
2. Importing Word tables, including those with merged rows or columns.
It will also do its best with the table borders.
3. Enumerated and itemized lists.
4. Importing images from the Word document. (It skips over embedded
objects, such as charts from Excel.)
 5. The use of custom templates, which allows you to fine tune
importing your documents. I've created templates for article.cls and
book.cls. I'll also probably create one for memoir.cls as well.

 Before release, I still need to implement support for footnotes and
 endnotes (which is pretty easy).

 Which brings me to the main reason I'm writing. Before releasing the code,
 I'd really like to test it on a couple of in the wild documents. It does
 pretty well on the test documents I've thrown at it from my own library.
 But ... that's just me. I use Word in a very particular way.

 If there's anyone who wouldn't mind, I'd really like to throw other test
 documents at it. If you would be willing to donate one, please let me know.
 This would allow me to check a wide variety of work and nail down a couple
 more issues before a public test. I will keep all documents confidential
 and delete after I've finished testing.

 If everything goes well, I'll release the 0.1 version (which will still
 need quite some cleaning up) early next week.

 Cheers,

 Rob



Re: word2lyx (Word to LyX Translator): Status Update

2012-03-02 Thread Rob Oakes
Hi James,

On 3/2/2012 4:18 PM, James Sutherland wrote:
 This sounds very nice!
Thanks. I appreciate that.
 Any ideas about whether you will be able to support cross references
 and translate that into LyX/LaTeX labels/references?
 James

Short answer, yes. It's one of the three or four things I still have yet
to implement. It will be in the 0.1 release, though.

I'm also planning on translating embedded data (such as traveling
EndNote bibliographies or Zotero inserts) into BibTeX databases and
adding citation commands. That, however, will have to be a 0.2 feature
as it requires quite a bit more infrastructure to support.

Cheers,

Rob


Re: bibtex references not in compiled document...

2012-03-02 Thread Jonas Lindh
My only working solution to problems with bibtex has unfortunately been to
leave Lyx and clean up plain latex and compile...
I have basically tried everything to get this to work in lyx...
Jonas


http://www.ling.gu.se/~jonas


2012/2/27 Jonas Lindh jonas.lindh...@gmail.com

 When I create a test file and use same bst or different (plainnat) I get
 the same errors from bibtex... I am still presuming I have to put the bsts
 yet some other place, but they are all over now... any input more on this?
 Best regards
 Jonas


 2012/2/27 Jonas Lindh jonas.lindh...@gmail.com

 According to http://tug.org/mactex/faq/#qm04 I should put my bst file
 under ~/Library/texmf/tex/ which I have already done (also tried several
 other places, so I can't understand why it can't be read?
 Jonas


 2012/2/24 Jonas Lindh jonas.lindh...@gmail.com



 On Friday, February 24, 2012, Richard Heck wrote:

 On 02/24/2012 08:46 AM, Jonas Lindh wrote:
  Hi.
  After updating etc I can't seem to get my references into the compiled
  pdf using lyx 2.0.2 on macosx 10.7.3 and a bst that used to work great
  from a professor at my dept. MacTeX 2011 is installed and updated
  using Tex live...
 
  I am attaching the bst.+AKA-
 
  The output gives me (?) for refs and error for bibtex is :
  This is 8-bit Big BibTeX version 0.99d
  Implementation: +AKA-C for Unix
  Release version: 3.71 (31 May 2005)
 
  Error: cannot open CS file: 88591lat.csf
  The top-level auxiliary file: thesis+AF8-vers16.1.aux
  I couldn't open style file
 
 45+AF8-Users+AF8-jonas+AF8-Dropbox+AF8-thesis+AF8-version16+AF8-mybib.bst
  ---line 1387 of file thesis+AF8-vers16.1.aux
  +AKA-:
 
 +AFw-bibstyle+AHs-45+AF8-Users+AF8-jonas+AF8-Dropbox+AF8-thesis+AF8-version16+AF8-mybib
  +AKA-: +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA-
  +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA-
  +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKAAfQ-
  I'm skipping whatever remains of this command
  I couldn't open database file
 
 44+AF8-Users+AF8-jonas+AF8-Dropbox+AF8-thesis+AF8-version16+AF8-thesis+AF8-vers16.bib
  ---line 1388 of file thesis+AF8-vers16.1.aux
  +AKA-:
 
 +AFw-bibdata+AHs-44+AF8-Users+AF8-jonas+AF8-Dropbox+AF8-thesis+AF8-version16+AF8-thesis+AF8-vers16
  +AKA-: +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA-
  +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA-
  +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AH0-
  I'm skipping whatever remains of this command
  I found no database files---while reading file thesis+AF8-vers16.1.aux
  I found no style file---while reading file thesis+AF8-vers16.1.aux
 
 I'm not sure what you updated, but it looks as if LaTeX simply isn't
 finding the bst file.


 I ran tex check... Then checked log - bibtex


 It also looks as if LyX is copying it to your
 temporary directory, and THEN LaTeX isn't finding it. This may be due to
 some changes in how local files are handled in 2.0.2.


 Suspected that too and put it in the same folder as the lyx doc, but
 also in tex folders I could think of and find documentation of, but didn't
 help, maybe need to put in yet another path, somebody knows where it's
 looking on mac/unix?


 I'd suggest that
 you put the bst file in some location where LaTeX will find it without
 its having to be copied to the temporary directory. Where this is on
 Mac, I'm afraid I do not know.

 After you get this error, you might also look in the temporary
 directory. Is the referenced file there?


 Which tmp? Lyx?
 Thanks for answering so quickly...
 Jonas



 Richard



 --
 
 http://www.ling.gu.se/~jonas




 --
 http://www.ling.gu.se/~jonas





 --
 http://www.ling.gu.se/~jonas





-- 
http://www.ling.gu.se/~jonas


Conversion to HTML(MS Word)

2012-03-02 Thread Myriam Abramson

Hello, 

I have Lyx 1.6.5 with Ubuntu Lucid Lynx. I use the conversion to
HTML(MS Word) to convert to HTML and import into Word. The
conversion of the pictures is not very good for some reason. The
pictures are all blurry. How can I get a better conversion? 

TIA,

-- 
   myriam



Gtk-warning

2012-03-02 Thread Graham Smith
I have just updated Lyx by adding the new  the Ubuntu ppa to Ubuntu 11.10
and I am getting the following warning:

(lyx:2997): Gtk-WARNING **: Unable to locate theme engine in module_path:
pixmap,

Is this something to be worried about, and if so can anyone help me fix it.

Many thanks,

Graham


Re: Gtk-warning

2012-03-02 Thread Richard Heck

On 03/02/2012 12:04 PM, Graham Smith wrote:
I have just updated Lyx by adding the new  the Ubuntu ppa to Ubuntu 
11.10 and I am getting the following warning:


(lyx:2997): Gtk-WARNING **: Unable to locate theme engine in 
module_path: pixmap,


Is this something to be worried about, and if so can anyone help me 
fix it.



Probably not a LyX issue as such, since LyX does not use Gtk itself.

Richard



Re: need working example of copier to customize pdf output

2012-03-02 Thread Richard Heck

On 03/02/2012 02:02 AM, Paul Johnson wrote:

Oh, heck. I broke the regular export of the one-page at a time PDF
when I added my copier for the 4 sheets on one page.

Details below, please advise.


Sorry, I'm not sure I understand the issue yet.

If you export to PDF (Beamer), then this will always give you the 2x2 
thing, since the copier will always be invoked.


If you try to export to just PDF (pdflatex), is that when you have a 
problem?


Richard


On Mon, Feb 27, 2012 at 2:15 PM, Richard Heckrgh...@comcast.net  wrote:

On 02/27/2012 01:11 PM, Paul Johnson wrote:

When this finally seemed to work, I was so happy.  However, I see now
I've broken the pdf export.

The weird thing is that LyX asks me if I want to replace the old pdf
version, and I say yes, it still does not get copied.

Just now, I worked on lecture notes and exported to PDF(Beamer). I end up with
-rw-r--r--  1 337226 Mar  2 00:57 Regression-MultipleInputs-lecture-2-2x2.pdf
-rw-r--r--  1  56429 Mar  2 00:55 Regression-MultipleInputs-lecture-2.lyx
-rw-r--r--  1543209 Sep 29 12:17 Regression-MultipleInputs-lecture-2.pdf

I do get the 4 slides on 1 page output, the one with 2x2 on the end.
The lyx file is saved, but last semester's pdf is stuck there.

Here's what I'm using now.

In .lyx/preferences, I add:

\format pdf5 pdf PDF (Beamer)  evince  document,vector,menu=export

\converter pdflatex pdf5 pdflatex $$i latex=pdflatex

\copier pdf5 pdfcopier.sh \$$i\ \$$o\

And here's pdfcopier.sh

#!/bin/bash
INFILE=$1;
pdfnup --nup 2x2  --frame true --suffix '2x2' --batch $INFILE;

Inside LyX, I can Export to PDF(Beamer) and it does export the file
with the 2x2 format, and the name is set correctly.
.
What do you think?





Re: Conversion to HTML(MS Word)

2012-03-02 Thread Richard Heck

On 03/02/2012 08:09 AM, Myriam Abramson wrote:

Hello,

I have Lyx 1.6.5 with Ubuntu Lucid Lynx. I use the conversion to
HTML(MS Word) to convert to HTML and import into Word. The
conversion of the pictures is not very good for some reason. The
pictures are all blurry. How can I get a better conversion?

This mostly depends upon what kinds of images you are trying to use.
I'm not sure what htlatex, which is what actually does the conversion,
uses to convert the images.

You might try just exporting via LyX's own LyXHTML export function.
I've had pretty good luck with that.

Richard



word2lyx (Word to LyX Translator): Status Update

2012-03-02 Thread Rob Oakes
Dear Users and Developers,

I wanted to give everyone a quick status update on what I've been doing
with the Word to LyX importer.

Over the past couple of weeks, I've been working on it full steam and
it's now pretty functional. It supports:

 1. Translating Word paragraph and character styles to LyX paragraph and
character styles. In the case of character styles that aren't
defined, it will write entries for them into the local layout
(including basic LaTeX commands).
 2. Importing Word tables, including those with merged rows or columns.
It will also do its best with the table borders.
 3. Enumerated and itemized lists.
 4. Importing images from the Word document. (It skips over embedded
objects, such as charts from Excel.)
 5. The use of custom templates, which allows you to fine tune importing
your documents. I've created templates for article.cls and book.cls.
I'll also probably create one for memoir.cls as well.

Before release, I still need to implement support for footnotes and
endnotes (which is pretty easy).

Which brings me to the main reason I'm writing. Before releasing the
code, I'd really like to test it on a couple of in the wild documents.
It does pretty well on the test documents I've thrown at it from my own
library. But ... that's just me. I use Word in a very particular way.

If there's anyone who wouldn't mind, I'd really like to throw other test
documents at it. If you would be willing to donate one, please let me
know. This would allow me to check a wide variety of work and nail down
a couple more issues before a public test. I will keep all documents
confidential and delete after I've finished testing.

If everything goes well, I'll release the 0.1 version (which will still
need quite some cleaning up) early next week.

Cheers,

Rob


Re: Page numbers for the bibliography in book(AMS) document class.

2012-03-02 Thread Richard Heck

On 03/01/2012 03:56 AM, UD wrote:
On the first page of the chapter the command: 
\thispagestyle{myheadings} puts the page number in the upper right 
corner, but at the beginning of the bibliography that command does 
nothing


It probably comes too early or too late. If you put it before the 
bibliography command, it is on the previous page. If after it, it's 
probably on a later page.


I think you probably have to modify the chapter* environment to get this 
to work. This is what I find in amsbook.cls:


\def\chapter{%
  \if@openright\cleardoublepage\else\clearpage\fi
  \thispagestyle{plain}\global\@topnum\z@
  \@afterindenttrue \secdef\@chapter\@schapter}

So I'd try:

\def\chapter{%
  \if@openright\cleardoublepage\else\clearpage\fi
  \thispagestyle{myheadings}\global\@topnum\z@
  \@afterindenttrue \secdef\@chapter\@schapter}

in the preamble. This will take care of all the chapter pages at once.

If you only want to modify the bibliography page, then the easiest way 
is probably to modify the declaration of the thebibliography environment.


Richard



Re: word2lyx (Word to LyX Translator): Status Update

2012-03-02 Thread Richard Heck


Nice going!!

Richard


On 03/02/2012 12:33 PM, Rob Oakes wrote:

Dear Users and Developers,

I wanted to give everyone a quick status update on what I've been 
doing with the Word to LyX importer.


Over the past couple of weeks, I've been working on it full steam and 
it's now pretty functional. It supports:


 1. Translating Word paragraph and character styles to LyX paragraph
and character styles. In the case of character styles that aren't
defined, it will write entries for them into the local layout
(including basic LaTeX commands).
 2. Importing Word tables, including those with merged rows or
columns. It will also do its best with the table borders.
 3. Enumerated and itemized lists.
 4. Importing images from the Word document. (It skips over embedded
objects, such as charts from Excel.)
 5. The use of custom templates, which allows you to fine tune
importing your documents. I've created templates for article.cls
and book.cls. I'll also probably create one for memoir.cls as well.

Before release, I still need to implement support for footnotes and 
endnotes (which is pretty easy).


Which brings me to the main reason I'm writing. Before releasing the 
code, I'd really like to test it on a couple of in the wild 
documents. It does pretty well on the test documents I've thrown at it 
from my own library. But ... that's just me. I use Word in a very 
particular way.


If there's anyone who wouldn't mind, I'd really like to throw other 
test documents at it. If you would be willing to donate one, please 
let me know. This would allow me to check a wide variety of work and 
nail down a couple more issues before a public test. I will keep all 
documents confidential and delete after I've finished testing.


If everything goes well, I'll release the 0.1 version (which will 
still need quite some cleaning up) early next week.


Cheers,

Rob




Re: making a Box: using floatrow package in place of default float

2012-03-02 Thread Csikos Bela
Justin Wood upas...@gmail.com írta:
Hi all. Bit of a tortured question, but hoping someone can help me sort this 
out.The goal: I#39;m trying to add the ability to create box floats in my 
doctoral thesis, which are used to contain regular text displayed as an 
important aside. Attached is an example of what I#39;m after (box.pdf), based 
on what I have so far.


Functionality requirements:* a float, framed* numbered caption, derived from 
containing chapter (Box 2.1, 2.2, etc) which is included in the List of X in 
TOC* that caption should be at the top and inside the box itself

* text should be smaller font size
The setup:* LyX 2.0.2 on OS X 10.7.3 with TeXLive 2011.* documents use the 
bundled thesis template (KOMA-script), set with XeTeX for additional fonts 
(though the same function was provided by this mechanism when it was 
#39;just#39; LaTeX).

To date (~18 months) I#39;ve been using a custom boxedfloat.module that Jürgen 
Spitzmüller provided me with (attached), with the following LaTeX preamble to 
control the caption format:\@ifundefined{fs@boxed}{}% do nothing if not in use

{%  \usepackage{framed}

   \newcommand\floatc@simplerule[2]{\flushleft{\@fs@cfont #1 #2}}  
\renewcommand\fs@boxed{%

   \def\@fs@cfont{\bfseries}\let\@fs@capt\floatc@simplerule    
\def\@fs@pre{\begin{framed}}%

    \def\@fs@post{\end{framed}}%    \def\@fs@mid{\kern8pt}%

    \let\@fs@iftopcapt\iftrue}}%This works very well — again, producing the 
example — however I have a couple of limitations that the floatrow package 
seems to be able to address:

* specifying the font size once in preamble, whereas at the moment I#39;ve not 
been able to find any other way than ERT at the beginning and end of the float 
to add {\small ... }

* the ability to use normal paragraph breaks rather than manually entering 
\medskip* the ability to include footnotes within the Box, which to date has 
proved impossible but floatrow states that it can do soThe problem...:

I cannot get floatrow to work. I found this previous list trail from 2011, and 
followed the suggestion to implement floatrow.module (aside: looking at 
exported LaTeX, \usepackage{floatrow} is still inserted twice). Unfortunately 
nothing I#39;ve tried has succeeded, and my knowledge of LaTeX and/or LyX 
modules doesn#39;t appear up to the task... It seems that the module 
overriding of the auto-included float package does not occur before LyX 
automatically adds the configuration commands pertaining to the original float 
package; namely:

\floatstyle{boxed}\newfloat{boxfloat}{tbh}{lob}[chapter]

\providecommand{\boxfloatname}{Box}\floatname{boxfloat}{\protect\boxfloatname}

floatrow documentation sort of says this should work anyway, but it 
doesn#39;t. Any time I try to replace or override this in the floatrow.module 
or LaTeX preamble, compilation (XeTeX) throws an Undefined control sequence 
error, protesting that \floatstyle{boxed} was not \def#39;d, followed by a 
missing \begin{document}. My tentative guess is that the float style commands 
are effectively being given twice?

The request:I#39;ll be eternally grateful if someone can help me solve this! I 
don#39;t much care how it#39;s done, whether by resolving this particular 
issue with using floatrow over the default float or by some other package or 
LaTeX wizardry. Perhaps it could even be added to LyX proper; surely I#39;m 
not that unusual in seeking this format type?

Thanks as always!PS - slightly less than 6 months till immutable submission 
deadline...


~:justin.wood:~ ≤ 350ppm


Hello:

Here are two example lyx files. See the difference between the location of
the floats, which is reflected in the TOC.

This requires caption and floatrow packages but not the module you mentioned.
For details see the documentation of floatrow package.

Cheers,

bcsikos





textbox-float-a.lyx
Description: Binary data


textbox-float-b.lyx
Description: Binary data


Re: Page numbers for the bibliography in book(AMS) document class.

2012-03-02 Thread UD
Thanks SO MUCH, Richard-- your little tweak of the chapter* environment 
did the trick!

Yours,
Ehud Kaplan

On 03/02/2012 12:35 PM, Richard Heck wrote:

On 03/01/2012 03:56 AM, UD wrote:
On the first page of the chapter the command: 
\thispagestyle{myheadings} puts the page number in the upper right 
corner, but at the beginning of the bibliography that command does 
nothing


It probably comes too early or too late. If you put it before the 
bibliography command, it is on the previous page. If after it, it's 
probably on a later page.


I think you probably have to modify the chapter* environment to get 
this to work. This is what I find in amsbook.cls:


\def\chapter{%
  \if@openright\cleardoublepage\else\clearpage\fi
  \thispagestyle{plain}\global\@topnum\z@
  \@afterindenttrue \secdef\@chapter\@schapter}

So I'd try:

\def\chapter{%
  \if@openright\cleardoublepage\else\clearpage\fi
  \thispagestyle{myheadings}\global\@topnum\z@
  \@afterindenttrue \secdef\@chapter\@schapter}

in the preamble. This will take care of all the chapter pages at once.

If you only want to modify the bibliography page, then the easiest way 
is probably to modify the declaration of the thebibliography environment.


Richard



-


Re: word2lyx (Word to LyX Translator): Status Update

2012-03-02 Thread James Sutherland
Rob,
This sounds very nice!
Any ideas about whether you will be able to support cross references and
translate that into LyX/LaTeX labels/references?
James


On Fri, Mar 2, 2012 at 10:33 AM, Rob Oakes rob.oa...@oak-tree.us wrote:

  Dear Users and Developers,

 I wanted to give everyone a quick status update on what I've been doing
 with the Word to LyX importer.

 Over the past couple of weeks, I've been working on it full steam and it's
 now pretty functional. It supports:

1. Translating Word paragraph and character styles to LyX paragraph
and character styles. In the case of character styles that aren't defined,
it will write entries for them into the local layout (including basic LaTeX
commands).
2. Importing Word tables, including those with merged rows or columns.
It will also do its best with the table borders.
3. Enumerated and itemized lists.
4. Importing images from the Word document. (It skips over embedded
objects, such as charts from Excel.)
 5. The use of custom templates, which allows you to fine tune
importing your documents. I've created templates for article.cls and
book.cls. I'll also probably create one for memoir.cls as well.

 Before release, I still need to implement support for footnotes and
 endnotes (which is pretty easy).

 Which brings me to the main reason I'm writing. Before releasing the code,
 I'd really like to test it on a couple of in the wild documents. It does
 pretty well on the test documents I've thrown at it from my own library.
 But ... that's just me. I use Word in a very particular way.

 If there's anyone who wouldn't mind, I'd really like to throw other test
 documents at it. If you would be willing to donate one, please let me know.
 This would allow me to check a wide variety of work and nail down a couple
 more issues before a public test. I will keep all documents confidential
 and delete after I've finished testing.

 If everything goes well, I'll release the 0.1 version (which will still
 need quite some cleaning up) early next week.

 Cheers,

 Rob



Re: word2lyx (Word to LyX Translator): Status Update

2012-03-02 Thread Rob Oakes
Hi James,

On 3/2/2012 4:18 PM, James Sutherland wrote:
 This sounds very nice!
Thanks. I appreciate that.
 Any ideas about whether you will be able to support cross references
 and translate that into LyX/LaTeX labels/references?
 James

Short answer, yes. It's one of the three or four things I still have yet
to implement. It will be in the 0.1 release, though.

I'm also planning on translating embedded data (such as traveling
EndNote bibliographies or Zotero inserts) into BibTeX databases and
adding citation commands. That, however, will have to be a 0.2 feature
as it requires quite a bit more infrastructure to support.

Cheers,

Rob


Re: bibtex references not in compiled document...

2012-03-02 Thread Jonas Lindh
My only working solution to problems with bibtex has unfortunately been to
leave Lyx and clean up plain latex and compile...
I have basically tried everything to get this to work in lyx...
Jonas


http://www.ling.gu.se/~jonas


2012/2/27 Jonas Lindh 

> When I create a test file and use same bst or different (plainnat) I get
> the same errors from bibtex... I am still presuming I have to put the bsts
> yet some other place, but they are all over now... any input more on this?
> Best regards
> Jonas
>
>
> 2012/2/27 Jonas Lindh 
>
>> According to http://tug.org/mactex/faq/#qm04 I should put my bst file
>> under ~/Library/texmf/tex/ which I have already done (also tried several
>> other places, so I can't understand why it can't be read?
>> Jonas
>>
>>
>> 2012/2/24 Jonas Lindh 
>>
>>>
>>>
>>> On Friday, February 24, 2012, Richard Heck wrote:
>>>
 On 02/24/2012 08:46 AM, Jonas Lindh wrote:
 > Hi.
 > After updating etc I can't seem to get my references into the compiled
 > pdf using lyx 2.0.2 on macosx 10.7.3 and a bst that used to work great
 > from a professor at my dept. MacTeX 2011 is installed and updated
 > using Tex live...
 >
 > I am attaching the bst.+AKA-
 >
 > The output gives me (?) for refs and error for bibtex is :
 > This is 8-bit Big BibTeX version 0.99d
 > Implementation: +AKA-C for Unix
 > Release version: 3.71 (31 May 2005)
 >
 > Error: cannot open CS file: 88591lat.csf
 > The top-level auxiliary file: thesis+AF8-vers16.1.aux
 > I couldn't open style file
 >
 45+AF8-Users+AF8-jonas+AF8-Dropbox+AF8-thesis+AF8-version16+AF8-mybib.bst
 > ---line 1387 of file thesis+AF8-vers16.1.aux
 > +AKA-:
 >
 +AFw-bibstyle+AHs-45+AF8-Users+AF8-jonas+AF8-Dropbox+AF8-thesis+AF8-version16+AF8-mybib
 > +AKA-: +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA-
 > +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA-
 > +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKAAfQ-
 > I'm skipping whatever remains of this command
 > I couldn't open database file
 >
 44+AF8-Users+AF8-jonas+AF8-Dropbox+AF8-thesis+AF8-version16+AF8-thesis+AF8-vers16.bib
 > ---line 1388 of file thesis+AF8-vers16.1.aux
 > +AKA-:
 >
 +AFw-bibdata+AHs-44+AF8-Users+AF8-jonas+AF8-Dropbox+AF8-thesis+AF8-version16+AF8-thesis+AF8-vers16
 > +AKA-: +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA-
 > +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA-
 > +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AKA- +AH0-
 > I'm skipping whatever remains of this command
 > I found no database files---while reading file thesis+AF8-vers16.1.aux
 > I found no style file---while reading file thesis+AF8-vers16.1.aux
 >
 I'm not sure what you updated, but it looks as if LaTeX simply isn't
 finding the bst file.
>>>
>>>
>>> I ran tex check... Then checked log - bibtex
>>>
>>>
 It also looks as if LyX is copying it to your
 temporary directory, and THEN LaTeX isn't finding it. This may be due to
 some changes in how local files are handled in 2.0.2.
>>>
>>>
>>> Suspected that too and put it in the same folder as the lyx doc, but
>>> also in tex folders I could think of and find documentation of, but didn't
>>> help, maybe need to put in yet another path, somebody knows where it's
>>> looking on mac/unix?
>>>
>>>
 I'd suggest that
 you put the bst file in some location where LaTeX will find it without
 its having to be copied to the temporary directory. Where this is on
 Mac, I'm afraid I do not know.

 After you get this error, you might also look in the temporary
 directory. Is the referenced file there?
>>>
>>>
>>> Which tmp? Lyx?
>>> Thanks for answering so quickly...
>>> Jonas
>>>
>>>

 Richard


>>>
>>> --
>>> 
>>> http://www.ling.gu.se/~jonas
>>>
>>>
>>
>>
>> --
>> http://www.ling.gu.se/~jonas
>>
>>
>>
>
>
> --
> http://www.ling.gu.se/~jonas
>
>
>


-- 
http://www.ling.gu.se/~jonas


Conversion to HTML(MS Word)

2012-03-02 Thread Myriam Abramson

Hello, 

I have Lyx 1.6.5 with Ubuntu Lucid Lynx. I use the conversion to
HTML(MS Word) to convert to HTML and import into Word. The
conversion of the pictures is not very good for some reason. The
pictures are all blurry. How can I get a better conversion? 

TIA,

-- 
   myriam



Gtk-warning

2012-03-02 Thread Graham Smith
I have just updated Lyx by adding the new  the Ubuntu ppa to Ubuntu 11.10
and I am getting the following warning:

(lyx:2997): Gtk-WARNING **: Unable to locate theme engine in module_path:
"pixmap",

Is this something to be worried about, and if so can anyone help me fix it.

Many thanks,

Graham


Re: Gtk-warning

2012-03-02 Thread Richard Heck

On 03/02/2012 12:04 PM, Graham Smith wrote:
I have just updated Lyx by adding the new  the Ubuntu ppa to Ubuntu 
11.10 and I am getting the following warning:


(lyx:2997): Gtk-WARNING **: Unable to locate theme engine in 
module_path: "pixmap",


Is this something to be worried about, and if so can anyone help me 
fix it.



Probably not a LyX issue as such, since LyX does not use Gtk itself.

Richard



Re: need working example of copier to customize pdf output

2012-03-02 Thread Richard Heck

On 03/02/2012 02:02 AM, Paul Johnson wrote:

Oh, heck. I broke the regular export of the one-page at a time PDF
when I added my copier for the 4 sheets on one page.

Details below, please advise.


Sorry, I'm not sure I understand the issue yet.

If you export to "PDF (Beamer)", then this will always give you the 2x2 
thing, since the copier will always be invoked.


If you try to export to just "PDF (pdflatex)", is that when you have a 
problem?


Richard


On Mon, Feb 27, 2012 at 2:15 PM, Richard Heck  wrote:

On 02/27/2012 01:11 PM, Paul Johnson wrote:

When this finally seemed to work, I was so happy.  However, I see now
I've broken the pdf export.

The weird thing is that LyX asks me if I want to replace the old pdf
version, and I say yes, it still does not get copied.

Just now, I worked on lecture notes and exported to PDF(Beamer). I end up with
-rw-r--r--  1 337226 Mar  2 00:57 Regression-MultipleInputs-lecture-2-2x2.pdf
-rw-r--r--  1  56429 Mar  2 00:55 Regression-MultipleInputs-lecture-2.lyx
-rw-r--r--  1543209 Sep 29 12:17 Regression-MultipleInputs-lecture-2.pdf

I do get the 4 slides on 1 page output, the one with 2x2 on the end.
The lyx file is saved, but last semester's pdf is stuck there.

Here's what I'm using now.

In .lyx/preferences, I add:

\format "pdf5" "pdf" "PDF (Beamer)" "" "evince" "" "document,vector,menu=export"

\converter "pdflatex" "pdf5" "pdflatex $$i" "latex=pdflatex"

\copier pdf5 "pdfcopier.sh \"$$i\" \"$$o\""

And here's "pdfcopier.sh"

#!/bin/bash
INFILE="$1";
pdfnup --nup 2x2  --frame true --suffix '2x2' --batch "$INFILE";

Inside LyX, I can Export to PDF(Beamer) and it does export the file
with the 2x2 format, and the name is set correctly.
.
What do you think?





Re: Conversion to HTML(MS Word)

2012-03-02 Thread Richard Heck

On 03/02/2012 08:09 AM, Myriam Abramson wrote:

Hello,

I have Lyx 1.6.5 with Ubuntu Lucid Lynx. I use the conversion to
HTML(MS Word) to convert to HTML and import into Word. The
conversion of the pictures is not very good for some reason. The
pictures are all blurry. How can I get a better conversion?

This mostly depends upon what kinds of images you are trying to use.
I'm not sure what htlatex, which is what actually does the conversion,
uses to convert the images.

You might try just exporting via LyX's own LyXHTML export function.
I've had pretty good luck with that.

Richard



word2lyx (Word to LyX Translator): Status Update

2012-03-02 Thread Rob Oakes
Dear Users and Developers,

I wanted to give everyone a quick status update on what I've been doing
with the Word to LyX importer.

Over the past couple of weeks, I've been working on it full steam and
it's now pretty functional. It supports:

 1. Translating Word paragraph and character styles to LyX paragraph and
character styles. In the case of character styles that aren't
defined, it will write entries for them into the local layout
(including basic LaTeX commands).
 2. Importing Word tables, including those with merged rows or columns.
It will also do its best with the table borders.
 3. Enumerated and itemized lists.
 4. Importing images from the Word document. (It skips over embedded
objects, such as charts from Excel.)
 5. The use of custom templates, which allows you to fine tune importing
your documents. I've created templates for article.cls and book.cls.
I'll also probably create one for memoir.cls as well.

Before release, I still need to implement support for footnotes and
endnotes (which is pretty easy).

Which brings me to the main reason I'm writing. Before releasing the
code, I'd really like to test it on a couple of "in the wild" documents.
It does pretty well on the test documents I've thrown at it from my own
library. But ... that's just me. I use Word in a very particular way.

If there's anyone who wouldn't mind, I'd really like to throw other test
documents at it. If you would be willing to donate one, please let me
know. This would allow me to check a wide variety of work and nail down
a couple more issues before a public test. I will keep all documents
confidential and delete after I've finished testing.

If everything goes well, I'll release the 0.1 version (which will still
need quite some cleaning up) early next week.

Cheers,

Rob


Re: Page numbers for the bibliography in book(AMS) document class.

2012-03-02 Thread Richard Heck

On 03/01/2012 03:56 AM, UD wrote:
On the first page of the chapter the command: 
\thispagestyle{myheadings} puts the page number in the upper right 
corner, but at the beginning of the bibliography that command does 
nothing


It probably comes too early or too late. If you put it before the 
bibliography command, it is on the previous page. If after it, it's 
probably on a later page.


I think you probably have to modify the chapter* environment to get this 
to work. This is what I find in amsbook.cls:


\def\chapter{%
  \if@openright\cleardoublepage\else\clearpage\fi
  \thispagestyle{plain}\global\@topnum\z@
  \@afterindenttrue \secdef\@chapter\@schapter}

So I'd try:

\def\chapter{%
  \if@openright\cleardoublepage\else\clearpage\fi
  \thispagestyle{myheadings}\global\@topnum\z@
  \@afterindenttrue \secdef\@chapter\@schapter}

in the preamble. This will take care of all the chapter pages at once.

If you only want to modify the bibliography page, then the easiest way 
is probably to modify the declaration of the thebibliography environment.


Richard



Re: word2lyx (Word to LyX Translator): Status Update

2012-03-02 Thread Richard Heck


Nice going!!

Richard


On 03/02/2012 12:33 PM, Rob Oakes wrote:

Dear Users and Developers,

I wanted to give everyone a quick status update on what I've been 
doing with the Word to LyX importer.


Over the past couple of weeks, I've been working on it full steam and 
it's now pretty functional. It supports:


 1. Translating Word paragraph and character styles to LyX paragraph
and character styles. In the case of character styles that aren't
defined, it will write entries for them into the local layout
(including basic LaTeX commands).
 2. Importing Word tables, including those with merged rows or
columns. It will also do its best with the table borders.
 3. Enumerated and itemized lists.
 4. Importing images from the Word document. (It skips over embedded
objects, such as charts from Excel.)
 5. The use of custom templates, which allows you to fine tune
importing your documents. I've created templates for article.cls
and book.cls. I'll also probably create one for memoir.cls as well.

Before release, I still need to implement support for footnotes and 
endnotes (which is pretty easy).


Which brings me to the main reason I'm writing. Before releasing the 
code, I'd really like to test it on a couple of "in the wild" 
documents. It does pretty well on the test documents I've thrown at it 
from my own library. But ... that's just me. I use Word in a very 
particular way.


If there's anyone who wouldn't mind, I'd really like to throw other 
test documents at it. If you would be willing to donate one, please 
let me know. This would allow me to check a wide variety of work and 
nail down a couple more issues before a public test. I will keep all 
documents confidential and delete after I've finished testing.


If everything goes well, I'll release the 0.1 version (which will 
still need quite some cleaning up) early next week.


Cheers,

Rob




Re: making a Box: using floatrow package in place of default float

2012-03-02 Thread Csikos Bela
Justin Wood  írta:
>Hi all. Bit of a tortured question, but hoping someone can help me sort this 
>out.The goal: Im trying to add the ability to create box floats in my 
>doctoral thesis, which are used to contain regular text displayed as an 
>important aside. Attached is an example of what Im after (box.pdf), based 
>on what I have so far.>
>
>
Functionality requirements:* a float, framed* numbered caption, derived from 
containing chapter (Box 2.1, 2.2, etc) which is included in the List of X in 
TOC* that caption should be at the top and inside the box itself>
>
* text should be smaller font size>
The setup:* LyX 2.0.2 on OS X 10.7.3 with TeXLive 2011.* documents use the 
bundled thesis template (KOMA-script), set with XeTeX for additional fonts 
(though the same function was provided by this mechanism when it was 
just LaTeX).>
>
To date (~18 months) Ive been using a custom boxedfloat.module that Jürgen 
Spitzmüller provided me with (attached), with the following LaTeX preamble to 
control the caption format:\@ifundefined{fs@boxed}{}% do nothing if not in use>
>
{%  \usepackage{framed}>
>
   \newcommand\floatc@simplerule[2]{\flushleft{\@fs@cfont #1 #2}}  
\renewcommand\fs@boxed{%>
>
   \def\@fs@cfont{\bfseries}\let\@fs@capt\floatc@simplerule    
\def\@fs@pre{\begin{framed}}%>
>
    \def\@fs@post{\end{framed}}%    \def\@fs@mid{\kern8pt}%>
>
    \let\@fs@iftopcapt\iftrue}}%This works very well — again, producing the 
example — however I have a couple of limitations that the floatrow package 
seems to be able to address:>
>
* specifying the font size once in preamble, whereas at the moment Ive not 
been able to find any other way than ERT at the beginning and end of the float 
to add {\small ... }>
>
* the ability to use normal paragraph breaks rather than manually entering 
\medskip* the ability to include footnotes within the Box, which to date has 
proved impossible but floatrow states that it can do soThe problem...:>
>
I cannot get floatrow to work. I found this previous list trail from 2011, and 
followed the suggestion to implement floatrow.module (aside: looking at 
exported LaTeX, \usepackage{floatrow} is still inserted twice). Unfortunately 
nothing Ive tried has succeeded, and my knowledge of LaTeX and/or LyX 
modules doesnt appear up to the task... It seems that the module 
overriding of the auto-included float package does not occur before LyX 
automatically adds the configuration commands pertaining to the original float 
package; namely:>
>
\floatstyle{boxed}\newfloat{boxfloat}{tbh}{lob}[chapter]>
>
\providecommand{\boxfloatname}{Box}\floatname{boxfloat}{\protect\boxfloatname}>
>
floatrow documentation sort of says this should work anyway, but it 
doesnt. Any time I try to replace or override this in the floatrow.module 
or LaTeX preamble, compilation (XeTeX) throws an Undefined control sequence 
error, protesting that \floatstyle{boxed} was not \defd, followed by a 
missing \begin{document}. My tentative guess is that the float style commands 
are effectively being given twice?>
>
The request:Ill be eternally grateful if someone can help me solve this! I 
dont much care how its done, whether by resolving this particular 
issue with using floatrow over the default float or by some other package or 
LaTeX wizardry. Perhaps it could even be added to LyX proper; surely Im 
not that unusual in seeking this format type?>
>
Thanks as always!PS - slightly less than 6 months till immutable submission 
deadline...>
>
>
~:justin.wood:~ ≤ 350ppm>


Hello:

Here are two example lyx files. See the difference between the location of
the floats, which is reflected in the TOC.

This requires caption and floatrow packages but not the module you mentioned.
For details see the documentation of floatrow package.

Cheers,

bcsikos





textbox-float-a.lyx
Description: Binary data


textbox-float-b.lyx
Description: Binary data


Re: Page numbers for the bibliography in book(AMS) document class.

2012-03-02 Thread UD
Thanks SO MUCH, Richard-- your little tweak of the chapter* environment 
did the trick!

Yours,
Ehud Kaplan

On 03/02/2012 12:35 PM, Richard Heck wrote:

On 03/01/2012 03:56 AM, UD wrote:
On the first page of the chapter the command: 
\thispagestyle{myheadings} puts the page number in the upper right 
corner, but at the beginning of the bibliography that command does 
nothing


It probably comes too early or too late. If you put it before the 
bibliography command, it is on the previous page. If after it, it's 
probably on a later page.


I think you probably have to modify the chapter* environment to get 
this to work. This is what I find in amsbook.cls:


\def\chapter{%
  \if@openright\cleardoublepage\else\clearpage\fi
  \thispagestyle{plain}\global\@topnum\z@
  \@afterindenttrue \secdef\@chapter\@schapter}

So I'd try:

\def\chapter{%
  \if@openright\cleardoublepage\else\clearpage\fi
  \thispagestyle{myheadings}\global\@topnum\z@
  \@afterindenttrue \secdef\@chapter\@schapter}

in the preamble. This will take care of all the chapter pages at once.

If you only want to modify the bibliography page, then the easiest way 
is probably to modify the declaration of the thebibliography environment.


Richard



-


Re: word2lyx (Word to LyX Translator): Status Update

2012-03-02 Thread James Sutherland
Rob,
This sounds very nice!
Any ideas about whether you will be able to support cross references and
translate that into LyX/LaTeX labels/references?
James


On Fri, Mar 2, 2012 at 10:33 AM, Rob Oakes  wrote:

>  Dear Users and Developers,
>
> I wanted to give everyone a quick status update on what I've been doing
> with the Word to LyX importer.
>
> Over the past couple of weeks, I've been working on it full steam and it's
> now pretty functional. It supports:
>
>1. Translating Word paragraph and character styles to LyX paragraph
>and character styles. In the case of character styles that aren't defined,
>it will write entries for them into the local layout (including basic LaTeX
>commands).
>2. Importing Word tables, including those with merged rows or columns.
>It will also do its best with the table borders.
>3. Enumerated and itemized lists.
>4. Importing images from the Word document. (It skips over embedded
>objects, such as charts from Excel.)
> 5. The use of custom templates, which allows you to fine tune
>importing your documents. I've created templates for article.cls and
>book.cls. I'll also probably create one for memoir.cls as well.
>
> Before release, I still need to implement support for footnotes and
> endnotes (which is pretty easy).
>
> Which brings me to the main reason I'm writing. Before releasing the code,
> I'd really like to test it on a couple of "in the wild" documents. It does
> pretty well on the test documents I've thrown at it from my own library.
> But ... that's just me. I use Word in a very particular way.
>
> If there's anyone who wouldn't mind, I'd really like to throw other test
> documents at it. If you would be willing to donate one, please let me know.
> This would allow me to check a wide variety of work and nail down a couple
> more issues before a public test. I will keep all documents confidential
> and delete after I've finished testing.
>
> If everything goes well, I'll release the 0.1 version (which will still
> need quite some cleaning up) early next week.
>
> Cheers,
>
> Rob
>


Re: word2lyx (Word to LyX Translator): Status Update

2012-03-02 Thread Rob Oakes
Hi James,

On 3/2/2012 4:18 PM, James Sutherland wrote:
> This sounds very nice!
Thanks. I appreciate that.
> Any ideas about whether you will be able to support cross references
> and translate that into LyX/LaTeX labels/references?
> James

Short answer, yes. It's one of the three or four things I still have yet
to implement. It will be in the 0.1 release, though.

I'm also planning on translating embedded data (such as traveling
EndNote bibliographies or Zotero inserts) into BibTeX databases and
adding citation commands. That, however, will have to be a 0.2 feature
as it requires quite a bit more infrastructure to support.

Cheers,

Rob