Jan Engelhardt wrote:
Hi Richard,
On Sat, 16 Feb 2008, Jan Engelhardt wrote:
- Enabling word wrapping in LyX-Code environments (in the output PDF,
LyX itself already wraps it)
 When you want verbatim text, use ctrl-[Enter] to add a newline. That
ensures that the code retains its formatting when compiled and displayed.
The text should be verbatim, but not the formatting. What I want is more like HTML's

<p><code>type type type C code this text automatically wraps when too long<br />
        but line breaks are respected</code></p>

which adjust the line wrapping according to font size.

I could use the "Standard" environment with Typewriter text (C-p), but I would probably have the indent at the start of a paragraph :-/

You're just misunderstanding what LyX-Code is for. It's like HTML's <pre>.

- What is Insert > Program Listing in LyX good for, compared to LyX-Code environments?

LyX-Code just uses a typewriter font, etc. Program Listing uses the LaTeX listings package, which provides a lot of other features, which can be invoked by right-clicking in a Listing inset, or at Document>Settings>Text Layout. There must be something about this in the LyX manuals, but I don't know where. Bo Peng is the one who implemented this, and he knows all about it.

- I would like to change the citation style so that square brackets [1] are used instead of the default round brackets (2) that article.layout uses by default. Is this probably a deeper change somewhere in /usr/share/lyx?
This is set by BibTeX. How to change it depends upon your bibliography settings and has nothing to do with the document class. You set your bibliography stuff under Doc>Set>Bib. To change the brackets, you'll have to add something to the preamble, but, again, what you add depends upon your settings.

- Last, I would like to insert manual split points into long typewriter texts or supersize words. * WYSIWYG editors like MS Office would put the offending word into a new line and expand the spacing of all words of the previous line to satisfy the "Block" paragraph justification
Which ends up being unbelievably ugly if the interword spacing gets too big.

* LaTeX overflows the long word into the margin and off the page, just like LyX code.

Not what you want, so LaTeX issues a warning ("Overfull \hbox") telling you to fix it. Since it doesn't know how to fix it, it doesn't try.

Manual split points should be "zero-width breaking spaces", something like a hyphenation point (C-Minus), but without showing a hyphen iff it wraps/"(white)hyphens" the word.

I believe this has been implemented by Uwe for 1.6. It can't be backported to 1.5 because that would change the file format. But you can do it manually by putting "\linebreak[0]" in ERT where you want to allow the line to be broken.

rh

Reply via email to