Re: Compose key again

2011-11-08 Thread Daniel Lundsgaard Skovenborg

 Ubuntu upgrades have a tendency to reset your input module to whatever
 their new default is. I have to reset my input module to XIM otherwise I
 can't type Cherokee properly every upgrade.


I tried im-switch to change the input method; was that what you meant? If
I change it to xim the compose key works, but I need iBus to write Hebrew
and Greek. Any ideas?

Regards,
Daniel


Re: change from 'display formula' to 'numbered formula'

2011-11-08 Thread Guenter Milde
On 2011-11-07, Liviu Andronic wrote:
 On Mon, Nov 7, 2011 at 9:44 PM, Liviu Andronic landronim...@gmail.com wrote:
 Dear all
 Is there a lyx-ish way to change a formula from 'display' to
 'numbered'? 

 To answer my own question, it suffices to access the context menu in
 math and select the appropriate numbering option.

 The wiki suggests [1] to put

 \renewcommand\[{\begin{equation}}
 \renewcommand\]{\end{equation}}

 in the document preamble

This is the workaround for the case that you want *all* equations
numbered without the need to access the context menu for each one.

Günter



Feedback on converting (Scientific Word) Latex beamer to Lyx Beamer

2011-11-08 Thread Murat Yildizoglu
Hello,

I have been successful to to convert all chapters of a course to Beamer in
Lyx now.
I would like to share with you the process I have created for this. That
could maybe also help tex2lyx developers.

I have for start an old beamer document in Latex, created in Scientific
Word, so quite polluted by comment lines.

When I directly import this kind of file in Lyx, I get a document quite
dirty and impossible to compile out of the box.
So, I have to clean it up a little bit to get the job done. Under OSX, I
use TextShop for automating, as much as possible, this cleaning, but you
can do it with any text processing tool (even at the command line in Linux
for exemple), that are able to search and replace text Search  Replace
under WIndows, for example).

A/ Cleaning the initial Latex file created by SW in portable latex format
(pure Latex + comments by SW for specific functionality)

1/ Delete all comment lines (SW puts lots of them) (Just search the regular
expression %.* and replace it by nothing or a space

2/ Replace all \begin{frame} by ---Begin-Frame --

3/ Replace all \end{frame} by ---End-Frame --

4/Change  the document class to article (not to get the automatic insertion
of frame commands by Lyx, during the import)

5/ Clean the tables: Group the instructions for each row of the table on a
single line (without a carriage return). That helps a lot the import of the
tables. You will get a lot of problems otherwise.

6/ Clean color instructions (they do not live up to the import process,
strangely)

7/ Import the Latex document in Lyx


B/ Reformatting the text in Lyx


1/ Convert the document  class to Presentation(beamer)

2/ Insert Introduire a EndFrame  style at the end of the document

3/ Replace --Beg-Frame -  instructions by BeginFrame  style instructions
and delete ---End-Frame-- instructions

4/ Reintroduce the color instructions using Lyx's character formatting menu

5/ If you want to do a partial compiling to check the frames you have
corrected, you can insert, in an ERT

\lyxframeend{}\end{document} at the end of the last corrected frame and
before the next BeginFrame style.


That is not a fool proof, neither automatic process, but it is quite
straigthforward  and quick.


If tex2Lyx was better able the conversion of strangely formatted tabulars
(correct syntax, but each  row dispersed over several lines of text) that
would make the process much quicker, since, formatting the rows one by one
manually is not very quick, neither very interesting ;-)

I hope that this can be useful to someone.


Regards,


Murat

-- 
Prof. Murat Yildizoglu

Université Montesquieu Bordeaux IV
GREThA (UMR CNRS 5113)
Avenue Léon Duguit
33608 Pessac cedex
France

yi...@u-bordeaux4.fr

http://yildizoglu.info

http://www.twitter.com/yildizoglu


Table and Figure Lables and Cross-References ... Still

2011-11-08 Thread Rich Shepard

  There is definitely something different in version 2.0.1 from the earlier
versions I've used for years, and not in a good way. I changed the document
class from article (more fonts) to report-KOMAscript and this makes no
difference.

  I've commented out \numberwithin{figure}{section} and
\numberwithin{table}{section} yet there are still discrepancies between the
table/figure caption number and the reference in the text. I have the
cross-reference set to insert the table/figure number and page.

  Here's an example from the document; I can strip everything but this from
the document if desired:

  In the text this table is in subsection 3.1.1.1 and reads, Table 3.1.1.1
displays the key points ... Just below that, on the same page is the table
marked, Table 3.1.: Descriptive statistics 

  If I uncomment the 'numberwithin' commands in the preamble the
cross-reference in the text remains, Table 3.1.1.1 displays the key points
... while the table itself is now designated, Table 3.1.1.1.: Descriptive
statistics 

  Is this a bug? Is there a work-around for this other than my entering the
table references manually?

TIA,

Rich


Drawing with Pgfplots from file

2011-11-08 Thread Churilov Sergey
Hi,

I am using pgfplots package to draw some diagrams from LyX. The following 
syntax entered into TEX code works fine.
\begin{tikzpicture}
\begin{axis}[xlabel=Cost, ylabel=Error]
\addplot[color=red,mark=x] coordinates {
(2,-2.8559703)
(3,-3.5301677)
(4,-4.3050655)
(5,-5.1413136)
(6,-6.0322865)
(7,-6.9675052)
(8,-7.9377747)
};
\end{axis}
\end{tikzpicture}


But, if I want to plot from a file, I get errors:
-! Package pgfplots Error: sorry, plot file{umwc1.dat} could not be opened.
-! Package pgfplots Warning: the current plot has no coordinates (or all 
have be en filtered away)
-! Package pgfplots Warning: You have an axis with empty range. Replacing it 
with a default range and clearing all plots.

The code is:
\begin{tikzpicture}
\begin{axis}[xlabel=Cost, ylabel=Error]
\addplot file {data.dat};
\end{axis}
\end{tikzpicture}

data.dat file contains two columns with the numbers from previous example.

What could be the problem here?

Kind regards,
Sergey

Re: Drawing with Pgfplots from file

2011-11-08 Thread Spyros Stathopoulos
The problem is not with pgfplots but with the data file. It seems that 
LyX cannot reference files that are mentioned in ERT using relative 
paths. It arises because LyX does not copy the required file over at 
the temporary build directory, since ERT code is injected verbatim to 
the produced TeX source. It would also like to know if there is a 
solution for this problem without resorting to absolute paths.

Spyros

On Tue 08 Nov 2011 05:39:15 PM EET, Churilov Sergey wrote:
 Hi,
  
 I am using pgfplots package to draw some diagrams from LyX. The following
 syntax entered into TEX code works fine.
 \begin{tikzpicture}
 \begin{axis}[xlabel=Cost, ylabel=Error]
 \addplot[color=red,mark=x] coordinates {
 (2,-2.8559703)
 (3,-3.5301677)
 (4,-4.3050655)
 (5,-5.1413136)
 (6,-6.0322865)
 (7,-6.9675052)
 (8,-7.9377747)
 };
 \end{axis}
 \end{tikzpicture}
  
  
 But, if I want to plot from a file, I get errors:
 -! Package pgfplots Error: sorry, plot file{umwc1.dat} could not be opened.
 -! Package pgfplots Warning: the current plot has no coordinates (or all have
 be en filtered away)
 -! Package pgfplots Warning: You have an axis with empty range. Replacing it
 with a default range and clearing all plots.
  
 The code is:
 \begin{tikzpicture}
 \begin{axis}[xlabel=Cost, ylabel=Error]
 \addplot file {data.dat};
 \end{axis}
 \end{tikzpicture}
  
 data.dat file contains two columns with the numbers from previous example.
  
 What could be the problem here?
  
 Kind regards,
 Sergey




Re: Table and Figure Lables and Cross-References ... Still

2011-11-08 Thread Rich Shepard

On Tue, 8 Nov 2011, Liviu wrote:


Could you post to the list a minimal LyX file exhibiting this issue?


  So I have on the attached. See pages 7 and 8 (table reference and table)
and page 12 (figure and figure reference).

Rich#LyX 2.0 created this file. For more info see http://www.lyx.org/
\lyxformat 413
\begin_document
\begin_header
\textclass scrbook
\begin_preamble
\date{}
\usepackage{textcomp, url}
\numberwithin{figure}{section}
\numberwithin{table}{section}
\setkomafont{sectioning}{\rmfamily}
\end_preamble
\use_default_options false
\begin_modules
theorems-ams
\end_modules
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding global
\font_roman palatino
\font_sans default
\font_typewriter default
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100

\graphics default
\default_output_format pdf2
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize letterpaper
\use_geometry false
\use_amsmath 1
\use_esint 0
\use_mhchem 1
\use_mathdots 1
\cite_engine basic
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\use_refstyle 0
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\quotes_language english
\papercolumns 1
\papersides 2
\paperpagestyle fancy
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Title
Title
\end_layout

\begin_layout Author
Author
\end_layout

\begin_layout Part
Introduction
\end_layout

\begin_layout Standard
Some text goes here.
\end_layout

\begin_layout Chapter
The Data Set
\end_layout

\begin_layout Standard
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
 voluptua.
 At vero eos et accusam et justo duo dolores et ea rebum.
 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
 sit amet.
 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
 voluptua.
 At vero eos et accusam et justo duo dolores et ea rebum.
 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
 sit amet.
 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
 voluptua.
 At vero eos et accusam et justo duo dolores et ea rebum.
 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
 sit amet.
\end_layout

\begin_layout Standard
Table
\begin_inset CommandInset ref
LatexCommand vref
reference tab: times and rows

\end_inset

 plot for this text.
\begin_inset Float table
wide false
sideways false
status open

\begin_layout Plain Layout
\begin_inset CommandInset label
LatexCommand label
name tab: times and rows

\end_inset


\begin_inset Caption

\begin_layout Plain Layout
Time periods of available data, and the total number of analytical results,
 for each stream.
\end_layout

\end_inset


\end_layout

\begin_layout Plain Layout
\align center
\begin_inset Tabular
lyxtabular version=3 rows=10 columns=4
features tabularvalignment=middle
column alignment=left valignment=top width=0
column alignment=center valignment=top width=0
column alignment=center valignment=top width=0
column alignment=center valignment=top width=0
row
cell multicolumn=1 alignment=center valignment=top topline=true 
bottomline=true usebox=none
\begin_inset Text

\begin_layout Plain Layout
Stream Name
\end_layout

\end_inset
/cell
cell alignment=center valignment=top topline=true bottomline=true 
usebox=none
\begin_inset Text

\begin_layout Plain Layout
Start Date
\end_layout

\end_inset
/cell
cell alignment=center valignment=top topline=true bottomline=true 
usebox=none
\begin_inset Text

\begin_layout Plain Layout
End Date
\end_layout

\end_inset
/cell
cell alignment=center valignment=top topline=true bottomline=true 
usebox=none
\begin_inset Text

\begin_layout Plain Layout
Number of Analyses
\end_layout

\end_inset
/cell
/row
row
cell alignment=left valignment=top usebox=none
\begin_inset Text

\begin_layout Plain Layout

\end_layout

\end_inset
/cell
cell alignment=center valignment=top usebox=none
\begin_inset Text

\begin_layout Plain Layout
1978-09-01
\end_layout

\end_inset
/cell
cell alignment=center valignment=top usebox=none
\begin_inset Text

\begin_layout Plain Layout
2011-05-18
\end_layout

\end_inset
/cell
cell alignment=center valignment=top usebox=none
\begin_inset Text

\begin_layout Plain Layout
2472
\end_layout

\end_inset
/cell
/row
row
cell alignment=left valignment=top usebox=none
\begin_inset Text

\begin_layout Plain Layout

\end_layout

\end_inset
/cell
cell 

Re: Table and Figure Lables and Cross-References ... Still

2011-11-08 Thread Liviu Andronic
On Tue, Nov 8, 2011 at 6:47 PM, Rich Shepard rshep...@appl-ecosys.com wrote:
 On Tue, 8 Nov 2011, Liviu Andronic wrote:

 Could you post to the list a minimal LyX file exhibiting this issue?

 Liviu,

  Done. Here's your copy.

I've played a bit and I'm not sure what exactly is wrong, however two points:
- the labels are usually put within the caption (at least this is what I do)
- the issue is clearly with
\numberwithin{figure}{section}
\numberwithin{table}{section}

I tried adding
\numberwithin{figure}{chapter}
\numberwithin{table}{chapter}
\numberwithin{figure}{part}
\numberwithin{table}{part}

and the results differ. Maybe this is what you want. Otherwise, you
can do this manually by resetting the counters. See [1] and [2].

Regards
Liviu

[1] https://en.wikibooks.org/wiki/LaTeX/Advanced_Topics
[2] http://www.personal.ceu.hu/tex/counters.htm


 Rich

 --
 Richard B. Shepard, Ph.D.          |   Integrity - Credibility - Innovation
 Applied Ecosystem Services, Inc.   |    Helping Ensure Our Clients' Futures
 http://www.appl-ecosys.com     Voice: 503-667-4517      Fax: 503-667-8863



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


Re: lyx doesn't find any .cls files

2011-11-08 Thread José Matos
On 11/03/2011 03:17 PM, Richard Heck wrote:
 The previously reported
 problems were due to this being Python 3.x, which is not backwards
 compatible (why not!?) and will not properly run the configure script.

Because after 20 years you find that some of your initial choices are
sub-optimal and are dragging other features.

One of the most obvious examples is the real division.

Until python 2.x we have that

3/2 - 1 (integer division)

3./2 - 1.5

while in python 3 we have that

3/2 - 1.5

3.//2 - 1.0 (integer division for general numbers)

It would be impossible to do this change without breaking compatibility
and it was precisely that the purpose of python 3, to be an once in a
long time event where backwards compatibility is broken.

-- 
José Matos



Re: Table and Figure Lables and Cross-References ... Still

2011-11-08 Thread Rich Shepard

On Tue, 8 Nov 2011, Liviu Andronic wrote:


I've played a bit and I'm not sure what exactly is wrong, however two points:
- the labels are usually put within the caption (at least this is what I
do)


Liviu,

  I ask that you and the list subscribers accept my apologies for
mis-placing the labels. I didn't check before adding them and they do belong
within the caption, not outside it.

  Re-placing the labels and leaving \numberwithin{}{} in the preamble fixed
the problem. It was all related to the labels being outside the caption box
itself.

Mea culpa!

Rich


Spacing Within List of Figures and List of Tables

2011-11-08 Thread Rich Shepard

  I don't see an entry in TLC2 for this, but think that I faced this problem
in the past and solved it somehow. But, I can't find a document with the
solution so I ask you folks for a clue stick.

  The numbers and captions in the List of Figures and List of Tables have no
spaces between them and the caption text. I have a space between the label
and text in each caption but that does not seem to be sufficient. It must be
something simple that I'm missing but I am not seeing it.

Rich


Re: Spacing Within List of Figures and List of Tables

2011-11-08 Thread Rich Shepard

On Tue, 8 Nov 2011, Rich Shepard wrote:


 The numbers and captions in the List of Figures and List of Tables have no
spaces between them and the caption text.


  See attached .pdf files.

Rich

figure-list.pdf
Description: Adobe PDF document


table-list.pdf
Description: Adobe PDF document


Re: Spacing Within List of Figures and List of Tables

2011-11-08 Thread Liviu Andronic
On Tue, Nov 8, 2011 at 9:51 PM, Rich Shepard rshep...@appl-ecosys.com wrote:
 On Tue, 8 Nov 2011, Rich Shepard wrote:

  The numbers and captions in the List of Figures and List of Tables have
 no
 spaces between them and the caption text.

  See attached .pdf files.

I don't know what's wrong, though I'm wondering whether it has
anything to do with their spanning over two lines. Two suggestions:
- see if 'tocloft' can do anything for you
- this would be an ugly hack, but you could always add a couple of
protected spaces (ctrl+space in LyX or ~ in LaTeX) in front of your
captions.

Regards
Liviu


Re: Spacing Within List of Figures and List of Tables

2011-11-08 Thread Rich Shepard

On Tue, 8 Nov 2011, Liviu Andronic wrote:


I don't know what's wrong, though I'm wondering whether it has
anything to do with their spanning over two lines.


Liviu,

  I don't know how being multilined can affect the spacing between the
numbers and the first letter of the top line for each one. Something changed
and apparently had unintended consequences with figure and table listings.


Two suggestions:
- see if 'tocloft' can do anything for you


  It should. However, ... I need a pointer to installing it:

[root@salmo ~]# tlmgr install tocloft
/usr/share/texmf/bin/tlmgr: open(/usr/share/tlpkg/texlive.tlpdb) failed: No
such file or directory at /usr/share/tlpkg/TeXLive/TLPDB.pm line 327.

  I have texlive-20110705 installed here.

Thanks,

Rich



Re: Spacing Within List of Figures and List of Tables

2011-11-08 Thread Liviu Andronic
On Tue, Nov 8, 2011 at 10:25 PM, Rich Shepard rshep...@appl-ecosys.com wrote:
 - see if 'tocloft' can do anything for you

  It should. However, ... I need a pointer to installing it:

 [root@salmo ~]# tlmgr install tocloft
 /usr/share/texmf/bin/tlmgr: open(/usr/share/tlpkg/texlive.tlpdb) failed: No
 such file or directory at /usr/share/tlpkg/TeXLive/TLPDB.pm line 327.

  I have texlive-20110705 installed here.

It seems to be be part of TL [1]. If installing via tlmgr doesn't work
then try doing it manually as suggested in Help  Customization  5.1

Regards
Liviu

[1] http://ctan.org/pkg/tocloft


Re: Spacing Within List of Figures and List of Tables

2011-11-08 Thread Rich Shepard

On Tue, 8 Nov 2011, Liviu Andronic wrote:


It seems to be be part of TL.


  It's suppoed to be, but perhaps the Slackware packager didn't specify
including the entire scheme.


then try doing it manually


  I always manually installed LaTeX packages when runing tetex. I did so now
with tocloft, but reading the doc told me it would take me a while to figure
out just how to use it properly. So, in the interest of saving time I just
added two protected spaces before each table and figure caption and that did
the trick.

  Perhaps some day I'll have the time to learn tocloft.

Thanks, Liviu,

Rich


Re: Spellchecking problem

2011-11-08 Thread David L. Johnson

On 11/08/2011 05:10 PM, Torquil Macdonald Sørensen wrote:


If my document contains e.g. the mathematical term d-dimensional, 
the LyX spellchecker will treat this as a single word and complain, 
instead of considering it as a combination of two words to be checked 
independently. In the latter case I would only be forced to add d to 
the list of words, and all would be well.


Is there a way to make this Enchant spellchecker understand that it 
should only check each word separately when they are connected by a 
hyphen? 


Now I'm hoping someone will simply tell me about a magical 
configuration setting for Enchant to obtain this behaviour! :-)


I definitely me-too this.  When you have a lot of these in your file, 
you tend to overlook other squiggly underlines, and so misspelled words 
sneak through.  As a particular caution, for most mathematical notation 
it really is  d-dimensional  where the d is in math-mode (or 
emphasized), which may be even worse.


--

David L. Johnson

The lottery is a tax on those who fail to understand mathematics.



Re: docbook export and underlined text?

2011-11-08 Thread José Matos
On 11/05/2011 03:30 AM, Michael Joyner wrote:
 Good afternoon/morning all,

 I am using the docbook article class, and when I hit preview and it
 pulls up in the web browser, the text I have marked as underlined is
 not exported as underlined. Is this a bug or is this intentional ?

 Using Lyx Version 2.0.1

 Thanks!

 -Mike

 -- 

   * Learn to speak Cherokee: http://www.cherokeelessons.com/
   * Cherokee Language Help
 BBS/Chat: http://www.cherokeelessons.com/phpBB3/viewforum.php?f=6
   * Cherokee Lessons PDF made with: http://www.lyx.org/


The only problem is that should be the markup to do so in docbook.
Underline is physical markup while docbook has logical markup, one
option would be to pass underline as emphasis
role=underline.../emphasis but that would depend on its support by
the exporting tools...

-- 
José Matos



pros cons of using LyX's version control

2011-11-08 Thread Xu Wang
I'm considering using LyX's built-in version control support. Are there any
drawbacks to using it? Do most people use it? What is the most popular
alternative?

Note that I'm on Linux. I don't have familiarity with SVN but I've been
meaning to learn it anyway for a while.

Thank you,

Xu


Re: Drawing with Pgfplots from file

2011-11-08 Thread Enrico Forestieri
Churilov Sergey writes:

 What could be the problem here?

Maybe you are using an old LyX version. You need LyX 2.0.1 for that to
work. You have only to make sure that the path to the file is not
explicitly relative, i.e., it doesn't start with ./ or ../

For example, any of the following will work:

\addplot file {data.dat};
\addplot file {subdir/data.dat};

but the following will fail:

\addplot file {./data.dat};
\addplot file {../data.dat};
\addplot file {./subdir/data.dat};

This is a known (mis)feature of the kpathsea library used by TeX
for file searching.

-- 
Enrico



Re: reverse search sumatra xetex...maybe I am almost there...

2011-11-08 Thread Enrico Forestieri
dc writes:
 
 Enrico Forestieri writes:
 
  
  dc writes:
  
   I have synchronize with output set to: \synctex=-1
  
  Maybe miktex doesn't understand that? Please, try modifying the converter
  from xelatex $$i to xelatex --synctex=-1 $$i and see whether forward
  search works after that.
  
 
 In document-settings-output under synchronize with output/custom macro,
 I get 
 
 x
   elatex --synctex=-1 $$i

No, don't do that. Even leave it unchecked. Instead, go to
Tools-Preferences-File Handling-Converters
find the LaTeX (XeTeX) - PDF (XeTeX) entry and select it.
In the Converter: field you should see xelatex $$i.
Change that to xelatex --synctex=-1 $$i, hit the Modify button
and then Save or Apply.

-- 
Enrico



Re: pros cons of using LyX's version control

2011-11-08 Thread PhilipPirrip

On 11/09/2011 02:22 AM, Xu Wang wrote:

I'm considering using LyX's built-in version control support. Are there
any drawbacks to using it? Do most people use it? What is the most
popular alternative?


My first and only try was a year ago. I'd say that it's pretty limited. 
I miss the feature of a manager of my commits, for example.

Now, I'm on TortoiseHg, a frontend to mercurial.




Note that I'm on Linux. I don't have familiarity with SVN but I've been
meaning to learn it anyway for a while.





Re: Spellchecking problem

2011-11-08 Thread Stephan Witt
Am 08.11.2011 um 23:10 schrieb Torquil Macdonald Sørensen:

 Hi all!
 
 I normally don't use any computer spellchecking, but I find myself in a 
 situation where it will be necessary.
 
 In the LyX preferences, I'm only given the opportunity to use a spellchecker 
 called Enchant.

Enchant is a wrapper library to pass the task of spell-checking to a real 
spell-checker of your choice.
How this is done is documented for enchant, either locally (apropos enchant) or 
online. 
The point is to install and select (configure) the spell-checker you like.

 However, it seems to me to have a deficiency, and I'm hoping it is just a 
 configuration issue:
 
 If my document contains e.g. the mathematical term d-dimensional, the LyX 
 spellchecker will treat this as a single word and complain, instead of 
 considering it as a combination of two words to be checked independently. In 
 the latter case I would only be forced to add d to the list of words, and 
 all would be well.
 
 Is there a way to make this Enchant spellchecker understand that it should 
 only check each word separately when they are connected by a hyphen?


When I'm using Hunspell as backend for LyX's spell-checker I don't have your 
problem.
I don't know if it's the same with Enchant as a relay... but you may give it 
a try
and configure Hunspell as your Enchant spell-checker engine.

Stephan




Re: pros cons of using LyX's version control

2011-11-08 Thread Stephan Witt
Am 09.11.2011 um 02:22 schrieb Xu Wang:

 I'm considering using LyX's built-in version control support. Are there any 
 drawbacks to using it? Do most people use it? What is the most popular 
 alternative?
 
 Note that I'm on Linux. I don't have familiarity with SVN but I've been 
 meaning to learn it anyway for a while.

Please note that LyX's built-in version control uses RCS when registering a new 
file for version control.
At least this step has to be done with external tools. I'm using a combination 
of command line and LyX.
The daily business (check-out, check-in, compare and revert, browsing 
the logs) is possible
with LyX's built-in capabilities. Start a repository from scratch and adding 
documents and children or images
is better done with command line tools.

Please, consult the manual! It's described in the Additional manual (7.2 - 
AFAIK).

Stephan

Re: Compose key again

2011-11-08 Thread Daniel Lundsgaard Skovenborg

 Ubuntu upgrades have a tendency to reset your input module to whatever
 their new default is. I have to reset my input module to XIM otherwise I
 can't type Cherokee properly every upgrade.


I tried im-switch to change the input method; was that what you meant? If
I change it to xim the compose key works, but I need iBus to write Hebrew
and Greek. Any ideas?

Regards,
Daniel


Re: change from 'display formula' to 'numbered formula'

2011-11-08 Thread Guenter Milde
On 2011-11-07, Liviu Andronic wrote:
 On Mon, Nov 7, 2011 at 9:44 PM, Liviu Andronic landronim...@gmail.com wrote:
 Dear all
 Is there a lyx-ish way to change a formula from 'display' to
 'numbered'? 

 To answer my own question, it suffices to access the context menu in
 math and select the appropriate numbering option.

 The wiki suggests [1] to put

 \renewcommand\[{\begin{equation}}
 \renewcommand\]{\end{equation}}

 in the document preamble

This is the workaround for the case that you want *all* equations
numbered without the need to access the context menu for each one.

Günter



Feedback on converting (Scientific Word) Latex beamer to Lyx Beamer

2011-11-08 Thread Murat Yildizoglu
Hello,

I have been successful to to convert all chapters of a course to Beamer in
Lyx now.
I would like to share with you the process I have created for this. That
could maybe also help tex2lyx developers.

I have for start an old beamer document in Latex, created in Scientific
Word, so quite polluted by comment lines.

When I directly import this kind of file in Lyx, I get a document quite
dirty and impossible to compile out of the box.
So, I have to clean it up a little bit to get the job done. Under OSX, I
use TextShop for automating, as much as possible, this cleaning, but you
can do it with any text processing tool (even at the command line in Linux
for exemple), that are able to search and replace text Search  Replace
under WIndows, for example).

A/ Cleaning the initial Latex file created by SW in portable latex format
(pure Latex + comments by SW for specific functionality)

1/ Delete all comment lines (SW puts lots of them) (Just search the regular
expression %.* and replace it by nothing or a space

2/ Replace all \begin{frame} by ---Begin-Frame --

3/ Replace all \end{frame} by ---End-Frame --

4/Change  the document class to article (not to get the automatic insertion
of frame commands by Lyx, during the import)

5/ Clean the tables: Group the instructions for each row of the table on a
single line (without a carriage return). That helps a lot the import of the
tables. You will get a lot of problems otherwise.

6/ Clean color instructions (they do not live up to the import process,
strangely)

7/ Import the Latex document in Lyx


B/ Reformatting the text in Lyx


1/ Convert the document  class to Presentation(beamer)

2/ Insert Introduire a EndFrame  style at the end of the document

3/ Replace --Beg-Frame -  instructions by BeginFrame  style instructions
and delete ---End-Frame-- instructions

4/ Reintroduce the color instructions using Lyx's character formatting menu

5/ If you want to do a partial compiling to check the frames you have
corrected, you can insert, in an ERT

\lyxframeend{}\end{document} at the end of the last corrected frame and
before the next BeginFrame style.


That is not a fool proof, neither automatic process, but it is quite
straigthforward  and quick.


If tex2Lyx was better able the conversion of strangely formatted tabulars
(correct syntax, but each  row dispersed over several lines of text) that
would make the process much quicker, since, formatting the rows one by one
manually is not very quick, neither very interesting ;-)

I hope that this can be useful to someone.


Regards,


Murat

-- 
Prof. Murat Yildizoglu

Université Montesquieu Bordeaux IV
GREThA (UMR CNRS 5113)
Avenue Léon Duguit
33608 Pessac cedex
France

yi...@u-bordeaux4.fr

http://yildizoglu.info

http://www.twitter.com/yildizoglu


Table and Figure Lables and Cross-References ... Still

2011-11-08 Thread Rich Shepard

  There is definitely something different in version 2.0.1 from the earlier
versions I've used for years, and not in a good way. I changed the document
class from article (more fonts) to report-KOMAscript and this makes no
difference.

  I've commented out \numberwithin{figure}{section} and
\numberwithin{table}{section} yet there are still discrepancies between the
table/figure caption number and the reference in the text. I have the
cross-reference set to insert the table/figure number and page.

  Here's an example from the document; I can strip everything but this from
the document if desired:

  In the text this table is in subsection 3.1.1.1 and reads, Table 3.1.1.1
displays the key points ... Just below that, on the same page is the table
marked, Table 3.1.: Descriptive statistics 

  If I uncomment the 'numberwithin' commands in the preamble the
cross-reference in the text remains, Table 3.1.1.1 displays the key points
... while the table itself is now designated, Table 3.1.1.1.: Descriptive
statistics 

  Is this a bug? Is there a work-around for this other than my entering the
table references manually?

TIA,

Rich


Drawing with Pgfplots from file

2011-11-08 Thread Churilov Sergey
Hi,

I am using pgfplots package to draw some diagrams from LyX. The following 
syntax entered into TEX code works fine.
\begin{tikzpicture}
\begin{axis}[xlabel=Cost, ylabel=Error]
\addplot[color=red,mark=x] coordinates {
(2,-2.8559703)
(3,-3.5301677)
(4,-4.3050655)
(5,-5.1413136)
(6,-6.0322865)
(7,-6.9675052)
(8,-7.9377747)
};
\end{axis}
\end{tikzpicture}


But, if I want to plot from a file, I get errors:
-! Package pgfplots Error: sorry, plot file{umwc1.dat} could not be opened.
-! Package pgfplots Warning: the current plot has no coordinates (or all 
have be en filtered away)
-! Package pgfplots Warning: You have an axis with empty range. Replacing it 
with a default range and clearing all plots.

The code is:
\begin{tikzpicture}
\begin{axis}[xlabel=Cost, ylabel=Error]
\addplot file {data.dat};
\end{axis}
\end{tikzpicture}

data.dat file contains two columns with the numbers from previous example.

What could be the problem here?

Kind regards,
Sergey

Re: Drawing with Pgfplots from file

2011-11-08 Thread Spyros Stathopoulos
The problem is not with pgfplots but with the data file. It seems that 
LyX cannot reference files that are mentioned in ERT using relative 
paths. It arises because LyX does not copy the required file over at 
the temporary build directory, since ERT code is injected verbatim to 
the produced TeX source. It would also like to know if there is a 
solution for this problem without resorting to absolute paths.

Spyros

On Tue 08 Nov 2011 05:39:15 PM EET, Churilov Sergey wrote:
 Hi,
  
 I am using pgfplots package to draw some diagrams from LyX. The following
 syntax entered into TEX code works fine.
 \begin{tikzpicture}
 \begin{axis}[xlabel=Cost, ylabel=Error]
 \addplot[color=red,mark=x] coordinates {
 (2,-2.8559703)
 (3,-3.5301677)
 (4,-4.3050655)
 (5,-5.1413136)
 (6,-6.0322865)
 (7,-6.9675052)
 (8,-7.9377747)
 };
 \end{axis}
 \end{tikzpicture}
  
  
 But, if I want to plot from a file, I get errors:
 -! Package pgfplots Error: sorry, plot file{umwc1.dat} could not be opened.
 -! Package pgfplots Warning: the current plot has no coordinates (or all have
 be en filtered away)
 -! Package pgfplots Warning: You have an axis with empty range. Replacing it
 with a default range and clearing all plots.
  
 The code is:
 \begin{tikzpicture}
 \begin{axis}[xlabel=Cost, ylabel=Error]
 \addplot file {data.dat};
 \end{axis}
 \end{tikzpicture}
  
 data.dat file contains two columns with the numbers from previous example.
  
 What could be the problem here?
  
 Kind regards,
 Sergey




Re: Table and Figure Lables and Cross-References ... Still

2011-11-08 Thread Rich Shepard

On Tue, 8 Nov 2011, Liviu wrote:


Could you post to the list a minimal LyX file exhibiting this issue?


  So I have on the attached. See pages 7 and 8 (table reference and table)
and page 12 (figure and figure reference).

Rich#LyX 2.0 created this file. For more info see http://www.lyx.org/
\lyxformat 413
\begin_document
\begin_header
\textclass scrbook
\begin_preamble
\date{}
\usepackage{textcomp, url}
\numberwithin{figure}{section}
\numberwithin{table}{section}
\setkomafont{sectioning}{\rmfamily}
\end_preamble
\use_default_options false
\begin_modules
theorems-ams
\end_modules
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding global
\font_roman palatino
\font_sans default
\font_typewriter default
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100

\graphics default
\default_output_format pdf2
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize letterpaper
\use_geometry false
\use_amsmath 1
\use_esint 0
\use_mhchem 1
\use_mathdots 1
\cite_engine basic
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\use_refstyle 0
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\quotes_language english
\papercolumns 1
\papersides 2
\paperpagestyle fancy
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Title
Title
\end_layout

\begin_layout Author
Author
\end_layout

\begin_layout Part
Introduction
\end_layout

\begin_layout Standard
Some text goes here.
\end_layout

\begin_layout Chapter
The Data Set
\end_layout

\begin_layout Standard
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
 voluptua.
 At vero eos et accusam et justo duo dolores et ea rebum.
 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
 sit amet.
 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
 voluptua.
 At vero eos et accusam et justo duo dolores et ea rebum.
 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
 sit amet.
 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
 voluptua.
 At vero eos et accusam et justo duo dolores et ea rebum.
 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
 sit amet.
\end_layout

\begin_layout Standard
Table
\begin_inset CommandInset ref
LatexCommand vref
reference tab: times and rows

\end_inset

 plot for this text.
\begin_inset Float table
wide false
sideways false
status open

\begin_layout Plain Layout
\begin_inset CommandInset label
LatexCommand label
name tab: times and rows

\end_inset


\begin_inset Caption

\begin_layout Plain Layout
Time periods of available data, and the total number of analytical results,
 for each stream.
\end_layout

\end_inset


\end_layout

\begin_layout Plain Layout
\align center
\begin_inset Tabular
lyxtabular version=3 rows=10 columns=4
features tabularvalignment=middle
column alignment=left valignment=top width=0
column alignment=center valignment=top width=0
column alignment=center valignment=top width=0
column alignment=center valignment=top width=0
row
cell multicolumn=1 alignment=center valignment=top topline=true 
bottomline=true usebox=none
\begin_inset Text

\begin_layout Plain Layout
Stream Name
\end_layout

\end_inset
/cell
cell alignment=center valignment=top topline=true bottomline=true 
usebox=none
\begin_inset Text

\begin_layout Plain Layout
Start Date
\end_layout

\end_inset
/cell
cell alignment=center valignment=top topline=true bottomline=true 
usebox=none
\begin_inset Text

\begin_layout Plain Layout
End Date
\end_layout

\end_inset
/cell
cell alignment=center valignment=top topline=true bottomline=true 
usebox=none
\begin_inset Text

\begin_layout Plain Layout
Number of Analyses
\end_layout

\end_inset
/cell
/row
row
cell alignment=left valignment=top usebox=none
\begin_inset Text

\begin_layout Plain Layout

\end_layout

\end_inset
/cell
cell alignment=center valignment=top usebox=none
\begin_inset Text

\begin_layout Plain Layout
1978-09-01
\end_layout

\end_inset
/cell
cell alignment=center valignment=top usebox=none
\begin_inset Text

\begin_layout Plain Layout
2011-05-18
\end_layout

\end_inset
/cell
cell alignment=center valignment=top usebox=none
\begin_inset Text

\begin_layout Plain Layout
2472
\end_layout

\end_inset
/cell
/row
row
cell alignment=left valignment=top usebox=none
\begin_inset Text

\begin_layout Plain Layout

\end_layout

\end_inset
/cell
cell 

Re: Table and Figure Lables and Cross-References ... Still

2011-11-08 Thread Liviu Andronic
On Tue, Nov 8, 2011 at 6:47 PM, Rich Shepard rshep...@appl-ecosys.com wrote:
 On Tue, 8 Nov 2011, Liviu Andronic wrote:

 Could you post to the list a minimal LyX file exhibiting this issue?

 Liviu,

  Done. Here's your copy.

I've played a bit and I'm not sure what exactly is wrong, however two points:
- the labels are usually put within the caption (at least this is what I do)
- the issue is clearly with
\numberwithin{figure}{section}
\numberwithin{table}{section}

I tried adding
\numberwithin{figure}{chapter}
\numberwithin{table}{chapter}
\numberwithin{figure}{part}
\numberwithin{table}{part}

and the results differ. Maybe this is what you want. Otherwise, you
can do this manually by resetting the counters. See [1] and [2].

Regards
Liviu

[1] https://en.wikibooks.org/wiki/LaTeX/Advanced_Topics
[2] http://www.personal.ceu.hu/tex/counters.htm


 Rich

 --
 Richard B. Shepard, Ph.D.          |   Integrity - Credibility - Innovation
 Applied Ecosystem Services, Inc.   |    Helping Ensure Our Clients' Futures
 http://www.appl-ecosys.com     Voice: 503-667-4517      Fax: 503-667-8863



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


Re: lyx doesn't find any .cls files

2011-11-08 Thread José Matos
On 11/03/2011 03:17 PM, Richard Heck wrote:
 The previously reported
 problems were due to this being Python 3.x, which is not backwards
 compatible (why not!?) and will not properly run the configure script.

Because after 20 years you find that some of your initial choices are
sub-optimal and are dragging other features.

One of the most obvious examples is the real division.

Until python 2.x we have that

3/2 - 1 (integer division)

3./2 - 1.5

while in python 3 we have that

3/2 - 1.5

3.//2 - 1.0 (integer division for general numbers)

It would be impossible to do this change without breaking compatibility
and it was precisely that the purpose of python 3, to be an once in a
long time event where backwards compatibility is broken.

-- 
José Matos



Re: Table and Figure Lables and Cross-References ... Still

2011-11-08 Thread Rich Shepard

On Tue, 8 Nov 2011, Liviu Andronic wrote:


I've played a bit and I'm not sure what exactly is wrong, however two points:
- the labels are usually put within the caption (at least this is what I
do)


Liviu,

  I ask that you and the list subscribers accept my apologies for
mis-placing the labels. I didn't check before adding them and they do belong
within the caption, not outside it.

  Re-placing the labels and leaving \numberwithin{}{} in the preamble fixed
the problem. It was all related to the labels being outside the caption box
itself.

Mea culpa!

Rich


Spacing Within List of Figures and List of Tables

2011-11-08 Thread Rich Shepard

  I don't see an entry in TLC2 for this, but think that I faced this problem
in the past and solved it somehow. But, I can't find a document with the
solution so I ask you folks for a clue stick.

  The numbers and captions in the List of Figures and List of Tables have no
spaces between them and the caption text. I have a space between the label
and text in each caption but that does not seem to be sufficient. It must be
something simple that I'm missing but I am not seeing it.

Rich


Re: Spacing Within List of Figures and List of Tables

2011-11-08 Thread Rich Shepard

On Tue, 8 Nov 2011, Rich Shepard wrote:


 The numbers and captions in the List of Figures and List of Tables have no
spaces between them and the caption text.


  See attached .pdf files.

Rich

figure-list.pdf
Description: Adobe PDF document


table-list.pdf
Description: Adobe PDF document


Re: Spacing Within List of Figures and List of Tables

2011-11-08 Thread Liviu Andronic
On Tue, Nov 8, 2011 at 9:51 PM, Rich Shepard rshep...@appl-ecosys.com wrote:
 On Tue, 8 Nov 2011, Rich Shepard wrote:

  The numbers and captions in the List of Figures and List of Tables have
 no
 spaces between them and the caption text.

  See attached .pdf files.

I don't know what's wrong, though I'm wondering whether it has
anything to do with their spanning over two lines. Two suggestions:
- see if 'tocloft' can do anything for you
- this would be an ugly hack, but you could always add a couple of
protected spaces (ctrl+space in LyX or ~ in LaTeX) in front of your
captions.

Regards
Liviu


Re: Spacing Within List of Figures and List of Tables

2011-11-08 Thread Rich Shepard

On Tue, 8 Nov 2011, Liviu Andronic wrote:


I don't know what's wrong, though I'm wondering whether it has
anything to do with their spanning over two lines.


Liviu,

  I don't know how being multilined can affect the spacing between the
numbers and the first letter of the top line for each one. Something changed
and apparently had unintended consequences with figure and table listings.


Two suggestions:
- see if 'tocloft' can do anything for you


  It should. However, ... I need a pointer to installing it:

[root@salmo ~]# tlmgr install tocloft
/usr/share/texmf/bin/tlmgr: open(/usr/share/tlpkg/texlive.tlpdb) failed: No
such file or directory at /usr/share/tlpkg/TeXLive/TLPDB.pm line 327.

  I have texlive-20110705 installed here.

Thanks,

Rich



Re: Spacing Within List of Figures and List of Tables

2011-11-08 Thread Liviu Andronic
On Tue, Nov 8, 2011 at 10:25 PM, Rich Shepard rshep...@appl-ecosys.com wrote:
 - see if 'tocloft' can do anything for you

  It should. However, ... I need a pointer to installing it:

 [root@salmo ~]# tlmgr install tocloft
 /usr/share/texmf/bin/tlmgr: open(/usr/share/tlpkg/texlive.tlpdb) failed: No
 such file or directory at /usr/share/tlpkg/TeXLive/TLPDB.pm line 327.

  I have texlive-20110705 installed here.

It seems to be be part of TL [1]. If installing via tlmgr doesn't work
then try doing it manually as suggested in Help  Customization  5.1

Regards
Liviu

[1] http://ctan.org/pkg/tocloft


Re: Spacing Within List of Figures and List of Tables

2011-11-08 Thread Rich Shepard

On Tue, 8 Nov 2011, Liviu Andronic wrote:


It seems to be be part of TL.


  It's suppoed to be, but perhaps the Slackware packager didn't specify
including the entire scheme.


then try doing it manually


  I always manually installed LaTeX packages when runing tetex. I did so now
with tocloft, but reading the doc told me it would take me a while to figure
out just how to use it properly. So, in the interest of saving time I just
added two protected spaces before each table and figure caption and that did
the trick.

  Perhaps some day I'll have the time to learn tocloft.

Thanks, Liviu,

Rich


Re: Spellchecking problem

2011-11-08 Thread David L. Johnson

On 11/08/2011 05:10 PM, Torquil Macdonald Sørensen wrote:


If my document contains e.g. the mathematical term d-dimensional, 
the LyX spellchecker will treat this as a single word and complain, 
instead of considering it as a combination of two words to be checked 
independently. In the latter case I would only be forced to add d to 
the list of words, and all would be well.


Is there a way to make this Enchant spellchecker understand that it 
should only check each word separately when they are connected by a 
hyphen? 


Now I'm hoping someone will simply tell me about a magical 
configuration setting for Enchant to obtain this behaviour! :-)


I definitely me-too this.  When you have a lot of these in your file, 
you tend to overlook other squiggly underlines, and so misspelled words 
sneak through.  As a particular caution, for most mathematical notation 
it really is  d-dimensional  where the d is in math-mode (or 
emphasized), which may be even worse.


--

David L. Johnson

The lottery is a tax on those who fail to understand mathematics.



Re: docbook export and underlined text?

2011-11-08 Thread José Matos
On 11/05/2011 03:30 AM, Michael Joyner wrote:
 Good afternoon/morning all,

 I am using the docbook article class, and when I hit preview and it
 pulls up in the web browser, the text I have marked as underlined is
 not exported as underlined. Is this a bug or is this intentional ?

 Using Lyx Version 2.0.1

 Thanks!

 -Mike

 -- 

   * Learn to speak Cherokee: http://www.cherokeelessons.com/
   * Cherokee Language Help
 BBS/Chat: http://www.cherokeelessons.com/phpBB3/viewforum.php?f=6
   * Cherokee Lessons PDF made with: http://www.lyx.org/


The only problem is that should be the markup to do so in docbook.
Underline is physical markup while docbook has logical markup, one
option would be to pass underline as emphasis
role=underline.../emphasis but that would depend on its support by
the exporting tools...

-- 
José Matos



pros cons of using LyX's version control

2011-11-08 Thread Xu Wang
I'm considering using LyX's built-in version control support. Are there any
drawbacks to using it? Do most people use it? What is the most popular
alternative?

Note that I'm on Linux. I don't have familiarity with SVN but I've been
meaning to learn it anyway for a while.

Thank you,

Xu


Re: Drawing with Pgfplots from file

2011-11-08 Thread Enrico Forestieri
Churilov Sergey writes:

 What could be the problem here?

Maybe you are using an old LyX version. You need LyX 2.0.1 for that to
work. You have only to make sure that the path to the file is not
explicitly relative, i.e., it doesn't start with ./ or ../

For example, any of the following will work:

\addplot file {data.dat};
\addplot file {subdir/data.dat};

but the following will fail:

\addplot file {./data.dat};
\addplot file {../data.dat};
\addplot file {./subdir/data.dat};

This is a known (mis)feature of the kpathsea library used by TeX
for file searching.

-- 
Enrico



Re: reverse search sumatra xetex...maybe I am almost there...

2011-11-08 Thread Enrico Forestieri
dc writes:
 
 Enrico Forestieri writes:
 
  
  dc writes:
  
   I have synchronize with output set to: \synctex=-1
  
  Maybe miktex doesn't understand that? Please, try modifying the converter
  from xelatex $$i to xelatex --synctex=-1 $$i and see whether forward
  search works after that.
  
 
 In document-settings-output under synchronize with output/custom macro,
 I get 
 
 x
   elatex --synctex=-1 $$i

No, don't do that. Even leave it unchecked. Instead, go to
Tools-Preferences-File Handling-Converters
find the LaTeX (XeTeX) - PDF (XeTeX) entry and select it.
In the Converter: field you should see xelatex $$i.
Change that to xelatex --synctex=-1 $$i, hit the Modify button
and then Save or Apply.

-- 
Enrico



Re: pros cons of using LyX's version control

2011-11-08 Thread PhilipPirrip

On 11/09/2011 02:22 AM, Xu Wang wrote:

I'm considering using LyX's built-in version control support. Are there
any drawbacks to using it? Do most people use it? What is the most
popular alternative?


My first and only try was a year ago. I'd say that it's pretty limited. 
I miss the feature of a manager of my commits, for example.

Now, I'm on TortoiseHg, a frontend to mercurial.




Note that I'm on Linux. I don't have familiarity with SVN but I've been
meaning to learn it anyway for a while.





Re: Spellchecking problem

2011-11-08 Thread Stephan Witt
Am 08.11.2011 um 23:10 schrieb Torquil Macdonald Sørensen:

 Hi all!
 
 I normally don't use any computer spellchecking, but I find myself in a 
 situation where it will be necessary.
 
 In the LyX preferences, I'm only given the opportunity to use a spellchecker 
 called Enchant.

Enchant is a wrapper library to pass the task of spell-checking to a real 
spell-checker of your choice.
How this is done is documented for enchant, either locally (apropos enchant) or 
online. 
The point is to install and select (configure) the spell-checker you like.

 However, it seems to me to have a deficiency, and I'm hoping it is just a 
 configuration issue:
 
 If my document contains e.g. the mathematical term d-dimensional, the LyX 
 spellchecker will treat this as a single word and complain, instead of 
 considering it as a combination of two words to be checked independently. In 
 the latter case I would only be forced to add d to the list of words, and 
 all would be well.
 
 Is there a way to make this Enchant spellchecker understand that it should 
 only check each word separately when they are connected by a hyphen?


When I'm using Hunspell as backend for LyX's spell-checker I don't have your 
problem.
I don't know if it's the same with Enchant as a relay... but you may give it 
a try
and configure Hunspell as your Enchant spell-checker engine.

Stephan




Re: pros cons of using LyX's version control

2011-11-08 Thread Stephan Witt
Am 09.11.2011 um 02:22 schrieb Xu Wang:

 I'm considering using LyX's built-in version control support. Are there any 
 drawbacks to using it? Do most people use it? What is the most popular 
 alternative?
 
 Note that I'm on Linux. I don't have familiarity with SVN but I've been 
 meaning to learn it anyway for a while.

Please note that LyX's built-in version control uses RCS when registering a new 
file for version control.
At least this step has to be done with external tools. I'm using a combination 
of command line and LyX.
The daily business (check-out, check-in, compare and revert, browsing 
the logs) is possible
with LyX's built-in capabilities. Start a repository from scratch and adding 
documents and children or images
is better done with command line tools.

Please, consult the manual! It's described in the Additional manual (7.2 - 
AFAIK).

Stephan

Re: Compose key again

2011-11-08 Thread Daniel Lundsgaard Skovenborg
>
> Ubuntu upgrades have a tendency to reset your input module to whatever
> their new default is. I have to reset my input module to XIM otherwise I
> can't type Cherokee properly every upgrade.
>

I tried "im-switch" to change the input method; was that what you meant? If
I change it to xim the compose key works, but I need iBus to write Hebrew
and Greek. Any ideas?

Regards,
Daniel


Re: change from 'display formula' to 'numbered formula'

2011-11-08 Thread Guenter Milde
On 2011-11-07, Liviu Andronic wrote:
> On Mon, Nov 7, 2011 at 9:44 PM, Liviu Andronic  wrote:
>> Dear all
>> Is there a lyx-ish way to change a formula from 'display' to
>> 'numbered'? 

> To answer my own question, it suffices to access the context menu in
> math and select the appropriate numbering option.

>> The wiki suggests [1] to put

>> \renewcommand\[{\begin{equation}}
>> \renewcommand\]{\end{equation}}

>> in the document preamble

This is the workaround for the case that you want *all* equations
numbered without the need to access the context menu for each one.

Günter



Feedback on converting (Scientific Word) Latex beamer to Lyx Beamer

2011-11-08 Thread Murat Yildizoglu
Hello,

I have been successful to to convert all chapters of a course to Beamer in
Lyx now.
I would like to share with you the process I have created for this. That
could maybe also help tex2lyx developers.

I have for start an old beamer document in Latex, created in Scientific
Word, so quite polluted by comment lines.

When I directly import this kind of file in Lyx, I get a document quite
dirty and impossible to compile out of the box.
So, I have to clean it up a little bit to get the job done. Under OSX, I
use TextShop for automating, as much as possible, this cleaning, but you
can do it with any text processing tool (even at the command line in Linux
for exemple), that are able to search and replace text Search & Replace
under WIndows, for example).

A/ Cleaning the initial Latex file created by SW in portable latex format
(pure Latex + comments by SW for specific functionality)

1/ Delete all comment lines (SW puts lots of them) (Just search the regular
expression %.* and replace it by nothing or a space

2/ Replace all \begin{frame} by ---Begin-Frame --

3/ Replace all \end{frame} by ---End-Frame --

4/Change  the document class to article (not to get the automatic insertion
of frame commands by Lyx, during the import)

5/ Clean the tables: Group the instructions for each row of the table on a
single line (without a carriage return). That helps a lot the import of the
tables. You will get a lot of problems otherwise.

6/ Clean color instructions (they do not live up to the import process,
strangely)

7/ Import the Latex document in Lyx


B/ Reformatting the text in Lyx


1/ Convert the document  class to Presentation(beamer)

2/ Insert Introduire a EndFrame  style at the end of the document

3/ Replace --Beg-Frame -  instructions by BeginFrame  style instructions
and delete ---End-Frame-- instructions

4/ Reintroduce the color instructions using Lyx's character formatting menu

5/ If you want to do a partial compiling to check the frames you have
corrected, you can insert, in an ERT

\lyxframeend{}\end{document} at the end of the last corrected frame and
before the next BeginFrame style.


That is not a fool proof, neither automatic process, but it is quite
straigthforward  and quick.


If tex2Lyx was better able the conversion of strangely formatted tabulars
(correct syntax, but each  row dispersed over several lines of text) that
would make the process much quicker, since, formatting the rows one by one
manually is not very quick, neither very interesting ;-)

I hope that this can be useful to someone.


Regards,


Murat

-- 
Prof. Murat Yildizoglu

Université Montesquieu Bordeaux IV
GREThA (UMR CNRS 5113)
Avenue Léon Duguit
33608 Pessac cedex
France

yi...@u-bordeaux4.fr

http://yildizoglu.info

http://www.twitter.com/yildizoglu


Table and Figure Lables and Cross-References ... Still

2011-11-08 Thread Rich Shepard

  There is definitely something different in version 2.0.1 from the earlier
versions I've used for years, and not in a good way. I changed the document
class from article (more fonts) to report-KOMAscript and this makes no
difference.

  I've commented out \numberwithin{figure}{section} and
\numberwithin{table}{section} yet there are still discrepancies between the
table/figure caption number and the reference in the text. I have the
cross-reference set to insert the table/figure number and page.

  Here's an example from the document; I can strip everything but this from
the document if desired:

  In the text this table is in subsection 3.1.1.1 and reads, "Table 3.1.1.1
displays the key points ..." Just below that, on the same page is the table
marked, "Table 3.1.: Descriptive statistics ...".

  If I uncomment the 'numberwithin' commands in the preamble the
cross-reference in the text remains, "Table 3.1.1.1 displays the key points
..." while the table itself is now designated, "Table 3.1.1.1.: Descriptive
statistics ...".

  Is this a bug? Is there a work-around for this other than my entering the
table references manually?

TIA,

Rich


Drawing with Pgfplots from file

2011-11-08 Thread Churilov Sergey
Hi,

I am using pgfplots package to draw some diagrams from LyX. The following 
syntax entered into TEX code works fine.
\begin{tikzpicture}
\begin{axis}[xlabel=Cost, ylabel=Error]
\addplot[color=red,mark=x] coordinates {
(2,-2.8559703)
(3,-3.5301677)
(4,-4.3050655)
(5,-5.1413136)
(6,-6.0322865)
(7,-6.9675052)
(8,-7.9377747)
};
\end{axis}
\end{tikzpicture}


But, if I want to plot from a file, I get errors:
-! Package pgfplots Error: sorry, plot file{umwc1.dat} could not be opened.
-! Package pgfplots Warning: the current plot has no coordinates (or all 
have be en filtered away)
-! Package pgfplots Warning: You have an axis with empty range. Replacing it 
with a default range and clearing all plots.

The code is:
\begin{tikzpicture}
\begin{axis}[xlabel=Cost, ylabel=Error]
\addplot file {data.dat};
\end{axis}
\end{tikzpicture}

data.dat file contains two columns with the numbers from previous example.

What could be the problem here?

Kind regards,
Sergey

Re: Drawing with Pgfplots from file

2011-11-08 Thread Spyros Stathopoulos
The problem is not with pgfplots but with the data file. It seems that 
LyX cannot reference files that are mentioned in ERT using relative 
paths. It arises because LyX does not copy the required file over at 
the temporary build directory, since ERT code is injected verbatim to 
the produced TeX source. It would also like to know if there is a 
solution for this problem without resorting to absolute paths.

Spyros

On Tue 08 Nov 2011 05:39:15 PM EET, Churilov Sergey wrote:
> Hi,
>  
> I am using pgfplots package to draw some diagrams from LyX. The following
> syntax entered into TEX code works fine.
> \begin{tikzpicture}
> \begin{axis}[xlabel=Cost, ylabel=Error]
> \addplot[color=red,mark=x] coordinates {
> (2,-2.8559703)
> (3,-3.5301677)
> (4,-4.3050655)
> (5,-5.1413136)
> (6,-6.0322865)
> (7,-6.9675052)
> (8,-7.9377747)
> };
> \end{axis}
> \end{tikzpicture}
>  
>  
> But, if I want to plot from a file, I get errors:
> -! Package pgfplots Error: sorry, plot file{umwc1.dat} could not be opened.
> -! Package pgfplots Warning: the current plot has no coordinates (or all have
> be en filtered away)
> -! Package pgfplots Warning: You have an axis with empty range. Replacing it
> with a default range and clearing all plots.
>  
> The code is:
> \begin{tikzpicture}
> \begin{axis}[xlabel=Cost, ylabel=Error]
> \addplot file {data.dat};
> \end{axis}
> \end{tikzpicture}
>  
> data.dat file contains two columns with the numbers from previous example.
>  
> What could be the problem here?
>  
> Kind regards,
> Sergey




Re: Table and Figure Lables and Cross-References ... Still

2011-11-08 Thread Rich Shepard

On Tue, 8 Nov 2011, Liviu wrote:


Could you post to the list a minimal LyX file exhibiting this issue?


  So I have on the attached. See pages 7 and 8 (table reference and table)
and page 12 (figure and figure reference).

Rich#LyX 2.0 created this file. For more info see http://www.lyx.org/
\lyxformat 413
\begin_document
\begin_header
\textclass scrbook
\begin_preamble
\date{}
\usepackage{textcomp, url}
\numberwithin{figure}{section}
\numberwithin{table}{section}
\setkomafont{sectioning}{\rmfamily}
\end_preamble
\use_default_options false
\begin_modules
theorems-ams
\end_modules
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding global
\font_roman palatino
\font_sans default
\font_typewriter default
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100

\graphics default
\default_output_format pdf2
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize letterpaper
\use_geometry false
\use_amsmath 1
\use_esint 0
\use_mhchem 1
\use_mathdots 1
\cite_engine basic
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\use_refstyle 0
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\quotes_language english
\papercolumns 1
\papersides 2
\paperpagestyle fancy
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Title
Title
\end_layout

\begin_layout Author
Author
\end_layout

\begin_layout Part
Introduction
\end_layout

\begin_layout Standard
Some text goes here.
\end_layout

\begin_layout Chapter
The Data Set
\end_layout

\begin_layout Standard
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
 voluptua.
 At vero eos et accusam et justo duo dolores et ea rebum.
 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
 sit amet.
 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
 voluptua.
 At vero eos et accusam et justo duo dolores et ea rebum.
 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
 sit amet.
 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
 eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
 voluptua.
 At vero eos et accusam et justo duo dolores et ea rebum.
 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
 sit amet.
\end_layout

\begin_layout Standard
Table
\begin_inset CommandInset ref
LatexCommand vref
reference "tab: times and rows"

\end_inset

 plot for this text.
\begin_inset Float table
wide false
sideways false
status open

\begin_layout Plain Layout
\begin_inset CommandInset label
LatexCommand label
name "tab: times and rows"

\end_inset


\begin_inset Caption

\begin_layout Plain Layout
Time periods of available data, and the total number of analytical results,
 for each stream.
\end_layout

\end_inset


\end_layout

\begin_layout Plain Layout
\align center
\begin_inset Tabular








\begin_inset Text

\begin_layout Plain Layout
Stream Name
\end_layout

\end_inset


\begin_inset Text

\begin_layout Plain Layout
Start Date
\end_layout

\end_inset


\begin_inset Text

\begin_layout Plain Layout
End Date
\end_layout

\end_inset


\begin_inset Text

\begin_layout Plain Layout
Number of Analyses
\end_layout

\end_inset




\begin_inset Text

\begin_layout Plain Layout

\end_layout

\end_inset


\begin_inset Text

\begin_layout Plain Layout
1978-09-01
\end_layout

\end_inset


\begin_inset Text

\begin_layout Plain Layout
2011-05-18
\end_layout

\end_inset


\begin_inset Text

\begin_layout Plain Layout
2472
\end_layout

\end_inset




\begin_inset Text

\begin_layout Plain Layout

\end_layout

\end_inset


\begin_inset Text

\begin_layout Plain Layout
1996-07-29
\end_layout

\end_inset


\begin_inset Text

\begin_layout Plain Layout
1996-10-18
\end_layout

\end_inset


\begin_inset Text

\begin_layout Plain Layout
82
\end_layout

\end_inset




\begin_inset Text

\begin_layout Plain Layout

\end_layout

\end_inset


\begin_inset Text

\begin_layout Plain Layout
2006-12-06
\end_layout

\end_inset


\begin_inset Text

\begin_layout Plain Layout
2010-10-26
\end_layout

\end_inset


\begin_inset Text

\begin_layout Plain Layout
102
\end_layout

\end_inset




\begin_inset Text

\begin_layout Plain Layout

\end_layout

\end_inset


\begin_inset Text

\begin_layout Plain Layout
1992-09-29
\end_layout

\end_inset


\begin_inset Text

\begin_layout Plain Layout
2011-05-11
\end_layout

\end_inset


\begin_inset Text

\begin_layout Plain Layout
1438
\end_layout

\end_inset




Re: Table and Figure Lables and Cross-References ... Still

2011-11-08 Thread Liviu Andronic
On Tue, Nov 8, 2011 at 6:47 PM, Rich Shepard  wrote:
> On Tue, 8 Nov 2011, Liviu Andronic wrote:
>
>> Could you post to the list a minimal LyX file exhibiting this issue?
>
> Liviu,
>
>  Done. Here's your copy.
>
I've played a bit and I'm not sure what exactly is wrong, however two points:
- the labels are usually put within the caption (at least this is what I do)
- the issue is clearly with
\numberwithin{figure}{section}
\numberwithin{table}{section}

I tried adding
\numberwithin{figure}{chapter}
\numberwithin{table}{chapter}
\numberwithin{figure}{part}
\numberwithin{table}{part}

and the results differ. Maybe this is what you want. Otherwise, you
can do this manually by resetting the counters. See [1] and [2].

Regards
Liviu

[1] https://en.wikibooks.org/wiki/LaTeX/Advanced_Topics
[2] http://www.personal.ceu.hu/tex/counters.htm


> Rich
>
> --
> Richard B. Shepard, Ph.D.          |   Integrity - Credibility - Innovation
> Applied Ecosystem Services, Inc.   |    Helping Ensure Our Clients' Futures
>      Voice: 503-667-4517      Fax: 503-667-8863



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


Re: lyx doesn't find any .cls files

2011-11-08 Thread José Matos
On 11/03/2011 03:17 PM, Richard Heck wrote:
> The previously reported
> problems were due to this being Python 3.x, which is not backwards
> compatible (why not!?) and will not properly run the configure script.

Because after 20 years you find that some of your initial choices are
sub-optimal and are dragging other features.

One of the most obvious examples is the real division.

Until python 2.x we have that

3/2 -> 1 (integer division)

3./2 -> 1.5

while in python 3 we have that

3/2 -> 1.5

3.//2 -> 1.0 (integer division for general numbers)

It would be impossible to do this change without breaking compatibility
and it was precisely that the purpose of python 3, to be an once in a
long time event where backwards compatibility is broken.

-- 
José Matos



Re: Table and Figure Lables and Cross-References ... Still

2011-11-08 Thread Rich Shepard

On Tue, 8 Nov 2011, Liviu Andronic wrote:


I've played a bit and I'm not sure what exactly is wrong, however two points:
- the labels are usually put within the caption (at least this is what I
do)


Liviu,

  I ask that you and the list subscribers accept my apologies for
mis-placing the labels. I didn't check before adding them and they do belong
within the caption, not outside it.

  Re-placing the labels and leaving \numberwithin{}{} in the preamble fixed
the problem. It was all related to the labels being outside the caption box
itself.

Mea culpa!

Rich


Spacing Within List of Figures and List of Tables

2011-11-08 Thread Rich Shepard

  I don't see an entry in TLC2 for this, but think that I faced this problem
in the past and solved it somehow. But, I can't find a document with the
solution so I ask you folks for a clue stick.

  The numbers and captions in the List of Figures and List of Tables have no
spaces between them and the caption text. I have a space between the label
and text in each caption but that does not seem to be sufficient. It must be
something simple that I'm missing but I am not seeing it.

Rich


Re: Spacing Within List of Figures and List of Tables

2011-11-08 Thread Rich Shepard

On Tue, 8 Nov 2011, Rich Shepard wrote:


 The numbers and captions in the List of Figures and List of Tables have no
spaces between them and the caption text.


  See attached .pdf files.

Rich

figure-list.pdf
Description: Adobe PDF document


table-list.pdf
Description: Adobe PDF document


Re: Spacing Within List of Figures and List of Tables

2011-11-08 Thread Liviu Andronic
On Tue, Nov 8, 2011 at 9:51 PM, Rich Shepard  wrote:
> On Tue, 8 Nov 2011, Rich Shepard wrote:
>
>>  The numbers and captions in the List of Figures and List of Tables have
>> no
>> spaces between them and the caption text.
>
>  See attached .pdf files.
>
I don't know what's wrong, though I'm wondering whether it has
anything to do with their spanning over two lines. Two suggestions:
- see if 'tocloft' can do anything for you
- this would be an ugly hack, but you could always add a couple of
protected spaces (ctrl+space in LyX or ~ in LaTeX) in front of your
captions.

Regards
Liviu


Re: Spacing Within List of Figures and List of Tables

2011-11-08 Thread Rich Shepard

On Tue, 8 Nov 2011, Liviu Andronic wrote:


I don't know what's wrong, though I'm wondering whether it has
anything to do with their spanning over two lines.


Liviu,

  I don't know how being multilined can affect the spacing between the
numbers and the first letter of the top line for each one. Something changed
and apparently had unintended consequences with figure and table listings.


Two suggestions:
- see if 'tocloft' can do anything for you


  It should. However, ... I need a pointer to installing it:

[root@salmo ~]# tlmgr install tocloft
/usr/share/texmf/bin/tlmgr: open(/usr/share/tlpkg/texlive.tlpdb) failed: No
such file or directory at /usr/share/tlpkg/TeXLive/TLPDB.pm line 327.

  I have texlive-20110705 installed here.

Thanks,

Rich



Re: Spacing Within List of Figures and List of Tables

2011-11-08 Thread Liviu Andronic
On Tue, Nov 8, 2011 at 10:25 PM, Rich Shepard  wrote:
>> - see if 'tocloft' can do anything for you
>
>  It should. However, ... I need a pointer to installing it:
>
> [root@salmo ~]# tlmgr install tocloft
> /usr/share/texmf/bin/tlmgr: open(/usr/share/tlpkg/texlive.tlpdb) failed: No
> such file or directory at /usr/share/tlpkg/TeXLive/TLPDB.pm line 327.
>
>  I have texlive-20110705 installed here.
>
It seems to be be part of TL [1]. If installing via tlmgr doesn't work
then try doing it manually as suggested in Help > Customization > 5.1

Regards
Liviu

[1] http://ctan.org/pkg/tocloft


Re: Spacing Within List of Figures and List of Tables

2011-11-08 Thread Rich Shepard

On Tue, 8 Nov 2011, Liviu Andronic wrote:


It seems to be be part of TL.


  It's suppoed to be, but perhaps the Slackware packager didn't specify
including the entire scheme.


then try doing it manually


  I always manually installed LaTeX packages when runing tetex. I did so now
with tocloft, but reading the doc told me it would take me a while to figure
out just how to use it properly. So, in the interest of saving time I just
added two protected spaces before each table and figure caption and that did
the trick.

  Perhaps some day I'll have the time to learn tocloft.

Thanks, Liviu,

Rich


Re: Spellchecking problem

2011-11-08 Thread David L. Johnson

On 11/08/2011 05:10 PM, Torquil Macdonald Sørensen wrote:


If my document contains e.g. the mathematical term "d-dimensional", 
the LyX spellchecker will treat this as a single word and complain, 
instead of considering it as a combination of two words to be checked 
independently. In the latter case I would only be forced to add "d" to 
the list of words, and all would be well.


Is there a way to make this Enchant spellchecker understand that it 
should only check each word separately when they are connected by a 
hyphen? 


Now I'm hoping someone will simply tell me about a magical 
configuration setting for Enchant to obtain this behaviour! :-)


I definitely "me-too" this.  When you have a lot of these in your file, 
you tend to overlook other squiggly underlines, and so misspelled words 
sneak through.  As a particular caution, for most mathematical notation 
it really is  d-dimensional  where the d is in math-mode (or 
emphasized), which may be even worse.


--

David L. Johnson

The lottery is a tax on those who fail to understand mathematics.



Re: docbook export and underlined text?

2011-11-08 Thread José Matos
On 11/05/2011 03:30 AM, Michael Joyner wrote:
> Good afternoon/morning all,
>
> I am using the docbook article class, and when I hit "preview" and it
> pulls up in the web browser, the text I have marked as "underlined" is
> not exported as underlined. Is this a bug or is this intentional ?
>
> Using Lyx Version 2.0.1
>
> Thanks!
>
> -Mike
>
> -- 
>
>   * Learn to speak Cherokee: http://www.cherokeelessons.com/
>   * Cherokee Language Help
> BBS/Chat: http://www.cherokeelessons.com/phpBB3/viewforum.php?f=6
>   * Cherokee Lessons PDF made with: http://www.lyx.org/
>

The only problem is that should be the markup to do so in docbook.
Underline is physical markup while docbook has logical markup, one
option would be to pass underline as ... but that would depend on its support by
the exporting tools...

-- 
José Matos



pros & cons of using LyX's version control

2011-11-08 Thread Xu Wang
I'm considering using LyX's built-in version control support. Are there any
drawbacks to using it? Do most people use it? What is the most popular
alternative?

Note that I'm on Linux. I don't have familiarity with SVN but I've been
meaning to learn it anyway for a while.

Thank you,

Xu


Re: Drawing with Pgfplots from file

2011-11-08 Thread Enrico Forestieri
Churilov Sergey writes:

> What could be the problem here?

Maybe you are using an old LyX version. You need LyX 2.0.1 for that to
work. You have only to make sure that the path to the file is not
explicitly relative, i.e., it doesn't start with ./ or ../

For example, any of the following will work:

\addplot file {data.dat};
\addplot file {subdir/data.dat};

but the following will fail:

\addplot file {./data.dat};
\addplot file {../data.dat};
\addplot file {./subdir/data.dat};

This is a known (mis)feature of the kpathsea library used by TeX
for file searching.

-- 
Enrico



Re: reverse search sumatra xetex...maybe I am almost there...

2011-11-08 Thread Enrico Forestieri
dc writes:
> 
> Enrico Forestieri writes:
> 
> > 
> > dc writes:
> > 
> > > I have synchronize with output set to: \synctex=-1
> > 
> > Maybe miktex doesn't understand that? Please, try modifying the converter
> > from "xelatex $$i" to "xelatex --synctex=-1 $$i" and see whether forward
> > search works after that.
> > 
> 
> In document-settings-output under synchronize with output/custom macro,
> I get 
> 
> "x
>   elatex --synctex=-1 $$i

No, don't do that. Even leave it unchecked. Instead, go to
Tools->Preferences->File Handling->Converters
find the "LaTeX (XeTeX) -> PDF (XeTeX)" entry and select it.
In the "Converter:" field you should see "xelatex $$i".
Change that to "xelatex --synctex=-1 $$i", hit the Modify button
and then Save or Apply.

-- 
Enrico



Re: pros & cons of using LyX's version control

2011-11-08 Thread PhilipPirrip

On 11/09/2011 02:22 AM, Xu Wang wrote:

I'm considering using LyX's built-in version control support. Are there
any drawbacks to using it? Do most people use it? What is the most
popular alternative?


My first and only try was a year ago. I'd say that it's pretty limited. 
I miss the feature of a manager of my commits, for example.

Now, I'm on TortoiseHg, a frontend to mercurial.




Note that I'm on Linux. I don't have familiarity with SVN but I've been
meaning to learn it anyway for a while.





Re: Spellchecking problem

2011-11-08 Thread Stephan Witt
Am 08.11.2011 um 23:10 schrieb Torquil Macdonald Sørensen:

> Hi all!
> 
> I normally don't use any computer spellchecking, but I find myself in a 
> situation where it will be necessary.
> 
> In the LyX preferences, I'm only given the opportunity to use a spellchecker 
> called "Enchant".

Enchant is a wrapper library to pass the task of spell-checking to a real 
spell-checker of your choice.
How this is done is documented for enchant, either locally (apropos enchant) or 
online. 
The point is to install and select (configure) the spell-checker you like.

> However, it seems to me to have a deficiency, and I'm hoping it is just a 
> configuration issue:
> 
> If my document contains e.g. the mathematical term "d-dimensional", the LyX 
> spellchecker will treat this as a single word and complain, instead of 
> considering it as a combination of two words to be checked independently. In 
> the latter case I would only be forced to add "d" to the list of words, and 
> all would be well.
> 
> Is there a way to make this Enchant spellchecker understand that it should 
> only check each word separately when they are connected by a hyphen?


When I'm using Hunspell as backend for LyX's spell-checker I don't have your 
problem.
I don't know if it's the same with Enchant as a "relay"... but you may give it 
a try
and configure Hunspell as your Enchant spell-checker engine.

Stephan




Re: pros & cons of using LyX's version control

2011-11-08 Thread Stephan Witt
Am 09.11.2011 um 02:22 schrieb Xu Wang:

> I'm considering using LyX's built-in version control support. Are there any 
> drawbacks to using it? Do most people use it? What is the most popular 
> alternative?
> 
> Note that I'm on Linux. I don't have familiarity with SVN but I've been 
> meaning to learn it anyway for a while.

Please note that LyX's built-in version control uses RCS when registering a new 
file for version control.
At least this step has to be done with external tools. I'm using a combination 
of command line and LyX.
The daily business ("check-out", "check-in", "compare" and "revert", "browsing 
the logs") is possible
with LyX's built-in capabilities. Start a repository from scratch and adding 
documents and "children" or images
is better done with command line tools.

Please, consult the manual! It's described in the "Additional manual" (7.2 - 
AFAIK).

Stephan