Re: Bug on tex2lyx with listings

2018-08-11 Thread Jürgen Spitzmüller
Am Samstag, den 11.08.2018, 12:36 +0100 schrieb José Abílio Matos: > On Friday, 10 August 2018 16.55.38 WEST Jürgen Spitzmüller wrote: > > Try this. > > > > Jürgen > > It works, thank you. :-) Very good. Committed. Candidate for stable. Jürgen signature.asc Description: This is a digitally s

Re: Bug on tex2lyx with listings

2018-08-11 Thread José Abílio Matos
On Friday, 10 August 2018 16.55.38 WEST Jürgen Spitzmüller wrote: > Try this. > > Jürgen It works, thank you. :-) -- José Abílio

Re: Bug on tex2lyx with listings

2018-08-10 Thread Jürgen Spitzmüller
Am Freitag, den 10.08.2018, 13:58 +0100 schrieb José Abílio Matos: > OK, with your patch the initial snippet works but not the attached. > That is > basically: > > \begin{lstlisting}% > >[str] = disp(x) > > > \end{lstlisting} > > latex has no problem with it. Try this. Jürgen > > Rega

Re: Bug on tex2lyx with listings

2018-08-10 Thread José Abílio Matos
On Friday, 10 August 2018 13.58.43 WEST José Abílio Matos wrote: > latex has no problem with it. FWIW I am aware that I am getting into weird corners. :-) To put things into perspective I am parsing a directory with .m files (octave/ matlab) to get the documentation and to generate automatically

Re: Bug on tex2lyx with listings

2018-08-10 Thread José Abílio Matos
On Wednesday, 8 August 2018 11.38.50 WEST Jürgen Spitzmüller wrote: > \begin{lstlistings} > [foo] > > reads [foo] as content, whereas > > \begin{lstlistings}% > [foo] > > or > > \begin{lstlistings}[foo, > bar] > > reads [foo...] as argument. > > Patch attached. Please test. > > It's possible

Re: Bug on tex2lyx with listings

2018-08-08 Thread Jürgen Spitzmüller
Am Mittwoch, den 08.08.2018, 08:53 +0100 schrieb José Abílio Matos: > Consider the following tex file: > > \documentclass{scrbook} > \usepackage{listings} > \lstset{language=Octave} > > \begin{document} > \begin{lstlisting} > [x,y] = nice_fun(a,b); > \end{lstlisting} > \end{document} >

Re: Bug on tex2lyx with listings

2018-08-08 Thread Jürgen Spitzmüller
Am Mittwoch, den 08.08.2018, 08:53 +0100 schrieb José Abílio Matos: > Is this known? Should I add a new tracker issue? No. Yes, please. Jürgen > > Regards, signature.asc Description: This is a digitally signed message part