Re: formatted C code samples in a lyx doc?
Tony Mantler wrote: > > I should start by saying I'm rather new at lyx and latex. The previous > technical documentation I did was in roff. > > I'm trying to write a programming document for text file and dead-tree > targets, and I'm running into a bit of trouble when I want to include a > code sample. > > I tried hacking up the article class a bit to add a nestable environment > thingie with a wider left margin so I could play with the environment > depth to get different indentations, but then when I output to the text > file, I get double spaces between each line of code. Not good. > > I feel like I'm trying to hammer nails with a sea-bass here, surely I > can't be the first person on earth to want to include code samples in a > document? have a look at http://www.educat.hu-berlin.de/~voss/lyx/listings/listings.html there is an example for Java. you can replace Java with C and than it's the same. Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Re: Footnoteref Problem
Dave Tweten wrote: > > In previous situations, I've been able to use the LaTeX "\footnoteref" command > with a Lyx reference to a label in another footnote, with no problems. Not > surprisingly, the result is a second mark pointing to the same footnote. > > This time, I need for both the original footnote and the \footnoteref to be in > section headings. In spite of adding \protect's everywhere I can think to do > so, I'm left with the following LaTeX error at the \footnotemark: > > Missing number, treated as zero. > ...ect\footnotemark[\protect\ref{foot:div}]} use ...ect\footnotemark { ... } } Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Footnoteref Problem
In previous situations, I've been able to use the LaTeX "\footnoteref" command with a Lyx reference to a label in another footnote, with no problems. Not surprisingly, the result is a second mark pointing to the same footnote. This time, I need for both the original footnote and the \footnoteref to be in section headings. In spite of adding \protect's everywhere I can think to do so, I'm left with the following LaTeX error at the \footnotemark: Missing number, treated as zero. ...ect\footnotemark[\protect\ref{foot:div}]} A number should have been here; I inserted "0". (If you can't figure out why I needed to see a number, look up `wierd error' in the index to The TeXbook.) "Wierd error" indeed. I protected the original footnote in its section heading. I protected the label within the footnote. I protected the footnotemark in its section heading, and I protected its optional reference argument. My previous experience is that a \ref to a label in a previous footnote will produce the number footnotemark needs. Is this just not possible, or can someone show me how to get what I'm looking for? Thanks in advance for any help (or sympathy). -- M/S 258-5 | 1024-bit PGP fingerprint: | [EMAIL PROTECTED] NASA Ames Research Center | 41 B0 89 0A 8F 94 6C 59 | (650) 604-4416 Moffett Field, CA 94035-1000 | 7C 80 10 20 25 C7 2F E6 | FAX: (650) 604-4377 We each earn what freedom of speech we defend for those who most offend us.
compose key fixed (Solaris-2.6)
Bad form to answer my own query, but better than having someone else slave to solve the problem ... The reason my compose key didn't work with LyX after the switch to a new Solaris-2.6 machine is that LANG on the new machine was set to C. Adding LANG=en_US export LANG to ~/.dtprofile fixed it. Sorry for the false alarm. LyX is happy, and I am too. I'm surprised that the compose key still worked in xterm and xemacs with LANG=C. -- Ronald Florence http://members.home.net/18james
formatted C code samples in a lyx doc?
I should start by saying I'm rather new at lyx and latex. The previous technical documentation I did was in roff. I'm trying to write a programming document for text file and dead-tree targets, and I'm running into a bit of trouble when I want to include a code sample. I tried hacking up the article class a bit to add a nestable environment thingie with a wider left margin so I could play with the environment depth to get different indentations, but then when I output to the text file, I get double spaces between each line of code. Not good. I feel like I'm trying to hammer nails with a sea-bass here, surely I can't be the first person on earth to want to include code samples in a document?
Is it bug?
Search/Replace dialog box in my LyX (1.1.5patch2) does not close itself on Esc press, although other dialog boxen (esp. Spell) do. Is it a bug or feature? Matej Cepl
compose key stopped working (Sparc-Solaris-2.6)
I recently migrated from a Sparc-20/812 to an Ultra-1E/200. The operating system is the same (Solaris-2.6), the LyX binaries (lyx-1.1.5fix2), xforms and xpm libraries are identical, and nothing has been changed in the configuration. But, the compose key suddenly stopped working in LyX. The compose key still works in other applications, like xterms or xemacs. I'd welcome suggestions on how to debug and fix this. Thanks, -- Ronald Florence http://members.home.net/18james
Re: Questions about SGML
Jose Abilio Oliveira Matos a écrit : > > I would like to use the SGML format for its powerful translation > > possibilities, and I would like to know if it is possible to define a > > new document style (different from the LinuxDoc one)? > > Does anyone know some links that would explain how to customise the > > sgmltools package, or to customise it through LyX (is it possible?)? > > What version of sgmltools? > v1 supports linuxdoc. > v2 and v3 support docbook. I have version 1, and I should update to v2 or v3, at least to have the docbook support. But how does it work with docbook? Is there a command such as sgml2docbook, or what? When docbook is installed, does a LyX reconfiguration detect and add a new SGML document style or not? > Or are you talking about a different dtd? Yes; my dream is that I could write a LyX document, export it in SGML, and use an environment containing tools that would allow to convert it in a publishable format (tex, ps, pdf, rtf, man, html, etc.), AND the environment would be open enough to let the user add/customise the output format (by adding new .dtd files I suppose). But is it only a dream? Bye, BG
Re: LyX Printing
Tuukka Toivonen <[EMAIL PROTECTED]> writes: | On Wed, 6 Dec 2000, Jochen Rumpf wrote: | | > is there a possibility for LyX to print mirror writing (for slides)? | | Most likely not. But I wouldn't be surprised if psutils (look from | freshmeat.net, but most Linuxes have it already installed) could do this | thing. If not, a postscript-knowledgeable person should be easily able to | hack psutils to do this thing too. I think pstricks could be used for this. Lgb
Re: text in a cell
Didier Bretin wrote: > > Hello, > > What are the different style that I can put on my text in a cell of an > array ? Apparently I can't make different paragraph with a > +. Is there any possibilities ? remember that the array environment is for math-mode and therefore lyx doesn't support the \\ command in one cell (i think so ...). you can do a \renewcommand\arraystretch{0.9} for reducing line spacing. than you can write your different lines in different cells. HErbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Re: Math labels.
On Thursday 07 December 2000 14:53, Dekel Tsur wrote: > On Tue, Dec 05, 2000 at 07:25:15PM +, Herbert Voss wrote: > > > Once a math-label has been set, how can one change it? In a > > > regular label one can click it and change it in the pop-up menu, > > > but I am unable to get this to work in math mode. > > > > put the cursor in the math-box and write a new one. > > Note that while changing a regular label will also changes the references > to the label, changing a math label doesn't change the references. > This bug will be fixed in 1.1.6, and maybe in 1.1.5fix3 Dekel, (not having looked at the code), does this mean that you now store a list of references rather than build them on the fly when loading/updating the reference popup? If so, you could emit a updateRefs signal when you change this list and the references in the popup will update automatically. We could then remove the "Update" button from the popup. Same with the TOC. Angus
Re: Math labels.
On Tue, Dec 05, 2000 at 07:25:15PM +, Herbert Voss wrote: > > Once a math-label has been set, how can one change it? In a > > regular label one can click it and change it in the pop-up menu, > > but I am unable to get this to work in math mode. > > put the cursor in the math-box and write a new one. Note that while changing a regular label will also changes the references to the label, changing a math label doesn't change the references. This bug will be fixed in 1.1.6, and maybe in 1.1.5fix3
Re: Something like reftex
Hallo Nabil! Am Don, 07 Dez 2000, schrieb Nabil Hathout: > Did you get a debian pakage or did you compile lyx-1.1.6pre2 locally ? I compiled it. Yes it would be nice to have a debian package. But I think this is only a pre-version. ;-) Ciao! juh -- Singe Gondoliere! http://www.sudelbuch.de/2000/2711.html
Re: Something like reftex
On Wed, Dec 06, 2000 at 06:10:29PM +0100, Jan Ulrich Hasecke wrote: > Hi LyX-Users! > > Is there anything like reftex for LyX? Reftex with Emacs+AucTeX > nearly automagically inserts labels for each section. It would be nice > if each heading, table, figure etc. gets a label by default. Are there > any plans? I've already implemented this feature. However, it may not appear in 1.1.6 as we don't want to add new feature now, but it may appear in 1.1.6fix1.
Re: change table of contents
Michael Frisbie wrote: > > I am required to follow a format that specifies that the appendix pages > should be numbered as A1, A2, B1, etc. Using the fancy header package I > have been able to display these weird page numbers on each page, but I > need to change them in the table of contents. Is there a way to force > an entry in the table of contents to have a certain page number? try behind the appendix command \renewcommand\thepage{\Alph{section}\arabic{page}} in TeX (red) Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Re: announce lyx-1.1.6pre2; Look & Feel
> 2) In the File-Save As Dialog: When I set the cursor in the middle of the > filename and press the "Entf"-Key (I think it's called "Del" on english > keyboard layouts) the character on the left side of the cursor is deleted > instead of the right side > 3) Same Dialog as in 2): If I press shift and cursor left/right I would > expect to select the character. Instead the cursor jumps to the begin/end > of the filename Now know how to fix these. Probably won't appear in 1.1.6 (we're trying to get it out at the moment; more features, more bugs), but in the next release after that. Angus
lyx crash
Hello, While I was working on a bibliography, lyx crach brutally. Here are the messages lyx sends to me. In defpup [xpopup.c 171] Exceeded FL_MAXPUP (128) Please check for leaks. Current allocated menus are: 0: Notitle . 127: Notitle These messages repeats 4 or 5 times and then, the following message: [1]Bus Errorlyx Synthese.lyx End lyx ends without any warnings (but there's a autosave file of my work available when I restart lyx). I use lyx-1.1.5fix2 on solaris 2.5 with xforms 0.88. Your sincerely, Yann COLLETTE
Something like reftex
Hello, Did you get a debian pakage or did you compile lyx-1.1.6pre2 locally ? Regards, --Nabil Jan Ulrich Hasecke writes: > BTW: lyx-1.1.6pre2 looks very nice. I had no problems to install it on > Debian 2.2 with kernel 2.0.36. The only drawback is that sometimes > there is one mouse klick more necessary with the new menu-layout.
Re: LyX Printing
On Wed, 6 Dec 2000, Jochen Rumpf wrote: > is there a possibility for LyX to print mirror writing (for slides)? Most likely not. But I wouldn't be surprised if psutils (look from freshmeat.net, but most Linuxes have it already installed) could do this thing. If not, a postscript-knowledgeable person should be easily able to hack psutils to do this thing too.