Including literal text
Hi folks, I'm writing a paper that defines a mass mailing system I'm designing. The document style is article and I'm using LyX Version 1.1.6fix2. I'd like to include an appendix that provides the SQL code that generates the database tables that support the system. How do I include literal text in a way similar to code or pre in HTML and programlisting in DocBook SGML? I can't find literal or code in the FAQ. Thanks, Sheldon.
Re: Including literal text
On 04 Jul 2001 13:40:27 +0200, Jean-Marc Lasgouttes wrote: If the text is in a file, the best is to use InsertInclude and check 'verbatim'. Excellent, that does me nicely. I have to convert tabs to spaces, but that's a small price to pay for the convenience of embedding the SQL code in an appendix. Thanks, Sheldon.
Re: Including literal text
Jean-Marc Lasgouttes wrote: Sheldon == Sheldon Hearn [EMAIL PROTECTED] writes: Sheldon I'd like to include an appendix that provides the SQL code Sheldon that generates the database tables that support the system. If the text is in a file, the best is to use InsertInclude and check 'verbatim'. Otherwise, you can use the LyX-Code environment, but it is a bit buggy. You may also use a pretty-printer for your code. It will put some keywords in bold, etc. The SQL is supported by the listings package. To use it, write your latex preamble: \usepackage{listings} \lstloadlanguages{SQL} Then, you just have to write in red latex mode, where you want in your lyx article,: \lstinputlisting[language=SQL]{yourFile.sql} If you don't have listings installed, you can find it (with the documentation) here: http://www.ctan.org/tex-archive/macros/latex/contrib/supported/listings/ I think the lgrind package also supports SQL, and can also be found on the CTAN. T.
Including literal text
Hi folks, I'm writing a paper that defines a mass mailing system I'm designing. The document style is article and I'm using LyX Version 1.1.6fix2. I'd like to include an appendix that provides the SQL code that generates the database tables that support the system. How do I include literal text in a way similar to code or pre in HTML and programlisting in DocBook SGML? I can't find literal or code in the FAQ. Thanks, Sheldon.
Re: Including literal text
On 04 Jul 2001 13:40:27 +0200, Jean-Marc Lasgouttes wrote: If the text is in a file, the best is to use InsertInclude and check 'verbatim'. Excellent, that does me nicely. I have to convert tabs to spaces, but that's a small price to pay for the convenience of embedding the SQL code in an appendix. Thanks, Sheldon.
Re: Including literal text
Jean-Marc Lasgouttes wrote: Sheldon == Sheldon Hearn [EMAIL PROTECTED] writes: Sheldon I'd like to include an appendix that provides the SQL code Sheldon that generates the database tables that support the system. If the text is in a file, the best is to use InsertInclude and check 'verbatim'. Otherwise, you can use the LyX-Code environment, but it is a bit buggy. You may also use a pretty-printer for your code. It will put some keywords in bold, etc. The SQL is supported by the listings package. To use it, write your latex preamble: \usepackage{listings} \lstloadlanguages{SQL} Then, you just have to write in red latex mode, where you want in your lyx article,: \lstinputlisting[language=SQL]{yourFile.sql} If you don't have listings installed, you can find it (with the documentation) here: http://www.ctan.org/tex-archive/macros/latex/contrib/supported/listings/ I think the lgrind package also supports SQL, and can also be found on the CTAN. T.
Including literal text
Hi folks, I'm writing a paper that defines a mass mailing system I'm designing. The document style is "article" and I'm using LyX Version 1.1.6fix2. I'd like to include an appendix that provides the SQL code that generates the database tables that support the system. How do I include literal text in a way similar to or in HTML and in DocBook SGML? I can't find "literal" or "code" in the FAQ. Thanks, Sheldon.
Re: Including literal text
On 04 Jul 2001 13:40:27 +0200, Jean-Marc Lasgouttes wrote: > If the text is in a file, the best is to use Insert>Include and check > 'verbatim'. Excellent, that does me nicely. I have to convert tabs to spaces, but that's a small price to pay for the convenience of embedding the SQL code in an appendix. Thanks, Sheldon.
Re: Including literal text
Jean-Marc Lasgouttes wrote: > > > "Sheldon" == Sheldon Hearn <[EMAIL PROTECTED]> writes: > > Sheldon> I'd like to include an appendix that provides the SQL code > Sheldon> that generates the database tables that support the system. > > If the text is in a file, the best is to use Insert>Include and check > 'verbatim'. > > Otherwise, you can use the LyX-Code environment, but it is a bit > buggy. > You may also use a pretty-printer for your code. It will put some keywords in bold, etc. The SQL is supported by the "listings" package. To use it, write your latex preamble: \usepackage{listings} \lstloadlanguages{SQL} Then, you just have to write in red latex mode, where you want in your lyx article,: \lstinputlisting[language=SQL]{yourFile.sql} If you don't have "listings" installed, you can find it (with the documentation) here: http://www.ctan.org/tex-archive/macros/latex/contrib/supported/listings/ I think the "lgrind" package also supports SQL, and can also be found on the CTAN. T.