Re: Why does TeX style use ~ for space?

1999-10-25 Thread Juergen Vigna


On 23-Oct-99 Lars Gullik Bjønnes wrote:

 As far as I can see this is close to the correct fix, but I_want some
 others to have a look at it befor I apply it.
 
  FYI:_ Text marged as Tex, and text in the TeX paragraph style should
 never be altered by LyX, and if LyX does alter the text it can be
 considered a bug.

I couldn't more agree!

Jürgen

-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Dr. Jürgen Vigna  E-Mail: [EMAIL PROTECTED]
Gerbergasse 60Tel:+39-0471-450260
I-39100 Bozen Fax:+39-0471-970042
ITALY Web:http://www.sad.it/~jug

"I never let my schooling get in the way of my education."
-- Mark Twain

-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._



Re: Why does TeX style use ~ for space?

1999-10-25 Thread Jean-Marc Lasgouttes

 "Bruce" == Bruce Momjian [EMAIL PROTECTED] writes:

Bruce I am wondering why LyX uses the non-wrapping space ~ in
Bruce TeX-style areas?

I am not sure I understand what you mean? Could you send the original
lyx file and the faulty output you get? 

Bruce I understand in LyX-Code blocks that using the ~ prevents
Bruce wrapping and forces the text to appear exactly as you enter it.

Yes.

Bruce However, when you are doing a paragraph, and have a few words
Bruce of typewriter output set in TeX-style, the tex will not allow a
Bruce linebreak inside the TeX-style area because of the use of ~.

That's where I stop to understand ;) It does not seem to me that TeX
style uses ~. Unless I am really stupid (which is very possible), the
part of code that you change is _not_ triggered in TeX style:

} else if (font.latex() == LyXFont::OFF) {
!   if (font.family() == LyXFont::TYPEWRITER_FAMILY) {
file += '~';

Bruce OK, here is a patch that does what I needed. It uses ~ for
Bruce LyX-Code environment, but spaces for Tex-Code in other
Bruce environments. The test is to compare the current environment to
Bruce LyX-Code, and do the ~ only in those cases.

Testing explicitely for the name of the environment is certainly not a
good idea. However, once we get to know what the actual problem is,
we'll certainly manage to find a fix.

JMarc



Re: included files

1999-10-25 Thread Jean-Marc Lasgouttes

 "Jean-Pierre" == Jean-Pierre Chretien [EMAIL PROTECTED] writes:

Jean-Pierre I indicated in a previous answer to this thread that it
Jean-Pierre seemed to me that \input@path does nothing about the
Jean-Pierre \special{psfile=foo.pstex} which is in the foo.pstex_t
Jean-Pierre file (correctly inputted as is, without renamimg it to
Jean-Pierre foo.pstex_t.tex).

This is indeed the problem.

Jean-Pierre In the same line, I mentioned that it seemed that the
Jean-Pierre texmf tree is searched before the \input@path, which is a
Jean-Pierre big difference between work in the temporary and work in
Jean-Pierre the lyx doc dir after exporting as LaTeX (and breaks the
Jean-Pierre way I mask general settings by local ones). Is that
Jean-Pierre correct also ?

I think there is a problem here. Currently, \input@path is set to
{doc-path}, whereas it should be {{doc-path}{}}, if I am not mistaken.
I'll have to take a look.

JMarc



Re: relyx: Are there limitations?

1999-10-25 Thread Jean-Marc Lasgouttes

 "Jan" == Jan Ulrich Hasecke [EMAIL PROTECTED] writes:

Jan Hi Lyxers, I want to insert a big latex-file into Lyx via Relyx.
Jan Lyx creates four files in the working directory named
Jan filename.relyx[1-4] but no lyx-file.

Jan The size of the latex-file is 678063 Byte

Jan I tried it with different preambles - but with no success.

Did you try running reLyX from the command line? What error message do
you get?

JMarc



Publication on Industrial and Engineering Chemistry Research

1999-10-25 Thread Marco Bravi

Dear LyX-ers,

I am about to send a manuscript for publication in Industrial and
Engineering Chemistry Research (an American Chemical Society magazine).

They allow TeX/LaTeX files in BUT they state:

(...) Avoid using \include, \epsffile{}, or \input commands to link
external files, including any graphics files. All the parts of the paper
listed above must be present within a single file. (...)

I am rather dubious about how I can put my EPS or mixed LaTeX/PostScript
image files inside the main document. So far, I used "Insert-Figure-EPS"
and "Insert-Include-Use Include, respectively. What should I do now? Is
it at all possible (maybe, using raw LaTeX, if LyX does not support this).

Thanks in advance for your consideration and help.

Marco Bravi

--
Marco Bravi [EMAIL PROTECTED]
Dip. Ing. Chimica   tel. +39-6-44585587 / 612
v. Eudossiana, 18   fax  +39-6-4827453
I-00184 Roma (Italy)




Re: included files

1999-10-25 Thread Jean-Marc Lasgouttes

 "Mate" == Mate Wierdl [EMAIL PROTECTED] writes:

Mate Guys, Any included file has to be in the same dir as the lyx doc
Mate you are including it into. So all files exported from xfig needs
Mate to be in the current dir. The current dir is always searched for
Mate input files unless you messed up your texinputs path.

I do not think it is needed, they could be in a figs/ subdirectory
too, or anyway pointed to by TEXINPUTS.

JMarc



Double question

1999-10-25 Thread Antonio Zugaldia Rodriguez

Hello everybody!

* First a LaTeX question: ¿Is there any form of inserting an equal sign
(=) with a superscript?, really, with a number as a superscript. (Like
an "enumerate" of equal signs.)

* Second a LyX question: ¿How can I use question #1 in LyX? (If
possible.)

Thank you very much.

Regards.

Antonio Zugaldia Rodriguez [EMAIL PROTECTED]



Re: Why does TeX style use ~ for space?

1999-10-25 Thread Bruce Momjian

  "Bruce" == Bruce Momjian [EMAIL PROTECTED] writes:
 
 Bruce I am wondering why LyX uses the non-wrapping space ~ in
 Bruce TeX-style areas?
 
 I am not sure I understand what you mean? Could you send the original
 lyx file and the faulty output you get? 

I am sorry.  I am very stupid about getting my mode names right.  My
problem is with:

\family typewriter 
SELECT city FROM friends
\family default 

This code is the one that gets translated to:

SELECT~city~FROM~friends

and when this text is part of a paragraph, no wrapping can occur within
this text.  That is my problem.  My patch prevents ~ translation for
'typewriter' mode, not TeX mode as I state.

I have retained the rest of the message for your reference.  I have
fixed the naming of the modes.

 
 Bruce I understand in LyX-Code blocks that using the ~ prevents
 Bruce wrapping and forces the text to appear exactly as you enter it.
 
 Yes.
 
 Bruce However, when you are doing a paragraph, and have a few words
 Bruce of typewriter output, the tex will not allow a
 Bruce linebreak inside the typewriter area because of the use of ~.
 
 That's where I stop to understand ;) It does not seem to me that TeX
 style uses ~. Unless I am really stupid (which is very possible), the
 part of code that you change is _not_ triggered in TeX style:
 
   } else if (font.latex() == LyXFont::OFF) {
 ! if (font.family() == LyXFont::TYPEWRITER_FAMILY) {
   file += '~';
 
 Bruce OK, here is a patch that does what I needed. It uses ~ for
 Bruce LyX-Code environment, but spaces for typewriter in other
 Bruce environments. The test is to compare the current environment to
 Bruce LyX-Code, and do the ~ only in those cases.
 
 Testing explicitely for the name of the environment is certainly not a
 good idea. However, once we get to know what the actual problem is,
 we'll certainly manage to find a fix.
 
 JMarc
 

Thanks.

-- 
  Bruce Momjian|  http://www.op.net/~candle
  [EMAIL PROTECTED]|  (610) 853-3000
  +  If your life is a hard drive, |  830 Blythe Avenue
  +  Christ can be your backup.|  Drexel Hill, Pennsylvania 19026



Re: Double question

1999-10-25 Thread Jean-Marc Lasgouttes

 "Antonio" == Antonio Zugaldia Rodriguez [EMAIL PROTECTED] writes:

Antonio Hello everybody! * First a LaTeX question: ¿Is there any form
Antonio of inserting an equal sign (=) with a superscript?, really,
Antonio with a number as a superscript. (Like an "enumerate" of equal
Antonio signs.)

Antonio * Second a LyX question: ¿How can I use question #1 in LyX?
Antonio (If possible.)

Just do a = sign with a superscript :)

Longer answer: M-m m = ^ 1.

JMarc



Q: Lyx and languages

1999-10-25 Thread Stefan Krischer

Hi everybody,

Is there a way to write mixed language texts with Lyx, e.g. german and
hebrew or german and greek?

Stefan



RE: Q: Lyx and languages

1999-10-25 Thread Juergen Vigna


On 25-Oct-99 Stefan Krischer wrote:
 Hi everybody,
 
 Is there a way to write mixed language texts with Lyx, e.g. german and
 hebrew or german and greek?

You mean probably if words are then spellchecked with the right dictionary
and if the hyphenation is correct. The answer to this is no, it's not yet
possible! It's on our TODO list thought :)

You may achieve the hyphenation inserting directly LaTeX language change
commands in the text, but unfortuately I don't know them right now.

Greets Jürgen

-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Dr. Jürgen Vigna  E-Mail: [EMAIL PROTECTED]
Gerbergasse 60Tel:+39-0471-450260
I-39100 Bozen Fax:+39-0471-970042
ITALY Web:http://www.sad.it/~jug

Send some filthy mail.

-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._



References across multi-part documents?

1999-10-25 Thread Andreas Busch

Hi,

is there a way to insert cross-references which span different parts of a 
multi-part document? I am writing a book which presently consists of a 
"book.lyx" file which includes several "part_{1..4}.lyx" files.
I would like to refer in the "part_1.lyx" file to a marker I set in the 
"part_4.lyx" file, but cannot do so for the marker is not visible in the 
dialogue box.
No mention of this issue is made in the documentation, as far as I can 
see. 
So, is it possible to do it? If not, that would greatly deminish the value of 
the multi-part document option.

I hope there is an ingenious way to do it...

BTW, I am using LyX 1.0.1 under both Linux and OS/2.

Thanks for any help,

Andreas

-- 
Dr. Andreas Busch
Universitaet Heidelberg Tel. (06221) 54-2874
Institut fuer Politische Wissenschaft   Fax (06221) 54-2896
Marstallstrasse 6   E-Mail: [EMAIL PROTECTED]
69117 Heidelberg, Germany   http://www.rzuser.uni-heidelberg.de/~bp7




Re: Why does TeX style use ~ for space?

1999-10-25 Thread Jean-Marc Lasgouttes

 "Bruce" == Bruce Momjian [EMAIL PROTECTED] writes:

  "Bruce" == Bruce Momjian [EMAIL PROTECTED] writes:
 
Bruce I am wondering why LyX uses the non-wrapping space ~ in
Bruce TeX-style areas?
  I am not sure I understand what you mean? Could you send the
 original lyx file and the faulty output you get?

Bruce I am sorry. I am very stupid about getting my mode names right.
Bruce My problem is with:

Bruce \family typewriter SELECT city FROM friends \family default

Bruce This code is the one that gets translated to:

Bruce SELECT~city~FROM~friends

Bruce and when this text is part of a paragraph, no wrapping can
Bruce occur within this text. That is my problem. My patch prevents ~
Bruce translation for 'typewriter' mode, not TeX mode as I state.

OK, the right solution is probably to test on the FreeSpacing property
of a layout, instead of tt font: this is the one which controls
whether multiple consecutive spaces are allowed. Or I could add a new
tag just for that.

Comments?

JMarc



Re: Why does TeX style use ~ for space?

1999-10-25 Thread Jean-Marc Lasgouttes

 "Bruce" == Bruce Momjian [EMAIL PROTECTED] writes:

Bruce OK, much cleaner patch attached, and it still fixes the
Bruce problem. I am a little surprised no one else had this problem,
Bruce but I guess most people use a single typewriter-style word in a
Bruce paragraph, while I have groups of words all set in typewriter
Bruce style.

In fact, I am tempted to remove the test on typewriter font, which
does not make much sense anyway. What do the others think?

JMarc



Re: Why does TeX style use ~ for space?

1999-10-25 Thread Bruce Momjian

  "Bruce" == Bruce Momjian [EMAIL PROTECTED] writes:
 
 Bruce OK, much cleaner patch attached, and it still fixes the
 Bruce problem. I am a little surprised no one else had this problem,
 Bruce but I guess most people use a single typewriter-style word in a
 Bruce paragraph, while I have groups of words all set in typewriter
 Bruce style.
 
 In fact, I am tempted to remove the test on typewriter font, which
 does not make much sense anyway. What do the others think?

Removal of the test makes sense to me.  I can imagine allowing multiple
spaces in a non-typewriter font, though the affect would be hard to
predict because of the variable-width.  However, I can imagine setting
free_space just to prevent wordwrapping of the text, so free_space would
have two affects.

-- 
  Bruce Momjian|  http://www.op.net/~candle
  [EMAIL PROTECTED]|  (610) 853-3000
  +  If your life is a hard drive, |  830 Blythe Avenue
  +  Christ can be your backup.|  Drexel Hill, Pennsylvania 19026



Re: Why does TeX style use ~ for space?

1999-10-25 Thread Juergen Vigna


On 25-Oct-99 Jean-Marc Lasgouttes wrote:
 "Bruce" == Bruce Momjian [EMAIL PROTECTED] writes:
 
 Bruce OK, much cleaner patch attached, and it still fixes the
 Bruce problem. I am a little surprised no one else had this problem,
 Bruce but I guess most people use a single typewriter-style word in a
 Bruce paragraph, while I have groups of words all set in typewriter
 Bruce style.
 
 In fact, I am tempted to remove the test on typewriter font, which
 does not make much sense anyway. What do the others think?

Probably yes. As one could always use Ctrl-Space to achieve ~

Greets Jürgen

-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Dr. Jürgen Vigna  E-Mail: [EMAIL PROTECTED]
Gerbergasse 60Tel:+39-0471-450260
I-39100 Bozen Fax:+39-0471-970042
ITALY Web:http://www.sad.it/~jug

There is no satisfaction in hanging a man who does not object to it.
-- G.B. Shaw

-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._



Re: Why does TeX style use ~ for space?

1999-10-25 Thread Jean-Marc Lasgouttes

 "Bruce" == Bruce Momjian [EMAIL PROTECTED] writes:

Bruce Removal of the test makes sense to me. I can imagine allowing
Bruce multiple spaces in a non-typewriter font, though the affect
Bruce would be hard to predict because of the variable-width.
Bruce However, I can imagine setting free_space just to prevent
Bruce wordwrapping of the text, so free_space would have two affects.

OK, I'll do just that.

JMarc



RE: Q: Lyx and languages

1999-10-25 Thread Stefan Krischer

You mean probably if words are then spellchecked with the right dictionary
and if the hyphenation is correct. The answer to this is no, it's not yet
possible! It's on our TODO list thought :)

Not really. My question was meant more fundamental:

- Is is possible to use hebrew characters in a german Lyx text? If yes how? 
- Do I have to install a hebrew font? How?
- Is there a hebrew keybord mapping? (The web page says no, but perhaps it is 
not up-to-date.)
- Is it possible to write from right to left?
- Is there a Lyx support for all this or do I need to write Latex-Commands?
- Similar questions about Greek...

Greetings, Stefan



NEWBIE, please help on BOUNDING BOX problems

1999-10-25 Thread magni

I am not an expert at all, and just came from the Win world to linux.

I have some EPS images (obtained via a print to file on Postscript
device),
and when including them in a figure float they appear:
1) huge
2) half cut, since they are displaced in the lower right direction.

Somebody told me this is a bounding box problem, and although it seems
to me from
reading the mailing list archive that once it could be solved via some
option in the LyX InsertFigure popup, I cannot find it now (maybe it
worked just in old LyX versions?).

Now, I am a lazy guy and would prefer I can solve the problem in some
beautiful click-and-drag environment. Somebody told me it can be
done in Gv, but, in my version at least (3.5.8) I cannot find it.

Can somebody help me, please???

Thank you

Alessandro

--
~~
\  Dr.Alessandro Magni
/   IEN Galileo Ferraris
\   c.M.d'Azeglio 42, 10125 Torino (ITALIA)
/   [EMAIL PROTECTED]
\   Fax (39)11-6507611
/   Tel (39)11-3919757
\   Homepage at: http://alpha.ien.it/~magni/home.htm
~~





Re: included files

1999-10-25 Thread Lars Gullik Bjønnes

Jean-Marc Lasgouttes [EMAIL PROTECTED] writes:

| I think there is a problem here. Currently, \input@path is set to
| {doc-path}, whereas it should be {{doc-path}{}}, if I am not mistaken.
| I'll have to take a look.

or should it be {{doc-path}} ??
(why the empty group?)

Lgb



count the number of words ina document

1999-10-25 Thread Hezi Gildor


hi all,
is there a way to count the number of words or characters in a
documents ?

thanks, hezi.



Re: relyx: Are there limitations?

1999-10-25 Thread Jan Ulrich Hasecke

On 25 Oct 1999, Jean-Marc Lasgouttes wrote:

Did you try running reLyX from the command line? What error message do
you get?

Good hint!

Text::TeX::Begin::Group::Args \begin{labeling} -
Changing environment labeling to layout Labeling
String `{' expected, not found at
/usr/X11R6/bin/../share/lyx/reLyX/Text/TeX.pm line
786, TeXOpenFile0003 chunk 7308.  Can't
call method "contents" without a package or object
reference at
/usr/X11R6/bin/../share/lyx/reLyX/BasicLyX.pm line
875, TeXOpenFile0003 chunk 7308. Exited due to fatal
Error! 
Current Layout Stack: Standard Labeling

Mh, seemingly reLyX cannot handle the [:] in
\begin{labeling}[:]{width}

Without that it finished sucessfully.

Ciao!
juh





Re: count the number of words ina document

1999-10-25 Thread Jean-Marc Lasgouttes

 "Hezi" == Hezi Gildor [EMAIL PROTECTED] writes:

Hezi hi all, is there a way to count the number of words or
Hezi characters in a documents ?

The spellchecker gives you this info when spellchecking is finished.
There should be a more strightforward way, though.

JMarc



Re: count the number of words ina document

1999-10-25 Thread Jean-Pierre.Chretien


Date: Mon, 25 Oct 1999 18:24:22 +0200
From: [EMAIL PROTECTED] (Hezi Gildor)
To: [EMAIL PROTECTED]
Subject: count the number of words ina document


hi all,
is there a way to count the number of words or characters in a
documents ?

thanks, hezi.

Word count is a result of spellcheck.

-- 
Jean-Pierre



Re: Publication on Industrial and Engineering Chemistry Research

1999-10-25 Thread Tero Kesti

On Mon, 25 Oct 1999, Marco Bravi wrote:

 
   I am about to send a manuscript for publication in Industrial and
 Engineering Chemistry Research (an American Chemical Society magazine).
 
 They allow TeX/LaTeX files in BUT they state:
 
 (...) Avoid using \include, \epsffile{}, or \input commands to link
 external files, including any graphics files. All the parts of the paper
 listed above must be present within a single file. (...)
 
 I am rather dubious about how I can put my EPS or mixed LaTeX/PostScript
 image files inside the main document. So far, I used "Insert-Figure-EPS"

When you submit a manuscript for an ACS journal, you should not include
your images inside the main document at all but send them in separate
files. They probably accept EPS. Figure captions should be in the main
document. 


Tero Kesti  [EMAIL PROTECTED]
Institute of Materials Chemistry 
Tampere University of Technology  



RE: Q: Lyx and languages

1999-10-25 Thread Ronald Florence

Stefan Krischer writes:
  
  - Is is possible to use hebrew characters in a german Lyx text? If yes how? 
  - Do I have to install a hebrew font? How?
  - Is there a hebrew keybord mapping? (The web page says no, but perhaps it is 
  not up-to-date.)
  - Is it possible to write from right to left?
  - Is there a Lyx support for all this or do I need to write Latex-Commands?
  - Similar questions about Greek...
  
If you need only a few characters or words of Hebrew or Yiddish, it
can be done handily in LyX with the package shalom.  You add

\usepackage[shalom]{shalom}

to your LaTeX preface, and then include the Hebrew or Yiddish text in
LaTeX mode in a transliterated form:

\shalombox[\large \oldstyle]{\mem\alef/a\nun+ \tet\alef\resh+
  \nun\yod\tet+ \bet\ayin\tet\nun+ \alef\vav\yod\fe+ \alef/a+
  \nun\yod/a\yod\mem+ \mem\lamed\kaf.}

The shalom package offers several font and other options, and takes
care of reversing the letter order in the words.  I don't recall
whether the Hebrew fonts are supplied with the package, or are
separately available from CTAN.

I have used the package in LyX for Yiddish (the above quote) and
Hebrew.

Regards,

-- 

Ronald Florence http://users.ids.net/~18james




Re: Why does TeX style use ~ for space?

1999-10-25 Thread Juergen Vigna


On 23-Oct-99 Lars Gullik Bjønnes wrote:

 As far as I can see this is close to the correct fix, but I_want some
 others to have a look at it befor I apply it.
 
  FYI:_ Text marged as Tex, and text in the TeX paragraph style should
 never be altered by LyX, and if LyX does alter the text it can be
 considered a bug.

I couldn't more agree!

Jürgen

-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Dr. Jürgen Vigna  E-Mail: [EMAIL PROTECTED]
Gerbergasse 60Tel:+39-0471-450260
I-39100 Bozen Fax:+39-0471-970042
ITALY Web:http://www.sad.it/~jug

"I never let my schooling get in the way of my education."
-- Mark Twain

-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._



Re: Why does TeX style use ~ for space?

1999-10-25 Thread Jean-Marc Lasgouttes

 "Bruce" == Bruce Momjian [EMAIL PROTECTED] writes:

Bruce I am wondering why LyX uses the non-wrapping space ~ in
Bruce TeX-style areas?

I am not sure I understand what you mean? Could you send the original
lyx file and the faulty output you get? 

Bruce I understand in LyX-Code blocks that using the ~ prevents
Bruce wrapping and forces the text to appear exactly as you enter it.

Yes.

Bruce However, when you are doing a paragraph, and have a few words
Bruce of typewriter output set in TeX-style, the tex will not allow a
Bruce linebreak inside the TeX-style area because of the use of ~.

That's where I stop to understand ;) It does not seem to me that TeX
style uses ~. Unless I am really stupid (which is very possible), the
part of code that you change is _not_ triggered in TeX style:

} else if (font.latex() == LyXFont::OFF) {
!   if (font.family() == LyXFont::TYPEWRITER_FAMILY) {
file += '~';

Bruce OK, here is a patch that does what I needed. It uses ~ for
Bruce LyX-Code environment, but spaces for Tex-Code in other
Bruce environments. The test is to compare the current environment to
Bruce LyX-Code, and do the ~ only in those cases.

Testing explicitely for the name of the environment is certainly not a
good idea. However, once we get to know what the actual problem is,
we'll certainly manage to find a fix.

JMarc



Re: included files

1999-10-25 Thread Jean-Marc Lasgouttes

 "Jean-Pierre" == Jean-Pierre Chretien [EMAIL PROTECTED] writes:

Jean-Pierre I indicated in a previous answer to this thread that it
Jean-Pierre seemed to me that \input@path does nothing about the
Jean-Pierre \special{psfile=foo.pstex} which is in the foo.pstex_t
Jean-Pierre file (correctly inputted as is, without renamimg it to
Jean-Pierre foo.pstex_t.tex).

This is indeed the problem.

Jean-Pierre In the same line, I mentioned that it seemed that the
Jean-Pierre texmf tree is searched before the \input@path, which is a
Jean-Pierre big difference between work in the temporary and work in
Jean-Pierre the lyx doc dir after exporting as LaTeX (and breaks the
Jean-Pierre way I mask general settings by local ones). Is that
Jean-Pierre correct also ?

I think there is a problem here. Currently, \input@path is set to
{doc-path}, whereas it should be {{doc-path}{}}, if I am not mistaken.
I'll have to take a look.

JMarc



Re: relyx: Are there limitations?

1999-10-25 Thread Jean-Marc Lasgouttes

 "Jan" == Jan Ulrich Hasecke [EMAIL PROTECTED] writes:

Jan Hi Lyxers, I want to insert a big latex-file into Lyx via Relyx.
Jan Lyx creates four files in the working directory named
Jan filename.relyx[1-4] but no lyx-file.

Jan The size of the latex-file is 678063 Byte

Jan I tried it with different preambles - but with no success.

Did you try running reLyX from the command line? What error message do
you get?

JMarc



Publication on Industrial and Engineering Chemistry Research

1999-10-25 Thread Marco Bravi

Dear LyX-ers,

I am about to send a manuscript for publication in Industrial and
Engineering Chemistry Research (an American Chemical Society magazine).

They allow TeX/LaTeX files in BUT they state:

(...) Avoid using \include, \epsffile{}, or \input commands to link
external files, including any graphics files. All the parts of the paper
listed above must be present within a single file. (...)

I am rather dubious about how I can put my EPS or mixed LaTeX/PostScript
image files inside the main document. So far, I used "Insert-Figure-EPS"
and "Insert-Include-Use Include, respectively. What should I do now? Is
it at all possible (maybe, using raw LaTeX, if LyX does not support this).

Thanks in advance for your consideration and help.

Marco Bravi

--
Marco Bravi [EMAIL PROTECTED]
Dip. Ing. Chimica   tel. +39-6-44585587 / 612
v. Eudossiana, 18   fax  +39-6-4827453
I-00184 Roma (Italy)




Re: included files

1999-10-25 Thread Jean-Marc Lasgouttes

 "Mate" == Mate Wierdl [EMAIL PROTECTED] writes:

Mate Guys, Any included file has to be in the same dir as the lyx doc
Mate you are including it into. So all files exported from xfig needs
Mate to be in the current dir. The current dir is always searched for
Mate input files unless you messed up your texinputs path.

I do not think it is needed, they could be in a figs/ subdirectory
too, or anyway pointed to by TEXINPUTS.

JMarc



Double question

1999-10-25 Thread Antonio Zugaldia Rodriguez

Hello everybody!

* First a LaTeX question: ¿Is there any form of inserting an equal sign
(=) with a superscript?, really, with a number as a superscript. (Like
an "enumerate" of equal signs.)

* Second a LyX question: ¿How can I use question #1 in LyX? (If
possible.)

Thank you very much.

Regards.

Antonio Zugaldia Rodriguez [EMAIL PROTECTED]



Re: Why does TeX style use ~ for space?

1999-10-25 Thread Bruce Momjian

  "Bruce" == Bruce Momjian [EMAIL PROTECTED] writes:
 
 Bruce I am wondering why LyX uses the non-wrapping space ~ in
 Bruce TeX-style areas?
 
 I am not sure I understand what you mean? Could you send the original
 lyx file and the faulty output you get? 

I am sorry.  I am very stupid about getting my mode names right.  My
problem is with:

\family typewriter 
SELECT city FROM friends
\family default 

This code is the one that gets translated to:

SELECT~city~FROM~friends

and when this text is part of a paragraph, no wrapping can occur within
this text.  That is my problem.  My patch prevents ~ translation for
'typewriter' mode, not TeX mode as I state.

I have retained the rest of the message for your reference.  I have
fixed the naming of the modes.

 
 Bruce I understand in LyX-Code blocks that using the ~ prevents
 Bruce wrapping and forces the text to appear exactly as you enter it.
 
 Yes.
 
 Bruce However, when you are doing a paragraph, and have a few words
 Bruce of typewriter output, the tex will not allow a
 Bruce linebreak inside the typewriter area because of the use of ~.
 
 That's where I stop to understand ;) It does not seem to me that TeX
 style uses ~. Unless I am really stupid (which is very possible), the
 part of code that you change is _not_ triggered in TeX style:
 
   } else if (font.latex() == LyXFont::OFF) {
 ! if (font.family() == LyXFont::TYPEWRITER_FAMILY) {
   file += '~';
 
 Bruce OK, here is a patch that does what I needed. It uses ~ for
 Bruce LyX-Code environment, but spaces for typewriter in other
 Bruce environments. The test is to compare the current environment to
 Bruce LyX-Code, and do the ~ only in those cases.
 
 Testing explicitely for the name of the environment is certainly not a
 good idea. However, once we get to know what the actual problem is,
 we'll certainly manage to find a fix.
 
 JMarc
 

Thanks.

-- 
  Bruce Momjian|  http://www.op.net/~candle
  [EMAIL PROTECTED]|  (610) 853-3000
  +  If your life is a hard drive, |  830 Blythe Avenue
  +  Christ can be your backup.|  Drexel Hill, Pennsylvania 19026



Re: Double question

1999-10-25 Thread Jean-Marc Lasgouttes

 "Antonio" == Antonio Zugaldia Rodriguez [EMAIL PROTECTED] writes:

Antonio Hello everybody! * First a LaTeX question: ¿Is there any form
Antonio of inserting an equal sign (=) with a superscript?, really,
Antonio with a number as a superscript. (Like an "enumerate" of equal
Antonio signs.)

Antonio * Second a LyX question: ¿How can I use question #1 in LyX?
Antonio (If possible.)

Just do a = sign with a superscript :)

Longer answer: M-m m = ^ 1.

JMarc



Q: Lyx and languages

1999-10-25 Thread Stefan Krischer

Hi everybody,

Is there a way to write mixed language texts with Lyx, e.g. german and
hebrew or german and greek?

Stefan



RE: Q: Lyx and languages

1999-10-25 Thread Juergen Vigna


On 25-Oct-99 Stefan Krischer wrote:
 Hi everybody,
 
 Is there a way to write mixed language texts with Lyx, e.g. german and
 hebrew or german and greek?

You mean probably if words are then spellchecked with the right dictionary
and if the hyphenation is correct. The answer to this is no, it's not yet
possible! It's on our TODO list thought :)

You may achieve the hyphenation inserting directly LaTeX language change
commands in the text, but unfortuately I don't know them right now.

Greets Jürgen

-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Dr. Jürgen Vigna  E-Mail: [EMAIL PROTECTED]
Gerbergasse 60Tel:+39-0471-450260
I-39100 Bozen Fax:+39-0471-970042
ITALY Web:http://www.sad.it/~jug

Send some filthy mail.

-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._



References across multi-part documents?

1999-10-25 Thread Andreas Busch

Hi,

is there a way to insert cross-references which span different parts of a 
multi-part document? I am writing a book which presently consists of a 
"book.lyx" file which includes several "part_{1..4}.lyx" files.
I would like to refer in the "part_1.lyx" file to a marker I set in the 
"part_4.lyx" file, but cannot do so for the marker is not visible in the 
dialogue box.
No mention of this issue is made in the documentation, as far as I can 
see. 
So, is it possible to do it? If not, that would greatly deminish the value of 
the multi-part document option.

I hope there is an ingenious way to do it...

BTW, I am using LyX 1.0.1 under both Linux and OS/2.

Thanks for any help,

Andreas

-- 
Dr. Andreas Busch
Universitaet Heidelberg Tel. (06221) 54-2874
Institut fuer Politische Wissenschaft   Fax (06221) 54-2896
Marstallstrasse 6   E-Mail: [EMAIL PROTECTED]
69117 Heidelberg, Germany   http://www.rzuser.uni-heidelberg.de/~bp7




Re: Why does TeX style use ~ for space?

1999-10-25 Thread Jean-Marc Lasgouttes

 "Bruce" == Bruce Momjian [EMAIL PROTECTED] writes:

  "Bruce" == Bruce Momjian [EMAIL PROTECTED] writes:
 
Bruce I am wondering why LyX uses the non-wrapping space ~ in
Bruce TeX-style areas?
  I am not sure I understand what you mean? Could you send the
 original lyx file and the faulty output you get?

Bruce I am sorry. I am very stupid about getting my mode names right.
Bruce My problem is with:

Bruce \family typewriter SELECT city FROM friends \family default

Bruce This code is the one that gets translated to:

Bruce SELECT~city~FROM~friends

Bruce and when this text is part of a paragraph, no wrapping can
Bruce occur within this text. That is my problem. My patch prevents ~
Bruce translation for 'typewriter' mode, not TeX mode as I state.

OK, the right solution is probably to test on the FreeSpacing property
of a layout, instead of tt font: this is the one which controls
whether multiple consecutive spaces are allowed. Or I could add a new
tag just for that.

Comments?

JMarc



Re: Why does TeX style use ~ for space?

1999-10-25 Thread Jean-Marc Lasgouttes

 "Bruce" == Bruce Momjian [EMAIL PROTECTED] writes:

Bruce OK, much cleaner patch attached, and it still fixes the
Bruce problem. I am a little surprised no one else had this problem,
Bruce but I guess most people use a single typewriter-style word in a
Bruce paragraph, while I have groups of words all set in typewriter
Bruce style.

In fact, I am tempted to remove the test on typewriter font, which
does not make much sense anyway. What do the others think?

JMarc



Re: Why does TeX style use ~ for space?

1999-10-25 Thread Bruce Momjian

  "Bruce" == Bruce Momjian [EMAIL PROTECTED] writes:
 
 Bruce OK, much cleaner patch attached, and it still fixes the
 Bruce problem. I am a little surprised no one else had this problem,
 Bruce but I guess most people use a single typewriter-style word in a
 Bruce paragraph, while I have groups of words all set in typewriter
 Bruce style.
 
 In fact, I am tempted to remove the test on typewriter font, which
 does not make much sense anyway. What do the others think?

Removal of the test makes sense to me.  I can imagine allowing multiple
spaces in a non-typewriter font, though the affect would be hard to
predict because of the variable-width.  However, I can imagine setting
free_space just to prevent wordwrapping of the text, so free_space would
have two affects.

-- 
  Bruce Momjian|  http://www.op.net/~candle
  [EMAIL PROTECTED]|  (610) 853-3000
  +  If your life is a hard drive, |  830 Blythe Avenue
  +  Christ can be your backup.|  Drexel Hill, Pennsylvania 19026



Re: Why does TeX style use ~ for space?

1999-10-25 Thread Juergen Vigna


On 25-Oct-99 Jean-Marc Lasgouttes wrote:
 "Bruce" == Bruce Momjian [EMAIL PROTECTED] writes:
 
 Bruce OK, much cleaner patch attached, and it still fixes the
 Bruce problem. I am a little surprised no one else had this problem,
 Bruce but I guess most people use a single typewriter-style word in a
 Bruce paragraph, while I have groups of words all set in typewriter
 Bruce style.
 
 In fact, I am tempted to remove the test on typewriter font, which
 does not make much sense anyway. What do the others think?

Probably yes. As one could always use Ctrl-Space to achieve ~

Greets Jürgen

-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Dr. Jürgen Vigna  E-Mail: [EMAIL PROTECTED]
Gerbergasse 60Tel:+39-0471-450260
I-39100 Bozen Fax:+39-0471-970042
ITALY Web:http://www.sad.it/~jug

There is no satisfaction in hanging a man who does not object to it.
-- G.B. Shaw

-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._



Re: Why does TeX style use ~ for space?

1999-10-25 Thread Jean-Marc Lasgouttes

 "Bruce" == Bruce Momjian [EMAIL PROTECTED] writes:

Bruce Removal of the test makes sense to me. I can imagine allowing
Bruce multiple spaces in a non-typewriter font, though the affect
Bruce would be hard to predict because of the variable-width.
Bruce However, I can imagine setting free_space just to prevent
Bruce wordwrapping of the text, so free_space would have two affects.

OK, I'll do just that.

JMarc



RE: Q: Lyx and languages

1999-10-25 Thread Stefan Krischer

You mean probably if words are then spellchecked with the right dictionary
and if the hyphenation is correct. The answer to this is no, it's not yet
possible! It's on our TODO list thought :)

Not really. My question was meant more fundamental:

- Is is possible to use hebrew characters in a german Lyx text? If yes how? 
- Do I have to install a hebrew font? How?
- Is there a hebrew keybord mapping? (The web page says no, but perhaps it is 
not up-to-date.)
- Is it possible to write from right to left?
- Is there a Lyx support for all this or do I need to write Latex-Commands?
- Similar questions about Greek...

Greetings, Stefan



NEWBIE, please help on BOUNDING BOX problems

1999-10-25 Thread magni

I am not an expert at all, and just came from the Win world to linux.

I have some EPS images (obtained via a print to file on Postscript
device),
and when including them in a figure float they appear:
1) huge
2) half cut, since they are displaced in the lower right direction.

Somebody told me this is a bounding box problem, and although it seems
to me from
reading the mailing list archive that once it could be solved via some
option in the LyX InsertFigure popup, I cannot find it now (maybe it
worked just in old LyX versions?).

Now, I am a lazy guy and would prefer I can solve the problem in some
beautiful click-and-drag environment. Somebody told me it can be
done in Gv, but, in my version at least (3.5.8) I cannot find it.

Can somebody help me, please???

Thank you

Alessandro

--
~~
\  Dr.Alessandro Magni
/   IEN Galileo Ferraris
\   c.M.d'Azeglio 42, 10125 Torino (ITALIA)
/   [EMAIL PROTECTED]
\   Fax (39)11-6507611
/   Tel (39)11-3919757
\   Homepage at: http://alpha.ien.it/~magni/home.htm
~~





Re: included files

1999-10-25 Thread Lars Gullik Bjønnes

Jean-Marc Lasgouttes [EMAIL PROTECTED] writes:

| I think there is a problem here. Currently, \input@path is set to
| {doc-path}, whereas it should be {{doc-path}{}}, if I am not mistaken.
| I'll have to take a look.

or should it be {{doc-path}} ??
(why the empty group?)

Lgb



count the number of words ina document

1999-10-25 Thread Hezi Gildor


hi all,
is there a way to count the number of words or characters in a
documents ?

thanks, hezi.



Re: relyx: Are there limitations?

1999-10-25 Thread Jan Ulrich Hasecke

On 25 Oct 1999, Jean-Marc Lasgouttes wrote:

Did you try running reLyX from the command line? What error message do
you get?

Good hint!

Text::TeX::Begin::Group::Args \begin{labeling} -
Changing environment labeling to layout Labeling
String `{' expected, not found at
/usr/X11R6/bin/../share/lyx/reLyX/Text/TeX.pm line
786, TeXOpenFile0003 chunk 7308.  Can't
call method "contents" without a package or object
reference at
/usr/X11R6/bin/../share/lyx/reLyX/BasicLyX.pm line
875, TeXOpenFile0003 chunk 7308. Exited due to fatal
Error! 
Current Layout Stack: Standard Labeling

Mh, seemingly reLyX cannot handle the [:] in
\begin{labeling}[:]{width}

Without that it finished sucessfully.

Ciao!
juh





Re: count the number of words ina document

1999-10-25 Thread Jean-Marc Lasgouttes

 "Hezi" == Hezi Gildor [EMAIL PROTECTED] writes:

Hezi hi all, is there a way to count the number of words or
Hezi characters in a documents ?

The spellchecker gives you this info when spellchecking is finished.
There should be a more strightforward way, though.

JMarc



Re: count the number of words ina document

1999-10-25 Thread Jean-Pierre.Chretien


Date: Mon, 25 Oct 1999 18:24:22 +0200
From: [EMAIL PROTECTED] (Hezi Gildor)
To: [EMAIL PROTECTED]
Subject: count the number of words ina document


hi all,
is there a way to count the number of words or characters in a
documents ?

thanks, hezi.

Word count is a result of spellcheck.

-- 
Jean-Pierre



Re: Publication on Industrial and Engineering Chemistry Research

1999-10-25 Thread Tero Kesti

On Mon, 25 Oct 1999, Marco Bravi wrote:

 
   I am about to send a manuscript for publication in Industrial and
 Engineering Chemistry Research (an American Chemical Society magazine).
 
 They allow TeX/LaTeX files in BUT they state:
 
 (...) Avoid using \include, \epsffile{}, or \input commands to link
 external files, including any graphics files. All the parts of the paper
 listed above must be present within a single file. (...)
 
 I am rather dubious about how I can put my EPS or mixed LaTeX/PostScript
 image files inside the main document. So far, I used "Insert-Figure-EPS"

When you submit a manuscript for an ACS journal, you should not include
your images inside the main document at all but send them in separate
files. They probably accept EPS. Figure captions should be in the main
document. 


Tero Kesti  [EMAIL PROTECTED]
Institute of Materials Chemistry 
Tampere University of Technology  



RE: Q: Lyx and languages

1999-10-25 Thread Ronald Florence

Stefan Krischer writes:
  
  - Is is possible to use hebrew characters in a german Lyx text? If yes how? 
  - Do I have to install a hebrew font? How?
  - Is there a hebrew keybord mapping? (The web page says no, but perhaps it is 
  not up-to-date.)
  - Is it possible to write from right to left?
  - Is there a Lyx support for all this or do I need to write Latex-Commands?
  - Similar questions about Greek...
  
If you need only a few characters or words of Hebrew or Yiddish, it
can be done handily in LyX with the package shalom.  You add

\usepackage[shalom]{shalom}

to your LaTeX preface, and then include the Hebrew or Yiddish text in
LaTeX mode in a transliterated form:

\shalombox[\large \oldstyle]{\mem\alef/a\nun+ \tet\alef\resh+
  \nun\yod\tet+ \bet\ayin\tet\nun+ \alef\vav\yod\fe+ \alef/a+
  \nun\yod/a\yod\mem+ \mem\lamed\kaf.}

The shalom package offers several font and other options, and takes
care of reversing the letter order in the words.  I don't recall
whether the Hebrew fonts are supplied with the package, or are
separately available from CTAN.

I have used the package in LyX for Yiddish (the above quote) and
Hebrew.

Regards,

-- 

Ronald Florence http://users.ids.net/~18james




Re: Why does TeX style use ~ for space?

1999-10-25 Thread Juergen Vigna


On 23-Oct-99 Lars Gullik Bjønnes wrote:

> As far as I can see this is close to the correct fix, but I_want some
> others to have a look at it befor I apply it.
> 
>  FYI:_ Text marged as Tex, and text in the TeX paragraph style should
> never be altered by LyX, and if LyX does alter the text it can be
> considered a bug.

I couldn't more agree!

Jürgen

-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Dr. Jürgen Vigna  E-Mail: [EMAIL PROTECTED]
Gerbergasse 60Tel:+39-0471-450260
I-39100 Bozen Fax:+39-0471-970042
ITALY Web:http://www.sad.it/~jug

"I never let my schooling get in the way of my education."
-- Mark Twain

-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._



Re: Why does TeX style use ~ for space?

1999-10-25 Thread Jean-Marc Lasgouttes

> "Bruce" == Bruce Momjian <[EMAIL PROTECTED]> writes:

Bruce> I am wondering why LyX uses the non-wrapping space ~ in
Bruce> TeX-style areas?

I am not sure I understand what you mean? Could you send the original
lyx file and the faulty output you get? 

Bruce> I understand in LyX-Code blocks that using the ~ prevents
Bruce> wrapping and forces the text to appear exactly as you enter it.

Yes.

Bruce> However, when you are doing a paragraph, and have a few words
Bruce> of typewriter output set in TeX-style, the tex will not allow a
Bruce> linebreak inside the TeX-style area because of the use of ~.

That's where I stop to understand ;) It does not seem to me that TeX
style uses ~. Unless I am really stupid (which is very possible), the
part of code that you change is _not_ triggered in TeX style:

} else if (font.latex() == LyXFont::OFF) {
!   if (font.family() == LyXFont::TYPEWRITER_FAMILY) {
file += '~';

Bruce> OK, here is a patch that does what I needed. It uses ~ for
Bruce> LyX-Code environment, but spaces for Tex-Code in other
Bruce> environments. The test is to compare the current environment to
Bruce> LyX-Code, and do the ~ only in those cases.

Testing explicitely for the name of the environment is certainly not a
good idea. However, once we get to know what the actual problem is,
we'll certainly manage to find a fix.

JMarc



Re: included files

1999-10-25 Thread Jean-Marc Lasgouttes

> "Jean-Pierre" == Jean-Pierre Chretien <[EMAIL PROTECTED]> writes:

Jean-Pierre> I indicated in a previous answer to this thread that it
Jean-Pierre> seemed to me that \input@path does nothing about the
Jean-Pierre> \special{psfile=foo.pstex} which is in the foo.pstex_t
Jean-Pierre> file (correctly inputted as is, without renamimg it to
Jean-Pierre> foo.pstex_t.tex).

This is indeed the problem.

Jean-Pierre> In the same line, I mentioned that it seemed that the
Jean-Pierre> texmf tree is searched before the \input@path, which is a
Jean-Pierre> big difference between work in the temporary and work in
Jean-Pierre> the lyx doc dir after exporting as LaTeX (and breaks the
Jean-Pierre> way I mask general settings by local ones). Is that
Jean-Pierre> correct also ?

I think there is a problem here. Currently, \input@path is set to
{doc-path}, whereas it should be {{doc-path}{}}, if I am not mistaken.
I'll have to take a look.

JMarc



Re: relyx: Are there limitations?

1999-10-25 Thread Jean-Marc Lasgouttes

> "Jan" == Jan Ulrich Hasecke <[EMAIL PROTECTED]> writes:

Jan> Hi Lyxers, I want to insert a big latex-file into Lyx via Relyx.
Jan> Lyx creates four files in the working directory named
Jan> filename.relyx[1-4] but no lyx-file.

Jan> The size of the latex-file is 678063 Byte

Jan> I tried it with different preambles - but with no success.

Did you try running reLyX from the command line? What error message do
you get?

JMarc



Publication on Industrial and Engineering Chemistry Research

1999-10-25 Thread Marco Bravi

Dear LyX-ers,

I am about to send a manuscript for publication in Industrial and
Engineering Chemistry Research (an American Chemical Society magazine).

They allow TeX/LaTeX files in BUT they state:

(...) Avoid using \include, \epsffile{}, or \input commands to link
external files, including any graphics files. All the parts of the paper
listed above must be present within a single file. (...)

I am rather dubious about how I can put my EPS or mixed LaTeX/PostScript
image files inside the main document. So far, I used "Insert->Figure->EPS"
and "Insert->Include->Use Include, respectively. What should I do now? Is
it at all possible (maybe, using raw LaTeX, if LyX does not support this).

Thanks in advance for your consideration and help.

Marco Bravi

--
Marco Bravi [EMAIL PROTECTED]
Dip. Ing. Chimica   tel. +39-6-44585587 / 612
v. Eudossiana, 18   fax  +39-6-4827453
I-00184 Roma (Italy)




Re: included files

1999-10-25 Thread Jean-Marc Lasgouttes

> "Mate" == Mate Wierdl <[EMAIL PROTECTED]> writes:

Mate> Guys, Any included file has to be in the same dir as the lyx doc
Mate> you are including it into. So all files exported from xfig needs
Mate> to be in the current dir. The current dir is always searched for
Mate> input files unless you messed up your texinputs path.

I do not think it is needed, they could be in a figs/ subdirectory
too, or anyway pointed to by TEXINPUTS.

JMarc



Double question

1999-10-25 Thread Antonio Zugaldia Rodriguez

Hello everybody!

* First a LaTeX question: ¿Is there any form of inserting an equal sign
(=) with a superscript?, really, with a number as a superscript. (Like
an "enumerate" of equal signs.)

* Second a LyX question: ¿How can I use question #1 in LyX? (If
possible.)

Thank you very much.

Regards.

Antonio Zugaldia Rodriguez <[EMAIL PROTECTED]>



Re: Why does TeX style use ~ for space?

1999-10-25 Thread Bruce Momjian

> > "Bruce" == Bruce Momjian <[EMAIL PROTECTED]> writes:
> 
> Bruce> I am wondering why LyX uses the non-wrapping space ~ in
> Bruce> TeX-style areas?
> 
> I am not sure I understand what you mean? Could you send the original
> lyx file and the faulty output you get? 

I am sorry.  I am very stupid about getting my mode names right.  My
problem is with:

\family typewriter 
SELECT city FROM friends
\family default 

This code is the one that gets translated to:

SELECT~city~FROM~friends

and when this text is part of a paragraph, no wrapping can occur within
this text.  That is my problem.  My patch prevents ~ translation for
'typewriter' mode, not TeX mode as I state.

I have retained the rest of the message for your reference.  I have
fixed the naming of the modes.

> 
> Bruce> I understand in LyX-Code blocks that using the ~ prevents
> Bruce> wrapping and forces the text to appear exactly as you enter it.
> 
> Yes.
> 
> Bruce> However, when you are doing a paragraph, and have a few words
> Bruce> of typewriter output, the tex will not allow a
> Bruce> linebreak inside the typewriter area because of the use of ~.
> 
> That's where I stop to understand ;) It does not seem to me that TeX
> style uses ~. Unless I am really stupid (which is very possible), the
> part of code that you change is _not_ triggered in TeX style:
> 
>   } else if (font.latex() == LyXFont::OFF) {
> ! if (font.family() == LyXFont::TYPEWRITER_FAMILY) {
>   file += '~';
> 
> Bruce> OK, here is a patch that does what I needed. It uses ~ for
> Bruce> LyX-Code environment, but spaces for typewriter in other
> Bruce> environments. The test is to compare the current environment to
> Bruce> LyX-Code, and do the ~ only in those cases.
> 
> Testing explicitely for the name of the environment is certainly not a
> good idea. However, once we get to know what the actual problem is,
> we'll certainly manage to find a fix.
> 
> JMarc
> 

Thanks.

-- 
  Bruce Momjian|  http://www.op.net/~candle
  [EMAIL PROTECTED]|  (610) 853-3000
  +  If your life is a hard drive, |  830 Blythe Avenue
  +  Christ can be your backup.|  Drexel Hill, Pennsylvania 19026



Re: Double question

1999-10-25 Thread Jean-Marc Lasgouttes

> "Antonio" == Antonio Zugaldia Rodriguez <[EMAIL PROTECTED]> writes:

Antonio> Hello everybody! * First a LaTeX question: ¿Is there any form
Antonio> of inserting an equal sign (=) with a superscript?, really,
Antonio> with a number as a superscript. (Like an "enumerate" of equal
Antonio> signs.)

Antonio> * Second a LyX question: ¿How can I use question #1 in LyX?
Antonio> (If possible.)

Just do a = sign with a superscript :)

Longer answer: M-m m = ^ 1.

JMarc



Q: Lyx and languages

1999-10-25 Thread Stefan Krischer

Hi everybody,

Is there a way to write mixed language texts with Lyx, e.g. german and
hebrew or german and greek?

Stefan



RE: Q: Lyx and languages

1999-10-25 Thread Juergen Vigna


On 25-Oct-99 Stefan Krischer wrote:
> Hi everybody,
> 
> Is there a way to write mixed language texts with Lyx, e.g. german and
> hebrew or german and greek?

You mean probably if words are then spellchecked with the right dictionary
and if the hyphenation is correct. The answer to this is no, it's not yet
possible! It's on our TODO list thought :)

You may achieve the hyphenation inserting directly LaTeX language change
commands in the text, but unfortuately I don't know them right now.

Greets Jürgen

-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Dr. Jürgen Vigna  E-Mail: [EMAIL PROTECTED]
Gerbergasse 60Tel:+39-0471-450260
I-39100 Bozen Fax:+39-0471-970042
ITALY Web:http://www.sad.it/~jug

Send some filthy mail.

-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._



References across multi-part documents?

1999-10-25 Thread Andreas Busch

Hi,

is there a way to insert cross-references which span different parts of a 
multi-part document? I am writing a book which presently consists of a 
"book.lyx" file which includes several "part_{1..4}.lyx" files.
I would like to refer in the "part_1.lyx" file to a marker I set in the 
"part_4.lyx" file, but cannot do so for the marker is not visible in the 
dialogue box.
No mention of this issue is made in the documentation, as far as I can 
see. 
So, is it possible to do it? If not, that would greatly deminish the value of 
the multi-part document option.

I hope there is an ingenious way to do it...

BTW, I am using LyX 1.0.1 under both Linux and OS/2.

Thanks for any help,

Andreas

-- 
Dr. Andreas Busch
Universitaet Heidelberg Tel. (06221) 54-2874
Institut fuer Politische Wissenschaft   Fax (06221) 54-2896
Marstallstrasse 6   E-Mail: [EMAIL PROTECTED]
69117 Heidelberg, Germany   http://www.rzuser.uni-heidelberg.de/~bp7




Re: Why does TeX style use ~ for space?

1999-10-25 Thread Jean-Marc Lasgouttes

> "Bruce" == Bruce Momjian <[EMAIL PROTECTED]> writes:

>> > "Bruce" == Bruce Momjian <[EMAIL PROTECTED]> writes:
>> 
Bruce> I am wondering why LyX uses the non-wrapping space ~ in
Bruce> TeX-style areas?
>>  I am not sure I understand what you mean? Could you send the
>> original lyx file and the faulty output you get?

Bruce> I am sorry. I am very stupid about getting my mode names right.
Bruce> My problem is with:

Bruce> \family typewriter SELECT city FROM friends \family default

Bruce> This code is the one that gets translated to:

Bruce> SELECT~city~FROM~friends

Bruce> and when this text is part of a paragraph, no wrapping can
Bruce> occur within this text. That is my problem. My patch prevents ~
Bruce> translation for 'typewriter' mode, not TeX mode as I state.

OK, the right solution is probably to test on the FreeSpacing property
of a layout, instead of tt font: this is the one which controls
whether multiple consecutive spaces are allowed. Or I could add a new
tag just for that.

Comments?

JMarc



Re: Why does TeX style use ~ for space?

1999-10-25 Thread Jean-Marc Lasgouttes

> "Bruce" == Bruce Momjian <[EMAIL PROTECTED]> writes:

Bruce> OK, much cleaner patch attached, and it still fixes the
Bruce> problem. I am a little surprised no one else had this problem,
Bruce> but I guess most people use a single typewriter-style word in a
Bruce> paragraph, while I have groups of words all set in typewriter
Bruce> style.

In fact, I am tempted to remove the test on typewriter font, which
does not make much sense anyway. What do the others think?

JMarc



Re: Why does TeX style use ~ for space?

1999-10-25 Thread Bruce Momjian

> > "Bruce" == Bruce Momjian <[EMAIL PROTECTED]> writes:
> 
> Bruce> OK, much cleaner patch attached, and it still fixes the
> Bruce> problem. I am a little surprised no one else had this problem,
> Bruce> but I guess most people use a single typewriter-style word in a
> Bruce> paragraph, while I have groups of words all set in typewriter
> Bruce> style.
> 
> In fact, I am tempted to remove the test on typewriter font, which
> does not make much sense anyway. What do the others think?

Removal of the test makes sense to me.  I can imagine allowing multiple
spaces in a non-typewriter font, though the affect would be hard to
predict because of the variable-width.  However, I can imagine setting
free_space just to prevent wordwrapping of the text, so free_space would
have two affects.

-- 
  Bruce Momjian|  http://www.op.net/~candle
  [EMAIL PROTECTED]|  (610) 853-3000
  +  If your life is a hard drive, |  830 Blythe Avenue
  +  Christ can be your backup.|  Drexel Hill, Pennsylvania 19026



Re: Why does TeX style use ~ for space?

1999-10-25 Thread Juergen Vigna


On 25-Oct-99 Jean-Marc Lasgouttes wrote:
>> "Bruce" == Bruce Momjian <[EMAIL PROTECTED]> writes:
> 
> Bruce> OK, much cleaner patch attached, and it still fixes the
> Bruce> problem. I am a little surprised no one else had this problem,
> Bruce> but I guess most people use a single typewriter-style word in a
> Bruce> paragraph, while I have groups of words all set in typewriter
> Bruce> style.
> 
> In fact, I am tempted to remove the test on typewriter font, which
> does not make much sense anyway. What do the others think?

Probably yes. As one could always use Ctrl-Space to achieve ~

Greets Jürgen

-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Dr. Jürgen Vigna  E-Mail: [EMAIL PROTECTED]
Gerbergasse 60Tel:+39-0471-450260
I-39100 Bozen Fax:+39-0471-970042
ITALY Web:http://www.sad.it/~jug

There is no satisfaction in hanging a man who does not object to it.
-- G.B. Shaw

-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._



Re: Why does TeX style use ~ for space?

1999-10-25 Thread Jean-Marc Lasgouttes

> "Bruce" == Bruce Momjian <[EMAIL PROTECTED]> writes:

Bruce> Removal of the test makes sense to me. I can imagine allowing
Bruce> multiple spaces in a non-typewriter font, though the affect
Bruce> would be hard to predict because of the variable-width.
Bruce> However, I can imagine setting free_space just to prevent
Bruce> wordwrapping of the text, so free_space would have two affects.

OK, I'll do just that.

JMarc



RE: Q: Lyx and languages

1999-10-25 Thread Stefan Krischer

>You mean probably if words are then spellchecked with the right dictionary
>and if the hyphenation is correct. The answer to this is no, it's not yet
>possible! It's on our TODO list thought :)

Not really. My question was meant more fundamental:

- Is is possible to use hebrew characters in a german Lyx text? If yes how? 
- Do I have to install a hebrew font? How?
- Is there a hebrew keybord mapping? (The web page says no, but perhaps it is 
not up-to-date.)
- Is it possible to write from right to left?
- Is there a Lyx support for all this or do I need to write Latex-Commands?
- Similar questions about Greek...

Greetings, Stefan



NEWBIE, please help on BOUNDING BOX problems

1999-10-25 Thread magni

I am not an expert at all, and just came from the Win world to linux.

I have some EPS images (obtained via a print to file on Postscript
device),
and when including them in a figure float they appear:
1) huge
2) half cut, since they are displaced in the lower right direction.

Somebody told me this is a bounding box problem, and although it seems
to me from
reading the mailing list archive that once it could be solved via some
option in the LyX InsertFigure popup, I cannot find it now (maybe it
worked just in old LyX versions?).

Now, I am a lazy guy and would prefer I can solve the problem in some
beautiful click-and-drag environment. Somebody told me it can be
done in Gv, but, in my version at least (3.5.8) I cannot find it.

Can somebody help me, please???

Thank you

Alessandro

--
~~
\  Dr.Alessandro Magni
/   IEN Galileo Ferraris
\   c.M.d'Azeglio 42, 10125 Torino (ITALIA)
/   [EMAIL PROTECTED]
\   Fax (39)11-6507611
/   Tel (39)11-3919757
\   Homepage at: http://alpha.ien.it/~magni/home.htm
~~





Re: included files

1999-10-25 Thread Lars Gullik Bjønnes

Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:

| I think there is a problem here. Currently, \input@path is set to
| {doc-path}, whereas it should be {{doc-path}{}}, if I am not mistaken.
| I'll have to take a look.

or should it be {{doc-path}} ??
(why the empty group?)

Lgb



count the number of words ina document

1999-10-25 Thread Hezi Gildor


hi all,
is there a way to count the number of words or characters in a
documents ?

thanks, hezi.



Re: relyx: Are there limitations?

1999-10-25 Thread Jan Ulrich Hasecke

On 25 Oct 1999, Jean-Marc Lasgouttes wrote:

>Did you try running reLyX from the command line? What error message do
>you get?

Good hint!

Text::TeX::Begin::Group::Args \begin{labeling} -
Changing environment labeling to layout Labeling
String `{' expected, not found at
/usr/X11R6/bin/../share/lyx/reLyX/Text/TeX.pm line
786,  chunk 7308.  Can't
call method "contents" without a package or object
reference at
/usr/X11R6/bin/../share/lyx/reLyX/BasicLyX.pm line
875,  chunk 7308. Exited due to fatal
Error! 
Current Layout Stack: Standard Labeling

Mh, seemingly reLyX cannot handle the [:] in
\begin{labeling}[:]{width}

Without that it finished sucessfully.

Ciao!
juh





Re: count the number of words ina document

1999-10-25 Thread Jean-Marc Lasgouttes

> "Hezi" == Hezi Gildor <[EMAIL PROTECTED]> writes:

Hezi> hi all, is there a way to count the number of words or
Hezi> characters in a documents ?

The spellchecker gives you this info when spellchecking is finished.
There should be a more strightforward way, though.

JMarc



Re: count the number of words ina document

1999-10-25 Thread Jean-Pierre.Chretien


>>Date: Mon, 25 Oct 1999 18:24:22 +0200
>>From: [EMAIL PROTECTED] (Hezi Gildor)
>>To: [EMAIL PROTECTED]
>>Subject: count the number of words ina document
>>
>>
>>hi all,
>>is there a way to count the number of words or characters in a
>>documents ?
>>
>>thanks, hezi.

Word count is a result of spellcheck.

-- 
Jean-Pierre



Re: Publication on Industrial and Engineering Chemistry Research

1999-10-25 Thread Tero Kesti

On Mon, 25 Oct 1999, Marco Bravi wrote:

> 
>   I am about to send a manuscript for publication in Industrial and
> Engineering Chemistry Research (an American Chemical Society magazine).
> 
> They allow TeX/LaTeX files in BUT they state:
> 
> (...) Avoid using \include, \epsffile{}, or \input commands to link
> external files, including any graphics files. All the parts of the paper
> listed above must be present within a single file. (...)
> 
> I am rather dubious about how I can put my EPS or mixed LaTeX/PostScript
> image files inside the main document. So far, I used "Insert->Figure->EPS"

When you submit a manuscript for an ACS journal, you should not include
your images inside the main document at all but send them in separate
files. They probably accept EPS. Figure captions should be in the main
document. 


Tero Kesti  [EMAIL PROTECTED]
Institute of Materials Chemistry 
Tampere University of Technology  



RE: Q: Lyx and languages

1999-10-25 Thread Ronald Florence

Stefan Krischer writes:
  
  - Is is possible to use hebrew characters in a german Lyx text? If yes how? 
  - Do I have to install a hebrew font? How?
  - Is there a hebrew keybord mapping? (The web page says no, but perhaps it is 
  not up-to-date.)
  - Is it possible to write from right to left?
  - Is there a Lyx support for all this or do I need to write Latex-Commands?
  - Similar questions about Greek...
  
If you need only a few characters or words of Hebrew or Yiddish, it
can be done handily in LyX with the package shalom.  You add

\usepackage[shalom]{shalom}

to your LaTeX preface, and then include the Hebrew or Yiddish text in
LaTeX mode in a transliterated form:

\shalombox[\large \oldstyle]{\mem\alef/a\nun+ \tet\alef\resh+
  \nun\yod\tet+ \bet\ayin\tet\nun+ \alef\vav\yod\fe+ \alef/a+
  \nun\yod/a\yod\mem+ \mem\lamed\kaf.}

The shalom package offers several font and other options, and takes
care of reversing the letter order in the words.  I don't recall
whether the Hebrew fonts are supplied with the package, or are
separately available from CTAN.

I have used the package in LyX for Yiddish (the above quote) and
Hebrew.

Regards,

-- 

Ronald Florence http://users.ids.net/~18james