Re: Trouble with Egyptian Hieroglyphs: SOLVED

2012-02-02 Thread John O'Gorman
On 02/02/12 21:47, Guenter Milde wrote:
 On 2012-02-02, John O'Gorman wrote:

 With more recent versions of LyX (e.g. 1.6.4.2 on a Mac and 1.6.5 on
 Linux) this seems to be broken,
 I get the error messages:
 command \cedover unavailable in encoding T1
 command \uunderer unavailable in encoding T1
 ...

 \DeclareTextCommand{\uunder}{OT1}[1]%
   {{\o@lign{\relax#1\crcr\hidewidth\sh@ft{29}%
 \vbox to.2ex{\hbox{\char21}\vss}\hidewidth}}}
 There is a similar command for cedover. As you can see, they use the
 encoding OT1.
 How can I set LyX to use OT1 encoding (or is that undesirable)?
 You can set the font encoding (called latex encoding by LyX) in the
 settings:

  1.6.x only allows global setting under UtilsPreferences
  2.x   also allows per-document configuration
  
 Generally, T1 encoding is preferable because it also supports accented
 characters (like ü) which in OT1 encoding is built of 2 parts so that
 copy/paste and search in a PDF (or PS) file do not work as expected.

 Mark that with the use of the T1 font encoding, the Computer Modern fonts
 are replaced by the (bitmap!) European Modern fonts unless you select a
 different font (e.g. Latin Modern) for your document.
Thank you! That did the trick.
If I set the default font to Latin Modern will that overcome all the
deficiencies of OT1 (v T1)?

With thanks

John O'Gorman
 Günter






Re: Trouble with Egyptian Hieroglyphs: SOLVED

2012-02-02 Thread Guenter Milde
On 2012-02-02, John O'Gorman wrote:
 On 02/02/12 21:47, Guenter Milde wrote:
 On 2012-02-02, John O'Gorman wrote:


 How can I set LyX to use OT1 encoding (or is that undesirable)?
 You can set the font encoding (called latex encoding by LyX) in the
 settings:

  1.6.x only allows global setting under UtilsPreferences
  2.x   also allows per-document configuration

 Generally, T1 encoding is preferable because it also supports accented
 characters (like ü) which in OT1 encoding is built of 2 parts so that
 copy/paste and search in a PDF (or PS) file do not work as expected.

 Mark that with the use of the T1 font encoding, the Computer Modern fonts
 are replaced by the (bitmap!) European Modern fonts unless you select a
 different font (e.g. Latin Modern) for your document.

 Thank you! That did the trick.
 If I set the default font to Latin Modern will that overcome all the
 deficiencies of OT1 (v T1)?

LaTeX' font substitution mechanism always selects a font in the matching
font encoding, if the specified font is not available in this encoding, a
different one is chosen. Specifying Latin Modern ensures that a scalable
CM-lookalike is used with T1 font encoding. Alternatively, you can
install the CM-Super fonts, which usually replace EC as T1 substitution
font for CM.

Selecting Latin Modern with the lmodern package also sets the font
encoding to T1 (but LaTeX font encoding configured in LyX overwrites this).

If you want both, the advantages of T1 and Hieroglyphs, you can switch the
encoding in the document with ERT. 

In LyX 2.x, select DocumentSettingsFontsEncodingCustom and write OT1,T1
(this should result in 
  \usepackage[OT1,T1]{fontenc}
 in the latex preamble) to prepare the use of both encodings.

In the text, switch the font encoding with

  \fontencoding{OT1}\selectfont
  the Hieroglyphs
  \fontencoding{T1}\selectfont
  
Alternatively, you can consider patching the package to define the commands
in T1, too.
  
Günter



Re: Trouble with Egyptian Hieroglyphs: SOLVED

2012-02-02 Thread John O'Gorman
On 02/02/12 21:47, Guenter Milde wrote:
 On 2012-02-02, John O'Gorman wrote:

 With more recent versions of LyX (e.g. 1.6.4.2 on a Mac and 1.6.5 on
 Linux) this seems to be broken,
 I get the error messages:
 command \cedover unavailable in encoding T1
 command \uunderer unavailable in encoding T1
 ...

 \DeclareTextCommand{\uunder}{OT1}[1]%
   {{\o@lign{\relax#1\crcr\hidewidth\sh@ft{29}%
 \vbox to.2ex{\hbox{\char21}\vss}\hidewidth}}}
 There is a similar command for cedover. As you can see, they use the
 encoding OT1.
 How can I set LyX to use OT1 encoding (or is that undesirable)?
 You can set the font encoding (called latex encoding by LyX) in the
 settings:

  1.6.x only allows global setting under UtilsPreferences
  2.x   also allows per-document configuration
  
 Generally, T1 encoding is preferable because it also supports accented
 characters (like ü) which in OT1 encoding is built of 2 parts so that
 copy/paste and search in a PDF (or PS) file do not work as expected.

 Mark that with the use of the T1 font encoding, the Computer Modern fonts
 are replaced by the (bitmap!) European Modern fonts unless you select a
 different font (e.g. Latin Modern) for your document.
Thank you! That did the trick.
If I set the default font to Latin Modern will that overcome all the
deficiencies of OT1 (v T1)?

With thanks

John O'Gorman
 Günter






Re: Trouble with Egyptian Hieroglyphs: SOLVED

2012-02-02 Thread Guenter Milde
On 2012-02-02, John O'Gorman wrote:
 On 02/02/12 21:47, Guenter Milde wrote:
 On 2012-02-02, John O'Gorman wrote:


 How can I set LyX to use OT1 encoding (or is that undesirable)?
 You can set the font encoding (called latex encoding by LyX) in the
 settings:

  1.6.x only allows global setting under UtilsPreferences
  2.x   also allows per-document configuration

 Generally, T1 encoding is preferable because it also supports accented
 characters (like ü) which in OT1 encoding is built of 2 parts so that
 copy/paste and search in a PDF (or PS) file do not work as expected.

 Mark that with the use of the T1 font encoding, the Computer Modern fonts
 are replaced by the (bitmap!) European Modern fonts unless you select a
 different font (e.g. Latin Modern) for your document.

 Thank you! That did the trick.
 If I set the default font to Latin Modern will that overcome all the
 deficiencies of OT1 (v T1)?

LaTeX' font substitution mechanism always selects a font in the matching
font encoding, if the specified font is not available in this encoding, a
different one is chosen. Specifying Latin Modern ensures that a scalable
CM-lookalike is used with T1 font encoding. Alternatively, you can
install the CM-Super fonts, which usually replace EC as T1 substitution
font for CM.

Selecting Latin Modern with the lmodern package also sets the font
encoding to T1 (but LaTeX font encoding configured in LyX overwrites this).

If you want both, the advantages of T1 and Hieroglyphs, you can switch the
encoding in the document with ERT. 

In LyX 2.x, select DocumentSettingsFontsEncodingCustom and write OT1,T1
(this should result in 
  \usepackage[OT1,T1]{fontenc}
 in the latex preamble) to prepare the use of both encodings.

In the text, switch the font encoding with

  \fontencoding{OT1}\selectfont
  the Hieroglyphs
  \fontencoding{T1}\selectfont
  
Alternatively, you can consider patching the package to define the commands
in T1, too.
  
Günter



Re: Trouble with Egyptian Hieroglyphs: SOLVED

2012-02-02 Thread John O'Gorman
On 02/02/12 21:47, Guenter Milde wrote:
> On 2012-02-02, John O'Gorman wrote:
>
>> With more recent versions of LyX (e.g. 1.6.4.2 on a Mac and 1.6.5 on
>> Linux) this seems to be broken,
>> I get the error messages:
>> command \cedover unavailable in encoding T1
>> command \uunderer unavailable in encoding T1
> ...
>
>> \DeclareTextCommand{\uunder}{OT1}[1]%
>>   {{\o@lign{\relax#1\crcr\hidewidth\sh@ft{29}%
>> \vbox to.2ex{\hbox{\char21}\vss}\hidewidth}}}
>> There is a similar command for cedover. As you can see, they use the
>> encoding OT1.
>> How can I set LyX to use OT1 encoding (or is that undesirable)?
> You can set the font encoding (called "latex encoding" by LyX) in the
> settings:
>
>  1.6.x only allows global setting under Utils>Preferences
>  2.x   also allows per-document configuration
>  
> Generally, T1 encoding is preferable because it also supports accented
> characters (like ü) which in OT1 encoding is built of 2 parts so that
> copy/paste and search in a PDF (or PS) file do not work as expected.
>
> Mark that with the use of the T1 font encoding, the Computer Modern fonts
> are replaced by the (bitmap!) European Modern fonts unless you select a
> different font (e.g. Latin Modern) for your document.
Thank you! That did the trick.
If I set the default font to Latin Modern will that overcome all the
deficiencies of OT1 (v T1)?

With thanks

John O'Gorman
> Günter
>
>
>



Re: Trouble with Egyptian Hieroglyphs: SOLVED

2012-02-02 Thread Guenter Milde
On 2012-02-02, John O'Gorman wrote:
> On 02/02/12 21:47, Guenter Milde wrote:
>> On 2012-02-02, John O'Gorman wrote:


>>> How can I set LyX to use OT1 encoding (or is that undesirable)?
>> You can set the font encoding (called "latex encoding" by LyX) in the
>> settings:

>>  1.6.x only allows global setting under Utils>Preferences
>>  2.x   also allows per-document configuration

>> Generally, T1 encoding is preferable because it also supports accented
>> characters (like ü) which in OT1 encoding is built of 2 parts so that
>> copy/paste and search in a PDF (or PS) file do not work as expected.

>> Mark that with the use of the T1 font encoding, the Computer Modern fonts
>> are replaced by the (bitmap!) European Modern fonts unless you select a
>> different font (e.g. Latin Modern) for your document.

> Thank you! That did the trick.
> If I set the default font to Latin Modern will that overcome all the
> deficiencies of OT1 (v T1)?

LaTeX' font substitution mechanism always selects a font in the matching
font encoding, if the specified font is not available in this encoding, a
different one is chosen. Specifying Latin Modern ensures that a scalable
CM-lookalike is used with T1 font encoding. Alternatively, you can
install the CM-Super fonts, which usually replace EC as T1 substitution
font for CM.

Selecting Latin Modern with the "lmodern" package also sets the font
encoding to T1 (but "LaTeX font encoding" configured in LyX overwrites this).

If you want both, the advantages of T1 and Hieroglyphs, you can switch the
encoding in the document with ERT. 

In LyX 2.x, select Document>Settings>Fonts>Encoding>Custom and write OT1,T1
(this should result in 
  \usepackage[OT1,T1]{fontenc}
 in the latex preamble) to prepare the use of both encodings.

In the text, switch the font encoding with

  \fontencoding{OT1}\selectfont
  the Hieroglyphs
  \fontencoding{T1}\selectfont
  
Alternatively, you can consider patching the package to define the commands
in T1, too.
  
Günter