Solved: using program listings in beamer

2024-10-09 Thread Neal Becker
Seems I found the answer. To use program listing in a beamer slide (or verbatim) you need to use the frame option [fragile] -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users

Re: listings interrupted by figure in pdf output

2023-05-22 Thread Herbert Voss
script book? Wolfgang, enable the option "float"  (Gleitobjekt) in the listings menue. or put the listing into a minipage. However, this can lead to a lot of whitespace on one page. Herbert Thanks, Herbert. However, I could not find a listings menue, where I could enable the float opt

Re: listings interrupted by figure in pdf output

2023-05-22 Thread Wolfgang Engelmann
float"  (Gleitobjekt) in the listings menue. or put the listing into a minipage. However, this can lead to a lot of whitespace on one page. Herbert Thanks, Herbert. However, I could not find a listings menue, where I could enable the float option. If I put the listing in a box (minipa

Re: listings interrupted by figure in pdf output

2023-05-22 Thread Herbert Voss
Am 22.05.23 um 14:22 schrieb Wolfgang Engelmann: How can one avoid the interruption of a listing (used instead of an algorithm, because of its length) by a figure in the pdf output of a koma script book? Wolfgang, enable the option "float"  (Gleitobjekt) in the listings menue.

listings interrupted by figure in pdf output

2023-05-22 Thread Wolfgang Engelmann
How can one avoid the interruption of a listing (used instead of an algorithm, because of its length) by a figure in the pdf output of a koma script book? Wolfgang -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users

how to list listings

2023-04-28 Thread Wolfgang Engelmann
For long algorithms (exceeding a page) I use a listing. 1. How can I make it to appear in the Contents? 2. And how can I avoid, that in the pdf output figures are inserted in the Listing output? Listing . . . Fig. x continued Listing . . . Wolfgang -- lyx-users mailing list lyx-users@lists.l

Re: Create a custom inset for the listings package

2022-03-03 Thread Jürgen Spitzmüller via lyx-users
Am Donnerstag, dem 03.03.2022 um 16:13 + schrieb tush via lyx- users: > I want to create a custom inset for the listings package. > > The LaTeX command for displayed code should be as follows: > > \lstinline$code goes here$ > or > \lstinline!code goes here! > >

Create a custom inset for the listings package

2022-03-03 Thread tush via lyx-users
I want to create a custom inset for the listings package. The LaTeX command for displayed code should be as follows: \lstinline$code goes here$ or \lstinline!code goes here! ( Sometimes it is better to type the code inside $$ or !! instead of {} ) How can I tell lyx that ! or $ should be the

Re: Program Listings

2022-01-13 Thread Joel Kulesza via lyx-users
you "completions" and/or > choices. Color is mentioned in the LaTeX Listings manual. > > greetings, el > > On 2022-01-14 05:32 , Joseph Hesse via lyx-users wrote: > > On 1/13/22 21:11, Herbert Voss wrote: > >> Joseph Hesse via lyx-users schrieb: > >>>

Re: Program Listings

2022-01-13 Thread Dr Eberhard Lisse via lyx-users
it after the path will appear there. Please note the Caption, Label and the parameters. If you enter something on the right the left will show you "completions" and/or choices. Color is mentioned in the LaTeX Listings manual. greetings, el On 2022-01-14 05:32 , Joseph Hesse via lyx-users

Re: Program Listings

2022-01-13 Thread Joseph Hesse via lyx-users
On 1/13/22 21:11, Herbert Voss wrote: Joseph Hesse via lyx-users schrieb: On 1/12/22 15:00, Herbert Voss via lyx-users wrote: Use /Insert -> Program Listing/ option. I tried what you suggested.  I right clicked on the inset and could not find an option where I could specify where my code list

Re: Program Listings

2022-01-13 Thread Paul A. Rubin via lyx-users
On 1/12/22 7:22 AM, Joseph Hesse via lyx-users wrote: I am writing a programing book and want to have programs that have been prepared with a text editor included in the book.  This is what I have done so far. Insert->File->Child Document File: CodeListings/Test.cpp Include Type: Program List

Re: Program Listings

2022-01-13 Thread Herbert Voss via lyx-users
Joseph Hesse via lyx-users schrieb: > On 1/12/22 15:00, Herbert Voss via lyx-users wrote: >> >> Use /Insert -> Program Listing/ option. >> > > I tried what you suggested.  I right clicked on the inset and could not > find an option where I could specify where my code listing are located. What do

Re: Program Listings

2022-01-13 Thread Dr Eberhard Lisse via lyx-users
RTFM of the LaTeX Listings package I would use a single word for the label or separate ords with ':' ie something like first:program. If that's the culprit, we should file an improvement request (ie checking for spaces from within LyX). Generally speaking attaching a MWE is very

Re: Program Listings

2022-01-12 Thread Joseph Hesse via lyx-users
On 1/12/22 15:00, Herbert Voss via lyx-users wrote: Am 12.01.22 um 13:22 schrieb Joseph Hesse via lyx-users: I am writing a programing book and want to have programs that have been prepared with a text editor included in the book.  This is what I have done so far. Insert->File->Child Docume

Re: Program Listings

2022-01-12 Thread Herbert Voss via lyx-users
Am 12.01.22 um 13:22 schrieb Joseph Hesse via lyx-users: I am writing a programing book and want to have programs that have been prepared with a text editor included in the book.  This is what I have done so far. Insert->File->Child Document File: CodeListings/Test.cpp Include Type: Program

Program Listings

2022-01-12 Thread Joseph Hesse via lyx-users
I am writing a programing book and want to have programs that have been prepared with a text editor included in the book.  This is what I have done so far. Insert->File->Child Document File: CodeListings/Test.cpp Include Type: Program Listing Caption: My Caption Label: First Program More Para

Re: Code listings in colored boxes

2018-04-06 Thread lloyd
y, April 5, 2018 10:32pm To: "Lloyd Prentice" Cc: "mailing lyx" Subject: Re: Code listings in colored boxes On Wed, Apr 4, 2018 at 10:30 AM, wrote: > Hello, > > Just a note of hearty thanks to all for support of Lyx and Lyx users. And > an apology if I inadvertently

Re: Code listings in colored boxes

2018-04-05 Thread Joel Kulesza
On Wed, Apr 4, 2018 at 10:30 AM, wrote: > Hello, > > Just a note of hearty thanks to all for support of Lyx and Lyx users. And > an apology if I inadvertently abused list etiquette. > > I've attached a piece that I wrote to document the solution to the code > listing problem that I posed on the l

Re: Code listings in colored boxes

2018-04-05 Thread lloyd
11:00pm To: "Kornel Benko" Cc: lyx-users@lists.lyx.org, ll...@writersglen.com Subject: Re: Code listings in colored boxes On Wed, Apr 04, 2018 at 05:27:34PM +, Kornel Benko wrote: > Wow! This attached document would be pretty good as a lyx-preface. Lloyd almost makes it feel like we

Re: Code listings in colored boxes

2018-04-05 Thread Paul A. Rubin
On 04/04/2018 10:57 PM, Scott Kostyshak wrote: On Wed, Apr 04, 2018 at 04:30:35PM +, ll...@writersglen.com wrote: Hello, Just a note of hearty thanks to all for support of Lyx and Lyx users. And an apology if I inadvertently abused list etiquette. I don't think you did. I am just picky an

Re: Code listings in colored boxes

2018-04-05 Thread Jean-Marc Lasgouttes
Le 05/04/2018 à 05:00, Scott Kostyshak a écrit : On Wed, Apr 04, 2018 at 05:27:34PM +, Kornel Benko wrote: Wow! This attached document would be pretty good as a lyx-preface. Lloyd almost makes it feel like we are on an adventure! It has the perfect mix of humor, information, and beautiful

Re: Code listings in colored boxes

2018-04-04 Thread Scott Kostyshak
On Wed, Apr 04, 2018 at 05:27:34PM +, Kornel Benko wrote: > Wow! This attached document would be pretty good as a lyx-preface. Lloyd almost makes it feel like we are on an adventure! It has the perfect mix of humor, information, and beautiful writing. Well done! Scott signature.asc Descrip

Re: Code listings in colored boxes

2018-04-04 Thread Scott Kostyshak
On Wed, Apr 04, 2018 at 04:30:35PM +, ll...@writersglen.com wrote: > Hello, > > Just a note of hearty thanks to all for support of Lyx and Lyx users. And an > apology if I inadvertently abused list etiquette. I don't think you did. I am just picky and do not like to leave threads hanging wit

Re: Code listings in colored boxes

2018-04-04 Thread Kornel Benko
k" > Sent: Wednesday, April 4, 2018 11:49am > To: "Paul A. Rubin" > Cc: lyx-users@lists.lyx.org, ll...@writersglen.com > Subject: Re: Code listings in colored boxes > > On Wed, Apr 04, 2018 at 12:56:33PM +, Paul A. Rubin wrote: > > Sorry. Lloyd got bac

Re: Code listings in colored boxes

2018-04-04 Thread Scott Kostyshak
On Wed, Apr 04, 2018 at 12:56:33PM +, Paul A. Rubin wrote: > Sorry. Lloyd got back to me directly and we sorted it out off the list. I > meant to come back and close the thread but forgot. No problem! Thanks for the update. Good job figuring out the issue. I will let this thread rest peaceful

Re: Code listings in colored boxes

2018-04-04 Thread Paul A. Rubin
On 04/03/2018 10:28 PM, Scott Kostyshak wrote: On Sun, Feb 25, 2018 at 12:49:47AM +, Paul A. Rubin wrote: On 02/24/2018 02:40 PM, ll...@writersglen.com wrote: Hello, I've been struggling to format attractive code listings. The boxes in the attached mini-lyx document show my f

Re: Code listings in colored boxes

2018-04-03 Thread Scott Kostyshak
On Sun, Feb 25, 2018 at 12:49:47AM +, Paul A. Rubin wrote: > On 02/24/2018 02:40 PM, ll...@writersglen.com wrote: > > > > Hello, > > > > I've been struggling to format attractive code listings. The boxes in > > the attached mini-lyx document show my fee

Re: Code listings in colored boxes

2018-02-24 Thread Paul A. Rubin
On 02/24/2018 02:40 PM, ll...@writersglen.com wrote: Hello, I've been struggling to format attractive code listings. The boxes in the attached mini-lyx document show my feeble attempts so far. Box 2 is close to what I want, but has numerous problems: 1. Rather than red and white, I&#

Code listings in colored boxes

2018-02-24 Thread lloyd
Hello,   I've been struggling to format attractive code listings. The boxes in the attached mini-lyx document show my feeble attempts so far.   Box 2 is close to what I want, but has numerous problems:   1. Rather than red and white, I'd want black and light gray 2. I'd like width t

Re: Need to display computer code listings with normal, bold, and strikeout display

2018-01-22 Thread Kornel Benko
Am Montag, 22. Januar 2018 um 13:15:03, schrieb ll...@writersglen.com > Hello, > > Responding to Scott's suggestion, I've attached *.lyx and *.pdf files that > illustrate what we're trying to accomplish. > > As you can see, the computer code marked as bold displays correctly in the > lyx edit

Re: Need to display computer code listings with normal, bold, and strikeout display

2018-01-22 Thread Joel Kulesza
On Mon, Jan 22, 2018 at 11:15 AM, wrote: > My web research suggests that lyx on XeTex or LuaTex would enable me to > select a more appropriate font family. But I hesitate for two reasons: > > > > 1. Replacing my LaTex system sounds like major surgery with unknown > consequences > > 2. I fear that

Re: Need to display computer code listings with normal, bold, and strikeout display -- SOLVED!

2018-01-22 Thread lloyd
Hello again,   I just discovered that I can display bold code listings in my *.pdf document by selecting Courier as the Typewriter font in Settings.   Thanks all for help.   Lloyd     Hello,   Responding to Scott's suggestion, I've attached *.lyx and *.pdf files that illustrate what we

Re: Need to display computer code listings with normal, bold, and strikeout display

2018-01-22 Thread lloyd
Hello,   Responding to Scott's suggestion, I've attached *.lyx and *.pdf files that illustrate what we're trying to accomplish.   As you can see, the computer code marked as bold displays correctly in the lyx editor, but does not display as bold in the *.pdf file.   I understand that this is becaus

Re: Need to display computer code listings with normal, bold, and strikeout display

2018-01-21 Thread Scott Kostyshak
On Mon, Jan 22, 2018 at 12:17:57AM +, ll...@writersglen.com wrote: > > Hello, > > Four questions: > > I'm developing a technical book in which I need to display computer code > listings with normal, bold, and strikeout display, but this doesn't seem &g

Need to display computer code listings with normal, bold, and strikeout display

2018-01-21 Thread lloyd
Hello, Four questions: I'm developing a technical book in which I need to display computer code listings with normal, bold, and strikeout display, but this doesn't seem possible with my version of lyx/LaTex. I'm using: lyx - version 2.2.3 TexLive 2015 (I think, but do

Re: LyX truncates spacing in Local Layout and in Listings

2017-07-30 Thread Richard Heck
On 07/28/2017 05:21 AM, haim.ros...@gmail.com wrote: > > I noticed that whenever I enter contents to > > * Document -> Settings -> Local Layout > > * Document -> Settings -> Listings > > * Program Listings Inset -> Settings -> Advanced > > All the

LyX truncates spacing in Local Layout and in Listings

2017-07-28 Thread haim.rosner
I noticed that whenever I enter contents to * Document -> Settings -> Local Layout * Document -> Settings -> Listings * Program Listings Inset -> Settings -> Advanced All the leading tabs are deleted by the validation. This disturbs the reading of this content. Is there any

Re: How to highlight a specific line inside a Program Listings?

2015-12-04 Thread Paul Smith
t; > On 4 December 2015 at 10:03, Paul Smith wrote: >> >> Thanks, John. Could you please post here your example? >> >> Paul >> >> >> On Fri, Dec 4, 2015 at 2:22 PM, John Kane wrote: >> > >> > http://tex.stackexchange.com/questions/19806

Re: How to highlight a specific line inside a Program Listings?

2015-12-04 Thread John Kane
ec 4, 2015 at 2:22 PM, John Kane wrote: > > > http://tex.stackexchange.com/questions/198064/highlighting-a-line-in-program-listings-in-lyx > > seems to work. Or, at least, I got it to work with about 15 minutes > > fiddling. > > > > On 4 December 2015 at 08:00,

Re: How to highlight a specific line inside a Program Listings?

2015-12-04 Thread Paul Smith
Thanks, John. Could you please post here your example? Paul On Fri, Dec 4, 2015 at 2:22 PM, John Kane wrote: > http://tex.stackexchange.com/questions/198064/highlighting-a-line-in-program-listings-in-lyx > seems to work. Or, at least, I got it to work with about 15 minutes > fiddlin

Re: How to highlight a specific line inside a Program Listings?

2015-12-04 Thread John Kane
http://tex.stackexchange.com/questions/198064/highlighting-a-line-in-program-listings-in-lyx seems to work. Or, at least, I got it to work with about 15 minutes fiddling. On 4 December 2015 at 08:00, Paul Smith wrote: > Dear All, > > Is there some way fo accomplish this in LyX? >

How to highlight a specific line inside a Program Listings?

2015-12-04 Thread Paul Smith
Dear All, Is there some way fo accomplish this in LyX? Thanks in advance, Paul

Re: listings package options

2013-09-30 Thread Michael Bach
get it why the article documentclass shouldn't be supported. Will contact the listings maintainer.

Re: listings package options

2013-09-30 Thread Michael Bach
Hi Olivier, Thanks for your comment. On 9/30/13 5:23 PM, Olivier Ripoll wrote:> On 30.09.2013 13:57, Michael Bach wrote: >> Dear LyX Users and Developers, >> >> I would like to add the numberbychapter=true option to the listings >> package for the code listings. I loo

Re: listings package options

2013-09-30 Thread Olivier Ripoll
On 30.09.2013 13:57, Michael Bach wrote: Dear LyX Users and Developers, I would like to add the numberbychapter=true option to the listings package for the code listings. I looked around but did not find a GUI option for it. I found a related issue [1] where the advice was to file a feature

listings package options

2013-09-30 Thread Michael Bach
Dear LyX Users and Developers, I would like to add the numberbychapter=true option to the listings package for the code listings. I looked around but did not find a GUI option for it. I found a related issue [1] where the advice was to file a feature request to add options to packages already

Re: Strange bug with inputenc, listings and a character in UTF8 in a document header

2012-06-10 Thread Jürgen Spitzmüller
do not have to put the cursor _in_ the listings, but select the whole listings inset from outside. > Btw, why the problem occurs only sometimes? I suppose it depends whether the encoding is active when the header is written (at page break?) or not. Jürgen > Regards > Marcin

Re: Strange bug with inputenc, listings and a character in UTF8 in a document header

2012-06-09 Thread Marcin Zajączkowski
TF8 encoding in a document. Problem >> reproducible with Lyx 2.0.3 and a following document: >> http://timeoff.wsisiz.edu.pl/tmp/mla/problem-with-inputenc-and-listings.lyx > > The problem results from the fact that LyX has to switch to latin9 > (the default encoding of your document&

Re: Strange bug with inputenc, listings and a character in UTF8 in a document header

2012-06-09 Thread Jürgen Spitzmüller
3 and a following document: > http://timeoff.wsisiz.edu.pl/tmp/mla/problem-with-inputenc-and-listings.lyx The problem results from the fact that LyX has to switch to latin9 (the default encoding of your document's main language, English) for listings (since listings does not support unicode),

Strange bug with inputenc, listings and a character in UTF8 in a document header

2012-06-09 Thread Marcin Zajączkowski
Hi, I have a strange problem with inputenc. I've got it accidentally updating my document in some place which looks to be not related to the problem (a listing that doesn't have offending character). I'm unable to write more text before that place to not to get that error: ! Package inputenc Erro

Re: parameters of listings insets

2012-05-01 Thread Allen Barker
On 04/30/2012 09:18 PM, Richard Heck wrote: On 04/30/2012 07:41 PM, Allen Barker wrote: On 04/30/2012 07:20 PM, Allen Barker wrote: The listings insets (at least in 2.0.3) always seem to alphabetize their list of "More Parameters." Is there a way to avoid that? The Latex li

Re: parameters of listings insets

2012-04-30 Thread Richard Heck
On 04/30/2012 07:41 PM, Allen Barker wrote: On 04/30/2012 07:20 PM, Allen Barker wrote: The listings insets (at least in 2.0.3) always seem to alphabetize their list of "More Parameters." Is there a way to avoid that? The Latex listings are sensitive to the position of their paramete

Re: parameters of listings insets

2012-04-30 Thread Allen Barker
On 04/30/2012 07:20 PM, Allen Barker wrote: The listings insets (at least in 2.0.3) always seem to alphabetize their list of "More Parameters." Is there a way to avoid that? The Latex listings are sensitive to the position of their parameters, so you can define, say, a new language (f

parameters of listings insets

2012-04-30 Thread Allen Barker
The listings insets (at least in 2.0.3) always seem to alphabetize their list of "More Parameters." Is there a way to avoid that? The Latex listings are sensitive to the position of their parameters, so you can define, say, a new language (from a base language) and then selectivel

Re: Using listings with beamer class

2012-03-12 Thread Eugene Dzhurinsky
On Sun, Mar 11, 2012 at 10:02:30PM +, Paul A. Rubin wrote: > There is a custom module you can download from > http://wiki.lyx.org/Layouts/Modules#toc9 that allows you to add fragile frames > (thanks to Liviu Andronic). You can also do the entire frame (including begin > and end commands) in ra

Re: Using listings with beamer class

2012-03-11 Thread Paul A . Rubin
There is a custom module you can download from http://wiki.lyx.org/Layouts/Modules#toc9 that allows you to add fragile frames (thanks to Liviu Andronic). You can also do the entire frame (including begin and end commands) in raw LaTeX within LyX (Insert > TeX code or Ctrl-L). Unfortunately, the w

Using listings with beamer class

2012-03-09 Thread Eugene Dzhurinsky
Hi, all! I am trying to prepare short presentation using Beamer and Listings LaTeX packages. If I include LaTeX code snippet (example one from http://anteru.net/2008/09/15/269/): \begin{frame}[fragile] \frametitle{Your title} \begin{lstlisting} code \end{lstlisting} \end{frame} into document

Re: Remove indents in listings

2011-12-30 Thread jezZiFeR
Hello Jürgen, now I took my time and installed everything completely new, also the complete TeX 2011, and also updated enumitem. Now things work fine, as you desribed. Thank you for your help, best wishes for 2012 Jess Am 28.12.2011 um 10:49 schrieb Jürgen Spitzmüller: jezZiFeR wrote:

Re: Remove indents in listings

2011-12-28 Thread Jürgen Spitzmüller
jezZiFeR wrote: > Here is my log file, I don´t see any warnings for enumitem Me neither. I've no idea why it does not work for you. Maybe it is really an enumitem version issue. Try updating the enumitem package (most recent one is 3.5.2). HTH Jürgen

Re: Remove indents in listings

2011-12-28 Thread jezZiFeR
Here is my log file, I don´t see any warnings for enumitem, but maybe there are. Thanks again Jess {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540 {\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;} \paperw11900\paperh16840\margl1440\margr1440\vieww9000\viewh8400\

Re: Remove indents in listings

2011-12-28 Thread jezZiFeR
Spitzmüller: jezZiFeR wrote: Now I have tried the same: I cleaned the whole preamble, switched to standard fonts, removed all modules and the branches – but still it dooes not work for me. What I want to achieve, is that the paragraph style listings/Itemize I have the same indentation as in the

Re: Remove indents in listings

2011-12-28 Thread Jürgen Spitzmüller
jezZiFeR wrote: > Now I have tried the same: I cleaned the whole preamble, switched to > standard fonts, removed all modules and the branches – but still it > dooes not work for me. What I want to achieve, is that the paragraph > style listings/Itemize I have the same indentation as

Re: Remove indents in listings

2011-12-27 Thread jezZiFeR
Here is a minimal example document. Thank you! test.lyx Description: Binary data Am 27.12.2011 um 17:38 schrieb Jürgen Spitzmüller: jezZiFeR wrote: Again I do have no results, neither with Richard’s nor with your version, [which should do, as I only need to have the left margin se

Re: Remove indents in listings

2011-12-27 Thread Jürgen Spitzmüller
jezZiFeR wrote: > Again I do have no results, neither with Richard’s nor with your > version, [which should do, as I only need to have the left margin set]. Then we need a minimal example document. The recommended settngs work for me with KOMA report. > Maybe there has something to be set for

Re: Remove indents in listings

2011-12-27 Thread jezZiFeR
Hmmm, thank you both. Again I do have no results, neither with Richard’s nor with your version, [which should do, as I only need to have the left margin set]. Maybe there has something to be set for the different layers of »Itemize« (which could be edited in the prefs/signs of listing (in

Re: Remove indents in listings

2011-12-27 Thread Richard Heck
On 12/27/2011 10:22 AM, jezZiFeR wrote: Sorry, I mean in the formatting, I’m not sure, wether »listings« is the correct word. I mean the enumeration-format, which works without numbers, just as a listing. I hope, that is clearer… I did something similar in one case using the following

Re: Remove indents in listings

2011-12-27 Thread Richard Heck
On 12/27/2011 06:13 AM, jezZiFeR wrote: Hello, I use report (Koma-Script) und would like to remove the indentation in the listings. How could I achieve that? Are you talking about program listings, or something else? Richard

Remove indents in listings

2011-12-27 Thread jezZiFeR
Hello, I use report (Koma-Script) und would like to remove the indentation in the listings. How could I achieve that? Thanks Jess

Re: Problem with 'extendedchars' in listings [solved]

2011-12-08 Thread Francesc Gispert Sanchez
t; I need to include some Python code in my work, so I decided to use the > listings package. But I have come across a problem I do not know how to > solve: when I export my document to a PDF with pdflatex, the double > quotation marks do not look as expected: it appears something lik

Problem with 'extendedchars' in listings

2011-12-07 Thread Francesc Gispert Sanchez
Dear Sirs and Madams, I need to include some Python code in my work, so I decided to use the listings package. But I have come across a problem I do not know how to solve: when I export my document to a PDF with pdflatex, the double quotation marks do not look as expected: it appears something

RE: How to use short dashes in program listings?

2011-08-06 Thread Helge Hafting
>I don't understand why the minus sign "-" isn't properly converted by latex. >Is there a way to correct this without escaping to latex, as you suggested? This does not happen with program listings when I try. The "--" construct becomes a long dash only in pla

Re: How to use short dashes in program listings?

2011-08-04 Thread Rodrigo Fresneda
Hi, I don't understand why the minus sign "-" isn't properly converted by latex. Is there a way to correct this without escaping to latex, as you suggested? best regards, rodrigo. On Sat, Dec 11, 2010 at 3:26 PM, Paul A. Rubin wrote: > Nikos Chantziaras arcor.de> writes: > > > > > When inser

Re: caption in listings

2011-05-09 Thread Paul Rubin
Neal Becker gmail.com> writes: > > View source says: > > \begin{lstlisting}[caption={Inverse Parabolic Timing > Interpolation},label={lis:Inverse-Parabolic- > Timing},basicstyle= {\footnotesize},breaklines=true,float,frame=lines,language=Python] > > So, sounds like problem with lstlisting pac

Re: caption in listings

2011-05-08 Thread Paul A . Rubin
Neal Becker gmail.com> writes: > > I used menu/insert caption to place a caption into my program listing float. > But, the pld just says e.g. "Listing 1", without my caption. Ideas? > > What's a "pld"? If the problem is with the caption as it appears in the float (as opposed to how it is

caption in listings

2011-05-06 Thread Neal Becker
I used menu/insert caption to place a caption into my program listing float. But, the pld just says e.g. "Listing 1", without my caption. Ideas?

Separator between columns in program listings?

2011-03-25 Thread Nikos Chantziaras
Is it possible to have a separator (like a thin line) between columns in program listings? It just doesn't look right without one; that is, it's not intuitively apparent that there two columns. Enabling line numbers helps a lot, but in most cases I don't need line numbering anyway.

Re: Rename "algorithm" to "program listing" – How to get my program listings into my article?

2011-02-10 Thread Manveru
2011/1/26 Niko Schwarz : > Hi, I'm using LyX with the springer LNCS article class. In my previous > work, all the program listings I had to write could reasonably well be > called "algorithms," so I used the algorithm class in a float. This > time, they aren't

Re: Rename "algorithm" to "program listing" – How to get my program listings into my article?

2011-01-26 Thread Paul Rubin
Niko Schwarz googlemail.com> writes: > > Hi, I'm using LyX with the springer LNCS article class. In my previous > work, all the program listings I had to write could reasonably well be > called "algorithms," so I used the algorithm class in a float. This > ti

Rename "algorithm" to "program listing" – How to get my program listings into my article?

2011-01-26 Thread Niko Schwarz
Hi, I'm using LyX with the springer LNCS article class. In my previous work, all the program listings I had to write could reasonably well be called "algorithms," so I used the algorithm class in a float. This time, they aren't really algorithms, they're just prog

hundreds of listings, 4 custom types.

2011-01-20 Thread Paul Johnson
I have a "how to" document with hundreds of code listings. They do not follow standard language definitions in lyx's listings options, I have been trying to avoid doing the right-click on the listing to customize every little bit in the output. I'd like to write a lyx layout

Re: Textless captions on program listings.

2010-12-19 Thread Anthony Simpson
I managed to hack together a way around it using title and things provided by the listing package. title={\lstlistingname\space\thelstlisting}

Textless captions on program listings.

2010-12-19 Thread Anthony Simpson
I'm writing a book using the memoir class, and it has a lot of program listings. I'd like to be able to add captions to these that appear with the form "Figure ". However, I don't need to add any text. If you add a caption, you get "Listing : " and then you h

Re: How to use short dashes in program listings?

2010-12-11 Thread Paul A . Rubin
Nikos Chantziaras arcor.de> writes: > > When inserting a program listing, all "-" characters in the source code > are converted to long dashes. This results in the C operator "--" > looking more like a single long line rather than two dashes. (There is > some space between each dash, but it

How to use short dashes in program listings?

2010-12-07 Thread Nikos Chantziaras
When inserting a program listing, all "-" characters in the source code are converted to long dashes. This results in the C operator "--" looking more like a single long line rather than two dashes. (There is some space between each dash, but it's so small it only becomes obvious when zooming

Re: Updating a language for the LaTeX program listings package?

2010-11-22 Thread Stephan Witt
Am 22.11.2010 um 18:49 schrieb Robert J Berger: > Would anyone happen to know where the listings.* files are located in MacTeX? > I used spotlight and also looked in the app bundle but couldn't find it... > > Thanks! Here it's below /usr/local/texlive (I'm using MacTeX too). Stephan

Re: Updating a language for the LaTeX program listings package?

2010-11-22 Thread Richard Heck
On 11/22/2010 12:49 PM, Robert J Berger wrote: Would anyone happen to know where the listings.* files are located in MacTeX? I used spotlight and also looked in the app bundle but couldn't find it... Try: kpsewhich listings.sty That should tell you. Richard

Re: Updating a language for the LaTeX program listings package?

2010-11-22 Thread Robert J Berger
Would anyone happen to know where the listings.* files are located in MacTeX? I used spotlight and also looked in the app bundle but couldn't find it... Thanks! On Nov 22, 2010, at 7:29 AM, Richard Heck wrote: > On 11/22/2010 01:07 AM, Robert J Berger wrote: >> I understand I

Re: Updating a language for the LaTeX program listings package?

2010-11-22 Thread Richard Heck
On 11/22/2010 01:07 AM, Robert J Berger wrote: I understand I need to update the lstdrvrs.dtx of the listings package to add a new language. What I'm not clear about is, once I update the listings package, how do I get it into LyX (on a Macintosh using LyX-2.0 beta) You don't need

Updating a language for the LaTeX program listings package?

2010-11-21 Thread Robert J Berger
I understand I need to update the lstdrvrs.dtx of the listings package to add a new language. What I'm not clear about is, once I update the listings package, how do I get it into LyX (on a Macintosh using LyX-2.0 beta) I.E. where does that live in the Mac Filesystem if I installed LyX 2.

Beamer-conference-ornate and listings

2010-08-31 Thread Miguel Negrão
to solve this ? Argument of \...@next has an extra }. etc thanks, Miguel Negrão -- View this message in context: http://lyx.475766.n2.nabble.com/Beamer-conference-ornate-and-listings-tp5484117p5484117.html Sent from the LyX - Users mailing list archive at Nabble.com.

Re: Do I find a bug or feature in Lyx with inline listings and a tabular?

2010-06-11 Thread Paul A. Rubin
On 6/11/2010 6:41 AM, Manveru wrote: 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. No, the exclamation marks are fine

Do I find a bug or feature in Lyx with inline listings and a tabular?

2010-06-11 Thread Manveru
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 list

Re: Code listings, listings in general

2010-05-26 Thread Richard Heck
On 05/26/2010 05:00 AM, Artimess wrote: Hi , I need some help to create an environment or use an existing environment or package that may exist to get coding examples like the attached example in a manuscript. The listings should have similar numbering scheme as Figures or tables and I need

Code listings, listings in general

2010-05-26 Thread Artimess
Hi , I need some help to create an environment or use an existing environment or package that may exist to get coding examples like the attached example in a manuscript. The listings should have similar numbering scheme as Figures or tables and I need to have a list of codings, like List of

Re: Lyx questions: code listings, .layout files, scripting, and alternative applications

2010-03-31 Thread Uwe Stöhr
m, i.e. it removes the linebreaks which are vital to Can you please report this as bug in our database: http://www.lyx.org/trac/wiki/BugTrackerHome Please attach there an example TeX-file. the working of the verbatim mode. I read that Lyx supports the listings package so I converted all my code lis

Re: Lyx questions: code listings, .layout files, scripting, and alternative applications

2010-03-31 Thread Pavel Sanda
Wilson, Sandy wrote: > Is there something I am missing in my .layout file that would import them > properly? Is there a way of scripting the import to put listings in what > seems to be called an ERT? What I'm trying to develop here is a way of > sharing the same .tex file be

Lyx questions: code listings, .layout files, scripting, and alternative applications

2010-03-31 Thread Wilson, Sandy
eaks which are vital to the working of the verbatim mode. I read that Lyx supports the listings package so I converted all my code listings done with verbatim over to lstlisting environments but it still destroys them on import. My .layout file for my non-standard .cls file includes all the sta

Re: Problem with the dash in the listings

2010-01-18 Thread Guenter Milde
On 2010-01-17, Piotrek wrote: > Thanks for suggestion. But is it really necessary? Is the dash Unicode > character? I am writing the document in English. Is the Unicode support > necessary in that case? I am trying to understand what causes such a > behavior. Well, if I remove the dash characters f

RE: Problem with the dash in the listings

2010-01-17 Thread Piotrek
Thank you. After checking your solution it seems working fine! BR Piotr -Original Message- From: news [mailto:n...@ger.gmane.org] On Behalf Of Guenter Milde Sent: Sunday, January 17, 2010 8:53 PM To: lyx-users@lists.lyx.org Subject: Re: Problem with the dash in the listings On 2010-01

  1   2   3   >