Hello, I would like to put some inline code examples in Tk and Python into a table in LyX. Everything was fine & smooth until I tried to render PDF from that. Lot of errorz... :-E
But I looked into the latex code generated for that part of text I
wrote and mix with tables and inline listings... And what I saw
terrified me a litte. I firstly suspected exclamation mark after
\lstinline than before. It seems the code example below that LyX
(1.6.6.1 under Windows XP) generates won't compile by pdflatex...
I put minimal example in attachment.
Now the VERY IMPORTANT QUESTION is that: Is this a feature of LyX
doing something like this? Or a bug with hope to a quite quick repair
in one of new versions?
Maybe any of you could suggest a better method for typesetting what I
want to achive: tk command, an arrow and python command in one verse
nicely aligned. All couple verses should have same alignment on the
pages.
Thanks for your help.
---- CUT ---
Polecenia Tk dotyczące klas odpowiadają konstruktorom w Tkinter, na
przykład:
\begin{tabular}{>{\raggedright}p{0.3\columnwidth}>{\raggedright}p{0.1\columnwidth}>{\raggedright}p{0.3\columnwidth}}
\inputencoding{latin2}\lstinline[language={[tk]tcl}]!button
.fred!\inputencoding{utf8x} & $\longrightarrow$ &
\inputencoding{latin2}\lstinline[language=Python]!fred =
Button()!\inputencoding{utf8x}\tabularnewline
\end{tabular}
Nadrzędny obiekt jest określany tylko przez nazwę nadaną mu podczas
tworzenia. W Tkinter jest to wyraźnie określone zmienną przechowującą
referencję do tego obiektu:
---- CUT ----
--
Manveru
jabber: [email protected]
gg: 1624001
http://www.manveru.pl
minimal.lyx
Description: Binary data
