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


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


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: 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  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

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-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  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-08-28 Thread stefano franchi
On Thu, Aug 28, 2014 at 11:19 AM, Richard Heck  wrote:

>  On 08/28/2014 11:43 AM, stefano franchi wrote:
>
>
>
>
> On Thu, Aug 28, 2014 at 6: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.
>>
>>
>
>  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 
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 <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 6: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.
>
>

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 
http://stefano.cleinias.org


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



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: 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&M 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-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&M 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
> 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 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


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&M University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

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


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  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: 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



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: 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-29 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-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

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



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 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?

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.



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 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 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 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



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 in math mode

2011-10-07 Thread Liviu Andronic
On Fri, Oct 7, 2011 at 5:50 PM, Mike Bonhoff  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!


AW: marginal note: line break & font size?

2010-12-31 Thread Jannick Asmus

stephen's mailinglist account wrote:

is it possible to change the font size of marginal notes


I use the following code in my preamble so I can use a smaller font,
sans serif to distinguish it further from the main body of text and
ragged right because I think a very narrow column can look odd
justified. In this case it was blue too.


\let\oldmarginpar\marginpar
\renewcommand\marginpar[1]
{\-\oldmarginpar[\color{blue}\sffamily\raggedleft\scriptsize #1]%
{\color{blue}\sffamily\raggedright\scriptsize #1}}


Thanks a lot. It works pretty well.

Does anyone has any idea how to tackle the line break problem, since the 
margins are not too wide (using article (KOMA))?


/J. 





Re: marginal note: line break & font size?

2010-12-31 Thread stephen's mailinglist account
> is it possible to change the font size of marginal notes

I use the following code in my preamble so I can use a smaller font,
sans serif to distinguish it further from the main body of text and
ragged right because I think a very narrow column can look odd
justified. In this case it was blue too.


\let\oldmarginpar\marginpar
\renewcommand\marginpar[1]
{\-\oldmarginpar[\color{blue}\sffamily\raggedleft\scriptsize #1]%
{\color{blue}\sffamily\raggedright\scriptsize #1}}

built in font sizes

\tiny
\scriptsize
\footnotesize
\small
\normalsize
\large
\Large
\LARGE
\huge
\Huge
-- 
Stephen


marginal note: line break & font size?

2010-12-30 Thread Jannick Asmus

Hi,

is it possible to change the font size of marginal notes and enforcing 
line breaks (as I have longer comments which are printed into the 
nirvana in my pdf)? Using LyX 2.0b1 on WinVista.


Thanks for your input.

Best wishes for 2011,
J. 





Re: need in-text citations to line-break!

2010-10-18 Thread Julien Rioux

On 16/10/2010 4:09 AM, Lea Rennert wrote:

That was a good suggestion. I went back and checked, and the problem
seems to appear in cases with more than one author. In fact, in those
cases, instead of just giving "Mishel et al.(2009)", the in-text
citation reads "Mishel et al.(2009)Mishel, Bernstein, and Shierholz",
which of course is not how it should be. I will see if I can tweek my
bib file and experiment with other styles. If you have any other
suggestions, please tell me.
Thank you!
Lea


What you describe seems like a symptom of using a natbib-based style 
file without specifying the use of natbib in the document properties:

Under "Document > Settings > Bibliography", Natbib should be checked.

--
Julien



Re: need in-text citations to line-break!

2010-10-16 Thread Lea Rennert
That was a good suggestion. I went back and checked, and the problem
seems to appear in cases with more than one author. In fact, in those
cases, instead of just giving "Mishel et al.(2009)", the in-text
citation reads "Mishel et al.(2009)Mishel, Bernstein, and Shierholz",
which of course is not how it should be. I will see if I can tweek my
bib file and experiment with other styles. If you have any other
suggestions, please tell me.
Thank you!
Lea

On Fri, Oct 15, 2010 at 2:19 PM, Richard Heck  wrote:
> On 10/15/2010 04:55 AM, Lea Rennert wrote:
>>
>> Hi,
>>
>> I am working with Lyx 1.6.2 on windows, and I am writing my thesis in
>> the book (KOMA-script) - class. I inserted my citations with Citavi,
>> but I think that should not matter - I have a .bib file for the
>> Bibliography (natbib-style) that I loaded. My bibliography works fine,
>> and lyx cites the right sources, but if the short title for a source
>> is long, then my in-text citations don't do a line break in my output
>> file. Instead, they just continue towards the right side of the page
>> up to the edge (and the rest is lost). What can I do?
>>
>> Of course, this comes at the last minute and my deadline is in two
>> days... I would really appreciate some help on this! Please tell me if
>> you need more information about my file.
>>
>>
>
> Does this happen in all cases, or only in some? Have you tried using a
> different citation style, to see if that makes a difference?
>
> Richard
>
>


Re: need in-text citations to line-break!

2010-10-15 Thread Julien Rioux

On 15/10/2010 4:55 AM, Lea Rennert wrote:

Hi,

I am working with Lyx 1.6.2 on windows, and I am writing my thesis in
the book (KOMA-script) - class. I inserted my citations with Citavi,
but I think that should not matter - I have a .bib file for the
Bibliography (natbib-style) that I loaded. My bibliography works fine,
and lyx cites the right sources, but if the short title for a source
is long, then my in-text citations don't do a line break in my output
file. Instead, they just continue towards the right side of the page
up to the edge (and the rest is lost). What can I do?

Of course, this comes at the last minute and my deadline is in two
days... I would really appreciate some help on this! Please tell me if
you need more information about my file.

Thank you!
Lea



Try disabling the use of hyperref. For this, use the menu "Document > 
Settings > PDF Properties" and uncheck the "Use hyperref support"


If this works then the problem was that hyperref turns your inline 
citations into hyperlinks. You could try the hyperref option "Break 
links over lines" if you do not want to disable hyperref altogether.


--
Julien



Re: need in-text citations to line-break!

2010-10-15 Thread Paul A. Rubin

On 10/15/2010 4:55 AM, Lea Rennert wrote:


I am working with Lyx 1.6.2 on windows, and I am writing my thesis in
the book (KOMA-script) - class. I inserted my citations with Citavi,
but I think that should not matter - I have a .bib file for the
Bibliography (natbib-style) that I loaded. My bibliography works fine,
and lyx cites the right sources, but if the short title for a source
is long, then my in-text citations don't do a line break in my output
file. Instead, they just continue towards the right side of the page
up to the edge (and the rest is lost). What can I do?

Of course, this comes at the last minute and my deadline is in two
days... I would really appreciate some help on this! Please tell me if
you need more information about my file.



Try loading the cite package (\usepackage{cite} in the preamble).

/Paul



Re: need in-text citations to line-break!

2010-10-15 Thread Richard Heck

On 10/15/2010 04:55 AM, Lea Rennert wrote:

Hi,

I am working with Lyx 1.6.2 on windows, and I am writing my thesis in
the book (KOMA-script) - class. I inserted my citations with Citavi,
but I think that should not matter - I have a .bib file for the
Bibliography (natbib-style) that I loaded. My bibliography works fine,
and lyx cites the right sources, but if the short title for a source
is long, then my in-text citations don't do a line break in my output
file. Instead, they just continue towards the right side of the page
up to the edge (and the rest is lost). What can I do?

Of course, this comes at the last minute and my deadline is in two
days... I would really appreciate some help on this! Please tell me if
you need more information about my file.

   
Does this happen in all cases, or only in some? Have you tried using a 
different citation style, to see if that makes a difference?


Richard



need in-text citations to line-break!

2010-10-15 Thread Lea Rennert
Hi,

I am working with Lyx 1.6.2 on windows, and I am writing my thesis in
the book (KOMA-script) - class. I inserted my citations with Citavi,
but I think that should not matter - I have a .bib file for the
Bibliography (natbib-style) that I loaded. My bibliography works fine,
and lyx cites the right sources, but if the short title for a source
is long, then my in-text citations don't do a line break in my output
file. Instead, they just continue towards the right side of the page
up to the edge (and the rest is lost). What can I do?

Of course, this comes at the last minute and my deadline is in two
days... I would really appreciate some help on this! Please tell me if
you need more information about my file.

Thank you!
Lea


Weird space after Justified line break.

2009-10-27 Thread Piero
Hello,

I use report-koma class with LyX 1.6.4
Some of my quotations are just the prolonging phrase I began in mine words.
To make an example, this is what a guy called "a very elegant way of quoting".
 For longer quotations in a separate quotation enviroment,
 I would like to do the same
 but if the last line of standard enviroment text is not 
justified, it will become definitely not elegant.
That's the reason I tried to use "Justified line break"
at the end of last line of standard environment,
 which sometimes works well (sometimes it simple doesn't 
work at all, leaving a single word in the last line)
but always - and this is today's issue -
add an unwanted additional space between the 2 environments.
In the LaTeX preview it doesn't show any additional space,
 so maybe it is a LaTeX issue.
Is there a manner to regain this extra space (maybe insert a negative space?)
One more question: how can I anyway reduce space
 between standard and quotation 
enviroments? (there's too much space, sometimes)
And how to have the Justified LB always work without
 leaving single words or even 
single hyphenated pieces of word in the very last line?

Thanks all!



Re: line break in numbered paragragh

2009-06-02 Thread rgheck

Semih Özmen wrote:

Hi people,

I am trying to wirte my thesis on lyx by using a supplied latex class. It is 
working quite weill with the lyx.However today I faced with a small problem. I 
needed a third level numbered section...subsubsubsection.

then I enabled paragraph numbering from Document->Settings->Numbering..
however now lyx the following output

1.1.1.1.1 TITLE (a small distance here) bla bla bla bla 
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla 


I need to give a line break after TITLE. I tried ragged break but it is not 
working through this paragraph..What can I do??

  
I think you could put some sort of blank (e.g., just a blank ERT) and 
then do the line break. But a better solution is to customize the 
appearance of Paragraph using something like the titlesec package (or 
the facility provided by koma-script, if you're using those classes).


rh




line break in numbered paragragh

2009-06-02 Thread Semih Özmen
Hi people,

I am trying to wirte my thesis on lyx by using a supplied latex class. It is 
working quite weill with the lyx.However today I faced with a small problem. I 
needed a third level numbered section...subsubsubsection.
then I enabled paragraph numbering from Document->Settings->Numbering..
however now lyx the following output

1.1.1.1.1 TITLE (a small distance here) bla bla bla bla 
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla 

I need to give a line break after TITLE. I tried ragged break but it is not 
working through this paragraph..What can I do??


Re: LyX 1.6 line break in math formula

2008-11-20 Thread Paul A. Rubin

William Seager wrote:

On November 19, 2008 11:44:46 Paul A. Rubin wrote:

Amir Rachum wrote:

Hello,
I recently installed the new LyX 1.6 over windows XP and I can't seem to
successfully linebreak inside math formulas. In the previous versions,
this was done with C-Enter, but now I don't know how to do it. I tried
looking in the new shortcuts menu in the prefrences window but I didn't
find anything useful. I would appreciate your help.

C-Enter is working as usual for me (LyX 1.6.0-1, Win XP).

In the shortcuts menu, try searching on Ctrl+Return.  In the CUA
binding, at least, it's bound to newline-insert newline.  Are you maybe
using a customized binding file?  You might also try opening the
minibuffer (Alt-x) and, with the cursor in a math inset, type
newline-insert newline in the minibuffer and hit return.  It should add
a new line to the math formula.

/Paul


C-Enter works in ordinary text for me, but in a math formula it shifts the 
whole formula down one line rather than breaking the line (I am using

1.6 on linux by the way). (As a workaround that might be of use, add
this to your document preamble: "\newcommand{\bb}{\\}" and then
use \bb to break your math formulas - this does seem to have some
weird formatting side effects under some conditions however.)



I don't reproduce this.  For me, C-Enter in a math inset breaks the line 
at the cursor location and shifts anything right of the cursor down.  So 
if the cursosr is at the end of the formula in a single-line math inset, 
or at the end of a row in a multiline formula, an empty line is inserted 
below the cursor but anything left of the cursor stays put.


/Paul



Re: LyX 1.6 line break in math formula

2008-11-19 Thread William Seager
On November 19, 2008 11:44:46 Paul A. Rubin wrote:
> Amir Rachum wrote:
> > Hello,
> > I recently installed the new LyX 1.6 over windows XP and I can't seem to
> > successfully linebreak inside math formulas. In the previous versions,
> > this was done with C-Enter, but now I don't know how to do it. I tried
> > looking in the new shortcuts menu in the prefrences window but I didn't
> > find anything useful. I would appreciate your help.
>
> C-Enter is working as usual for me (LyX 1.6.0-1, Win XP).
>
> In the shortcuts menu, try searching on Ctrl+Return.  In the CUA
> binding, at least, it's bound to newline-insert newline.  Are you maybe
> using a customized binding file?  You might also try opening the
> minibuffer (Alt-x) and, with the cursor in a math inset, type
> newline-insert newline in the minibuffer and hit return.  It should add
> a new line to the math formula.
>
> /Paul

C-Enter works in ordinary text for me, but in a math formula it shifts the 
whole formula down one line rather than breaking the line (I am using
1.6 on linux by the way). (As a workaround that might be of use, add
this to your document preamble: "\newcommand{\bb}{\\}" and then
use \bb to break your math formulas - this does seem to have some
weird formatting side effects under some conditions however.)

-- 
William Seager
University of Toronto Scarborough
www.utsc.utoronto.ca/~seager


Re: LyX 1.6 line break in math formula

2008-11-19 Thread Paul A. Rubin

Amir Rachum wrote:

Hello,
I recently installed the new LyX 1.6 over windows XP and I can't seem to
successfully linebreak inside math formulas. In the previous versions, this
was done with C-Enter, but now I don't know how to do it. I tried looking in
the new shortcuts menu in the prefrences window but I didn't find anything
useful. I would appreciate your help.



C-Enter is working as usual for me (LyX 1.6.0-1, Win XP).

In the shortcuts menu, try searching on Ctrl+Return.  In the CUA 
binding, at least, it's bound to newline-insert newline.  Are you maybe 
using a customized binding file?  You might also try opening the 
minibuffer (Alt-x) and, with the cursor in a math inset, type 
newline-insert newline in the minibuffer and hit return.  It should add 
a new line to the math formula.


/Paul



LyX 1.6 line break in math formula

2008-11-19 Thread Amir Rachum
Hello,
I recently installed the new LyX 1.6 over windows XP and I can't seem to
successfully linebreak inside math formulas. In the previous versions, this
was done with C-Enter, but now I don't know how to do it. I tried looking in
the new shortcuts menu in the prefrences window but I didn't find anything
useful. I would appreciate your help.

Thanks

-- 
Amir Rachum


Re: howto insert line break in inline formula

2008-06-13 Thread Paul A. Rubin

William Seager wrote:

On June 13, 2008 14:20:28 William Seager wrote:

Hi all. Can't seem to find the answer to this one.
As the subject, I have some long in-line formulas
that go over the margin. How do I insert a line
break into an in-line formula?
Bill.


sorry - I should have looked harder. The answer is
in a very old post here. In the preamble, add

\newcommand{bb}{\\}

then you can just type \bb in the formula
and the line breaks.

Lyx doesn't justify the formula before the break however,
which would be ideal




You might want to consider the AMS multiline environment or the split 
environment.  Better still, get Herbert Voss's excellent Mathmode 
document 
(http://www.ctan.org/tex-archive/info/math/voss/mathmode/Mathmode.pdf) 
and see all the different AMS equation environments (most if not all of 
which LyX supports), and see how they align things.


/Paul



Re: howto insert line break in inline formula

2008-06-13 Thread William Seager
On June 13, 2008 14:20:28 William Seager wrote:
> Hi all. Can't seem to find the answer to this one.
> As the subject, I have some long in-line formulas
> that go over the margin. How do I insert a line
> break into an in-line formula?
> Bill.

sorry - I should have looked harder. The answer is
in a very old post here. In the preamble, add

\newcommand{bb}{\\}

then you can just type \bb in the formula
and the line breaks.

Lyx doesn't justify the formula before the break however,
which would be ideal


-- 
William Seager
University of Toronto Scarborough
www.utsc.utoronto.ca/~seager


howto insert line break in inline formula

2008-06-13 Thread William Seager
Hi all. Can't seem to find the answer to this one.
As the subject, I have some long in-line formulas
that go over the margin. How do I insert a line
break into an in-line formula?
Bill.
-- 
William Seager
University of Toronto Scarborough
www.utsc.utoronto.ca/~seager


Re: Line break

2007-06-20 Thread Nicolás

2. Type it in like this:
Text1
Menu insert->Tex-Code
%
right arrow
ctrl+enter
Text2

On the screen you get
Text1ERT%
Text2

Basically, you have a forced linebreak that is commented out so latex
don't see it. LyX still display it, because LyX don't try to understand 
what

you put inside an ERT box. In this case, a comment character
that invalidates the rest of that line.  And the rest of the line
is the linebreak character. :-)

Helge Hafting



Excellent trick! That's what I needed.

Tusen takk Helge! :-)


Cheers,
Nicolás


Re: Line break

2007-06-20 Thread Helge Hafting

Nicolás wrote:

Hi!

Is there any way of having a line-break in LyX that is not translated 
into a line-break in the latex document? That is, I would like to see 
this in LyX:


Text1
Text2

An this in Latex:
Text1Text2

Two ways:

1. Resize the window so narrow that LyX is forced to break it like that.
   Probably not what you want though!


2. Type it in like this:
Text1
Menu insert->Tex-Code
%
right arrow
ctrl+enter
Text2

On the screen you get
Text1ERT%
Text2

Basically, you have a forced linebreak that is commented out so latex
don't see it. LyX still display it, because LyX don't try to understand what
you put inside an ERT box. In this case, a comment character
that invalidates the rest of that line.  And the rest of the line
is the linebreak character. :-)

Helge Hafting






Re: Line break

2007-06-20 Thread Nicolás

Uwe Stöhr wrote:

Nicolás schrieb:

Is there any way of having a line-break in LyX that is not translated 
into a line-break in the latex document?


No.


That is, I would like to see this in LyX:

Text1
Text2

An this in Latex:
Text1Text2


Why, this is not WYSIWYM?



Right! I know. But it has to be with with my way of using algorithm2e in LyX. This package complains sometimes when I write the 
algorithm code in different lines. However, it is easier for me to understand what I am writing if I organize it in different lines.


Nicolás


Re: Line break

2007-06-20 Thread Uwe Stöhr

Nicolás schrieb:

Is there any way of having a line-break in LyX that is not translated 
into a line-break in the latex document?


No.

That is, I would like to see 
this in LyX:


Text1
Text2

An this in Latex:
Text1Text2


Why, this is not WYSIWYM?

regards Uwe


Line break

2007-06-20 Thread Nicolás

Hi!

Is there any way of having a line-break in LyX that is not translated into a line-break in the latex document? That is, I would like to 
see this in LyX:


Text1
Text2

An this in Latex:
Text1Text2

Cheers,
Nicolás


Re: line break or wrapping text in tabular

2007-06-14 Thread Paul A. Rubin

Jeremy C. Reed wrote:

On Wed, 13 Jun 2007, Kenward Vaughan wrote:


On Wed, 2007-06-13 at 20:20 -0500, Jeremy C. Reed wrote:

I see several pages mentioning about line breaks within a tabular.

I have tables where I have a lot of text in a cell so then the tabnle is 
wider than my printed page.


How can I get that text to wrap automatically?

Or by manually putting in line breaks?

  Jeremy C. Reed

Hi Jeremy,

The quick way to do this is to set the width of that particular column
to a fixed amount.  Right click on the column in question, and in the
dialog box enter a value.  Be sure to hit the Enter key to register the
value.


Thanks.

Also can anyone point me to a webpage or document (maybe already on my 
system included with teTeX install) that documents the "tabular" features. 
Googling for it doesn't give me a lot. Or can't find correct search terms.


For example, I want to know what ">" greater-than is for in the tabular.

\begin{tabular}{|c|c|>{\centering}p{2in}|}

And what {\centering} is for.

I know what | and c and p (for paragraph) are for.

A couple please have pointed to some LaTeX docs lately -- I need to look 
at them. 


  Jeremy C. Reed



You might have a look at 
http://www.uic.edu/depts/accc/software/tex/array.pdf, particularly Table 
1.  It's labeled a preliminary draft (from 1991), but my untrained eye 
didn't spot anything in Table 1 that seemed wrong.


/Paul




Re: line break or wrapping text in tabular

2007-06-13 Thread Jeremy C. Reed
On Wed, 13 Jun 2007, Kenward Vaughan wrote:

> On Wed, 2007-06-13 at 20:20 -0500, Jeremy C. Reed wrote:
> > I see several pages mentioning about line breaks within a tabular.
> > 
> > I have tables where I have a lot of text in a cell so then the tabnle is 
> > wider than my printed page.
> > 
> > How can I get that text to wrap automatically?
> > 
> > Or by manually putting in line breaks?
> > 
> >   Jeremy C. Reed
> 
> Hi Jeremy,
> 
> The quick way to do this is to set the width of that particular column
> to a fixed amount.  Right click on the column in question, and in the
> dialog box enter a value.  Be sure to hit the Enter key to register the
> value.

Thanks.

Also can anyone point me to a webpage or document (maybe already on my 
system included with teTeX install) that documents the "tabular" features. 
Googling for it doesn't give me a lot. Or can't find correct search terms.

For example, I want to know what ">" greater-than is for in the tabular.

\begin{tabular}{|c|c|>{\centering}p{2in}|}

And what {\centering} is for.

I know what | and c and p (for paragraph) are for.

A couple please have pointed to some LaTeX docs lately -- I need to look 
at them. 

  Jeremy C. Reed


Re: line break or wrapping text in tabular

2007-06-13 Thread Kenward Vaughan
On Wed, 2007-06-13 at 20:20 -0500, Jeremy C. Reed wrote:
> I see several pages mentioning about line breaks within a tabular.
> 
> I have tables where I have a lot of text in a cell so then the tabnle is 
> wider than my printed page.
> 
> How can I get that text to wrap automatically?
> 
> Or by manually putting in line breaks?
> 
>   Jeremy C. Reed

Hi Jeremy,

The quick way to do this is to set the width of that particular column
to a fixed amount.  Right click on the column in question, and in the
dialog box enter a value.  Be sure to hit the Enter key to register the
value.


Kenward
-- 
The church says the earth is flat, but I know that it is round, for I
have seen the shadow on the moon, and I have more faith in a shadow than
in the church.--Ferdinand Magellan




line break or wrapping text in tabular

2007-06-13 Thread Jeremy C. Reed
I see several pages mentioning about line breaks within a tabular.

I have tables where I have a lot of text in a cell so then the tabnle is 
wider than my printed page.

How can I get that text to wrap automatically?

Or by manually putting in line breaks?

  Jeremy C. Reed


Re: Line break without resulting in a ragged right margin?

2006-10-18 Thread Juergen Spitzmueller
Andreas Karlsson wrote:
> Is there a way in LyX to insert a line break without this resulting in the
> line not being justified?

Insert \linebreak{} in ERT (and do _not_ press return afterwards, because you 
get an additional paragraph break then).

> If not, I hope the developers can introduce this very useful function.

File an enhancement report on bugzilla, please, if it doesn't exist yet.

Jürgen 

> Andreas


Line break without resulting in a ragged right margin?

2006-10-17 Thread Andreas Karlsson

Hi,

Using Insert > Special Formatting > Line Break results in a line break with 
a ragged right margin, i.e., the line is not justified to the right.


Is there a way in LyX to insert a line break without this resulting in the 
line not being justified?


In Scientific WorkPlace one can use Insert > Spacing > Break... > Linebreak 
gives the result I am asking for, but I do not know how to get this result 
in LyX. Is it possible?


If not, I hope the developers can introduce this very useful function.

Andreas




Re: bug: line-shift before line break - please confirm.

2006-08-07 Thread Mael Hilléreau
Not reproducible for me on Mac OSX, LyX 1.4.2. Could you give  
details on your configuration?


/Anders Ekberg


Mac OS X, Lyx 1.4.2 for Mactel

--
Mael Hilléreau





Re: bug: line-shift before line break - please confirm.

2006-08-07 Thread Martin A. Hansen

my observations correspond exactly to this thread - "input not placed
correctly after linebreak"



martin

On 8/7/06, Jens Noeckel <[EMAIL PROTECTED]> wrote:



On Aug 7, 2006, at 2:38 AM, Martin A. Hansen wrote:

> reconstruct bug:
>
> make an enumerate list.
> make a forced line break in the list.
> when moving the cursor towards the linebreak, the curser goes to
> the next
> line 1 char before the end of the line.

This one I can't confirm on Lyx/Mac 1.4.2...




Re: bug: line-shift before line break - please confirm.

2006-08-07 Thread Jens Noeckel


On Aug 7, 2006, at 2:38 AM, Martin A. Hansen wrote:


reconstruct bug:

make an enumerate list.
make a forced line break in the list.
when moving the cursor towards the linebreak, the curser goes to  
the next

line 1 char before the end of the line.


This one I can't confirm on Lyx/Mac 1.4.2...



Re: input not placed correctly after linebreak (was: Re: bug: line-shift before line break - please confirm.)

2006-08-07 Thread Jens Noeckel


On Aug 7, 2006, at 9:40 AM, Todd Denniston wrote:


Paul A. Rubin wrote:

Martin A. Hansen wrote:

reconstruct bug:

make an enumerate list.
make a forced line break in the list.
when moving the cursor towards the linebreak, the curser goes to  
the next

line 1 char before the end of the line.


I can't reproduce this (LyX 1.4.2, WinXP).
/Paul


I did not reproduce the bug that is described above
(with LyX 1.4.2, Fedora Core 4 Linux), however in the course of  
attempting to replicate it I found a rather odd occurrence.


Replication info
A) File->New
B) set (using mouse) Enumerate as layout
C) type "first line"
D) type "second line"
E) type "third line"
F) click between d & l of second line
G) cursor right over to the end of line and pres -
H) click between d & l of second line
I) cursor right over to the end of line
J) cursor right once more (to take you past the -)
K) type "a"
L) recognize that you now have for the second line:
"second linea-"

the expected result was:
"second line-a"

note that even though the cursor is on the third line (second line  
of the enumerated item #2) any character you type at this point  
ends up on the second line.


Yes, I can confirm this bug on LyX/Mac 1.4.2.
Jens



input not placed correctly after linebreak (was: Re: bug: line-shift before line break - please confirm.)

2006-08-07 Thread Todd Denniston

Paul A. Rubin wrote:

Martin A. Hansen wrote:


reconstruct bug:

make an enumerate list.
make a forced line break in the list.
when moving the cursor towards the linebreak, the curser goes to the next
line 1 char before the end of the line.



I can't reproduce this (LyX 1.4.2, WinXP).

/Paul




I did not reproduce the bug that is described above
(with LyX 1.4.2, Fedora Core 4 Linux), however in the course of attempting to 
replicate it I found a rather odd occurrence.


Replication info
A) File->New
B) set (using mouse) Enumerate as layout
C) type "first line"
D) type "second line"
E) type "third line"
F) click between d & l of second line
G) cursor right over to the end of line and pres -
H) click between d & l of second line
I) cursor right over to the end of line
J) cursor right once more (to take you past the -)
K) type "a"
L) recognize that you now have for the second line:
"second linea-"

the expected result was:
"second line-a"

note that even though the cursor is on the third line (second line of the 
enumerated item #2) any character you type at this point ends up on the second 
line.



attached newfile3.lyx shows end result.
--
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter


newfile3.lyx
Description: application/lyx


Re: bug: line-shift before line break - please confirm.

2006-08-07 Thread Anders Ekberg

make an enumerate list.
make a forced line break in the list.
when moving the cursor towards the linebreak, the curser goes to  
the next

line 1 char before the end of the line.


Not reproducible for me: As expected, the cursor goes to the  
beginning of the next line...

--
Mael Hilléreau
Not reproducible for me on Mac OSX, LyX 1.4.2. Could you give details  
on your configuration?


/Anders Ekberg

Re: bug: line-shift before line break - please confirm.

2006-08-07 Thread Paul A. Rubin

Martin A. Hansen wrote:

reconstruct bug:

make an enumerate list.
make a forced line break in the list.
when moving the cursor towards the linebreak, the curser goes to the next
line 1 char before the end of the line.



I can't reproduce this (LyX 1.4.2, WinXP).

/Paul




Re: bug: line-shift before line break - please confirm.

2006-08-07 Thread Mael Hilléreau

make an enumerate list.
make a forced line break in the list.
when moving the cursor towards the linebreak, the curser goes to  
the next

line 1 char before the end of the line.


Not reproducible for me: As expected, the cursor goes to the  
beginning of the next line...


--
Mael Hilléreau




bug: line-shift before line break - please confirm.

2006-08-07 Thread Martin A. Hansen

reconstruct bug:

make an enumerate list.
make a forced line break in the list.
when moving the cursor towards the linebreak, the curser goes to the next
line 1 char before the end of the line.



martin


Re: No line break after paragraph heading

2005-10-25 Thread Christoph Mathys
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> wrote:

> > "Christoph" == Christoph Mathys <[EMAIL PROTECTED]> writes:
> 
> Christoph> What I'd need is a sub-subsubsection and I thought that is
> Christoph> a paragraph. I want a title diffrent from
> Christoph> Section/Subsection/Subsubsection (a level 4 title if one
> Christoph> can call it like that). Of course the title should be above
> Christoph> the text it belongs to. Hope I you know what I mean :).

> Or you may want to try something like
> \usepackage{titlesec}
> \titleformat{\paragraph}{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{}

Fits :). Thank you!

Christoph


-- 
Vital papers will demonstrate their vitality by
spontaneously moving from where you left them to where
you can't find them.


Re: No line break after paragraph heading

2005-10-25 Thread Jean-Marc Lasgouttes
> "Christoph" == Christoph Mathys <[EMAIL PROTECTED]> writes:

Christoph> What I'd need is a sub-subsubsection and I thought that is
Christoph> a paragraph. I want a title diffrent from
Christoph> Section/Subsection/Subsubsection (a level 4 title if one
Christoph> can call it like that). Of course the title should be above
Christoph> the text it belongs to. Hope I you know what I mean :).

OK, so you use Paragraph in the right way...

I do not know of a solution with the standard classes, but I am sure
there are classes that do what you want.

Or you may want to try something like
\usepackage{titlesec}
\titleformat{\paragraph}{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{}

JMarc


Re: No line break after paragraph heading

2005-10-25 Thread Christoph Mathys
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> wrote:

> > "Christoph" == Christoph Mathys <[EMAIL PROTECTED]> writes:
> Christoph> If I look at the dvi or the pdf output the linebreak
> Christoph> between heading and content is gone, it looks roughly like
> Christoph> the following:
> 
> Christoph> Paragraph heading paragraph content ...
> 
> a Paragraph is a special case of section heading that has the
> behaviour you describe. It is the child of subsubsection.
> 
> If its behaviour does not suit you, you should probably use something
> else. What do you want to do?

What I'd need is a sub-subsubsection and I thought that is a paragraph.
I want a title diffrent from Section/Subsection/Subsubsection (a level
4 title if one can call it like that). Of course the title should be
above the text it belongs to. Hope I you know what I mean :).

Christoph


Re: No line break after paragraph heading

2005-10-25 Thread Jean-Marc Lasgouttes
> "Christoph" == Christoph Mathys <[EMAIL PROTECTED]> writes:

Christoph> Paragraph heading Paragraph content ...

Christoph> If I look at the dvi or the pdf output the linebreak
Christoph> between heading and content is gone, it looks roughly like
Christoph> the following:

Christoph> Paragraph heading paragraph content ...

a Paragraph is a special case of section heading that has the
behaviour you describe. It is the child of subsubsection.

If its behaviour does not suit you, you should probably use something
else. What do you want to do?

JMarc


No line break after paragraph heading

2005-10-25 Thread Christoph Mathys
Hello

I've noticed a strange behaviour in Lyx 1.3.6 (teTex-texmf-3.0): I
selected paragraph, entered the paragraph heading and hit return to
enter the paragraph content. Lyx shows me something like this:

Paragraph heading
Paragraph content ...

If I look at the dvi or the pdf output the linebreak between heading
and content is gone, it looks roughly like the following:

Paragraph heading paragraph content ...

What do I need to change so I get the linebreak? I'd prefer to not
enter the linebreeak by hand for every paragraph...

Thanks!
Christoph

-- 
During the time an item is on back-order, it will be
available cheaper and quicker from many other sources.


Re: line break and indentation for Lyx-Code

2005-02-01 Thread Helge Hafting
Wolfgang Hennerbichler wrote:
Hi! 

I am currently writing my Master Thesis in Lyx. I do have some pieces of
code that i incuded as verbatim files. I use Lyx-Code as the formatting
style for my program-code. 

I experience 2 Problems with that: 
* Indentation (done with TAB's) is ignored
* Lyx (or LateX?) does not line break the code. If a line is longer than
a sheet of paper, it's just cut off. 
 

You may want to take a look at the "listings" package, at least it
is written for listing programming languages.  And it handles tabs,
if I remember correctly.  I believe it can break lines too, but line
breaking is often better done by the programmer.  The "listings"
package also offer various forms of automatic syntax higlighting if
you want  something prettier than a fixed font. And you can have
line numbers (set with different color/font so it doesn't get mixed
up with the code), this is great if you have many references of the
form "see line 15 of foo(x) which does . . ."
Helge Hafting


Re: line break and indentation for Lyx-Code

2005-01-27 Thread Wolfgang Hennerbichler
On Thu, 2005-01-27 at 08:13 +0100, Kevin Pfeiffer wrote:

> Splitting lines is difficult enough with ordinary text, but with various 
> programming languages?

When I think about it - you're absolutely right. There are even
situations where breaks wouldn't be allowed at all. I am too spoilt from
lyx' / tex' behaviour to do everything automatically :) 

> -K

Wolfgang



Re: line break and indentation for Lyx-Code

2005-01-27 Thread G. Milde
On 27.01.05, Kevin Pfeiffer wrote:
> Wolfgang Hennerbichler writes:
> > On Wed, 2005-01-26 at 16:31 +0100, G. Milde wrote:
> > > [Wolfgang Hennerbichler wrote:]
> > > > not line break the code. If a line is longer than a sheet of
> > > > paper, it's just cut off.
> > >
> > > ... how should LyX knwo which lines to break.
> >
> > I'd say: Every line that exceeds the defined margin.
> 
> Splitting lines is difficult enough with ordinary text, but with various 
> programming languages?

Furthermore, LyX does only know about the margin definition, if it is set
in the Format>Document dialog. In many (most?) cases, the textwidth is
set by the class or a package. The same holds for the length of the line,
which depends on the chosen font. All this is handled by LaTeX, so LyX
would need to parse for "overfull hbox" warnings.

IMHO, the problem could only be solved by a LaTeX package. 

If I got it right, the listings package has a (rudimentary) support for
line wrapping. See its documentation listings.dvi, section 5.6 "Automatic
formatting" for details.


-- 
G.Milde web.de


Re: line break and indentation for Lyx-Code

2005-01-26 Thread Kevin Pfeiffer
Wolfgang Hennerbichler writes:
> On Wed, 2005-01-26 at 16:31 +0100, G. Milde wrote:
> > [Wolfgang Hennerbichler wrote:]
> > > not line break the code. If a line is longer
> > > than a sheet of paper, it's just cut off.
> >
> > Verbatim means input as-is. Again, how should LyX knwo which lines to
> > break.
>
> I'd say: Every line that exceeds the defined margin.

Splitting lines is difficult enough with ordinary text, but with various 
programming languages?

-K

-- 
Kevin Pfeiffer <[EMAIL PROTECTED]>
Tiros-Translations


Re: line break and indentation for Lyx-Code

2005-01-26 Thread Wolfgang Hennerbichler
On Wed, 2005-01-26 at 16:31 +0100, G. Milde wrote:
> > I experience 2 Problems with that: 
> > * Indentation (done with TAB's) is ignored
> 
> This is bad. However, how should LyX know your TAB setting (4 vs. 8 spaces,
> say). I'd untab the source files (M-x untab in my "jed programmers editor").

Well, LyX could assume a TAB-setting. A nice workaround anyway. 

> > * Lyx (or LateX?) does not line break the code. If a line is longer than
> > a sheet of paper, it's just cut off. 
> 
> Verbatim means input as-is. Again, how should LyX knwo which lines to break.

I'd say: Every line that exceeds the defined margin. 

> You have to do this manually, either in the source (which will improve
> readability in a normal text editor anyway) or in LyX. You could also think
> about using a "line-breaking layout".

I guessed that this was the solution to my problem :) 
Well, in that case, I say: Vielen \
Dank :) 

> Günter

Wolfgang 



Re: line break and indentation for Lyx-Code

2005-01-26 Thread G. Milde
On 26.01.05, Wolfgang Hennerbichler wrote:
> Hi! 
> 
> I am currently writing my Master Thesis in Lyx. I do have some pieces of
> code that i incuded as verbatim files. I use Lyx-Code as the formatting
> style for my program-code. 
> 
> I experience 2 Problems with that: 
> * Indentation (done with TAB's) is ignored

This is bad. However, how should LyX know your TAB setting (4 vs. 8 spaces,
say). I'd untab the source files (M-x untab in my "jed programmers editor").

> * Lyx (or LateX?) does not line break the code. If a line is longer than
> a sheet of paper, it's just cut off. 

Verbatim means input as-is. Again, how should LyX knwo which lines to break.
You have to do this manually, either in the source (which will improve
readability in a normal text editor anyway) or in LyX. You could also think
about using a "line-breaking layout".

Günter

-- 
G.Milde web.de


line break and indentation for Lyx-Code

2005-01-26 Thread Wolfgang Hennerbichler
Hi! 

I am currently writing my Master Thesis in Lyx. I do have some pieces of
code that i incuded as verbatim files. I use Lyx-Code as the formatting
style for my program-code. 

I experience 2 Problems with that: 
* Indentation (done with TAB's) is ignored
* Lyx (or LateX?) does not line break the code. If a line is longer than
a sheet of paper, it's just cut off. 

I beg for help. 

Wolfgang 



line break

2004-03-02 Thread Raphael Clifford
Hi,

I am trying to insert a line break in the middle of a line in 
"typewriter" font.  If I use insert->special character->line break I get 
the following in latex

\texttt{Voice1: 71,74,72,71,69,71,}~\\
\texttt{72,74,72,71,69,67}
However what I want is

\texttt{Voice1: 71,74,72,71,69,71,\\72,74,72,71,69,67}

The first one gives a blank line between the two parts and the second 
one doesn't.

I can achieve this by simply inserting \\ in ERT but is there a lyx way?

Cheers,
Raphael





Re: missing line break within citations

2003-10-16 Thread Dekel Tsur
On Fri, Oct 10, 2003 at 03:44:44PM +0200, Olaf Thiele wrote:
> Hello everybody,
> I have the problem that lines are not
> wrapped within citations. This [Bush and Schwarzenegger 2003, p.34]
> doesn't look to good.
> 
> I haved found hints about using a different
> package in the preamble, but I don't
> know how to add it.

Are you using bibtex ?
Also, please give a short example file.


Re: missing line break within citations

2003-10-10 Thread Juergen Spitzmueller
Olaf Thiele wrote:
> I have the problem that lines are not
> wrapped within citations. This [Bush and Schwarzenegger 2003, p.34]
> doesn't look to good.

I suspect that you did not enable natbib. Layout->Document->Bibliography (or 
extras in xforms). Natbib should break citations.

Jürgen.



Re: missing line break within citations (no joke)

2003-10-10 Thread Andre Poenitz
On Fri, Oct 10, 2003 at 04:30:31PM +0200, Olaf Thiele wrote:
> What I ment was that long citations
> are not wrapped and that it looks
> pretty ugly within my paper.
> 
> I am using the standard citation
> features of Lyx.

I am afraid I have no solution for your problem, but I'd think you'd
have to look in one of the citation related packages.

On my machine I have e.g.

/usr/share/texmf/tex/latex/cite/chapterbib.sty
/usr/share/texmf/tex/latex/cite/cite.sty
/usr/share/texmf/tex/latex/cite/drftcite.sty
/usr/share/texmf/tex/latex/cite/overcite.sty
/usr/share/texmf/tex/latex/misc/citesort.sty

Most notably, overcite.sty contains stuff like

4: \renewcommand\citepunct{,} % no space and no breaks at commas
   ^^^

so I'd expect it to break line otherwise...

Andre'


Re: missing line break within citations (no joke)

2003-10-10 Thread Olaf Thiele
I didn't mean this as a joke,
but I have to admit that I
could have made myself clearer :-)
What I ment was that long citations
are not wrapped and that it looks
pretty ugly within my paper.
I am using the standard citation
features of Lyx.
Kind regards
Olaf
Olaf Thiele wrote:

Hello everybody,
I have the problem that lines are not
wrapped within citations. This [Bush and Schwarzenegger 2003, p.34]
doesn't look to good.
I haved found hints about using a different
package in the preamble, but I don't
know how to add it.
I am using LyX 1.3.2 on Windows.

Kind regards,
Olaf
(keywords for archive: line break,
citations, cite, line wrap)




Re: missing line break within citations

2003-10-10 Thread Andre Poenitz
On Fri, Oct 10, 2003 at 03:44:44PM +0200, Olaf Thiele wrote:
> Hello everybody,
> I have the problem that lines are not wrapped within citations.
> This [Bush and Schwarzenegger 2003, p.34] doesn't look to good.

Whom are you telling?

I did not vote for either of them...

Andre'


missing line break within citations

2003-10-10 Thread Olaf Thiele
Hello everybody,
I have the problem that lines are not
wrapped within citations. This [Bush and Schwarzenegger 2003, p.34]
doesn't look to good.
I haved found hints about using a different
package in the preamble, but I don't
know how to add it.
I am using LyX 1.3.2 on Windows.

Kind regards,
Olaf
(keywords for archive: line break,
citations, cite, line wrap)


Re: line break in cv topics

2003-07-17 Thread Holger Zebner
Hi Dekel,
thank you. That was exactly what I needed.

With some ERT.
See the attached file.


Holger



Re: line break in cv topics

2003-07-16 Thread Dekel Tsur
On Wed, Jul 16, 2003 at 07:11:41PM +0200, Holger Zebner wrote:
> Dear List,
> I need to produce a cv and have a question:
> How can I let the beginning of the topics float in two lines?
> 
> Instead of:
> 
> Oktober 2002- May 2003Job at big company
> 
> I wanna create:
> 
> Oktober 2002- Job at big company
> May 2003

With some ERT.
See the attached file.
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass cv
\begin_preamble
\newlength{\mytopicmargin}
\setlength{\mytopicmargin}{\topicmargin}
\newcommand{\parboxt}[1]{\parbox[t]{0.75\mytopicmargin}{\raggedright#1}}
\end_preamble
\language american
\inputencoding default
\fontscheme default
\graphics default
\paperfontsize 12
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Topic
\labelwidthstring M

short\SpecialChar ~
topic foo
\layout Topic
\labelwidthstring M


\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
parboxt{a very long topic}
\end_inset 

 bar
\the_end


Re: line break in cv topics

2003-07-16 Thread larry
Looks like, er, a job, for either minipages or tables (with lines removed).

On Wed, Jul 16, 2003 at 07:11:41PM +0200, Holger Zebner wrote:
> Dear List,
> I need to produce a cv and have a question:
> How can I let the beginning of the topics float in two lines?
> 
> Instead of:
> 
> Oktober 2002- May 2003Job at big company
> 
> I wanna create:
> 
> Oktober 2002- Job at big company
> May 2003
> 
> A cv is said to have at last 1 1/2 pages. If the topic start ("Oktober 
> 2002- May 2003") is too long the class would skip the topic text ("Job at 
> big company") into the next line. This process needs more space in the 
> document.
> 
> Thanks and Greetings
> Holger 


Re: line break in cv topics

2003-07-16 Thread Angus Leeming
Holger Zebner wrote:

> Dear List,
> I need to produce a cv and have a question:
> How can I let the beginning of the topics float in two lines?
> 
> Instead of:
> 
> Oktober 2002- May 2003Job at big company
> 
> I wanna create:
> 
> Oktober 2002- Job at big company
> May 2003
> 
> A cv is said to have at last 1 1/2 pages. If the topic start ("Oktober
> 2002- May 2003") is too long the class would skip the topic text ("Job at
> big company") into the next line. This process needs more space in the
> document.
> 
> Thanks and Greetings
> Holger

Perhaps use a table. See attached.
-- 
Angus

holger.lyx
Description: application/lyx


  1   2   >