import tex-file to lyx with containing ERT-information

2013-05-15 Thread Tino Langer

Hallo,

from an own delevolped softwaretool I export statistics via tex-files, 
which I then import in lyx to use it in different documents. In a 
special case I generate tables and I want to format some table cells 
with the latex command \cellcolor. When I do this in lyx, I insert an 
ERT and insert the latex code.


My question is how the 'generated' latex-code have to be, that the 
tex2lyx-converter generates an ERT for the resulting lyx-file.


btw. - I'm working with lyx 2.0.5.

Many thanks for help! - Tino


Re: Problem with pdflatex with LyX 2.0.6 and Adobe XI

2013-05-15 Thread Uwe Stöhr

Am 14.05.2013 21:46, schrieb F. W.:


I just updated my LyX and Adobe Reader to 2.0.6 and XI, respective in
Windows 7 and to my chigrin, pdflatex no long creates a PDF.  I have
monitered the process with the task manager and pdflatex appears to close
normally, followed by pdfview.exe starting and ending shortly thereafter
(with no pdf being created).


I cannot reproduce the problem. What version of Adobe Reader do you have? Please try to update it to 
version 11.0.3.


If nothing helps, please try reinstalling LyX.

regards Uwe


Re: import tex-file to lyx with containing ERT-information

2013-05-15 Thread Uwe Stöhr

Am 15.05.2013 11:07, schrieb Tino Langer:


from an own delevolped softwaretool I export statistics via tex-files, which I 
then import in lyx to
use it in different documents. In a special case I generate tables and I want 
to format some table
cells with the latex command \cellcolor. When I do this in lyx, I insert an ERT 
and insert the latex
code.

My question is how the 'generated' latex-code have to be, that the 
tex2lyx-converter generates an
ERT for the resulting lyx-file.


tex2lyx generates TeX-code for all things it don't understand. So the easiest way is to leave 
everything as it is.

For the LaTeX code generated by LyX for your table, use the menu View-View 
Source.

regards Uwe


Re: Arabic not showing in right direction

2013-05-15 Thread Uwe Stöhr

Am 01.05.2013 13:21, schrieb Muhammed F. Bayraktar:


So here is an example file. It's the one I'm working with, only the first 
sentences and a random
arabic phrase.


Hi Muhammed,

your example file contains many preamble code that may cause problems. Please only use there things 
you know.

For example you have

\usepackage{xunicode,fontspec,xltxtra}
\usepackage{longtable,array,ragged2e, booktabs}
\usepackage{textcomp,url}
\usepackage{graphicx,pdfpages}
\usepackage{arabtex}
\usetocstyle{KOMAScript}

All this can be deleted because LyX takes care of all these packages. If you explicitly add them to 
the preamble you can get compilation errors when viewing the PDF.


The next issue is that you set a graphics driver in the document settings. This is not recommended 
until you explicitly need a special one for your publisher.


Now comes your problem: In the document settings you may not set the language package to babel. 
XeTeX uses its own package called polyglossia and LyX will automatically use it but only if you are 
not forcing babel.
The Arabic parts must furthermore in the language Arabic(arabi), not in Arabic (arabtex). 
(arabtex is really awful for multi-language documents and can in general not be used when non-TeX 
fonts are used.) I updated the Wiki page now accordingly:

http://wiki.lyx.org/Windows/Arabic

As last issue you should consider to remove the typewriter font style from your Arabic to get a 
nicer output.


Attached is your fixed file. (I had to use there another font because I haven't 
your installed.)

regards Uwe


miniexample-fixed.lyx
Description: application/lyx


import tex-file to lyx with containing ERT-information

2013-05-15 Thread Tino Langer

Hallo,

from an own delevolped softwaretool I export statistics via tex-files, 
which I then import in lyx to use it in different documents. In a 
special case I generate tables and I want to format some table cells 
with the latex command \cellcolor. When I do this in lyx, I insert an 
ERT and insert the latex code.


My question is how the 'generated' latex-code have to be, that the 
tex2lyx-converter generates an ERT for the resulting lyx-file.


btw. - I'm working with lyx 2.0.5.

Many thanks for help! - Tino


Re: Problem with pdflatex with LyX 2.0.6 and Adobe XI

2013-05-15 Thread Uwe Stöhr

Am 14.05.2013 21:46, schrieb F. W.:


I just updated my LyX and Adobe Reader to 2.0.6 and XI, respective in
Windows 7 and to my chigrin, pdflatex no long creates a PDF.  I have
monitered the process with the task manager and pdflatex appears to close
normally, followed by pdfview.exe starting and ending shortly thereafter
(with no pdf being created).


I cannot reproduce the problem. What version of Adobe Reader do you have? Please try to update it to 
version 11.0.3.


If nothing helps, please try reinstalling LyX.

regards Uwe


Re: import tex-file to lyx with containing ERT-information

2013-05-15 Thread Uwe Stöhr

Am 15.05.2013 11:07, schrieb Tino Langer:


from an own delevolped softwaretool I export statistics via tex-files, which I 
then import in lyx to
use it in different documents. In a special case I generate tables and I want 
to format some table
cells with the latex command \cellcolor. When I do this in lyx, I insert an ERT 
and insert the latex
code.

My question is how the 'generated' latex-code have to be, that the 
tex2lyx-converter generates an
ERT for the resulting lyx-file.


tex2lyx generates TeX-code for all things it don't understand. So the easiest way is to leave 
everything as it is.

For the LaTeX code generated by LyX for your table, use the menu View-View 
Source.

regards Uwe


Re: Arabic not showing in right direction

2013-05-15 Thread Uwe Stöhr

Am 01.05.2013 13:21, schrieb Muhammed F. Bayraktar:


So here is an example file. It's the one I'm working with, only the first 
sentences and a random
arabic phrase.


Hi Muhammed,

your example file contains many preamble code that may cause problems. Please only use there things 
you know.

For example you have

\usepackage{xunicode,fontspec,xltxtra}
\usepackage{longtable,array,ragged2e, booktabs}
\usepackage{textcomp,url}
\usepackage{graphicx,pdfpages}
\usepackage{arabtex}
\usetocstyle{KOMAScript}

All this can be deleted because LyX takes care of all these packages. If you explicitly add them to 
the preamble you can get compilation errors when viewing the PDF.


The next issue is that you set a graphics driver in the document settings. This is not recommended 
until you explicitly need a special one for your publisher.


Now comes your problem: In the document settings you may not set the language package to babel. 
XeTeX uses its own package called polyglossia and LyX will automatically use it but only if you are 
not forcing babel.
The Arabic parts must furthermore in the language Arabic(arabi), not in Arabic (arabtex). 
(arabtex is really awful for multi-language documents and can in general not be used when non-TeX 
fonts are used.) I updated the Wiki page now accordingly:

http://wiki.lyx.org/Windows/Arabic

As last issue you should consider to remove the typewriter font style from your Arabic to get a 
nicer output.


Attached is your fixed file. (I had to use there another font because I haven't 
your installed.)

regards Uwe


miniexample-fixed.lyx
Description: application/lyx


import tex-file to lyx with containing ERT-information

2013-05-15 Thread Tino Langer

Hallo,

from an own delevolped softwaretool I export statistics via tex-files, 
which I then import in lyx to use it in different documents. In a 
special case I generate tables and I want to format some table cells 
with the latex command \cellcolor. When I do this in lyx, I insert an 
ERT and insert the latex code.


My question is how the 'generated' latex-code have to be, that the 
tex2lyx-converter generates an ERT for the resulting lyx-file.


btw. - I'm working with lyx 2.0.5.

Many thanks for help! - Tino


Re: Problem with pdflatex with LyX 2.0.6 and Adobe XI

2013-05-15 Thread Uwe Stöhr

Am 14.05.2013 21:46, schrieb F. W.:


I just updated my LyX and Adobe Reader to 2.0.6 and XI, respective in
Windows 7 and to my chigrin, pdflatex no long creates a PDF.  I have
monitered the process with the task manager and pdflatex appears to close
normally, followed by pdfview.exe starting and ending shortly thereafter
(with no pdf being created).


I cannot reproduce the problem. What version of Adobe Reader do you have? Please try to update it to 
version 11.0.3.


If nothing helps, please try reinstalling LyX.

regards Uwe


Re: import tex-file to lyx with containing ERT-information

2013-05-15 Thread Uwe Stöhr

Am 15.05.2013 11:07, schrieb Tino Langer:


from an own delevolped softwaretool I export statistics via tex-files, which I 
then import in lyx to
use it in different documents. In a special case I generate tables and I want 
to format some table
cells with the latex command \cellcolor. When I do this in lyx, I insert an ERT 
and insert the latex
code.

My question is how the 'generated' latex-code have to be, that the 
tex2lyx-converter generates an
ERT for the resulting lyx-file.


tex2lyx generates TeX-code for all things it don't understand. So the easiest way is to leave 
everything as it is.

For the LaTeX code generated by LyX for your table, use the menu View->View 
Source.

regards Uwe


Re: Arabic not showing in right direction

2013-05-15 Thread Uwe Stöhr

Am 01.05.2013 13:21, schrieb Muhammed F. Bayraktar:


So here is an example file. It's the one I'm working with, only the first 
sentences and a random
arabic phrase.


Hi Muhammed,

your example file contains many preamble code that may cause problems. Please only use there things 
you know.

For example you have

\usepackage{xunicode,fontspec,xltxtra}
\usepackage{longtable,array,ragged2e, booktabs}
\usepackage{textcomp,url}
\usepackage{graphicx,pdfpages}
\usepackage{arabtex}
\usetocstyle{KOMAScript}

All this can be deleted because LyX takes care of all these packages. If you explicitly add them to 
the preamble you can get compilation errors when viewing the PDF.


The next issue is that you set a graphics driver in the document settings. This is not recommended 
until you explicitly need a special one for your publisher.


Now comes your problem: In the document settings you may not set the language package to babel. 
XeTeX uses its own package called polyglossia and LyX will automatically use it but only if you are 
not forcing babel.
The Arabic parts must furthermore in the language "Arabic(arabi)", not in "Arabic (arabtex)". 
(arabtex is really awful for multi-language documents and can in general not be used when non-TeX 
fonts are used.) I updated the Wiki page now accordingly:

http://wiki.lyx.org/Windows/Arabic

As last issue you should consider to remove the typewriter font style from your Arabic to get a 
nicer output.


Attached is your fixed file. (I had to use there another font because I haven't 
your installed.)

regards Uwe


miniexample-fixed.lyx
Description: application/lyx