Re: How to line break URLs?

2016-07-05 Thread William Seager
On Monday, July 04, 2016 07:52:09 PM Steve Litt wrote:
> Anyone here know how to line-break URLs in a LyX produced PDF? Ideally
> after a slash? Hopefully, my URLs will be links that can be followed
> with a click.

the URL package seems to do a pretty good job I find

best wishes, Bill
-- 
William Seager
University of Toronto Scarborough
www.utsc.utoronto.ca/~seager


Re: How to line break URLs?

2016-07-05 Thread Charlie

On Mon, 4 Jul 2016 19:52:09 -0400 "Steve Litt
sl...@troubleshooters.com" informed me of this:

> Hi all,
> 
> Anyone here know how to line-break URLs in a LyX produced PDF? Ideally
> after a slash? Hopefully, my URLs will be links that can be followed
> with a click.
> 
> Thanks,
> 
> SteveT

Very old, because I read it on the internet years ago as the way to do
it.

So still use it in the Latex preamble of on some document templates.
Works for me. There may be a better way of course? I just don't know it.

\renewcommand{\UrlBreaks}{\do\/\do\a\do\b\do\c\do\d\do\e\do\f\do\g\do\h\do\i\do\j\do\k\do\l\do\m\do\n\do\o\do\p\do\q\do\r\do\s\do\t\do\u\do\v\do\w\do\x\do\y\do\z\do\A\do\B\do\C\do\D\do\E\do\F\do\G\do\H\do\I\do\J\do\K\do\L\do\M\do\N\do\O\do\P\do\Q\do\R\do\S\do\T\do\U\do\V\do\W\do\X\do\Y\do\Z}

Hope that helps.
Charlie


-- 
Registered Linux User:- 329524
***

True friendship can afford true knowledge. It does not depend
on darkness and ignorance. .Henry
David Thoreau

***

Debian GNU/Linux - Magic indeed.

-


Re: How to line break URLs?

2016-07-05 Thread Wolfgang Engelmann
Couldn't you use >insert>hyperlink and click into it allowing you to 
enter a shorter term (which in the pdf is still clickable)?


Wolfgang



On 05.07.2016 01:52, Steve Litt wrote:

Hi all,

Anyone here know how to line-break URLs in a LyX produced PDF? Ideally
after a slash? Hopefully, my URLs will be links that can be followed
with a click.

Thanks,

SteveT

Steve Litt
July 2016 featured book: Troubleshooting Techniques
  of the Successful Technologist
http://www.troubleshooters.com/techniques




How to line break URLs?

2016-07-04 Thread Steve Litt
Hi all,

Anyone here know how to line-break URLs in a LyX produced PDF? Ideally
after a slash? Hopefully, my URLs will be links that can be followed
with a click.

Thanks,

SteveT

Steve Litt 
July 2016 featured book: Troubleshooting Techniques
 of the Successful Technologist
http://www.troubleshooters.com/techniques


Forced line-break does not work in tables

2015-11-02 Thread jezZiFeR
Hello,

I use LyX 2.1.4 on OS X. When I try to insert a forced linebreak (strg+return) 
nothing happens, I get the line, that the command is disabled. How else could I 
insert line breaks in tables:

Thanks
Jess

Re: Forced line-break does not work in tables

2015-11-02 Thread John Kane
See Section 2.8.1 of the EmbeddedObjects help document.

I find the instructions a bit vague but if you place the cursor in the cell
where you want the text wrap (or select all the cells you want this for)
right-click, select More > Settings and set the column width ( top part of
the new window) you should get what you want.

On 2 November 2015 at 05:28, jezZiFeR  wrote:

> Hello,
>
> I use LyX 2.1.4 on OS X. When I try to insert a forced linebreak
> (strg+return) nothing happens, I get the line, that the command is
> disabled. How else could I insert line breaks in tables:
>
> Thanks
> Jess




-- 
John Kane
Kingston ON Canada


RE: Hyphenating a hyphenated word at a line break

2014-09-04 Thread Jim Oldfield

 From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf
Of
 Rich Shepard
 Sent: 4 September 2014 12:28 AM
 
 On Wed, 3 Sep 2014, Jerry wrote:
 
  Something curious happens on my computer which is a Macintosh. I don't
  know if it happens on other computers but it would be interesting to
know.
  (Hint.)
 
 Jerry,
 
On linux running on Intel and AMD processors the only way to enter a
 hyphen, n-dash, and m-dash is to use -, --, and ---. Never had a problem
with
 incorrect line breaks with any of 'em over the years.
 
 Rich

Are you sure it's the only way? It's easy to prove something is possible -
just say how to do it - but proving something is impossible is notoriously
difficult! I suspect one of these three options will let you do the same
thing on Linux as Jerry was doing on the Mac:

1. Maybe there is some way to input unicode characters directly. For
example, on Windows you can type Alt+0150 to get an en dash.

2. There is probably some equivalent of the Windows character map on Linux.
You could search in that for en dash or em dash and copy and paste the
result to LyX.

3. Within LyX there is the insert-special character dialogue. Under the
general punctuation section you will find several dashes (which could
really do with labelling). The fifth one (which says code point: 2013 when
you hover over it) is an en dash, and the one after is an em dash.

Jim




RE: Hyphenating a hyphenated word at a line break

2014-09-04 Thread Jim Oldfield
Sorry for arriving late to this party. Here are a few things I've noticed.

**Type of dash**

In LaTeX, and therefore also in LyX, there are two types of en dash (and
also two types of em dash). In LaTeX the first is entered by -- and the
second is entered with \textendash. In LyX the first is entered with -- and
the second is entered by putting the unicode en dash in (in my reply to Rich
I listed three ways to do this, and Jerry's Mac technique is doing the same
thing). It's not quite clear to me which is the correct way to do this. --
is older, and \textendash was introduced so that it can work with more fonts
(or something like that). 

But as Jerry has noticed, they also have different line breaking properties.
It sounds like the ability of -- to create a  line break was just a side
effect of its implementation rather than intended. Maybe it was suppressed
from \textendash because it's so easy to turn back on when needed (see next
point).

**Changing the breaking behaviour**

Allow \textendash to break: in the position you want to allow a break
(almost certainly after the dash) insert a zero width space. In LaTeX this
is \hspace{0cm}, and in LyX use insert-formatting-horizontal space, then
choose custom and put in zero. This is the same philosophy as Unicode, where
you'd put in a zero-width space to allow a line break.

Stop -- allowing a line break: I'm not sure whether this is a correct
solution, but putting it in an \mbox seems to work (as in:
Heine\mbox{--}Borel theorem). Unfortunately LyX doesn't support mboxes, so
you'd need to enter it in ERT.

**Which type of line break is correct?**

I know of three ways of using an en dash in English:

1. The original purpose is for numeric ranges in text: see pp. 40-87.

2. For hyphenating words when they are proper nouns of equal importance: so
in Heine-Borel theorem but not in mean-value theorem.

3. In place of em dashes for parenthetical remarks, with spaces on either
side. This is not traditional but has become fashionable in recent decades.

It seems to me that you do not want breaking for the first usage and you do
for the second (and you'll always get it for the third because of the
spaces), so neither type of dash is better in general. Since \textendash
works with more fonts (so it's said), this seems to me to be the best thing
to output.

Jim

 -Original Message-
 From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf
Of
 Jerry
 Sent: 4 September 2014 12:15 AM
 To: LyX users' list
 Subject: Re: Hyphenating a hyphenated word at a line break
 
 On Aug 28, 2014, at 4:03 AM, Jerry lancebo...@qwest.net wrote:
 
  I have a fancy hyphenated word, crosstalk-cancelled, where I spell it
with (I
 believe) the proper - which is an n-dash. When this is rendered in the
vicinity
 of a line wrap, the entire thing gets pushed to the next line, leaving a
lot of
 ugly white space in the first line. So I inserted a hyphenation point
after the -.
 This shows on the LyX screen as sort of -- which is my original n-dash and
a
 shorter blue dash, probably supposed to represent a hyphen. This is all
great,
 but when this version is rendered, the line break now appears after
 crosstalk--, that is, both the n-dash _and_ the hyphenation point are
 rendered which looks very wrong. What is the typographer's say on this,
and
 is LyX doing the right thing. Also, is this a LyX problem or a TeX
problem? My
 guess the typographer would say, let the n-dash stand alone if it occurs
at a
 line break.
 
  Jerry
 
 Thanks for all your kind responses.
 
 I need to clear up this thread for a few reasons.
 
 I started it with a muddle-headed premise--that the n-dash is
appropriately
 used in places such as crosstalk-cancelled; it is not. A hyphen should be
used
 there. I've known this since grammar school and for some reason a bit in
my
 brain flipped (bit rot's a bitch) a couple months ago and I started doing
it
 wrong. So the best thing would be to ignore this whole thread. However...
 
 LyX, apparently like LaTeX and I suppose TeX, denotes the hyphen as an
 actual hyphen -, the n-dash as two hyphens --, and the m-dash as three
 hyphens ---. When entered this way in LyX, line breaking, if necessary,
 happens as expected, after the hyphen or dash. However...
 
 Something curious happens on my computer which is a Macintosh. I don't
 know if it happens on other computers but it would be interesting to know.
 (Hint.) Specifically, on Macs the n-dash is entered with Option-hyphen and
 the m-dash with Shift-Option-hyphen; this has been the case since 1984 and
 my fingers know it well. The LyX documentation says that the - -- ---
method
 should be used. (It does not say _not_ to do the Mac-like thing.) Being
 contrary (and a newish LyX user) I tried the traditional Mac way, and it
works-
 -the desired character is displayed on the LyX window and also is rendered
 correctly in printed output. So that is the habit I continued for working
in LyX.
 Therein lies my problem

RE: Hyphenating a hyphenated word at a line break

2014-09-04 Thread Jim Oldfield

 From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf
Of
 Rich Shepard
 Sent: 4 September 2014 12:28 AM
 
 On Wed, 3 Sep 2014, Jerry wrote:
 
  Something curious happens on my computer which is a Macintosh. I don't
  know if it happens on other computers but it would be interesting to
know.
  (Hint.)
 
 Jerry,
 
On linux running on Intel and AMD processors the only way to enter a
 hyphen, n-dash, and m-dash is to use -, --, and ---. Never had a problem
with
 incorrect line breaks with any of 'em over the years.
 
 Rich

Are you sure it's the only way? It's easy to prove something is possible -
just say how to do it - but proving something is impossible is notoriously
difficult! I suspect one of these three options will let you do the same
thing on Linux as Jerry was doing on the Mac:

1. Maybe there is some way to input unicode characters directly. For
example, on Windows you can type Alt+0150 to get an en dash.

2. There is probably some equivalent of the Windows character map on Linux.
You could search in that for en dash or em dash and copy and paste the
result to LyX.

3. Within LyX there is the insert-special character dialogue. Under the
general punctuation section you will find several dashes (which could
really do with labelling). The fifth one (which says code point: 2013 when
you hover over it) is an en dash, and the one after is an em dash.

Jim




RE: Hyphenating a hyphenated word at a line break

2014-09-04 Thread Jim Oldfield
Sorry for arriving late to this party. Here are a few things I've noticed.

**Type of dash**

In LaTeX, and therefore also in LyX, there are two types of en dash (and
also two types of em dash). In LaTeX the first is entered by -- and the
second is entered with \textendash. In LyX the first is entered with -- and
the second is entered by putting the unicode en dash in (in my reply to Rich
I listed three ways to do this, and Jerry's Mac technique is doing the same
thing). It's not quite clear to me which is the correct way to do this. --
is older, and \textendash was introduced so that it can work with more fonts
(or something like that). 

But as Jerry has noticed, they also have different line breaking properties.
It sounds like the ability of -- to create a  line break was just a side
effect of its implementation rather than intended. Maybe it was suppressed
from \textendash because it's so easy to turn back on when needed (see next
point).

**Changing the breaking behaviour**

Allow \textendash to break: in the position you want to allow a break
(almost certainly after the dash) insert a zero width space. In LaTeX this
is \hspace{0cm}, and in LyX use insert-formatting-horizontal space, then
choose custom and put in zero. This is the same philosophy as Unicode, where
you'd put in a zero-width space to allow a line break.

Stop -- allowing a line break: I'm not sure whether this is a correct
solution, but putting it in an \mbox seems to work (as in:
Heine\mbox{--}Borel theorem). Unfortunately LyX doesn't support mboxes, so
you'd need to enter it in ERT.

**Which type of line break is correct?**

I know of three ways of using an en dash in English:

1. The original purpose is for numeric ranges in text: see pp. 40-87.

2. For hyphenating words when they are proper nouns of equal importance: so
in Heine-Borel theorem but not in mean-value theorem.

3. In place of em dashes for parenthetical remarks, with spaces on either
side. This is not traditional but has become fashionable in recent decades.

It seems to me that you do not want breaking for the first usage and you do
for the second (and you'll always get it for the third because of the
spaces), so neither type of dash is better in general. Since \textendash
works with more fonts (so it's said), this seems to me to be the best thing
to output.

Jim

 -Original Message-
 From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf
Of
 Jerry
 Sent: 4 September 2014 12:15 AM
 To: LyX users' list
 Subject: Re: Hyphenating a hyphenated word at a line break
 
 On Aug 28, 2014, at 4:03 AM, Jerry lancebo...@qwest.net wrote:
 
  I have a fancy hyphenated word, crosstalk-cancelled, where I spell it
with (I
 believe) the proper - which is an n-dash. When this is rendered in the
vicinity
 of a line wrap, the entire thing gets pushed to the next line, leaving a
lot of
 ugly white space in the first line. So I inserted a hyphenation point
after the -.
 This shows on the LyX screen as sort of -- which is my original n-dash and
a
 shorter blue dash, probably supposed to represent a hyphen. This is all
great,
 but when this version is rendered, the line break now appears after
 crosstalk--, that is, both the n-dash _and_ the hyphenation point are
 rendered which looks very wrong. What is the typographer's say on this,
and
 is LyX doing the right thing. Also, is this a LyX problem or a TeX
problem? My
 guess the typographer would say, let the n-dash stand alone if it occurs
at a
 line break.
 
  Jerry
 
 Thanks for all your kind responses.
 
 I need to clear up this thread for a few reasons.
 
 I started it with a muddle-headed premise--that the n-dash is
appropriately
 used in places such as crosstalk-cancelled; it is not. A hyphen should be
used
 there. I've known this since grammar school and for some reason a bit in
my
 brain flipped (bit rot's a bitch) a couple months ago and I started doing
it
 wrong. So the best thing would be to ignore this whole thread. However...
 
 LyX, apparently like LaTeX and I suppose TeX, denotes the hyphen as an
 actual hyphen -, the n-dash as two hyphens --, and the m-dash as three
 hyphens ---. When entered this way in LyX, line breaking, if necessary,
 happens as expected, after the hyphen or dash. However...
 
 Something curious happens on my computer which is a Macintosh. I don't
 know if it happens on other computers but it would be interesting to know.
 (Hint.) Specifically, on Macs the n-dash is entered with Option-hyphen and
 the m-dash with Shift-Option-hyphen; this has been the case since 1984 and
 my fingers know it well. The LyX documentation says that the - -- ---
method
 should be used. (It does not say _not_ to do the Mac-like thing.) Being
 contrary (and a newish LyX user) I tried the traditional Mac way, and it
works-
 -the desired character is displayed on the LyX window and also is rendered
 correctly in printed output. So that is the habit I continued for working
in LyX.
 Therein lies my problem

RE: Hyphenating a hyphenated word at a line break

2014-09-04 Thread Jim Oldfield

> From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf
Of
> Rich Shepard
> Sent: 4 September 2014 12:28 AM
> 
> On Wed, 3 Sep 2014, Jerry wrote:
> 
> > Something curious happens on my computer which is a Macintosh. I don't
> > know if it happens on other computers but it would be interesting to
know.
> > (Hint.)
> 
> Jerry,
> 
>On linux running on Intel and AMD processors the only way to enter a
> hyphen, n-dash, and m-dash is to use -, --, and ---. Never had a problem
with
> incorrect line breaks with any of 'em over the years.
> 
> Rich

Are you sure it's "the only way"? It's easy to prove something is possible -
just say how to do it - but proving something is impossible is notoriously
difficult! I suspect one of these three options will let you do the same
thing on Linux as Jerry was doing on the Mac:

1. Maybe there is some way to input unicode characters directly. For
example, on Windows you can type Alt+0150 to get an en dash.

2. There is probably some equivalent of the Windows character map on Linux.
You could search in that for en dash or em dash and copy and paste the
result to LyX.

3. Within LyX there is the insert->special character dialogue. Under the
"general punctuation" section you will find several dashes (which could
really do with labelling). The fifth one (which says "code point: 2013" when
you hover over it) is an en dash, and the one after is an em dash.

Jim




RE: Hyphenating a hyphenated word at a line break

2014-09-04 Thread Jim Oldfield
Sorry for arriving late to this party. Here are a few things I've noticed.

**Type of dash**

In LaTeX, and therefore also in LyX, there are two types of en dash (and
also two types of em dash). In LaTeX the first is entered by -- and the
second is entered with \textendash. In LyX the first is entered with -- and
the second is entered by putting the unicode en dash in (in my reply to Rich
I listed three ways to do this, and Jerry's Mac technique is doing the same
thing). It's not quite clear to me which is the "correct" way to do this. --
is older, and \textendash was introduced so that it can work with more fonts
(or something like that). 

But as Jerry has noticed, they also have different line breaking properties.
It sounds like the ability of -- to create a  line break was just a side
effect of its implementation rather than intended. Maybe it was suppressed
from \textendash because it's so easy to turn back on when needed (see next
point).

**Changing the breaking behaviour**

Allow \textendash to break: in the position you want to allow a break
(almost certainly after the dash) insert a zero width space. In LaTeX this
is \hspace{0cm}, and in LyX use insert->formatting->horizontal space, then
choose custom and put in zero. This is the same philosophy as Unicode, where
you'd put in a zero-width space to allow a line break.

Stop -- allowing a line break: I'm not sure whether this is a "correct"
solution, but putting it in an \mbox seems to work (as in:
"Heine\mbox{--}Borel theorem"). Unfortunately LyX doesn't support mboxes, so
you'd need to enter it in ERT.

**Which type of line break is correct?**

I know of three ways of using an en dash in English:

1. The original purpose is for numeric ranges in text: "see pp. 40-87".

2. For hyphenating words when they are proper nouns of equal importance: so
in "Heine-Borel theorem" but not in "mean-value theorem".

3. In place of em dashes for parenthetical remarks, with spaces on either
side. This is not traditional but has become fashionable in recent decades.

It seems to me that you do not want breaking for the first usage and you do
for the second (and you'll always get it for the third because of the
spaces), so neither type of dash is better in general. Since \textendash
works with more fonts (so it's said), this seems to me to be the best thing
to output.

Jim

> -Original Message-
> From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf
Of
> Jerry
> Sent: 4 September 2014 12:15 AM
> To: LyX users' list
> Subject: Re: Hyphenating a hyphenated word at a line break
> 
> On Aug 28, 2014, at 4:03 AM, Jerry <lancebo...@qwest.net> wrote:
> 
> > I have a fancy hyphenated word, crosstalk-cancelled, where I spell it
with (I
> believe) the proper - which is an n-dash. When this is rendered in the
vicinity
> of a line wrap, the entire thing gets pushed to the next line, leaving a
lot of
> ugly white space in the first line. So I inserted a hyphenation point
after the -.
> This shows on the LyX screen as sort of -- which is my original n-dash and
a
> shorter blue dash, probably supposed to represent a hyphen. This is all
great,
> but when this version is rendered, the line break now appears after
> crosstalk--, that is, both the n-dash _and_ the hyphenation point are
> rendered which looks very wrong. What is the typographer's say on this,
and
> is LyX doing the right thing. Also, is this a LyX problem or a TeX
problem? My
> guess the typographer would say, let the n-dash stand alone if it occurs
at a
> line break.
> >
> > Jerry
> 
> Thanks for all your kind responses.
> 
> I need to clear up this thread for a few reasons.
> 
> I started it with a muddle-headed premise--that the n-dash is
appropriately
> used in places such as crosstalk-cancelled; it is not. A hyphen should be
used
> there. I've known this since grammar school and for some reason a bit in
my
> brain flipped (bit rot's a bitch) a couple months ago and I started doing
it
> wrong. So the best thing would be to ignore this whole thread. However...
> 
> LyX, apparently like LaTeX and I suppose TeX, denotes the hyphen as an
> actual hyphen -, the n-dash as two hyphens --, and the m-dash as three
> hyphens ---. When entered this way in LyX, line breaking, if necessary,
> happens as expected, after the hyphen or dash. However...
> 
> Something curious happens on my computer which is a Macintosh. I don't
> know if it happens on other computers but it would be interesting to know.
> (Hint.) Specifically, on Macs the n-dash is entered with Option-hyphen and
> the m-dash with Shift-Option-hyphen; this has been the case since 1984 and
> my fingers know it well. The LyX documentation says that the - -- ---
method
> should be used. (It does not say _not_ to do the

Re: Hyphenating a hyphenated word at a line break

2014-09-03 Thread Jerry
On Aug 28, 2014, at 4:03 AM, Jerry lancebo...@qwest.net wrote:

 I have a fancy hyphenated word, crosstalk-cancelled, where I spell it with (I 
 believe) the proper - which is an n-dash. When this is rendered in the 
 vicinity of a line wrap, the entire thing gets pushed to the next line, 
 leaving a lot of ugly white space in the first line. So I inserted a 
 hyphenation point after the -. This shows on the LyX screen as sort of -- 
 which is my original n-dash and a shorter blue dash, probably supposed to 
 represent a hyphen. This is all great, but when this version is rendered, the 
 line break now appears after crosstalk--, that is, both the n-dash _and_ the 
 hyphenation point are rendered which looks very wrong. What is the 
 typographer's say on this, and is LyX doing the right thing. Also, is this a 
 LyX problem or a TeX problem? My guess the typographer would say, let the 
 n-dash stand alone if it occurs at a line break.
 
 Jerry

Thanks for all your kind responses.

I need to clear up this thread for a few reasons.

I started it with a muddle-headed premise--that the n-dash is appropriately 
used in places such as crosstalk-cancelled; it is not. A hyphen should be used 
there. I've known this since grammar school and for some reason a bit in my 
brain flipped (bit rot's a bitch) a couple months ago and I started doing it 
wrong. So the best thing would be to ignore this whole thread. However...

LyX, apparently like LaTeX and I suppose TeX, denotes the hyphen as an actual 
hyphen -, the n-dash as two hyphens --, and the m-dash as three hyphens ---. 
When entered this way in LyX, line breaking, if necessary, happens as expected, 
after the hyphen or dash. However...

Something curious happens on my computer which is a Macintosh. I don't know if 
it happens on other computers but it would be interesting to know. (Hint.) 
Specifically, on Macs the n-dash is entered with Option-hyphen and the m-dash 
with Shift-Option-hyphen; this has been the case since 1984 and my fingers know 
it well. The LyX documentation says that the - -- --- method should be used. 
(It does not say _not_ to do the Mac-like thing.) Being contrary (and a newish 
LyX user) I tried the traditional Mac way, and it works--the desired character 
is displayed on the LyX window and also is rendered correctly in printed 
output. So that is the habit I continued for working in LyX. Therein lies my 
problem. Even though the traditional Mac entry method displays correctly 
on-screen and in-print, the n- and m-dash so entered DO NOT ALLOW LINE BREAKS. 
And that's why I wrote.

Is this worth a request ticket--to make these alternate entry methods 
compatible with LyX?

Jerry

Some remedial reading for me:
http://www.dashhyphen.com/
http://en.wikipedia.org/wiki/Dash

Re: Hyphenating a hyphenated word at a line break

2014-09-03 Thread Rich Shepard

On Wed, 3 Sep 2014, Jerry wrote:


Something curious happens on my computer which is a Macintosh. I don't
know if it happens on other computers but it would be interesting to know.
(Hint.)


Jerry,

  On linux running on Intel and AMD processors the only way to enter a
hyphen, n-dash, and m-dash is to use -, --, and ---. Never had a problem
with incorrect line breaks with any of 'em over the years.

Rich


Re: Hyphenating a hyphenated word at a line break

2014-09-03 Thread Jerry
On Aug 28, 2014, at 4:03 AM, Jerry lancebo...@qwest.net wrote:

 I have a fancy hyphenated word, crosstalk-cancelled, where I spell it with (I 
 believe) the proper - which is an n-dash. When this is rendered in the 
 vicinity of a line wrap, the entire thing gets pushed to the next line, 
 leaving a lot of ugly white space in the first line. So I inserted a 
 hyphenation point after the -. This shows on the LyX screen as sort of -- 
 which is my original n-dash and a shorter blue dash, probably supposed to 
 represent a hyphen. This is all great, but when this version is rendered, the 
 line break now appears after crosstalk--, that is, both the n-dash _and_ the 
 hyphenation point are rendered which looks very wrong. What is the 
 typographer's say on this, and is LyX doing the right thing. Also, is this a 
 LyX problem or a TeX problem? My guess the typographer would say, let the 
 n-dash stand alone if it occurs at a line break.
 
 Jerry

Thanks for all your kind responses.

I need to clear up this thread for a few reasons.

I started it with a muddle-headed premise--that the n-dash is appropriately 
used in places such as crosstalk-cancelled; it is not. A hyphen should be used 
there. I've known this since grammar school and for some reason a bit in my 
brain flipped (bit rot's a bitch) a couple months ago and I started doing it 
wrong. So the best thing would be to ignore this whole thread. However...

LyX, apparently like LaTeX and I suppose TeX, denotes the hyphen as an actual 
hyphen -, the n-dash as two hyphens --, and the m-dash as three hyphens ---. 
When entered this way in LyX, line breaking, if necessary, happens as expected, 
after the hyphen or dash. However...

Something curious happens on my computer which is a Macintosh. I don't know if 
it happens on other computers but it would be interesting to know. (Hint.) 
Specifically, on Macs the n-dash is entered with Option-hyphen and the m-dash 
with Shift-Option-hyphen; this has been the case since 1984 and my fingers know 
it well. The LyX documentation says that the - -- --- method should be used. 
(It does not say _not_ to do the Mac-like thing.) Being contrary (and a newish 
LyX user) I tried the traditional Mac way, and it works--the desired character 
is displayed on the LyX window and also is rendered correctly in printed 
output. So that is the habit I continued for working in LyX. Therein lies my 
problem. Even though the traditional Mac entry method displays correctly 
on-screen and in-print, the n- and m-dash so entered DO NOT ALLOW LINE BREAKS. 
And that's why I wrote.

Is this worth a request ticket--to make these alternate entry methods 
compatible with LyX?

Jerry

Some remedial reading for me:
http://www.dashhyphen.com/
http://en.wikipedia.org/wiki/Dash

Re: Hyphenating a hyphenated word at a line break

2014-09-03 Thread Rich Shepard

On Wed, 3 Sep 2014, Jerry wrote:


Something curious happens on my computer which is a Macintosh. I don't
know if it happens on other computers but it would be interesting to know.
(Hint.)


Jerry,

  On linux running on Intel and AMD processors the only way to enter a
hyphen, n-dash, and m-dash is to use -, --, and ---. Never had a problem
with incorrect line breaks with any of 'em over the years.

Rich


Re: Hyphenating a hyphenated word at a line break

2014-09-03 Thread Jerry
On Aug 28, 2014, at 4:03 AM, Jerry <lancebo...@qwest.net> wrote:

> I have a fancy hyphenated word, crosstalk-cancelled, where I spell it with (I 
> believe) the proper - which is an n-dash. When this is rendered in the 
> vicinity of a line wrap, the entire thing gets pushed to the next line, 
> leaving a lot of ugly white space in the first line. So I inserted a 
> hyphenation point after the -. This shows on the LyX screen as sort of -- 
> which is my original n-dash and a shorter blue dash, probably supposed to 
> represent a hyphen. This is all great, but when this version is rendered, the 
> line break now appears after crosstalk--, that is, both the n-dash _and_ the 
> hyphenation point are rendered which looks very wrong. What is the 
> typographer's say on this, and is LyX doing the right thing. Also, is this a 
> LyX problem or a TeX problem? My guess the typographer would say, let the 
> n-dash stand alone if it occurs at a line break.
> 
> Jerry

Thanks for all your kind responses.

I need to clear up this thread for a few reasons.

I started it with a muddle-headed premise--that the n-dash is appropriately 
used in places such as crosstalk-cancelled; it is not. A hyphen should be used 
there. I've known this since grammar school and for some reason a bit in my 
brain flipped (bit rot's a bitch) a couple months ago and I started doing it 
wrong. So the best thing would be to ignore this whole thread. However...

LyX, apparently like LaTeX and I suppose TeX, denotes the hyphen as an actual 
hyphen -, the n-dash as two hyphens --, and the m-dash as three hyphens ---. 
When entered this way in LyX, line breaking, if necessary, happens as expected, 
after the hyphen or dash. However...

Something curious happens on my computer which is a Macintosh. I don't know if 
it happens on other computers but it would be interesting to know. (Hint.) 
Specifically, on Macs the n-dash is entered with Option-hyphen and the m-dash 
with Shift-Option-hyphen; this has been the case since 1984 and my fingers know 
it well. The LyX documentation says that the - -- --- method should be used. 
(It does not say _not_ to do the Mac-like thing.) Being contrary (and a newish 
LyX user) I tried the traditional Mac way, and it works--the desired character 
is displayed on the LyX window and also is rendered correctly in printed 
output. So that is the habit I continued for working in LyX. Therein lies my 
problem. Even though the traditional Mac entry method displays correctly 
on-screen and in-print, the n- and m-dash so entered DO NOT ALLOW LINE BREAKS. 
And that's why I wrote.

Is this worth a request ticket--to make these alternate entry methods 
compatible with LyX?

Jerry

Some remedial reading for me:
http://www.dashhyphen.com/
http://en.wikipedia.org/wiki/Dash

Re: Hyphenating a hyphenated word at a line break

2014-09-03 Thread Rich Shepard

On Wed, 3 Sep 2014, Jerry wrote:


Something curious happens on my computer which is a Macintosh. I don't
know if it happens on other computers but it would be interesting to know.
(Hint.)


Jerry,

  On linux running on Intel and AMD processors the only way to enter a
hyphen, n-dash, and m-dash is to use -, --, and ---. Never had a problem
with incorrect line breaks with any of 'em over the years.

Rich


Hyphenating a hyphenated word at a line break

2014-08-28 Thread Jerry
I have a fancy hyphenated word, crosstalk-cancelled, where I spell it with (I 
believe) the proper - which is an n-dash. When this is rendered in the vicinity 
of a line wrap, the entire thing gets pushed to the next line, leaving a lot of 
ugly white space in the first line. So I inserted a hyphenation point after the 
-. This shows on the LyX screen as sort of -- which is my original n-dash and a 
shorter blue dash, probably supposed to represent a hyphen. This is all great, 
but when this version is rendered, the line break now appears after 
crosstalk--, that is, both the n-dash _and_ the hyphenation point are rendered 
which looks very wrong. What is the typographer's say on this, and is LyX doing 
the right thing. Also, is this a LyX problem or a TeX problem? My guess the 
typographer would say, let the n-dash stand alone if it occurs at a line break.

Jerry

Re: Hyphenating a hyphenated word at a line break

2014-08-28 Thread Richard Heck

On 08/28/2014 07:03 AM, Jerry wrote:

I have a fancy hyphenated word, crosstalk-cancelled, where I spell it with (I 
believe) the proper - which is an n-dash. When this is rendered in the vicinity 
of a line wrap, the entire thing gets pushed to the next line, leaving a lot of 
ugly white space in the first line. So I inserted a hyphenation point after the 
-. This shows on the LyX screen as sort of -- which is my original n-dash and a 
shorter blue dash, probably supposed to represent a hyphen. This is all great, 
but when this version is rendered, the line break now appears after 
crosstalk--, that is, both the n-dash _and_ the hyphenation point are rendered 
which looks very wrong. What is the typographer's say on this, and is LyX doing 
the right thing. Also, is this a LyX problem or a TeX problem? My guess the 
typographer would say, let the n-dash stand alone if it occurs at a line break.


Yes, the n-dash should stand alone, but LaTeX is doing what you are 
asking: You told it that it was OK to hyphenate there, so it has. What 
you want is the \linebreak command instead. LyX does not have native 
support for this, so you have to use ERT. Note that you can use an 
optional argument with \linebreak, as well, from 0 to 4, which mean: you 
can break here; you really must break here. So you could try:

\linebreak[1]
in ERT to start. The advantage of using the optional argument is that, 
if you move some text around, LaTeX still has a chance of getting the 
linebreaking right, whereas if you insist the line be broken there, then 
things could go very ugly.


Richard



Re: Hyphenating a hyphenated word at a line break

2014-08-28 Thread stefano franchi
On Thu, Aug 28, 2014 at 6:03 AM, Jerry lancebo...@qwest.net wrote:

 I have a fancy hyphenated word, crosstalk-cancelled, where I spell it with
 (I believe) the proper - which is an n-dash. When this is rendered in the
 vicinity of a line wrap, the entire thing gets pushed to the next line,
 leaving a lot of ugly white space in the first line. So I inserted a
 hyphenation point after the -. This shows on the LyX screen as sort of --
 which is my original n-dash and a shorter blue dash, probably supposed to
 represent a hyphen. This is all great, but when this version is rendered,
 the line break now appears after crosstalk--, that is, both the n-dash
 _and_ the hyphenation point are rendered which looks very wrong. What is
 the typographer's say on this, and is LyX doing the right thing. Also, is
 this a LyX problem or a TeX problem? My guess the typographer would say,
 let the n-dash stand alone if it occurs at a line break.



This stackexchange question [1] contains more info than you probably wished
for, but it may still be useful in laying out the various ways to approach
the problem. Richard's suggestion (\newline) is indeed one of those listed.
Of course, all solution refer to LaTeX an not Lyxd, which means you can use
them only if you insert them in ERT boxes (and add the corresponding
packages, when needed, to your Document's preamble)

Cheers,

Stefano

[1]
http://stackoverflow.com/questions/2193307/how-to-get-latex-to-hyphenate-a-word-that-contains-a-dash

-- 
__
Stefano Franchi

stefano.fran...@gmail.com stef...@tamu.edu
http://stefano.cleinias.org


Re: Hyphenating a hyphenated word at a line break

2014-08-28 Thread Richard Heck

On 08/28/2014 11:43 AM, stefano franchi wrote:




On Thu, Aug 28, 2014 at 6:03 AM, Jerry lancebo...@qwest.net 
mailto:lancebo...@qwest.net wrote:


I have a fancy hyphenated word, crosstalk-cancelled, where I spell
it with (I believe) the proper - which is an n-dash. When this is
rendered in the vicinity of a line wrap, the entire thing gets
pushed to the next line, leaving a lot of ugly white space in the
first line. So I inserted a hyphenation point after the -. This
shows on the LyX screen as sort of -- which is my original n-dash
and a shorter blue dash, probably supposed to represent a hyphen.
This is all great, but when this version is rendered, the line
break now appears after crosstalk--, that is, both the n-dash
_and_ the hyphenation point are rendered which looks very wrong.
What is the typographer's say on this, and is LyX doing the right
thing. Also, is this a LyX problem or a TeX problem? My guess the
typographer would say, let the n-dash stand alone if it occurs at
a line break.



This stackexchange question [1] contains more info than you probably 
wished for, but it may still be useful in laying out the various ways 
to approach the problem. Richard's suggestion (\newline) is indeed one 
of those listed. Of course, all solution refer to LaTeX an not Lyxd, 
which means you can use them only if you insert them in ERT boxes (and 
add the corresponding packages, when needed, to your Document's preamble)


[1] 
http://stackoverflow.com/questions/2193307/how-to-get-latex-to-hyphenate-a-word-that-contains-a-dash


Wow, that is a lot of information! Mostly, that deals with cases where 
you use the word a lot. I took this to be more of a one-off sort of 
issue. But I'm going to save that link


Richard



Re: Hyphenating a hyphenated word at a line break

2014-08-28 Thread stefano franchi
On Thu, Aug 28, 2014 at 11:19 AM, Richard Heck rgh...@lyx.org wrote:

  On 08/28/2014 11:43 AM, stefano franchi wrote:




 On Thu, Aug 28, 2014 at 6:03 AM, Jerry lancebo...@qwest.net wrote:

 I have a fancy hyphenated word, crosstalk-cancelled, where I spell it
 with (I believe) the proper - which is an n-dash. When this is rendered in
 the vicinity of a line wrap, the entire thing gets pushed to the next line,
 leaving a lot of ugly white space in the first line. So I inserted a
 hyphenation point after the -. This shows on the LyX screen as sort of --
 which is my original n-dash and a shorter blue dash, probably supposed to
 represent a hyphen. This is all great, but when this version is rendered,
 the line break now appears after crosstalk--, that is, both the n-dash
 _and_ the hyphenation point are rendered which looks very wrong. What is
 the typographer's say on this, and is LyX doing the right thing. Also, is
 this a LyX problem or a TeX problem? My guess the typographer would say,
 let the n-dash stand alone if it occurs at a line break.



  This stackexchange question [1] contains more info than you probably
 wished for, but it may still be useful in laying out the various ways to
 approach the problem. Richard's suggestion (\newline) is indeed one of
 those listed. Of course, all solution refer to LaTeX an not Lyxd, which
 means you can use them only if you insert them in ERT boxes (and add the
 corresponding packages, when needed, to your Document's preamble)

 [1]
 http://stackoverflow.com/questions/2193307/how-to-get-latex-to-hyphenate-a-word-that-contains-a-dash


 Wow, that is a lot of information! Mostly, that deals with cases where you
 use the word a lot. I took this to be more of a one-off sort of issue. But
 I'm going to save that link



Well, for more time-wasting typographic fun, you could also read the
following SX question [1]. Look in particular at the answer from Lover of
Structure One of the highest ranked). Best explanation I have ever found
of the difference between hyphen and en-dash in compound words.


Cheers,

S.

[1] http://tex.stackexchange.com/questions/3819/dashes-vs-vs




-- 
__
Stefano Franchi

stefano.fran...@gmail.com stef...@tamu.edu
http://stefano.cleinias.org


Hyphenating a hyphenated word at a line break

2014-08-28 Thread Jerry
I have a fancy hyphenated word, crosstalk-cancelled, where I spell it with (I 
believe) the proper - which is an n-dash. When this is rendered in the vicinity 
of a line wrap, the entire thing gets pushed to the next line, leaving a lot of 
ugly white space in the first line. So I inserted a hyphenation point after the 
-. This shows on the LyX screen as sort of -- which is my original n-dash and a 
shorter blue dash, probably supposed to represent a hyphen. This is all great, 
but when this version is rendered, the line break now appears after 
crosstalk--, that is, both the n-dash _and_ the hyphenation point are rendered 
which looks very wrong. What is the typographer's say on this, and is LyX doing 
the right thing. Also, is this a LyX problem or a TeX problem? My guess the 
typographer would say, let the n-dash stand alone if it occurs at a line break.

Jerry

Re: Hyphenating a hyphenated word at a line break

2014-08-28 Thread Richard Heck

On 08/28/2014 07:03 AM, Jerry wrote:

I have a fancy hyphenated word, crosstalk-cancelled, where I spell it with (I 
believe) the proper - which is an n-dash. When this is rendered in the vicinity 
of a line wrap, the entire thing gets pushed to the next line, leaving a lot of 
ugly white space in the first line. So I inserted a hyphenation point after the 
-. This shows on the LyX screen as sort of -- which is my original n-dash and a 
shorter blue dash, probably supposed to represent a hyphen. This is all great, 
but when this version is rendered, the line break now appears after 
crosstalk--, that is, both the n-dash _and_ the hyphenation point are rendered 
which looks very wrong. What is the typographer's say on this, and is LyX doing 
the right thing. Also, is this a LyX problem or a TeX problem? My guess the 
typographer would say, let the n-dash stand alone if it occurs at a line break.


Yes, the n-dash should stand alone, but LaTeX is doing what you are 
asking: You told it that it was OK to hyphenate there, so it has. What 
you want is the \linebreak command instead. LyX does not have native 
support for this, so you have to use ERT. Note that you can use an 
optional argument with \linebreak, as well, from 0 to 4, which mean: you 
can break here; you really must break here. So you could try:

\linebreak[1]
in ERT to start. The advantage of using the optional argument is that, 
if you move some text around, LaTeX still has a chance of getting the 
linebreaking right, whereas if you insist the line be broken there, then 
things could go very ugly.


Richard



Re: Hyphenating a hyphenated word at a line break

2014-08-28 Thread stefano franchi
On Thu, Aug 28, 2014 at 6:03 AM, Jerry lancebo...@qwest.net wrote:

 I have a fancy hyphenated word, crosstalk-cancelled, where I spell it with
 (I believe) the proper - which is an n-dash. When this is rendered in the
 vicinity of a line wrap, the entire thing gets pushed to the next line,
 leaving a lot of ugly white space in the first line. So I inserted a
 hyphenation point after the -. This shows on the LyX screen as sort of --
 which is my original n-dash and a shorter blue dash, probably supposed to
 represent a hyphen. This is all great, but when this version is rendered,
 the line break now appears after crosstalk--, that is, both the n-dash
 _and_ the hyphenation point are rendered which looks very wrong. What is
 the typographer's say on this, and is LyX doing the right thing. Also, is
 this a LyX problem or a TeX problem? My guess the typographer would say,
 let the n-dash stand alone if it occurs at a line break.



This stackexchange question [1] contains more info than you probably wished
for, but it may still be useful in laying out the various ways to approach
the problem. Richard's suggestion (\newline) is indeed one of those listed.
Of course, all solution refer to LaTeX an not Lyxd, which means you can use
them only if you insert them in ERT boxes (and add the corresponding
packages, when needed, to your Document's preamble)

Cheers,

Stefano

[1]
http://stackoverflow.com/questions/2193307/how-to-get-latex-to-hyphenate-a-word-that-contains-a-dash

-- 
__
Stefano Franchi

stefano.fran...@gmail.com stef...@tamu.edu
http://stefano.cleinias.org


Re: Hyphenating a hyphenated word at a line break

2014-08-28 Thread Richard Heck

On 08/28/2014 11:43 AM, stefano franchi wrote:




On Thu, Aug 28, 2014 at 6:03 AM, Jerry lancebo...@qwest.net 
mailto:lancebo...@qwest.net wrote:


I have a fancy hyphenated word, crosstalk-cancelled, where I spell
it with (I believe) the proper - which is an n-dash. When this is
rendered in the vicinity of a line wrap, the entire thing gets
pushed to the next line, leaving a lot of ugly white space in the
first line. So I inserted a hyphenation point after the -. This
shows on the LyX screen as sort of -- which is my original n-dash
and a shorter blue dash, probably supposed to represent a hyphen.
This is all great, but when this version is rendered, the line
break now appears after crosstalk--, that is, both the n-dash
_and_ the hyphenation point are rendered which looks very wrong.
What is the typographer's say on this, and is LyX doing the right
thing. Also, is this a LyX problem or a TeX problem? My guess the
typographer would say, let the n-dash stand alone if it occurs at
a line break.



This stackexchange question [1] contains more info than you probably 
wished for, but it may still be useful in laying out the various ways 
to approach the problem. Richard's suggestion (\newline) is indeed one 
of those listed. Of course, all solution refer to LaTeX an not Lyxd, 
which means you can use them only if you insert them in ERT boxes (and 
add the corresponding packages, when needed, to your Document's preamble)


[1] 
http://stackoverflow.com/questions/2193307/how-to-get-latex-to-hyphenate-a-word-that-contains-a-dash


Wow, that is a lot of information! Mostly, that deals with cases where 
you use the word a lot. I took this to be more of a one-off sort of 
issue. But I'm going to save that link


Richard



Re: Hyphenating a hyphenated word at a line break

2014-08-28 Thread stefano franchi
On Thu, Aug 28, 2014 at 11:19 AM, Richard Heck rgh...@lyx.org wrote:

  On 08/28/2014 11:43 AM, stefano franchi wrote:




 On Thu, Aug 28, 2014 at 6:03 AM, Jerry lancebo...@qwest.net wrote:

 I have a fancy hyphenated word, crosstalk-cancelled, where I spell it
 with (I believe) the proper - which is an n-dash. When this is rendered in
 the vicinity of a line wrap, the entire thing gets pushed to the next line,
 leaving a lot of ugly white space in the first line. So I inserted a
 hyphenation point after the -. This shows on the LyX screen as sort of --
 which is my original n-dash and a shorter blue dash, probably supposed to
 represent a hyphen. This is all great, but when this version is rendered,
 the line break now appears after crosstalk--, that is, both the n-dash
 _and_ the hyphenation point are rendered which looks very wrong. What is
 the typographer's say on this, and is LyX doing the right thing. Also, is
 this a LyX problem or a TeX problem? My guess the typographer would say,
 let the n-dash stand alone if it occurs at a line break.



  This stackexchange question [1] contains more info than you probably
 wished for, but it may still be useful in laying out the various ways to
 approach the problem. Richard's suggestion (\newline) is indeed one of
 those listed. Of course, all solution refer to LaTeX an not Lyxd, which
 means you can use them only if you insert them in ERT boxes (and add the
 corresponding packages, when needed, to your Document's preamble)

 [1]
 http://stackoverflow.com/questions/2193307/how-to-get-latex-to-hyphenate-a-word-that-contains-a-dash


 Wow, that is a lot of information! Mostly, that deals with cases where you
 use the word a lot. I took this to be more of a one-off sort of issue. But
 I'm going to save that link



Well, for more time-wasting typographic fun, you could also read the
following SX question [1]. Look in particular at the answer from Lover of
Structure One of the highest ranked). Best explanation I have ever found
of the difference between hyphen and en-dash in compound words.


Cheers,

S.

[1] http://tex.stackexchange.com/questions/3819/dashes-vs-vs




-- 
__
Stefano Franchi

stefano.fran...@gmail.com stef...@tamu.edu
http://stefano.cleinias.org


Hyphenating a hyphenated word at a line break

2014-08-28 Thread Jerry
I have a fancy hyphenated word, crosstalk-cancelled, where I spell it with (I 
believe) the proper - which is an n-dash. When this is rendered in the vicinity 
of a line wrap, the entire thing gets pushed to the next line, leaving a lot of 
ugly white space in the first line. So I inserted a hyphenation point after the 
-. This shows on the LyX screen as sort of -- which is my original n-dash and a 
shorter blue dash, probably supposed to represent a hyphen. This is all great, 
but when this version is rendered, the line break now appears after 
crosstalk--, that is, both the n-dash _and_ the hyphenation point are rendered 
which looks very wrong. What is the typographer's say on this, and is LyX doing 
the right thing. Also, is this a LyX problem or a TeX problem? My guess the 
typographer would say, let the n-dash stand alone if it occurs at a line break.

Jerry

Re: Hyphenating a hyphenated word at a line break

2014-08-28 Thread Richard Heck

On 08/28/2014 07:03 AM, Jerry wrote:

I have a fancy hyphenated word, crosstalk-cancelled, where I spell it with (I 
believe) the proper - which is an n-dash. When this is rendered in the vicinity 
of a line wrap, the entire thing gets pushed to the next line, leaving a lot of 
ugly white space in the first line. So I inserted a hyphenation point after the 
-. This shows on the LyX screen as sort of -- which is my original n-dash and a 
shorter blue dash, probably supposed to represent a hyphen. This is all great, 
but when this version is rendered, the line break now appears after 
crosstalk--, that is, both the n-dash _and_ the hyphenation point are rendered 
which looks very wrong. What is the typographer's say on this, and is LyX doing 
the right thing. Also, is this a LyX problem or a TeX problem? My guess the 
typographer would say, let the n-dash stand alone if it occurs at a line break.


Yes, the n-dash should stand alone, but LaTeX is doing what you are 
asking: You told it that it was OK to hyphenate there, so it has. What 
you want is the \linebreak command instead. LyX does not have native 
support for this, so you have to use ERT. Note that you can use an 
optional argument with \linebreak, as well, from 0 to 4, which mean: you 
can break here; you really must break here. So you could try:

\linebreak[1]
in ERT to start. The advantage of using the optional argument is that, 
if you move some text around, LaTeX still has a chance of getting the 
linebreaking right, whereas if you insist the line be broken there, then 
things could go very ugly.


Richard



Re: Hyphenating a hyphenated word at a line break

2014-08-28 Thread stefano franchi
On Thu, Aug 28, 2014 at 6:03 AM, Jerry <lancebo...@qwest.net> wrote:

> I have a fancy hyphenated word, crosstalk-cancelled, where I spell it with
> (I believe) the proper - which is an n-dash. When this is rendered in the
> vicinity of a line wrap, the entire thing gets pushed to the next line,
> leaving a lot of ugly white space in the first line. So I inserted a
> hyphenation point after the -. This shows on the LyX screen as sort of --
> which is my original n-dash and a shorter blue dash, probably supposed to
> represent a hyphen. This is all great, but when this version is rendered,
> the line break now appears after crosstalk--, that is, both the n-dash
> _and_ the hyphenation point are rendered which looks very wrong. What is
> the typographer's say on this, and is LyX doing the right thing. Also, is
> this a LyX problem or a TeX problem? My guess the typographer would say,
> let the n-dash stand alone if it occurs at a line break.
>
>

This stackexchange question [1] contains more info than you probably wished
for, but it may still be useful in laying out the various ways to approach
the problem. Richard's suggestion (\newline) is indeed one of those listed.
Of course, all solution refer to LaTeX an not Lyxd, which means you can use
them only if you insert them in ERT boxes (and add the corresponding
packages, when needed, to your Document's preamble)

Cheers,

Stefano

[1]
http://stackoverflow.com/questions/2193307/how-to-get-latex-to-hyphenate-a-word-that-contains-a-dash

-- 
__
Stefano Franchi

stefano.fran...@gmail.com <stef...@tamu.edu>
http://stefano.cleinias.org


Re: Hyphenating a hyphenated word at a line break

2014-08-28 Thread Richard Heck

On 08/28/2014 11:43 AM, stefano franchi wrote:




On Thu, Aug 28, 2014 at 6:03 AM, Jerry <lancebo...@qwest.net 
<mailto:lancebo...@qwest.net>> wrote:


I have a fancy hyphenated word, crosstalk-cancelled, where I spell
it with (I believe) the proper - which is an n-dash. When this is
rendered in the vicinity of a line wrap, the entire thing gets
pushed to the next line, leaving a lot of ugly white space in the
first line. So I inserted a hyphenation point after the -. This
shows on the LyX screen as sort of -- which is my original n-dash
and a shorter blue dash, probably supposed to represent a hyphen.
This is all great, but when this version is rendered, the line
break now appears after crosstalk--, that is, both the n-dash
_and_ the hyphenation point are rendered which looks very wrong.
What is the typographer's say on this, and is LyX doing the right
thing. Also, is this a LyX problem or a TeX problem? My guess the
typographer would say, let the n-dash stand alone if it occurs at
a line break.



This stackexchange question [1] contains more info than you probably 
wished for, but it may still be useful in laying out the various ways 
to approach the problem. Richard's suggestion (\newline) is indeed one 
of those listed. Of course, all solution refer to LaTeX an not Lyxd, 
which means you can use them only if you insert them in ERT boxes (and 
add the corresponding packages, when needed, to your Document's preamble)


[1] 
http://stackoverflow.com/questions/2193307/how-to-get-latex-to-hyphenate-a-word-that-contains-a-dash


Wow, that is a lot of information! Mostly, that deals with cases where 
you use the word a lot. I took this to be more of a one-off sort of 
issue. But I'm going to save that link


Richard



Re: Hyphenating a hyphenated word at a line break

2014-08-28 Thread stefano franchi
On Thu, Aug 28, 2014 at 11:19 AM, Richard Heck <rgh...@lyx.org> wrote:

>  On 08/28/2014 11:43 AM, stefano franchi wrote:
>
>
>
>
> On Thu, Aug 28, 2014 at 6:03 AM, Jerry <lancebo...@qwest.net> wrote:
>
>> I have a fancy hyphenated word, crosstalk-cancelled, where I spell it
>> with (I believe) the proper - which is an n-dash. When this is rendered in
>> the vicinity of a line wrap, the entire thing gets pushed to the next line,
>> leaving a lot of ugly white space in the first line. So I inserted a
>> hyphenation point after the -. This shows on the LyX screen as sort of --
>> which is my original n-dash and a shorter blue dash, probably supposed to
>> represent a hyphen. This is all great, but when this version is rendered,
>> the line break now appears after crosstalk--, that is, both the n-dash
>> _and_ the hyphenation point are rendered which looks very wrong. What is
>> the typographer's say on this, and is LyX doing the right thing. Also, is
>> this a LyX problem or a TeX problem? My guess the typographer would say,
>> let the n-dash stand alone if it occurs at a line break.
>>
>>
>
>  This stackexchange question [1] contains more info than you probably
> wished for, but it may still be useful in laying out the various ways to
> approach the problem. Richard's suggestion (\newline) is indeed one of
> those listed. Of course, all solution refer to LaTeX an not Lyxd, which
> means you can use them only if you insert them in ERT boxes (and add the
> corresponding packages, when needed, to your Document's preamble)
>
> [1]
> http://stackoverflow.com/questions/2193307/how-to-get-latex-to-hyphenate-a-word-that-contains-a-dash
>
>
> Wow, that is a lot of information! Mostly, that deals with cases where you
> use the word a lot. I took this to be more of a one-off sort of issue. But
> I'm going to save that link
>
>

Well, for more time-wasting typographic fun, you could also read the
following SX question [1]. Look in particular at the answer from "Lover of
Structure" One of the highest ranked). Best explanation I have ever found
of the difference between hyphen and en-dash in compound words.


Cheers,

S.

[1] http://tex.stackexchange.com/questions/3819/dashes-vs-vs




-- 
__
Stefano Franchi

stefano.fran...@gmail.com <stef...@tamu.edu>
http://stefano.cleinias.org


Re: How to remove line break in chapter headings layout?

2013-06-09 Thread Guenter Milde
On 2013-06-08, stefano franchi wrote:

 [-- Type: text/plain, Encoding:  --]

 I use the memoir class for both books and article and I modified the memoir
 layout accordingly to create a memoir-article layout. I would like LyX to
 format chapter headings *on screen* (pdf output is fine) the same way it
 formats all other section headings, that is:

 counter space chapter title

 instead of the standard formatting for the book class(es):

 Chapter counter
 chapter title

Why don't you do it the normal way, i.e. like the standard classes and
KOMA script: skip the chapter level in article class and restrict it to
section, subsection, subsub...

Günter



Re: How to remove line break in chapter headings layout?

2013-06-09 Thread stefano franchi
On Sun, Jun 9, 2013 at 10:50 AM, Guenter Milde mi...@users.sf.net wrote:

 On 2013-06-08, stefano franchi wrote:

  [-- Type: text/plain, Encoding:  --]

  I use the memoir class for both books and article and I modified the
 memoir
  layout accordingly to create a memoir-article layout. I would like LyX
 to
  format chapter headings *on screen* (pdf output is fine) the same way it
  formats all other section headings, that is:

  counter space chapter title

  instead of the standard formatting for the book class(es):

  Chapter counter
  chapter title

 Why don't you do it the normal way, i.e. like the standard classes and
 KOMA script: skip the chapter level in article class and restrict it to
 section, subsection, subsub...


Well, because the normal way is actually not normal to my working habits.
I use memoir for everything regardless of the pieces' lengths and it's
actually easier for me to deal with  a consistent set of environments
without having to stop and think about whether I am using a book-like or an
article-like class. I think of headings as level 0, level 1, etcetera,
and I am happy to leave the proper formatting to a customized class that I
can switch at will.
Admittedly, this is not a standard Latex workflow, but it works for me.

Cheers,

Stefano

-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: How to remove line break in chapter headings layout?

2013-06-09 Thread Guenter Milde
On 2013-06-08, stefano franchi wrote:

 [-- Type: text/plain, Encoding:  --]

 I use the memoir class for both books and article and I modified the memoir
 layout accordingly to create a memoir-article layout. I would like LyX to
 format chapter headings *on screen* (pdf output is fine) the same way it
 formats all other section headings, that is:

 counter space chapter title

 instead of the standard formatting for the book class(es):

 Chapter counter
 chapter title

Why don't you do it the normal way, i.e. like the standard classes and
KOMA script: skip the chapter level in article class and restrict it to
section, subsection, subsub...

Günter



Re: How to remove line break in chapter headings layout?

2013-06-09 Thread stefano franchi
On Sun, Jun 9, 2013 at 10:50 AM, Guenter Milde mi...@users.sf.net wrote:

 On 2013-06-08, stefano franchi wrote:

  [-- Type: text/plain, Encoding:  --]

  I use the memoir class for both books and article and I modified the
 memoir
  layout accordingly to create a memoir-article layout. I would like LyX
 to
  format chapter headings *on screen* (pdf output is fine) the same way it
  formats all other section headings, that is:

  counter space chapter title

  instead of the standard formatting for the book class(es):

  Chapter counter
  chapter title

 Why don't you do it the normal way, i.e. like the standard classes and
 KOMA script: skip the chapter level in article class and restrict it to
 section, subsection, subsub...


Well, because the normal way is actually not normal to my working habits.
I use memoir for everything regardless of the pieces' lengths and it's
actually easier for me to deal with  a consistent set of environments
without having to stop and think about whether I am using a book-like or an
article-like class. I think of headings as level 0, level 1, etcetera,
and I am happy to leave the proper formatting to a customized class that I
can switch at will.
Admittedly, this is not a standard Latex workflow, but it works for me.

Cheers,

Stefano

-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: How to remove line break in chapter headings layout?

2013-06-09 Thread Guenter Milde
On 2013-06-08, stefano franchi wrote:

> [-- Type: text/plain, Encoding:  --]

> I use the memoir class for both books and article and I modified the memoir
> layout accordingly to create a "memoir-article" layout. I would like LyX to
> format chapter headings *on screen* (pdf output is fine) the same way it
> formats all other section headings, that is:

> "counter" space "chapter title"

> instead of the standard formatting for the book class(es):

> Chapter "counter"
> "chapter title"

Why don't you do it "the normal way", i.e. like the standard classes and
KOMA script: skip the "chapter" level in "article" class and restrict it to
section, subsection, subsub...

Günter



Re: How to remove line break in chapter headings layout?

2013-06-09 Thread stefano franchi
On Sun, Jun 9, 2013 at 10:50 AM, Guenter Milde  wrote:

> On 2013-06-08, stefano franchi wrote:
>
> > [-- Type: text/plain, Encoding:  --]
>
> > I use the memoir class for both books and article and I modified the
> memoir
> > layout accordingly to create a "memoir-article" layout. I would like LyX
> to
> > format chapter headings *on screen* (pdf output is fine) the same way it
> > formats all other section headings, that is:
>
> > "counter" space "chapter title"
>
> > instead of the standard formatting for the book class(es):
>
> > Chapter "counter"
> > "chapter title"
>
> Why don't you do it "the normal way", i.e. like the standard classes and
> KOMA script: skip the "chapter" level in "article" class and restrict it to
> section, subsection, subsub...
>
>
Well, because the "normal way" is actually not normal to my working habits.
I use memoir for everything regardless of the pieces' lengths and it's
actually easier for me to deal with  a consistent set of environments
without having to stop and think about whether I am using a book-like or an
article-like class. I think of headings as "level 0," "level 1," etcetera,
and I am happy to leave the proper formatting to a customized class that I
can switch at will.
Admittedly, this is not a standard Latex workflow, but it works for me.

Cheers,

Stefano

-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas A University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


How to remove line break in chapter headings layout?

2013-06-08 Thread stefano franchi
I use the memoir class for both books and article and I modified the memoir
layout accordingly to create a memoir-article layout. I would like LyX to
format chapter headings *on screen* (pdf output is fine) the same way it
formats all other section headings, that is:

counter space chapter title

instead of the standard formatting for the book class(es):

Chapter counter
chapter title


In short, I want to:

1. Remove the prefix Chapter

2. Remove the newline after the chapter counter.

My problem is that I cannot find a way to achieve 2.

The code for the chapter style in stdsections.inc is:

Style Chapter
MarginStatic
Category  Section
LabelString   Chapter \thechapter
LabelStringAppendix   Appendix \thechapter
LabelType Counter
LabelCounter  chapter
TocLevel  0
LatexType Command
LatexName chapter
NeedProtect   1
NextNoIndent  1
ParSkip   0.4
TopSep4
BottomSep 0.8
ParSep0.8
Align Block
OptionalArgs  1
Font
  Series  Bold
  SizeHuge
EndFont
HTMLTag   h1
End


Since reading the customization manual was of no help,  I tried copying it
into the local layout field and removing/changing options one by one while
checking their effects. It is obvious that I can remove the Chapter
prefix by removing it from  the LabelString field, but that still leaves
the newline in place and I get:

Chapter counter
chapter title

If I comment out the LabelString field altogether, I get back the standard
behavior (prefix/counter/newline/title), interestingly enough. The same
thing happens if, instead of modifying the chapter style, I start from the
section style in stdsections.inc and change the relevant parameters in
LabelCounter and LatexName from section to chapter

In short, I'm stumped. Perhaps the behavior of the chapter style is
hard-coded somewhere? If not, could someone enlighten me?

Cheers,

Stefano




-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: How to remove line break in chapter headings layout?

2013-06-08 Thread Jürgen Spitzmüller
Stefano Franchi wrote:
 In short, I want to:
 
 1. Remove the prefix Chapter
 
 2. Remove the newline after the chapter counter.
 
 My problem is that I cannot find a way to achieve 2.

It's only possible in LyX 2.1dev. The following redefinition after the 
original definiton has been inputed should do:

Style Chapter
LabelType Static
LabelSep  xxx
Margin   Dynamic
End

The KOMA implementation in trunk might serve as a model.

Jürgen


Re: How to remove line break in chapter headings layout?

2013-06-08 Thread Jürgen Spitzmüller
 It's only possible in LyX 2.1dev. The following redefinition after the 
 original definiton has been inputed should do:
 
 Style Chapter
 LabelType Static
 LabelSep  xxx
 Margin   Dynamic
 End

Actually:

Style Chapter
LabelType Static
LabelString  \thechapter
LabelSep  xxx
Margin   Dynamic
TocLevel   0
End

Jürgen


Re: How to remove line break in chapter headings layout?

2013-06-08 Thread stefano franchi
On Sat, Jun 8, 2013 at 10:44 AM, Jürgen Spitzmüller sp...@lyx.org wrote:

  It's only possible in LyX 2.1dev. The following redefinition after the
  original definiton has been inputed should do:
 
  Style Chapter
  LabelType Static
  LabelSep  xxx
  Margin   Dynamic
  End

 Actually:

 Style Chapter
 LabelType Static
 LabelString  \thechapter
 LabelSep  xxx
 Margin   Dynamic
 TocLevel   0
 End

 Jürgen


Thanks Jürgen. Unfortunately, I am still on 2.0.6 for production purposes.
Good to know the problem is solved in 2.1.

Cheers,

Stefano

-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


How to remove line break in chapter headings layout?

2013-06-08 Thread stefano franchi
I use the memoir class for both books and article and I modified the memoir
layout accordingly to create a memoir-article layout. I would like LyX to
format chapter headings *on screen* (pdf output is fine) the same way it
formats all other section headings, that is:

counter space chapter title

instead of the standard formatting for the book class(es):

Chapter counter
chapter title


In short, I want to:

1. Remove the prefix Chapter

2. Remove the newline after the chapter counter.

My problem is that I cannot find a way to achieve 2.

The code for the chapter style in stdsections.inc is:

Style Chapter
MarginStatic
Category  Section
LabelString   Chapter \thechapter
LabelStringAppendix   Appendix \thechapter
LabelType Counter
LabelCounter  chapter
TocLevel  0
LatexType Command
LatexName chapter
NeedProtect   1
NextNoIndent  1
ParSkip   0.4
TopSep4
BottomSep 0.8
ParSep0.8
Align Block
OptionalArgs  1
Font
  Series  Bold
  SizeHuge
EndFont
HTMLTag   h1
End


Since reading the customization manual was of no help,  I tried copying it
into the local layout field and removing/changing options one by one while
checking their effects. It is obvious that I can remove the Chapter
prefix by removing it from  the LabelString field, but that still leaves
the newline in place and I get:

Chapter counter
chapter title

If I comment out the LabelString field altogether, I get back the standard
behavior (prefix/counter/newline/title), interestingly enough. The same
thing happens if, instead of modifying the chapter style, I start from the
section style in stdsections.inc and change the relevant parameters in
LabelCounter and LatexName from section to chapter

In short, I'm stumped. Perhaps the behavior of the chapter style is
hard-coded somewhere? If not, could someone enlighten me?

Cheers,

Stefano




-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: How to remove line break in chapter headings layout?

2013-06-08 Thread Jürgen Spitzmüller
Stefano Franchi wrote:
 In short, I want to:
 
 1. Remove the prefix Chapter
 
 2. Remove the newline after the chapter counter.
 
 My problem is that I cannot find a way to achieve 2.

It's only possible in LyX 2.1dev. The following redefinition after the 
original definiton has been inputed should do:

Style Chapter
LabelType Static
LabelSep  xxx
Margin   Dynamic
End

The KOMA implementation in trunk might serve as a model.

Jürgen


Re: How to remove line break in chapter headings layout?

2013-06-08 Thread Jürgen Spitzmüller
 It's only possible in LyX 2.1dev. The following redefinition after the 
 original definiton has been inputed should do:
 
 Style Chapter
 LabelType Static
 LabelSep  xxx
 Margin   Dynamic
 End

Actually:

Style Chapter
LabelType Static
LabelString  \thechapter
LabelSep  xxx
Margin   Dynamic
TocLevel   0
End

Jürgen


Re: How to remove line break in chapter headings layout?

2013-06-08 Thread stefano franchi
On Sat, Jun 8, 2013 at 10:44 AM, Jürgen Spitzmüller sp...@lyx.org wrote:

  It's only possible in LyX 2.1dev. The following redefinition after the
  original definiton has been inputed should do:
 
  Style Chapter
  LabelType Static
  LabelSep  xxx
  Margin   Dynamic
  End

 Actually:

 Style Chapter
 LabelType Static
 LabelString  \thechapter
 LabelSep  xxx
 Margin   Dynamic
 TocLevel   0
 End

 Jürgen


Thanks Jürgen. Unfortunately, I am still on 2.0.6 for production purposes.
Good to know the problem is solved in 2.1.

Cheers,

Stefano

-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


How to remove line break in chapter headings layout?

2013-06-08 Thread stefano franchi
I use the memoir class for both books and article and I modified the memoir
layout accordingly to create a "memoir-article" layout. I would like LyX to
format chapter headings *on screen* (pdf output is fine) the same way it
formats all other section headings, that is:

"counter" space "chapter title"

instead of the standard formatting for the book class(es):

Chapter "counter"
"chapter title"


In short, I want to:

1. Remove the prefix "Chapter"

2. Remove the newline after the chapter counter.

My problem is that I cannot find a way to achieve 2.

The code for the chapter style in stdsections.inc is:

Style Chapter
MarginStatic
Category  Section
LabelString   "Chapter \thechapter"
LabelStringAppendix   "Appendix \thechapter"
LabelType Counter
LabelCounter  chapter
TocLevel  0
LatexType Command
LatexName chapter
NeedProtect   1
NextNoIndent  1
ParSkip   0.4
TopSep4
BottomSep 0.8
ParSep0.8
Align Block
OptionalArgs  1
Font
  Series  Bold
  SizeHuge
EndFont
HTMLTag   h1
End


Since reading the customization manual was of no help,  I tried copying it
into the local layout field and removing/changing options one by one while
checking their effects. It is obvious that I can remove the "Chapter"
prefix by removing it from  the LabelString field, but that still leaves
the newline in place and I get:

Chapter "counter"
"chapter title"

If I comment out the LabelString field altogether, I get back the standard
behavior (prefix/counter/newline/title), interestingly enough. The same
thing happens if, instead of modifying the chapter style, I start from the
section style in stdsections.inc and change the relevant parameters in
LabelCounter and LatexName from "section" to "chapter"

In short, I'm stumped. Perhaps the behavior of the chapter style is
hard-coded somewhere? If not, could someone enlighten me?

Cheers,

Stefano




-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas A University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: How to remove line break in chapter headings layout?

2013-06-08 Thread Jürgen Spitzmüller
Stefano Franchi wrote:
> In short, I want to:
> 
> 1. Remove the prefix "Chapter"
> 
> 2. Remove the newline after the chapter counter.
> 
> My problem is that I cannot find a way to achieve 2.

It's only possible in LyX 2.1dev. The following redefinition after the 
original definiton has been inputed should do:

Style Chapter
LabelType Static
LabelSep  xxx
Margin   Dynamic
End

The KOMA implementation in trunk might serve as a model.

Jürgen


Re: How to remove line break in chapter headings layout?

2013-06-08 Thread Jürgen Spitzmüller
> It's only possible in LyX 2.1dev. The following redefinition after the 
> original definiton has been inputed should do:
> 
> Style Chapter
> LabelType Static
> LabelSep  xxx
> Margin   Dynamic
> End

Actually:

Style Chapter
LabelType Static
LabelString  "\thechapter"
LabelSep  xxx
Margin   Dynamic
TocLevel   0
End

Jürgen


Re: How to remove line break in chapter headings layout?

2013-06-08 Thread stefano franchi
On Sat, Jun 8, 2013 at 10:44 AM, Jürgen Spitzmüller  wrote:

> > It's only possible in LyX 2.1dev. The following redefinition after the
> > original definiton has been inputed should do:
> >
> > Style Chapter
> > LabelType Static
> > LabelSep  xxx
> > Margin   Dynamic
> > End
>
> Actually:
>
> Style Chapter
> LabelType Static
> LabelString  "\thechapter"
> LabelSep  xxx
> Margin   Dynamic
> TocLevel   0
> End
>
> Jürgen
>

Thanks Jürgen. Unfortunately, I am still on 2.0.6 for production purposes.
Good to know the problem is solved in 2.1.

Cheers,

Stefano

-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas A University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


List with line break after the item label

2012-06-22 Thread Fabio Sobral
Hello,

I'm made a new list layout based on the lyxlist layout, but I'd like to
insert a line break after the item label to move the text to the next line.
Something like this:

ItemLabel

Text goes here after indent.

I checked several layouts but couldn't figure out how to do it.


Cheers,

Fabio.


Re: List with line break after the item label

2012-06-22 Thread Guenter Milde
On 2012-06-22, Fabio Sobral wrote:

 [-- Type: text/plain, Encoding:  --]

 Hello,

 I'm made a new list layout based on the lyxlist layout, but I'd like to
 insert a line break after the item label to move the text to the next line.
 Something like this:

 ItemLabel

 Text goes here after indent.

 I checked several layouts but couldn't figure out how to do it.

You may try the enumitem module. There is no ready-made layout but the
enumitem LaTeX package offers tools to configure lists and to write new ones.
Read the enumitem documentation (command `texdoc enumitem` on a modern TeX
installation) for details.

Günter



Re: List with line break after the item label

2012-06-22 Thread Fabio Sobral
I couldn't find a way to do it using enumitem either, but googling about it
I found this:
http://texblog.net/latex-beginners-guide/examples/chapter-4

The last image that shows how lists work gave me this silly idea of
inserting an horizontal space after the label, and apparently it worked.
I knew to Latex and Lyx, so I don't know if using horizontal spaces this
way is a bad idea, but I got exactly what I wanted.
I wish I could make Lyx display it the same way, but it is good enough for
me right now.

The shortcut for my list:
\bind C-S-k C-S-l layout FieldList

And the file fieldlist.inc:

# FieldList

Format 35

Style FieldList
Category  List
MarginManual
LatexType List_Environment
LatexName fieldlist
NextNoindent  1
LabelSep  x
ParSkip   0.4
TopSep0.7
BottomSep 0.7
ParSep0.5
Align Block
AlignPossible Block, Left
LabelType Manual
LabelFont
  Family  Typewriter
EndFont
LabelString   0

#define the environment fieldlist
Preamble
\newenvironment{fieldlist}[1]
{\begin{list}{}
{\settowidth{\labelwidth}{#1}
 \setlength{\leftmargin}{\labelwidth}
 \addtolength{\leftmargin}{\labelsep}
 \renewcommand{\makelabel}[1]{\texttt{##1}\hspace{1\columnwidth
{\end{list}}
EndPreamble
End


Cheers,

Fabio.

On Fri, Jun 22, 2012 at 1:23 PM, Guenter Milde mi...@users.sf.net wrote:

 On 2012-06-22, Fabio Sobral wrote:

  [-- Type: text/plain, Encoding:  --]

  Hello,

  I'm made a new list layout based on the lyxlist layout, but I'd like to
  insert a line break after the item label to move the text to the next
 line.
  Something like this:

  ItemLabel

  Text goes here after indent.

  I checked several layouts but couldn't figure out how to do it.

 You may try the enumitem module. There is no ready-made layout but the
 enumitem LaTeX package offers tools to configure lists and to write new
 ones.
 Read the enumitem documentation (command `texdoc enumitem` on a modern TeX
 installation) for details.

 Günter




List with line break after the item label

2012-06-22 Thread Fabio Sobral
Hello,

I'm made a new list layout based on the lyxlist layout, but I'd like to
insert a line break after the item label to move the text to the next line.
Something like this:

ItemLabel

Text goes here after indent.

I checked several layouts but couldn't figure out how to do it.


Cheers,

Fabio.


Re: List with line break after the item label

2012-06-22 Thread Guenter Milde
On 2012-06-22, Fabio Sobral wrote:

 [-- Type: text/plain, Encoding:  --]

 Hello,

 I'm made a new list layout based on the lyxlist layout, but I'd like to
 insert a line break after the item label to move the text to the next line.
 Something like this:

 ItemLabel

 Text goes here after indent.

 I checked several layouts but couldn't figure out how to do it.

You may try the enumitem module. There is no ready-made layout but the
enumitem LaTeX package offers tools to configure lists and to write new ones.
Read the enumitem documentation (command `texdoc enumitem` on a modern TeX
installation) for details.

Günter



Re: List with line break after the item label

2012-06-22 Thread Fabio Sobral
I couldn't find a way to do it using enumitem either, but googling about it
I found this:
http://texblog.net/latex-beginners-guide/examples/chapter-4

The last image that shows how lists work gave me this silly idea of
inserting an horizontal space after the label, and apparently it worked.
I knew to Latex and Lyx, so I don't know if using horizontal spaces this
way is a bad idea, but I got exactly what I wanted.
I wish I could make Lyx display it the same way, but it is good enough for
me right now.

The shortcut for my list:
\bind C-S-k C-S-l layout FieldList

And the file fieldlist.inc:

# FieldList

Format 35

Style FieldList
Category  List
MarginManual
LatexType List_Environment
LatexName fieldlist
NextNoindent  1
LabelSep  x
ParSkip   0.4
TopSep0.7
BottomSep 0.7
ParSep0.5
Align Block
AlignPossible Block, Left
LabelType Manual
LabelFont
  Family  Typewriter
EndFont
LabelString   0

#define the environment fieldlist
Preamble
\newenvironment{fieldlist}[1]
{\begin{list}{}
{\settowidth{\labelwidth}{#1}
 \setlength{\leftmargin}{\labelwidth}
 \addtolength{\leftmargin}{\labelsep}
 \renewcommand{\makelabel}[1]{\texttt{##1}\hspace{1\columnwidth
{\end{list}}
EndPreamble
End


Cheers,

Fabio.

On Fri, Jun 22, 2012 at 1:23 PM, Guenter Milde mi...@users.sf.net wrote:

 On 2012-06-22, Fabio Sobral wrote:

  [-- Type: text/plain, Encoding:  --]

  Hello,

  I'm made a new list layout based on the lyxlist layout, but I'd like to
  insert a line break after the item label to move the text to the next
 line.
  Something like this:

  ItemLabel

  Text goes here after indent.

  I checked several layouts but couldn't figure out how to do it.

 You may try the enumitem module. There is no ready-made layout but the
 enumitem LaTeX package offers tools to configure lists and to write new
 ones.
 Read the enumitem documentation (command `texdoc enumitem` on a modern TeX
 installation) for details.

 Günter




List with line break after the item label

2012-06-22 Thread Fabio Sobral
Hello,

I'm made a new list layout based on the lyxlist layout, but I'd like to
insert a line break after the item label to move the text to the next line.
Something like this:

ItemLabel

Text goes here after indent.

I checked several layouts but couldn't figure out how to do it.


Cheers,

Fabio.


Re: List with line break after the item label

2012-06-22 Thread Guenter Milde
On 2012-06-22, Fabio Sobral wrote:

> [-- Type: text/plain, Encoding:  --]

> Hello,

> I'm made a new list layout based on the lyxlist layout, but I'd like to
> insert a line break after the item label to move the text to the next line.
> Something like this:

> ItemLabel

> Text goes here after indent.

> I checked several layouts but couldn't figure out how to do it.

You may try the enumitem module. There is no ready-made layout but the
enumitem LaTeX package offers tools to configure lists and to write new ones.
Read the enumitem documentation (command `texdoc enumitem` on a modern TeX
installation) for details.

Günter



Re: List with line break after the item label

2012-06-22 Thread Fabio Sobral
I couldn't find a way to do it using enumitem either, but googling about it
I found this:
http://texblog.net/latex-beginners-guide/examples/chapter-4

The last image that shows how lists work gave me this silly idea of
inserting an horizontal space after the label, and apparently it worked.
I knew to Latex and Lyx, so I don't know if using horizontal spaces this
way is a bad idea, but I got exactly what I wanted.
I wish I could make Lyx display it the same way, but it is good enough for
me right now.

The shortcut for my list:
\bind "C-S-k C-S-l" "layout FieldList"

And the file fieldlist.inc:

# "FieldList"

Format 35

Style FieldList
Category  List
MarginManual
LatexType List_Environment
LatexName fieldlist
NextNoindent  1
LabelSep  x
ParSkip   0.4
TopSep0.7
BottomSep 0.7
ParSep0.5
Align Block
AlignPossible Block, Left
LabelType Manual
LabelFont
  Family  Typewriter
EndFont
LabelString   "0"

#define the environment fieldlist
Preamble
\newenvironment{fieldlist}[1]
{\begin{list}{}
{\settowidth{\labelwidth}{#1}
 \setlength{\leftmargin}{\labelwidth}
 \addtolength{\leftmargin}{\labelsep}
 \renewcommand{\makelabel}[1]{\texttt{##1}\hspace{1\columnwidth
{\end{list}}
EndPreamble
End


Cheers,

Fabio.

On Fri, Jun 22, 2012 at 1:23 PM, Guenter Milde <mi...@users.sf.net> wrote:

> On 2012-06-22, Fabio Sobral wrote:
>
> > [-- Type: text/plain, Encoding:  --]
>
> > Hello,
>
> > I'm made a new list layout based on the lyxlist layout, but I'd like to
> > insert a line break after the item label to move the text to the next
> line.
> > Something like this:
>
> > ItemLabel
>
> > Text goes here after indent.
>
> > I checked several layouts but couldn't figure out how to do it.
>
> You may try the enumitem module. There is no ready-made layout but the
> enumitem LaTeX package offers tools to configure lists and to write new
> ones.
> Read the enumitem documentation (command `texdoc enumitem` on a modern TeX
> installation) for details.
>
> Günter
>
>


RE: Line break

2012-04-30 Thread Hannu Vuolasaho




 Date: Sun, 29 Apr 2012 21:30:46 +0100
 From: zl...@zleap.net
 To: ahmedha...@gmx.net; lyx-users@lists.lyx.org
 Subject: Re: Line break

 On 29/04/12 21:21, Ahmed Halil wrote:
  Thanks a lot Paul, but I mean the width of the table.
 
  Ahmed
 
 Ok i wonder if you can alter the page orientation for a single page so
 for the page with the table on make it landscape

 can anyone comment ?

In preamble:


p, li { white-space: pre-wrap; }

\usepackage{lscape} If you want to turn the page on PDF too 
\usepackage{pdflscape} And on page before your float ERT: \begin{landscape} and 
after your float \end{landscape}

Does this help?

Best regards,
Hannu Vuolasaho
  

Re: Line break

2012-04-30 Thread Guenter Milde
On 2012-04-29, Ahmed Halil wrote:


 I want to create a table as a float, but there's a problem I can't cope. 
 I need to set a line break in a cell, because the table is quite to 
 large for printing the page.

 Can you help me?

In LyX, you cannot set a line-break in normal or variable width cells
easily.

Instead, you should give the collumn with the problematic cell a fixed
width (with the table config dialogue or right-click context menu).
Then, the cells in this column will exhibit automatic line breaking (and
also accept manual line breaks).

Günter



RE: Line break

2012-04-30 Thread Hannu Vuolasaho




 Date: Sun, 29 Apr 2012 21:30:46 +0100
 From: zl...@zleap.net
 To: ahmedha...@gmx.net; lyx-users@lists.lyx.org
 Subject: Re: Line break

 On 29/04/12 21:21, Ahmed Halil wrote:
  Thanks a lot Paul, but I mean the width of the table.
 
  Ahmed
 
 Ok i wonder if you can alter the page orientation for a single page so
 for the page with the table on make it landscape

 can anyone comment ?

In preamble:


p, li { white-space: pre-wrap; }

\usepackage{lscape} If you want to turn the page on PDF too 
\usepackage{pdflscape} And on page before your float ERT: \begin{landscape} and 
after your float \end{landscape}

Does this help?

Best regards,
Hannu Vuolasaho
  

Re: Line break

2012-04-30 Thread Guenter Milde
On 2012-04-29, Ahmed Halil wrote:


 I want to create a table as a float, but there's a problem I can't cope. 
 I need to set a line break in a cell, because the table is quite to 
 large for printing the page.

 Can you help me?

In LyX, you cannot set a line-break in normal or variable width cells
easily.

Instead, you should give the collumn with the problematic cell a fixed
width (with the table config dialogue or right-click context menu).
Then, the cells in this column will exhibit automatic line breaking (and
also accept manual line breaks).

Günter



RE: Line break

2012-04-30 Thread Hannu Vuolasaho




> Date: Sun, 29 Apr 2012 21:30:46 +0100
> From: zl...@zleap.net
> To: ahmedha...@gmx.net; lyx-users@lists.lyx.org
> Subject: Re: Line break
>
> On 29/04/12 21:21, Ahmed Halil wrote:
> > Thanks a lot Paul, but I mean the width of the table.
> >
> > Ahmed
> >
> Ok i wonder if you can alter the page orientation for a single page so
> for the page with the table on make it landscape
>
> can anyone comment ?

In preamble:


p, li { white-space: pre-wrap; }

\usepackage{lscape} If you want to turn the page on PDF too 
\usepackage{pdflscape} And on page before your float ERT: \begin{landscape} and 
after your float \end{landscape}

Does this help?

Best regards,
Hannu Vuolasaho
  

Re: Line break

2012-04-30 Thread Guenter Milde
On 2012-04-29, Ahmed Halil wrote:


> I want to create a table as a float, but there's a problem I can't cope. 
> I need to set a line break in a cell, because the table is quite to 
> large for printing the page.

> Can you help me?

In LyX, you cannot set a line-break in "normal" or "variable width" cells
easily.

Instead, you should give the collumn with the "problematic" cell a fixed
width (with the table config dialogue or right-click context menu).
Then, the cells in this column will exhibit automatic line breaking (and
also accept manual line breaks).

Günter



Line break

2012-04-29 Thread Ahmed Halil

Hello,

I want to create a table as a float, but there's a problem I can't cope. 
I need to set a line break in a cell, because the table is quite to 
large for printing the page.


Can you help me?

Please, excuse my language.

Ahmed


--
Ahmed Halil

HTW Berlin - University of Applied Sciences
Microsystems Technology
mst.htw-berlin.de http://mst.htw-berlin.de/


Re: Line break

2012-04-29 Thread paul sutton
On 29/04/12 19:23, Ahmed Halil wrote:
 Hello,

 I want to create a table as a float, but there's a problem I can't
 cope. I need to set a line break in a cell, because the table is quite
 to large for printing the page.

 Can you help me?

 Please, excuse my language.

 Ahmed


 -- 
 Ahmed Halil

 HTW Berlin - University of Applied Sciences
 Microsystems Technology
 mst.htw-berlin.de http://mst.htw-berlin.de/

Sorry didn't sned here,  I have asked on my local lug too,  can you add
pagebreak before the table so it appears on the same page.

Paul

-- 

--
http://www.zleap.net
http://www.ubuntu.com

skype : psutton111
http://www.linkedin.com/pub/paul-sutton/36/595/911



Re: Line break

2012-04-29 Thread paul sutton
On 29/04/12 21:21, Ahmed Halil wrote:
 Thanks a lot Paul, but I mean the width of the table.

 Ahmed

Ok i wonder if you can alter the page orientation for a single page so
for the page with the table on make it landscape

can anyone comment ?

Paul

 --
 Ahmed Halil

 HTW Berlin - University of Applied Sciences
 Microsystems Technology
 mst.htw-berlin.de http://mst.htw-berlin.de/

 Am 29.04.2012 20:43, schrieb paul sutton:
 On 29/04/12 19:23, Ahmed Halil wrote:
 Hello,

 I want to create a table as a float, but there's a problem I can't
 cope. I need to set a line break in a cell, because the table is quite
 to large for printing the page.

 Can you help me?

 Please, excuse my language.

 Ahmed


 -- 
 Ahmed Halil

 HTW Berlin - University of Applied Sciences
 Microsystems Technology
 mst.htw-berlin.de http://mst.htw-berlin.de/
 Can you add a pagebreak before the table so it appears on a page on its own

 Paul



-- 

--
http://www.zleap.net
http://www.ubuntu.com

skype : psutton111
http://www.linkedin.com/pub/paul-sutton/36/595/911



Line break

2012-04-29 Thread Ahmed Halil

Hello,

I want to create a table as a float, but there's a problem I can't cope. 
I need to set a line break in a cell, because the table is quite to 
large for printing the page.


Can you help me?

Please, excuse my language.

Ahmed


--
Ahmed Halil

HTW Berlin - University of Applied Sciences
Microsystems Technology
mst.htw-berlin.de http://mst.htw-berlin.de/


Re: Line break

2012-04-29 Thread paul sutton
On 29/04/12 19:23, Ahmed Halil wrote:
 Hello,

 I want to create a table as a float, but there's a problem I can't
 cope. I need to set a line break in a cell, because the table is quite
 to large for printing the page.

 Can you help me?

 Please, excuse my language.

 Ahmed


 -- 
 Ahmed Halil

 HTW Berlin - University of Applied Sciences
 Microsystems Technology
 mst.htw-berlin.de http://mst.htw-berlin.de/

Sorry didn't sned here,  I have asked on my local lug too,  can you add
pagebreak before the table so it appears on the same page.

Paul

-- 

--
http://www.zleap.net
http://www.ubuntu.com

skype : psutton111
http://www.linkedin.com/pub/paul-sutton/36/595/911



Re: Line break

2012-04-29 Thread paul sutton
On 29/04/12 21:21, Ahmed Halil wrote:
 Thanks a lot Paul, but I mean the width of the table.

 Ahmed

Ok i wonder if you can alter the page orientation for a single page so
for the page with the table on make it landscape

can anyone comment ?

Paul

 --
 Ahmed Halil

 HTW Berlin - University of Applied Sciences
 Microsystems Technology
 mst.htw-berlin.de http://mst.htw-berlin.de/

 Am 29.04.2012 20:43, schrieb paul sutton:
 On 29/04/12 19:23, Ahmed Halil wrote:
 Hello,

 I want to create a table as a float, but there's a problem I can't
 cope. I need to set a line break in a cell, because the table is quite
 to large for printing the page.

 Can you help me?

 Please, excuse my language.

 Ahmed


 -- 
 Ahmed Halil

 HTW Berlin - University of Applied Sciences
 Microsystems Technology
 mst.htw-berlin.de http://mst.htw-berlin.de/
 Can you add a pagebreak before the table so it appears on a page on its own

 Paul



-- 

--
http://www.zleap.net
http://www.ubuntu.com

skype : psutton111
http://www.linkedin.com/pub/paul-sutton/36/595/911



Line break

2012-04-29 Thread Ahmed Halil

Hello,

I want to create a table as a float, but there's a problem I can't cope. 
I need to set a line break in a cell, because the table is quite to 
large for printing the page.


Can you help me?

Please, excuse my language.

Ahmed


--
Ahmed Halil

HTW Berlin - University of Applied Sciences
Microsystems Technology
mst.htw-berlin.de <http://mst.htw-berlin.de/>


Re: Line break

2012-04-29 Thread paul sutton
On 29/04/12 19:23, Ahmed Halil wrote:
> Hello,
>
> I want to create a table as a float, but there's a problem I can't
> cope. I need to set a line break in a cell, because the table is quite
> to large for printing the page.
>
> Can you help me?
>
> Please, excuse my language.
>
> Ahmed
>
>
> -- 
> Ahmed Halil
>
> HTW Berlin - University of Applied Sciences
> Microsystems Technology
> mst.htw-berlin.de <http://mst.htw-berlin.de/>

Sorry didn't sned here,  I have asked on my local lug too,  can you add
pagebreak before the table so it appears on the same page.

Paul

-- 

--
http://www.zleap.net
http://www.ubuntu.com

skype : psutton111
http://www.linkedin.com/pub/paul-sutton/36/595/911



Re: Line break

2012-04-29 Thread paul sutton
On 29/04/12 21:21, Ahmed Halil wrote:
> Thanks a lot Paul, but I mean the width of the table.
>
> Ahmed
>
Ok i wonder if you can alter the page orientation for a single page so
for the page with the table on make it landscape

can anyone comment ?

Paul

> --
> Ahmed Halil
>
> HTW Berlin - University of Applied Sciences
> Microsystems Technology
> mst.htw-berlin.de <http://mst.htw-berlin.de/>
>
> Am 29.04.2012 20:43, schrieb paul sutton:
>> On 29/04/12 19:23, Ahmed Halil wrote:
>>> Hello,
>>>
>>> I want to create a table as a float, but there's a problem I can't
>>> cope. I need to set a line break in a cell, because the table is quite
>>> to large for printing the page.
>>>
>>> Can you help me?
>>>
>>> Please, excuse my language.
>>>
>>> Ahmed
>>>
>>>
>>> -- 
>>> Ahmed Halil
>>>
>>> HTW Berlin - University of Applied Sciences
>>> Microsystems Technology
>>> mst.htw-berlin.de <http://mst.htw-berlin.de/>
>> Can you add a pagebreak before the table so it appears on a page on its own
>>
>> Paul
>>


-- 

--
http://www.zleap.net
http://www.ubuntu.com

skype : psutton111
http://www.linkedin.com/pub/paul-sutton/36/595/911



Re: line break with extra space in equations, how?

2012-01-03 Thread Guenter Milde
On 2011-12-28, Bogdan wrote:
 On 28-Dec-11 6:04 pm, Richard Heck wrote:
 On 12/28/2011 12:49 PM, Richard Heck wrote:
 On 12/28/2011 10:00 AM, Bogdan wrote:

...

 It would be quite nice if LyX offered a feature to edit, say, the source 
 of a highlighted portion of text/math. That way, for any such 
 unsupported features like \\[10pt], I could just select text, edit lyx 
 source, a separate window/panel appears with the source, do my edits 
 there e.g. add \\[10pt], press done to go back to normal LyX view. I 
 know it looks like it defeats the purpose of LyX but would allow quick 
 workarounds of any troublesome situations.

 What do others think?

My suggestion is to allow dissolution of a math inset similar to other
insets (note, float, minipages and other boxes, etc.):
  
  if you place the cursor at the first position in the inset and press
  Backspace, the inset is replaced by its content.
  
For a math-inset, the content would be the LaTeX source. Then you could
toggle between source and math-inset quite easily.

Of course, an editable LaTeX source view would be the more generic and long
awaited solution - but far more hard to implement.

Günter



Re: line break with extra space in equations, how?

2012-01-03 Thread Guenter Milde
On 2011-12-28, Bogdan wrote:
 On 28-Dec-11 6:04 pm, Richard Heck wrote:
 On 12/28/2011 12:49 PM, Richard Heck wrote:
 On 12/28/2011 10:00 AM, Bogdan wrote:

...

 It would be quite nice if LyX offered a feature to edit, say, the source 
 of a highlighted portion of text/math. That way, for any such 
 unsupported features like \\[10pt], I could just select text, edit lyx 
 source, a separate window/panel appears with the source, do my edits 
 there e.g. add \\[10pt], press done to go back to normal LyX view. I 
 know it looks like it defeats the purpose of LyX but would allow quick 
 workarounds of any troublesome situations.

 What do others think?

My suggestion is to allow dissolution of a math inset similar to other
insets (note, float, minipages and other boxes, etc.):
  
  if you place the cursor at the first position in the inset and press
  Backspace, the inset is replaced by its content.
  
For a math-inset, the content would be the LaTeX source. Then you could
toggle between source and math-inset quite easily.

Of course, an editable LaTeX source view would be the more generic and long
awaited solution - but far more hard to implement.

Günter



Re: line break with extra space in equations, how?

2012-01-03 Thread Guenter Milde
On 2011-12-28, Bogdan wrote:
> On 28-Dec-11 6:04 pm, Richard Heck wrote:
>> On 12/28/2011 12:49 PM, Richard Heck wrote:
>>> On 12/28/2011 10:00 AM, Bogdan wrote:

...

> It would be quite nice if LyX offered a feature to edit, say, the source 
> of a highlighted portion of text/math. That way, for any such 
> unsupported features like \\[10pt], I could just select text, edit lyx 
> source, a separate window/panel appears with the source, do my edits 
> there e.g. add \\[10pt], press done to go back to normal LyX view. I 
> know it looks like it defeats the purpose of LyX but would allow quick 
> workarounds of any troublesome situations.

> What do others think?

My suggestion is to allow "dissolution" of a math inset similar to other
insets (note, float, minipages and other boxes, etc.):
  
  if you place the cursor at the first position in the inset and press
  Backspace, the inset is replaced by its content.
  
For a math-inset, the content would be the LaTeX source. Then you could
toggle between source and math-inset quite easily.

Of course, an editable LaTeX source view would be the more generic and long
awaited solution - but far more hard to implement.

Günter



line break with extra space in equations, how?

2011-12-28 Thread Bogdan

Hi all,

When editing plain .tex files I used to do this all the time to leave 
extra space between equation lines in, say, an align environment, e.g.:


\begin{align}
f(x) = \left(x^2\right)^n\\[10pt]
 = x^{2n}
\end{align}

Note the \\[10pt]

How do I do this (easily) in LyX? I notice that if I import a piece of 
plain .tex then LyX does preserve those extra spaces as I can see it in 
the source code, but I haven't yet managed to it directly in LyX.


Cheers,
Bogdan.



Re: line break with extra space in equations, how?

2011-12-28 Thread Richard Heck

On 12/28/2011 10:00 AM, Bogdan wrote:

Hi all,

When editing plain .tex files I used to do this all the time to leave 
extra space between equation lines in, say, an align environment, e.g.:


\begin{align}
f(x) = \left(x^2\right)^n\\[10pt]
= x^{2n}
\end{align}

Note the \\[10pt]

How do I do this (easily) in LyX? I notice that if I import a piece of 
plain .tex then LyX does preserve those extra spaces as I can see it 
in the source code, but I haven't yet managed to it directly in LyX.


This is weird. Type exactly that into LyX, as normal text (for some 
reason copy and paste is not working), then highlight it and hit Ctrl-M 
to make math. Not only will you see the space in the source but in LyX 
itself. But I cannot see how to modify it once it's there. So here's one 
way to do it that isn't too hard: Enter the equation as you normally 
would in LyX, without the extra space; when it is right, do ViewSource, 
copy the source of the equation, paste it into LyX as normal text; add 
the code for the extra space, and then highlight and hit Ctrl-M. Not 
ideal but it works.


Richard



Re: line break with extra space in equations, how?

2011-12-28 Thread Richard Heck

On 12/28/2011 12:49 PM, Richard Heck wrote:

On 12/28/2011 10:00 AM, Bogdan wrote:

Hi all,

When editing plain .tex files I used to do this all the time to leave 
extra space between equation lines in, say, an align environment, e.g.:


\begin{align}
f(x) = \left(x^2\right)^n\\[10pt]
= x^{2n}
\end{align}

Note the \\[10pt]

How do I do this (easily) in LyX? I notice that if I import a piece 
of plain .tex then LyX does preserve those extra spaces as I can see 
it in the source code, but I haven't yet managed to it directly in LyX.


This is weird. Type exactly that into LyX, as normal text (for some 
reason copy and paste is not working), then highlight it and hit 
Ctrl-M to make math. Not only will you see the space in the source but 
in LyX itself. But I cannot see how to modify it once it's there. So 
here's one way to do it that isn't too hard: Enter the equation as you 
normally would in LyX, without the extra space; when it is right, do 
ViewSource, copy the source of the equation, paste it into LyX as 
normal text; add the code for the extra space, and then highlight and 
hit Ctrl-M. Not ideal but it works.


I've looked into this, and there doesn't seem to be UI for setting this, 
or any way to enter it directly into a formula. Please feel free to file 
an enhancement request for this.


Richard



Re: line break with extra space in equations, how?

2011-12-28 Thread Bogdan

On 28-Dec-11 6:04 pm, Richard Heck wrote:

On 12/28/2011 12:49 PM, Richard Heck wrote:

On 12/28/2011 10:00 AM, Bogdan wrote:

Hi all,

When editing plain .tex files I used to do this all the time to leave
extra space between equation lines in, say, an align environment, e.g.:

\begin{align}
f(x) = \left(x^2\right)^n\\[10pt]
= x^{2n}
\end{align}

Note the \\[10pt]

How do I do this (easily) in LyX? I notice that if I import a piece
of plain .tex then LyX does preserve those extra spaces as I can see
it in the source code, but I haven't yet managed to it directly in LyX.


This is weird. Type exactly that into LyX, as normal text (for some
reason copy and paste is not working), then highlight it and hit
Ctrl-M to make math. Not only will you see the space in the source but
in LyX itself. But I cannot see how to modify it once it's there. So
here's one way to do it that isn't too hard: Enter the equation as you
normally would in LyX, without the extra space; when it is right, do
ViewSource, copy the source of the equation, paste it into LyX as
normal text; add the code for the extra space, and then highlight and
hit Ctrl-M. Not ideal but it works.


I've looked into this, and there doesn't seem to be UI for setting this,
or any way to enter it directly into a formula. Please feel free to file
an enhancement request for this.


Yes, I've already tried copy/paste or manual back and forth between 
plain text and ctrl-m. As you've discovered, once it's there, it's even 
more hassle to edit it. The whole procedure is more cumbersome than 
editing latex directly (which I take it LyX is trying to avoid).


Is there a way to edit the lyx source directly while in LyX? I know I 
can do it separately.


It would be quite nice if LyX offered a feature to edit, say, the source 
of a highlighted portion of text/math. That way, for any such 
unsupported features like \\[10pt], I could just select text, edit lyx 
source, a separate window/panel appears with the source, do my edits 
there e.g. add \\[10pt], press done to go back to normal LyX view. I 
know it looks like it defeats the purpose of LyX but would allow quick 
workarounds of any troublesome situations.


What do others think?

Bogdan.



Re: line break with extra space in equations, how?

2011-12-28 Thread Richard Heck

On 12/28/2011 03:31 PM, Bogdan wrote:

On 28-Dec-11 6:04 pm, Richard Heck wrote:

On 12/28/2011 12:49 PM, Richard Heck wrote:

On 12/28/2011 10:00 AM, Bogdan wrote:

Hi all,

When editing plain .tex files I used to do this all the time to leave
extra space between equation lines in, say, an align environment,
e.g.:

\begin{align}
f(x) = \left(x^2\right)^n\\[10pt]
= x^{2n}
\end{align}

Note the \\[10pt]

How do I do this (easily) in LyX? I notice that if I import a piece
of plain .tex then LyX does preserve those extra spaces as I can see
it in the source code, but I haven't yet managed to it directly in
LyX.


This is weird. Type exactly that into LyX, as normal text (for some
reason copy and paste is not working), then highlight it and hit
Ctrl-M to make math. Not only will you see the space in the source but
in LyX itself. But I cannot see how to modify it once it's there. So
here's one way to do it that isn't too hard: Enter the equation as you
normally would in LyX, without the extra space; when it is right, do
ViewSource, copy the source of the equation, paste it into LyX as
normal text; add the code for the extra space, and then highlight and
hit Ctrl-M. Not ideal but it works.


I've looked into this, and there doesn't seem to be UI for setting this,
or any way to enter it directly into a formula. Please feel free to file
an enhancement request for this.


Yes, I've already tried copy/paste or manual back and forth between
plain text and ctrl-m. As you've discovered, once it's there, it's
even more hassle to edit it. The whole procedure is more cumbersome
than editing latex directly (which I take it LyX is trying to avoid).



LyX doesn't natively support every TeX construct, so there will always 
be things like this.



Is there a way to edit the lyx source directly while in LyX? I know I
can do it separately.

It would be quite nice if LyX offered a feature to edit, say, the
source of a highlighted portion of text/math. That way, for any such
unsupported features like \\[10pt], I could just select text, edit lyx
source, a separate window/panel appears with the source, do my edits
there e.g. add \\[10pt], press done to go back to normal LyX view. I
know it looks like it defeats the purpose of LyX but would allow quick
workarounds of any troublesome situations.

What do others think?


For the math case, this actually wouldn't be that hard.

Richard




Re: line break with extra space in equations, how?

2011-12-28 Thread Bogdan

On 28-Dec-11 9:36 pm, Richard Heck wrote:

On 12/28/2011 03:31 PM, Bogdan wrote:

On 28-Dec-11 6:04 pm, Richard Heck wrote:

On 12/28/2011 12:49 PM, Richard Heck wrote:

On 12/28/2011 10:00 AM, Bogdan wrote:

Hi all,

When editing plain .tex files I used to do this all the time to leave
extra space between equation lines in, say, an align environment,
e.g.:

\begin{align}
f(x) = \left(x^2\right)^n\\[10pt]
= x^{2n}
\end{align}

Note the \\[10pt]

How do I do this (easily) in LyX? I notice that if I import a piece
of plain .tex then LyX does preserve those extra spaces as I can see
it in the source code, but I haven't yet managed to it directly in
LyX.


This is weird. Type exactly that into LyX, as normal text (for some
reason copy and paste is not working), then highlight it and hit
Ctrl-M to make math. Not only will you see the space in the source but
in LyX itself. But I cannot see how to modify it once it's there. So
here's one way to do it that isn't too hard: Enter the equation as you
normally would in LyX, without the extra space; when it is right, do
ViewSource, copy the source of the equation, paste it into LyX as
normal text; add the code for the extra space, and then highlight and
hit Ctrl-M. Not ideal but it works.


I've looked into this, and there doesn't seem to be UI for setting this,
or any way to enter it directly into a formula. Please feel free to file
an enhancement request for this.


Yes, I've already tried copy/paste or manual back and forth between
plain text and ctrl-m. As you've discovered, once it's there, it's
even more hassle to edit it. The whole procedure is more cumbersome
than editing latex directly (which I take it LyX is trying to avoid).



LyX doesn't natively support every TeX construct, so there will always
be things like this.


Is there a way to edit the lyx source directly while in LyX? I know I
can do it separately.

It would be quite nice if LyX offered a feature to edit, say, the
source of a highlighted portion of text/math. That way, for any such
unsupported features like \\[10pt], I could just select text, edit lyx
source, a separate window/panel appears with the source, do my edits
there e.g. add \\[10pt], press done to go back to normal LyX view. I
know it looks like it defeats the purpose of LyX but would allow quick
workarounds of any troublesome situations.

What do others think?


For the math case, this actually wouldn't be that hard.


I noticed that in my lyx documents, the lyx source is the same as the 
latex source for the math parts. It would be great to have a source 
panel editor available at hand, especially for maths which are the most 
problematic in my case.


Thanks for replying.

Bogdan.



line break with extra space in equations, how?

2011-12-28 Thread Bogdan

Hi all,

When editing plain .tex files I used to do this all the time to leave 
extra space between equation lines in, say, an align environment, e.g.:


\begin{align}
f(x) = \left(x^2\right)^n\\[10pt]
 = x^{2n}
\end{align}

Note the \\[10pt]

How do I do this (easily) in LyX? I notice that if I import a piece of 
plain .tex then LyX does preserve those extra spaces as I can see it in 
the source code, but I haven't yet managed to it directly in LyX.


Cheers,
Bogdan.



Re: line break with extra space in equations, how?

2011-12-28 Thread Richard Heck

On 12/28/2011 10:00 AM, Bogdan wrote:

Hi all,

When editing plain .tex files I used to do this all the time to leave 
extra space between equation lines in, say, an align environment, e.g.:


\begin{align}
f(x) = \left(x^2\right)^n\\[10pt]
= x^{2n}
\end{align}

Note the \\[10pt]

How do I do this (easily) in LyX? I notice that if I import a piece of 
plain .tex then LyX does preserve those extra spaces as I can see it 
in the source code, but I haven't yet managed to it directly in LyX.


This is weird. Type exactly that into LyX, as normal text (for some 
reason copy and paste is not working), then highlight it and hit Ctrl-M 
to make math. Not only will you see the space in the source but in LyX 
itself. But I cannot see how to modify it once it's there. So here's one 
way to do it that isn't too hard: Enter the equation as you normally 
would in LyX, without the extra space; when it is right, do ViewSource, 
copy the source of the equation, paste it into LyX as normal text; add 
the code for the extra space, and then highlight and hit Ctrl-M. Not 
ideal but it works.


Richard



Re: line break with extra space in equations, how?

2011-12-28 Thread Richard Heck

On 12/28/2011 12:49 PM, Richard Heck wrote:

On 12/28/2011 10:00 AM, Bogdan wrote:

Hi all,

When editing plain .tex files I used to do this all the time to leave 
extra space between equation lines in, say, an align environment, e.g.:


\begin{align}
f(x) = \left(x^2\right)^n\\[10pt]
= x^{2n}
\end{align}

Note the \\[10pt]

How do I do this (easily) in LyX? I notice that if I import a piece 
of plain .tex then LyX does preserve those extra spaces as I can see 
it in the source code, but I haven't yet managed to it directly in LyX.


This is weird. Type exactly that into LyX, as normal text (for some 
reason copy and paste is not working), then highlight it and hit 
Ctrl-M to make math. Not only will you see the space in the source but 
in LyX itself. But I cannot see how to modify it once it's there. So 
here's one way to do it that isn't too hard: Enter the equation as you 
normally would in LyX, without the extra space; when it is right, do 
ViewSource, copy the source of the equation, paste it into LyX as 
normal text; add the code for the extra space, and then highlight and 
hit Ctrl-M. Not ideal but it works.


I've looked into this, and there doesn't seem to be UI for setting this, 
or any way to enter it directly into a formula. Please feel free to file 
an enhancement request for this.


Richard



Re: line break with extra space in equations, how?

2011-12-28 Thread Bogdan

On 28-Dec-11 6:04 pm, Richard Heck wrote:

On 12/28/2011 12:49 PM, Richard Heck wrote:

On 12/28/2011 10:00 AM, Bogdan wrote:

Hi all,

When editing plain .tex files I used to do this all the time to leave
extra space between equation lines in, say, an align environment, e.g.:

\begin{align}
f(x) = \left(x^2\right)^n\\[10pt]
= x^{2n}
\end{align}

Note the \\[10pt]

How do I do this (easily) in LyX? I notice that if I import a piece
of plain .tex then LyX does preserve those extra spaces as I can see
it in the source code, but I haven't yet managed to it directly in LyX.


This is weird. Type exactly that into LyX, as normal text (for some
reason copy and paste is not working), then highlight it and hit
Ctrl-M to make math. Not only will you see the space in the source but
in LyX itself. But I cannot see how to modify it once it's there. So
here's one way to do it that isn't too hard: Enter the equation as you
normally would in LyX, without the extra space; when it is right, do
ViewSource, copy the source of the equation, paste it into LyX as
normal text; add the code for the extra space, and then highlight and
hit Ctrl-M. Not ideal but it works.


I've looked into this, and there doesn't seem to be UI for setting this,
or any way to enter it directly into a formula. Please feel free to file
an enhancement request for this.


Yes, I've already tried copy/paste or manual back and forth between 
plain text and ctrl-m. As you've discovered, once it's there, it's even 
more hassle to edit it. The whole procedure is more cumbersome than 
editing latex directly (which I take it LyX is trying to avoid).


Is there a way to edit the lyx source directly while in LyX? I know I 
can do it separately.


It would be quite nice if LyX offered a feature to edit, say, the source 
of a highlighted portion of text/math. That way, for any such 
unsupported features like \\[10pt], I could just select text, edit lyx 
source, a separate window/panel appears with the source, do my edits 
there e.g. add \\[10pt], press done to go back to normal LyX view. I 
know it looks like it defeats the purpose of LyX but would allow quick 
workarounds of any troublesome situations.


What do others think?

Bogdan.



Re: line break with extra space in equations, how?

2011-12-28 Thread Richard Heck

On 12/28/2011 03:31 PM, Bogdan wrote:

On 28-Dec-11 6:04 pm, Richard Heck wrote:

On 12/28/2011 12:49 PM, Richard Heck wrote:

On 12/28/2011 10:00 AM, Bogdan wrote:

Hi all,

When editing plain .tex files I used to do this all the time to leave
extra space between equation lines in, say, an align environment,
e.g.:

\begin{align}
f(x) = \left(x^2\right)^n\\[10pt]
= x^{2n}
\end{align}

Note the \\[10pt]

How do I do this (easily) in LyX? I notice that if I import a piece
of plain .tex then LyX does preserve those extra spaces as I can see
it in the source code, but I haven't yet managed to it directly in
LyX.


This is weird. Type exactly that into LyX, as normal text (for some
reason copy and paste is not working), then highlight it and hit
Ctrl-M to make math. Not only will you see the space in the source but
in LyX itself. But I cannot see how to modify it once it's there. So
here's one way to do it that isn't too hard: Enter the equation as you
normally would in LyX, without the extra space; when it is right, do
ViewSource, copy the source of the equation, paste it into LyX as
normal text; add the code for the extra space, and then highlight and
hit Ctrl-M. Not ideal but it works.


I've looked into this, and there doesn't seem to be UI for setting this,
or any way to enter it directly into a formula. Please feel free to file
an enhancement request for this.


Yes, I've already tried copy/paste or manual back and forth between
plain text and ctrl-m. As you've discovered, once it's there, it's
even more hassle to edit it. The whole procedure is more cumbersome
than editing latex directly (which I take it LyX is trying to avoid).



LyX doesn't natively support every TeX construct, so there will always 
be things like this.



Is there a way to edit the lyx source directly while in LyX? I know I
can do it separately.

It would be quite nice if LyX offered a feature to edit, say, the
source of a highlighted portion of text/math. That way, for any such
unsupported features like \\[10pt], I could just select text, edit lyx
source, a separate window/panel appears with the source, do my edits
there e.g. add \\[10pt], press done to go back to normal LyX view. I
know it looks like it defeats the purpose of LyX but would allow quick
workarounds of any troublesome situations.

What do others think?


For the math case, this actually wouldn't be that hard.

Richard




Re: line break with extra space in equations, how?

2011-12-28 Thread Bogdan

On 28-Dec-11 9:36 pm, Richard Heck wrote:

On 12/28/2011 03:31 PM, Bogdan wrote:

On 28-Dec-11 6:04 pm, Richard Heck wrote:

On 12/28/2011 12:49 PM, Richard Heck wrote:

On 12/28/2011 10:00 AM, Bogdan wrote:

Hi all,

When editing plain .tex files I used to do this all the time to leave
extra space between equation lines in, say, an align environment,
e.g.:

\begin{align}
f(x) = \left(x^2\right)^n\\[10pt]
= x^{2n}
\end{align}

Note the \\[10pt]

How do I do this (easily) in LyX? I notice that if I import a piece
of plain .tex then LyX does preserve those extra spaces as I can see
it in the source code, but I haven't yet managed to it directly in
LyX.


This is weird. Type exactly that into LyX, as normal text (for some
reason copy and paste is not working), then highlight it and hit
Ctrl-M to make math. Not only will you see the space in the source but
in LyX itself. But I cannot see how to modify it once it's there. So
here's one way to do it that isn't too hard: Enter the equation as you
normally would in LyX, without the extra space; when it is right, do
ViewSource, copy the source of the equation, paste it into LyX as
normal text; add the code for the extra space, and then highlight and
hit Ctrl-M. Not ideal but it works.


I've looked into this, and there doesn't seem to be UI for setting this,
or any way to enter it directly into a formula. Please feel free to file
an enhancement request for this.


Yes, I've already tried copy/paste or manual back and forth between
plain text and ctrl-m. As you've discovered, once it's there, it's
even more hassle to edit it. The whole procedure is more cumbersome
than editing latex directly (which I take it LyX is trying to avoid).



LyX doesn't natively support every TeX construct, so there will always
be things like this.


Is there a way to edit the lyx source directly while in LyX? I know I
can do it separately.

It would be quite nice if LyX offered a feature to edit, say, the
source of a highlighted portion of text/math. That way, for any such
unsupported features like \\[10pt], I could just select text, edit lyx
source, a separate window/panel appears with the source, do my edits
there e.g. add \\[10pt], press done to go back to normal LyX view. I
know it looks like it defeats the purpose of LyX but would allow quick
workarounds of any troublesome situations.

What do others think?


For the math case, this actually wouldn't be that hard.


I noticed that in my lyx documents, the lyx source is the same as the 
latex source for the math parts. It would be great to have a source 
panel editor available at hand, especially for maths which are the most 
problematic in my case.


Thanks for replying.

Bogdan.



line break with extra space in equations, how?

2011-12-28 Thread Bogdan

Hi all,

When editing plain .tex files I used to do this all the time to leave 
extra space between equation lines in, say, an align environment, e.g.:


\begin{align}
f(x) &= \left(x^2\right)^n\\[10pt]
 &= x^{2n}
\end{align}

Note the \\[10pt]

How do I do this (easily) in LyX? I notice that if I import a piece of 
plain .tex then LyX does preserve those extra spaces as I can see it in 
the source code, but I haven't yet managed to it directly in LyX.


Cheers,
Bogdan.



Re: line break with extra space in equations, how?

2011-12-28 Thread Richard Heck

On 12/28/2011 10:00 AM, Bogdan wrote:

Hi all,

When editing plain .tex files I used to do this all the time to leave 
extra space between equation lines in, say, an align environment, e.g.:


\begin{align}
f(x) &= \left(x^2\right)^n\\[10pt]
&= x^{2n}
\end{align}

Note the \\[10pt]

How do I do this (easily) in LyX? I notice that if I import a piece of 
plain .tex then LyX does preserve those extra spaces as I can see it 
in the source code, but I haven't yet managed to it directly in LyX.


This is weird. Type exactly that into LyX, as normal text (for some 
reason copy and paste is not working), then highlight it and hit Ctrl-M 
to make math. Not only will you see the space in the source but in LyX 
itself. But I cannot see how to modify it once it's there. So here's one 
way to do it that isn't too hard: Enter the equation as you normally 
would in LyX, without the extra space; when it is right, do View>Source, 
copy the source of the equation, paste it into LyX as normal text; add 
the code for the extra space, and then highlight and hit Ctrl-M. Not 
ideal but it works.


Richard



Re: line break with extra space in equations, how?

2011-12-28 Thread Richard Heck

On 12/28/2011 12:49 PM, Richard Heck wrote:

On 12/28/2011 10:00 AM, Bogdan wrote:

Hi all,

When editing plain .tex files I used to do this all the time to leave 
extra space between equation lines in, say, an align environment, e.g.:


\begin{align}
f(x) &= \left(x^2\right)^n\\[10pt]
&= x^{2n}
\end{align}

Note the \\[10pt]

How do I do this (easily) in LyX? I notice that if I import a piece 
of plain .tex then LyX does preserve those extra spaces as I can see 
it in the source code, but I haven't yet managed to it directly in LyX.


This is weird. Type exactly that into LyX, as normal text (for some 
reason copy and paste is not working), then highlight it and hit 
Ctrl-M to make math. Not only will you see the space in the source but 
in LyX itself. But I cannot see how to modify it once it's there. So 
here's one way to do it that isn't too hard: Enter the equation as you 
normally would in LyX, without the extra space; when it is right, do 
View>Source, copy the source of the equation, paste it into LyX as 
normal text; add the code for the extra space, and then highlight and 
hit Ctrl-M. Not ideal but it works.


I've looked into this, and there doesn't seem to be UI for setting this, 
or any way to enter it directly into a formula. Please feel free to file 
an enhancement request for this.


Richard



Re: line break with extra space in equations, how?

2011-12-28 Thread Bogdan

On 28-Dec-11 6:04 pm, Richard Heck wrote:

On 12/28/2011 12:49 PM, Richard Heck wrote:

On 12/28/2011 10:00 AM, Bogdan wrote:

Hi all,

When editing plain .tex files I used to do this all the time to leave
extra space between equation lines in, say, an align environment, e.g.:

\begin{align}
f(x) &= \left(x^2\right)^n\\[10pt]
&= x^{2n}
\end{align}

Note the \\[10pt]

How do I do this (easily) in LyX? I notice that if I import a piece
of plain .tex then LyX does preserve those extra spaces as I can see
it in the source code, but I haven't yet managed to it directly in LyX.


This is weird. Type exactly that into LyX, as normal text (for some
reason copy and paste is not working), then highlight it and hit
Ctrl-M to make math. Not only will you see the space in the source but
in LyX itself. But I cannot see how to modify it once it's there. So
here's one way to do it that isn't too hard: Enter the equation as you
normally would in LyX, without the extra space; when it is right, do
View>Source, copy the source of the equation, paste it into LyX as
normal text; add the code for the extra space, and then highlight and
hit Ctrl-M. Not ideal but it works.


I've looked into this, and there doesn't seem to be UI for setting this,
or any way to enter it directly into a formula. Please feel free to file
an enhancement request for this.


Yes, I've already tried copy/paste or manual back and forth between 
plain text and ctrl-m. As you've discovered, once it's there, it's even 
more hassle to edit it. The whole procedure is more cumbersome than 
editing latex directly (which I take it LyX is trying to avoid).


Is there a way to edit the lyx source directly while in LyX? I know I 
can do it separately.


It would be quite nice if LyX offered a feature to edit, say, the source 
of a highlighted portion of text/math. That way, for any such 
unsupported features like \\[10pt], I could just select text, edit lyx 
source, a separate window/panel appears with the source, do my edits 
there e.g. add \\[10pt], press done to go back to normal LyX view. I 
know it looks like it defeats the purpose of LyX but would allow quick 
workarounds of any troublesome situations.


What do others think?

Bogdan.



Re: line break with extra space in equations, how?

2011-12-28 Thread Richard Heck

On 12/28/2011 03:31 PM, Bogdan wrote:

On 28-Dec-11 6:04 pm, Richard Heck wrote:

On 12/28/2011 12:49 PM, Richard Heck wrote:

On 12/28/2011 10:00 AM, Bogdan wrote:

Hi all,

When editing plain .tex files I used to do this all the time to leave
extra space between equation lines in, say, an align environment,
e.g.:

\begin{align}
f(x) &= \left(x^2\right)^n\\[10pt]
&= x^{2n}
\end{align}

Note the \\[10pt]

How do I do this (easily) in LyX? I notice that if I import a piece
of plain .tex then LyX does preserve those extra spaces as I can see
it in the source code, but I haven't yet managed to it directly in
LyX.


This is weird. Type exactly that into LyX, as normal text (for some
reason copy and paste is not working), then highlight it and hit
Ctrl-M to make math. Not only will you see the space in the source but
in LyX itself. But I cannot see how to modify it once it's there. So
here's one way to do it that isn't too hard: Enter the equation as you
normally would in LyX, without the extra space; when it is right, do
View>Source, copy the source of the equation, paste it into LyX as
normal text; add the code for the extra space, and then highlight and
hit Ctrl-M. Not ideal but it works.


I've looked into this, and there doesn't seem to be UI for setting this,
or any way to enter it directly into a formula. Please feel free to file
an enhancement request for this.


Yes, I've already tried copy/paste or manual back and forth between
plain text and ctrl-m. As you've discovered, once it's there, it's
even more hassle to edit it. The whole procedure is more cumbersome
than editing latex directly (which I take it LyX is trying to avoid).



LyX doesn't natively support every TeX construct, so there will always 
be things like this.



Is there a way to edit the lyx source directly while in LyX? I know I
can do it separately.

It would be quite nice if LyX offered a feature to edit, say, the
source of a highlighted portion of text/math. That way, for any such
unsupported features like \\[10pt], I could just select text, edit lyx
source, a separate window/panel appears with the source, do my edits
there e.g. add \\[10pt], press done to go back to normal LyX view. I
know it looks like it defeats the purpose of LyX but would allow quick
workarounds of any troublesome situations.

What do others think?


For the math case, this actually wouldn't be that hard.

Richard




Re: line break with extra space in equations, how?

2011-12-28 Thread Bogdan

On 28-Dec-11 9:36 pm, Richard Heck wrote:

On 12/28/2011 03:31 PM, Bogdan wrote:

On 28-Dec-11 6:04 pm, Richard Heck wrote:

On 12/28/2011 12:49 PM, Richard Heck wrote:

On 12/28/2011 10:00 AM, Bogdan wrote:

Hi all,

When editing plain .tex files I used to do this all the time to leave
extra space between equation lines in, say, an align environment,
e.g.:

\begin{align}
f(x) &= \left(x^2\right)^n\\[10pt]
&= x^{2n}
\end{align}

Note the \\[10pt]

How do I do this (easily) in LyX? I notice that if I import a piece
of plain .tex then LyX does preserve those extra spaces as I can see
it in the source code, but I haven't yet managed to it directly in
LyX.


This is weird. Type exactly that into LyX, as normal text (for some
reason copy and paste is not working), then highlight it and hit
Ctrl-M to make math. Not only will you see the space in the source but
in LyX itself. But I cannot see how to modify it once it's there. So
here's one way to do it that isn't too hard: Enter the equation as you
normally would in LyX, without the extra space; when it is right, do
View>Source, copy the source of the equation, paste it into LyX as
normal text; add the code for the extra space, and then highlight and
hit Ctrl-M. Not ideal but it works.


I've looked into this, and there doesn't seem to be UI for setting this,
or any way to enter it directly into a formula. Please feel free to file
an enhancement request for this.


Yes, I've already tried copy/paste or manual back and forth between
plain text and ctrl-m. As you've discovered, once it's there, it's
even more hassle to edit it. The whole procedure is more cumbersome
than editing latex directly (which I take it LyX is trying to avoid).



LyX doesn't natively support every TeX construct, so there will always
be things like this.


Is there a way to edit the lyx source directly while in LyX? I know I
can do it separately.

It would be quite nice if LyX offered a feature to edit, say, the
source of a highlighted portion of text/math. That way, for any such
unsupported features like \\[10pt], I could just select text, edit lyx
source, a separate window/panel appears with the source, do my edits
there e.g. add \\[10pt], press done to go back to normal LyX view. I
know it looks like it defeats the purpose of LyX but would allow quick
workarounds of any troublesome situations.

What do others think?


For the math case, this actually wouldn't be that hard.


I noticed that in my lyx documents, the lyx source is the same as the 
latex source for the math parts. It would be great to have a source 
panel editor available at hand, especially for maths which are the most 
problematic in my case.


Thanks for replying.

Bogdan.



line break in math mode

2011-10-07 Thread Mike Bonhoff
Hi all,

I'm wondering how to make a line break in the discharged math mode. I tried
it with Strg+Enter but then there where 3 new boxes in the new line. It
looked like the eqnarray-environment-boxes and it didn't work fine:

It should look similar to this:
f(x)={z\in Z:there is an y\in Y and functions g,h\in F
  such that g(x)=y and h(y)=z}

But at the moment (with Strg+Enter) it looks like
   f(x)={z\in Z:there is an y\in Y and functions g,h\in
F
such that g(x)=y and h(y)=z}

Does anybody know how to do this.

Thanks!


Re: line break in math mode

2011-10-07 Thread Liviu Andronic
On Fri, Oct 7, 2011 at 5:50 PM, Mike Bonhoff lyx@googlemail.com wrote:
 Hi all,

 I'm wondering how to make a line break in the discharged math mode. I tried
 it with Strg+Enter but then there where 3 new boxes in the new line. It
 looked like the eqnarray-environment-boxes and it didn't work fine:

 It should look similar to this:
 f(x)={z\in Z:there is an y\in Y and functions g,h\in F
   such that g(x)=y and h(y)=z}

 But at the moment (with Strg+Enter) it looks like
    f(x)={z\in Z:there is an y\in Y and functions g,h\in
 F
 such that g(x)=y and h(y)=z}

 Does anybody know how to do this.

Please check Help  Math  Section 18.

Liviu


 Thanks!





-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


line break in math mode

2011-10-07 Thread Mike Bonhoff
Hi all,

I'm wondering how to make a line break in the discharged math mode. I tried
it with Strg+Enter but then there where 3 new boxes in the new line. It
looked like the eqnarray-environment-boxes and it didn't work fine:

It should look similar to this:
f(x)={z\in Z:there is an y\in Y and functions g,h\in F
  such that g(x)=y and h(y)=z}

But at the moment (with Strg+Enter) it looks like
   f(x)={z\in Z:there is an y\in Y and functions g,h\in
F
such that g(x)=y and h(y)=z}

Does anybody know how to do this.

Thanks!


Re: line break in math mode

2011-10-07 Thread Liviu Andronic
On Fri, Oct 7, 2011 at 5:50 PM, Mike Bonhoff lyx@googlemail.com wrote:
 Hi all,

 I'm wondering how to make a line break in the discharged math mode. I tried
 it with Strg+Enter but then there where 3 new boxes in the new line. It
 looked like the eqnarray-environment-boxes and it didn't work fine:

 It should look similar to this:
 f(x)={z\in Z:there is an y\in Y and functions g,h\in F
   such that g(x)=y and h(y)=z}

 But at the moment (with Strg+Enter) it looks like
    f(x)={z\in Z:there is an y\in Y and functions g,h\in
 F
 such that g(x)=y and h(y)=z}

 Does anybody know how to do this.

Please check Help  Math  Section 18.

Liviu


 Thanks!





-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


  1   2   3   >