Xin Wu | 30 Jan 06:04 2015
Picon

Chinese itemize incident (add lyx files)

Hi, everyone,
I am wondering how to make the Chinese itemize environment incident correctly as English one? See the red
line is the correct position for the bullets to incident.
Below is two examples for English and Chinese itemize with the .lyx source files attached.
Attachment (test_chinese.lyx): application/octet-stream, 2625 bytes
Attachment (test_english.lyx): application/octet-stream, 984 bytes

Thank you.

Xin
Xin Wu | 30 Jan 05:02 2015
Picon

Chinese itemize incident

Hi, everyone,
I am wondering how to make the Chinese itemize environment incident correctly as English one?
Below is two examples for English and Chinese itemize.
Thanks a lot.

Xin
ben zipperer | 29 Jan 19:48 2015
Picon

lyx over sftp

Hi: how do I edit remote files with Lyx on Ubuntu over sftp?

Normally I open thunar or nautilus, click on the shortcut to my remote 
server, right-click on the remote file, and select an application to edit the 
file. This works with gedit, libreoffice, etc.

When I open the file in the above manner using "Open with Lyx..", lyx loads, 
but no document is opened. How should I debug and solve this problem?

I'm using Ubuntu 14.10 and Lyx 2.1.2.

I didn't use to have this problem on an older system running an earlier 
version of Lyx and Ubuntu.

Ben

Patrick Dupre | 28 Jan 16:50 2015
Picon

crash

Hello,

I can reproduce a crash:
lyx: SIGSEGV signal caught!
Sorry, you have found a bug in LyX, hope you have not lost any data.
Please read the bug-reporting instructions in 'Help->Introduction' and send us a bug report, if
necessary. Thanks!
Bye.
Error: LyX crashed!
----------------------------------------
SIGSEGV signal caught!
Sorry, you have found a bug in LyX, hope you have not lost any data.
Please read the bug-reporting instructions in 'Help->Introduction' and send us a bug report, if
necessary. Thanks!
Bye.

How?
When I have a first lyx loaded (
CRDS_Polar_v0.lyx
then I open a recently open file:
NO2_threshold_v4.lyx

However, if I change the name (or copy) the file NO2_threshold_v4.lyx
Than, I cannot reproduce the crash.

How the file name can control the lyx crash?

Thank for your help.

===========================================================================
 Patrick DUPRÉ                                 | | email: pdupre <at> gmx.com
 Laboratoire de Physico-Chimie de l'Atmosphère | |
 Université du Littoral-Côte d'Opale           | |
 Tel.  (33)-(0)3 28 23 76 12                   | | Fax: 03 28 65 82 44
 189A, avenue Maurice Schumann                 | | 59140 Dunkerque, France
===========================================================================

Restidealist | 28 Jan 12:02 2015
Picon
Picon

Texteditor to open and resave .lyx in MacOS

TL:DR: Document corrupted, want to copy parts from [corrupt document] to [working document] - textedit
doesn't work

Hi everybody, 

my thesis-document (due in 2 days) is corrupted. As I can't figure out how to fix this I want to try a manual
approach: 
I got my corrupt file with all the latest contents and I also got a backup of a working file. 
I now want to copy parts from the corrupt file to the backup file to see where things don't work out anymore and
maybe fix this within the corrupted file. 
I would also like to edit within the corrupt file which isn't possible in lyx as it quits saying "File corrupt"

When I'm opening the .lyx file with textedit, I am able to edit it but after reimporting / reopening it with
lyx, preview doesn't work. I suppose textedit changed something in formatting etc. 

So which program can I use to open a .lyx file, edit it, save it as .lyx, open it IN lyx and preview it without
producing an error message? 

Any help is appreciated, thanks a lot
R.

Specs:
Lyx 2.0.4., also tried 2.1.2.2., file obviously still corrupted
Macos 10.6.8.
everything worked fine until today. 
Benedict Holland | 25 Jan 22:56 2015
Picon

Re: LyX+Scilab

So then the problem isn't with inefficient matrix computations but with the language itself. On that I can wholehearted agree. I would say though, IMHO Matlab isn't much better, and in fact can be much much worse. I tend to try to avoid R but it is a very powerful language once you get the basics. What you might consider doing is dealing with data frames and then converting into matrices. R is essentially a data frame language with some stuff stapled on the side, like python is a dictionary language with some stuff stapled on the side. Matlab is strange with most variables being fully scoped and that drives me crazy. Honestly, in the long run you will get many benefits with R that you won't get with Matlab. I recommend picking it up. Also, I wouldn't expect any proprietary software to be compatible with lyx. That sort of development is very difficult. 

What I would recommend doing is using whatever language you want and saving whatever it is as a CSV. From there, I would write a script which will automatically spit out the middle part of a table. Something along the lines of 

Header 1 & 1 & 2 & 3 \\
                & (1) & (2) & (3) \\
Header 2 & 1 & 2 & 3 \\
                & (1) & (2) & (3) \\

etc. Then all that is required for you to do is start the tabular environment: 

\begin{tabular}{l>m{.25cm}...}
<Your output here>
\end{tabular}

The hardest part that lyx and most automated table generators have (including and especially R and Stata) is the header which defines how your table should look and feel. If your table is long, it should use longtable. If you want table notes, you need to use three part table. Do you want it to look nice and want full control over line widths and line placement? Use booktabs. These are highly context dependent and really up to the end user, making them very difficult to automate leaving someone like you and me with the requirement to learn how to typeset tables manually. Look at booktabs and threeparttable for guides. Making a good table takes a very long time and requires you to become good with typesetting. Choosing to read in a CSV and export a latex table middle will allow you to use quite literally whatever software you want, as long as it can produce a CSV. Actually, if it would help, I might be able to whip up a script sometime soon in python. It will not be the most robust script in the whole of scripting, but should at least be usable. I don't really deal with lyx/python interactions as I prefer to leave the two separate. Perhaps though, with the script, it might not be so bad and something worth considering. 

~Ben

On Sun, Jan 25, 2015 at 4:38 PM, Francesco Menoncin <francesco.menoncin <at> unibs.it> wrote:
Hello Benedict,
thank you for your answer.
I give you an example about how R is difficult for dealing with matrices: if in Matlab (or Scilab or Octave or simila) I write:

x(2,2)=10

the following matrix is automatically created:

[0 0
0 2]

while in R

x[2,2]=10

gives an error because I first have to declare to R that x is a matrix and, furthermore, give it the right dimension.
If, afterward, I want to add an element to the matrix x, in Matlab I simply write:

x(3,1)=5

and I obtain the matrix:

[0 0
0 10
5 0]

while in R I cannot do that, because x has already been defined as a 2 by 2 matrix.
I find all this very inefficient for dealig with matrices.
This is my point :-)

Francesco

Il 25/01/2015 22:25, Benedict Holland ha scritto:
R is not so easy to use for big matrix computations? This is a first for me. R is extremely efficient at dealing with matrices. If you have huge matrices, I don't think it would perform much better than anything else. If you need sparse matrix functionality, R comes with it built in. Python is actually horrible for mathematical computations since it basically runs everything in FORTRAN and C. The overhead to manipulate the data to call these libraries is enormous. R might actually be doing the same. Matlab does this as well. 

Honestly, what I have found is that printing tables and results is best done by manually coding latex using booktabs and three part table. It isn't that hard to do either. Write your results as a CSV and if you are good at scripting, just separate the csv from the data frame into rows. Add a header and you are good to go. This way, any time you have a CSV, you can easily get it into tabular format and all you have to do is specify the header and footer, something that is notoriously difficult to automate. Trust me, I have tried a dozen or more times and it never just works. 

~Ben

On Sun, Jan 25, 2015 at 3:35 PM, Steve Burnham <danipo <at> gmail.com> wrote:
There is a package on CTAN called pythontex that allows you to run python from within a document.  I know LyX heavily relies on Python as well and I think I have seen mention of people using python code in their documents.  I used to use Matlab for data processing but have completely switched over to python so I’m pretty sure you could do everything you want to do in python.


-Steve

On January 25, 2015 at 7:00:05 AM, Francesco Menoncin (francesco.menoncin <at> unibs.it) wrote:

Dear LyXers,
I use and I like very much the package Knitr for executing R commands in
LyX. Nevertheless, R is not so easy to use for big matrix computation. I
wonder whether there exists a project similar to Knitr but allowing to
code in LyX in other languages like Scilab, or Octave, or Matlab.

Thank you

Francesco

--
---
Francesco Menoncin
Associate Professor
University of Brescia
Department of Economics and Management
E-mail: francesco.menoncin <at> unibs.it
Tel. 0039-0302988806
Fax. 0039-0302988836
https://sites.google.com/site/francescomenoncin/
http://www.eco.unibs.it/~menoncin/


--
Informativa sulla Privacy: http://www.unibs.it/node/8155


-- --- Francesco Menoncin Associate Professor University of Brescia Department of Economics and Management E-mail: francesco.menoncin <at> unibs.it Tel. 0039-0302988806 Fax. 0039-0302988836 https://sites.google.com/site/francescomenoncin/ http://www.eco.unibs.it/~menoncin/

Informativa sulla Privacy: http://www.unibs.it/node/8155

Jacob Bishop | 23 Jan 16:15 2015
Picon

Re: Größere Integrale / big integral

On Fri, Jan 23, 2015 at 3:16 AM, Martin Tamms <martin.tamms <at> googlemail.com> wrote:
Hi Jacob,

here is a little example

My problem is, thar the integral is smaller than the whole fraction.
Hi Martin,

Is this a problem with the output, or what you see within LyX? Using your example, I get the correct output in the .pdf, but by default it is displayed improperly in LyX as shown in your screenshot. What I do to fix it is I use math preview. To enable math preview, go to Tools>Preferences, and under Look & Feel>Display, use the dropdown on Instant Preview, and select "On". That should fix the problem in LyX, but it will not change the .pdf output. I hope this helps.

Jacob

2015-01-16 16:37 GMT+01:00 Jacob Bishop <bishop.jacob <at> gmail.com>:

On Fri, Jan 16, 2015 at 3:39 AM, Martin Tamms <martin.tamms <at> googlemail.com> wrote:
Hallo,

gibt es eine Möglichkeit in LYX die Integrale zu vergößern, sodass sie den ganzen Bruch umfassen?

Vielen Dank,

Hello,

is there an opportunity to write bigger intgrals in Lyx, because my fraction is much bigger than the integral?

Thanks,

Martin


If you are doing an integral properly, the integral sign should resize automatically as the physical size of the integrand increases. Is this not happening? If you could send a minimal example showing the problem, that would be helpful. It may also be useful to know that math operators appear different when they are part of inline formulas than when they are display formulas, or in a math environment. Inline formulas don't resize as much so that they fit in better with the text around them. Display formulas don't have to fit in so they resize more.

Jacob



Attachment (integralDemo.lyx): application/x-lyx, 2269 bytes
Wolfgang Engelmann | 23 Jan 08:29 2015
Picon

numbering boxes in LyX?

Is it possible to number boxes (similar to figures, tables etc)?
Wolfgang

hendrik.schmidt | 22 Jan 21:58 2015
Picon

Greek characters in Lyx - Mac OS

On a note to Greek letters to all those using Lyx with a Mac (I'm on Mavericks with Lyx 2.1.0):
No fuss at all if you change language to polytonic Greek in preferences: keyboard: input sources: Greek. Then have your Mac show the new virtual keyboard and start typing into Lyx sirectly without any ERT or anything, it will compile just fine. (screenshot)

Cheers
Hendrik

FreeMail powered by mail.de - mehr Sicherheit, Seriosität und Komfort
Michael Berger | 22 Jan 17:53 2015
Picon

Greek characters in Lyx Beamer - Correction

Hello Jürgen, Nikos, David, Jacob,

very sorry, the attachment "part 1.1.2.2 does not at all belong there! Don't know how it slipped in!

Michael

Michael Berger, Dipl. Ing.
Im Borngrund 7a
D-35606 Solms
idest <at> online.de
Tel:  06442 706509
Fax: 004932121247536



Michael Berger | 22 Jan 17:26 2015
Picon

Greek characters in Lyx Beamer

Hello Jürgen, Nikos, David, Jacob,
Thanks a lot for all your good and professional advice.
My problem is now resolved.

For other folks facing similar problems I would like to inform the settings needed in accordance with Jürgen's recommendations.

A) Replacing single English character(s) by its analog Greek character

Settings in Documents > Language:
Language: English / Quote Style "text"
Encoding: changed from 'Language Default' to Other: 'Unicode (utf8)'
Language package: 'Custom:' the input field left empty

At the end of the Preamble I added:
\usepackage[greek,english]{babel} p, li { white-space: pre-wrap; }
make sure that the main Language english comes second after greek!

Usage example:
to replace the English character 'a' type:  \textgreek{a}  in an ERT box.
This works equally well for words (I have not tried sentences yet).
The extra tidbit of this great transliteration is that the Greek characters are printed
upright! and NOT slanted!

B) as A) but in glosses
In place of  'a'  type  \textgreek{a}  again but this time just like ordinary standard text, e. i. NOT inside an ERT box (in fact, one cannot add ERT boxes in a gloss and I had an evil grin in my face when doing as told by Jürgen.)

It looks all so very simple now but without such great advice I would not have tackled this issue in a hundred years.

I attach two screen shots showing the respective text parts Lyx and PDF hoping they will not be filtered out by the list's administrator.
(In case of interest I could post them off list)

Thanks again and
Cheers!
Michael

Michael Berger, Dipl. Ing.
Im Borngrund 7a
D-35606 Solms
idest <at> online.de
Tel:  06442 706509
Fax: 004932121247536



Attachment: application/pdf, 584 KiB

Gmane