Re: Unicode help

2010-10-31 Thread Stephan Witt
Am 01.11.2010 um 05:25 schrieb Daron Wilson:

> Hi all.
> 
> I've recently started using LyX, and I've downloaded the 2.0 alpha 6 version 
> used with Mac OS X.  I have only one issue so far, and that concerns the use 
> of Unicode, in particular polytonic Greek (entered using the Polytonic Greek 
> keyboard layout supplied by Apple).
> 
> I'm relatively new to Unicode, so I apologize upfront if my terminology or 
> understanding of how it works is a little off.
> 
> Whenever I input a Greek character with any kind of combining accent, the 
> correct combination is entered, but LyX repeats the vowel, minus the accents. 
>  For example, trying to input circumflex-upsilon always results in 
> circumflex-upsilon upsilon:
> 
> ῦ always turns into ῦυ.
> 
> The same thing happens for any letter combined with accent marks.  The 
> problem does not happen in any of the other document editing programs on my 
> Mac, so I'm assuming this is something within LyX itself.

You're right. More exactly it's within a library framework the LyX package 
contains - the Qt library, responsible for display I/O of LyX.
It's a known problem. You may find a discussion of that here: 
http://www.lyx.org/trac/ticket/6706

> I have wondered if this has something to do with some kind of 
> automatic-replacement feature in LyX, but I don't know enough to figure it 
> out.
> 
> Thanks in advance for any solutions or pointers in the right direction.

The solution is to fix the problem in the Qt-libraries.
I think it will be fixed with the next LyX package (hopefully beta1).

Stephan

Unicode help

2010-10-31 Thread Daron Wilson
Hi all.

I've recently started using LyX, and I've downloaded the 2.0 alpha 6 version 
used with Mac OS X.  I have only one issue so far, and that concerns the use of 
Unicode, in particular polytonic Greek (entered using the Polytonic Greek 
keyboard layout supplied by Apple).

I'm relatively new to Unicode, so I apologize upfront if my terminology or 
understanding of how it works is a little off.

Whenever I input a Greek character with any kind of combining accent, the 
correct combination is entered, but LyX repeats the vowel, minus the accents.  
For example, trying to input circumflex-upsilon always results in 
circumflex-upsilon upsilon:

ῦ always turns into ῦυ.

The same thing happens for any letter combined with accent marks.  The problem 
does not happen in any of the other document editing programs on my Mac, so I'm 
assuming this is something within LyX itself.

I have wondered if this has something to do with some kind of 
automatic-replacement feature in LyX, but I don't know enough to figure it out.

Thanks in advance for any solutions or pointers in the right direction.

Daron




VSpace Crash [was: import fail on working latex doc]

2010-10-31 Thread Richard Heck

On 10/31/2010 05:42 AM, Scott Otterson wrote:
Has anyone seen this problem before?  I have a short latex document 
(below the dotted line) that latex crunches without error.  However, 
when I try to import it into lyx (file-->import plain latex) lyx 
manages to create a .lyx file but then hangs forever when it tries to 
read it (I've also put the output .lyx file below the dotted line).


Here's what cygwin lyx 1.6.6 sends to the command shell when it tries 
to read the .lyx file:


Warning: #LyX file created by tex2lyx 1.6.6
BufferParams::readToken(): Unknown token: default
BufferParams.cpp(2365): Unknown inputenc value `\font_roman'.
Using `auto' inst\
ead.



There is a tex2lyx issue here: For some reason, the LyX file has just:
\inputencoding
with no argument. But that's not the real issue.


I have the same problem with lyx 1.6.7 on Windows 7 and 1.6.6 on Ubuntu.


In debug mode, it crashes. I'm seeing an infinite loop in this code:

int VSpace::inPixels(BufferView const & bv) const
{
// Height of a normal line in pixels (zoom factor considered)
int const default_height = defaultRowHeight();

switch (kind_) {

case DEFSKIP:
return bv.buffer().params().getDefSkip().inPixels(bv);

It seems that bv.buffer().params().getDefSkip() is just a VSpace, and so 
this calls itself.


The cause seems to be the line:
\defskip 0.75\baselineskip
If this is changed to "default", the crash disappears. I guess this 
never gets handled in the VSpace constructor?


Richard



0lyx::VSpace::inPixelsVSpace.cpp5180x006a0b0f
1lyx::VSpace::inPixelsVSpace.cpp5180x006a0b32
2lyx::VSpace::inPixelsVSpace.cpp5180x006a0b32
3lyx::VSpace::inPixelsVSpace.cpp5180x006a0b32
4lyx::TextMetrics::rowHeightTextMetrics.cpp1076
0x00677bd3
5lyx::TextMetrics::redoParagraphTextMetrics.cpp459
0x0067f1b5
6lyx::BufferView::updateMetricsBufferView.cpp2476
0x006cc4d0
7lyx::BufferView::resizeBufferView.cpp1933
0x006cc702
8lyx::frontend::GuiWorkArea::initGuiWorkArea.cpp273
0x009cd83d
9lyx::frontend::GuiWorkArea::GuiWorkAreaGuiWorkArea.cpp
2510x009ceda3
10lyx::frontend::TabWorkArea::addWorkAreaGuiWorkArea.cpp
15750x009d5964
11lyx::frontend::GuiView::addWorkAreaGuiView.cpp1152
0x009ab8be
12lyx::frontend::GuiView::setBufferGuiView.cpp1330
0x009b26aa
13lyx::frontend::GuiView::loadDocumentGuiView.cpp1819
0x009b4a93
14lyx::frontend::GuiView::openDocumentGuiView.cpp1897
0x009b7b54
15lyx::frontend::GuiApplication::dispatchGuiApplication.cpp
13300x00988b0f
16lyx::frontend::GuiApplication::dispatchGuiApplication.cpp
10960x009813b9

17lyx::dispatchLyX.cpp12280x005a2218
18lyx::frontend::Action::actionAction.cpp66
0x00a1d023
19lyx::frontend::Action::qt_metacallmoc_Action.cpp77
0x00a1d083

20QMetaObject::activateqobject.cpp32950x00313ab66606
... 




fail.lyx
Description: application/lyx


Re: default margin sizes

2010-10-31 Thread Stephan Witt
Am 31.10.2010 um 19:16 schrieb S Nedunuri:

> hello, how do you find out the default margin (left, top, etc.) settings for 
> a given document class? Page Margins under Doc Settings just allows you to 
> change the defaults but doesn't show what they are. The following article 
> http://wiki.lyx.org/Tips/PaperLayout says "Then open in your document an 
> ERT-box (shortcut C-L) and insert the command \layout. When exporting the 
> document, you will get a picture similar to this: paperDistances". However, 
> i just get a complaint from the lyx compiler saying that \layout is an 
> undefined control sequence

The wiki article says "To use it, add to the preamble: \usepackage{layout}".

Did you do so?

Stephan

default margin sizes

2010-10-31 Thread S Nedunuri
hello, how do you find out the default margin (left, top, etc.) settings for 
a given document class? Page Margins under Doc Settings just allows you to 
change the defaults but doesn't show what they are. The following article 
http://wiki.lyx.org/Tips/PaperLayout says "Then open in your document an 
ERT-box (shortcut C-L) and insert the command \layout. When exporting the 
document, you will get a picture similar to this: paperDistances". However, 
i just get a complaint from the lyx compiler saying that \layout is an 
undefined control sequence

cheers! 





Science Direct in JabRef

2010-10-31 Thread Waluyo Adi Siswanto
Dear All

It has been a while my JabRef cannot fetch citation data from Science
Direct anymore. It was OK.
Can anyone help me to make this work.

Regards
Waluyo


Re: Indentation of Itemize environments in KOMA-Script

2010-10-31 Thread Martin
Marcelo Acuña  yahoo.com.ar> writes:

> 
> 
> >>>I am using the KOMA-Script article class to
> write a short manual. I have noticed that the bullet lists (itemize
> environment) are not indented from the text body, but that enumerate
> environments are (see attached screenshots from the PDF output). I read
> the KOMA-Script manual and I see no option that would allow me to set
> this first-level indentation. Furthermore, on page 98 of the
> KOMA-Script manual (section 3.6.4: Lists), there is a basic itemize
> environment example, where we can clearly see indentation of the first
> bullet level from the main text body.Is there something from another package
that could cause this ? I
> am only using basic LyX functionality, with Babel (english and frenchb
> loaded, english is used).Thanks in advance for any hints or ideas. I have
several bullet lists and the lack of indentation really looks odd.
> >>> tweaklist package allows to adapt all the parameters.Marcelo
> 
The trouble with tweaklist is that, even in an empty KOMA-Script article, the
inclusion of \usepackage{tweaklist} leads to the 
LaTeX Error: Command \description already defined

The module you may want is enumitem (http://wiki.lyx.org/Tips/Enumitem)






import fail on working latex doc

2010-10-31 Thread Scott Otterson
Has anyone seen this problem before?  I have a short latex document (below
the dotted line) that latex crunches without error.  However, when I try to
import it into lyx (file-->import plain latex) lyx manages to create a .lyx
file but then hangs forever when it tries to read it (I've also put the
output .lyx file below the dotted line).

Here's what cygwin lyx 1.6.6 sends to the command shell when it tries to
read the .lyx file:

Warning: #LyX file created by tex2lyx 1.6.6

BufferParams::readToken(): Unknown token: default

BufferParams.cpp(2365): Unknown inputenc value `\font_roman'. Using `auto'
inst\
ead.



I have the same problem with lyx 1.6.7 on Windows 7 and 1.6.6 on Ubuntu.

Any clues would be greatly appreciated!

Scott

- test.tex ---

\documentclass[a4paper,10pt,fleqn]{article}


\usepackage[english]{babel}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{inputenc}
\usepackage{graphicx}
\usepackage[square,comma,sort&compress]{natbib}
\graphicspath{{../images/}}
\usepackage{url}
\usepackage{color}
\usepackage{subfigure}
\usepackage{setspace}
\usepackage[small,sc,bf]{caption}
\renewcommand{\captionfont}{\small\itshape}
\usepackage[dvips,bookmarks,bookmarksnumbered,colorlinks,linkcolor=black,filecolor=black,urlcolor=black,citecolor=blue]{hyperref}

% Fonts
%\usepackage{newcent} %palatino %times

% Line spacing
\renewcommand{\baselinestretch}{1.05}

% Citation format
\bibpunct{[}{]}{,}{n}{\hspace{-1mm}}{,}
%\citestyle{nature}
\renewcommand{\bibnumfmt}[1]{#1.}

% Page format
\setlength{\topmargin}{-5mm}
\setlength{\oddsidemargin}{0mm}
\setlength{\evensidemargin}{\oddsidemargin}
\setlength{\textwidth}{160mm}
\setlength{\textheight}{237mm}
\setlength{\parskip}{0.75\baselineskip}
\setlength{\parindent}{0pt}
\setlength{\bibsep}{0.25\baselineskip}

% Useful commands
\newcommand{\Pn}{$P_n$}
\newcommand{\argmin}{\mathop{\mathrm{arg\,min}}}
\newcommand{\vs}{\vspace{1mm}}
\newcommand{\vsm}{\vspace{2mm}}
\newcommand{\vst}{\vspace{3mm}}
\newcommand{\ie}{i.e.\ }
\newcommand{\eg}{e.g.\ }
\newcommand{\cf}{cf.\ }
\newcommand{\etal}{\it{et al.\ }}
\newcommand{\myit}[1]{\textit{#1}}
\newcommand{\abstitle}{{\bf{Abstract}}}
\newcommand{\abstext}[1]{\small{#1}}




\begin{document}



% Title Page
\thispagestyle{empty}
%{\footnotesize{Technical Report - DTU - Informatics and Mathematical
%Modelling (\today)}}\\
{\footnotesize{\it published in} Wind Energy (2008)}


\vspace{1.2cm}
\begin{spacing}{1.6}
{\LARGE{\textbf{A \\
  Title}}}

\end{spacing}


\vspace{1cm}
\begin{spacing}{1.1}
\small{{\textbf{Scott Otterson$^*$, Pierre Pinson}}}\\
\noindent
\vsm
\footnotesize{DTU Informatics, Technical
  University of Denmark, Lyngby, Denmark\\}
\small{{\textbf{Another author}}}\\
\noindent
\footnotesize{A company, H{\o}rsholm, Denmark\\}
\vsm
\footnotesize{DTU Informatics, Technical University of Denmark,
  Lyngby, Denmark\\}
\end{spacing}



\vspace{1.4cm}
\begin{table}[!h]
 \centering
 \begin{tabular}{p{150mm}}
  \hline
  \\
  {\abstitle} \\
  \\
  \begin{spacing}{0.9}
   {\abstext{Short-term (up to 2-3 days ahead) probabilistic forecasts of
wind power provide forecast users with a highly valuable
   information on the uncertainty of expected wind
   generation.}}
  \end{spacing}
  \\
  \begin{spacing}{0.9}
{\small{ \textbf{Keywords:} wind power, forecasting, uncertainty,
   multivariate Gaussian random variable, scenarios.}}
  \end{spacing}\\
  \hline
 \end{tabular}
\end{table}


\vspace{1.4cm}
\begin{spacing}{0.9}
 {\footnotesize{$^{*}$  \myit{Corresponding author:}}}\\
 {\footnotesize{S. Otterson,  \href{http://www.imm.dtu.dk}{DTU
 Informatics}, \href{http://www.dtu.dk}{Technical University of
 Denmark}, }}\\
 {\footnotesize{Richard Petersens Plads (bg.\ 305 - 010),
 DK-2800 Kgs.\ Lyngby, Denmark.}}\\
 {\footnotesize{Tel: +45 3421 3438, fax: +45 4588 2673, email:
 \href{mailto:s...@imm.dtu.dk}{scot@imm.dtu.dk}}, webpage:
 \href{http://www2.imm.dtu.dk/~scot}{www.imm.dtu.dk/$\sim$scot}}
\end{spacing}


\end{document}


 test.lyx (the file created when lyx imports test.tex


#LyX file created by tex2lyx 1.6.6
\lyxformat 264
\begin_document
\begin_header
\textclass article
\begin_preamble



\usepackage{amsfonts}\graphicspath{{../images/}}
\...@ifundefined{definecolor}
 {\usepackage{color}}{}
\usepackage{subfigure}\usepackage[small,sc,bf]{caption}\renewcommand{\captionfont}{\small\itshape}
\usepackage[dvips,bookmarks,bookmarksnumbered,colorlinks,linkcolor=black,filecolor=black,urlcolor=black,citecolor=blue]{hyperref}%
Fonts
%\usepackage{newcent} %palatino %times

% Line spacing
\renewcommand{\baselinestretch}{1.05}

% Citation format
\bibpunct{[}{]}{,}{n}{\hspace{-1mm}}{,}
%\citestyle{nature}
\renewcommand{\bibnumfmt}[1]{#1.}

% Page format
\setlength{\topmargin}{-5mm}
\setlength{\oddsidemargin}{0mm}
\setlength{\evensidemargin}{\oddsidemargin}
\setlength{\textwidth}{160mm}
\setlength{\textheight}{237mm}


\setlengt