Re: Small request

2001-04-06 Thread Juergen Vigna


On 06-Apr-2001 Lars Gullik Bjønnes wrote:

> but I am not going to manually indent files...
> 
> and I clam that the burden is on the 4-tabbers to make the source look
> good for the 8-tabbers, not the other way around. (I have thought
> about untabify...)

Well whatever you can change the thing when you see them and I try to
use the right indent method so that you can see it correctly!

Jürgen

--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen VignaE-Mail:  [EMAIL PROTECTED]
Italienallee 13/N   Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen   Web: http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

This will be a memorable month -- no matter how hard you try to forget it.




Re: Small request

2001-04-06 Thread Lars Gullik Bjønnes

Juergen Vigna <[EMAIL PROTECTED]> writes:

| On 06-Apr-2001 Allan Rae wrote:
| > On Thu, 5 Apr 2001, Juergen Vigna wrote:
| > 
| >> for() {
| >> for() {
| >> if (a very long parameterlist
| > && function(with more than one,
| >  parameter)) {
| >> ^from here we need spaces
| >> }
| >> }
| >> }
| > 
| > is much easier to read and doesn't give a syntax error for missing a ')'.
| 
| Sure but I just made a point of where to use the spaces. So my point remains
| the same (I would however indent it as you did ;)

but I am not going to manually indent files...

and I clam that the burden is on the 4-tabbers to make the source look
good for the 8-tabbers, not the other way around. (I have thought
about untabify...)

-- 
Lgb



Re: Small request

2001-04-06 Thread Juergen Vigna


On 06-Apr-2001 Allan Rae wrote:
> On Thu, 5 Apr 2001, Juergen Vigna wrote:
> 
>> for() {
>> for() {
>> if (a very long parameterlist
> && function(with more than one,
>  parameter)) {
>> ^from here we need spaces
>> }
>> }
>> }
> 
> is much easier to read and doesn't give a syntax error for missing a ')'.

Sure but I just made a point of where to use the spaces. So my point remains
the same (I would however indent it as you did ;)

  Jürgen

--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen VignaE-Mail:  [EMAIL PROTECTED]
Italienallee 13/N   Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen   Web: http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Q:  What do you call the money you pay to the government when
you ride into the country on the back of an elephant?
A:  A howdah duty.




Re: Small request

2001-04-05 Thread Allan Rae

On Thu, 5 Apr 2001, Juergen Vigna wrote:

> for() {
> for() {
> if (a very long parameterlist
  && function(with more than one,
 parameter)) {
> ^from here we need spaces
> }
> }
> }

is much easier to read and doesn't give a syntax error for missing a ')'.

Allan. (ARRae)




Re: Small request

2001-04-05 Thread Juergen Vigna


On 05-Apr-2001 Lars Gullik Bjønnes wrote:

> I can live with that. (barely)

#:O)

> Using tab-with == 4, and at the same time indenting with 8 spaces is
> bad.

I don't indent with 8 spaces! I indent with tab's now! There's just the
problem with parameters which break to a new line (when indenting with
tabulators), this obviously not only in the function header but also
in the code, say after the normal indent level f.ex.

for() {
for() {
if (a very long parameterlist && function(with more then one,
  parameter)
^from here we need spaces
{
}
}
}

I know this is annoying, but IMO this is the cleanest solution and we then
can view and print sourcecode with whatever tab-width we give. I understand
we cannot do this now for all files, but we could keep it as a general rule
(a pitty emacs indent-mode cannot handle stuff like this automatically)

   Jürgen

--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen VignaE-Mail:  [EMAIL PROTECTED]
Italienallee 13/N   Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen   Web: http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

But I was there and I saw what you did,
I saw it with my own two eyes.
So you can wipe off that grin;
I know where you've been--
It's all been a pack of lies!




Re: Small request

2001-04-05 Thread Lars Gullik Bjønnes

Juergen Vigna <[EMAIL PROTECTED]> writes:

| On 05-Apr-2001 Lars Gullik Bjønnes wrote:
| 
| > So you still want "your" files to be special?
| > _all_ other files use tabs.
| 
| Well no this could be a general rule. So files can be viewed with whatever
| tab-with you give!

I can live with that. (barely)
 
| > a tab with is 8 chars regardless of if a a tab or 8 spaces is used.
| > so if you use tab eqiv. 4 spaces and indent with 8 spaces... then you
| > are doomed.
| 
| I don't understand. Maybe it's to early in the morning for difficult sentences
| in a foreign language :)

Using tab-with == 4, and at the same time indenting with 8 spaces is
bad.
 
-- 
Lgb



Re: Small request

2001-04-05 Thread Juergen Vigna


On 05-Apr-2001 Lars Gullik Bjønnes wrote:

> So you still want "your" files to be special?
> _all_ other files use tabs.

Well no this could be a general rule. So files can be viewed with whatever
tab-with you give!

> a tab with is 8 chars regardless of if a a tab or 8 spaces is used.
> so if you use tab eqiv. 4 spaces and indent with 8 spaces... then you
> are doomed.

I don't understand. Maybe it's to early in the morning for difficult sentences
in a foreign language :)

  Jürgen

--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen VignaE-Mail:  [EMAIL PROTECTED]
Italienallee 13/N   Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen   Web: http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

A waist is a terrible thing to mind.
-- Ziggy




Re: Small request

2001-04-05 Thread Lars Gullik Bjønnes

Juergen Vigna <[EMAIL PROTECTED]> writes:

| >
| >* tabular.C: small reformat
| >

You automatic reformatter did too many things wrong.
 
| Lars I would apreciate if you would (re)indent this type of stuff with
| spaces and not with tabs as then we have both the same view of the
| file!

So you still want "your" files to be special?
_all_ other files use tabs.

| (well I added the comment at the end of the file propsed yesterday by
|  H.Z so we should have the same view from now on ;)
| 
| I understand that this type of indent is annoying with tabs depending
| on how wide your tab-width is! But please be tolerant with me I already
| gave in, didn't I?

a tab with is 8 chars regardless of if a a tab or 8 spaces is used.
so if you use tab eqiv. 4 spaces and indent with 8 spaces... then you
are doomed.

-- 
Lgb



Re: Small request (suggestion)

1999-09-08 Thread Jean-Marc Lasgouttes

> "James" == James Sleeman <[EMAIL PROTECTED]> writes:

James> Hi all, I have been using LyX for a while (> 1 year), mainly
James> for University assignments which need to be written in LaTex
James> (Computer Science).  Anyway, in the major assignment for the
James> year there is a large amount of documentation -- all to be
James> submitted in LaTex.  It would be so much nicer if I could
James> submit (distribute) the actual .lyx files only, providing a
James> Makefile target(s) that generate tex/dvi/ps from the .lyx files
James> on demand.  To do this I would need a completly separate (read
James> small, ~ universally compilable) lyx -> nice latex translator,
James> I can't imagine my lecturers wanting to install a whole new
James> piece of software just to read my documentation.

James> I'm sure for someone who has knowledge of the LyX sourcecode &|
James> the .lyx file format and how it relates to LaTex code it
James> wouldn't be a tough job (another suggestion :: flex & bison
James> (lexx & yacc), or just rip it out of the LyX source).

Hello,

This is indeed a much requested feature, and no perfect solution for
this problem exists. What you can do is:

1/ Use Lyxexport (http://rerumnatura.zool.su.se/stefano/software/), a
script that uses a real running LyX in batch mode to do the export.

2/ There is another utility (perl script) which does a direct
translation of LyX to latex, but I forgot its name :(

JMarc



Re: small request

1999-03-18 Thread Lars Gullik Bjønnes

  >> Garst R Reese writes:

  GRR> teTeX.9 will now do ls-R on local and personal directories. LyX
  GRR> puts .cls files in a subdir tex If this was texmf/tex then the
  GRR> ls-R would be shorter This applies to e.g /usr/local/share/lyx
  GRR> and $HOME/.lyx/texmf/tex All that is required is add another
  GRR> level before the tex directory. -- Thanks, Garst

I think we can switch to that in 1.1.x

Lgb