Re: Unicode help

2010-11-01 Thread Stephan Witt
Am 01.11.2010 um 05:25 schrieb Daron Wilson:

 Hi all.
 
 I've recently started using LyX, and I've downloaded the 2.0 alpha 6 version 
 used with Mac OS X.  I have only one issue so far, and that concerns the use 
 of Unicode, in particular polytonic Greek (entered using the Polytonic Greek 
 keyboard layout supplied by Apple).
 
 I'm relatively new to Unicode, so I apologize upfront if my terminology or 
 understanding of how it works is a little off.
 
 Whenever I input a Greek character with any kind of combining accent, the 
 correct combination is entered, but LyX repeats the vowel, minus the accents. 
  For example, trying to input circumflex-upsilon always results in 
 circumflex-upsilon upsilon:
 
 ῦ always turns into ῦυ.
 
 The same thing happens for any letter combined with accent marks.  The 
 problem does not happen in any of the other document editing programs on my 
 Mac, so I'm assuming this is something within LyX itself.

You're right. More exactly it's within a library framework the LyX package 
contains - the Qt library, responsible for display I/O of LyX.
It's a known problem. You may find a discussion of that here: 
http://www.lyx.org/trac/ticket/6706

 I have wondered if this has something to do with some kind of 
 automatic-replacement feature in LyX, but I don't know enough to figure it 
 out.
 
 Thanks in advance for any solutions or pointers in the right direction.

The solution is to fix the problem in the Qt-libraries.
I think it will be fixed with the next LyX package (hopefully beta1).

Stephan

Page numbering x of y

2010-11-01 Thread Ankur Srivastava
Dear list members,
I've been using Lyx for a month and I cannot find one feature that I need
for my Extended Essay. How do I set the page numbering in the form page x of
y, where x is the current page and y is the total number of pages? I'm
really puzzled. I looked at the documentation and FAQ but I didn't find
anything there.
Thank you


Re: Page numbering x of y

2010-11-01 Thread Stephan Witt
Am 01.11.2010 um 11:47 schrieb Ankur Srivastava:

 Dear list members,
 I've been using Lyx for a month and I cannot find one feature that I need for 
 my Extended Essay. How do I set the page numbering in the form page x of y, 
 where x is the current page and y is the total number of pages? I'm really 
 puzzled. I looked at the documentation and FAQ but I didn't find anything 
 there.
 Thank you

I add a label at the very end of the document and use a reference to that label 
for y.
For x I add \thepage{} in ERT (the red box for TeX code).

Stephan



Re: Page numbering x of y

2010-11-01 Thread Ankur Srivastava
Thank you very much for your prompt reply. I'm still not sure about how to
do this. Could you please tell me step by step, I'm a new user and I don't
know much. I made a test document that is two pages long. I entered a label
2 in the end and I entered the code in the beginning but I don't know how to
do the cross reference and I feel that I'm doing something wrong.

On 1 November 2010 11:58, Stephan Witt st.w...@gmx.net wrote:

 Am 01.11.2010 um 11:47 schrieb Ankur Srivastava:

  Dear list members,
  I've been using Lyx for a month and I cannot find one feature that I need
 for my Extended Essay. How do I set the page numbering in the form page x of
 y, where x is the current page and y is the total number of pages? I'm
 really puzzled. I looked at the documentation and FAQ but I didn't find
 anything there.
  Thank you

 I add a label at the very end of the document and use a reference to that
 label for y.
 For x I add \thepage{} in ERT (the red box for TeX code).

 Stephan




Re: Page numbering x of y

2010-11-01 Thread Stephan Witt
Am 01.11.2010 um 12:16 schrieb Ankur Srivastava:

 Thank you very much for your prompt reply. I'm still not sure about how to do 
 this. Could you please tell me step by step, I'm a new user and I don't know 
 much.

You know how to insert a label? (Insert-menu - Label...)
You know how to insert a reference? (Insert-menu - Cross-Reference...)

To make the ERT box with the current page number you type \thepage{} (without 
quotes), mark this text and use Insert-menu - TeX Code.

An example is attached.

Stephan

 I made a test document that is two pages long. I entered a label 2 in the end 
 and I entered the code in the beginning but I don't know how to do the cross 
 reference and I feel that I'm doing something wrong.
 
 On 1 November 2010 11:58, Stephan Witt st.w...@gmx.net wrote:
 Am 01.11.2010 um 11:47 schrieb Ankur Srivastava:
 
  Dear list members,
  I've been using Lyx for a month and I cannot find one feature that I need 
  for my Extended Essay. How do I set the page numbering in the form page x 
  of y, where x is the current page and y is the total number of pages? I'm 
  really puzzled. I looked at the documentation and FAQ but I didn't find 
  anything there.
  Thank you
 
 I add a label at the very end of the document and use a reference to that 
 label for y.
 For x I add \thepage{} in ERT (the red box for TeX code).


test1.lyx
Description: Binary data


Re: Page numbering x of y

2010-11-01 Thread Steve Litt
On Monday 01 November 2010 06:58:48 Stephan Witt wrote:
 Am 01.11.2010 um 11:47 schrieb Ankur Srivastava:
  Dear list members,
  I've been using Lyx for a month and I cannot find one feature that I need
  for my Extended Essay. How do I set the page numbering in the form page x
  of y, where x is the current page and y is the total number of pages? I'm
  really puzzled. I looked at the documentation and FAQ but I didn't find
  anything there. Thank you
 
 I add a label at the very end of the document and use a reference to that
  label for y. For x I add \thepage{} in ERT (the red box for TeX code).

That's brilliant!

I was trying for a long time to figure how to do that before finally learning 
about the official way to do it -- by using the lastpage package.

Here's the URL for lastpage:

http://www.ctan.org/tex-archive/macros/latex/contrib/lastpage/

When I have the time I'm going to try your label/reference way. It's a *very* 
slick idea. 

Thanks

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



Re: Page numbering x of y

2010-11-01 Thread Ankur Srivastava
Thank you very much for your reply. It is now clear to me. Is there any way
that this numbering style can replace the page numbers at the bottom?

On 1 November 2010 12:47, Stephan Witt st.w...@gmx.net wrote:

 Am 01.11.2010 um 12:16 schrieb Ankur Srivastava:

  Thank you very much for your prompt reply. I'm still not sure about how
 to do this. Could you please tell me step by step, I'm a new user and I
 don't know much.

 You know how to insert a label? (Insert-menu - Label...)
 You know how to insert a reference? (Insert-menu - Cross-Reference...)

 To make the ERT box with the current page number you type \thepage{}
 (without quotes), mark this text and use Insert-menu - TeX Code.

 An example is attached.

 Stephan

  I made a test document that is two pages long. I entered a label 2 in the
 end and I entered the code in the beginning but I don't know how to do the
 cross reference and I feel that I'm doing something wrong.
 
  On 1 November 2010 11:58, Stephan Witt st.w...@gmx.net wrote:
  Am 01.11.2010 um 11:47 schrieb Ankur Srivastava:
 
   Dear list members,
   I've been using Lyx for a month and I cannot find one feature that I
 need for my Extended Essay. How do I set the page numbering in the form page
 x of y, where x is the current page and y is the total number of pages? I'm
 really puzzled. I looked at the documentation and FAQ but I didn't find
 anything there.
   Thank you
 
  I add a label at the very end of the document and use a reference to that
 label for y.
  For x I add \thepage{} in ERT (the red box for TeX code).



Re: Page numbering x of y

2010-11-01 Thread Waluyo Adi Siswanto
 Thank you very much for your reply. It is now clear to me. Is there any way
 that this numbering style can replace the page numbers at the bottom?


In this situation, usually i use fancyhdr and lastpage
Document-Settings-Page layout, heading style changed to fancy

then in the latex preamble (Document-Settings-Latex preamble)
\usepackage{lastpage}
\lhead{}
\chead{}
\rhead{}
\lfoot{}
\cfoot{{Page} \thepage { of} \pageref{LastPage}}
\rfoot{}
\renewcommand{\headrulewidth}{0pt}

It will print, Page x of y at every bottom of the page.

Regards
waluyo


Re: Automatically convert external files during PDF creation

2010-11-01 Thread Pavel Sanda
Jurriën Stutterheim wrote:
 Added a wiki page on how to set LyX up for use with literate Haskell files: 
 http://wiki.lyx.org/LyX/Lhs2LyX
 The links still need to be approved. What's the password for that? :)

sent privately 

 
 On 26 Oct, 2010, at 19:25 , Pavel Sanda wrote:
 
  Jurriën Stutterheim wrote:
  LyX devs: please consider adding this template for inclusion in new LyX 
  releases :)
  
  have you considered to put your solution into the lyx wiki?
  
  pavel


Re: Automatically convert external files during PDF creation

2010-11-01 Thread Jurriën Stutterheim
Great, thanks. Wiki page is all set up now.

On 1 Nov, 2010, at 17:14 , Pavel Sanda wrote:

 Jurriën Stutterheim wrote:
 Added a wiki page on how to set LyX up for use with literate Haskell files: 
 http://wiki.lyx.org/LyX/Lhs2LyX
 The links still need to be approved. What's the password for that? :)
 
 sent privately 
 
 
 On 26 Oct, 2010, at 19:25 , Pavel Sanda wrote:
 
 Jurriën Stutterheim wrote:
 LyX devs: please consider adding this template for inclusion in new LyX 
 releases :)
 
 have you considered to put your solution into the lyx wiki?
 
 pavel



Export Documents from Command Line

2010-11-01 Thread Tim Wescott
I want to be able to write Lyx documents, then convert them to pdf 
format from the command line -- this is for a moderately complex 
website, which I would like to generate using a makefile.


Is there a way to do this from the command line?  I assume I have to do 
this:


lyx insert magic here myfile.lyx

If someone knows the magic and is willing to share, I'd be grateful.

--
Tim Wescott
Wescott Design Services
Voice: 503-631-7815
Cell:  503-349-8432
http://www.wescottdesign.com




Re: Export Documents from Command Line

2010-11-01 Thread Jürgen Spitzmüller
Tim Wescott wrote:
 I want to be able to write Lyx documents, then convert them to pdf 
 format from the command line -- this is for a moderately complex 
 website, which I would like to generate using a makefile.
 
 Is there a way to do this from the command line?  I assume I have to do 
 this:
 
 lyx insert magic here myfile.lyx

juer...@linux-r4p5:~ lyx -help
Usage: lyx [ command line switches ] [ name.lyx ... ]
Command line switches (case sensitive):
[...]
-e [--export] fmt
  where fmt is the export format of choice.
  Look on Tools-Preferences-File formats-Format
  to get an idea which parameters should be passed.
-i [--import] fmt file.xxx
  where fmt is the import format of choice
  and file.xxx is the file to be imported.
-f [--force-overwrite] what
  where what is either `all', `main' or `none',
  specifying whether all files, main file only, or no files,
  respectively, are to be overwritten during a batch export.
  Anything else is equivalent to `all', but is not consumed.
-versionsummarize version and build info
Check the LyX man page for more details.

So,
lyx -e pdf2 myfile.lyx

exports to PDF via pdflatex.

HTH,
Jürgen


Re: Export Documents from Command Line

2010-11-01 Thread Richard Heck

On 11/01/2010 12:53 PM, Jürgen Spitzmüller wrote:

Tim Wescott wrote:
   

I want to be able to write Lyx documents, then convert them to pdf
format from the command line -- this is for a moderately complex
website, which I would like to generate using a makefile.

Is there a way to do this from the command line?  I assume I have to do
this:

lyxinsert magic here  myfile.lyx
 

juer...@linux-r4p5:~  lyx -help
Usage: lyx [ command line switches ] [ name.lyx ... ]
Command line switches (case sensitive):
[...]
 -e [--export] fmt
   where fmt is the export format of choice.
   Look on Tools-Preferences-File formats-Format
   to get an idea which parameters should be passed.
 -i [--import] fmt file.xxx
   where fmt is the import format of choice
   and file.xxx is the file to be imported.
 -f [--force-overwrite] what
   where what is either `all', `main' or `none',
   specifying whether all files, main file only, or no files,
   respectively, are to be overwritten during a batch export.
   Anything else is equivalent to `all', but is not consumed.
 -versionsummarize version and build info
Check the LyX man page for more details.

So,

lyx -e pdf2 myfile.lyx

exports to PDF via pdflatex.

   
And if you're wondering where pdf2 comes from, the answer is that this 
is the identifier LyX uses for that format. Look under 
ToolsPreferencesFile Formats and ...Converters for the various options.


rh



Float alignment

2010-11-01 Thread Emil Pavlov
How can I set the alignment to centered for all table and figure floats 
instead of changing it every time manually through paragraph settings?


Best regards,

Emil Pavlov


Problem with Citations

2010-11-01 Thread Ankur Srivastava
Dear Lyx users,
i'm having a problem with citations. For example, if I have a bibliography
entry as Babinsky, H (2003). How do wings work? [online] Department of
Engineering, University of Cambridge Available from:
http://iopscience.iop.org/0031-9120/38/6/001/pdf/pe3_6_001.pdf [Accessed 25
May 2010] and if I want to insert a citation, it gives me [1, Babinsky, H
(2003)] I've tried to follow instructions to change to natbib via searching
the web but I always get an error when I try to view as PDF. I would like it
to be without the numbering and the square brackets. This same citation
should read (Babinsky, H 2003). Is there a way to do this?
Thank you


pdfpages: remove blank page between two included pdfs?

2010-11-01 Thread Liviu Andronic
Dear all
I am using pdfpages to include pdf pages into my LyX document.
However, when I have two pdf files included this way, one immediately
after the other, the resulting pdf will include a blank page between
the two included pdfs. Is there a way to remove the blank page?

Regards
Liviu


-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: box alignment

2010-11-01 Thread [Ricardo Rodriguez] eBioTIC.

Hi!

Even though a bit late, I would like to regain access to LyX use by 
upgrading my installation to 2.0.0alpha6 and keeping track of old 
pending issues! Please, accept my excuses for being so late and see below.


Uwe Stöhr wrote:

Am 23.05.2010 00:23, schrieb [Ricardo Rodriguez] eBioTIC.:


Use a parbox as inner box. You can then edit the box text like any
other text.


Sorry, I don't understand this. What I read in the Embedded Objects
manual is:

Parboxes are very similar to minipages with the difference that they
cannot have footnotes. The main difference to minipages is that
minipages are in contrary to parboxes no real boxes but
LaTeX-environments.

Gosh! I am not able to understand this!


This is indeed horrible (and I'm the author of this). You can ignore 
the last sentence and I will have a look to make the difference more 
clear to new LyX users.


As far as I see, the paragraph keeps the same in the last alpha6 
release. Could I be of any help to clarify this text?





Please, why I can edit the text
in a parbox as any other text and the one in a Minipage, not?


You can in both cases edit the text like any other text. I only 
propose to use a parbox here because minipages make in some special 
cases problems (when other LaTeX-packages don't support them). But 
these cases are very rare, so it's your decision what inner box you 
are using.

Sorry that I bothered you with LaTeX internals.


Thanks! It is great for me that you give me as much information as 
possible! The only problem with that is that I will come back here with 
more and more questions! Well, in fact, I am not able to figure out a 
way of avoiding that... :-)



Now I am able to set the paragraph settings for each box in a per box
basis. Please, is it possible to set this features document wide? 
Thanks!


Not via LyX. You can either copy a box as you like it to all places in 
your LyX document.
Another solution is to defined a new command that sets up the box for 
you. Then you would have to insert this command as TeX-code instead of 
a box. I can define such a command for you, but you need to decide 
what box you want to have. If you made this decision, send me a LyX 
file with your box and I'll have a look.


regards Uwe



That would be great! Your help would be really welcome.

I don't want anything fancy. Simply, something like that:

http://ebiotic.net/bin/download/ICT/LyXBox/dummyTextMargins.pdf

Box has the same width as the text column and it is centred with it. 
Here the source file...


http://ebiotic.net/bin/download/ICT/LyXBox/dummyTextMargins.lyx

Thanks!

All the best,

Ricardo

--
Ricardo Rodríguez
CTO
eBioTIC.
Life Sciences, Data Modeling and Information Management Systems



eLyXer 1.0.4 released

2010-11-01 Thread Alex Fernandez
Hi all,

Version 1.0.4 of eLyXer, the LyX to HTML converter, has been released.
This incremental version solves a lot of reported bugs (particularly
in BibTeX and part numbering). The wish list has grown a bit but has
not yet been tackled; the stream of reported bugs has kept me busy!
Next version should contain at least a few wish list items.

Changes include:
---
* Solved bug #31342: detect appendices as they appear instead of
looking at the containing layout.
* Also reported in bug #31342: number parts and books using roman
numerals, as in “Part I” or “Book IV”.
* Solved bug #31351: do not number (or add to the TOC) any
document parts inside comments.
* Also in bug #31351: show the bibliography in regular size, not
smaller than the main text as before.
* Solved bug #31414: bootstrap creation of conf/config.py.
* Also in bug #31414: remodeled unit tests to try out Python 2.4
only if present, and to remove test files from previous runs.
* Show the “Abstract” header only for the first Abstract layout
(thanks, Yaron!).
* Solved bug #31345: ignore preamble and comments in BibTeX files.
Use string definitions (@string) in other entries.
* Support for \fbox, \boxed, \framebox and \fcolorbox.
---
Complete changelog:
 http://www.nongnu.org/elyxer/changelog.html

Download from nongnu.org mirrors:
 https://savannah.nongnu.org/files/?group=elyxer

If the new version has not hit your favorite mirror yet:
 http://download.savannah.gnu.org/releases-noredirect/elyxer/

Thanks for your time,

Alex Fernández.


Re: Problem with Citations

2010-11-01 Thread Waluyo Adi Siswanto
 Dear Lyx users,
 i'm having a problem with citations. For example, if I have a bibliography
 entry as Babinsky, H (2003). How do wings work? [online] Department of
 Engineering, University of Cambridge Available from:
 http://iopscience.iop.org/0031-9120/38/6/001/pdf/pe3_6_001.pdf [Accessed 25
 May 2010] and if I want to insert a citation, it gives me [1, Babinsky, H
 (2003)] I've tried to follow instructions to change to natbib via searching
 the web but I always get an error when I try to view as PDF. I would like it
 to be without the numbering and the square brackets. This same citation
 should read (Babinsky, H 2003). Is there a way to do this?
 Thank you


If you use Bibliography database as explained in User's Guide
(Help-User's Guide, Section 6.5),
you can use natbib(author-year), set from Document-Settings,
Bibliograpgy, Natbib (Author-year)

Regards
waluyo


Re: box alignment

2010-11-01 Thread Uwe Stöhr

Am 01.11.2010 23:50, schrieb [Ricardo Rodriguez] eBioTIC.:


As far as I see, the paragraph keeps the same in the last alpha6 release. Could 
I be of any help to
clarify this text?


I removed now the second sentence since 90% of the LyX users won't understand the difference between 
a LaTeX-command and LaTeX-environment.



Another solution is to defined a new command that sets up the box for you. Then 
you would have to
insert this command as TeX-code instead of a box. I can define such a command 
for you, but you
need to decide what box you want to have. If you made this decision, send me a 
LyX file with your
box and I'll have a look.


I don't want anything fancy. Simply, something like that:

http://ebiotic.net/bin/download/ICT/LyXBox/dummyTextMargins.pdf

Box has the same width as the text column and it is centred with it. Here the 
source file...

http://ebiotic.net/bin/download/ICT/LyXBox/dummyTextMargins.lyx


In your example the box has a width of only 95% not 100%. However, I defined a command for your box 
in the preamble of the attached document. You can insert then your custom box by inserting the 
TeX-code command \mybox as I have shown in the example.

The color of the box is set in the document settings.

regards Uwe


dummyTextMargins.lyx
Description: application/lyx


LyX and LuaTeX

2010-11-01 Thread Rob Oakes
Dear LyX Users, 

I am currently slogging my way through a book chapter on advanced methods in 
LyX/LaTeX and just had a quick question.  Does anyone know if there is 
documentation on how to use LyX with luaTeX?  

I know that it isn't officially supported, and things would probably break 
terribly, and that it might corrupt my mind and force me to sacrifice my first 
born.  But I'm kind of curious to experiment.  Has anyone spent any time using 
luaTeX from within LyX?  Care to comment on just how broken things were?

Cheers,

Rob

Re: Spellchecker and ú

2010-11-01 Thread Christopher Menzel

On 10/30/2010 02:53 AM, Stephan Witt wrote:

Am 29.10.2010 um 22:01 schrieb Christopher Menzel:
   

Greetings LyX users,

The aspell-based spellchecker in LyX does not appear to be happy checking a document containing a Spanish name that 
includes the character ú.  Specifically, the name seems throw the checker pretty seriously off balance; it begins to 
stop on perfectly ordinary words that occur in the document a word or two *after* a word that it apparently isn't 
recognizing internally -- for example, it asked if I wanted to replace the word that with 
bisection, where that occurred two words after bijection, which was clearly the 
word it had stopped on internally.  Is there a solution to this beyond avoiding non-English unicode characters?
 

Sorry, I've no solution but a question.
You're using LyX 1.6.7? Which platform?
   
Oh sorry, I'm an idiot for leaving out that info.  1.6.7 on a Mac, 
latest version of Snow Leopard.


Chris Menzel



Re: Unicode help

2010-11-01 Thread Stephan Witt
Am 01.11.2010 um 05:25 schrieb Daron Wilson:

 Hi all.
 
 I've recently started using LyX, and I've downloaded the 2.0 alpha 6 version 
 used with Mac OS X.  I have only one issue so far, and that concerns the use 
 of Unicode, in particular polytonic Greek (entered using the Polytonic Greek 
 keyboard layout supplied by Apple).
 
 I'm relatively new to Unicode, so I apologize upfront if my terminology or 
 understanding of how it works is a little off.
 
 Whenever I input a Greek character with any kind of combining accent, the 
 correct combination is entered, but LyX repeats the vowel, minus the accents. 
  For example, trying to input circumflex-upsilon always results in 
 circumflex-upsilon upsilon:
 
 ῦ always turns into ῦυ.
 
 The same thing happens for any letter combined with accent marks.  The 
 problem does not happen in any of the other document editing programs on my 
 Mac, so I'm assuming this is something within LyX itself.

You're right. More exactly it's within a library framework the LyX package 
contains - the Qt library, responsible for display I/O of LyX.
It's a known problem. You may find a discussion of that here: 
http://www.lyx.org/trac/ticket/6706

 I have wondered if this has something to do with some kind of 
 automatic-replacement feature in LyX, but I don't know enough to figure it 
 out.
 
 Thanks in advance for any solutions or pointers in the right direction.

The solution is to fix the problem in the Qt-libraries.
I think it will be fixed with the next LyX package (hopefully beta1).

Stephan

Page numbering x of y

2010-11-01 Thread Ankur Srivastava
Dear list members,
I've been using Lyx for a month and I cannot find one feature that I need
for my Extended Essay. How do I set the page numbering in the form page x of
y, where x is the current page and y is the total number of pages? I'm
really puzzled. I looked at the documentation and FAQ but I didn't find
anything there.
Thank you


Re: Page numbering x of y

2010-11-01 Thread Stephan Witt
Am 01.11.2010 um 11:47 schrieb Ankur Srivastava:

 Dear list members,
 I've been using Lyx for a month and I cannot find one feature that I need for 
 my Extended Essay. How do I set the page numbering in the form page x of y, 
 where x is the current page and y is the total number of pages? I'm really 
 puzzled. I looked at the documentation and FAQ but I didn't find anything 
 there.
 Thank you

I add a label at the very end of the document and use a reference to that label 
for y.
For x I add \thepage{} in ERT (the red box for TeX code).

Stephan



Re: Page numbering x of y

2010-11-01 Thread Ankur Srivastava
Thank you very much for your prompt reply. I'm still not sure about how to
do this. Could you please tell me step by step, I'm a new user and I don't
know much. I made a test document that is two pages long. I entered a label
2 in the end and I entered the code in the beginning but I don't know how to
do the cross reference and I feel that I'm doing something wrong.

On 1 November 2010 11:58, Stephan Witt st.w...@gmx.net wrote:

 Am 01.11.2010 um 11:47 schrieb Ankur Srivastava:

  Dear list members,
  I've been using Lyx for a month and I cannot find one feature that I need
 for my Extended Essay. How do I set the page numbering in the form page x of
 y, where x is the current page and y is the total number of pages? I'm
 really puzzled. I looked at the documentation and FAQ but I didn't find
 anything there.
  Thank you

 I add a label at the very end of the document and use a reference to that
 label for y.
 For x I add \thepage{} in ERT (the red box for TeX code).

 Stephan




Re: Page numbering x of y

2010-11-01 Thread Stephan Witt
Am 01.11.2010 um 12:16 schrieb Ankur Srivastava:

 Thank you very much for your prompt reply. I'm still not sure about how to do 
 this. Could you please tell me step by step, I'm a new user and I don't know 
 much.

You know how to insert a label? (Insert-menu - Label...)
You know how to insert a reference? (Insert-menu - Cross-Reference...)

To make the ERT box with the current page number you type \thepage{} (without 
quotes), mark this text and use Insert-menu - TeX Code.

An example is attached.

Stephan

 I made a test document that is two pages long. I entered a label 2 in the end 
 and I entered the code in the beginning but I don't know how to do the cross 
 reference and I feel that I'm doing something wrong.
 
 On 1 November 2010 11:58, Stephan Witt st.w...@gmx.net wrote:
 Am 01.11.2010 um 11:47 schrieb Ankur Srivastava:
 
  Dear list members,
  I've been using Lyx for a month and I cannot find one feature that I need 
  for my Extended Essay. How do I set the page numbering in the form page x 
  of y, where x is the current page and y is the total number of pages? I'm 
  really puzzled. I looked at the documentation and FAQ but I didn't find 
  anything there.
  Thank you
 
 I add a label at the very end of the document and use a reference to that 
 label for y.
 For x I add \thepage{} in ERT (the red box for TeX code).


test1.lyx
Description: Binary data


Re: Page numbering x of y

2010-11-01 Thread Steve Litt
On Monday 01 November 2010 06:58:48 Stephan Witt wrote:
 Am 01.11.2010 um 11:47 schrieb Ankur Srivastava:
  Dear list members,
  I've been using Lyx for a month and I cannot find one feature that I need
  for my Extended Essay. How do I set the page numbering in the form page x
  of y, where x is the current page and y is the total number of pages? I'm
  really puzzled. I looked at the documentation and FAQ but I didn't find
  anything there. Thank you
 
 I add a label at the very end of the document and use a reference to that
  label for y. For x I add \thepage{} in ERT (the red box for TeX code).

That's brilliant!

I was trying for a long time to figure how to do that before finally learning 
about the official way to do it -- by using the lastpage package.

Here's the URL for lastpage:

http://www.ctan.org/tex-archive/macros/latex/contrib/lastpage/

When I have the time I'm going to try your label/reference way. It's a *very* 
slick idea. 

Thanks

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



Re: Page numbering x of y

2010-11-01 Thread Ankur Srivastava
Thank you very much for your reply. It is now clear to me. Is there any way
that this numbering style can replace the page numbers at the bottom?

On 1 November 2010 12:47, Stephan Witt st.w...@gmx.net wrote:

 Am 01.11.2010 um 12:16 schrieb Ankur Srivastava:

  Thank you very much for your prompt reply. I'm still not sure about how
 to do this. Could you please tell me step by step, I'm a new user and I
 don't know much.

 You know how to insert a label? (Insert-menu - Label...)
 You know how to insert a reference? (Insert-menu - Cross-Reference...)

 To make the ERT box with the current page number you type \thepage{}
 (without quotes), mark this text and use Insert-menu - TeX Code.

 An example is attached.

 Stephan

  I made a test document that is two pages long. I entered a label 2 in the
 end and I entered the code in the beginning but I don't know how to do the
 cross reference and I feel that I'm doing something wrong.
 
  On 1 November 2010 11:58, Stephan Witt st.w...@gmx.net wrote:
  Am 01.11.2010 um 11:47 schrieb Ankur Srivastava:
 
   Dear list members,
   I've been using Lyx for a month and I cannot find one feature that I
 need for my Extended Essay. How do I set the page numbering in the form page
 x of y, where x is the current page and y is the total number of pages? I'm
 really puzzled. I looked at the documentation and FAQ but I didn't find
 anything there.
   Thank you
 
  I add a label at the very end of the document and use a reference to that
 label for y.
  For x I add \thepage{} in ERT (the red box for TeX code).



Re: Page numbering x of y

2010-11-01 Thread Waluyo Adi Siswanto
 Thank you very much for your reply. It is now clear to me. Is there any way
 that this numbering style can replace the page numbers at the bottom?


In this situation, usually i use fancyhdr and lastpage
Document-Settings-Page layout, heading style changed to fancy

then in the latex preamble (Document-Settings-Latex preamble)
\usepackage{lastpage}
\lhead{}
\chead{}
\rhead{}
\lfoot{}
\cfoot{{Page} \thepage { of} \pageref{LastPage}}
\rfoot{}
\renewcommand{\headrulewidth}{0pt}

It will print, Page x of y at every bottom of the page.

Regards
waluyo


Re: Automatically convert external files during PDF creation

2010-11-01 Thread Pavel Sanda
Jurriën Stutterheim wrote:
 Added a wiki page on how to set LyX up for use with literate Haskell files: 
 http://wiki.lyx.org/LyX/Lhs2LyX
 The links still need to be approved. What's the password for that? :)

sent privately 

 
 On 26 Oct, 2010, at 19:25 , Pavel Sanda wrote:
 
  Jurriën Stutterheim wrote:
  LyX devs: please consider adding this template for inclusion in new LyX 
  releases :)
  
  have you considered to put your solution into the lyx wiki?
  
  pavel


Re: Automatically convert external files during PDF creation

2010-11-01 Thread Jurriën Stutterheim
Great, thanks. Wiki page is all set up now.

On 1 Nov, 2010, at 17:14 , Pavel Sanda wrote:

 Jurriën Stutterheim wrote:
 Added a wiki page on how to set LyX up for use with literate Haskell files: 
 http://wiki.lyx.org/LyX/Lhs2LyX
 The links still need to be approved. What's the password for that? :)
 
 sent privately 
 
 
 On 26 Oct, 2010, at 19:25 , Pavel Sanda wrote:
 
 Jurriën Stutterheim wrote:
 LyX devs: please consider adding this template for inclusion in new LyX 
 releases :)
 
 have you considered to put your solution into the lyx wiki?
 
 pavel



Export Documents from Command Line

2010-11-01 Thread Tim Wescott
I want to be able to write Lyx documents, then convert them to pdf 
format from the command line -- this is for a moderately complex 
website, which I would like to generate using a makefile.


Is there a way to do this from the command line?  I assume I have to do 
this:


lyx insert magic here myfile.lyx

If someone knows the magic and is willing to share, I'd be grateful.

--
Tim Wescott
Wescott Design Services
Voice: 503-631-7815
Cell:  503-349-8432
http://www.wescottdesign.com




Re: Export Documents from Command Line

2010-11-01 Thread Jürgen Spitzmüller
Tim Wescott wrote:
 I want to be able to write Lyx documents, then convert them to pdf 
 format from the command line -- this is for a moderately complex 
 website, which I would like to generate using a makefile.
 
 Is there a way to do this from the command line?  I assume I have to do 
 this:
 
 lyx insert magic here myfile.lyx

juer...@linux-r4p5:~ lyx -help
Usage: lyx [ command line switches ] [ name.lyx ... ]
Command line switches (case sensitive):
[...]
-e [--export] fmt
  where fmt is the export format of choice.
  Look on Tools-Preferences-File formats-Format
  to get an idea which parameters should be passed.
-i [--import] fmt file.xxx
  where fmt is the import format of choice
  and file.xxx is the file to be imported.
-f [--force-overwrite] what
  where what is either `all', `main' or `none',
  specifying whether all files, main file only, or no files,
  respectively, are to be overwritten during a batch export.
  Anything else is equivalent to `all', but is not consumed.
-versionsummarize version and build info
Check the LyX man page for more details.

So,
lyx -e pdf2 myfile.lyx

exports to PDF via pdflatex.

HTH,
Jürgen


Re: Export Documents from Command Line

2010-11-01 Thread Richard Heck

On 11/01/2010 12:53 PM, Jürgen Spitzmüller wrote:

Tim Wescott wrote:
   

I want to be able to write Lyx documents, then convert them to pdf
format from the command line -- this is for a moderately complex
website, which I would like to generate using a makefile.

Is there a way to do this from the command line?  I assume I have to do
this:

lyxinsert magic here  myfile.lyx
 

juer...@linux-r4p5:~  lyx -help
Usage: lyx [ command line switches ] [ name.lyx ... ]
Command line switches (case sensitive):
[...]
 -e [--export] fmt
   where fmt is the export format of choice.
   Look on Tools-Preferences-File formats-Format
   to get an idea which parameters should be passed.
 -i [--import] fmt file.xxx
   where fmt is the import format of choice
   and file.xxx is the file to be imported.
 -f [--force-overwrite] what
   where what is either `all', `main' or `none',
   specifying whether all files, main file only, or no files,
   respectively, are to be overwritten during a batch export.
   Anything else is equivalent to `all', but is not consumed.
 -versionsummarize version and build info
Check the LyX man page for more details.

So,

lyx -e pdf2 myfile.lyx

exports to PDF via pdflatex.

   
And if you're wondering where pdf2 comes from, the answer is that this 
is the identifier LyX uses for that format. Look under 
ToolsPreferencesFile Formats and ...Converters for the various options.


rh



Float alignment

2010-11-01 Thread Emil Pavlov
How can I set the alignment to centered for all table and figure floats 
instead of changing it every time manually through paragraph settings?


Best regards,

Emil Pavlov


Problem with Citations

2010-11-01 Thread Ankur Srivastava
Dear Lyx users,
i'm having a problem with citations. For example, if I have a bibliography
entry as Babinsky, H (2003). How do wings work? [online] Department of
Engineering, University of Cambridge Available from:
http://iopscience.iop.org/0031-9120/38/6/001/pdf/pe3_6_001.pdf [Accessed 25
May 2010] and if I want to insert a citation, it gives me [1, Babinsky, H
(2003)] I've tried to follow instructions to change to natbib via searching
the web but I always get an error when I try to view as PDF. I would like it
to be without the numbering and the square brackets. This same citation
should read (Babinsky, H 2003). Is there a way to do this?
Thank you


pdfpages: remove blank page between two included pdfs?

2010-11-01 Thread Liviu Andronic
Dear all
I am using pdfpages to include pdf pages into my LyX document.
However, when I have two pdf files included this way, one immediately
after the other, the resulting pdf will include a blank page between
the two included pdfs. Is there a way to remove the blank page?

Regards
Liviu


-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: box alignment

2010-11-01 Thread [Ricardo Rodriguez] eBioTIC.

Hi!

Even though a bit late, I would like to regain access to LyX use by 
upgrading my installation to 2.0.0alpha6 and keeping track of old 
pending issues! Please, accept my excuses for being so late and see below.


Uwe Stöhr wrote:

Am 23.05.2010 00:23, schrieb [Ricardo Rodriguez] eBioTIC.:


Use a parbox as inner box. You can then edit the box text like any
other text.


Sorry, I don't understand this. What I read in the Embedded Objects
manual is:

Parboxes are very similar to minipages with the difference that they
cannot have footnotes. The main difference to minipages is that
minipages are in contrary to parboxes no real boxes but
LaTeX-environments.

Gosh! I am not able to understand this!


This is indeed horrible (and I'm the author of this). You can ignore 
the last sentence and I will have a look to make the difference more 
clear to new LyX users.


As far as I see, the paragraph keeps the same in the last alpha6 
release. Could I be of any help to clarify this text?





Please, why I can edit the text
in a parbox as any other text and the one in a Minipage, not?


You can in both cases edit the text like any other text. I only 
propose to use a parbox here because minipages make in some special 
cases problems (when other LaTeX-packages don't support them). But 
these cases are very rare, so it's your decision what inner box you 
are using.

Sorry that I bothered you with LaTeX internals.


Thanks! It is great for me that you give me as much information as 
possible! The only problem with that is that I will come back here with 
more and more questions! Well, in fact, I am not able to figure out a 
way of avoiding that... :-)



Now I am able to set the paragraph settings for each box in a per box
basis. Please, is it possible to set this features document wide? 
Thanks!


Not via LyX. You can either copy a box as you like it to all places in 
your LyX document.
Another solution is to defined a new command that sets up the box for 
you. Then you would have to insert this command as TeX-code instead of 
a box. I can define such a command for you, but you need to decide 
what box you want to have. If you made this decision, send me a LyX 
file with your box and I'll have a look.


regards Uwe



That would be great! Your help would be really welcome.

I don't want anything fancy. Simply, something like that:

http://ebiotic.net/bin/download/ICT/LyXBox/dummyTextMargins.pdf

Box has the same width as the text column and it is centred with it. 
Here the source file...


http://ebiotic.net/bin/download/ICT/LyXBox/dummyTextMargins.lyx

Thanks!

All the best,

Ricardo

--
Ricardo Rodríguez
CTO
eBioTIC.
Life Sciences, Data Modeling and Information Management Systems



eLyXer 1.0.4 released

2010-11-01 Thread Alex Fernandez
Hi all,

Version 1.0.4 of eLyXer, the LyX to HTML converter, has been released.
This incremental version solves a lot of reported bugs (particularly
in BibTeX and part numbering). The wish list has grown a bit but has
not yet been tackled; the stream of reported bugs has kept me busy!
Next version should contain at least a few wish list items.

Changes include:
---
* Solved bug #31342: detect appendices as they appear instead of
looking at the containing layout.
* Also reported in bug #31342: number parts and books using roman
numerals, as in “Part I” or “Book IV”.
* Solved bug #31351: do not number (or add to the TOC) any
document parts inside comments.
* Also in bug #31351: show the bibliography in regular size, not
smaller than the main text as before.
* Solved bug #31414: bootstrap creation of conf/config.py.
* Also in bug #31414: remodeled unit tests to try out Python 2.4
only if present, and to remove test files from previous runs.
* Show the “Abstract” header only for the first Abstract layout
(thanks, Yaron!).
* Solved bug #31345: ignore preamble and comments in BibTeX files.
Use string definitions (@string) in other entries.
* Support for \fbox, \boxed, \framebox and \fcolorbox.
---
Complete changelog:
 http://www.nongnu.org/elyxer/changelog.html

Download from nongnu.org mirrors:
 https://savannah.nongnu.org/files/?group=elyxer

If the new version has not hit your favorite mirror yet:
 http://download.savannah.gnu.org/releases-noredirect/elyxer/

Thanks for your time,

Alex Fernández.


Re: Problem with Citations

2010-11-01 Thread Waluyo Adi Siswanto
 Dear Lyx users,
 i'm having a problem with citations. For example, if I have a bibliography
 entry as Babinsky, H (2003). How do wings work? [online] Department of
 Engineering, University of Cambridge Available from:
 http://iopscience.iop.org/0031-9120/38/6/001/pdf/pe3_6_001.pdf [Accessed 25
 May 2010] and if I want to insert a citation, it gives me [1, Babinsky, H
 (2003)] I've tried to follow instructions to change to natbib via searching
 the web but I always get an error when I try to view as PDF. I would like it
 to be without the numbering and the square brackets. This same citation
 should read (Babinsky, H 2003). Is there a way to do this?
 Thank you


If you use Bibliography database as explained in User's Guide
(Help-User's Guide, Section 6.5),
you can use natbib(author-year), set from Document-Settings,
Bibliograpgy, Natbib (Author-year)

Regards
waluyo


Re: box alignment

2010-11-01 Thread Uwe Stöhr

Am 01.11.2010 23:50, schrieb [Ricardo Rodriguez] eBioTIC.:


As far as I see, the paragraph keeps the same in the last alpha6 release. Could 
I be of any help to
clarify this text?


I removed now the second sentence since 90% of the LyX users won't understand the difference between 
a LaTeX-command and LaTeX-environment.



Another solution is to defined a new command that sets up the box for you. Then 
you would have to
insert this command as TeX-code instead of a box. I can define such a command 
for you, but you
need to decide what box you want to have. If you made this decision, send me a 
LyX file with your
box and I'll have a look.


I don't want anything fancy. Simply, something like that:

http://ebiotic.net/bin/download/ICT/LyXBox/dummyTextMargins.pdf

Box has the same width as the text column and it is centred with it. Here the 
source file...

http://ebiotic.net/bin/download/ICT/LyXBox/dummyTextMargins.lyx


In your example the box has a width of only 95% not 100%. However, I defined a command for your box 
in the preamble of the attached document. You can insert then your custom box by inserting the 
TeX-code command \mybox as I have shown in the example.

The color of the box is set in the document settings.

regards Uwe


dummyTextMargins.lyx
Description: application/lyx


LyX and LuaTeX

2010-11-01 Thread Rob Oakes
Dear LyX Users, 

I am currently slogging my way through a book chapter on advanced methods in 
LyX/LaTeX and just had a quick question.  Does anyone know if there is 
documentation on how to use LyX with luaTeX?  

I know that it isn't officially supported, and things would probably break 
terribly, and that it might corrupt my mind and force me to sacrifice my first 
born.  But I'm kind of curious to experiment.  Has anyone spent any time using 
luaTeX from within LyX?  Care to comment on just how broken things were?

Cheers,

Rob

Re: Spellchecker and ú

2010-11-01 Thread Christopher Menzel

On 10/30/2010 02:53 AM, Stephan Witt wrote:

Am 29.10.2010 um 22:01 schrieb Christopher Menzel:
   

Greetings LyX users,

The aspell-based spellchecker in LyX does not appear to be happy checking a document containing a Spanish name that 
includes the character ú.  Specifically, the name seems throw the checker pretty seriously off balance; it begins to 
stop on perfectly ordinary words that occur in the document a word or two *after* a word that it apparently isn't 
recognizing internally -- for example, it asked if I wanted to replace the word that with 
bisection, where that occurred two words after bijection, which was clearly the 
word it had stopped on internally.  Is there a solution to this beyond avoiding non-English unicode characters?
 

Sorry, I've no solution but a question.
You're using LyX 1.6.7? Which platform?
   
Oh sorry, I'm an idiot for leaving out that info.  1.6.7 on a Mac, 
latest version of Snow Leopard.


Chris Menzel



Re: Unicode help

2010-11-01 Thread Stephan Witt
Am 01.11.2010 um 05:25 schrieb Daron Wilson:

> Hi all.
> 
> I've recently started using LyX, and I've downloaded the 2.0 alpha 6 version 
> used with Mac OS X.  I have only one issue so far, and that concerns the use 
> of Unicode, in particular polytonic Greek (entered using the Polytonic Greek 
> keyboard layout supplied by Apple).
> 
> I'm relatively new to Unicode, so I apologize upfront if my terminology or 
> understanding of how it works is a little off.
> 
> Whenever I input a Greek character with any kind of combining accent, the 
> correct combination is entered, but LyX repeats the vowel, minus the accents. 
>  For example, trying to input circumflex-upsilon always results in 
> circumflex-upsilon upsilon:
> 
> ῦ always turns into ῦυ.
> 
> The same thing happens for any letter combined with accent marks.  The 
> problem does not happen in any of the other document editing programs on my 
> Mac, so I'm assuming this is something within LyX itself.

You're right. More exactly it's within a library framework the LyX package 
contains - the Qt library, responsible for display I/O of LyX.
It's a known problem. You may find a discussion of that here: 
http://www.lyx.org/trac/ticket/6706

> I have wondered if this has something to do with some kind of 
> automatic-replacement feature in LyX, but I don't know enough to figure it 
> out.
> 
> Thanks in advance for any solutions or pointers in the right direction.

The solution is to fix the problem in the Qt-libraries.
I think it will be fixed with the next LyX package (hopefully beta1).

Stephan

Page numbering x of y

2010-11-01 Thread Ankur Srivastava
Dear list members,
I've been using Lyx for a month and I cannot find one feature that I need
for my Extended Essay. How do I set the page numbering in the form page x of
y, where x is the current page and y is the total number of pages? I'm
really puzzled. I looked at the documentation and FAQ but I didn't find
anything there.
Thank you


Re: Page numbering x of y

2010-11-01 Thread Stephan Witt
Am 01.11.2010 um 11:47 schrieb Ankur Srivastava:

> Dear list members,
> I've been using Lyx for a month and I cannot find one feature that I need for 
> my Extended Essay. How do I set the page numbering in the form page x of y, 
> where x is the current page and y is the total number of pages? I'm really 
> puzzled. I looked at the documentation and FAQ but I didn't find anything 
> there.
> Thank you

I add a label at the very end of the document and use a reference to that label 
for y.
For x I add \thepage{} in ERT (the red box for TeX code).

Stephan



Re: Page numbering x of y

2010-11-01 Thread Ankur Srivastava
Thank you very much for your prompt reply. I'm still not sure about how to
do this. Could you please tell me step by step, I'm a new user and I don't
know much. I made a test document that is two pages long. I entered a label
2 in the end and I entered the code in the beginning but I don't know how to
do the cross reference and I feel that I'm doing something wrong.

On 1 November 2010 11:58, Stephan Witt  wrote:

> Am 01.11.2010 um 11:47 schrieb Ankur Srivastava:
>
> > Dear list members,
> > I've been using Lyx for a month and I cannot find one feature that I need
> for my Extended Essay. How do I set the page numbering in the form page x of
> y, where x is the current page and y is the total number of pages? I'm
> really puzzled. I looked at the documentation and FAQ but I didn't find
> anything there.
> > Thank you
>
> I add a label at the very end of the document and use a reference to that
> label for y.
> For x I add \thepage{} in ERT (the red box for TeX code).
>
> Stephan
>
>


Re: Page numbering x of y

2010-11-01 Thread Stephan Witt
Am 01.11.2010 um 12:16 schrieb Ankur Srivastava:

> Thank you very much for your prompt reply. I'm still not sure about how to do 
> this. Could you please tell me step by step, I'm a new user and I don't know 
> much.

You know how to insert a label? (Insert-menu -> Label...)
You know how to insert a reference? (Insert-menu -> Cross-Reference...)

To make the ERT box with the current page number you type "\thepage{}" (without 
quotes), mark this text and use Insert-menu -> TeX Code.

An example is attached.

Stephan

> I made a test document that is two pages long. I entered a label 2 in the end 
> and I entered the code in the beginning but I don't know how to do the cross 
> reference and I feel that I'm doing something wrong.
> 
> On 1 November 2010 11:58, Stephan Witt  wrote:
> Am 01.11.2010 um 11:47 schrieb Ankur Srivastava:
> 
> > Dear list members,
> > I've been using Lyx for a month and I cannot find one feature that I need 
> > for my Extended Essay. How do I set the page numbering in the form page x 
> > of y, where x is the current page and y is the total number of pages? I'm 
> > really puzzled. I looked at the documentation and FAQ but I didn't find 
> > anything there.
> > Thank you
> 
> I add a label at the very end of the document and use a reference to that 
> label for y.
> For x I add \thepage{} in ERT (the red box for TeX code).


test1.lyx
Description: Binary data


Re: Page numbering x of y

2010-11-01 Thread Steve Litt
On Monday 01 November 2010 06:58:48 Stephan Witt wrote:
> Am 01.11.2010 um 11:47 schrieb Ankur Srivastava:
> > Dear list members,
> > I've been using Lyx for a month and I cannot find one feature that I need
> > for my Extended Essay. How do I set the page numbering in the form page x
> > of y, where x is the current page and y is the total number of pages? I'm
> > really puzzled. I looked at the documentation and FAQ but I didn't find
> > anything there. Thank you
> 
> I add a label at the very end of the document and use a reference to that
>  label for y. For x I add \thepage{} in ERT (the red box for TeX code).

That's brilliant!

I was trying for a long time to figure how to do that before finally learning 
about the "official" way to do it -- by using the lastpage package.

Here's the URL for lastpage:

http://www.ctan.org/tex-archive/macros/latex/contrib/lastpage/

When I have the time I'm going to try your label/reference way. It's a *very* 
slick idea. 

Thanks

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



Re: Page numbering x of y

2010-11-01 Thread Ankur Srivastava
Thank you very much for your reply. It is now clear to me. Is there any way
that this numbering style can replace the page numbers at the bottom?

On 1 November 2010 12:47, Stephan Witt  wrote:

> Am 01.11.2010 um 12:16 schrieb Ankur Srivastava:
>
> > Thank you very much for your prompt reply. I'm still not sure about how
> to do this. Could you please tell me step by step, I'm a new user and I
> don't know much.
>
> You know how to insert a label? (Insert-menu -> Label...)
> You know how to insert a reference? (Insert-menu -> Cross-Reference...)
>
> To make the ERT box with the current page number you type "\thepage{}"
> (without quotes), mark this text and use Insert-menu -> TeX Code.
>
> An example is attached.
>
> Stephan
>
> > I made a test document that is two pages long. I entered a label 2 in the
> end and I entered the code in the beginning but I don't know how to do the
> cross reference and I feel that I'm doing something wrong.
> >
> > On 1 November 2010 11:58, Stephan Witt  wrote:
> > Am 01.11.2010 um 11:47 schrieb Ankur Srivastava:
> >
> > > Dear list members,
> > > I've been using Lyx for a month and I cannot find one feature that I
> need for my Extended Essay. How do I set the page numbering in the form page
> x of y, where x is the current page and y is the total number of pages? I'm
> really puzzled. I looked at the documentation and FAQ but I didn't find
> anything there.
> > > Thank you
> >
> > I add a label at the very end of the document and use a reference to that
> label for y.
> > For x I add \thepage{} in ERT (the red box for TeX code).
>


Re: Page numbering x of y

2010-11-01 Thread Waluyo Adi Siswanto
> Thank you very much for your reply. It is now clear to me. Is there any way
> that this numbering style can replace the page numbers at the bottom?
>

In this situation, usually i use fancyhdr and lastpage
Document->Settings->Page layout, heading style changed to "fancy"

then in the latex preamble (Document->Settings->Latex preamble)
\usepackage{lastpage}
\lhead{}
\chead{}
\rhead{}
\lfoot{}
\cfoot{{Page} \thepage { of} \pageref{LastPage}}
\rfoot{}
\renewcommand{\headrulewidth}{0pt}

It will print, Page x of y at every bottom of the page.

Regards
waluyo


Re: Automatically convert external files during PDF creation

2010-11-01 Thread Pavel Sanda
Jurriën Stutterheim wrote:
> Added a wiki page on how to set LyX up for use with literate Haskell files: 
> http://wiki.lyx.org/LyX/Lhs2LyX
> The links still need to be approved. What's the password for that? :)

sent privately 

> 
> On 26 Oct, 2010, at 19:25 , Pavel Sanda wrote:
> 
> > Jurriën Stutterheim wrote:
> >> LyX devs: please consider adding this template for inclusion in new LyX 
> >> releases :)
> > 
> > have you considered to put your solution into the lyx wiki?
> > 
> > pavel


Re: Automatically convert external files during PDF creation

2010-11-01 Thread Jurriën Stutterheim
Great, thanks. Wiki page is all set up now.

On 1 Nov, 2010, at 17:14 , Pavel Sanda wrote:

> Jurriën Stutterheim wrote:
>> Added a wiki page on how to set LyX up for use with literate Haskell files: 
>> http://wiki.lyx.org/LyX/Lhs2LyX
>> The links still need to be approved. What's the password for that? :)
> 
> sent privately 
> 
>> 
>> On 26 Oct, 2010, at 19:25 , Pavel Sanda wrote:
>> 
>>> Jurriën Stutterheim wrote:
 LyX devs: please consider adding this template for inclusion in new LyX 
 releases :)
>>> 
>>> have you considered to put your solution into the lyx wiki?
>>> 
>>> pavel



Export Documents from Command Line

2010-11-01 Thread Tim Wescott
I want to be able to write Lyx documents, then convert them to pdf 
format from the command line -- this is for a moderately complex 
website, which I would like to generate using a makefile.


Is there a way to do this from the command line?  I assume I have to do 
this:


lyx  myfile.lyx

If someone knows the magic and is willing to share, I'd be grateful.

--
Tim Wescott
Wescott Design Services
Voice: 503-631-7815
Cell:  503-349-8432
http://www.wescottdesign.com




Re: Export Documents from Command Line

2010-11-01 Thread Jürgen Spitzmüller
Tim Wescott wrote:
> I want to be able to write Lyx documents, then convert them to pdf 
> format from the command line -- this is for a moderately complex 
> website, which I would like to generate using a makefile.
> 
> Is there a way to do this from the command line?  I assume I have to do 
> this:
> 
> lyx  myfile.lyx

juer...@linux-r4p5:~> lyx -help
Usage: lyx [ command line switches ] [ name.lyx ... ]
Command line switches (case sensitive):
[...]
-e [--export] fmt
  where fmt is the export format of choice.
  Look on Tools->Preferences->File formats->Format
  to get an idea which parameters should be passed.
-i [--import] fmt file.xxx
  where fmt is the import format of choice
  and file.xxx is the file to be imported.
-f [--force-overwrite] what
  where what is either `all', `main' or `none',
  specifying whether all files, main file only, or no files,
  respectively, are to be overwritten during a batch export.
  Anything else is equivalent to `all', but is not consumed.
-versionsummarize version and build info
Check the LyX man page for more details.

So,
lyx -e pdf2 myfile.lyx

exports to PDF via pdflatex.

HTH,
Jürgen


Re: Export Documents from Command Line

2010-11-01 Thread Richard Heck

On 11/01/2010 12:53 PM, Jürgen Spitzmüller wrote:

Tim Wescott wrote:
   

I want to be able to write Lyx documents, then convert them to pdf
format from the command line -- this is for a moderately complex
website, which I would like to generate using a makefile.

Is there a way to do this from the command line?  I assume I have to do
this:

lyx  myfile.lyx
 

juer...@linux-r4p5:~>  lyx -help
Usage: lyx [ command line switches ] [ name.lyx ... ]
Command line switches (case sensitive):
[...]
 -e [--export] fmt
   where fmt is the export format of choice.
   Look on Tools->Preferences->File formats->Format
   to get an idea which parameters should be passed.
 -i [--import] fmt file.xxx
   where fmt is the import format of choice
   and file.xxx is the file to be imported.
 -f [--force-overwrite] what
   where what is either `all', `main' or `none',
   specifying whether all files, main file only, or no files,
   respectively, are to be overwritten during a batch export.
   Anything else is equivalent to `all', but is not consumed.
 -versionsummarize version and build info
Check the LyX man page for more details.

So,

lyx -e pdf2 myfile.lyx

exports to PDF via pdflatex.

   
And if you're wondering where "pdf2" comes from, the answer is that this 
is the identifier LyX uses for that format. Look under 
Tools>Preferences>File Formats and ...>Converters for the various options.


rh



Float alignment

2010-11-01 Thread Emil Pavlov
How can I set the alignment to centered for all table and figure floats 
instead of changing it every time manually through "paragraph settings"?


Best regards,

Emil Pavlov


Problem with Citations

2010-11-01 Thread Ankur Srivastava
Dear Lyx users,
i'm having a problem with citations. For example, if I have a bibliography
entry as "Babinsky, H (2003). How do wings work? [online] Department of
Engineering, University of Cambridge Available from:
http://iopscience.iop.org/0031-9120/38/6/001/pdf/pe3_6_001.pdf [Accessed 25
May 2010]" and if I want to insert a citation, it gives me [1, Babinsky, H
(2003)] I've tried to follow instructions to change to natbib via searching
the web but I always get an error when I try to view as PDF. I would like it
to be without the numbering and the square brackets. This same citation
should read (Babinsky, H 2003). Is there a way to do this?
Thank you


pdfpages: remove blank page between two included pdfs?

2010-11-01 Thread Liviu Andronic
Dear all
I am using pdfpages to include pdf pages into my LyX document.
However, when I have two pdf files included this way, one immediately
after the other, the resulting pdf will include a blank page between
the two included pdfs. Is there a way to remove the blank page?

Regards
Liviu


-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: box alignment

2010-11-01 Thread [Ricardo Rodriguez] eBioTIC.

Hi!

Even though a bit late, I would like to regain access to LyX use by 
upgrading my installation to 2.0.0alpha6 and keeping track of old 
pending issues! Please, accept my excuses for being so late and see below.


Uwe Stöhr wrote:

Am 23.05.2010 00:23, schrieb [Ricardo Rodriguez] eBioTIC.:


Use a parbox as inner box. You can then edit the box text like any
other text.


Sorry, I don't understand this. What I read in the Embedded Objects
manual is:

"Parboxes are very similar to minipages with the difference that they
cannot have footnotes. The main difference to minipages is that
minipages are in contrary to parboxes no real boxes but
LaTeX-environments."

Gosh! I am not able to understand this!


This is indeed horrible (and I'm the author of this). You can ignore 
the last sentence and I will have a look to make the difference more 
clear to new LyX users.


As far as I see, the paragraph keeps the same in the last alpha6 
release. Could I be of any help to clarify this text?





Please, why I can edit the text
in a parbox as any other text and the one in a Minipage, not?


You can in both cases edit the text like any other text. I only 
propose to use a parbox here because minipages make in some special 
cases problems (when other LaTeX-packages don't support them). But 
these cases are very rare, so it's your decision what inner box you 
are using.

Sorry that I bothered you with LaTeX internals.


Thanks! It is great for me that you give me as much information as 
possible! The only problem with that is that I will come back here with 
more and more questions! Well, in fact, I am not able to figure out a 
way of avoiding that... :-)



Now I am able to set the paragraph settings for each box in a per box
basis. Please, is it possible to set this features document wide? 
Thanks!


Not via LyX. You can either copy a box as you like it to all places in 
your LyX document.
Another solution is to defined a new command that sets up the box for 
you. Then you would have to insert this command as TeX-code instead of 
a box. I can define such a command for you, but you need to decide 
what box you want to have. If you made this decision, send me a LyX 
file with your box and I'll have a look.


regards Uwe



That would be great! Your help would be really welcome.

I don't want anything fancy. Simply, something like that:

http://ebiotic.net/bin/download/ICT/LyXBox/dummyTextMargins.pdf

Box has the same width as the text column and it is centred with it. 
Here the source file...


http://ebiotic.net/bin/download/ICT/LyXBox/dummyTextMargins.lyx

Thanks!

All the best,

Ricardo

--
Ricardo Rodríguez
CTO
eBioTIC.
Life Sciences, Data Modeling and Information Management Systems



eLyXer 1.0.4 released

2010-11-01 Thread Alex Fernandez
Hi all,

Version 1.0.4 of eLyXer, the LyX to HTML converter, has been released.
This incremental version solves a lot of reported bugs (particularly
in BibTeX and part numbering). The wish list has grown a bit but has
not yet been tackled; the stream of reported bugs has kept me busy!
Next version should contain at least a few wish list items.

Changes include:
---
* Solved bug #31342: detect appendices as they appear instead of
looking at the containing layout.
* Also reported in bug #31342: number parts and books using roman
numerals, as in “Part I” or “Book IV”.
* Solved bug #31351: do not number (or add to the TOC) any
document parts inside comments.
* Also in bug #31351: show the bibliography in regular size, not
smaller than the main text as before.
* Solved bug #31414: bootstrap creation of conf/config.py.
* Also in bug #31414: remodeled unit tests to try out Python 2.4
only if present, and to remove test files from previous runs.
* Show the “Abstract” header only for the first Abstract layout
(thanks, Yaron!).
* Solved bug #31345: ignore preamble and comments in BibTeX files.
Use string definitions (@string) in other entries.
* Support for \fbox, \boxed, \framebox and \fcolorbox.
---
Complete changelog:
 http://www.nongnu.org/elyxer/changelog.html

Download from nongnu.org mirrors:
 https://savannah.nongnu.org/files/?group=elyxer

If the new version has not hit your favorite mirror yet:
 http://download.savannah.gnu.org/releases-noredirect/elyxer/

Thanks for your time,

Alex Fernández.


Re: Problem with Citations

2010-11-01 Thread Waluyo Adi Siswanto
> Dear Lyx users,
> i'm having a problem with citations. For example, if I have a bibliography
> entry as "Babinsky, H (2003). How do wings work? [online] Department of
> Engineering, University of Cambridge Available from:
> http://iopscience.iop.org/0031-9120/38/6/001/pdf/pe3_6_001.pdf [Accessed 25
> May 2010]" and if I want to insert a citation, it gives me [1, Babinsky, H
> (2003)] I've tried to follow instructions to change to natbib via searching
> the web but I always get an error when I try to view as PDF. I would like it
> to be without the numbering and the square brackets. This same citation
> should read (Babinsky, H 2003). Is there a way to do this?
> Thank you
>

If you use Bibliography database as explained in User's Guide
(Help->User's Guide, Section 6.5),
you can use natbib(author-year), set from Document->Settings,
Bibliograpgy, Natbib (Author-year)

Regards
waluyo


Re: box alignment

2010-11-01 Thread Uwe Stöhr

Am 01.11.2010 23:50, schrieb [Ricardo Rodriguez] eBioTIC.:


As far as I see, the paragraph keeps the same in the last alpha6 release. Could 
I be of any help to
clarify this text?


I removed now the second sentence since 90% of the LyX users won't understand the difference between 
a LaTeX-command and LaTeX-environment.



Another solution is to defined a new command that sets up the box for you. Then 
you would have to
insert this command as TeX-code instead of a box. I can define such a command 
for you, but you
need to decide what box you want to have. If you made this decision, send me a 
LyX file with your
box and I'll have a look.


I don't want anything fancy. Simply, something like that:

http://ebiotic.net/bin/download/ICT/LyXBox/dummyTextMargins.pdf

Box has the same width as the text column and it is centred with it. Here the 
source file...

http://ebiotic.net/bin/download/ICT/LyXBox/dummyTextMargins.lyx


In your example the box has a width of only 95% not 100%. However, I defined a command for your box 
in the preamble of the attached document. You can insert then your custom box by inserting the 
TeX-code command \mybox as I have shown in the example.

The color of the box is set in the document settings.

regards Uwe


dummyTextMargins.lyx
Description: application/lyx


LyX and LuaTeX

2010-11-01 Thread Rob Oakes
Dear LyX Users, 

I am currently slogging my way through a book chapter on advanced methods in 
LyX/LaTeX and just had a quick question.  Does anyone know if there is 
documentation on how to use LyX with luaTeX?  

I know that it isn't officially supported, and things would probably break 
terribly, and that it might corrupt my mind and force me to sacrifice my first 
born.  But I'm kind of curious to experiment.  Has anyone spent any time using 
luaTeX from within LyX?  Care to comment on just how broken things were?

Cheers,

Rob

Re: Spellchecker and ú

2010-11-01 Thread Christopher Menzel

On 10/30/2010 02:53 AM, Stephan Witt wrote:

Am 29.10.2010 um 22:01 schrieb Christopher Menzel:
   

Greetings LyX users,

The aspell-based spellchecker in LyX does not appear to be happy checking a document containing a Spanish name that 
includes the character ú.  Specifically, the name seems throw the checker pretty seriously off balance; it begins to 
stop on perfectly ordinary words that occur in the document a word or two *after* a word that it apparently isn't 
recognizing internally -- for example, it asked if I wanted to replace the word "that" with 
"bisection", where "that" occurred two words after "bijection", which was clearly the 
word it had stopped on internally.  Is there a solution to this beyond avoiding non-English unicode characters?
 

Sorry, I've no solution but a question.
You're using LyX 1.6.7? Which platform?
   
Oh sorry, I'm an idiot for leaving out that info.  1.6.7 on a Mac, 
latest version of Snow Leopard.


Chris Menzel