LyX 2.3.1: bug in "\text" mode of equations

2018-10-30 Thread Bernt Lie
I use LyX 2.3.1 (64bit) on 64bit Win 10, latest version, and have Instant preview turned on. I need to insert some text in an equation. Two options: * \text{my text} * \mathrm{text} With \text{}, space is automatically handled. With \mathrm{}, I need to use the escape character (backslash) to g

Re: LyX 2.3.1: bug in "\text" mode of equations

2018-10-30 Thread Daniel
On 30/10/2018 09:38, Bernt Lie wrote: I use LyX 2.3.1 (64bit) on 64bit Win 10, latest version, and have Instant preview turned on. I need to insert some text in an equation. Two options: * \text{my text} * \mathrm{text} With \text{}, space is automatically handled. With \mathrm{}, I need to us

RE: LyX 2.3.1: bug in "\text" mode of equations

2018-10-30 Thread Bernt Lie
OK -- in your LyX file, Instant preview works ok. Two questions: * Could it depend on which *style* I use? * My LyX version is: LyX Version 2.3.1-1 (Saturday, September 29, 2018) Built from git commit hash ce82ba93 Library directory: ~\AppData\Local\LyX 2.3\Resources\ User directory: ~\AppData\Ro

Re: LyX 2.3.1: bug in "\text" mode of equations

2018-10-30 Thread Daniel
On 30/10/2018 10:46, Bernt Lie wrote: OK -- in your LyX file, Instant preview works ok. Two questions: * Could it depend on which *style* I use? So what style are you using? Can you send a (somewhat) minimal document where the problem occurs? * My LyX version is: LyX Version 2.3.1-1 (Satur

RE: LyX 2.3.1: bug in "\text" mode of equations

2018-10-30 Thread Bernt Lie
Hm... I opened a new document of the template, and in this new template, the preview works. But it does not work in another document from the same template, where I'm in the process of inserting text from an OCR scanned paper copy of a document I wrote 30 years ago... (using Adobe Acrobat for OC

Re: LyX 2.3.1: bug in "\text" mode of equations

2018-10-30 Thread Daniel
On 30/10/2018 11:33, Bernt Lie wrote: Hm... I opened a new document of the template, and in this new template, the preview works. But it does not work in another document from the same template, where I'm in the process of inserting text from an OCR scanned paper copy of a document I wrote 30

Re: LyX 2.3.1: bug in "\text" mode of equations

2018-10-30 Thread John White
On Tuesday, October 30, 2018 11:43:42 AM PDT Daniel wrote: > On 30/10/2018 11:33, Bernt Lie wrote: > > Hm... I opened a new document of the template, and in this new template, > > the preview works. But it does not work in another document from the same > > template, where I'm in the process of i

Most efficient way to import wide, long table

2018-10-30 Thread Rich Shepard
I have an 82-line text file which has 5 columns separated by pipes. '|', and a wide column with location names. Text file format examples: 10775| Santiam R. at Jefferson Bridge | 1979-11-06 | 2011-01-06 |67 10386| Middle Fork Willamette R. at aspe

Re: Most efficient way to import wide, long table

2018-10-30 Thread Benedict Holland
Create a table that is 5 columns and 84 rows (assuming you want a header). Copy from excel into the table. You can specify rows and columns of your table. Next comes orientation. From the table, select properties and I would chose fancy table options, long table, and then orient the page as landsc

Re: Most efficient way to import wide, long table

2018-10-30 Thread Rich Shepard
On Tue, 30 Oct 2018, Benedict Holland wrote: Create a table that is 5 columns and 84 rows (assuming you want a header). Copy from excel into the table. You can specify rows and columns of your table. Ben, A) The table is 82 rows long so a header row makes a total of 83 rows. B) I don't have

Re: Most efficient way to import wide, long table

2018-10-30 Thread John White
On Tuesday, October 30, 2018 11:09:39 AM PDT Rich Shepard wrote: > On Tue, 30 Oct 2018, Benedict Holland wrote: > > Create a table that is 5 columns and 84 rows (assuming you want a header). > > Copy from excel into the table. You can specify rows and columns of your > > table. > > Ben, > >

Re: Most efficient way to import wide, long table

2018-10-30 Thread Baris Erkus
On 10/30/2018 6:50 PM, Rich Shepard wrote: > I have an 82-line text file which has 5 columns separated by pipes. '|', > and a wide column with location names. Text file format examples: > >  10775    | Santiam R. at Jefferson > Bridge  | 1979-11-06 | 2011-01-06 |   

Re: Most efficient way to import wide, long table

2018-10-30 Thread Benedict Holland
Oh. My apologies. LibreOffice or Excel can split text based on a character. In this case, I would bring your text into excel, split to columns on | and copy it into a defined table within Lyx. Lyx accepts Excel "copy and paste" as long as you have the table already defined. You would want Excel to

Re: Most efficient way to import wide, long table

2018-10-30 Thread Rich Shepard
On Tue, 30 Oct 2018, Baris Erkus wrote: I have done this, seems to work: 1. Replace all the "|" with the tab character with a text editor. 2. Select the portion you want to paste. 3. Go to the first cell in Lyx. 4. Edit > Paste Special > Plain Text. 5. Table row and columns numbers should be co

Re: Most efficient way to import wide, long table

2018-10-30 Thread Baris Erkus
On 10/30/2018 11:23 PM, Rich Shepard wrote: > On Tue, 30 Oct 2018, Baris Erkus wrote: > >> I have done this, seems to work: >> >> 1. Replace all the "|" with the tab character with a text editor. >> 2. Select the portion you want to paste. >> 3. Go to the first cell in Lyx. >> 4. Edit > Paste Speci

Re: Most efficient way to import wide, long table

2018-10-30 Thread Dr Eberhard Lisse
Rich, it depends entirely on what you mean by efficient. There are a number of hits on https://www.google.de/search?q=csv2lyx If you wanted a command line workflow there are number of tools to convert CSV into LaTeX, which you can import easily. Some can use '|' as separator directly, some need

Re: Most efficient way to import wide, long table

2018-10-30 Thread Rich Shepard
On Tue, 30 Oct 2018, Dr Eberhard Lisse wrote: it depends entirely on what you mean by efficient. el: If I can highlight the entire file in emacs, use M-w to copy it, then paste it in a blank LyX table that's efficient: 10 seconds or less. Thanks, Rich

Re: Most efficient way to import wide, long table

2018-10-30 Thread Baris Erkus
On 10/31/2018 12:48 AM, Rich Shepard wrote: > On Tue, 30 Oct 2018, Dr Eberhard Lisse wrote: > >> it depends entirely on what you mean by efficient. > > el: > >   If I can highlight the entire file in emacs, use M-w to copy it, then > paste it in a blank LyX table that's efficient: 10 seconds or les

Re: Most efficient way to import wide, long table

2018-10-30 Thread Rich Shepard
On Tue, 30 Oct 2018, Baris Erkus wrote: Just a minor fix: 1. Replace all the "|" with the tab character with a text editor. 2. Select the portion you want to paste. 2a. Copy to clipboard. 3. Go to the first cell in Lyx. 4. Edit > Paste Special > Plain Text. 5. Table row and columns numbers shou

Re: Most efficient way to import wide, long table

2018-10-30 Thread Benedict Holland
For automation, I include a tex file within Lyx. I then create all of my latex tables using python or whatever. It produces valid latex. This is very hard to do without a heavy level of conformity. For example, I can write a quick script that will take 95 rows of 4 column data quite quickly. I have

Multi-page table in landscape mode

2018-10-30 Thread Rich Shepard
Reading Chapter 2 (Tables) in the embedded objects help manual I see an example of a table with the line, 'continued on next page,' but no instruction on how to insert that. The manual notes that lyx/LaTeX/TeX will break the table across multiple pages but that's not occurring here. When I compi

Re: Multi-page table in landscape mode

2018-10-30 Thread Rich Shepard
On Tue, 30 Oct 2018, Rich Shepard wrote: Reading Chapter 2 (Tables) in the embedded objects help manual I see an example of a table with the line, 'continued on next page,' but no instruction on how to insert that. The manual notes that lyx/LaTeX/TeX will break the table across multiple pages bu