Re: Literate programming in lyx

2000-07-22 Thread Martin Kraska



Thank you for your reply. The problem has been resolved. I was not aware of the
difference between deadtilde and asciitilde. Deadtilde plus space create an
asciitilde when you are in a text-based application. However, they are not
equivalent in LyX. Prior to fixing my Xmodmap there was no way to type an
asciitilde in Lyx. (now there is no way to type a deadtilde, I guess).

I think, I haven't yet understood how LyX is intended to work with noweb. I work
with LyX 1.1.5 under AIX. Formatting the documentation works pretty well. I use
file > export >custom (postscript to "ps2pdf '$$FName'; acroread
'$$FName'.pdf"). There are differences between the output under AIX and Linux,
e.g. under AIX the identifier instances in code chunks are not highlighted. But
this is a ps2pdf or hyperref issue.

I'm still fighting with the build process, neet to try "listerrors". Are you
aware of any similar tool for perl or python scripts?

My personal wish list of noweb support features is

 - Code chunk inset or paragraph layout with
- no need to type C-Return at line ends
- chunk headers acting as labels
- code reference can be done using the Refs menu (offering the code chunks
already defined)
- configurable syntax highlighting (send to emacs and get back the colored
text?)

 - Goto line in file: Choose a root file and a line number, point the cursor to
where the line is defined in lyx (semi-automatic and quite general error
tracking). The script should scan the tangled (with line number information)
file, find the line number in the noweb source and pipe the appropriate
server-goto-file-row command to lyx. I would need help to do that.

Greets, Martin Kraska








"Kayvan A. Sylvan" <[EMAIL PROTECTED]> on 21.07.2000 15:40:24





  
  
  
 To:  Martin Kraska/CargoLifter AG@CargoLifter
  
 cc:  [EMAIL PROTECTED] 
  
  
  
 Subject: Re: Literate programming in lyx 
  







On Fri, Jul 21, 2000 at 01:57:11PM +0100, Martin Kraska wrote:
>
>
> Hi,
>
> I like the idea to use LyX as a front end for noweb. So I found your article
in
> the documentation helpful. For code extraction I prefer a different approach
> (export as latex and run a script that extracts all files and postprocesses
them
> depending on their extension. However, there is still one severe problem. The
> Scrap layout is not literally translated to the latex export, some special
> characters are escaped and following curly braces are included. This is fatal
> for regular expressions, e.g. How can I force Lyx to avoid such conversion?
>
> Thanks for your help. Greets, Martin Kraska

I use the LyX Literate Programming facilities all the time and I don't have
this problem. Can you provide an example LyX file? Which version of LyX are you
using?

   ---Kayvan

--
Kayvan A. Sylvan   | Proud husband of  | Father to my kids:
Sylvan Associates, Inc.| Laura Isabella Sylvan | Katherine Yelena
http://www.successlinks.com/kayvan | Reach your goals now! | Robin Gregory






illegal unit of measurement

2000-07-22 Thread Tony Dancer

I am just in the process of upgrading from 1.0.4 (!) to 1.1.5fix1. One
of my documents (and the first I have tried with it, although a
subsequent masters thesis which I tried seems to be fine) is a
newsletter, and this is kicking up problems. Specifically, the errors
tell me about an illegal unit of measure (pt inserted) at \maketitle. I
have not a clue what it is talking about -- the file works fine in
1.0.4.

The document is large, contains lots of images and tables, and uses a
number of packages (multicol, sectsty, floatflt, fancybox, niceframe
and a few others). 

Can anyone shed any light on where I might start looking?


Thanks
Tony





Re: illegal unit of measurement

2000-07-22 Thread Herbert Voss

Tony Dancer wrote:
> 
> I am just in the process of upgrading from 1.0.4 (!) to 1.1.5fix1. One
> of my documents (and the first I have tried with it, although a
> subsequent masters thesis which I tried seems to be fine) is a
> newsletter, and this is kicking up problems. Specifically, the errors
> tell me about an illegal unit of measure (pt inserted) at \maketitle. I
> have not a clue what it is talking about -- the file works fine in
> 1.0.4.

the error seems to be located in the beginning of your document.
copy one chapter or more into a new lyx-document with the same
latex preamble and have a look what's going on than.

> The document is large, contains lots of images and tables, and uses a
> number of packages (multicol, sectsty, floatflt, fancybox, niceframe
> and a few others).

when you get the same error with this test document, than send
it to me. the problem is that lyx before version 1.1.4 ignored 
some latex errors.

Herbert

-- 
[EMAIL PROTECTED]
http://perce.de/voss



Bug in pretty ref

2000-07-22 Thread Vincent VAQUIN

Hello,
I'am using lyx.1.1.5 with Linux, and I have a bug when I want to insert,
in cross reference, pretty ref.
I can insert it, but when I try to compile, lyx say : error, and I have
this message :
"paragraph ended before \@prettyref was complete. I suspect you'have
forgotten a '}'."
On the tex source document, I have this :
blabla \prettyref{r=E9f=E9rence} blabla
What's wrong ?

-- 
Vincent



Re: Bug in pretty ref

2000-07-22 Thread Herbert Voss

Vincent VAQUIN wrote:
> 
> Hello,
> I'am using lyx.1.1.5 with Linux, and I have a bug when I want to insert,
> in cross reference, pretty ref.
> I can insert it, but when I try to compile, lyx say : error, and I have
> this message :
> "paragraph ended before \@prettyref was complete. I suspect you'have
> forgotten a '}'."
> On the tex source document, I have this :
> blabla \prettyref{r=E9f=E9rence} blabla

make the first \prettyref-statement to normal text (not in texmode)
and run latex again. what's with the error message? if it's the
same, give an example-file?

Herbert

-- 
[EMAIL PROTECTED]
http://perce.de/voss



newbie question

2000-07-22 Thread p w

hi,

even though i've been doing some decent things on lyx, i've been failing in 
my configuring of one thing, at the most basic level.  i need to be nudged 
in the right direction:  i can't get C-{arrows} to skip words or paragraphs. 
they do nothing.  (i am using cua settings.)  C-S-{arrows} work perfectly!  
S-{arrows} do too.  i know this is not a problem i have in configuring lyx, 
since in netscape the same is true.  i run RH6.2(2.2.14-5.0) i686.  where 
might i find the file to modify?  i've configured a zillion things 
correctly, but this one stumps me and is driving me insanse!

thanks,

peter w

Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com