1 Feb 2012 15:46

### Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

I tried 1) -- 8).

I see the same problem as before.
Command and control keys do not behave correctly.

The result of 8) is
preferences:\mac_dontswap_ctrl_meta true

As for 5), in my case, Times is chosen at
Preferences>Screen fonts>Roman
from the first.

stiv.
On Wed, Feb 1, 2012 at 2:16 AM, Jens Nöckel wrote:
Hi,
since I don't see the problem on either OS X 10.6.8 or 10.7.2, I just tried the following steps on my OS X 10.6.8 machine:
1)
Move ~/Library/Application Support/LyX-2.0 to the Desktop.

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

3)
Move old LyX out of Application folder

4)
Install downloaded LyX and launch it

5)
In an unrelated note, I noticed that the default screen font wasn't correctly displayed: should be Times but is Helvetica. So I chnaged that font to Times New Roman and the display worked again.

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

7)
I restarted LyX and opened a new document with Control-d (it worked as expected). I then started a new math display formula with Apple-d and it worked as expected.

8)
To double check, I went to the Terminal and navigated to
~/Library/Application Support/LyX-2.0
then issued the command:
grep dontswap *
with the expected result:
preferences:\mac_dontswap_ctrl_meta true

The last point is something you should definitely check, too. If you do the same things (including step 1) but still have the problem, then one has to start worrying that perhaps Qt is doing something wrong. Essentially what the "don't swap" check box does is to set a Qt flag that gets updated when LyX starts up.  I can't really see how anything on the LyX side should fail in that process.

Jens

On Jan 31, 2012, at 8:25 AM, Stephan Witt wrote:

> Am 31.01.2012 um 16:36 schrieb stiv. djobz.:
>
>> Thanks.
>> This is my first time to see the progress/debug messages...
>
> You're very clever
>
>> The responses seems to be different.
>
> Yes, unfortunately. I suppose you have saved you preferences and LyX was restarted.
> So, it should work. But indeed it seems to ignore the don't swap option.
> Interestingly there is an additional line in your output I don't have:
>
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616): keyevent has isNull() text !
>
> The complete output I get for ctrl-b is:
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):  count: 1 text:  isAutoRepeat: 0 key: 16777250 keyState: Meta-
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting key 16777250, with text ''
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting key to 16777250,
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): KeySym is Alt_L
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): isModifier is 1
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):  count: 1 text:   isAutoRepeat: 0 key: 66 keyState: Control-
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting key 66, with text ' '
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting key to 66,
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): KeySym is b
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): isModifier is 0
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686): action first set to []
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694): action now set to []
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705):  Key [action=][Kontroll-B]
>
> I can see two possible explanations:
> 1. We are using different LyX-2.0.2 software packages (I use the package from www.lyx.org)
> 2. We have different environments and there is some critical setting I don't have
> I have a german desktop and no special settings made to the system keyboard mappings.
>
> Do you have another idea? Do you have your own keyboard tables assigned?
>
> Stephan
>
>> I moved the .bind files in /Library/Application Support/LyX-2.0/bind/
>> to another place and restart lyx 2.0.2 with the same settings as yours.
>>
>> When I type ctrl+b, nothing appears on the document.
>> The message is:
>>
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count: 1 text: isAutoRepeat: 0 key: 16777250 keyState: Meta-
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting key 16777250, with text ''
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting key to 16777250,
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): KeySym is Alt_L
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): isModifier is 1
>> 23:16:35.603: Unknown function./Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count: 1 text: isAutoRepeat: 0 key: 66 keyState: Meta-
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616): keyevent has isNull() text !
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): KeySym is b
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): isModifier is 0
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686): action first set to []
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694): action now set to []
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705): Key [action=][Command-B]
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(726): text_ empty, isText() == false
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1732): Unknown, !isText() - giving up
>>
>>
>> When I type command + b, the cursor moves backwards by one character.
>> The message is:
>>
>>
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count: 1 text: isAutoRepeat: 0 key: 16777249 keyState: Control-
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting key 16777249, with text ''
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting key to 16777249,
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): KeySym is Control_L
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): isModifier is 1
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count: 1 text: isAutoRepeat: 0 key: 66 keyState: Control-
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616): keyevent has isNull() text !
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): KeySym is b
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): isModifier is 0
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686): action first set to []
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694): action now set to []
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705): Key [action=][Control-B]
>>
>>
>
>

1 Feb 2012 18:30

### Re: install not finding classes in miktek

Furthermore, I just uninstalled lyx and miktex and reinstalled from the bundled
installer.
Same problem.

Any clues at all???


1 Feb 2012 20:43

### error: cannot view file

Hi,

When trying to view a document in pdf I get:

...
Error: Cannot view file
----------------------------------------
File does not exist:
/var/tmp/lyx_tmpdir.J57590/lyx_tmpbuf2/xxxxxxx.pdf
...

A process called pdfetex is started but just hits 100% cpu usage and
nothing happens. I tried changing the tmp directory, reinstalled lyx,
reinstalled tetex, deleted the .lyx directory in /home, but nothing works.
The same thing happens when exporting to pdf or dvi.

Has anyone an idea how to solve this?

Thanks,
Marco
--

--
Lots of folks are forced to skimp to support a government that won't.


1 Feb 2012 22:01

### Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

So now it's becoming more likely that this is a low-level configuration problem with Qt (although I'm by no means certain). To test this, a stab in the dark suggestion would be:

Create a new user account under the Mac's "System Preferences > Users and groups" (you can of course delete this account again later, but this is a way to start from a clean slate without hidden .files in your home directory and other stuff in your ~/Library that could mess things up.

Then launch LyX from there and see if that behaves properly when you check the "swap" box again and restart LyX.

Jens

On Feb 1, 2012, at 6:46 AM, stiv. djobz. wrote:

I tried 1) -- 8).
I see the same problem as before.
Command and control keys do not behave correctly.

The result of 8) is
preferences:\mac_dontswap_ctrl_meta true

As for 5), in my case, Times is chosen at
Preferences>Screen fonts>Roman
from the first.

stiv.
On Wed, Feb 1, 2012 at 2:16 AM, Jens Nöckel wrote:
Hi,
since I don't see the problem on either OS X 10.6.8 or 10.7.2, I just tried the following steps on my OS X 10.6.8 machine:
1)
Move ~/Library/Application Support/LyX-2.0 to the Desktop.

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

3)
Move old LyX out of Application folder

4)
Install downloaded LyX and launch it

5)
In an unrelated note, I noticed that the default screen font wasn't correctly displayed: should be Times but is Helvetica. So I chnaged that font to Times New Roman and the display worked again.

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

7)
I restarted LyX and opened a new document with Control-d (it worked as expected). I then started a new math display formula with Apple-d and it worked as expected.

8)
To double check, I went to the Terminal and navigated to
~/Library/Application Support/LyX-2.0
then issued the command:
grep dontswap *
with the expected result:
preferences:\mac_dontswap_ctrl_meta true

The last point is something you should definitely check, too. If you do the same things (including step 1) but still have the problem, then one has to start worrying that perhaps Qt is doing something wrong. Essentially what the "don't swap" check box does is to set a Qt flag that gets updated when LyX starts up.  I can't really see how anything on the LyX side should fail in that process.

Jens

On Jan 31, 2012, at 8:25 AM, Stephan Witt wrote:

> Am 31.01.2012 um 16:36 schrieb stiv. djobz.:
>
>> Thanks.
>> This is my first time to see the progress/debug messages...
>
> You're very clever
>
>> The responses seems to be different.
>
> Yes, unfortunately. I suppose you have saved you preferences and LyX was restarted.
> So, it should work. But indeed it seems to ignore the don't swap option.
> Interestingly there is an additional line in your output I don't have:
>
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616): keyevent has isNull() text !
>
> The complete output I get for ctrl-b is:
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):  count: 1 text:  isAutoRepeat: 0 key: 16777250 keyState: Meta-
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting key 16777250, with text ''
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting key to 16777250,
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): KeySym is Alt_L
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): isModifier is 1
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):  count: 1 text:   isAutoRepeat: 0 key: 66 keyState: Control-
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting key 66, with text ' '
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting key to 66,
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): KeySym is b
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): isModifier is 0
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686): action first set to []
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694): action now set to []
> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705):  Key [action=][Kontroll-B]
>
> I can see two possible explanations:
> 1. We are using different LyX-2.0.2 software packages (I use the package from www.lyx.org)
> 2. We have different environments and there is some critical setting I don't have
> I have a german desktop and no special settings made to the system keyboard mappings.
>
> Do you have another idea? Do you have your own keyboard tables assigned?
>
> Stephan
>
>> I moved the .bind files in /Library/Application Support/LyX-2.0/bind/
>> to another place and restart lyx 2.0.2 with the same settings as yours.
>>
>> When I type ctrl+b, nothing appears on the document.
>> The message is:
>>
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count: 1 text: isAutoRepeat: 0 key: 16777250 keyState: Meta-
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting key 16777250, with text ''
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting key to 16777250,
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): KeySym is Alt_L
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): isModifier is 1
>> 23:16:35.603: Unknown function./Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count: 1 text: isAutoRepeat: 0 key: 66 keyState: Meta-
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616): keyevent has isNull() text !
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): KeySym is b
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): isModifier is 0
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686): action first set to []
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694): action now set to []
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705): Key [action=][Command-B]
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(726): text_ empty, isText() == false
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1732): Unknown, !isText() - giving up
>>
>>
>> When I type command + b, the cursor moves backwards by one character.
>> The message is:
>>
>>
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count: 1 text: isAutoRepeat: 0 key: 16777249 keyState: Control-
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): Getting key 16777249, with text ''
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): Setting key to 16777249,
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): KeySym is Control_L
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): isModifier is 1
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): count: 1 text: isAutoRepeat: 0 key: 66 keyState: Control-
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616): keyevent has isNull() text !
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): KeySym is b
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK is 1
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): isModifier is 0
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686): action first set to []
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694): action now set to []
>> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705): Key [action=][Control-B]
>>
>>
>
>

1 Feb 2012 22:01

### Re: error: cannot view file

On Wed, 1 Feb 2012, the wise Marco Beishuizen wrote:

> Hi,
>
> When trying to view a document in pdf I get:
>
> ...
> Error: Cannot view file
> ----------------------------------------
> File does not exist: /var/tmp/lyx_tmpdir.J57590/lyx_tmpbuf2/xxxxxxx.pdf
> ...
>
> A process called pdfetex is started but just hits 100% cpu usage and
> nothing happens. I tried changing the tmp directory, reinstalled lyx,
> reinstalled tetex, deleted the .lyx directory in /home, but nothing
> works. The same thing happens when exporting to pdf or dvi.

I discovered that it has something to do with the Table Of Contents. When
removed it works again, inserting it and it doesn't.

--

--
No spitting on the Bus!
Thank you, The Management.


2 Feb 2012 02:29

### Re: install not finding classes in miktek

OK, so now I reinstalled everything not in Program Files, thinking perhaps the
UAC in Vista was causing the problem. I noticed as it was installing that:
checking for an HTML previewer...
+checking for "firefox"...  no
checking for a Postscript previewer...
+checking for "ghostview"...  no

this seems strange since these are installed on my system...WUWT?

checking for an OpenDocument/OpenOffice viewer...
+checking for "oowriter"...  no
why not check for libreoffice?

opening lyx...fingers crossed...

YAY....my classes are there!! thank god for small favors!!!!


2 Feb 2012 08:23

### Trouble with Egyptian Hieroglyphs

Hi

In the past I've happily used the CTAN Poor Man's Hieroglyphs package
from within LyX to produce very acceptable Egyptian Hieroglyphs.

The thing worked by simply putting into the preamble:
\usepackage{hieroglf}

Then you could use TeX macros such as \pmglyph{\HA}... and surround this
if you wished in
\cartouche{ ... }

But

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

Any ideas how I should proceed?

The way I got into this originally was to copy the LaTeX file:
hieroglf-trypmhg.tex to a local directory
then import that into LyX.
That worked on earlier versions and after cleaning up the TeX a bit I
was able to use that as a template.
The import produces the same errors re encoding listed above.
When I look at the file hieroglf.sty I see that the uunder is defined as:

\DeclareTextCommand{\uunder}{OT1}[1]%
{{\o <at> lign{\relax#1\crcr\hidewidth\sh <at> 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)?

Regards
John O'Gorman


2 Feb 2012 09:47

### Re: Trouble with Egyptian Hieroglyphs

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 <at> lign{\relax#1\crcr\hidewidth\sh <at> 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.

Günter


2 Feb 2012 09:54

### Re: Import into LyX

On 2012-02-02, stefano franchi wrote:

>> Is this a tool that would prove useful to yourselves, your collaborators,
>> and others?
>> What features would you consider essential?

...

> Math, on the other hand, would not be very important. That is: I
> assume math would be finally produced by Latex, if camera-ready is
> required, or by the publishing house. A rough approximation would be
> sufficient (this from a Humanities perspective, of course).

As a physicist, I'd say math import is the most problematic part of the
Word-LyX interaction now and most needed.

(But you realize that even without math, there are users that would like to
see the tool.)

Günter


2 Feb 2012 09:57

### Re: Import into LyX


On 02/02/12 04:25, stefano franchi wrote:
> Hi Rob,

Hi Rob

I reply to Stefano's mail, as I agree with many points and don't want
to repeat them.
>
> first: great project! I constantly struggle with converting file
> to and from MS Word. I now use the Word-->OOffice--> Latex--> Lyx
> Route, with the needed manual cleanup of Latex code and an
> additional cleanup of ERT code from LyX after LaTeX import. It is
> not fun. A project like yours would make LyX much, much easier to
> use in an academic environment.

Absolutely - I am working in biological sciences, and one can convince
some Journals to accept submission in LaTeX, but one can not convince
co-authors to use LyX ............

>
> I am going to address your questions from the perspective of a
> Humanities scholar. My observations may not be representative of
> the vast majority of current LyX/LaTeX users. On the other hand, a
> project like yours may potentially expand LyX's user base by an
> order of magnitude, in my opinion. So here we go:
>
>> Is this a tool that would prove useful to yourselves, your
>> collaborators, and others? What features would you consider
>> essential?
>
>>
>> (Right now, styles based conversion looks pretty easy -- going
>> from Heading 1 in Word to Chapter, for example. But I'm not sure
>> how well it would convert maths. This is something I'll still
>> need to look at, and may require writing an additional module.)
>>
>
> As I said, it would be very important. In my experience, there are
> three main scenarios where the tool would be precious:
>
> 1. Conversion of personal legacy documents (all the stuff you
> wrote before you discovered LyX) 2. Collaboration with colleagues
> and students 3. Submission to journals (I don't know of a single
> journal in my field and related fields that accepts Latex. They all
> want MS Word.)

For me, scenarios 2 and 3 are the most important, and 2 would require
roundtrip conversion *with preservation of change tracking and
comments* would be *very* important! In addition, highlioghting should
also be maintained.

>
>
> 1 and 3 are obviously one way (in opposite direction). 2 requires
> a Word<-->LyX roundtrip
>
> I think the most important scenarios are 2 and 3. And obviously 2
> includes 3 and 1, so solving the collaboration scenario would be
> optimal.
>
> Features:
>
> I think a good starting assumption is that final formatting will
> NOT be provided by MS Word. If you (or your team) has to produce
> camera-ready output at the end of the collaborative work, LyX is a
> much better tool. If you submit to a journal or a press, they will
> do the formatting.This means most Word-based typography can be
> eliminated. I mean: margins, typefaces, font sizes, etc, with the
> exception of different scripts, which are of course crucial
> (although with Unicode this problem should be solved now).  Only
> semantic formatting should be kept: emphasis/italics, sectioning
> info, lists, footnotes, etc. Plus all info about pictures and
> picture placement, tables (these are not trivial, I guess) and
> similar floats, and, mostly for books, indexing information.

Agreed here - Section <-> Heading 1 and so on, formating of individual
words (referred as semantic formatting) has to be maintained (italics
for species names *very* important.

>
> Preserving tracking info wold also be very useful.

See above.

>
> Cross-referencing would also be important (I have no idea how Word
> does it, if at all).

Agreed.

>
> Math, on the other hand, would not be very important. That is: I
> assume math would be finally produced by Latex, if camera-ready is
> required, or by the publishing house. A rough approximation would
> be sufficient (this from a Humanities perspective, of course).

Also agreed - could be to image, from whatever source, and the
original one could be maintained in a special comment field behind, so
that on re-import this could be used? In Word, the LaTeX code could
even be edited.

>
> References would be very very important.

Essential I would say.
Problem might be to maintain BiBeX.

>
>> What is the best tool to look at for guidance in creating a new
>> script for word2lyx? tex2lyx?
>
> I would look at Word2Tex, which is proprietary, however. In
> general, though, most existing tools try hard to preserve the look
> of a document instead of following the approach I recommend,
> thereby getting into all sort of complications. There was a very
> useful tool for Framemaker <--> LyX conversion that stuck to the
> semantic-only approach and worked pretty well (I was a Framemaker
> user before moving to LyX). It was very simple and I believe it is
> still available: http://pages.cs.brandeis.edu/~pablo/mif2lyx. It is
> a Perl script.
>
>
>> Does the script need to support special cases, such as importing
>> Word "track changes"?
>
> See above
>
>> Just how important do you consider "round-tripping" a document,
>> e.g., going from LyX to Word and back to LyX.

Very imortant - see above.

>
> Yes!
>
>> Is there anyone who might be interested in collaborating on
>> this?
>>
>
> I am afraid I cannot help with coding. But I am willing to help in
> other ways if needed.

Same here - testing, commenting: definitely available.

This could become an essential tool to further the adaptation of LyX.

Cheers,

Rainer

>
> Cheers,
>
> Stefano
>

--

--
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer <at> krugs.de

Skype:      RMkrug


Gmane