Re: import tex-file to lyx with containing ERT-information
Hello Uwe, I tried it with the following snippet of tex-code ... \multicolumn{6}{|l|}{\cellcolor[gray]{0.7}HIER EIN TEXT}\tabularnewline ... Here, \cellcolor[gray]{0.7} should be surrounded by an ERT. But in LyX it isn't it. Have it to be marked as one command? Many thanks - Tino Am 15.05.2013 23:55, schrieb 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: import tex-file to lyx with containing ERT-information
Am 16.05.2013 22:07, schrieb Tino Langer: I tried it with the following snippet of tex-code ... \multicolumn{6}{|l|}{\cellcolor[gray]{0.7}HIER EIN TEXT}\tabularnewline ... Here, \cellcolor[gray]{0.7} should be surrounded by an ERT. But in LyX it isn't it. Have it to be marked as one command? You found a bug. Attached is the original LyX-file. When you export this to TeX you get the attached TeX file. When you import the TeX file (which contains your command), you get the attached result. And in the result the square brackets are indeed not in TeX-code so the document is uncompilable. Could you please report this bug to our bugtracker: http://www.lyx.org/trac/wiki/BugTrackerHome (set the component to tex2lyx and CC uwestoehr) regards Uwe %% LyX 2.0.6 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[english]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \makeatletter %% LyX specific LaTeX commands. %% Because html converters don't know tabularnewline \providecommand{\tabularnewline}{\\} %% User specified LaTeX commands. \usepackage{colortbl} \makeatother \usepackage{babel} \begin{document} \begin{tabular}{|cc|} \multicolumn{6}{|c|}{\cellcolor[gray]{0.7}HIER EIN TEXT}\tabularnewline \tabularnewline \end{tabular} \end{document} tex2lyx-original.lyx Description: application/lyx tex2lyx-test.lyx Description: application/lyx
Re: import tex-file to lyx with containing ERT-information
Hello Uwe, I tried it with the following snippet of tex-code ... \multicolumn{6}{|l|}{\cellcolor[gray]{0.7}HIER EIN TEXT}\tabularnewline ... Here, \cellcolor[gray]{0.7} should be surrounded by an ERT. But in LyX it isn't it. Have it to be marked as one command? Many thanks - Tino Am 15.05.2013 23:55, schrieb 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: import tex-file to lyx with containing ERT-information
Am 16.05.2013 22:07, schrieb Tino Langer: I tried it with the following snippet of tex-code ... \multicolumn{6}{|l|}{\cellcolor[gray]{0.7}HIER EIN TEXT}\tabularnewline ... Here, \cellcolor[gray]{0.7} should be surrounded by an ERT. But in LyX it isn't it. Have it to be marked as one command? You found a bug. Attached is the original LyX-file. When you export this to TeX you get the attached TeX file. When you import the TeX file (which contains your command), you get the attached result. And in the result the square brackets are indeed not in TeX-code so the document is uncompilable. Could you please report this bug to our bugtracker: http://www.lyx.org/trac/wiki/BugTrackerHome (set the component to tex2lyx and CC uwestoehr) regards Uwe %% LyX 2.0.6 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[english]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \makeatletter %% LyX specific LaTeX commands. %% Because html converters don't know tabularnewline \providecommand{\tabularnewline}{\\} %% User specified LaTeX commands. \usepackage{colortbl} \makeatother \usepackage{babel} \begin{document} \begin{tabular}{|cc|} \multicolumn{6}{|c|}{\cellcolor[gray]{0.7}HIER EIN TEXT}\tabularnewline \tabularnewline \end{tabular} \end{document} tex2lyx-original.lyx Description: application/lyx tex2lyx-test.lyx Description: application/lyx
Re: import tex-file to lyx with containing ERT-information
Hello Uwe, I tried it with the following snippet of tex-code ... \multicolumn{6}{|l|}{\cellcolor[gray]{0.7}HIER EIN TEXT}\tabularnewline ... Here, \cellcolor[gray]{0.7} should be surrounded by an ERT. But in LyX it isn't it. Have it to be marked as one command? Many thanks - Tino Am 15.05.2013 23:55, schrieb 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: import tex-file to lyx with containing ERT-information
Am 16.05.2013 22:07, schrieb Tino Langer: I tried it with the following snippet of tex-code ... \multicolumn{6}{|l|}{\cellcolor[gray]{0.7}HIER EIN TEXT}\tabularnewline ... Here, \cellcolor[gray]{0.7} should be surrounded by an ERT. But in LyX it isn't it. Have it to be marked as one command? You found a bug. Attached is the original LyX-file. When you export this to TeX you get the attached TeX file. When you import the TeX file (which contains your command), you get the attached result. And in the result the square brackets are indeed not in TeX-code so the document is uncompilable. Could you please report this bug to our bugtracker: http://www.lyx.org/trac/wiki/BugTrackerHome (set the component to "tex2lyx" and CC "uwestoehr") regards Uwe %% LyX 2.0.6 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[english]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \makeatletter %% LyX specific LaTeX commands. %% Because html converters don't know tabularnewline \providecommand{\tabularnewline}{\\} %% User specified LaTeX commands. \usepackage{colortbl} \makeatother \usepackage{babel} \begin{document} \begin{tabular}{|cc|} \multicolumn{6}{|c|}{\cellcolor[gray]{0.7}HIER EIN TEXT}\tabularnewline & & & & & \tabularnewline \end{tabular} \end{document} tex2lyx-original.lyx Description: application/lyx tex2lyx-test.lyx Description: application/lyx
import tex-file to lyx with containing ERT-information
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: import tex-file to lyx with containing ERT-information
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
import tex-file to lyx with containing ERT-information
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: import tex-file to lyx with containing ERT-information
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
import tex-file to lyx with containing ERT-information
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: import tex-file to lyx with containing ERT-information
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