Re: word2lyx: Word to LyX Document Converter

2012-03-07 Thread Murat Yildizoglu
Thanks a lot Rob!
If I have understood correctly, this script cannot import equations. Do you it 
is possible to translate these objects to Latex too ?

Regards,

Murat

--
Murat Yildizoglu
yi...@u-bordeaux4.fr

Le 8 mars 2012 à 01:03, Rob Oakes  a écrit :

> Dear Users and Developers,
> 
> First off, thank you to everyone who sent me documents over the weekend.
> I was able to make a lot of tweaks to word2lyx based on what you sent me.
> 
> With that hurdle out of the way, I think it's ready to release it into
> the wild. If you'd like to download a copy of it, you can download the
> code from:
> 
> http://oak-tree.us/stuff/LyX/word2lyx-01.zip
> 
> A brief write-up of the features and usage can be found at:
> 
> http://www.oak-tree.us/2012/03/07/word2lyx01-2/
> 
> If you download it and find it useful, please let me know. If you
> download it and have problems, also please let me know. (Mostly so I can
> fix the problems.)
> 
> Cheers,
> 
> Rob


Re: format problem: subsection headline taking too much space on page

2012-03-07 Thread David L. Johnson

On 03/07/2012 05:29 PM, Hauke wrote:

Hey everyone,

as you can see in the attached screenshots, the headline of the 
subsection 2.2 is taking too much space on the page in the pdf (dvi or 
how its called). and i absolutely dont know why.


This is a TeX issue, since it can't decide where to hyphenate that long 
word.  One thing that might help is to decide for yourself where the 
break should be; my guess would be it would be best with the newline 
before "von", rather than try to hyphenate SDS-Ganzzell  My 
knowledge of German hyphenation rules and style is zero, but that would 
be what I would recommend for English, especially since the word is 
already hyphenated.  To do what I suggest, enter a protected newline, 
which on my machine is a Ctrl-Enter.  If you prefer to hyphenate the 
word, there is a hyphenation-point under Insert > Formatting.  No matter 
what, you are going to have to make that heading 2 lines, not one, 
unless you shrink the font considerably, which IMO would be worse.


--

David L. Johnson

What is objectionable, and what is dangerous about extremists is not
that they are extreme, but that they are intolerant.
--Robert F. Kennedy



Re: Lyx formating

2012-03-07 Thread Richard Heck

On 03/07/2012 04:01 PM, Indrek Tuula wrote:

Hi Again,

Please see attached picture. It represent standard  outlook of table 
of content with highlighted subsection and sub-subsections areas.


I would like to format highlighted (subsections and 
sub-subsections) areas also in bold font.


As end result I would achieve table of content format as bold font.


Have a look at the documentation for the titletoc package
http://mirrors.ctan.org/macros/latex/contrib/titlesec/titlesec.pdf
which is part of the titlesec bundle. (So install the titlesec package 
to get access to titletoc, as well.) There are lots of examples in the 
documentation for how to get different effects. Try googling something 
like "titlesec bold titles", too.


Richard




On 7 March 2012 22:19, Richard Heck > wrote:


On 03/07/2012 09:50 AM, Indrek Tuula wrote:

Hi Again,

So far i resolve almost my open issues excepted how to make
TOC look like totally bold because by default subsections and
subsubsections are not a bold.

You want to explain this one again?

Richard






Re: Header line

2012-03-07 Thread Richard Heck

On 03/07/2012 07:33 PM, Louise Wilkinson wrote:


Hii,

Yes, that is what I want, a horizontal line underneath the chapter title.

Then the solution depends a bit upon which document class you are using. 
The generic solution would be to use the titlesec package, which allows 
you to redefine how the chapter, etc, headings appear. There are all 
kinds of examples in the documentation's

http://mirrors.ctan.org/macros/latex/contrib/titlesec/titlesec.pdf
Appendix from which you can choose.

If you're using memoir or one of the koma-script classes, they have 
their own ways to modify the appearance of such things. But the examples 
in the titlesec documentation will still be useful.


Richard


Louise


*From:* Richard Heck [rgh...@comcast.net]
*Sent:* Thursday, 8 March 2012 7:08 AM
*To:* Louise Wilkinson
*Subject:* Re: Header line

On 03/06/2012 11:14 PM, Louise Wilkinson wrote:


Hi Richard,

I want to put the header under the title. The document class is 
article(AMS). I am using \renewcommand{\headrulewidth}{0pt} in the 
preamble, because otherwise it puts a line on every page.


Sorry, I still don't understand. You want a horizontal line underneath 
the chapter title? Or...?


Richard

PS Better to respond to the list, since then more people get a chance 
to answer.







Re: format problem: subsection headline taking too much space on page

2012-03-07 Thread Richard Heck

On 03/07/2012 05:38 PM, stefano franchi wrote:



On Wed, Mar 7, 2012 at 4:29 PM, Hauke > wrote:


Hey everyone,

i am new in lyx and use it currently for writing my thesis. i
start using lyx to avoid problems you may get writing long
documents in word. first impression and the sense behind it (i am
not used to LateX) were awesome. so i thought its more than worth
trying something new. But not very far after starting to write i
have the first problem. a typical format problem which i hoped to
avoid using lyx.
as you can see in the attached screenshots, the headline of the
subsection 2.2 is taking too much space on the page in the pdf
(dvi or how its called). and i absolutely dont know why.
i choose all normal text to be 'standard'. the subsections are all
'subsections' sections are 'sections' and so on. the table you can
see i defined to be 'list'.
funnywise, subsection 2.2 is the only one i can increase the deep
(dont know whats this exactly in english) but in word its
comparable with tabstop. dont know why i can do this there.
hope i described the problem well enough for you to understand (or
at least the screenshots help) and hope there is a easy failure to
find.


It looks like a hyphenation problem to me: Latex doesn't know how to 
split the last word in your section heading and pushes it off margin. 
Looking at the Latex log would tell you if this is the problem. But 
you can also try to add a couple of optional hyphens 
(Insert>>Formatting>>Hyphenation point, in the English version) in 
 "SDS-Ganzzellextrakten" and see if the problem disappears


Part of the problem here is that LaTeX *REALLY* hates hyphenating words 
that already have hyphens in them. So it's completely refusing to 
hyphenate this one. The possible solutions in this case are: (i) rewrite 
the heading so as to avoid the problem; (ii) add a hyphenation point, as 
Stefano suggested; (iii) allow the heading to be "ragged right" by using 
Insert>Formatting>Ragged Line Break (English, again) after the hyphen in 
the existing heading.


Personally, I tend just to make all my section etc headings ragged 
right, since the larger font size makes justification ugly. But to do 
this you have to redefine some stuff in the document class. If it's just 
a one-time issue, you can do it as in (iii).


Note that LaTeX's refusal to do this is NOT a bug. LaTeX is basically 
telling you that it doesn't know what to do here---it's a computer 
program, it's not omniscient---and it's asking you what you want. This 
is the right thing for LaTeX to do when it can't come to a reasonable 
decision.


Richard



RE: Header line

2012-03-07 Thread Louise Wilkinson
Hii,



Yes, that is what I want, a horizontal line underneath the chapter title.



Louise


From: Richard Heck [rgh...@comcast.net]
Sent: Thursday, 8 March 2012 7:08 AM
To: Louise Wilkinson
Subject: Re: Header line

On 03/06/2012 11:14 PM, Louise Wilkinson wrote:

Hi Richard,



I want to put the header under the title. The document class is article(AMS). I 
am using \renewcommand{\headrulewidth}{0pt} in the preamble, because otherwise 
it puts a line on every page.



Sorry, I still don't understand. You want a horizontal line underneath the 
chapter title? Or...?

Richard

PS Better to respond to the list, since then more people get a chance to answer.




word2lyx: Word to LyX Document Converter

2012-03-07 Thread Rob Oakes
Dear Users and Developers,

First off, thank you to everyone who sent me documents over the weekend.
I was able to make a lot of tweaks to word2lyx based on what you sent me.

With that hurdle out of the way, I think it's ready to release it into
the wild. If you'd like to download a copy of it, you can download the
code from:

http://oak-tree.us/stuff/LyX/word2lyx-01.zip

A brief write-up of the features and usage can be found at:

http://www.oak-tree.us/2012/03/07/word2lyx01-2/

If you download it and find it useful, please let me know. If you
download it and have problems, also please let me know. (Mostly so I can
fix the problems.)

Cheers,

Rob


Re: format problem: subsection headline taking too much space on page

2012-03-07 Thread stefano franchi
On Wed, Mar 7, 2012 at 4:29 PM, Hauke  wrote:

> Hey everyone,
>
> i am new in lyx and use it currently for writing my thesis. i start using
> lyx to avoid problems you may get writing long documents in word. first
> impression and the sense behind it (i am not used to LateX) were awesome.
> so i thought its more than worth trying something new. But not very far
> after starting to write i have the first problem. a typical format problem
> which i hoped to avoid using lyx.
> as you can see in the attached screenshots, the headline of the subsection
> 2.2 is taking too much space on the page in the pdf (dvi or how its
> called). and i absolutely dont know why.
> i choose all normal text to be 'standard'. the subsections are all
> 'subsections' sections are 'sections' and so on. the table you can see i
> defined to be 'list'.
> funnywise, subsection 2.2 is the only one i can increase the deep (dont
> know whats this exactly in english) but in word its comparable with
> tabstop. dont know why i can do this there.
> hope i described the problem well enough for you to understand (or at
> least the screenshots help) and hope there is a easy failure to find.
>
>
It looks like a hyphenation problem to me: Latex doesn't know how to split
the last word in your section heading and pushes it off margin. Looking at
the Latex log would tell you if this is the problem. But you can also try
to add a couple of optional hyphens (Insert>>Formatting>>Hyphenation point,
in the English version) in  "SDS-Ganzzellextrakten" and see if the problem
disappears


Cheers,

Stefano


> By the way: i am using mac os x and lyx version 2.0.2.
>
> hope you can help me!
> thanks a lot and have a nice evening
> Hauke
>
>


-- 
__
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: Top margin for Odd/Even page

2012-03-07 Thread Richard Heck

On 03/07/2012 04:56 PM, Julio Rojas wrote:

Thanks a lot! I have never believed that it would be so difficult to do.

The problem here is that you can't use \thepage for this, because of 
details of LaTeX's page construction algorithm. The perpage package does 
provide facilities that allow you to figure out what page you are on, 
though. But I'm not sure how to arrange for some command particular 
command to be issued on each page.


Richard


-
Julio Rojas
jcredbe...@gmail.com 


On Wed, Mar 7, 2012 at 9:32 PM, Richard Heck > wrote:


On 03/07/2012 10:31 AM, Julio Rojas wrote:

Dear all. I need, for a complex legal format used in
Venezuela, to have different top margins for odd and even
pages. I have been googling around but only the obvious
inner/outer margin answer appears. Is there any way to handle
this through LyX/LaTeX?

This is a complicated issue. Just figuring out whether you're on
an odd page is complicated. I'd ask on comp.text.tex and see if
anyone has any ideas.

Richard






Re: Top margin for Odd/Even page

2012-03-07 Thread Julio Rojas
Thanks a lot! I have never believed that it would be so difficult to do.
-
Julio Rojas
jcredbe...@gmail.com


On Wed, Mar 7, 2012 at 9:32 PM, Richard Heck  wrote:

> On 03/07/2012 10:31 AM, Julio Rojas wrote:
>
>> Dear all. I need, for a complex legal format used in Venezuela, to have
>> different top margins for odd and even pages. I have been googling around
>> but only the obvious inner/outer margin answer appears. Is there any way to
>> handle this through LyX/LaTeX?
>>
>>  This is a complicated issue. Just figuring out whether you're on an odd
> page is complicated. I'd ask on comp.text.tex and see if anyone has any
> ideas.
>
> Richard
>
>


Re: word2lyx (Word to LyX Translator): Status Update

2012-03-07 Thread Rob Oakes
On 3/5/2012 2:01 AM, Rainer M Krug wrote:
> Actualy one more question - it might have been mentioned, but are you
> also looking into a lyx2word converter which would provide
> round-trips with track changes and notes?
I'd really like to provide for that, yes. However, there is something of
a hang-up. Going from Word to LyX is pretty straightforward. It will
even be possible to maintain track changes. (I still need to implement
this, but it's on the radar for 0.2). Going back to Word from LyX,
though, is a bit more complicated. Maintaining fidelity so that you can
exchange the same file with a colleague and track the whole change
history, that's very, very difficult. Possible, but really hard.

Cheers,

Rob



Re: 5 questions from a new user

2012-03-07 Thread Julien Rioux

On 24/02/2012 5:30 PM, Pascal Fischer wrote:

2. Does the bundle-installer that includes all additional software
that is needed, install all programs or does it only include these
programs but I have to install each of them seperately?



It installs them one after the other if I remember correctly. It tries 
to include most additional softwares but might not include all of them, 
e.g. I think gnumeric was only recently added.



3. If I want to update Lyx do I only have to install the not bundled?
But how can I keep Latex, Ghostscript, etc. up to date?



You don't have to use the bundled installer for updates. This makes for 
a much smaller download size. But then, of course, it is up to you to 
upgrade other programs if necessary.



4. I've read on the english download-page that the bundle includes
Cygwin. Is this also needed for Lyx on Windows? Because on the german
download page is the information, that the cygwin-version is another
one. And the bundled version of the english download-page is missing
there.



The bundle does not include cygwin. There exists a version of LyX 
compiled for cygwin, but if you never heard of cygwin before you can 
probably just forget about it.



5. How do I enter em-dashes and en-dashes in Lyxx?

I hope you can help me,
Pascal



--
Julien



Re: Name of table of contents in headers

2012-03-07 Thread William Seager
On Wednesday 07 March 2012 15:55:44 Richard Heck wrote:
> What document class is this? What page style are you using? Do you want 
> to change how this looks only in the TOC, or in the rest of the document 
> as well?

Sorry for the confusion about this but the solution was posted out
of thread; here it is again:

{\pagestyle{plain}
\fancyhead[LE,RO]{\thepage}
\fancyhead[LO,RE]{Contents}
\renewcommand{\contentsname}{Contents}\tableofcontents{}
\cleardoublepage}

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


Re: Lyx formating

2012-03-07 Thread Indrek Tuula
Hi Again,

Please see attached picture. It represent standard  outlook of table of
content with highlighted subsection and sub-subsections areas.

I would like to format highlighted (subsections and sub-subsections) areas
also in bold font.

As end result I would achieve table of content format as bold font.

Br,
Indrek


On 7 March 2012 22:19, Richard Heck  wrote:

> On 03/07/2012 09:50 AM, Indrek Tuula wrote:
>
>> Hi Again,
>>
>> So far i resolve almost my open issues excepted how to make TOC look like
>> totally bold because by default subsections and subsubsections are not a
>> bold.
>>
>>  You want to explain this one again?
>
> Richard
>
>
<>

Re: Name of table of contents in headers

2012-03-07 Thread Richard Heck

On 03/04/2012 12:22 AM, William Seager wrote:

Hi all. This is more a latex problem than a lyx problem, but since
I'm using lyx I thought I'd ask here.

I have a complex document in which the table of contents
spans several pages.

My problem is that in the header the name of the table of contents,
(which is "Contents") appears capitalized and emphasized (italics).

What document class is this? What page style are you using? Do you want 
to change how this looks only in the TOC, or in the rest of the document 
as well?


In book.cls, this would be controlled by two things: the definition of 
the page style, and this:


\newcommand\tableofcontents{%
\if@twocolumn
  \@restonecoltrue\onecolumn
\else
  \@restonecolfalse
\fi
\chapter*{\contentsname
\@mkboth{%
   \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
\@starttoc{toc}%
\if@restonecol\twocolumn\fi
}

As you see, the \@mkboth command is what's giving you the uppercase. But 
the italics are probably coming from the page style.


Richard



Re: LyX layout files - adding documentclass parameters

2012-03-07 Thread Richard Heck

On 03/07/2012 10:37 AM, Uwe Jugel wrote:

Hi,
I want to configure a lyx layout for this documentclass syntax:

 \documentclass[english]{lni}

What is right \DeclareLaTeXClass syntax for this?


Just: \DeclareLaTeXClass{lni}.

If you want to force english, then add this to the layout file as:

ClassOptions
Other english
End

and then it will appear as a "predefined" option under Document>Settings.

Though you don't really need to do that. The english option will be 
added for you if you choose English as your document language under 
Document>Settings>Language.


Richard



Re: Top margin for Odd/Even page

2012-03-07 Thread Richard Heck

On 03/07/2012 10:31 AM, Julio Rojas wrote:
Dear all. I need, for a complex legal format used in Venezuela, to 
have different top margins for odd and even pages. I have been 
googling around but only the obvious inner/outer margin answer 
appears. Is there any way to handle this through LyX/LaTeX?


This is a complicated issue. Just figuring out whether you're on an odd 
page is complicated. I'd ask on comp.text.tex and see if anyone has any 
ideas.


Richard



Re: Lyx formating

2012-03-07 Thread Richard Heck

On 03/07/2012 09:50 AM, Indrek Tuula wrote:

Hi Again,

So far i resolve almost my open issues excepted how to make TOC look 
like totally bold because by default subsections and subsubsections 
are not a bold.



You want to explain this one again?

Richard



Re: Lyx formating

2012-03-07 Thread Stephan Witt
Am 07.03.2012 um 15:50 schrieb Indrek Tuula:

> Hi Again,
> 
> I totally agreed aspell is better than hunspell. Especially if you working 
> with some small language.

Why is aspell better than hunspell?
And what is a small language? :)

> 
> I found following note from wiki:
> 
> Note: Beginning with 2.0 support for the aspell command line program has been 
> dropped. Although the aspell library (aspell 0.60.x) is still supported, 
> Windows binaries are compiled without this feature. 
> 
> So if the library is still  supported. Is it mean user are able to switch  on 
> aspel usage experience for windows environment somehow.?  Hopefully some wise 
> developer could provide some hints and steps. (Y)

The change from 1.6 to 2.0 was to use shared libraries for spell checking 
instead of external programs.
That means LyX uses .dll library code for that on windows.
The packager for windows has to make such thing for aspell or has to use some 
.dll code from other sources.
For Unix-platforms there are precompiled shared libraries available.
For windows I don't know of any comparable.
Therefor aspell support is currently available on Unix only.

To get Aspell support on windows you have to build LyX on a system with an 
Aspell developer environment.

Stephan

Top margin for Odd/Even page

2012-03-07 Thread Julio Rojas
Dear all. I need, for a complex legal format used in Venezuela, to have
different top margins for odd and even pages. I have been googling around
but only the obvious inner/outer margin answer appears. Is there any way to
handle this through LyX/LaTeX?

Thanks in advance. Best regards.
-
Julio Rojas
jcredbe...@gmail.com


Re: Lyx formating

2012-03-07 Thread Indrek Tuula
Hi Again,

I totally agreed aspell is better than hunspell. Especially if you working
with some small language.

I found following note from wiki:

*Note:* Beginning with 2.0 support for the aspell command line program has
been dropped. Although the aspell library (aspell 0.60.x) is still
supported, Windows binaries are compiled without this feature.

So if the library is still  supported. Is it mean user are able to switch
 on aspel usage experience for windows environment somehow.?  Hopefully
some wise developer could provide some hints and steps. (Y)

So far i resolve almost my open issues excepted how to make TOC look like
totally bold because by default subsections and subsubsections are not a
bold.

Any help please?

Br,
Indrek

On 6 March 2012 13:07, Olivier Ripoll  wrote:

> On 04.03.2012 23:48, Indrek Tuula wrote:
>
>> Hi Again,
>>
>> I just press Send button instead of Save Now. I updating my post.
>>
>> List of open issues what i have:
>>
>> 2. How to define margin for page number from bottom (dimension from
>> bottom between paper size and page number). I have to define it as 1,5 cm
>>
>
> You can change the margins in
> In Documents->Settings>Page Margins
>
>  3. Vertical spacing of Section defined in preamble not working on some
>> reason. I is defined as 6cm but on the paper it is 3cm.
>>
>>
>> \usepackage[compact]{titlesec}
>>
>> %\titleformat{\section}{\**normalfont\bfseries}{\**thesection}{1em}{}
>>
>> \titlespacing*{\section}{0pt}{**6cm}{30pt}
>>
>> \titlespacing*{\subsection}{**0pt}{30pt}{30pt}
>>
>> \titlespacing*{\subsubsection}**{0pt}{30pt}{30pt}
>>
>> *
>> *
>>
>>
>>
>> 4. How to got aspell working under Windows 7.
>>
>
> Unfortunately, aspell is no more supported on recent LyX on Windows, IIRC.
> You'll have to use Hunspell instead (not as good in my experience).
>
> Best regards,
>
> Olivier.
>
>


Confusion algorithm vs. listing

2012-03-07 Thread Neal Becker
I can insert my code listing as a float in 2 ways, it appears.

I can insert an algorithm float, then insert a program listing into it.  This 
results in a caption 'Algorithm ...'

Else, I can insert a program listing, enter the settings dialog, and select 
float.  I can then add a caption, and it will say 'Listing ...'.

There does not appear to be a way to decide later I want to change all those 
'Algorithms' to 'Listings'.  Also, the look of these 2 floats is quite 
different.  Seems like this should be more unified.