Re: Formatting Python code

2022-05-30 Thread Dr Eberhard Lisse
STOP. USING. ERT! :-)-O In Settings -> Document -> Listings you can set things into the window which wind up in the generated tex file as \lstset{} greetings, el On 2022-05-27 23:20 , Rich Shepard wrote: On Fri, 27 May 2022, Rich Shepard wrote: Thanks for the pointer. Paul, Since all the

Re: Exercises at end of sections

2022-05-30 Thread Tobias Hilbricht
Am Montag, dem 30.05.2022 um 05:38 -0500 schrieb Joseph Hesse: > Hello, > I am writing a text book and want to have numbered exercises at the > end > of each section. Please point me to the docs or packages that will > let > me do this. > Thank you, > Joe Hesse > Joe, for numbered exercises o

Re: Formatting Python code

2022-05-30 Thread Rich Shepard
On Mon, 30 May 2022, Rich Shepard wrote: That's interesting. I don't find "showspaces" anywhere in the document settings. Where do I turn it off? Herbert, Found it: Edit -> Listing settings -> Style -> Space in string as symbols. Thanks again, Rich -- lyx-users mailing list lyx-users@lists.

Re: Formatting Python code

2022-05-30 Thread Rich Shepard
On Mon, 30 May 2022, Herbert Voss wrote: you have set the listings option "showspaces" and also one indention with spaces instead of tabs. "showspaces" makes no sense with python code. Herbert, That's interesting. I don't find "showspaces" anywhere in the document settings. Where do I turn i

Re: Formatting Python code

2022-05-30 Thread Rich Shepard
On Mon, 30 May 2022, Herbert Voss wrote: It _does_ support tab characters, e.g. Herbert, But not in the Tkinter widget code documentation I'm making into a readable format using LyX. The small space character issue in the pdflatex output is associated with the Python-3.6+ formatted strings;

Re: Formatting Python code

2022-05-30 Thread Herbert Voss
Am 30.05.22 um 15:38 schrieb Rich Shepard: Here's an issue that's appeared twice (so far) in the document and I cannot find the reason. you have set the listings option "showspaces" and also one indention with spaces instead of tabs. "showspaces" makes no sense with python code. Herbert

Re: Formatting Python code

2022-05-30 Thread Rich Shepard
Here's an issue that's appeared twice (so far) in the document and I cannot find the reason. The *.lyx code in a Program Listing environment looks like this: - \begin_layout Plain Layout self.sheet = Sheet(self.frame, \end_layout \begin_layout Plain Layout

Re: Formatting Python code

2022-05-30 Thread Herbert Voss
Am 30.05.22 um 14:48 schrieb Rich Shepard: I learned the reason for the spacing issues is that the program listing environment does not support tabs for white space, only spaces. Kinda' hard on the keyboard's space bar. :-) It _does_ support tab characters, e.g. \documentclass{article} \u

Re: Exercises at end of sections

2022-05-30 Thread Ricardo Berlasso
El lun, 30 may 2022 a las 12:39, Joseph Hesse () escribió: > Hello, > I am writing a text book and want to have numbered exercises at the end > of each section. Please point me to the docs or packages that will let > me do this. > Thank you, > Joe Hesse > I've never used it, but you can try with

Re: Exercises at end of sections

2022-05-30 Thread Rich Shepard
On Mon, 30 May 2022, Joseph Hesse wrote: I am writing a text book and want to have numbered exercises at the end of each section.  Please point me to the docs or packages that will let me do this. Joe, While there's probably a better way, my first thought is to use the Enumerate environment a

Re: Formatting Python code

2022-05-30 Thread Rich Shepard
On Fri, 27 May 2022, Paul A. Rubin wrote: If the code was copied from outside LyX and pasted in, maybe there are some stray nonprinting characters and/or one of the supposed end-of-line characters is borked. The simplest way to test this would be to backspace over the offending commas and surrou

Exercises at end of sections

2022-05-30 Thread Joseph Hesse
Hello, I am writing a text book and want to have numbered exercises at the end of each section.  Please point me to the docs or packages that will let me do this. Thank you, Joe Hesse -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users