Re: Symbol for wrapped lines in LyX-Code
Hi all, I had some problems joining the mailing list, so following Nabble's instructions, I re-posted again. Meanwhile, some people provided some nice suggestions and solutions there: http://thread.gmane.org/gmane.editors.lyx.general/64608 Have a look. I myself will try on Monday Thanks all -- View this message in context: http://lyx.475766.n2.nabble.com/Symbol-for-wrapped-lines-in-LyX-Code-tp5277467p5277989.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Symbol for wrapped lines in LyX-Code
Was this an accidental repost? The same message was posted a few days ago (http://thread.gmane.org/gmane.editors.lyx.general/64608) and drew several responses, including my suggestion about the listings package. /Paul
Re: Symbol for wrapped lines in LyX-Code
On 07/10/2010 07:20 AM, pierrickuk wrote: Hi there, I am posting this as 2 hours of searching got me nowhere so far. I am writing some instructions manual to set up some software my company is distributing. For this I need to put some linux console commands for which I use the LyX-code format. Everything is fine unless the line is too long and then get wrapped. As some of our customer might not know much about linux, I am afraid they might hit return at the end of the line. So I am looking for a way to automatically indicate that the line is wrapped to fit on a page (preferably by some special symbol not used in a terminal/console). There's no easy way to indicate wrapped lines automatically, so far as I know. You could do it manually, using ⏎, which you can insert using "unicode-insert 0x23ce" in the minibuffer. Richard
Re: Symbol for wrapped lines in LyX-Code
On Tue, Jul 6, 2010 at 3:28 PM, Morten Juhl-Johansen Zölde-Fejér wrote: > That is actually very good. > Is anybody putting together a Tricks with LyX guide? Because this should > be in there... > You could always add this to the wiki. Regards Liviu
Re: Symbol for wrapped lines in LyX-Code
Morten Juhl-Johansen Zölde-Fejér writtenandread.net> writes: > > That is actually very good. > Is anybody putting together a Tricks with LyX guide? Because this should > be in there... > Thanks. Tips and tricks abound on the wiki (http://wiki.lyx.org), but I just had a look there and did not see any tips regarding the listings package. The organization of the wiki is a bit, well, wiki-ish. If anyone wants to start a page and post this tip, feel free. /Paul
Re: Symbol for wrapped lines in LyX-Code
That is actually very good. Is anybody putting together a Tricks with LyX guide? Because this should be in there... Yours, Morten On Tue, 06 Jul 2010 10:21:07 -0400, "Paul A. Rubin" wrote: > On 7/6/2010 5:38 AM, pierrickuk wrote: >> >> Hi there, >> >> I am posting this as 2 hours of searching got me nowhere so far. >> I am writing some instructions manual to set up some software my company >> is >> distributing. >> For this I need to put some linux console commands for which I use the >> LyX-code format. Everything is fine unless the line is too long and then >> get >> wrapped. As some of our customer might not know much about linux, I am >> afraid they might hit return at the end of the line. >> So I am looking for a way to automatically indicate that the line is >> wrapped >> to fit on a page (preferably by some special symbol not used in a >> terminal/console). >> >> Maybe there is some LaTeX package that would work, or some trick I am not >> aware of... Or maybe I'm looking in the wrong direction here. >> > > Step 1: Pick the glyph you want to use to indicate line wrapping. "The > Comprehensive LATEX Symbol List" may help here. If necessary, install > whatever font package it comes in, and add a \usepackage{...} to your > preamble. Avoid symbols that occur only in math mode (which, sadly, > accounts for most arrows); if there's a way to make them work, I haven't > found it yet. > > Step 2: Rather than using LyX-code, use Insert > Program Listing, which > creates an inset using the listings package. Right-click the inset, > click Settings ..., and on the Main Settings tab check "Break long > lines". You can leave the language setting at "No language" unless you > think what you're writing matches one of the languages on the list > fairly well. > > Step 3: Go to the advanced tab and, in the right pane, type > 'prebreak=whatever', without the quotes and replacing whatever with the > symbol you want. For instance, > > prebreak=\textbackslash > > will put '\' wherever wrapping occurs. > > That should do it. > > /Paul -- __ Morten Juhl-Johansen Zölde-Fejér http://syntaktisk.dk * mj...@syntaktisk.dk
Re: Symbol for wrapped lines in LyX-Code
On 7/6/2010 5:38 AM, pierrickuk wrote: Hi there, I am posting this as 2 hours of searching got me nowhere so far. I am writing some instructions manual to set up some software my company is distributing. For this I need to put some linux console commands for which I use the LyX-code format. Everything is fine unless the line is too long and then get wrapped. As some of our customer might not know much about linux, I am afraid they might hit return at the end of the line. So I am looking for a way to automatically indicate that the line is wrapped to fit on a page (preferably by some special symbol not used in a terminal/console). Maybe there is some LaTeX package that would work, or some trick I am not aware of... Or maybe I'm looking in the wrong direction here. Step 1: Pick the glyph you want to use to indicate line wrapping. "The Comprehensive LATEX Symbol List" may help here. If necessary, install whatever font package it comes in, and add a \usepackage{...} to your preamble. Avoid symbols that occur only in math mode (which, sadly, accounts for most arrows); if there's a way to make them work, I haven't found it yet. Step 2: Rather than using LyX-code, use Insert > Program Listing, which creates an inset using the listings package. Right-click the inset, click Settings ..., and on the Main Settings tab check "Break long lines". You can leave the language setting at "No language" unless you think what you're writing matches one of the languages on the list fairly well. Step 3: Go to the advanced tab and, in the right pane, type 'prebreak=whatever', without the quotes and replacing whatever with the symbol you want. For instance, prebreak=\textbackslash will put '\' wherever wrapping occurs. That should do it. /Paul
Re: Symbol for wrapped lines in LyX-Code
2010/7/6 pierrickuk : > > Hi there, > > I am posting this as 2 hours of searching got me nowhere so far. > I am writing some instructions manual to set up some software my company is > distributing. > For this I need to put some linux console commands for which I use the > LyX-code format. Everything is fine unless the line is too long and then get > wrapped. As some of our customer might not know much about linux, I am > afraid they might hit return at the end of the line. > So I am looking for a way to automatically indicate that the line is wrapped > to fit on a page (preferably by some special symbol not used in a > terminal/console). > > Maybe there is some LaTeX package that would work, or some trick I am not > aware of... Or maybe I'm looking in the wrong direction here. I met opposite practice to mark places when user has to hit enter with a graphical mark of typewriter's carriage return ("↵") and proper comment about meaning of this sign in the book content. It could be grey to avoid confusion it is a part of text to enter. I saw a book where it was even a small photography (or rendering) of enter key. -- Manveru jabber: manv...@manveru.pl gg: 1624001 http://www.manveru.pl