Daron Wilson | 1 Nov 2010 05:25
Picon

Unicode help

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.

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.

Daron

Stephan Witt | 1 Nov 2010 07:28
Picon

Re: Unicode help

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.
(Continue reading)

Ankur Srivastava | 1 Nov 2010 11:47

Page numbering x of y

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
Stephan Witt | 1 Nov 2010 11:58
Picon

Re: Page numbering x of y

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

Ankur Srivastava | 1 Nov 2010 12:16

Re: Page numbering x of y

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.witt <at> 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


Stephan Witt | 1 Nov 2010 12:47
Picon

Re: Page numbering x of y

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.witt <at> 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).
Attachment (test1.lyx): application/octet-stream, 1583 bytes
Steve Litt | 1 Nov 2010 13:10
Favicon

Re: Page numbering x of y

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

Ankur Srivastava | 1 Nov 2010 13:11

Re: Page numbering x of y

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.witt <at> 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.witt <at> 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).

Waluyo Adi Siswanto | 1 Nov 2010 14:08
Picon

Re: Page numbering x of y

> 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


Gmane