Re: Insert>Special Character> Symbols does not work in Lyx 2.2.2

2016-11-04 Thread Michael Berger



On 11/04/2016 09:16 AM, Guenter Milde wrote:

On 2016-11-04, Michael Berger wrote:

On 11/02/2016 02:16 PM, Michael Berger wrote:

On 11/02/2016 10:02 AM, Guenter Milde wrote:

re Unicode(utf8) prevents inserting certain symbols in body text.

(Inserting (in the LyX GUI) is not a problem, the error occures when you export
with 8-bit LaTeX.)

So, the subject of this thread is misleading, there is nothing wrong with
Insert>Special Character>Symbols. (You can export to HTML or with Xe/LuaTeX
and non-TeX fonts without problems.)


I found a way to work around the problem:
- Insert > Special character > Symbols > e.g. 'Mathematical Operator'
- select the symbol you want to use.
- select that very symbol and click on the  'Insert math' icon of the
tool bar.
- bingo

This works, because non-ASCII characters are always replaced in mathematical
mode by LyX (unless you use Xe/LuaTeX with "uniode-math".

For Mathematical Operators, wrapping in a math-inset is a correct
workaround/solution. For Dingbats or other text symbols this would be
suboptimal (works but not "clean" because math-mode is for mathematical
content).

When using a math-inset, you can also use the LaTeX command instead of
searching the symbol in "Special Character". (You find the name e.g. in
the Source Preview Pane). LyX will show the symbols (for most supported
mathematical symbols, at least) in the GUI and "do the right thing" on LaTeX
export.

Günter


Ah Günter, your above explanations are highly interesting! Thanks.

Michael



Re: Insert>Special Character> Symbols does not work in Lyx 2.2.2

2016-11-04 Thread Guenter Milde
On 2016-11-04, Michael Berger wrote:
> On 11/02/2016 02:16 PM, Michael Berger wrote:
>> On 11/02/2016 10:02 AM, Guenter Milde wrote:

> re Unicode(utf8) prevents inserting certain symbols in body text.

(Inserting (in the LyX GUI) is not a problem, the error occures when you export
with 8-bit LaTeX.)

So, the subject of this thread is misleading, there is nothing wrong with
Insert>Special Character>Symbols. (You can export to HTML or with Xe/LuaTeX
and non-TeX fonts without problems.)

> I found a way to work around the problem:
> - Insert > Special character > Symbols > e.g. 'Mathematical Operator'
> - select the symbol you want to use.
> - select that very symbol and click on the  'Insert math' icon of the 
> tool bar.
> - bingo

This works, because non-ASCII characters are always replaced in mathematical
mode by LyX (unless you use Xe/LuaTeX with "uniode-math".

For Mathematical Operators, wrapping in a math-inset is a correct
workaround/solution. For Dingbats or other text symbols this would be
suboptimal (works but not "clean" because math-mode is for mathematical
content).

When using a math-inset, you can also use the LaTeX command instead of
searching the symbol in "Special Character". (You find the name e.g. in
the Source Preview Pane). LyX will show the symbols (for most supported
mathematical symbols, at least) in the GUI and "do the right thing" on LaTeX
export.

Günter



Re: Insert>Special Character> Symbols does not work in Lyx 2.2.2

2016-11-04 Thread Michael Berger


On 11/04/2016 08:56 AM, Michael Berger wrote:




On 11/02/2016 02:16 PM, Michael Berger wrote:


On 11/02/2016 10:02 AM, Guenter Milde wrote:

On 2016-11-01, Michael Berger wrote:
Dear all,Mageia5, Lyx 2.2.2, Texlive2016, using 
classicthesis-LyX-v4.2_biblatex_biber

In body text I try using using Insert > Special Character > Symbols >
any category (e.g. Mathematical Operator)

This worked in Lyx 2.1 but in Lyx 2.2.2 either an error is thrown 
out or
nothing happens when compiling to PDF. Classicthesis uses Language 
Encoding Unicode (utf8).

Is this a known issue?
Are there alternatives to get the symbols right in my text?

Many. But we cannot help without more info.

Please provide a minimal example -- the smallest possible document that
shows the problem.


Günter 

Hallo Günter,
re Unicode(utf8) prevents inserting certain symbols in body text.

I found a way to work around the problem:
- Insert > Special character > Symbols > e.g. 'Mathematical Operator'
- select the symbol you want to use.
- select that very symbol and click on the  'Insert math' icon of the 
tool bar.

- bingo

Cheers,
Michael

Sorry, I have to correct myself!
It works for many symbols  but unfortunately not for all. :'(
Michael



Re: Insert>Special Character> Symbols does not work in Lyx 2.2.2

2016-11-04 Thread Michael Berger



On 11/02/2016 02:16 PM, Michael Berger wrote:


On 11/02/2016 10:02 AM, Guenter Milde wrote:

On 2016-11-01, Michael Berger wrote:
Dear all,Mageia5, Lyx 2.2.2, Texlive2016, using 
classicthesis-LyX-v4.2_biblatex_biber

In body text I try using using Insert > Special Character > Symbols >
any category (e.g. Mathematical Operator)

This worked in Lyx 2.1 but in Lyx 2.2.2 either an error is thrown 
out or
nothing happens when compiling to PDF. Classicthesis uses Language 
Encoding Unicode (utf8).

Is this a known issue?
Are there alternatives to get the symbols right in my text?

Many. But we cannot help without more info.

Please provide a minimal example -- the smallest possible document that
shows the problem.


Günter 

Hallo Günter,
re Unicode(utf8) prevents inserting certain symbols in body text.

I found a way to work around the problem:
- Insert > Special character > Symbols > e.g. 'Mathematical Operator'
- select the symbol you want to use.
- select that very symbol and click on the  'Insert math' icon of the 
tool bar.

- bingo

Cheers,
Michael


Re: Insert>Special Character> Symbols does not work in Lyx 2.2.2

2016-11-02 Thread Guenter Milde
On 2016-11-02, Michael Berger wrote:
> On 11/02/2016 10:02 AM, Guenter Milde wrote:

>>> This worked in Lyx 2.1 but in Lyx 2.2.2 either an error is thrown out or
>>> nothing happens when compiling to PDF.Classicthesis uses Language Encoding 
>>> Unicode (utf8).
>>> Is this a known issue?
>>> Are there alternatives to get the symbols right in my text?
>> Many. But we cannot help without more info.

>> Please provide a minimal example -- the smallest possible document that
>> shows the problem.

...

> My original document is based on classicthesis.lyx v4.2 (biblatex_biber).
> However, as I am almost certain that classicthesis is NOT the culprit 
> (and also for simplicity reasons) I attach two mini examples using the 
> document class KOMA Script Article.

Thanks.

> Evidently there seems to be an incompatibility with utf8 because the 
> problem vanishes when replacing it with another encoding. 

Indeed, this is a long known problem with poor utf8 support.
The problem is fixed in the development version of lyx.

You can either just use another encoding or download the 
lib/unicodesymbols file from the development version
and put it in your local LYXDIR (~/.lyx/ on Unix).

> It appears also that the problem applies to the whole category of 
> symbols, meaning that none symbol of e.g. the same category 
> 'Mathematical Operators' compiles. I also tried another five or six 
> categories and all behaved equally bad.

Actually, it works for "Block Drawing Symbols" and most Latin, Greek and
Cyrillic characters (the latter only with the correct language setting).
but almost no other special symbol.

Günter



Re: Insert>Special Character> Symbols does not work in Lyx 2.2.2

2016-11-02 Thread Michael Berger


On 11/02/2016 10:02 AM, Guenter Milde wrote:

On 2016-11-01, Michael Berger wrote:

Dear all,Mageia5, Lyx 2.2.2, Texlive2016, using 
classicthesis-LyX-v4.2_biblatex_biber
In body text I try using using Insert > Special Character > Symbols >
any category (e.g. Mathematical Operator)

This worked in Lyx 2.1 but in Lyx 2.2.2 either an error is thrown out or
nothing happens when compiling to PDF.Classicthesis uses Language Encoding 
Unicode (utf8).
Is this a known issue?
Are there alternatives to get the symbols right in my text?

Many. But we cannot help without more info.

Please provide a minimal example -- the smallest possible document that
shows the problem.

This would allow to reproduce:

* What error is shown
* Which fonts do you use
* Does it depend on document class classicthesis,
* or on biblatex, biber, a specific bibentry.
* Which symbols show the problem
* ...

Günter

Hallo Günter,
thanks for trying to help.
My original document is based on classicthesis.lyx v4.2 (biblatex_biber).
However, as I am almost certain that classicthesis is NOT the culprit 
(and also for simplicity reasons) I attach two mini examples using the 
document class KOMA Script Article.


Evidently there seems to be an incompatibility with utf8 because the 
problem vanishes when replacing it with another encoding. I tried a 
number of other language encodings in my original document but was 
always rewarded serious errors. My document is rather voluminous and 
filled with linguistic elements.


It appears also that the problem applies to the whole category of 
symbols, meaning that none symbol of e.g. the same category 
'Mathematical Operators' compiles. I also tried another five or six 
categories and all behaved equally bad.


Anyway, if you should need a mini file derived from my original 
document, please let me know.


Michael


symbols-default.lyx
Description: application/lyx


symbols-utf8.lyx
Description: application/lyx


Re: Insert>Special Character> Symbols does not work in Lyx 2.2.2

2016-11-02 Thread Guenter Milde
On 2016-11-01, Michael Berger wrote:
> Dear all,

> Mageia5, Lyx 2.2.2, Texlive2016, using classicthesis-LyX-v4.2_biblatex_biber

> In body text I try using using Insert > Special Character > Symbols > 
> any category (e.g. Mathematical Operator)

> This worked in Lyx 2.1 but in Lyx 2.2.2 either an error is thrown out or 
> nothing happens when compiling to PDF.

> Classicthesis uses Language Encoding Unicode (utf8).

> Is this a known issue?

> Are there alternatives to get the symbols right in my text?

Many. But we cannot help without more info.

Please provide a minimal example -- the smallest possible document that
shows the problem.

This would allow to reproduce:

* What error is shown
* Which fonts do you use
* Does it depend on document class classicthesis,
* or on biblatex, biber, a specific bibentry.
* Which symbols show the problem
* ...

Günter