header (chapter name) problem

2003-06-06 Thread De Faveri Gilberto
Hi, I'm using LyX 1.3.2 under gentoo linux.

I'm creating a new document using the book class and the first chapter
after table of contents uses the Chapter* style.

The header that lyx automatically puts on top of pages does not display
the name of the chapter but the name of the TOC (typically it shows CONTENTS
instead of INTRODUCTION). Automatic header generation for other chapter
(shown in TOC) works fine for me.

You can see an example of this undocumented feature on the fourth page
of this document: http://www.omnidea.it/lyx/header-bug.pdf

Any suggestion? I'm not a TeX user: how can I change only one page header?

Thanks in advance

Gilberto De Faveri



\LyX is missing in 1.3.2?

2003-06-06 Thread Joao B. Oliveira

Hi everyone,

after installing LyX 1.3.2 and running it happily, today I came
across a file written with an older version, and it uses the \LyX
macro, causing TeX to fail.

This macro seems to be dropped in version 1.3.2 ? Dows anyone
remember the actual macro?

thanks in advance, 

joao b.





Re: \LyX is missing in 1.3.2?

2003-06-06 Thread Juergen Spitzmueller
 This macro seems to be dropped in version 1.3.2 ? Dows anyone
 remember the actual macro?

[EMAIL PROTECTED]

It has not been dropped but it is now only inserted if the user types LyX.
So you`ll get it if you write that.

Jürgen.




\LyX is missing: solved.

2003-06-06 Thread Joao B. Oliveira

Sorry guys, the answer was in the devel list but seemingly not
in the user list.

http://www.mail-archive.com/[EMAIL PROTECTED]/msg56335.html

j. b.
 




lyx does not split all lines ? (lyx-code emphasized text)

2003-06-06 Thread Lethal Weapon
Hello,

(this is a resend since it appears the first time it didn't get into the ml, maybe the 
msg was too big?)

I have a problem with LyX 1.3.2 on redhat 9:

When i write a too long sentence and the last very-long-word is in
Emphasized text, or when it's a long Lyx-Code, then generate the pdf,
those sentences go beyond the A4 page instead of being split on multiple
lines

Is this normal? Since it would require me to add many enters on my own
:/

Example lyx code attached and pdf on 
http://lethalwp.dyndns.org/~lethalwp/files/lyx/test.pdf


PS: I'm not on this mailing list, please send me a copy to my email :)



Greetings,
LethalWP
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass book
\language frenchb
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize 11
\spacing single 
\papersize a4paper
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Section

blablabla
\layout Standard

La taille d'entrée et la taille maximum de sortie nous sont fournies par,
 respectivement, 
\emph on 
Irpstack.blabla.Parameters.DeviceIoControl.InputBufferLength
\emph default 
 blablablablabalbalbal abal abla bla bal abla et 
\emph on 
Irpstack.blabla.Parameters.DeviceIoControl.OutputBufferLength
\emph default 
.
 Cette méthode nous assure la disponibilité des données, car en mémoire
 non paginée, même aux drivers de niveaux inférieur, mais une surcharge
 est prévisible du fait de la recopie.
\layout LyX-Code

 Irp-IoStatus.Information=0; // Pas de données renvoyées, Information=ta
ille de l'output
\the_end


Re: lyx does not split all lines ? (lyx-code emphasized text)

2003-06-06 Thread John Levon
On Thu, Jun 05, 2003 at 10:01:17PM +0200, Lethal Weapon wrote:

 When i write a too long sentence and the last very-long-word is in
 Emphasized text

It doesn't have any thing to do with emphasize, it's inter-word spacing.
Latex will refuse to break a line such that the spacing between words is
too large, because it looks awful.

If you want it you can use \sloppypar{ in ERT or break the line where
needed with control-return, or tell latex where to hyphenate the long
word.

 or when it's a long Lyx-Code,

It's your job to do it with lyx code I think. Perhaps listings package
can help, I forget.

regards
john



Re: header (chapter name) problem

2003-06-06 Thread Guldo K
On Thu, 5 Jun 2003 19:47:14 +0200 (CEST)
De Faveri Gilberto [EMAIL PROTECTED] wrote:

 Hi, I'm using LyX 1.3.2 under gentoo linux.
 
 I'm creating a new document using the book class and the first chapter
 after table of contents uses the Chapter* style.
 
 The header that lyx automatically puts on top of pages does not display
 the name of the chapter but the name of the TOC (typically it shows CONTENTS
 instead of INTRODUCTION). Automatic header generation for other chapter
 (shown in TOC) works fine for me.
This is typical :-)
Don't misunderstand me, I do love LyX, but sometimes it's not that nice...
Since you want to use a chapter*, I guess it is some kind of introduction,
isn't it? If that's the case, the LaTeX way to deal with it makes you
input some LaTeX commands into your LyX file, by means of ERT.
Try putting
\frontmatter
b4 your intro-chapter, change that environment from chapter* into chapter,
then put
\mainmatter
just b4 your real first chapter.
Then look at the dvi, and enjoy!

Anyway, the LaTeX command to change a pagestyle is
\pagestyle{headings}
for example; but this won't solve your problem at all.
Try that \{front,main}matter stuff!

Guldo
Debian Woody


Re: header (chapter name) problem

2003-06-06 Thread De Faveri Gilberto


On Fri, 6 Jun 2003, Guldo K wrote:

 Try putting
 \frontmatter
 b4 your intro-chapter, change that environment from chapter* into chapter,
 then put
 \mainmatter
 just b4 your real first chapter.
 Then look at the dvi, and enjoy!

Thank you very much: it worked great!

Gilberto De Faveri



Filename horrors

2003-06-06 Thread Angus Leeming
Sheesh, something somewhere has gone wrong with InsetGraphic's generation of 
EPS files from bitmaps in order to generate PS output.

Attached is a kludgy solution and a test case that demonstrates the problem.

Yet more reason to create a FileName class. This stuff is too fragile to be 
funny.

Also InsetGraphic's latex generation routines suck donkeys. Herbert may know 
his latex, but I hate his code :-{

Perhaps some kind sole will investigate further and ascertain why there's a 
need to add a unique id to copyFileToDir else taulogo.png and 
q13_graph.fig both generate eps files in the buffer tmp dir with the same 
name.

Something is going badly wrong I fear. Why do we bother to try and do this 
magic manipulation of the file name. Why not just generate a unique name 
and be done with it? A new function
string const uniqueName();
seems in order, generating a different string on each call.

Anyway, it's too late now. Good night.

-- 
AngusIndex: src/insets/insetgraphics.C
===
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/insetgraphics.C,v
retrieving revision 1.182
diff -u -p -r1.182 insetgraphics.C
--- src/insets/insetgraphics.C	3 Jun 2003 17:49:09 -	1.182
+++ src/insets/insetgraphics.C	5 Jun 2003 23:48:19 -
@@ -330,8 +330,12 @@ string const InsetGraphics::prepareFile(
 	string orig_file = params().filename;
 	string const rel_file = MakeRelPath(orig_file, buf-filePath());
 
-	if (!IsFileReadable(rel_file))
+	if (!IsFileReadable(orig_file)) {
+		lyxerr[Debug::GRAPHICS]
+			 InsetGraphics::prepareFile\n
+			 No file '  orig_file  ' can be found!  endl;
 		return rel_file;
+	}
 
 	bool const zipped = zippedFile(orig_file);
 
@@ -521,6 +525,8 @@ int InsetGraphics::latex(Buffer const * 
 		(before + '{' + relative_file +  not found!} + after);
 	os  latex_str;
 
+	lyxerr[Debug::GRAPHICS]  InsetGraphics::latex outputting:\n
+ latex_str  endl;
 	// Return how many newlines we issued.
 	return int(lyx::count(latex_str.begin(), latex_str.end(),'\n') + 1);
 }
Index: src/support/filetools.C
===
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/support/filetools.C,v
retrieving revision 1.153
diff -u -p -r1.153 filetools.C
--- src/support/filetools.C	3 Jun 2003 10:14:52 -	1.153
+++ src/support/filetools.C	5 Jun 2003 23:48:20 -
@@ -1337,6 +1337,9 @@ string copyFileToDir(string const  path
 	file_out = subst(file_out, /, _);
 	// Replace '.' in the file name with '_'
 	file_out = subst(file_out, ., _);
+	// Append a unique ID
+	static int id;
+	file_out += '_' + tostr(id++);
 	// Add the extension back on
 	file_out = ChangeExtension(file_out, GetExtension(file_in));
 	// Put this file in the buffer's temp dir


test.tar.gz
Description: GNU Zip compressed data


filename.lyx archive format?

2003-06-06 Thread Rithvik Vinekar
Hi there. This is the first time I've subscribed to the list, although I have 
used lyx a lot before, for my school projects. I had this problem with it.

If I save a word .doc document, it is saved with embedded images etc. It 
doesn't happen in lyx. I have a lyx document (eeg.lyx - concerning my EEG 
project) with many embedded eps and epslatex images. My problem is that I 
have saved eeg.lyx, but the images are lost, since I did not back them up 
(they were sourced from numerous places on filesystem  and I didn't bother to 
search for each of them)
I've learnt the hard way to set aside a directory for all these images then 
source them in the lyx document. Now I'm comfortable with this, but it still 
is a pain.
My question is, is it possible to save the lyx file+all source images etc in 
one archive in one go? In other words, the document is the lyx source + all 
source images that are meant to be embedded in it, in an archive.
It would save a lot of people from faulty backups.

If it is not already, it would be a lovely feature to add.


Re: filename.lyx archive format?

2003-06-06 Thread Andre Poenitz
On Fri, Jun 06, 2003 at 11:54:26AM +0530, Rithvik Vinekar wrote:
 My question is, is it possible to save the lyx file+all source images etc in 
 one archive in one go?

No(t yet).

 If it is not already, it would be a lovely feature to add.

You could have a look a bugzilla.lyx.org whether there exists a similar
feature request, and if not, file it there to make sure it is not
forgotten.

Andre'

-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)


Cross reference

2003-06-06 Thread Marcin Bukat
Hello All!

I do like feature of lyx (latex it is to say) that I can mark some 
section/subsection/subsubsection (adding label) and then, when I want 
point reader thet problem was previously disscused, insert 'cross 
reference', which will be automaticaly updated.
Is there a way to do the same with figures and tables?
For example I want to write:

Compare achived values with that in [reference to the table marked before].

After prossesing this would look like this:

Compare achived values with that in table 23.

Can anyone point me how to do that?

Regards
wo


Re: Cross reference

2003-06-06 Thread Andre Poenitz
On Fri, Jun 06, 2003 at 08:52:53AM +0200, Marcin Bukat wrote:
 I do like feature of lyx (latex it is to say) that I can mark some 
 section/subsection/subsubsection (adding label) and then, when I want 
 point reader thet problem was previously disscused, insert 'cross 
 reference', which will be automaticaly updated.
 Is there a way to do the same with figures and tables?

Exactly the same way.

Insert a label in the caption of the figure/table and insert a
reference to that label when you need it.

Andre'

-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)


Re: Cross reference

2003-06-06 Thread Marcin Bukat
Exactly the same way.

Insert a label in the caption of the figure/table and insert a
reference to that label when you need it.
Andre'

Oh in caption... that was the missing information :-).
Works great (as usual).
Regards
wo


small bug in interface translation?

2003-06-06 Thread Marcin Bukat
Hi!

In english version (LANG=en, LC_ALL=en) when I insert float-figure 
caption in this float begins with 'Figure:'. If I do the same with ma 
national settings (LANG=pl_PL, LC_ALL=pl_PL) insted of polish 
translation of 'Figure' I can see only '%1'. This applie only to the 
'editor' - dvi, gs, pdf produced are correct. The same applie to 
float-table insert.

I'm using lyx-1.3.1 compiled with xforms gui (xforms-1.0 stable). System 
is slackware.

This is not big problem - only estetic :-)

Regards
wo


figure caption font

2003-06-06 Thread Alexandru Ioan Cabuz
Hello,

I added some stuff to the preamble to make my figure captions italic, and smaller. I 
noticed however that the Fig. is still normal, then the number of the figure and the 
caption itself are italic. I think either it should be all italic, Unless this is the 
convention?

Alex.



Re: filename.lyx archive format?

2003-06-06 Thread Rithvik Vinekar
On Friday 06 Jun 2003 12:08 pm, Andre Poenitz wrote:
 On Fri, Jun 06, 2003 at 11:54:26AM +0530, Rithvik Vinekar wrote:
  My question is, is it possible to save the lyx file+all source images etc
  in one archive in one go?

 No(t yet).

  If it is not already, it would be a lovely feature to add.

 You could have a look a bugzilla.lyx.org whether there exists a similar
 feature request, and if not, file it there to make sure it is not
 forgotten.

 Andre'

Done. Thanks!


Re: figure caption font

2003-06-06 Thread Marcin Bukat
\makeatletter
[EMAIL PROTECTED]@makecaption
[EMAIL PROTECTED]@makecaption}
\makeatother
This one works for me :-)

(FIG 8. Diagramme bla bla bla)
Thats what I've got after added this to preamble (I mean whole caption 
is italic including digits)

Regards
wo


Re: figure caption font

2003-06-06 Thread Uwe Stöhr




Why don't you 
use the caption-package. Itworks very well when 
using\usepackage[options]{caption2}in the preamble.For your special 
problem use\usepackage[it,small]{caption2}where it is for the italic 
shape of the label and small for the captionsize.But please also have a look 
at the attached description.regards Uwe 
Hello, I added some stuff to the preamble to make my figure 
captions italic, andsmaller. I noticed however that the "Fig." is still 
normal, then the numberof the figure and the caption itself are italic. I 
think either it should beall italic, Unless this is the 
convention? 
Alex.


caption2.zip
Description: Zip compressed data


header (chapter name) problem

2003-06-06 Thread De Faveri Gilberto
Hi, I'm using LyX 1.3.2 under gentoo linux.

I'm creating a new document using the book class and the first chapter
after table of contents uses the Chapter* style.

The header that lyx automatically puts on top of pages does not display
the name of the chapter but the name of the TOC (typically it shows CONTENTS
instead of INTRODUCTION). Automatic header generation for other chapter
(shown in TOC) works fine for me.

You can see an example of this undocumented feature on the fourth page
of this document: http://www.omnidea.it/lyx/header-bug.pdf

Any suggestion? I'm not a TeX user: how can I change only one page header?

Thanks in advance

Gilberto De Faveri



\LyX is missing in 1.3.2?

2003-06-06 Thread Joao B. Oliveira

Hi everyone,

after installing LyX 1.3.2 and running it happily, today I came
across a file written with an older version, and it uses the \LyX
macro, causing TeX to fail.

This macro seems to be dropped in version 1.3.2 ? Dows anyone
remember the actual macro?

thanks in advance, 

joao b.





Re: \LyX is missing in 1.3.2?

2003-06-06 Thread Juergen Spitzmueller
 This macro seems to be dropped in version 1.3.2 ? Dows anyone
 remember the actual macro?

[EMAIL PROTECTED]

It has not been dropped but it is now only inserted if the user types LyX.
So you`ll get it if you write that.

Jürgen.




\LyX is missing: solved.

2003-06-06 Thread Joao B. Oliveira

Sorry guys, the answer was in the devel list but seemingly not
in the user list.

http://www.mail-archive.com/[EMAIL PROTECTED]/msg56335.html

j. b.
 




lyx does not split all lines ? (lyx-code emphasized text)

2003-06-06 Thread Lethal Weapon
Hello,

(this is a resend since it appears the first time it didn't get into the ml, maybe the 
msg was too big?)

I have a problem with LyX 1.3.2 on redhat 9:

When i write a too long sentence and the last very-long-word is in
Emphasized text, or when it's a long Lyx-Code, then generate the pdf,
those sentences go beyond the A4 page instead of being split on multiple
lines

Is this normal? Since it would require me to add many enters on my own
:/

Example lyx code attached and pdf on 
http://lethalwp.dyndns.org/~lethalwp/files/lyx/test.pdf


PS: I'm not on this mailing list, please send me a copy to my email :)



Greetings,
LethalWP
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass book
\language frenchb
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize 11
\spacing single 
\papersize a4paper
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Section

blablabla
\layout Standard

La taille d'entrée et la taille maximum de sortie nous sont fournies par,
 respectivement, 
\emph on 
Irpstack.blabla.Parameters.DeviceIoControl.InputBufferLength
\emph default 
 blablablablabalbalbal abal abla bla bal abla et 
\emph on 
Irpstack.blabla.Parameters.DeviceIoControl.OutputBufferLength
\emph default 
.
 Cette méthode nous assure la disponibilité des données, car en mémoire
 non paginée, même aux drivers de niveaux inférieur, mais une surcharge
 est prévisible du fait de la recopie.
\layout LyX-Code

 Irp-IoStatus.Information=0; // Pas de données renvoyées, Information=ta
ille de l'output
\the_end


Re: lyx does not split all lines ? (lyx-code emphasized text)

2003-06-06 Thread John Levon
On Thu, Jun 05, 2003 at 10:01:17PM +0200, Lethal Weapon wrote:

 When i write a too long sentence and the last very-long-word is in
 Emphasized text

It doesn't have any thing to do with emphasize, it's inter-word spacing.
Latex will refuse to break a line such that the spacing between words is
too large, because it looks awful.

If you want it you can use \sloppypar{ in ERT or break the line where
needed with control-return, or tell latex where to hyphenate the long
word.

 or when it's a long Lyx-Code,

It's your job to do it with lyx code I think. Perhaps listings package
can help, I forget.

regards
john



Re: header (chapter name) problem

2003-06-06 Thread Guldo K
On Thu, 5 Jun 2003 19:47:14 +0200 (CEST)
De Faveri Gilberto [EMAIL PROTECTED] wrote:

 Hi, I'm using LyX 1.3.2 under gentoo linux.
 
 I'm creating a new document using the book class and the first chapter
 after table of contents uses the Chapter* style.
 
 The header that lyx automatically puts on top of pages does not display
 the name of the chapter but the name of the TOC (typically it shows CONTENTS
 instead of INTRODUCTION). Automatic header generation for other chapter
 (shown in TOC) works fine for me.
This is typical :-)
Don't misunderstand me, I do love LyX, but sometimes it's not that nice...
Since you want to use a chapter*, I guess it is some kind of introduction,
isn't it? If that's the case, the LaTeX way to deal with it makes you
input some LaTeX commands into your LyX file, by means of ERT.
Try putting
\frontmatter
b4 your intro-chapter, change that environment from chapter* into chapter,
then put
\mainmatter
just b4 your real first chapter.
Then look at the dvi, and enjoy!

Anyway, the LaTeX command to change a pagestyle is
\pagestyle{headings}
for example; but this won't solve your problem at all.
Try that \{front,main}matter stuff!

Guldo
Debian Woody


Re: header (chapter name) problem

2003-06-06 Thread De Faveri Gilberto


On Fri, 6 Jun 2003, Guldo K wrote:

 Try putting
 \frontmatter
 b4 your intro-chapter, change that environment from chapter* into chapter,
 then put
 \mainmatter
 just b4 your real first chapter.
 Then look at the dvi, and enjoy!

Thank you very much: it worked great!

Gilberto De Faveri



Filename horrors

2003-06-06 Thread Angus Leeming
Sheesh, something somewhere has gone wrong with InsetGraphic's generation of 
EPS files from bitmaps in order to generate PS output.

Attached is a kludgy solution and a test case that demonstrates the problem.

Yet more reason to create a FileName class. This stuff is too fragile to be 
funny.

Also InsetGraphic's latex generation routines suck donkeys. Herbert may know 
his latex, but I hate his code :-{

Perhaps some kind sole will investigate further and ascertain why there's a 
need to add a unique id to copyFileToDir else taulogo.png and 
q13_graph.fig both generate eps files in the buffer tmp dir with the same 
name.

Something is going badly wrong I fear. Why do we bother to try and do this 
magic manipulation of the file name. Why not just generate a unique name 
and be done with it? A new function
string const uniqueName();
seems in order, generating a different string on each call.

Anyway, it's too late now. Good night.

-- 
AngusIndex: src/insets/insetgraphics.C
===
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/insetgraphics.C,v
retrieving revision 1.182
diff -u -p -r1.182 insetgraphics.C
--- src/insets/insetgraphics.C	3 Jun 2003 17:49:09 -	1.182
+++ src/insets/insetgraphics.C	5 Jun 2003 23:48:19 -
@@ -330,8 +330,12 @@ string const InsetGraphics::prepareFile(
 	string orig_file = params().filename;
 	string const rel_file = MakeRelPath(orig_file, buf-filePath());
 
-	if (!IsFileReadable(rel_file))
+	if (!IsFileReadable(orig_file)) {
+		lyxerr[Debug::GRAPHICS]
+			 InsetGraphics::prepareFile\n
+			 No file '  orig_file  ' can be found!  endl;
 		return rel_file;
+	}
 
 	bool const zipped = zippedFile(orig_file);
 
@@ -521,6 +525,8 @@ int InsetGraphics::latex(Buffer const * 
 		(before + '{' + relative_file +  not found!} + after);
 	os  latex_str;
 
+	lyxerr[Debug::GRAPHICS]  InsetGraphics::latex outputting:\n
+ latex_str  endl;
 	// Return how many newlines we issued.
 	return int(lyx::count(latex_str.begin(), latex_str.end(),'\n') + 1);
 }
Index: src/support/filetools.C
===
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/support/filetools.C,v
retrieving revision 1.153
diff -u -p -r1.153 filetools.C
--- src/support/filetools.C	3 Jun 2003 10:14:52 -	1.153
+++ src/support/filetools.C	5 Jun 2003 23:48:20 -
@@ -1337,6 +1337,9 @@ string copyFileToDir(string const  path
 	file_out = subst(file_out, /, _);
 	// Replace '.' in the file name with '_'
 	file_out = subst(file_out, ., _);
+	// Append a unique ID
+	static int id;
+	file_out += '_' + tostr(id++);
 	// Add the extension back on
 	file_out = ChangeExtension(file_out, GetExtension(file_in));
 	// Put this file in the buffer's temp dir


test.tar.gz
Description: GNU Zip compressed data


filename.lyx archive format?

2003-06-06 Thread Rithvik Vinekar
Hi there. This is the first time I've subscribed to the list, although I have 
used lyx a lot before, for my school projects. I had this problem with it.

If I save a word .doc document, it is saved with embedded images etc. It 
doesn't happen in lyx. I have a lyx document (eeg.lyx - concerning my EEG 
project) with many embedded eps and epslatex images. My problem is that I 
have saved eeg.lyx, but the images are lost, since I did not back them up 
(they were sourced from numerous places on filesystem  and I didn't bother to 
search for each of them)
I've learnt the hard way to set aside a directory for all these images then 
source them in the lyx document. Now I'm comfortable with this, but it still 
is a pain.
My question is, is it possible to save the lyx file+all source images etc in 
one archive in one go? In other words, the document is the lyx source + all 
source images that are meant to be embedded in it, in an archive.
It would save a lot of people from faulty backups.

If it is not already, it would be a lovely feature to add.


Re: filename.lyx archive format?

2003-06-06 Thread Andre Poenitz
On Fri, Jun 06, 2003 at 11:54:26AM +0530, Rithvik Vinekar wrote:
 My question is, is it possible to save the lyx file+all source images etc in 
 one archive in one go?

No(t yet).

 If it is not already, it would be a lovely feature to add.

You could have a look a bugzilla.lyx.org whether there exists a similar
feature request, and if not, file it there to make sure it is not
forgotten.

Andre'

-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)


Cross reference

2003-06-06 Thread Marcin Bukat
Hello All!

I do like feature of lyx (latex it is to say) that I can mark some 
section/subsection/subsubsection (adding label) and then, when I want 
point reader thet problem was previously disscused, insert 'cross 
reference', which will be automaticaly updated.
Is there a way to do the same with figures and tables?
For example I want to write:

Compare achived values with that in [reference to the table marked before].

After prossesing this would look like this:

Compare achived values with that in table 23.

Can anyone point me how to do that?

Regards
wo


Re: Cross reference

2003-06-06 Thread Andre Poenitz
On Fri, Jun 06, 2003 at 08:52:53AM +0200, Marcin Bukat wrote:
 I do like feature of lyx (latex it is to say) that I can mark some 
 section/subsection/subsubsection (adding label) and then, when I want 
 point reader thet problem was previously disscused, insert 'cross 
 reference', which will be automaticaly updated.
 Is there a way to do the same with figures and tables?

Exactly the same way.

Insert a label in the caption of the figure/table and insert a
reference to that label when you need it.

Andre'

-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)


Re: Cross reference

2003-06-06 Thread Marcin Bukat
Exactly the same way.

Insert a label in the caption of the figure/table and insert a
reference to that label when you need it.
Andre'

Oh in caption... that was the missing information :-).
Works great (as usual).
Regards
wo


small bug in interface translation?

2003-06-06 Thread Marcin Bukat
Hi!

In english version (LANG=en, LC_ALL=en) when I insert float-figure 
caption in this float begins with 'Figure:'. If I do the same with ma 
national settings (LANG=pl_PL, LC_ALL=pl_PL) insted of polish 
translation of 'Figure' I can see only '%1'. This applie only to the 
'editor' - dvi, gs, pdf produced are correct. The same applie to 
float-table insert.

I'm using lyx-1.3.1 compiled with xforms gui (xforms-1.0 stable). System 
is slackware.

This is not big problem - only estetic :-)

Regards
wo


figure caption font

2003-06-06 Thread Alexandru Ioan Cabuz
Hello,

I added some stuff to the preamble to make my figure captions italic, and smaller. I 
noticed however that the Fig. is still normal, then the number of the figure and the 
caption itself are italic. I think either it should be all italic, Unless this is the 
convention?

Alex.



Re: filename.lyx archive format?

2003-06-06 Thread Rithvik Vinekar
On Friday 06 Jun 2003 12:08 pm, Andre Poenitz wrote:
 On Fri, Jun 06, 2003 at 11:54:26AM +0530, Rithvik Vinekar wrote:
  My question is, is it possible to save the lyx file+all source images etc
  in one archive in one go?

 No(t yet).

  If it is not already, it would be a lovely feature to add.

 You could have a look a bugzilla.lyx.org whether there exists a similar
 feature request, and if not, file it there to make sure it is not
 forgotten.

 Andre'

Done. Thanks!


Re: figure caption font

2003-06-06 Thread Marcin Bukat
\makeatletter
[EMAIL PROTECTED]@makecaption
[EMAIL PROTECTED]@makecaption}
\makeatother
This one works for me :-)

(FIG 8. Diagramme bla bla bla)
Thats what I've got after added this to preamble (I mean whole caption 
is italic including digits)

Regards
wo


Re: figure caption font

2003-06-06 Thread Uwe Stöhr




Why don't you 
use the caption-package. Itworks very well when 
using\usepackage[options]{caption2}in the preamble.For your special 
problem use\usepackage[it,small]{caption2}where it is for the italic 
shape of the label and small for the captionsize.But please also have a look 
at the attached description.regards Uwe 
Hello, I added some stuff to the preamble to make my figure 
captions italic, andsmaller. I noticed however that the "Fig." is still 
normal, then the numberof the figure and the caption itself are italic. I 
think either it should beall italic, Unless this is the 
convention? 
Alex.


caption2.zip
Description: Zip compressed data


header (chapter name) problem

2003-06-06 Thread De Faveri Gilberto
Hi, I'm using LyX 1.3.2 under gentoo linux.

I'm creating a new document using the book class and the first chapter
after table of contents uses the Chapter* style.

The header that lyx automatically puts on top of pages does not display
the name of the chapter but the name of the TOC (typically it shows "CONTENTS"
instead of "INTRODUCTION"). Automatic header generation for other chapter
(shown in TOC) works fine for me.

You can see an example of this "undocumented feature" on the fourth page
of this document: http://www.omnidea.it/lyx/header-bug.pdf

Any suggestion? I'm not a TeX user: how can I change only one page header?

Thanks in advance

Gilberto De Faveri



\LyX is missing in 1.3.2?

2003-06-06 Thread Joao B. Oliveira

Hi everyone,

after installing LyX 1.3.2 and running it happily, today I came
across a file written with an older version, and it uses the \LyX
macro, causing TeX to fail.

This macro seems to be dropped in version 1.3.2 ? Dows anyone
remember the actual macro?

thanks in advance, 

joao b.





Re: \LyX is missing in 1.3.2?

2003-06-06 Thread Juergen Spitzmueller
> This macro seems to be dropped in version 1.3.2 ? Dows anyone
> remember the actual macro?

[EMAIL PROTECTED]

It has not been dropped but it is now only inserted if the user types "LyX".
So you`ll get it if you write that.

Jürgen.




\LyX is missing: solved.

2003-06-06 Thread Joao B. Oliveira

Sorry guys, the answer was in the devel list but seemingly not
in the user list.

http://www.mail-archive.com/[EMAIL PROTECTED]/msg56335.html

j. b.
 




lyx does not split all lines ? (lyx-code & emphasized text)

2003-06-06 Thread Lethal Weapon
Hello,

(this is a resend since it appears the first time it didn't get into the ml, maybe the 
msg was too big?)

I have a problem with LyX 1.3.2 on redhat 9:

When i write a too long sentence and the last very-long-word is in
Emphasized text, or when it's a long Lyx-Code, then generate the pdf,
those sentences go beyond the A4 page instead of being split on multiple
lines

Is this normal? Since it would require me to add many enters on my own
:/

Example lyx code attached and pdf on 
http://lethalwp.dyndns.org/~lethalwp/files/lyx/test.pdf


PS: I'm not on this mailing list, please send me a copy to my email :)



Greetings,
LethalWP
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass book
\language frenchb
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize 11
\spacing single 
\papersize a4paper
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Section

blablabla
\layout Standard

La taille d'entrée et la taille maximum de sortie nous sont fournies par,
 respectivement, 
\emph on 
Irpstack.blabla.Parameters.DeviceIoControl.InputBufferLength
\emph default 
 blablablablabalbalbal abal abla bla bal abla et 
\emph on 
Irpstack.blabla.Parameters.DeviceIoControl.OutputBufferLength
\emph default 
.
 Cette méthode nous assure la disponibilité des données, car en mémoire
 non paginée, même aux drivers de niveaux inférieur, mais une surcharge
 est prévisible du fait de la recopie.
\layout LyX-Code

 Irp->IoStatus.Information=0; // Pas de données renvoyées, Information=ta
ille de l'output
\the_end


Re: lyx does not split all lines ? (lyx-code & emphasized text)

2003-06-06 Thread John Levon
On Thu, Jun 05, 2003 at 10:01:17PM +0200, Lethal Weapon wrote:

> When i write a too long sentence and the last very-long-word is in
> Emphasized text

It doesn't have any thing to do with emphasize, it's inter-word spacing.
Latex will refuse to break a line such that the spacing between words is
too large, because it looks awful.

If you want it you can use \sloppypar{ in ERT or break the line where
needed with control-return, or tell latex where to hyphenate the long
word.

> or when it's a long Lyx-Code,

It's your job to do it with lyx code I think. Perhaps listings package
can help, I forget.

regards
john



Re: header (chapter name) problem

2003-06-06 Thread Guldo K
On Thu, 5 Jun 2003 19:47:14 +0200 (CEST)
De Faveri Gilberto <[EMAIL PROTECTED]> wrote:

> Hi, I'm using LyX 1.3.2 under gentoo linux.
> 
> I'm creating a new document using the book class and the first chapter
> after table of contents uses the Chapter* style.
> 
> The header that lyx automatically puts on top of pages does not display
> the name of the chapter but the name of the TOC (typically it shows "CONTENTS"
> instead of "INTRODUCTION"). Automatic header generation for other chapter
> (shown in TOC) works fine for me.
This is typical :-)
Don't misunderstand me, I do love LyX, but sometimes it's not that nice...
Since you want to use a chapter*, I guess it is some kind of introduction,
isn't it? If that's the case, the LaTeX way to deal with it makes you
input some LaTeX commands into your LyX file, by means of ERT.
Try putting
\frontmatter
b4 your intro-chapter, change that environment from chapter* into chapter,
then put
\mainmatter
just b4 your "real" first chapter.
Then look at the dvi, and enjoy!

Anyway, the LaTeX command to change a pagestyle is
\pagestyle{headings}
for example; but this won't solve your problem at all.
Try that \{front,main}matter stuff!

Guldo
Debian Woody


Re: header (chapter name) problem

2003-06-06 Thread De Faveri Gilberto


On Fri, 6 Jun 2003, Guldo K wrote:

> Try putting
> \frontmatter
> b4 your intro-chapter, change that environment from chapter* into chapter,
> then put
> \mainmatter
> just b4 your "real" first chapter.
> Then look at the dvi, and enjoy!

Thank you very much: it worked great!

Gilberto De Faveri



Filename horrors

2003-06-06 Thread Angus Leeming
Sheesh, something somewhere has gone wrong with InsetGraphic's generation of 
EPS files from bitmaps in order to generate PS output.

Attached is a kludgy solution and a test case that demonstrates the problem.

Yet more reason to create a FileName class. This stuff is too fragile to be 
funny.

Also InsetGraphic's latex generation routines suck donkeys. Herbert may know 
his latex, but I hate his code :-{

Perhaps some kind sole will investigate further and ascertain why there's a 
need to "add a unique id" to copyFileToDir else taulogo.png and 
q13_graph.fig both generate eps files in the buffer tmp dir with the same 
name.

Something is going badly wrong I fear. Why do we bother to try and do this 
magic manipulation of the file name. Why not just generate a unique name 
and be done with it? A new function
string const uniqueName();
seems in order, generating a different string on each call.

Anyway, it's too late now. Good night.

-- 
AngusIndex: src/insets/insetgraphics.C
===
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/insetgraphics.C,v
retrieving revision 1.182
diff -u -p -r1.182 insetgraphics.C
--- src/insets/insetgraphics.C	3 Jun 2003 17:49:09 -	1.182
+++ src/insets/insetgraphics.C	5 Jun 2003 23:48:19 -
@@ -330,8 +330,12 @@ string const InsetGraphics::prepareFile(
 	string orig_file = params().filename;
 	string const rel_file = MakeRelPath(orig_file, buf->filePath());
 
-	if (!IsFileReadable(rel_file))
+	if (!IsFileReadable(orig_file)) {
+		lyxerr[Debug::GRAPHICS]
+			<< "InsetGraphics::prepareFile\n"
+			<< "No file '" << orig_file << "' can be found!" << endl;
 		return rel_file;
+	}
 
 	bool const zipped = zippedFile(orig_file);
 
@@ -521,6 +525,8 @@ int InsetGraphics::latex(Buffer const * 
 		(before + '{' + relative_file + " not found!}" + after);
 	os << latex_str;
 
+	lyxerr[Debug::GRAPHICS] << "InsetGraphics::latex outputting:\n"
+<< latex_str << endl;
 	// Return how many newlines we issued.
 	return int(lyx::count(latex_str.begin(), latex_str.end(),'\n') + 1);
 }
Index: src/support/filetools.C
===
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/support/filetools.C,v
retrieving revision 1.153
diff -u -p -r1.153 filetools.C
--- src/support/filetools.C	3 Jun 2003 10:14:52 -	1.153
+++ src/support/filetools.C	5 Jun 2003 23:48:20 -
@@ -1337,6 +1337,9 @@ string copyFileToDir(string const & path
 	file_out = subst(file_out, "/", "_");
 	// Replace '.' in the file name with '_'
 	file_out = subst(file_out, ".", "_");
+	// Append a unique ID
+	static int id;
+	file_out += '_' + tostr(id++);
 	// Add the extension back on
 	file_out = ChangeExtension(file_out, GetExtension(file_in));
 	// Put this file in the buffer's temp dir


test.tar.gz
Description: GNU Zip compressed data


filename.lyx archive format?

2003-06-06 Thread Rithvik Vinekar
Hi there. This is the first time I've subscribed to the list, although I have 
used lyx a lot before, for my school projects. I had this problem with it.

If I save a word .doc document, it is saved with embedded images etc. It 
doesn't happen in lyx. I have a lyx document (eeg.lyx - concerning my EEG 
project) with many embedded eps and epslatex images. My problem is that I 
have saved eeg.lyx, but the images are lost, since I did not back them up 
(they were sourced from numerous places on filesystem  and I didn't bother to 
search for each of them)
I've learnt the hard way to set aside a directory for all these images then 
source them in the lyx document. Now I'm comfortable with this, but it still 
is a pain.
My question is, is it possible to save the lyx file+all source images etc in 
one archive in one go? In other words, the document is the lyx source + all 
source images that are meant to be embedded in it, in an archive.
It would save a lot of people from faulty backups.

If it is not already, it would be a lovely feature to add.


Re: filename.lyx archive format?

2003-06-06 Thread Andre Poenitz
On Fri, Jun 06, 2003 at 11:54:26AM +0530, Rithvik Vinekar wrote:
> My question is, is it possible to save the lyx file+all source images etc in 
> one archive in one go?

No(t yet).

> If it is not already, it would be a lovely feature to add.

You could have a look a bugzilla.lyx.org whether there exists a similar
feature request, and if not, file it there to make sure it is not
forgotten.

Andre'

-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)


Cross reference

2003-06-06 Thread Marcin Bukat
Hello All!

I do like feature of lyx (latex it is to say) that I can mark some 
section/subsection/subsubsection (adding label) and then, when I want 
point reader thet problem was previously disscused, insert 'cross 
reference', which will be automaticaly updated.
Is there a way to do the same with figures and tables?
For example I want to write:

Compare achived values with that in [reference to the table marked before].

After prossesing this would look like this:

Compare achived values with that in table 23.

Can anyone point me how to do that?

Regards
wo


Re: Cross reference

2003-06-06 Thread Andre Poenitz
On Fri, Jun 06, 2003 at 08:52:53AM +0200, Marcin Bukat wrote:
> I do like feature of lyx (latex it is to say) that I can mark some 
> section/subsection/subsubsection (adding label) and then, when I want 
> point reader thet problem was previously disscused, insert 'cross 
> reference', which will be automaticaly updated.
> Is there a way to do the same with figures and tables?

Exactly the same way.

Insert a label in the caption of the figure/table and insert a
reference to that label when you need it.

Andre'

-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)


Re: Cross reference

2003-06-06 Thread Marcin Bukat
Exactly the same way.

Insert a label in the caption of the figure/table and insert a
reference to that label when you need it.
Andre'

Oh in caption... that was the missing information :-).
Works great (as usual).
Regards
wo


small bug in interface translation?

2003-06-06 Thread Marcin Bukat
Hi!

In english version (LANG=en, LC_ALL=en) when I insert float->figure 
caption in this float begins with 'Figure:'. If I do the same with ma 
national settings (LANG=pl_PL, LC_ALL=pl_PL) insted of polish 
translation of 'Figure' I can see only '%1'. This applie only to the 
'editor' - dvi, gs, pdf produced are correct. The same applie to 
float->table insert.

I'm using lyx-1.3.1 compiled with xforms gui (xforms-1.0 stable). System 
is slackware.

This is not big problem - only estetic :-)

Regards
wo


figure caption font

2003-06-06 Thread Alexandru Ioan Cabuz
Hello,

I added some stuff to the preamble to make my figure captions italic, and smaller. I 
noticed however that the "Fig." is still normal, then the number of the figure and the 
caption itself are italic. I think either it should be all italic, Unless this is the 
convention?

Alex.



Re: filename.lyx archive format?

2003-06-06 Thread Rithvik Vinekar
On Friday 06 Jun 2003 12:08 pm, Andre Poenitz wrote:
> On Fri, Jun 06, 2003 at 11:54:26AM +0530, Rithvik Vinekar wrote:
> > My question is, is it possible to save the lyx file+all source images etc
> > in one archive in one go?
>
> No(t yet).
>
> > If it is not already, it would be a lovely feature to add.
>
> You could have a look a bugzilla.lyx.org whether there exists a similar
> feature request, and if not, file it there to make sure it is not
> forgotten.
>
> Andre'

Done. Thanks!


Re: figure caption font

2003-06-06 Thread Marcin Bukat
\makeatletter
[EMAIL PROTECTED]@makecaption
[EMAIL PROTECTED]@makecaption}
\makeatother
This one works for me :-)

(FIG 8. Diagramme bla bla bla)
Thats what I've got after added this to preamble (I mean whole caption 
is italic including digits)

Regards
wo


Re: figure caption font

2003-06-06 Thread Uwe Stöhr




Why don't you 
use the caption-package. It works very well when 
using\usepackage[options]{caption2}in the preamble.For your special 
problem use\usepackage[it,small]{caption2}where it is for the italic 
shape of the label and small for the captionsize.But please also have a look 
at the attached description.regards Uwe> 
Hello,>> I added some stuff to the preamble to make my figure 
captions italic, andsmaller. I noticed however that the "Fig." is still 
normal, then the numberof the figure and the caption itself are italic. I 
think either it should beall italic, Unless this is the 
convention?>> 
Alex.>


caption2.zip
Description: Zip compressed data