Re: Import of LaTex file

2009-06-02 Thread Luca Brandolini
Il giorno sab, 30/05/2009 alle 10.09 -0400, rgheck ha scritto:

 Luca Brandolini wrote:
  Thank you Vincent. 
  Is there any workaround for such a problem?
 

 Yes. Add lines to the appropriate layout file to import the 
 theorems-ams.module file.
 
 I can give more detailed instructions later, but don't hav time now.
 
 Richard
 
 
  Best regards
  Luca
 
 
  Il giorno sab, 30/05/2009 alle 13.42 +0200, Vincent van Ravesteijn ha
  scritto:
 

  Luca Brandolini schreef:
  
  I am a new Lyx user and I would like to import LaTeX files into Lyx.
  Apparently the importer cannot recognize enviroment like theorem, lemma,
  remark, etc.
  Consider this simple example:
 
  %
  \documentclass{article}%
  \newtheorem{theorem}{Theorem}
  \newtheorem{remark}[theorem]{Remark}
  \begin{document}
  \title{prova}
  \author{prova}
  \maketitle
  \begin{abstract}
  Bla bla bla bla
  \end{abstract}
  \section{section1}
  Here is the theorem:
  \begin{theorem}
  \label{Thm1}This is Theorem 1.
  \end{theorem}
  \begin{remark}
  This is the Remark.
  \end{remark}
  \end{document}
  %%%
 
  If you import it into Lyx the \begin{theorem}, \end{theorem}
  \begin{remark}, \end{remark} are not recognized by the importer and you
  simple see it in red into the text.
 
  Am I missing something? Is there any workaround to force Lyx to
  recognize them?
 
  Best regards
  Luca
 
 


  This is bug 5702: http://www.lyx.org/trac/ticket/5702
 
  Vincent
 
 
  
 

 
 


Dear Richard,
   I tried to follow your suggestion. I found the amsart.layout and I
inserted the line
Input theorems-ams.module and I imported the file
%%
\documentclass{amsart}%
\usepackage{amsmath}
\usepackage{amsthm}
\newtheorem{thm}{Theorem}
\newtheorem{rem}[thm]{Remark}

\begin{document}

\title{prova}
\author{prova}
\maketitle

\begin{abstract}
Bla bla bla bla
\end{abstract}



\section{section1}

Here is the theorem:

AAA

BBB

\begin{thm}
\label{Thm1}This is Theorem 1.
\end{thm}


\begin{rem}
This is the Remark.
\end{rem}

\end{document}


The result is almost correct. However the whole document is included in
a \begin{thm} \end{thm} structure.
This is what is shown in the LaTex preview windows after the import.

Best regards
Luca


55


% Anteprima del sorgente

%% LyX 1.6.2 created this file. For more info, see http://www.lyx.org/.

%% Do not edit unless you really know what you are doing.

\documentclass[english]{amsart}

\usepackage[T1]{fontenc}

\usepackage[latin9]{inputenc}

\usepackage{amsthm}

%% Textclass specific LaTeX commands.

\numberwithin{equation}{section} %% Comment out for
sequentially-numbered

\numberwithin{figure}{section} %% Comment out for sequentially-numbered

\theoremstyle{plain}

\theoremstyle{plain}

\newtheorem{thm}{Theorem}

\theoremstyle{remark}

\newtheorem{rem}[thm]{Remark}

%% User specified LaTeX commands.

%

\usepackage{amsthm}

\newtheorem{thm}{Theorem}

\newtheorem{rem}[thm]{Remark}

\usepackage{babel}

\begin{document}

\title{prova}

\author{prova}

\begin{abstract}

Bla bla bla bla 

\section{section1}

\end{abstract}

\maketitle

\begin{thm}

Here is the theorem:

AAA

BBB

\begin{thm}

\label{Thm1}This is Theorem 1. \end{thm}

\begin{rem}

This is the Remark. 

\end{rem}

\end{thm}

\end{document}
%%%


Re: pdf font quality improvement after miktex update

2009-06-02 Thread asm23

Uwe Stöhr wrote:

asm23 schrieb:

Since I update my Miktex to the latest package yesterday, I found this 
difference has gone, both cases will give a nice pdf. So we don't need 
these statement in preamble any more.


That's not true. When you use the default fonts, you still get the font 
Computer Modern. You'll see this in the PDF when you zoom to 800 - 
1200 % - the font is pixeld. When you go to the PDF document properties, 
you can see that the used font type it Type 3 which is a bitmap font, 
see attached.



Can someone tell me the reason? Why?


Have you used another PDF viewer of upgrades the existing on?

regards Uwe

Hi, I found a bit difference.

I compiled the lyx file you give me, but compared with the pdf output. 
It seems my generated pdf use Type 1 font.


My environment is Windows XP, and Miktex(updated to latest version), Lyx 
1.6.2.


See the attachment.

Quite strange.



newfile1.lyx
Description: application/lyx


newfile1.pdf
Description: Adobe PDF document


Re: roman numerals for lists

2009-06-02 Thread rgheck

Stefano Franchi wrote:
Notice that Paul's sound advice will only change the numbering in the final 
output NOT in Lyx. 

As far as I know there is still no way to change Lyx's on screen display 
accordingly. Just ignore it and check the pdf every once in a while to make 
sure Latex is producing the output you want


  
I've just posted a patch that will allow this sort of thing in LyX 2.0. 
Unfortunately, it (necessarily) changes the format of the layout files 
and so cannot be backported to (the official version of) 1.6. I may 
patch my own copy, though, and if so will be happy to send you that 
patch, if you want to use it.


I also have a working resume enumeration patch. I.e., one that will 
get the right display with Gunter's enumitem module.


Richard



Re: pdf font quality improvement after miktex update

2009-06-02 Thread Uwe Stöhr

asm23 schrieb:

I compiled the lyx file you give me, but compared with the pdf output. 
It seems my generated pdf use Type 1 font.


My environment is Windows XP, and Miktex(updated to latest version), Lyx 
1.6.2.


Mine too and your LyX example file therefore still uses Computer modern. But in your case it uses an 
outline font (Type 1) version of Computer modern. I guess you have a special setting in MiKTeX, 
because Type 1 Computer modern is not the default.

But nevertheless, the preamble line in the LyX documentation files has its 
entitlement.

regards Uwe


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




Augmented like matrix

2009-06-02 Thread Semih Özmen
Hi,

I need to express the equation which is presented in attachment. 
I could not do the horizontal or vertical lines in to matrix..Any suggestions?attachment: Condensation.JPG

Re: Augmented like matrix

2009-06-02 Thread curtis osterhoudt
Hi, Semih,

   I wasn't able to do this in pure LyX, but if you insert some ERT (ctrl-L) 
and put the following into it, you may get what you want:

$\left[
\begin{array}{cl|c} 
K_{aa}  K_{ai}  0 \\
K_{ia}  K_{ii}  K_{ib} \\ 
\hline 
0  K_{bi}  K_{bb} 
\end{array}  
\right] 
= 
\left[
\begin{array}{c|c} 
K_{mm}  K_{ms} \\ 
\hline
K_{sm}  K_{ss}
\end{array}
\right] $

Perhaps that will help for the time-being.  Note that the vertical 
lines are controlled by the {cl|c} and {c|c} statements right after the 
\begin{array} parts. 

  Cheers, 
   C.O.



 /
Down with categorical imperative!
flutz...@yahoo.com
/





From: Semih Özmen soz...@proyatech.com
To: lyx-users@lists.lyx.org
Sent: Tuesday, June 2, 2009 11:27:36 AM
Subject: Augmented like matrix

 
Hi,
 
I need to express the equation which 
is presented in attachment. 
I could not do the horizontal or vertical lines in 
to matrix..Any suggestions?


  

Re: Augmented like matrix

2009-06-02 Thread James C. Sutherland


On Jun 2, 2009, at 11:27 AM, Semih Özmen wrote:


Hi,

I need to express the equation which is presented in attachment.
I could not do the horizontal or vertical lines in to matrix..Any  
suggestions?

Condensation.JPG


In math mode:

1. create square brackets
2. Insert a matrix (3x3)
3. Right-click a cell in the matrix and choose Add Line to Left/Right
4. Repeat step 3 for any number of horizontal/vertical lines.

Re: Augmented like matrix

2009-06-02 Thread James C. Sutherland



Hi,

I need to express the equation which is presented in attachment.
I could not do the horizontal or vertical lines in to matrix..Any  
suggestions?

Condensation.JPG



In math mode:

1. create square brackets
2. Insert a matrix (3x3)
3. Right-click a cell in the matrix and choose Add Line to Left/Right
4. Repeat step 3 for any number of horizontal/vertical lines.

sorting multiple references in itself

2009-06-02 Thread Semih Özmen
Hi,

I need to sort my multiple references...my references are sorted according to 
their occurence on the file and follows the order quiet well but when I give a 
multiple reference, [21,1,3,7]  can be generated..but I want to sort this group 
in itself automatically.

Any suggestions?

Semih

Re: pdf font quality improvement after miktex update

2009-06-02 Thread asm23

Uwe Stöhr wrote:

asm23 schrieb:

I compiled the lyx file you give me, but compared with the pdf output. 
It seems my generated pdf use Type 1 font.


My environment is Windows XP, and Miktex(updated to latest version), 
Lyx 1.6.2.


Mine too and your LyX example file therefore still uses Computer modern. 
But in your case it uses an outline font (Type 1) version of Computer 
modern. I guess you have a special setting in MiKTeX, because Type 1 
Computer modern is not the default.
But nevertheless, the preamble line in the LyX documentation files has 
its entitlement.


regards Uwe


Thanks for the reply.
In fact, when I installed Lyx 1.6.2, I halt configuration process, 
because it takes too many times.


First, the Miktex seems to be called from some python script, then it 
try to download the need package from internet(Quite strange, the update 
server was automatically changed to XXX.de, seems a server from Germany, 
that not the default setting after Miktex installation).


For me, I don't have a high speed network connection, I can't wait for 
more then 20 minutes updating, then I just close the CMD window, the 
installation finished.


That's maybe the reason my MikTex use a Type1 computer modern font.

My question is:

Since the outline Type 1 font is better than Type 3, why Lyx till use 
Type 3 by default?








Windows Installer

2009-06-02 Thread Nathan
Is there still an issue with the servers for lyx.org?  I can't seem to 
download the Windows installer from your ftp site, and the mirror at 
BerilOS is VERY slow.  It times out constantly.  I'm currently 
downloading from here,but I have to continually monitor it to jump start 
the download whenever it times out too long.


Thanks,
Loki


Re: sorting multiple references in itself

2009-06-02 Thread Guenter Milde
On 2009-06-02, Semih Özmen wrote:

 I need to sort my multiple references...my references are sorted =
 according to their occurence on the file and follows the order quiet =
 well but when I give a multiple reference, [21,1,3,7]  can be =
 generated..but I want to sort this group in itself automatically.

Put

% Compressed, sorted lists of numerical citations: [8,11-16]
\usepackage[noadjust]{cite}

in the LaTeX preamble. (Read the cite doc for alternative options.)

Günter



Re: roman numerals for lists

2009-06-02 Thread Guenter Milde
On 2009-06-02, rgheck wrote:
 Stefano Franchi wrote:

 As far as I know there is still no way to change Lyx's on screen display 
 accordingly. Just ignore it and check the pdf every once in a while to make 
 sure Latex is producing the output you want

 I've just posted a patch that will allow this sort of thing in LyX 2.0.
 Unfortunately, it (necessarily) changes the format of the layout files 
 and so cannot be backported to (the official version of) 1.6. 
...
 I also have a working resume enumeration patch. I.e., one that will 
 get the right display with Gunter's enumitem module.

Could you add this version (together with a link to the documentation
of the new layout file syntax) to the enumitem page at the Wiki?

Günter



Re: Import of LaTex file

2009-06-02 Thread Luca Brandolini
Il giorno sab, 30/05/2009 alle 10.09 -0400, rgheck ha scritto:

 Luca Brandolini wrote:
  Thank you Vincent. 
  Is there any workaround for such a problem?
 

 Yes. Add lines to the appropriate layout file to import the 
 theorems-ams.module file.
 
 I can give more detailed instructions later, but don't hav time now.
 
 Richard
 
 
  Best regards
  Luca
 
 
  Il giorno sab, 30/05/2009 alle 13.42 +0200, Vincent van Ravesteijn ha
  scritto:
 

  Luca Brandolini schreef:
  
  I am a new Lyx user and I would like to import LaTeX files into Lyx.
  Apparently the importer cannot recognize enviroment like theorem, lemma,
  remark, etc.
  Consider this simple example:
 
  %
  \documentclass{article}%
  \newtheorem{theorem}{Theorem}
  \newtheorem{remark}[theorem]{Remark}
  \begin{document}
  \title{prova}
  \author{prova}
  \maketitle
  \begin{abstract}
  Bla bla bla bla
  \end{abstract}
  \section{section1}
  Here is the theorem:
  \begin{theorem}
  \label{Thm1}This is Theorem 1.
  \end{theorem}
  \begin{remark}
  This is the Remark.
  \end{remark}
  \end{document}
  %%%
 
  If you import it into Lyx the \begin{theorem}, \end{theorem}
  \begin{remark}, \end{remark} are not recognized by the importer and you
  simple see it in red into the text.
 
  Am I missing something? Is there any workaround to force Lyx to
  recognize them?
 
  Best regards
  Luca
 
 


  This is bug 5702: http://www.lyx.org/trac/ticket/5702
 
  Vincent
 
 
  
 

 
 


Dear Richard,
   I tried to follow your suggestion. I found the amsart.layout and I
inserted the line
Input theorems-ams.module and I imported the file
%%
\documentclass{amsart}%
\usepackage{amsmath}
\usepackage{amsthm}
\newtheorem{thm}{Theorem}
\newtheorem{rem}[thm]{Remark}

\begin{document}

\title{prova}
\author{prova}
\maketitle

\begin{abstract}
Bla bla bla bla
\end{abstract}



\section{section1}

Here is the theorem:

AAA

BBB

\begin{thm}
\label{Thm1}This is Theorem 1.
\end{thm}


\begin{rem}
This is the Remark.
\end{rem}

\end{document}


The result is almost correct. However the whole document is included in
a \begin{thm} \end{thm} structure.
This is what is shown in the LaTex preview windows after the import.

Best regards
Luca


55


% Anteprima del sorgente

%% LyX 1.6.2 created this file. For more info, see http://www.lyx.org/.

%% Do not edit unless you really know what you are doing.

\documentclass[english]{amsart}

\usepackage[T1]{fontenc}

\usepackage[latin9]{inputenc}

\usepackage{amsthm}

%% Textclass specific LaTeX commands.

\numberwithin{equation}{section} %% Comment out for
sequentially-numbered

\numberwithin{figure}{section} %% Comment out for sequentially-numbered

\theoremstyle{plain}

\theoremstyle{plain}

\newtheorem{thm}{Theorem}

\theoremstyle{remark}

\newtheorem{rem}[thm]{Remark}

%% User specified LaTeX commands.

%

\usepackage{amsthm}

\newtheorem{thm}{Theorem}

\newtheorem{rem}[thm]{Remark}

\usepackage{babel}

\begin{document}

\title{prova}

\author{prova}

\begin{abstract}

Bla bla bla bla 

\section{section1}

\end{abstract}

\maketitle

\begin{thm}

Here is the theorem:

AAA

BBB

\begin{thm}

\label{Thm1}This is Theorem 1. \end{thm}

\begin{rem}

This is the Remark. 

\end{rem}

\end{thm}

\end{document}
%%%


Re: pdf font quality improvement after miktex update

2009-06-02 Thread asm23

Uwe Stöhr wrote:

asm23 schrieb:

Since I update my Miktex to the latest package yesterday, I found this 
difference has gone, both cases will give a nice pdf. So we don't need 
these statement in preamble any more.


That's not true. When you use the default fonts, you still get the font 
Computer Modern. You'll see this in the PDF when you zoom to 800 - 
1200 % - the font is pixeld. When you go to the PDF document properties, 
you can see that the used font type it Type 3 which is a bitmap font, 
see attached.



Can someone tell me the reason? Why?


Have you used another PDF viewer of upgrades the existing on?

regards Uwe

Hi, I found a bit difference.

I compiled the lyx file you give me, but compared with the pdf output. 
It seems my generated pdf use Type 1 font.


My environment is Windows XP, and Miktex(updated to latest version), Lyx 
1.6.2.


See the attachment.

Quite strange.



newfile1.lyx
Description: application/lyx


newfile1.pdf
Description: Adobe PDF document


Re: roman numerals for lists

2009-06-02 Thread rgheck

Stefano Franchi wrote:
Notice that Paul's sound advice will only change the numbering in the final 
output NOT in Lyx. 

As far as I know there is still no way to change Lyx's on screen display 
accordingly. Just ignore it and check the pdf every once in a while to make 
sure Latex is producing the output you want


  
I've just posted a patch that will allow this sort of thing in LyX 2.0. 
Unfortunately, it (necessarily) changes the format of the layout files 
and so cannot be backported to (the official version of) 1.6. I may 
patch my own copy, though, and if so will be happy to send you that 
patch, if you want to use it.


I also have a working resume enumeration patch. I.e., one that will 
get the right display with Gunter's enumitem module.


Richard



Re: pdf font quality improvement after miktex update

2009-06-02 Thread Uwe Stöhr

asm23 schrieb:

I compiled the lyx file you give me, but compared with the pdf output. 
It seems my generated pdf use Type 1 font.


My environment is Windows XP, and Miktex(updated to latest version), Lyx 
1.6.2.


Mine too and your LyX example file therefore still uses Computer modern. But in your case it uses an 
outline font (Type 1) version of Computer modern. I guess you have a special setting in MiKTeX, 
because Type 1 Computer modern is not the default.

But nevertheless, the preamble line in the LyX documentation files has its 
entitlement.

regards Uwe


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




Augmented like matrix

2009-06-02 Thread Semih Özmen
Hi,

I need to express the equation which is presented in attachment. 
I could not do the horizontal or vertical lines in to matrix..Any suggestions?attachment: Condensation.JPG

Re: Augmented like matrix

2009-06-02 Thread curtis osterhoudt
Hi, Semih,

   I wasn't able to do this in pure LyX, but if you insert some ERT (ctrl-L) 
and put the following into it, you may get what you want:

$\left[
\begin{array}{cl|c} 
K_{aa}  K_{ai}  0 \\
K_{ia}  K_{ii}  K_{ib} \\ 
\hline 
0  K_{bi}  K_{bb} 
\end{array}  
\right] 
= 
\left[
\begin{array}{c|c} 
K_{mm}  K_{ms} \\ 
\hline
K_{sm}  K_{ss}
\end{array}
\right] $

Perhaps that will help for the time-being.  Note that the vertical 
lines are controlled by the {cl|c} and {c|c} statements right after the 
\begin{array} parts. 

  Cheers, 
   C.O.



 /
Down with categorical imperative!
flutz...@yahoo.com
/





From: Semih Özmen soz...@proyatech.com
To: lyx-users@lists.lyx.org
Sent: Tuesday, June 2, 2009 11:27:36 AM
Subject: Augmented like matrix

 
Hi,
 
I need to express the equation which 
is presented in attachment. 
I could not do the horizontal or vertical lines in 
to matrix..Any suggestions?


  

Re: Augmented like matrix

2009-06-02 Thread James C. Sutherland


On Jun 2, 2009, at 11:27 AM, Semih Özmen wrote:


Hi,

I need to express the equation which is presented in attachment.
I could not do the horizontal or vertical lines in to matrix..Any  
suggestions?

Condensation.JPG


In math mode:

1. create square brackets
2. Insert a matrix (3x3)
3. Right-click a cell in the matrix and choose Add Line to Left/Right
4. Repeat step 3 for any number of horizontal/vertical lines.

Re: Augmented like matrix

2009-06-02 Thread James C. Sutherland



Hi,

I need to express the equation which is presented in attachment.
I could not do the horizontal or vertical lines in to matrix..Any  
suggestions?

Condensation.JPG



In math mode:

1. create square brackets
2. Insert a matrix (3x3)
3. Right-click a cell in the matrix and choose Add Line to Left/Right
4. Repeat step 3 for any number of horizontal/vertical lines.

sorting multiple references in itself

2009-06-02 Thread Semih Özmen
Hi,

I need to sort my multiple references...my references are sorted according to 
their occurence on the file and follows the order quiet well but when I give a 
multiple reference, [21,1,3,7]  can be generated..but I want to sort this group 
in itself automatically.

Any suggestions?

Semih

Re: pdf font quality improvement after miktex update

2009-06-02 Thread asm23

Uwe Stöhr wrote:

asm23 schrieb:

I compiled the lyx file you give me, but compared with the pdf output. 
It seems my generated pdf use Type 1 font.


My environment is Windows XP, and Miktex(updated to latest version), 
Lyx 1.6.2.


Mine too and your LyX example file therefore still uses Computer modern. 
But in your case it uses an outline font (Type 1) version of Computer 
modern. I guess you have a special setting in MiKTeX, because Type 1 
Computer modern is not the default.
But nevertheless, the preamble line in the LyX documentation files has 
its entitlement.


regards Uwe


Thanks for the reply.
In fact, when I installed Lyx 1.6.2, I halt configuration process, 
because it takes too many times.


First, the Miktex seems to be called from some python script, then it 
try to download the need package from internet(Quite strange, the update 
server was automatically changed to XXX.de, seems a server from Germany, 
that not the default setting after Miktex installation).


For me, I don't have a high speed network connection, I can't wait for 
more then 20 minutes updating, then I just close the CMD window, the 
installation finished.


That's maybe the reason my MikTex use a Type1 computer modern font.

My question is:

Since the outline Type 1 font is better than Type 3, why Lyx till use 
Type 3 by default?








Windows Installer

2009-06-02 Thread Nathan
Is there still an issue with the servers for lyx.org?  I can't seem to 
download the Windows installer from your ftp site, and the mirror at 
BerilOS is VERY slow.  It times out constantly.  I'm currently 
downloading from here,but I have to continually monitor it to jump start 
the download whenever it times out too long.


Thanks,
Loki


Re: sorting multiple references in itself

2009-06-02 Thread Guenter Milde
On 2009-06-02, Semih Özmen wrote:

 I need to sort my multiple references...my references are sorted =
 according to their occurence on the file and follows the order quiet =
 well but when I give a multiple reference, [21,1,3,7]  can be =
 generated..but I want to sort this group in itself automatically.

Put

% Compressed, sorted lists of numerical citations: [8,11-16]
\usepackage[noadjust]{cite}

in the LaTeX preamble. (Read the cite doc for alternative options.)

Günter



Re: roman numerals for lists

2009-06-02 Thread Guenter Milde
On 2009-06-02, rgheck wrote:
 Stefano Franchi wrote:

 As far as I know there is still no way to change Lyx's on screen display 
 accordingly. Just ignore it and check the pdf every once in a while to make 
 sure Latex is producing the output you want

 I've just posted a patch that will allow this sort of thing in LyX 2.0.
 Unfortunately, it (necessarily) changes the format of the layout files 
 and so cannot be backported to (the official version of) 1.6. 
...
 I also have a working resume enumeration patch. I.e., one that will 
 get the right display with Gunter's enumitem module.

Could you add this version (together with a link to the documentation
of the new layout file syntax) to the enumitem page at the Wiki?

Günter



Re: Import of LaTex file

2009-06-02 Thread Luca Brandolini
Il giorno sab, 30/05/2009 alle 10.09 -0400, rgheck ha scritto:

> Luca Brandolini wrote:
> > Thank you Vincent. 
> > Is there any workaround for such a problem?
> >
> >   
> Yes. Add lines to the appropriate layout file to import the 
> theorems-ams.module file.
> 
> I can give more detailed instructions later, but don't hav time now.
> 
> Richard
> 
> 
> > Best regards
> > Luca
> >
> >
> > Il giorno sab, 30/05/2009 alle 13.42 +0200, Vincent van Ravesteijn ha
> > scritto:
> >
> >   
> >> Luca Brandolini schreef:
> >> 
> >>> I am a new Lyx user and I would like to import LaTeX files into Lyx.
> >>> Apparently the importer cannot recognize enviroment like theorem, lemma,
> >>> remark, etc.
> >>> Consider this simple example:
> >>>
> >>> %
> >>> \documentclass{article}%
> >>> \newtheorem{theorem}{Theorem}
> >>> \newtheorem{remark}[theorem]{Remark}
> >>> \begin{document}
> >>> \title{prova}
> >>> \author{prova}
> >>> \maketitle
> >>> \begin{abstract}
> >>> Bla bla bla bla
> >>> \end{abstract}
> >>> \section{section1}
> >>> Here is the theorem:
> >>> \begin{theorem}
> >>> \label{Thm1}This is Theorem 1.
> >>> \end{theorem}
> >>> \begin{remark}
> >>> This is the Remark.
> >>> \end{remark}
> >>> \end{document}
> >>> %%%
> >>>
> >>> If you import it into Lyx the \begin{theorem}, \end{theorem}
> >>> \begin{remark}, \end{remark} are not recognized by the importer and you
> >>> simple see it in red into the text.
> >>>
> >>> Am I missing something? Is there any workaround to force Lyx to
> >>> recognize them?
> >>>
> >>> Best regards
> >>> Luca
> >>>
> >>>
> >>>   
> >>>   
> >> This is bug 5702: http://www.lyx.org/trac/ticket/5702
> >>
> >> Vincent
> >>
> >>
> >> 
> >
> >   
> 
> 


Dear Richard,
   I tried to follow your suggestion. I found the amsart.layout and I
inserted the line
Input theorems-ams.module and I imported the file
%%
\documentclass{amsart}%
\usepackage{amsmath}
\usepackage{amsthm}
\newtheorem{thm}{Theorem}
\newtheorem{rem}[thm]{Remark}

\begin{document}

\title{prova}
\author{prova}
\maketitle

\begin{abstract}
Bla bla bla bla
\end{abstract}



\section{section1}

Here is the theorem:

AAA

BBB

\begin{thm}
\label{Thm1}This is Theorem 1.
\end{thm}


\begin{rem}
This is the Remark.
\end{rem}

\end{document}


The result is almost correct. However the whole document is included in
a \begin{thm} \end{thm} structure.
This is what is shown in the LaTex preview windows after the import.

Best regards
Luca


55


% Anteprima del sorgente

%% LyX 1.6.2 created this file. For more info, see http://www.lyx.org/.

%% Do not edit unless you really know what you are doing.

\documentclass[english]{amsart}

\usepackage[T1]{fontenc}

\usepackage[latin9]{inputenc}

\usepackage{amsthm}

%% Textclass specific LaTeX commands.

\numberwithin{equation}{section} %% Comment out for
sequentially-numbered

\numberwithin{figure}{section} %% Comment out for sequentially-numbered

\theoremstyle{plain}

\theoremstyle{plain}

\newtheorem{thm}{Theorem}

\theoremstyle{remark}

\newtheorem{rem}[thm]{Remark}

%% User specified LaTeX commands.

%

\usepackage{amsthm}

\newtheorem{thm}{Theorem}

\newtheorem{rem}[thm]{Remark}

\usepackage{babel}

\begin{document}

\title{prova}

\author{prova}

\begin{abstract}

Bla bla bla bla 

\section{section1}

\end{abstract}

\maketitle

\begin{thm}

Here is the theorem:

AAA

BBB

\begin{thm}

\label{Thm1}This is Theorem 1. \end{thm}

\begin{rem}

This is the Remark. 

\end{rem}

\end{thm}

\end{document}
%%%


Re: pdf font quality improvement after miktex update

2009-06-02 Thread asm23

Uwe Stöhr wrote:

asm23 schrieb:

Since I update my Miktex to the latest package yesterday, I found this 
difference has gone, both cases will give a nice pdf. So we don't need 
these statement in preamble any more.


That's not true. When you use the default fonts, you still get the font 
"Computer Modern". You'll see this in the PDF when you zoom to 800 - 
1200 % - the font is pixeld. When you go to the PDF document properties, 
you can see that the used font type it "Type 3" which is a bitmap font, 
see attached.



Can someone tell me the reason? Why?


Have you used another PDF viewer of upgrades the existing on?

regards Uwe

Hi, I found a bit difference.

I compiled the lyx file you give me, but compared with the pdf output. 
It seems my generated pdf use "Type 1" font.


My environment is Windows XP, and Miktex(updated to latest version), Lyx 
1.6.2.


See the attachment.

Quite strange.



newfile1.lyx
Description: application/lyx


newfile1.pdf
Description: Adobe PDF document


Re: roman numerals for lists

2009-06-02 Thread rgheck

Stefano Franchi wrote:
Notice that Paul's sound advice will only change the numbering in the final 
output NOT in Lyx. 

As far as I know there is still no way to change Lyx's on screen display 
accordingly. Just ignore it and check the pdf every once in a while to make 
sure Latex is producing the output you want


  
I've just posted a patch that will allow this sort of thing in LyX 2.0. 
Unfortunately, it (necessarily) changes the format of the layout files 
and so cannot be backported to (the official version of) 1.6. I may 
patch my own copy, though, and if so will be happy to send you that 
patch, if you want to use it.


I also have a working "resume enumeration" patch. I.e., one that will 
get the right display with Gunter's enumitem module.


Richard



Re: pdf font quality improvement after miktex update

2009-06-02 Thread Uwe Stöhr

asm23 schrieb:

I compiled the lyx file you give me, but compared with the pdf output. 
It seems my generated pdf use "Type 1" font.


My environment is Windows XP, and Miktex(updated to latest version), Lyx 
1.6.2.


Mine too and your LyX example file therefore still uses Computer modern. But in your case it uses an 
outline font (Type 1) version of Computer modern. I guess you have a special setting in MiKTeX, 
because Type 1 Computer modern is not the default.

But nevertheless, the preamble line in the LyX documentation files has its 
entitlement.

regards Uwe


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




Augmented like matrix

2009-06-02 Thread Semih Özmen
Hi,

I need to express the equation which is presented in attachment. 
I could not do the horizontal or vertical lines in to matrix..Any suggestions?<>

Re: Augmented like matrix

2009-06-02 Thread curtis osterhoudt
Hi, Semih,

   I wasn't able to do this in "pure" LyX, but if you insert some ERT (ctrl-L) 
and put the following into it, you may get what you want:

$\left[
\begin{array}{cl|c} 
K_{aa} & K_{ai} & 0 \\
K_{ia} & K_{ii} & K_{ib} \\ 
\hline 
0 & K_{bi} & K_{bb} 
\end{array}  
\right] 
= 
\left[
\begin{array}{c|c} 
K_{mm} & K_{ms} \\ 
\hline
K_{sm} & K_{ss}
\end{array}
\right] $

Perhaps that will help for the time-being.  Note that the vertical 
lines are controlled by the {cl|c} and {c|c} statements right after the 
"\begin{array}" parts. 

  Cheers, 
   C.O.



 /
Down with categorical imperative!
flutz...@yahoo.com
/





From: Semih Özmen 
To: lyx-users@lists.lyx.org
Sent: Tuesday, June 2, 2009 11:27:36 AM
Subject: Augmented like matrix

 
Hi,
 
I need to express the equation which 
is presented in attachment. 
I could not do the horizontal or vertical lines in 
to matrix..Any suggestions?


  

Re: Augmented like matrix

2009-06-02 Thread James C. Sutherland


On Jun 2, 2009, at 11:27 AM, Semih Özmen wrote:


Hi,

I need to express the equation which is presented in attachment.
I could not do the horizontal or vertical lines in to matrix..Any  
suggestions?




In math mode:

1. create square brackets
2. Insert a matrix (3x3)
3. Right-click a cell in the matrix and choose "Add Line to Left/Right"
4. Repeat step 3 for any number of horizontal/vertical lines.

Re: Augmented like matrix

2009-06-02 Thread James C. Sutherland



Hi,

I need to express the equation which is presented in attachment.
I could not do the horizontal or vertical lines in to matrix..Any  
suggestions?





In math mode:

1. create square brackets
2. Insert a matrix (3x3)
3. Right-click a cell in the matrix and choose "Add Line to Left/Right"
4. Repeat step 3 for any number of horizontal/vertical lines.

sorting multiple references in itself

2009-06-02 Thread Semih Özmen
Hi,

I need to sort my multiple references...my references are sorted according to 
their occurence on the file and follows the order quiet well but when I give a 
multiple reference, [21,1,3,7]  can be generated..but I want to sort this group 
in itself automatically.

Any suggestions?

Semih

Re: pdf font quality improvement after miktex update

2009-06-02 Thread asm23

Uwe Stöhr wrote:

asm23 schrieb:

I compiled the lyx file you give me, but compared with the pdf output. 
It seems my generated pdf use "Type 1" font.


My environment is Windows XP, and Miktex(updated to latest version), 
Lyx 1.6.2.


Mine too and your LyX example file therefore still uses Computer modern. 
But in your case it uses an outline font (Type 1) version of Computer 
modern. I guess you have a special setting in MiKTeX, because Type 1 
Computer modern is not the default.
But nevertheless, the preamble line in the LyX documentation files has 
its entitlement.


regards Uwe


Thanks for the reply.
In fact, when I installed Lyx 1.6.2, I halt configuration process, 
because it takes too many times.


First, the Miktex seems to be called from some python script, then it 
try to download the need package from internet(Quite strange, the update 
server was automatically changed to XXX.de, seems a server from Germany, 
that not the default setting after Miktex installation).


For me, I don't have a high speed network connection, I can't wait for 
more then 20 minutes updating, then I just close the CMD window, the 
installation finished.


That's maybe the reason my MikTex use a Type1 computer modern font.

My question is:

Since the outline Type 1 font is better than Type 3, why Lyx till use 
Type 3 by default?








Windows Installer

2009-06-02 Thread Nathan
Is there still an issue with the servers for lyx.org?  I can't seem to 
download the Windows installer from your ftp site, and the mirror at 
BerilOS is VERY slow.  It times out constantly.  I'm currently 
downloading from here,but I have to continually monitor it to jump start 
the download whenever it times out too long.


Thanks,
Loki


Re: sorting multiple references in itself

2009-06-02 Thread Guenter Milde
On 2009-06-02, Semih Özmen wrote:

> I need to sort my multiple references...my references are sorted =
> according to their occurence on the file and follows the order quiet =
> well but when I give a multiple reference, [21,1,3,7]  can be =
> generated..but I want to sort this group in itself automatically.

Put

% Compressed, sorted lists of numerical citations: [8,11-16]
\usepackage[noadjust]{cite}

in the LaTeX preamble. (Read the "cite" doc for alternative options.)

Günter



Re: roman numerals for lists

2009-06-02 Thread Guenter Milde
On 2009-06-02, rgheck wrote:
> Stefano Franchi wrote:

>> As far as I know there is still no way to change Lyx's on screen display 
>> accordingly. Just ignore it and check the pdf every once in a while to make 
>> sure Latex is producing the output you want

> I've just posted a patch that will allow this sort of thing in LyX 2.0.
> Unfortunately, it (necessarily) changes the format of the layout files 
> and so cannot be backported to (the official version of) 1.6. 
...
> I also have a working "resume enumeration" patch. I.e., one that will 
> get the right display with Gunter's enumitem module.

Could you add this version (together with a link to the documentation
of the new layout file syntax) to the enumitem page at the Wiki?

Günter