LyX 2.4.4: serious bug wrt. modern tables??

2025-07-08 Thread Bernt Lie via lyx-users
In some lecture notes, I used to have the nomenclature in 2 separate 
"old-fashioned" tables. I have created a KOMA book file and inserted these 2 
tables in File_nomenclature_2024.lyx (this version of the tables works fine).

When LyX 2.4 came out, I tried to merge these tables in a single, multi page 
table. I have attached a file containing the new table in 
File_nomenclature_2025.lyx.

I did not have problems with previewing (pdf) or spell checking the document 
containing the multi page table prior to LyX 2.4.4, as far as I remember (or 
perhaps I didn't try it).
--
Now, with LyX 2.4.4, when I copy the table from the lecture notes and paste it 
into a new, minimal KOMA Book template, I get the following behavior (with file 
File_nomenclature_2025.lyx):

1. I can preview the file (as pdf) once I have just pasted the multi-page table 
into it.
2. If I try to spell-check the document, LyX crashes big time.
3. If I re-start LyX and try to open the file, LyX never even opens on my 
Windows 11 PC.
4. If I paste the multi-page table into the KOMA Book template, preview it, and 
exit the file without trying to spell-check, and then try to open it again, LyX 
crashes big time. [In other words: you may not even be able to open 
File_nomenclature_2025.lyx]

*Preliminary analysis*:
a. The behavior indicates that there is something wrong with the table. 
-- Has there been a change from earlier versions of LyX 2.4 than LyX 2.4.4? Or 
can my file have been corrupted?
-- The problem with the table blocks the file from being opened (LyX crashes)
-- The problem with the table blocks the table from being spell checked (LyX 
crashes)
-- However, if I am able to open the file with the table (only works when I 
paste it from another file), I can generate a pdf file
-- The peculiar thing is that I can open the original file containing the table 
(huge file). OK -- sometimes, opening that, too, crashes LyX. But it seems like 
sometimes (but not always) if I rename the file, I can open it. Very weird.

b. Alternatively, somehow my LyX installation has become corrupted??
--
If anyone figures out what is wrong, kindly let me know. I spent some time 
creating the "2025" version of the table, and would like to avoid creating it 
anew.


File_nomenclature_2024.lyx
Description: File_nomenclature_2024.lyx


File_nomenclature_2025.lyx
Description: File_nomenclature_2025.lyx
-- 
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users


Re: Tables

2025-04-04 Thread Eberhard W Lisse
2.4.3 is current

el

On 2025-03-30 13:38, Brian Kneller via lyx-users wrote:
[...]
> I am using Lyx 2.3.7
[...]

-- 
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users


Re: Tables

2025-03-30 Thread Richard Kimberly Heck

And there were TONS of improvements to tables in 2.4.0.

On 3/30/25 12:22 PM, Eberhard W Lisse wrote:

2.4.3 is current

el

On 2025-03-30 13:38, Brian Kneller via lyx-users wrote:
[...]

I am using Lyx 2.3.7

[...]



--
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users


Tables

2025-03-30 Thread Brian Kneller via lyx-users

Hello, 

I am using Lyx 2.3.7 and having issues   with the table configurations. I have 
been through many postings on the Web and not resolved the two following 
issues. The table is broader than the A4 page so I have used the rotate 
function in the Lyx table config. I am cutting and pasting data from an Excel 
spread sheet to the Lyx table, and have not used the Lyx file CSV input 
function because I have a version miss match in my system and I don’t really 
want to start changing things at this late stage when I am incorporating 
examiners comments.

The two issues I have are.

I need to insert a line between the table title and the table itself at the top 
of the page - I have tried various combinations of line insert using Lyx and 
ERT functions. - how is this done plse?
I am getting the text in a cell by constraining its width via table configs 
however one column contains hyperlinks and here the wrapping does not work, 
probably due to their format? Is there a way of warping a continuous character 
stream into a lyx table cell of defined column width?

Thank you


Brian Kneller.


-- 
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users


Re: The numbering of tables by section cannot be displayed normally in the Lyx document.(表格按节编号在lyx文档中不能正常显示)

2024-11-04 Thread vidon via lyx-users
I found a bug. The ”figure“ in the file "tabs - within - sections.module" should be  ”table“.

 

 

 

 

 
 

Sent: Saturday, November 02, 2024 at 8:48 PM
From: "vidon via lyx-users" 
To: [email protected]
Subject: The numbering of tables by section cannot be displayed normally in the Lyx document.(表格按节编号在lyx文档中不能正常显示)



 

When the table in the module of document settings is selected and numbered by section, the tables in the document are not numbered by section, but the figures are numbered by section. However, after compilation and output, the tables are numbered by section while the figures are not.

 

当在文档设置的模块中选中表格按节编号时,文档中表格没有按节显示编号但是图却按节显示编号了,编译输出后倒是表格按照节编号图没有按照节编号。

 

Remark: My English level is limited. The above description was translated using an AI tool. The Chinese description is attached. If you understand Chinese, you will understand more accurately.

备注:英语水平有限,以上描述使用AI工具翻译,附上中文描述,如果懂中文会理解更准确。

 

-- lyx-users mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-users


-- 
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users


Re: Can't input tables

2024-09-27 Thread Richard Kimberly Heck

On 9/27/24 7:49 PM, Richard Opheim wrote:
I was working on a file, and "Tables" stopped working. When I click on 
"Tables," the attached screen appears. Nothing can be input into the 
column and row boxes; no table can be made.


This is Windows?

Try hitting Alt-R (the keyboard accelerator for the Row box) and see if 
that allows you to enter a number. It looks like the entry boxes are 
weirdly compressed, so it might be that you just can't see what's being 
entered.


There have also been reports on Windows of weirdness caused by the Qt 
theme being used. You might try switching the theme, and maybe even 
switching it back after that. I do not know how to do that, as I'm not 
on Windows, but there has been discussion on this list, so you could 
check the archives.


Riki

-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


AW: Vertical alignment in tables

2024-08-15 Thread Dessecker, Axel
Great. Thank you very much!

Axel



Von: lyx-users  im Auftrag von Jürgen 
Spitzmüller 
Gesendet: Mittwoch, 14. August 2024 14:30:32
An: [email protected]
Betreff: Re: Vertical alignment in tables

Am Mittwoch, dem 14.08.2024 um 12:44 +0200 schrieb Axel Dessecker via
lyx-users:
> Thank you for table improvements in 2.4.0. Unfortunately I still have
> problems
> to vertically align text.
>
> In the MWE, row 3 is shown to be vertically centered but this does
> not seem to
> work. From column 3 to the right, all cells in this row are correctly
> shown as
> vertically top-aligned but I'm not allowed to change this.

the "m" specifier does not work within tabularx, these columns are
hardcoded to p (top alignment). This is documented in the tabularx
manual.

You can change that for a table by adding in front of the table:
\renewcommand{\tabularxcolumn}[1]{m{#1}}

If you do it in beamer, this needs to be within a fragile frame,
though.

See attached modification of your example.

HTH,
--
Jürgen
-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Vertical alignment in tables

2024-08-14 Thread Jürgen Spitzmüller
Am Mittwoch, dem 14.08.2024 um 12:44 +0200 schrieb Axel Dessecker via
lyx-users:
> Thank you for table improvements in 2.4.0. Unfortunately I still have
> problems 
> to vertically align text.
> 
> In the MWE, row 3 is shown to be vertically centered but this does
> not seem to 
> work. From column 3 to the right, all cells in this row are correctly
> shown as 
> vertically top-aligned but I'm not allowed to change this.

the "m" specifier does not work within tabularx, these columns are
hardcoded to p (top alignment). This is documented in the tabularx
manual.

You can change that for a table by adding in front of the table:
\renewcommand{\tabularxcolumn}[1]{m{#1}}

If you do it in beamer, this needs to be within a fragile frame,
though.

See attached modification of your example.

HTH,
-- 
Jürgen


MWE_Table.lyx
Description: application/lyx
-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Vertical alignment in tables

2024-08-14 Thread Axel Dessecker via lyx-users
Hi,

Thank you for table improvements in 2.4.0. Unfortunately I still have problems 
to vertically align text.

In the MWE, row 3 is shown to be vertically centered but this does not seem to 
work. From column 3 to the right, all cells in this row are correctly shown as 
vertically top-aligned but I'm not allowed to change this.

I have 2.4.1, openSUSE Leap 15.5.

Thanks for any suggestions,
Axel


MWE_Table.lyx
Description: application/lyx
-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Setting up labels for and references to tables in LyX

2023-11-06 Thread Jürgen Spitzmüller
Am Montag, dem 06.11.2023 um 13:48 +0100 schrieb Jürgen Spitzmüller:
> Also, please file a bug report. I think we should handle this case
> ans mask spaces when refstyle is used.

No longer needed. I went ahead and fixed it.

-- 
Jürgen
-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Setting up labels for and references to tables in LyX

2023-11-06 Thread Jürgen Spitzmüller
Am Montag, dem 06.11.2023 um 13:41 +0100 schrieb Jürgen Spitzmüller:
> Spaces in labels work AFAICS. Special characters are automatically
> replaced by LyX.

On a closer look, it seems that refstyle doesn't work with spaces in
label IDs. Other mechanisms do work.

So either omit spaces or use prettyref instead of refstyle (Document >
Settings > Document Class.

Also, please file a bug report. I think we should handle this case ans
mask spaces when refstyle is used.

-- 
Jürgen
-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Setting up labels for and references to tables in LyX

2023-11-06 Thread Jürgen Spitzmüller
Am Montag, dem 06.11.2023 um 13:10 +0100 schrieb Ricardo Berlasso:
> El lun, 6 nov 2023 a las 12:23, Trevor Jenkins
> () escribió:
> > I need to create labels/references to multiple tables in my LyX
> > document. There is nothing in the various Table menu items for
> > this. The Insert > Label and Insert > Cross-Reference… menu items
> > do not appear to function in that for example if I set the name of
> > the label to tab:Electoral Roll Extract and then pick that name of
> > the list when inserting the cross reference neither appears in the
> > final document. The label does not appear with the table and the
> > reference does not appear at the point of reference either.
> 
> Try renaming the label to tab:Electoral-Roll-Extract,i.e. replace the
> spaces with dashes. Does it work that way? I think that labels do not
> accept spaces or special characters. If this is the case, you have
> found a problem as the dialog should warn that the label is invalid.

Spaces in labels work AFAICS. Special characters are automatically
replaced by LyX.

I think a minimal example file showing the problem would help us
helping.

-- 
Jürgen
-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Setting up labels for and references to tables in LyX

2023-11-06 Thread Ricardo Berlasso
El lun, 6 nov 2023 a las 12:23, Trevor Jenkins ()
escribió:

> I need to create labels/references to multiple tables in my LyX document.
> There is nothing in the various Table menu items for this. The Insert >
> Label and Insert > Cross-Reference… menu items do not appear to function in
> that for example if I set the name of the label to tab:Electoral Roll
> Extract and then pick that name of the list when inserting the cross
> reference neither appears in the final document. The label does not appear
> with the table and the reference does not appear at the point of reference
> either.
>

Try renaming the label to tab:Electoral-Roll-Extract,i.e. replace the
spaces with dashes. Does it work that way? I think that labels do not
accept spaces or special characters. If this is the case, you have found a
problem as the dialog should warn that the label is invalid.

Regards,
Ricardo




>
> How do I setup labels for each of my tables and then reference them in the
> text of my document?
>
>
> Version information etc.
>
> LyX 2.3.7
> macOS Sonoma 14.1 on a Mac mini M1
> TeXlive 2023
> Python 3.11.5
>
> Document class Tufte Handout
> Local layout “Include ../citeengines/basic.citeengine”(because I am using
> bibtex)
> Also using pdflscape (updated from TeXlive an hour ago) as the tables are
> very wide
>
> Regards, Trevor.
>
> <>< Re: deemed!
>
> --
> lyx-users mailing list
> [email protected]
> http://lists.lyx.org/mailman/listinfo/lyx-users
>
-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Setting up labels for and references to tables in LyX

2023-11-06 Thread Trevor Jenkins
I need to create labels/references to multiple tables in my LyX document. There 
is nothing in the various Table menu items for this. The Insert > Label and 
Insert > Cross-Reference… menu items do not appear to function in that for 
example if I set the name of the label to tab:Electoral Roll Extract and then 
pick that name of the list when inserting the cross reference neither appears 
in the final document. The label does not appear with the table and the 
reference does not appear at the point of reference either.

How do I setup labels for each of my tables and then reference them in the text 
of my document?


Version information etc.

LyX 2.3.7
macOS Sonoma 14.1 on a Mac mini M1
TeXlive 2023
Python 3.11.5

Document class Tufte Handout
Local layout “Include ../citeengines/basic.citeengine”(because I am using 
bibtex)
Also using pdflscape (updated from TeXlive an hour ago) as the tables are very 
wide

Regards, Trevor.

<>< Re: deemed!

-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


R: Using tables

2023-05-18 Thread Cesare Padovani
Thanks Rich for your help. I'll do several tests and let you know the outcome.

Cesare

-Messaggio originale-
Da: lyx-users  Per conto di Rich Shepard
Inviato: giovedì 18 maggio 2023 16:18
A: [email protected]
Oggetto: Re: R: Using tables

On Thu, 18 May 2023, Cesare Padovani wrote:

> I've already tried the first suggestion, in the page layout of the
> document, because the width of the table is about equal to the width
> of an
> A4 sheet (I could also try in the table settings). So I would be left
> with the second one.

Cesare,

As a last resort, split the table into two parts (a longtable) and repeat the 
key column on the second part.

Rich
--
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users
-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: R: Using tables

2023-05-18 Thread Rich Shepard

On Thu, 18 May 2023, Cesare Padovani wrote:


I've already tried the first suggestion, in the page layout of the
document, because the width of the table is about equal to the width of an
A4 sheet (I could also try in the table settings). So I would be left with
the second one.


Cesare,

As a last resort, split the table into two parts (a longtable) and repeat
the key column on the second part.

Rich
--
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


R: Using tables

2023-05-18 Thread Cesare Padovani
I've already tried the first suggestion, in the page layout of the document, 
because the width of the table is about equal to the width of an A4 sheet (I 
could also try in the table settings). So I would be left with the second one.

Cesare

-Messaggio originale-
Da: lyx-users  Per conto di Rich Shepard
Inviato: giovedì 18 maggio 2023 15:54
A: [email protected]
Oggetto: Re: R: Using tables

On Thu, 18 May 2023, Cesare Padovani wrote:

> It seems that the problem is due to the table width established in the
> settings. I did various tests. As a first test, I set the width of
> each cell and then that of the table, equal to the sum of the widths
> of the cells in a row. In these conditions the problem occurs: the
> terminal part of the table (on the right) has no horizontal rows,
> which stop earlier. If in the settings I increase the width of the
> table, keeping the width of each cell fixed (or I decrease the width
> of each cell and keeping the width of the table fixed), then the part
> of the table without horizontal rows is reduced. Further increasing
> the width of the table, at some point the phenomenon disappears. It
> also happens that in printing, the real width of the table is greater than 
> the one established in the settings!

Cesare,

Two things to try:
1) Rotate the table so it displays in landscape mode.

2) Make the font smaller.

Rich
--
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users
-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: R: Using tables

2023-05-18 Thread Rich Shepard

On Thu, 18 May 2023, Cesare Padovani wrote:


It seems that the problem is due to the table width established in the
settings. I did various tests. As a first test, I set the width of each
cell and then that of the table, equal to the sum of the widths of the
cells in a row. In these conditions the problem occurs: the terminal part
of the table (on the right) has no horizontal rows, which stop earlier. If
in the settings I increase the width of the table, keeping the width of
each cell fixed (or I decrease the width of each cell and keeping the
width of the table fixed), then the part of the table without horizontal
rows is reduced. Further increasing the width of the table, at some point
the phenomenon disappears. It also happens that in printing, the real
width of the table is greater than the one established in the settings!


Cesare,

Two things to try:
1) Rotate the table so it displays in landscape mode.

2) Make the font smaller.

Rich
--
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


R: Using tables

2023-05-18 Thread Cesare Padovani
It seems that the problem is due to the table width established in the 
settings. I did various tests.
As a first test, I set the width of each cell and then that of the table, equal 
to the sum of the widths of the cells in a row. In these conditions the problem 
occurs: the terminal part of the table (on the right) has no horizontal rows, 
which stop earlier.
If in the settings I increase the width of the table, keeping the width of each 
cell fixed (or I decrease the width of each cell and keeping the width of the 
table fixed), then the part of the table without horizontal rows is reduced. 
Further increasing the width of the table, at some point the phenomenon 
disappears.
It also happens that in printing, the real width of the table is greater than 
the one established in the settings!
Cesare

P.S. My LyX versione: 2.3.7

-Messaggio originale-
Da: lyx-users  Per conto di Dr Eberhard W Lisse
Inviato: mercoledì 17 maggio 2023 23:56
A: [email protected]
Oggetto: Re: Using tables

What youare doing wrong?

You are not posting a Minimal Working Example.

el

On 17/05/2023 23:44, Cesare Padovani wrote:
> HI,
>
> I need a table of 10 columns and 8 rows. When I generate the PDF file,
> the last columns are not displayed correctly: the horizontal lines of
> the rows are missing. What am I doing wrong?
>
> Thank you
>
>
>
> Cesare
>
>


--
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users
-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Using tables

2023-05-17 Thread Dr Eberhard W Lisse
What youare doing wrong?

You are not posting a Minimal Working Example.

el

On 17/05/2023 23:44, Cesare Padovani wrote:
> HI,
> 
> I need a table of 10 columns and 8 rows. When I generate the PDF file,
> the last columns are not displayed correctly: the horizontal lines of
> the rows are missing. What am I doing wrong?
> 
> Thank you
> 
>  
> 
> Cesare
> 
> 


-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Using tables

2023-05-17 Thread Cesare Padovani
HI,
I need a table of 10 columns and 8 rows. When I generate the PDF file, the last 
columns are not displayed correctly: the horizontal lines of the rows are 
missing. What am I doing wrong?
Thank you

Cesare
-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to modify tables with InsetLayout

2023-02-25 Thread Richard Kimberly Heck

On 2/21/23 13:57, tush via lyx-users wrote:
In the help file "Customizing LyX: Features for the Advanced User", 
section 5.3.10, it is said that by using an "InsertLayout table" one 
can modify this pre-existing inset.

I am curious to know what changes can I make to tables?


I am not sure about this. Let me have a look.

Riki

-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


How to modify tables with InsetLayout

2023-02-21 Thread tush via lyx-users
In the help file "Customizing LyX: Features for the Advanced User", section 
5.3.10, it is said that by using an "InsertLayout table" one can modify this 
pre-existing inset.
I am curious to know what changes can I make to tables? Looks like tables are 
set-up using the many buttons of the gui. Nothing is mentioned about it in the 
help file "Embedded Objects" nor anywhere in the customization help file.-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Tables: Setting width for entire column

2023-02-10 Thread Udicoudco
The column headers are in the first row, and centered. Unchecking
> multicolumn for the two header cells doesn't allow me to center them above
> the left-aligned cells beneath them.
>

 The column headers are in the second row, the first row is the caption.
You don't need to uncheck multicolumn in the headers, just keep the
width field empty, see the attached file I sent in the previous mail.

Regards,
Udi

--
>
lyx-users mailing list
> [email protected]
> http://lists.lyx.org/mailman/listinfo/lyx-users
>
-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Tables: Setting width for entire column

2023-02-10 Thread Rich Shepard

On Fri, 10 Feb 2023, Udicoudco wrote:


Since the alignment of the text inside the second row is centered,
contrary to the rest of the tabular, these cells are typeset inside
\multicell, and in this case their width can be independent from the width
of their column.


Udi,

The column headers are in the first row, and centered. Unchecking
multicolumn for the two header cells doesn't allow me to center them above
the left-aligned cells beneath them.


If you will keep the column width field in the settings empty, they will
have the same width as the rest of the column (currently they have widths
of 45% and 55% of \textwidth, thus the table flows out of the screen).
Change the column width only when the cursor is below the headings.


With the cursor in each of the header cells, there's no width, but the
alignment is Left. The top and bottom borders for the first row, and the
bottom border for the last row slightly overlap the text area.

I'll ignore the left-aligned column headers and slight overhang of the
borders because they're not critical.

Thanks,

Rich
--
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Tables: Setting width for entire column

2023-02-10 Thread Udicoudco
On Fri, Feb 10, 2023 at 7:30 PM Rich Shepard 
wrote:

> On Fri, 10 Feb 2023, Paul A. Rubin wrote:
>
> > I'm with Udi on this. Maybe you should post a MWE?
>
> Paul, Udi:
>
> I placed the cursor in a cell below the first row (for each column) and
> changed the widths from inches to % text area (43%, 53%). Not using the top
> row cell made a difference.
>
> The table heading and the cell underlines overhang the right margin a bit.
> I
> don't know how fix this.
>
> MWE attached.
>
> Regards,
>
> Rich--
>

Since the alignment of the text inside the second
row is centered, contrary to the rest of the tabular,
these cells are typeset inside \multicell, and in this
case their width can be independent from the width
of their column.

If you will keep the column width field in the settings empty,
they will have the same width as the rest of the column
(currently they have widths of 45% and 55% of \textwidth, thus
the table flows out of the screen).
Change the column width only when the cursor is below
the headings.

Regards,
Udi


lyx-users mailing list
> [email protected]
> http://lists.lyx.org/mailman/listinfo/lyx-users
>


mwe.lyx
Description: application/lyx
-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Tables: Setting width for entire column

2023-02-10 Thread Rich Shepard

On Fri, 10 Feb 2023, Paul A. Rubin wrote:


I'm with Udi on this. Maybe you should post a MWE?


Paul, Udi:

I placed the cursor in a cell below the first row (for each column) and
changed the widths from inches to % text area (43%, 53%). Not using the top
row cell made a difference.

The table heading and the cell underlines overhang the right margin a bit. I
don't know how fix this.

MWE attached.

Regards,

Rich#LyX 2.3 created this file. For more info see http://www.lyx.org/
\lyxformat 544
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass scrreprt
\begin_preamble
\date{}
\usepackage{gensymb,colortbl,textcomp}
\usepackage{scrlayer-scrpage}
\pagestyle{scrheadings}
\end_preamble
\options abstract=on
\use_default_options true
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding utf8
\fontencoding global
\font_roman "palatino" "default"
\font_sans "cmss" "default"
\font_typewriter "cmtt" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype false
\use_dash_ligatures true
\graphics default
\default_output_format pdf2
\output_sync 0
\bibtex_command bibtex
\index_command default
\float_placement H
\paperfontsize default
\spacing single
\use_hyperref false
\papersize custom
\use_geometry true
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 0
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine natbib
\cite_engine_type authoryear
\biblio_style authordate3
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date true
\justification true
\use_refstyle 0
\use_minted 0
\index Index
\shortcut idx
\color #008000
\end_index
\paperwidth 6in
\paperheight 9in
\leftmargin 1in
\topmargin 1in
\rightmargin 1in
\bottommargin 1in
\headsep 1in
\secnumdepth 2
\tocdepth 2
\paragraph_separation indent
\paragraph_indentation default
\is_math_indent 0
\math_numbering_side default
\quotes_style english
\dynamic_quotes 0
\papercolumns 1
\papersides 2
\paperpagestyle default
\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 Standard
The Nehalem River and its tributaries provide habitats for 49 species of
 fish, both resident fresh water and anadromous life histories (Table 
\begin_inset CommandInset ref
LatexCommand ref
reference "tab: fish species list"
plural "false"
caps "false"
noprefix "false"

\end_inset

).
\end_layout

\begin_layout Standard
\align center
\begin_inset Tabular






\begin_inset Text

\begin_layout Plain Layout
\begin_inset Caption Standard

\begin_layout Plain Layout
\begin_inset CommandInset label
LatexCommand label
name "tab: fish species list"

\end_inset

Common and scientific names of fish recorded in the Nehalem River and its
 tributaries.
\end_layout

\end_inset


\end_layout

\end_inset


\begin_inset Text

\begin_layout Plain Layout

\end_layout

\end_inset




\begin_inset Text

\begin_layout Plain Layout
Common Name
\end_layout

\end_inset


\begin_inset Text

\begin_layout Plain Layout
Scientific Name
\end_layout

\end_inset




\begin_inset Text

\begin_layout Plain Layout

\family roman
\series medium
\shape up
\size normal
\emph off
\bar no
\strikeout off
\xout off
\uuline off
\uwave off
\noun off
\color none
Black crappie
\end_layout

\end_inset


\begin_inset Text

\begin_layout Plain Layout

\family roman
\series medium
\shape up
\size normal
\emph off
\bar no
\strikeout off
\xout off
\uuline off
\uwave off
\noun off
\color none
Pomoxis nigromaculatus
\end_layout

\end_inset




\begin_inset Text

\begin_layout Plain Layout

\family roman
\series medium
\shape up
\size normal
\emph off
\bar no
\strikeout off
\xout off
\uuline off
\uwave off
\noun off
\color none
Bluegill
\end_layout

\end_inset


\begin_inset Text

\begin_layout Plain Layout

\family roman
\series medium
\shape up
\size normal
\emph off
\bar no
\strikeout off
\xout off
\uuline off
\uwave off
\noun off
\color none
Lepomis macrochirus
\end_layout

\end_inset




\begin_inset Text

\begin_layout Plain Layout

\family roman
\series medium
\shape up
\size normal
\emph off
\bar no
\strikeout off
\xout off
\uuline off
\uwave off
\noun off
\color none
Brook trout
\end_layout

\end_inset


\begin_inset Text

\begin_layout Plain Layout

\family roman
\series medium
\shape up
\size normal
\emph off
\bar no
\strikeout off
\xout off
\uuline off
\uwave off
\noun off
\color none
Salvelinus fontinalis
\end_layout

\end_inset




\begin_inset Text

\begin_layout Plain Layout

\family roman
\series medium
\shape up
\size normal
\emph off
\bar no
\strikeout off
\xout off
\uuline off
\uwave off
\noun off
\color none
Brown bullhead
\end_layout

\end_inset


\begin_inset Text

\b

Re: Tables: Setting width for entire column

2023-02-10 Thread Paul A. Rubin

On 2/10/23 11:32, Rich Shepard wrote:

On Fri, 10 Feb 2023, Udicoudco wrote:


Right click on the table and select "settings..." to open the tabular
settings dialog. Put the cursor in a cell inside the column you want to
change, and in the settings dialog in Table settings->Column settings
change the width to the desired one.


Udi,

That's what I did. The cursor is in the top row of the column and Column
settings changes only that one cell.

Thanks,

Rich

I'm with Udi on this. Maybe you should post a MWE?

Paul

--
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Tables: Setting width for entire column

2023-02-10 Thread Rich Shepard

On Fri, 10 Feb 2023, Udicoudco wrote:


Right click on the table and select "settings..." to open the tabular
settings dialog. Put the cursor in a cell inside the column you want to
change, and in the settings dialog in Table settings->Column settings
change the width to the desired one.


Udi,

That's what I did. The cursor is in the top row of the column and Column
settings changes only that one cell.

Thanks,

Rich
--
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Tables: Setting width for entire column

2023-02-10 Thread Udicoudco
On Fri, Feb 10, 2023 at 5:59 PM Rich Shepard 
wrote:

> I've looked at the table settings, the User Guide, and the Wiki without
> learning how to set the width of an entire column. One table has many rows
> (it's a multipage table), and I'm able to change the width of only the cell
> in which the cursor is located.
>
> What am I missing?
>
> TIA,
>
> Rich
> --
>

Right click on the table and select "settings..." to open the tabular
settings dialog.
Put the  cursor in a cell inside the column you want to change, and in the
settings dialog in Table settings->Column settings change the width to the
desired one.

Regards,
Udi

> lyx-users mailing list
> [email protected]
> http://lists.lyx.org/mailman/listinfo/lyx-users
>
-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Tables: Setting width for entire column

2023-02-10 Thread Rich Shepard

I've looked at the table settings, the User Guide, and the Wiki without
learning how to set the width of an entire column. One table has many rows
(it's a multipage table), and I'm able to change the width of only the cell
in which the cursor is located.

What am I missing?

TIA,

Rich
--
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Multipage-tables

2021-11-03 Thread jezZiFeR
Hello,

I use LyX 2.3.6.2 on MacOS 10.14.6 and Komscript report.

Could someone please tell me to achieve that a table that is in a sliding 
object and rotated 90° can be displayed multi-page? I have checked this option 
in the table's settings dialogue, but it has no effect - I only ever get the 
middle part of the long table displayed, which protrudes from both the top and 
bottom of the sheet. These parts are then completely missing.

I hope this is understandable - thank you very much!

Best
Jess
-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Wrong order of footnote numbers in tables with afterpage

2021-05-26 Thread _johnny7_ger




Hello,

I have several multi-page tables in my document. With the package
afterpage it is convenient to force them to always begin on a new page
which works well. I also want to use footnotes in those tables - I am
aware that this is fragile - but this also works as expected. There is
one little flaw, however, the footnote numbering does not correspond
anymore to their actual order.

In LyX I have:
Footnote 1
(afterpage:) Table with Footnote 2
Footnote 3

In the output I have:
Footnote 1
Table with Footnote 3
Footnote 2

That is probably because Footnote 3 is in a paragraph that begins before
the table. Is there any way to correct this numbering, even if manually
for each case?

You'd have to manually reset the footnote numbers. You can do this with:

\setcounter{footnote}{3}

or whatever. You'll need to restore it to whatever's right also after
the last one.

Riki



Thanks, this works like a charm! I have to use this command three times.
--
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Wrong order of footnote numbers in tables with afterpage

2021-05-25 Thread Richard Kimberly Heck
On 5/25/21 6:46 AM, [email protected] wrote:
> Hello,
>
> I have several multi-page tables in my document. With the package
> afterpage it is convenient to force them to always begin on a new page
> which works well. I also want to use footnotes in those tables - I am
> aware that this is fragile - but this also works as expected. There is
> one little flaw, however, the footnote numbering does not correspond
> anymore to their actual order.
>
> In LyX I have:
> Footnote 1
> (afterpage:) Table with Footnote 2
> Footnote 3
>
> In the output I have:
> Footnote 1
> Table with Footnote 3
> Footnote 2
>
> That is probably because Footnote 3 is in a paragraph that begins before
> the table. Is there any way to correct this numbering, even if manually
> for each case?

You'd have to manually reset the footnote numbers. You can do this with:

\setcounter{footnote}{3}

or whatever. You'll need to restore it to whatever's right also after
the last one.

Riki


-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Wrong order of footnote numbers in tables with afterpage

2021-05-25 Thread _johnny7_ger

Hello,

I have several multi-page tables in my document. With the package
afterpage it is convenient to force them to always begin on a new page
which works well. I also want to use footnotes in those tables - I am
aware that this is fragile - but this also works as expected. There is
one little flaw, however, the footnote numbering does not correspond
anymore to their actual order.

In LyX I have:
Footnote 1
(afterpage:) Table with Footnote 2
Footnote 3

In the output I have:
Footnote 1
Table with Footnote 3
Footnote 2

That is probably because Footnote 3 is in a paragraph that begins before
the table. Is there any way to correct this numbering, even if manually
for each case?
Thanks!
--
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Tab autocomplete behavior in tables

2020-12-07 Thread Pavel Sanda
On Mon, Dec 07, 2020 at 11:34:44AM -0500, Paul A. Rubin wrote:
> On 12/7/20 5:51 AM, Pavel Sanda wrote:
> > On Mon, Nov 30, 2020 at 08:08:44PM -0500, Paul A. Rubin wrote:
> > > An interesting related behavior has to do with the escape key. In other
> > > programs (such as programming IDEs), if I get autocompletion hints I don't
> > > want, I typically hit the escape key to get rid of them. So, having
> > > reproduced the problem with Maria's help, my instinct was to hit Esc and
> > > then Tab ... except Esc boots me out of the table. I can understand the
> > > logic (sort of), but I wonder if there is a way to repurpose the escape 
> > > key
> > > to just stop hints without moving the cursor?
> > Sorry to join the party little bit late.
> > The non functional Esc is in your case table+preferebce of automatic menu 
> > in text, right?
> > Does the Esc works correct when you have menu in math mode? (Vaguely I 
> > remember fixing
> > this long time ago, but maybe the text part was missed.)
> > 
> > Pavel
> Pavel,
> 
> Yes, in math mode hitting the ESC key while a completion suggestion is
> visible removes the suggestion (and the characters that triggered it) but
> leaves the cursor in the correct position. For instance, if (in a math
> inset) I type "xyz\ta" I get a suggested completion "xyz\tan". If I hit ESC,
> the inset contents revert to "xyz" with the cursor after the "z" and inside
> the inset.

Ok I might have time to look on the non functional Esc in text next week
(or next shutdown for that matter ;)

Pavel
-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Tab autocomplete behavior in tables

2020-12-07 Thread Paul A. Rubin

On 12/7/20 5:51 AM, Pavel Sanda wrote:

On Mon, Nov 30, 2020 at 08:08:44PM -0500, Paul A. Rubin wrote:

An interesting related behavior has to do with the escape key. In other
programs (such as programming IDEs), if I get autocompletion hints I don't
want, I typically hit the escape key to get rid of them. So, having
reproduced the problem with Maria's help, my instinct was to hit Esc and
then Tab ... except Esc boots me out of the table. I can understand the
logic (sort of), but I wonder if there is a way to repurpose the escape key
to just stop hints without moving the cursor?

Sorry to join the party little bit late.
The non functional Esc is in your case table+preferebce of automatic menu in 
text, right?
Does the Esc works correct when you have menu in math mode? (Vaguely I remember 
fixing
this long time ago, but maybe the text part was missed.)

Pavel

Pavel,

Yes, in math mode hitting the ESC key while a completion suggestion is 
visible removes the suggestion (and the characters that triggered it) 
but leaves the cursor in the correct position. For instance, if (in a 
math inset) I type "xyz\ta" I get a suggested completion "xyz\tan". If I 
hit ESC, the inset contents revert to "xyz" with the cursor after the 
"z" and inside the inset.


Paul

--
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Tab autocomplete behavior in tables

2020-12-07 Thread Pavel Sanda
On Mon, Nov 30, 2020 at 08:08:44PM -0500, Paul A. Rubin wrote:
> An interesting related behavior has to do with the escape key. In other
> programs (such as programming IDEs), if I get autocompletion hints I don't
> want, I typically hit the escape key to get rid of them. So, having
> reproduced the problem with Maria's help, my instinct was to hit Esc and
> then Tab ... except Esc boots me out of the table. I can understand the
> logic (sort of), but I wonder if there is a way to repurpose the escape key
> to just stop hints without moving the cursor?

Sorry to join the party little bit late.
The non functional Esc is in your case table+preferebce of automatic menu in 
text, right?
Does the Esc works correct when you have menu in math mode? (Vaguely I remember 
fixing
this long time ago, but maybe the text part was missed.)

Pavel
-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Tab autocomplete behavior in tables

2020-12-03 Thread Scott Kostyshak
On Mon, Nov 30, 2020 at 08:08:44PM -0500, Paul A. Rubin wrote:

> An interesting related behavior has to do with the escape key. In other
> programs (such as programming IDEs), if I get autocompletion hints I don't
> want, I typically hit the escape key to get rid of them. So, having
> reproduced the problem with Maria's help, my instinct was to hit Esc and
> then Tab ... except Esc boots me out of the table. I can understand the
> logic (sort of), but I wonder if there is a way to repurpose the escape key
> to just stop hints without moving the cursor?

I have a similar annoyance when I open the layout box (with alt + p, ) 
in a read-only document. I remember I spent some time trying to figure out 
where in the code the escape was received and processed (i.e., not processed), 
but failed to make progress.

Scott


signature.asc
Description: PGP signature
-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Tab autocomplete behavior in tables

2020-12-01 Thread Maria Gouskova
On Mon, Nov 30, 2020 at 8:08 PM Paul A. Rubin  wrote:

> On 11/30/20 6:02 PM, Scott Kostyshak wrote:
>
> On Mon, Nov 30, 2020 at 05:45:59PM -0500, Paul A. Rubin wrote:
>
> On 11/30/20 5:13 PM, Scott Kostyshak wrote:
>
> Scott: Perhaps you can alleviate my confusion here.
>
> Thanks for joining the conversation, Paul. It seems we have a mystery.
>
>
> I use the CUA bind file
> (with a couple of tweaks) and have the same binding for Tab that you listed.
> In the preferences dialog, tab completion is on for math mode and off for
> text mode.
>
> Just to be clear, I think you mean *automatic* completion is on for
> math mode and off for text mode. It took me a while to understand the
> distinction.
>
>
> In a math inset, if I type something like \right and start
> playing with the tab key, it does various completion tasks. If I'm not part
> way into a LaTeX command (but, say, in an align* environment), tabbing moves
> from cell to cell.
>
> In a text table, Tab moves from cell to cell, period. I do *not* under any
> circumstances get prompted to do word completion. (If it matters, I do have
> continuous spell checking on, using Enchant.) So I can't reproduce the
> problem.
>
> While I'm not complaining, either I don't understand the problem or
> you and Maria both failed to appease some digital deity with whom I am
> apparently on good terms.
>
> Well shoot, I was hoping it was the opposite---that some deity was doing me a 
> favor by trying to help with completion, and all I would have to do is piss 
> them off. Gaining their favor seems much more challenging.
>
>
> This is on Linux Mint 20, so behavior should be the same as on Ubuntu Focal.
>
> Interesting differences. If in preferences you turn automatic completion on 
> for text, does that change anything? If not, it might just be that completion 
> in text mode is (conveniently) broken for you.
>
> Scott
>
>
> As it turns out, I can reproduce the behavior using Maria's example.
> Apparently I just did not have enough surrounding text in previous attempts
> ... and apparently I've lived a charmed life using tables so far.
>
> An interesting related behavior has to do with the escape key. In other
> programs (such as programming IDEs), if I get autocompletion hints I don't
> want, I typically hit the escape key to get rid of them. So, having
> reproduced the problem with Maria's help, my instinct was to hit Esc and
> then Tab ... except Esc boots me out of the table. I can understand the
> logic (sort of), but I wonder if there is a way to repurpose the escape key
> to just stop hints without moving the cursor?
>

Yes, the way this autocomplete function behaves is very unhelpful and
impossible to control, which is why I was looking for ways to turn it
off... Even if hitting Esc twice allowed Tab to move on to the next cell,
it would be better than what currently happens.


>
> In any case, perhaps the input completion settings for text should have
> one more option that turns off tab completions entirely in the text (but
> not in math mode).
>

I just went to see if a bug report exists on this, and it looks like this
is related, and still open:

https://www.lyx.org/trac/ticket/9207

I guess we'll wait.

>
> Paul
>
> --
> lyx-users mailing list
> [email protected]
> http://lists.lyx.org/mailman/listinfo/lyx-users
>
-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Tab autocomplete behavior in tables

2020-11-30 Thread Paul A. Rubin

On 11/30/20 6:02 PM, Scott Kostyshak wrote:

On Mon, Nov 30, 2020 at 05:45:59PM -0500, Paul A. Rubin wrote:

On 11/30/20 5:13 PM, Scott Kostyshak wrote:
Scott: Perhaps you can alleviate my confusion here.

Thanks for joining the conversation, Paul. It seems we have a mystery.


I use the CUA bind file
(with a couple of tweaks) and have the same binding for Tab that you listed.
In the preferences dialog, tab completion is on for math mode and off for
text mode.

Just to be clear, I think you mean *automatic* completion is on for
math mode and off for text mode. It took me a while to understand the
distinction.


In a math inset, if I type something like \right and start
playing with the tab key, it does various completion tasks. If I'm not part
way into a LaTeX command (but, say, in an align* environment), tabbing moves
from cell to cell.

In a text table, Tab moves from cell to cell, period. I do *not* under any
circumstances get prompted to do word completion. (If it matters, I do have
continuous spell checking on, using Enchant.) So I can't reproduce the
problem.
While I'm not complaining, either I don't understand the problem or
you and Maria both failed to appease some digital deity with whom I am
apparently on good terms.

Well shoot, I was hoping it was the opposite---that some deity was doing me a 
favor by trying to help with completion, and all I would have to do is piss 
them off. Gaining their favor seems much more challenging.


This is on Linux Mint 20, so behavior should be the same as on Ubuntu Focal.

Interesting differences. If in preferences you turn automatic completion on for 
text, does that change anything? If not, it might just be that completion in 
text mode is (conveniently) broken for you.

Scott

As it turns out, I can reproduce the behavior using Maria's example. 
Apparently I just did not have enough surrounding text in previous 
attempts ... and apparently I've lived a charmed life using tables so far.


An interesting related behavior has to do with the escape key. In other 
programs (such as programming IDEs), if I get autocompletion hints I 
don't want, I typically hit the escape key to get rid of them. So, 
having reproduced the problem with Maria's help, my instinct was to hit 
Esc and then Tab ... except Esc boots me out of the table. I can 
understand the logic (sort of), but I wonder if there is a way to 
repurpose the escape key to just stop hints without moving the cursor?


In any case, perhaps the input completion settings for text should have 
one more option that turns off tab completions entirely in the text (but 
not in math mode).


Paul

-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Tab autocomplete behavior in tables

2020-11-30 Thread Scott Kostyshak
On Mon, Nov 30, 2020 at 05:45:59PM -0500, Paul A. Rubin wrote:
> On 11/30/20 5:13 PM, Scott Kostyshak wrote:

> Scott: Perhaps you can alleviate my confusion here.

Thanks for joining the conversation, Paul. It seems we have a mystery.

> I use the CUA bind file
> (with a couple of tweaks) and have the same binding for Tab that you listed.
> In the preferences dialog, tab completion is on for math mode and off for
> text mode.

Just to be clear, I think you mean *automatic* completion is on for
math mode and off for text mode. It took me a while to understand the
distinction.

> In a math inset, if I type something like \right and start
> playing with the tab key, it does various completion tasks. If I'm not part
> way into a LaTeX command (but, say, in an align* environment), tabbing moves
> from cell to cell.
> 
> In a text table, Tab moves from cell to cell, period. I do *not* under any
> circumstances get prompted to do word completion. (If it matters, I do have
> continuous spell checking on, using Enchant.) So I can't reproduce the
> problem.

> While I'm not complaining, either I don't understand the problem or
> you and Maria both failed to appease some digital deity with whom I am
> apparently on good terms.

Well shoot, I was hoping it was the opposite---that some deity was doing me a 
favor by trying to help with completion, and all I would have to do is piss 
them off. Gaining their favor seems much more challenging.

> This is on Linux Mint 20, so behavior should be the same as on Ubuntu Focal.

Interesting differences. If in preferences you turn automatic completion on for 
text, does that change anything? If not, it might just be that completion in 
text mode is (conveniently) broken for you.

Scott


signature.asc
Description: PGP signature
-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Tab autocomplete behavior in tables

2020-11-30 Thread Maria Gouskova
On Mon, Nov 30, 2020 at 5:46 PM Paul A. Rubin  wrote:

> On 11/30/20 5:13 PM, Scott Kostyshak wrote:
>
> On Mon, Nov 30, 2020 at 04:11:41PM -0500, Maria Gouskova wrote:
>
> Hi LyX users,
>
> I'm probably missing something obvious in Preferences, but I couldn't
> figure out how to turn off tab autocompletion for tables. I don't mind it
> in math mode, so it's checked, but I pretty much never ever want that
> behavior in a table. When I hit the Tab key in a table, I want to advance
> to the next cell, and not to see a drop-down menu of random words that
> start with the same string I just typed.
>
> so, how do I make Tab always advance to the next cell in a table?
>
> I have similar preferences to you. We just had a similar discussion on 
> lyx-devel:
>
>   
> https://www.mail-archive.com/search?l=mid&q=20201120032750.3austjolf7ornvpg%40tallinn
>
> You mention that you "don't mind it in math mode". If you also don't
> mind *not* having it in math, then the solution is simple:
>
> rebind . The default binding is the following:
>
>   "command-alternatives 
> completion-accept;cell-forward;tab-insert;outline-in;depth-increment"
>
> Just remove the "completion-accept" part in your rebinding.
>
> If you do want to keep autocompletion for math, then things are more
> complicated. I have a simple patch that does this, but you would have to
> compile LyX with the patch. If you by chance use Ubuntu, I can compile a
> .deb for you, but I can't compile for other platforms.
>
> Scott
>
>
> Scott: Perhaps you can alleviate my confusion here. I use the CUA bind
> file (with a couple of tweaks) and have the same binding for Tab that you
> listed. In the preferences dialog, tab completion is on for math mode and
> off for text mode. In a math inset, if I type something like \right and
> start playing with the tab key, it does various completion tasks. If I'm
> not part way into a LaTeX command (but, say, in an align* environment),
> tabbing moves from cell to cell.
>
> In a text table, Tab moves from cell to cell, period. I do *not* under any
> circumstances get prompted to do word completion. (If it matters, I do have
> continuous spell checking on, using Enchant.) So I can't reproduce the
> problem. While I'm not complaining, either I don't understand the problem
> or you and Maria both failed to appease some digital deity with whom I am
> apparently on good terms.
>
> This is on Linux Mint 20, so behavior should be the same as on Ubuntu
> Focal.
>
> Paul
>

Paul, I also have cua on Linux Mint. The rest of my LyX is minimally
customized, so whatever is on by default is what I usually have.
One good way to set this off is to have words in the text around the table
that start with the same substring. Try this for a minimal example:

"notion, notation, noble, nonsectarian, nondeterministic"

then in table: enter "no" in a cell, and hit Tab. (If you hit "yes", it
should move you to the next tab, which iis what we want.") After "no",
though, I see "nominal" in my minimal example, as well as some of the words
from the list I entered above.



>
> --
> lyx-users mailing list
> [email protected]
> http://lists.lyx.org/mailman/listinfo/lyx-users
>
-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Tab autocomplete behavior in tables

2020-11-30 Thread Paul A. Rubin

On 11/30/20 5:13 PM, Scott Kostyshak wrote:

On Mon, Nov 30, 2020 at 04:11:41PM -0500, Maria Gouskova wrote:

Hi LyX users,

I'm probably missing something obvious in Preferences, but I couldn't
figure out how to turn off tab autocompletion for tables. I don't mind it
in math mode, so it's checked, but I pretty much never ever want that
behavior in a table. When I hit the Tab key in a table, I want to advance
to the next cell, and not to see a drop-down menu of random words that
start with the same string I just typed.

so, how do I make Tab always advance to the next cell in a table?

I have similar preferences to you. We just had a similar discussion on 
lyx-devel:

   
https://www.mail-archive.com/search?l=mid&q=20201120032750.3austjolf7ornvpg%40tallinn

You mention that you "don't mind it in math mode". If you also don't
mind *not* having it in math, then the solution is simple:

rebind . The default binding is the following:

   "command-alternatives 
completion-accept;cell-forward;tab-insert;outline-in;depth-increment"

Just remove the "completion-accept" part in your rebinding.

If you do want to keep autocompletion for math, then things are more
complicated. I have a simple patch that does this, but you would have to
compile LyX with the patch. If you by chance use Ubuntu, I can compile a
.deb for you, but I can't compile for other platforms.

Scott

Scott: Perhaps you can alleviate my confusion here. I use the CUA bind 
file (with a couple of tweaks) and have the same binding for Tab that 
you listed. In the preferences dialog, tab completion is on for math 
mode and off for text mode. In a math inset, if I type something like 
\right and start playing with the tab key, it does various completion 
tasks. If I'm not part way into a LaTeX command (but, say, in an align* 
environment), tabbing moves from cell to cell.


In a text table, Tab moves from cell to cell, period. I do *not* under 
any circumstances get prompted to do word completion. (If it matters, I 
do have continuous spell checking on, using Enchant.) So I can't 
reproduce the problem. While I'm not complaining, either I don't 
understand the problem or you and Maria both failed to appease some 
digital deity with whom I am apparently on good terms.


This is on Linux Mint 20, so behavior should be the same as on Ubuntu Focal.

Paul

-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Tab autocomplete behavior in tables

2020-11-30 Thread Scott Kostyshak
On Mon, Nov 30, 2020 at 04:11:41PM -0500, Maria Gouskova wrote:
> Hi LyX users,
> 
> I'm probably missing something obvious in Preferences, but I couldn't
> figure out how to turn off tab autocompletion for tables. I don't mind it
> in math mode, so it's checked, but I pretty much never ever want that
> behavior in a table. When I hit the Tab key in a table, I want to advance
> to the next cell, and not to see a drop-down menu of random words that
> start with the same string I just typed.
> 
> so, how do I make Tab always advance to the next cell in a table?

I have similar preferences to you. We just had a similar discussion on 
lyx-devel:

  
https://www.mail-archive.com/search?l=mid&q=20201120032750.3austjolf7ornvpg%40tallinn

You mention that you "don't mind it in math mode". If you also don't
mind *not* having it in math, then the solution is simple:

rebind . The default binding is the following:

  "command-alternatives 
completion-accept;cell-forward;tab-insert;outline-in;depth-increment"

Just remove the "completion-accept" part in your rebinding.

If you do want to keep autocompletion for math, then things are more
complicated. I have a simple patch that does this, but you would have to
compile LyX with the patch. If you by chance use Ubuntu, I can compile a
.deb for you, but I can't compile for other platforms.

Scott


signature.asc
Description: PGP signature
-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Tab autocomplete behavior in tables

2020-11-30 Thread Maria Gouskova
Hi LyX users,

I'm probably missing something obvious in Preferences, but I couldn't
figure out how to turn off tab autocompletion for tables. I don't mind it
in math mode, so it's checked, but I pretty much never ever want that
behavior in a table. When I hit the Tab key in a table, I want to advance
to the next cell, and not to see a drop-down menu of random words that
start with the same string I just typed.

so, how do I make Tab always advance to the next cell in a table?

Maria
-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Figures and tables at the end/Page of floats

2020-10-18 Thread John Kane
Ah, very nice.

On Sun, 18 Oct 2020 at 09:43, Maria Gouskova  wrote:

>
>
> On Fri, Oct 16, 2020 at 6:20 PM John Kane  wrote:
>
>> Have a look at the APA or APA ver 6 classes .
>>
>> On Fri, 16 Oct 2020 at 13:32, Maria Gouskova  wrote:
>>
>>> Hi LyX users,
>>>
>>> I am preparing a manuscript for a publisher who wants the figures and
>>> tables to be placed at the end of the document, with something like "Figure
>>> X about here" in the body of the paper itself. I thought that the "Page of
>>> Floats" setting would accomplish this, but it seems to group all figures
>>> and tables into pages scattered throughout the document. (Except for the
>>> last table, which gets placed at the very end of the document, after the
>>> bibliography, in the middle of its own page.)
>>>
>>> I guess the solution that would definitely work would be to put all the
>>> float insets at the end manually, select "here definitely" for the
>>> positioning option, and then use cross-references to define the positioning
>>> of the "Figure X about here" tags. It just seems like there should be a
>>> more elegant way to accomplish this. Can the "page of floats" option be
>>> controlled somehow?
>>>
>>> Maria
>>>
>>> --
>>> lyx-users mailing list
>>> [email protected]
>>> http://lists.lyx.org/mailman/listinfo/lyx-users
>>>
>>
>> --
>>
> John Kane
>> Kingston ON Canada
>>
>
> That wasn't exactly what I was after, since APAv6 comes with so many of
> its own formatting quirks I would have to undo that it would take five
> times as long as doing the float placement by hand.
>
> But, I dug around some more and found an elegant solution: the endfloat
> package. It did exactly what I needed in one line!
>
> https://ctan.org/pkg/endfloat
>
> Maria
> --
> lyx-users mailing list
> [email protected]
> http://lists.lyx.org/mailman/listinfo/lyx-users
>


-- 
John Kane
Kingston ON Canada
-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Figures and tables at the end/Page of floats

2020-10-18 Thread Maria Gouskova
On Fri, Oct 16, 2020 at 6:20 PM John Kane  wrote:

> Have a look at the APA or APA ver 6 classes .
>
> On Fri, 16 Oct 2020 at 13:32, Maria Gouskova  wrote:
>
>> Hi LyX users,
>>
>> I am preparing a manuscript for a publisher who wants the figures and
>> tables to be placed at the end of the document, with something like "Figure
>> X about here" in the body of the paper itself. I thought that the "Page of
>> Floats" setting would accomplish this, but it seems to group all figures
>> and tables into pages scattered throughout the document. (Except for the
>> last table, which gets placed at the very end of the document, after the
>> bibliography, in the middle of its own page.)
>>
>> I guess the solution that would definitely work would be to put all the
>> float insets at the end manually, select "here definitely" for the
>> positioning option, and then use cross-references to define the positioning
>> of the "Figure X about here" tags. It just seems like there should be a
>> more elegant way to accomplish this. Can the "page of floats" option be
>> controlled somehow?
>>
>> Maria
>>
>> --
>> lyx-users mailing list
>> [email protected]
>> http://lists.lyx.org/mailman/listinfo/lyx-users
>>
>
> --
>
John Kane
> Kingston ON Canada
>

That wasn't exactly what I was after, since APAv6 comes with so many of its
own formatting quirks I would have to undo that it would take five times as
long as doing the float placement by hand.

But, I dug around some more and found an elegant solution: the endfloat
package. It did exactly what I needed in one line!

https://ctan.org/pkg/endfloat

Maria
-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Figures and tables at the end/Page of floats

2020-10-16 Thread John Kane
Have a look at the APA or APA ver 6 classes .

On Fri, 16 Oct 2020 at 13:32, Maria Gouskova  wrote:

> Hi LyX users,
>
> I am preparing a manuscript for a publisher who wants the figures and
> tables to be placed at the end of the document, with something like "Figure
> X about here" in the body of the paper itself. I thought that the "Page of
> Floats" setting would accomplish this, but it seems to group all figures
> and tables into pages scattered throughout the document. (Except for the
> last table, which gets placed at the very end of the document, after the
> bibliography, in the middle of its own page.)
>
> I guess the solution that would definitely work would be to put all the
> float insets at the end manually, select "here definitely" for the
> positioning option, and then use cross-references to define the positioning
> of the "Figure X about here" tags. It just seems like there should be a
> more elegant way to accomplish this. Can the "page of floats" option be
> controlled somehow?
>
> Maria
>
> --
> lyx-users mailing list
> [email protected]
> http://lists.lyx.org/mailman/listinfo/lyx-users
>


-- 
John Kane
Kingston ON Canada
-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Figures and tables at the end/Page of floats

2020-10-16 Thread Maria Gouskova
Hi LyX users,

I am preparing a manuscript for a publisher who wants the figures and
tables to be placed at the end of the document, with something like "Figure
X about here" in the body of the paper itself. I thought that the "Page of
Floats" setting would accomplish this, but it seems to group all figures
and tables into pages scattered throughout the document. (Except for the
last table, which gets placed at the very end of the document, after the
bibliography, in the middle of its own page.)

I guess the solution that would definitely work would be to put all the
float insets at the end manually, select "here definitely" for the
positioning option, and then use cross-references to define the positioning
of the "Figure X about here" tags. It just seems like there should be a
more elegant way to accomplish this. Can the "page of floats" option be
controlled somehow?

Maria
-- 
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: List of Tables: no chapter numbers [RESOLVED]

2019-06-28 Thread Rich Shepard

On Fri, 28 Jun 2019, Rich Shepard wrote:


The last one is in an appendix, not the main body; I'll look to learn how to
take that out of the List of Tables.


My web search finds many descriptions on how to add LoF and LoT to the ToC,
but none on how to keep figures and tables in appendices out of the Toc. A
pointer to a solution is needed.


This still leaves me curious how to have the tables sequantially number
among all chapters, just like figures are.


A couple of stackexchange threads mentioned that by default (in reports and
books) figures and tables are sequentially numbered. In my document
(KOMA-report class) the figures are sequential and now the tables are
sequential within each chapter.

I'll look at The LaTeX Companion again this weekend.

Regards,

Rich


Re: List of Tables: no chapter numbers [RESOLVED]

2019-06-28 Thread Rich Shepard

On Fri, 28 Jun 2019, Paul A. Rubin wrote:


Try changing \renewcommand{\thetable}{\arabic{table}} in the preamble to
\renewcommand{\thetable}{\arabic{chapter}.\arabic{table}}. (I'm not sure
why you need to specify arabic here, but I'm going with the flow.)


Paul,

I, too, don't know why arabic is specified but your modification works and
now the tables are numbered by chapter:

5.1. Statewide benchmarks for General 1200-A permits. . . . . . . . . . . 28
5.2. Summary of monitoring requirements. . . . . . . . . . . . . . . . .  29

7.1. Spill reporting contacts. . . . . . . . . . . . . . . . . . . . . .  42
7.2. Inspections: what and how often. . . . . . . . . . . . . . . . . .   44

4.1. Statewide benchmarks for 1200-A permit holders. . . . . . . . . . .  62

The last one is in an appendix, not the main body; I'll look to learn how to
take that out of the List of Tables.

This still leaves me curious how to have the tables sequantially number
among all chapters, just like figures are.

Thanks very much,

Rich



Re: List of Tables: no chapter numbers

2019-06-28 Thread Kornel Benko
Am Samstag, 29. Juni 2019, 00:06:46 CEST schrieb Kornel Benko:
> Am Freitag, 28. Juni 2019, 14:46:20 CEST schrieb Rich Shepard:
> > On Fri, 28 Jun 2019, Kornel Benko wrote:
> > 
> > > Your mwe.lyx does _not_ create the provided pdf. With other words, it is
> > > not a mwe for your case.
> > 
> > Kornel,
> > 
> > How interesting. It does so here; I checked before sending the original
> > message. The mwe.pdf is attached.
> > 
> > Rich
> 
> But this pdf shows only 1 table, as it should be according to the lyx file.
> (I did not say that it was not compilable)
> 

OK, I misread your starting mail. Now I see what you meant.

Kornel

signature.asc
Description: This is a digitally signed message part.


Re: List of Tables: no chapter numbers

2019-06-28 Thread Kornel Benko
Am Freitag, 28. Juni 2019, 14:46:20 CEST schrieb Rich Shepard:
> On Fri, 28 Jun 2019, Kornel Benko wrote:
> 
> > Your mwe.lyx does _not_ create the provided pdf. With other words, it is
> > not a mwe for your case.
> 
> Kornel,
> 
> How interesting. It does so here; I checked before sending the original
> message. The mwe.pdf is attached.
> 
> Rich

But this pdf shows only 1 table, as it should be according to the lyx file.
(I did not say that it was not compilable)

Kornel


signature.asc
Description: This is a digitally signed message part.


Re: List of Tables: no chapter numbers

2019-06-28 Thread Paul A. Rubin

On 6/28/19 3:51 PM, Rich Shepard wrote:

MEW attached.

The full document has several tables in several chapters, yet the List of
Tables displays only the table number within each chapter rather than
chapter_number-table_number. The attached page shows this; the mwe 
compiles

with pdflatex to show the table as 1 rather than 1.1.

I've not had this happen in previous docs and would like to learn why it
happens and how to prevent it from occurring again.

TIA,

Rich
You'll note it's not just the list of tables that's at fault; in the 
table float, the captions starts "Table 1:" rather than "Table 1.1:".


Try changing \renewcommand{\thetable}{\arabic{table}} in the preamble to 
\renewcommand{\thetable}{\arabic{table}} to 
\renewcommand{\thetable}{\arabic{chapter}.\arabic{table}}. (I'm not sure 
why you need to specify arabic here, but I'm going with the flow.)


Paul



Re: List of Tables: no chapter numbers

2019-06-28 Thread Rich Shepard

On Fri, 28 Jun 2019, Rich Shepard wrote:


How interesting. It does so here; I checked before sending the original
message. The mwe.pdf is attached.


Perhaps I'm asking the wrong question.

Figures are numbered sequentially in the document, regardless of in which
chapter they are located. So, why aren't tables numbered the same way?

Looking at the list-of-tables.pdf I attached to my initial post we see that
the five tables are in three chapters and numbered within each chapter, not
sequentially as are the figures.

Rich



Re: List of Tables: no chapter numbers

2019-06-28 Thread Rich Shepard

On Fri, 28 Jun 2019, Kornel Benko wrote:


Your mwe.lyx does _not_ create the provided pdf. With other words, it is
not a mwe for your case.


Kornel,

How interesting. It does so here; I checked before sending the original
message. The mwe.pdf is attached.

Rich

mwe.pdf
Description: Adobe PDF document


Re: List of Tables: no chapter numbers

2019-06-28 Thread Kornel Benko
Am Freitag, 28. Juni 2019, 12:52:03 CEST schrieb Rich Shepard:
> On Fri, 28 Jun 2019, Rich Shepard wrote:
> 
> > MEW attached.
> 
> Oops! No cat attached, only an MWE.
> 
> Carpe weekend,
> 
> Rich
> 

Your mwe.lyx does _not_ create the provided pdf.
With other words, it is not a mwe for your case.

Kornel


signature.asc
Description: This is a digitally signed message part.


Re: List of Tables: no chapter numbers

2019-06-28 Thread Rich Shepard

On Fri, 28 Jun 2019, Rich Shepard wrote:


MEW attached.


Oops! No cat attached, only an MWE.

Carpe weekend,

Rich


List of Tables: no chapter numbers

2019-06-28 Thread Rich Shepard

MEW attached.

The full document has several tables in several chapters, yet the List of
Tables displays only the table number within each chapter rather than
chapter_number-table_number. The attached page shows this; the mwe compiles
with pdflatex to show the table as 1 rather than 1.1.

I've not had this happen in previous docs and would like to learn why it
happens and how to prevent it from occurring again.

TIA,

Rich#LyX 2.3 created this file. For more info see http://www.lyx.org/
\lyxformat 544
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass scrreprt
\begin_preamble
\date{}
\usepackage{gensymb,pdflscape,atbegshi}
\@ifundefined{extrarowheight}{\usepackage{array}}{}
\setlength{\extrarowheight}{0.2in}
\renewcommand{\thetable}{\arabic{table}}
\renewcommand{\thefigure}{\arabic{figure}}
\end_preamble
\use_default_options true
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding global
\font_roman "palatino" "default"
\font_sans "cmss" "default"
\font_typewriter "cmtt" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype false
\use_dash_ligatures true
\graphics default
\default_output_format pdf2
\output_sync 0
\bibtex_command bibtex
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize letterpaper
\use_geometry true
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 0
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine natbib
\cite_engine_type authoryear
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date true
\justification true
\use_refstyle 0
\use_minted 0
\index Index
\shortcut idx
\color #008000
\end_index
\paperwidth 6.5in
\paperheight 9.5in
\leftmargin 2cm
\topmargin 4cm
\bottommargin 2cm
\headsep 1.6cm
\secnumdepth 2
\tocdepth 2
\paragraph_separation indent
\paragraph_indentation default
\is_math_indent 0
\math_numbering_side default
\quotes_style english
\dynamic_quotes 0
\papercolumns 1
\papersides 2
\paperpagestyle plain
\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 Standard
\begin_inset FloatList table

\end_inset


\end_layout

\begin_layout Chapter
Monitoring
\end_layout

\begin_layout Standard
Monitoring will document compliance with permit conditions.
\end_layout

\begin_layout Section
Storm waters benchmarks
\end_layout

\begin_layout Standard
Benchmarks included in the 1200-A permit assist permit holders in determining
 if the implementation of their SWPCP is reducing pollutant concentrations
 to below levels of concern.
\end_layout

\begin_layout Standard
Statewide benchmarks are summarized in Table 
\begin_inset CommandInset ref
LatexCommand ref
reference "tab: water quality benchmarks"
plural "false"
caps "false"
noprefix "false"

\end_inset

.
 These are general benchmarks for facilities in Oregon not discharging mine
 dewatering.
 
\begin_inset Float table
wide false
sideways false
status collapsed

\begin_layout Plain Layout
\begin_inset Caption Standard

\begin_layout Plain Layout
\begin_inset CommandInset label
LatexCommand label
name "tab: water quality benchmarks"

\end_inset

Statewide benchmarks for General 1200-A permits.
\end_layout

\end_inset


\end_layout

\begin_layout Plain Layout
\align center
\begin_inset Tabular






\begin_inset Text

\begin_layout Plain Layout
Parameter
\end_layout

\end_inset


\begin_inset Text

\begin_layout Plain Layout
Benchmark
\end_layout

\end_inset




\begin_inset Text

\begin_layout Plain Layout
pH
\end_layout

\end_inset


\begin_inset Text

\begin_layout Plain Layout
5.5–9.0 Std Units
\end_layout

\end_inset




\begin_inset Text

\begin_layout Plain Layout
Total suspended solids
\end_layout

\end_inset


\begin_inset Text

\begin_layout Plain Layout
100 mg/L
\end_layout

\end_inset




\begin_inset Text

\begin_layout Plain Layout
Settleable solids
\end_layout

\end_inset


\begin_inset Text

\begin_layout Plain Layout
0.2 mg/L
\end_layout

\end_inset




\begin_inset Text

\begin_layout Plain Layout
Total oil & grease
\end_layout

\end_inset


\begin_inset Text

\begin_layout Plain Layout
10 mg/L
\end_layout

\end_inset




\end_inset


\end_layout

\begin_layout Plain Layout

\end_layout

\end_inset


\end_layout

\begin_layout Section
Something else
\end_layout

\begin_layout Standard
Blah.
 Blah.
 Blah.
\end_layout

\end_body
\end_document


list-of-tables.pdf
Description: Adobe PDF document


Re: Lyx file format for tables

2019-05-23 Thread Dr Eberhard Lisse
Yes.

Like Nobody's Business (tm) :-)-O

el


On 22/05/2019 18:09, Rich Shepard wrote:
> On Wed, 22 May 2019, Paul Smith wrote:
> 
>> Regarding your other idea -- using xtable() or ktable -- I guess it is not
>> very practical in my case, as I have too many table (about 50 tables), and
>> therefore I would like to insert all of them in their right place in the
>> LyX document, to avoid the work of copying and pasting 50 times!
> 
> Paul,
> 
> Will writing the document in LyX with the knitr package produce the tables
> as well as desired code and figures?
> 
> Rich
> 
> 




Re: Lyx file format for tables

2019-05-22 Thread Paul Smith
On Wed, May 22, 2019 at 7:13 PM Rich Shepard  wrote:
>
> > Thanks, Rich and Jean-Marc. I am feelling, from what you both say, that I
> > need to study better knitr, and I am going to do so.
>
> Docs I have sent off the mail list.

Got them. Awesome! Thanks, Rich!

Paul


Re: Lyx file format for tables

2019-05-22 Thread Rich Shepard

On Wed, 22 May 2019, Paul Smith wrote:


Thanks, Rich and Jean-Marc. I am feelling, from what you both say, that I
need to study better knitr, and I am going to do so.


Paul,

Docs I have sent off the mail list.

Rich



Re: Lyx file format for tables

2019-05-22 Thread Paul Smith
On Wed, May 22, 2019 at 6:08 PM Jean-Marc Lasgouttes  wrote:
>
> > Where can one find the specifications of the LyX file format for tables?
> >
> > The reason why I am asking that is because I have a bunch of tables
> > that I want to export from R to a single LyX document, and the
> > approach I am considering is to produce in R a text file in LyX format
> > with all my tables inserted.
>
> An approach would be to use Sweave or knitr to include R code in your
> document that will be replaced by the nice tables you need.

Thanks, Rich and Jean-Marc. I am feelling, from what you both say,
that I need to study better knitr, and I am going to do so.

Paul


Re: Lyx file format for tables

2019-05-22 Thread Rich Shepard

On Wed, 22 May 2019, Paul Smith wrote:


Regarding your other idea -- using xtable() or ktable -- I guess it is not
very practical in my case, as I have too many table (about 50 tables), and
therefore I would like to insert all of them in their right place in the
LyX document, to avoid the work of copying and pasting 50 times!


Paul,

Will writing the document in LyX with the knitr package produce the tables
as well as desired code and figures?

Rich



Re: Lyx file format for tables

2019-05-22 Thread Paul Smith
On Wed, May 22, 2019 at 4:28 PM Paul A. Rubin  wrote:
>
> > Where can one find the specifications of the LyX file format for tables?
> >
> > The reason why I am asking that is because I have a bunch of tables
> > that I want to export from R to a single LyX document, and the
> > approach I am considering is to produce in R a text file in LyX format
> > with all my tables inserted.
> >
> I'm not sure if there is explicit documentation of the syntax for tables
> in LyX. You can create a small sample table with the desired format in
> LyX, open the code pane (View > Code Preview Pane) and set the format
> for the pane to LyX. That will show you what your sample table would
> look like in a LyX source file.
>
> I wonder if there might not be an easier way, though. There are several
> functions/packages in R that are designed for producing nice looking
> tables (including xtable and the kable() function from knitr), and a
> number of them have the option of generating LaTeX output. So you could
> have your R script generate the desired tables with the desired format
> and write them all to a LaTeX text file, then import that into LyX (File
>  > Import > LaTeX (plain), and copy/paste them where they are needed in
> your actual document.

Thanks, Paul. I imagined your "View > Code Preview Pane" idea, but I
though it would be easier to read the documentation, if there is some.
(The file format of tables in LyX does not appear to be simple.)

Regarding your other idea -- using xtable() or ktable -- I guess it is
not very practical in my case, as I have too many table (about 50
tables), and therefore I would like to insert all of them in their
right place in the LyX document, to avoid the work of copying and
pasting 50 times!

Paul


Re: Lyx file format for tables

2019-05-22 Thread Jean-Marc Lasgouttes

Le 22/05/2019 à 16:51, Paul Smith a écrit :

Dear All,

Where can one find the specifications of the LyX file format for tables?

The reason why I am asking that is because I have a bunch of tables
that I want to export from R to a single LyX document, and the
approach I am considering is to produce in R a text file in LyX format
with all my tables inserted.


An approach would be to use Sweave or knitr to include R code in your 
document that will be replaced by the nice tables you need.


JMarc


Re: Lyx file format for tables

2019-05-22 Thread Paul A. Rubin

On 5/22/19 10:51 AM, Paul Smith wrote:

Dear All,

Where can one find the specifications of the LyX file format for tables?

The reason why I am asking that is because I have a bunch of tables
that I want to export from R to a single LyX document, and the
approach I am considering is to produce in R a text file in LyX format
with all my tables inserted.

Thanks in advance,

Paul
I'm not sure if there is explicit documentation of the syntax for tables 
in LyX. You can create a small sample table with the desired format in 
LyX, open the code pane (View > Code Preview Pane) and set the format 
for the pane to LyX. That will show you what your sample table would 
look like in a LyX source file.


I wonder if there might not be an easier way, though. There are several 
functions/packages in R that are designed for producing nice looking 
tables (including xtable and the kable() function from knitr), and a 
number of them have the option of generating LaTeX output. So you could 
have your R script generate the desired tables with the desired format 
and write them all to a LaTeX text file, then import that into LyX (File 
> Import > LaTeX (plain), and copy/paste them where they are needed in 
your actual document.


Paul



Lyx file format for tables

2019-05-22 Thread Paul Smith
Dear All,

Where can one find the specifications of the LyX file format for tables?

The reason why I am asking that is because I have a bunch of tables
that I want to export from R to a single LyX document, and the
approach I am considering is to produce in R a text file in LyX format
with all my tables inserted.

Thanks in advance,

Paul


Re: LyX 2.3.0 on Mac: Exporting to LaTeX (pdflatex) messes up paths to tables and figures

2018-05-17 Thread Dr Eberhard Lisse
You can tell knitr where to put the figures exactly, it does create a
figure directory, but I do not have this issue either, when using knitr.

Latest version of everything?

el

On 2018-05-16 16:22 , Uwe Thuemmel wrote:
> I realised that the problem appears when I am using the knitr module
> (but not always). I now found a workaround which is to have an empty
> master document which does not contain the knitr module — and which
> then contains the actual document with the knitr module via \input.
> 
> I still need to construct a simple example to make the error
> reproducible.
> 
> @Joel: I think I had also experienced the error in earlier LyX
> versions.
> 
> Best, Uwe
[..


Re: LyX 2.3.0 on Mac: Exporting to LaTeX (pdflatex) messes up paths to tables and figures

2018-05-16 Thread Uwe Thuemmel
I realised that the problem appears when I am using the knitr module (but not 
always). I now found a workaround which is to have an empty master document 
which does not contain the knitr module — and which then contains the actual 
document with the knitr module via \input.

I still need to construct a simple example to make the error reproducible.

@Joel: I think I had also experienced the error in earlier LyX versions.

Best, Uwe


On 16. May 2018 at 16:12:24, Dr Eberhard Lisse ([email protected]) wrote:

I don't have any issues with subdirectories.  

Can it be that the names are generic? Try using myfigures and mytables  
or something like that and see if this changes things.  

And, in any case there is always perl -i -p -e 's+\_+/*g' *.lyx or  
similar :-)-O  

el  


On 13/05/2018 22:55, Joel Kulesza wrote:  
> On Sun, May 13, 2018 at 9:37 AM, Uwe Thuemmel  <mailto:[email protected]>> wrote:  
>  
> Dear fellow users,  
>  
> I have figures (as pdf) and tables (as LyX child documents) in  
> subdirectories ./figures and ./tables. When I export from LyX  
> 2.3.0 on Mac to LaTeX (pdflatex), the relative paths to these  
> figures and tables are messed up. In particular, they are  
> replaced by absolute paths where ‘/‘ is replaced by ‘_'. For  
> example, a relative path /figures/figure1.pdf is replaced by  
> something like 1_users_user_project_project1_figures_figure1.pdf.  
> In addition, LyX places pdf files with these names as  
> 1_users_user_project_project1_figures_figure1.pdf in the same  
> directory as the main LyX file (but does not do so for the tables  
> contained in LyX child documents). As a result, the TeX file does  
> not compile correctly and I have to edit it by hand to adjust the  
> paths. I’d much rather see LyX keep the relative paths when  
> exporting to LaTeX. Sometimes this actually works - but I don’t  
> know why. Can anyone help?  
>  
> Thank you,  
> Uwe  
>  
>  
> Uwe,  
>  
> I experienced something that may be similar on Mac. Are you able to  
> test also with LyX 2.2.3? In my case, LyX 2.2.3 would behave how I  
> expect but not LyX 2.3.0.  
>  
> Also, are you able to post a MWE  
> <https://wiki.lyx.org/FAQ/MinimalExample> that has the problem for  
> others to test with?  
>  
> Thanks,  
> Joel  
>  




Re: LyX 2.3.0 on Mac: Exporting to LaTeX (pdflatex) messes up paths to tables and figures

2018-05-16 Thread Dr Eberhard Lisse
I don't have any issues with subdirectories.

Can it be that the names are generic?  Try using myfigures and mytables
or something like that and see if this changes things.

And, in any case there is always perl -i -p -e 's+\_+/*g' *.lyx or
similar :-)-O

el


On 13/05/2018 22:55, Joel Kulesza wrote:
> On Sun, May 13, 2018 at 9:37 AM, Uwe Thuemmel  <mailto:[email protected]>> wrote:
> 
> Dear fellow users,
> 
> I have figures (as pdf) and tables (as LyX child documents) in
> subdirectories ./figures and ./tables.  When I export from LyX
> 2.3.0 on Mac to LaTeX (pdflatex), the relative paths to these
> figures and tables are messed up.  In particular, they are
> replaced by absolute paths where ‘/‘ is replaced by ‘_'.  For
> example, a relative path /figures/figure1.pdf is replaced by
> something like 1_users_user_project_project1_figures_figure1.pdf.
> In addition, LyX places pdf files with these names as
> 1_users_user_project_project1_figures_figure1.pdf in the same
> directory as the main LyX file (but does not do so for the tables
> contained in LyX child documents).  As a result, the TeX file does
> not compile correctly and I have to edit it by hand to adjust the
> paths.  I’d much rather see LyX keep the relative paths when
> exporting to LaTeX. Sometimes this actually works - but I don’t
> know why.  Can anyone help?
> 
> Thank you,
> Uwe
> 
> 
> Uwe,
> 
> I experienced something that may be similar on Mac.  Are you able to
> test also with LyX 2.2.3?  In my case, LyX 2.2.3 would behave how I
> expect but not LyX 2.3.0.
> 
> Also, are you able to post a MWE
> <https://wiki.lyx.org/FAQ/MinimalExample> that has the problem for
> others to test with?
> 
> Thanks,
> Joel
> 




Re: LyX 2.3.0 on Mac: Exporting to LaTeX (pdflatex) messes up paths to tables and figures

2018-05-13 Thread Joel Kulesza
On Sun, May 13, 2018 at 9:37 AM, Uwe Thuemmel 
wrote:

> Dear fellow users,
>
> I have figures (as pdf) and tables (as LyX child documents) in
> subdirectories ./figures and ./tables. When I export from LyX 2.3.0 on Mac
> to LaTeX (pdflatex), the relative paths to these figures and tables are
> messed up. In particular, they are replaced by absolute paths where ‘/‘ is
> replaced by ‘_'. For example, a relative path /figures/figure1.pdf is
> replaced by something like 1_users_user_project_project1_figures_figure1.pdf.
> In addition, LyX places pdf files with these names as
> 1_users_user_project_project1_figures_figure1.pdf in the same directory
> as the main LyX file (but does not do so for the tables contained in LyX
> child documents). As a result, the TeX file does not compile correctly and
> I have to edit it by hand to adjust the paths. I’d much rather see LyX keep
> the relative paths when exporting to LaTeX. Sometimes this actually works -
> but I don’t know why. Can anyone help?
>
> Thank you,
> Uwe
>

Uwe,

I experienced something that may be similar on Mac.  Are you able to test
also with LyX 2.2.3?  In my case, LyX 2.2.3 would behave how I expect but
not LyX 2.3.0.

Also, are you able to post a MWE <https://wiki.lyx.org/FAQ/MinimalExample>
that has the problem for others to test with?

Thanks,
Joel


LyX 2.3.0 on Mac: Exporting to LaTeX (pdflatex) messes up paths to tables and figures

2018-05-13 Thread Uwe Thuemmel
Dear fellow users,

I have figures (as pdf) and tables (as LyX child documents) in subdirectories 
./figures and ./tables. When I export from LyX 2.3.0 on Mac to LaTeX 
(pdflatex), the relative paths to these figures and tables are messed up. In 
particular, they are replaced by absolute paths where ‘/‘ is replaced by ‘_'. 
For example, a relative path /figures/figure1.pdf is replaced by something like 
1_users_user_project_project1_figures_figure1.pdf. In addition, LyX places pdf 
files with these names as 1_users_user_project_project1_figures_figure1.pdf in 
the same directory as the main LyX file (but does not do so for the tables 
contained in LyX child documents). As a result, the TeX file does not compile 
correctly and I have to edit it by hand to adjust the paths. I’d much rather 
see LyX keep the relative paths when exporting to LaTeX. Sometimes this 
actually works - but I don’t know why. Can anyone help?

Thank you,
Uwe



Re: LyX 2.3.0 and tables with footnotes

2018-04-04 Thread Niklas Huldén



On 04.04.2018 12:01, Stephan Witt wrote:

Am 04.04.2018 um 10:36 schrieb Andrew Parsloe :


On 4/04/2018 6:15 p.m., Niklas Huldén wrote:

On 03.04.2018 20:58, Paul A. Rubin wrote:

On 04/03/2018 12:38 PM, Niklas Huldén wrote:

Den 03-04-2018 kl. 18:51, skrev Paul A. Rubin:

On 04/03/2018 10:55 AM, Niklas Huldén wrote:

Hello all!

I am testing LyX 2.3.0 on windows 10 with MikTex 2.9. I have some old tables with 
footnotes inside them which used to line up fine with the table using the "minipage 
trick" putting the table in a minipage (whitout the caption).
In LyX 2.3.0 this results in the footnote becoming an ordinary footnote, which makes it 
hard to keep tables and footnotes on the same page. But I understand this is a feature 
now. Is there any way to "emulate" the old behavior? I include a MWF and two 
screenshots.

Thanks and all the best!
Niklas

You could add \renewcommand{\tablefootnote}{\footnote} to the document 
preamble. (If you do this a lot, you might want to cobble together a module for 
it.)

Paul


Thank you Paul! This works fine and takes me out of immediate danger zone. I 
guess a module would be a good idea in the long run.

A somewhat linked issue is that I get an error message if I use the rotate package in a 
LyX file that uses tablefootnotes: "Package tablefootnote Error: Package rotating 
loaded after tablefootnote."

Hard to find a place to load rotate before the tablefootnote though.

Many thanks again!

Niklas


Niklas,

I've attached a module. Try putting it in your local layouts folder 
(~/.lyx/layouts on most Linux systems), then reconfigure LyX, add it to your 
document (and do /not/ add the \renewcommand line in the preamble), then see if 
you get the desired results (including using the rotate package).

Cheers,
Paul


Hello,

Thank you Paul! I placed the module in (windows 10) 
"c:\Users\myselfwhatever\AppData\Local\LyX 2.3\Resources\layouts\ and 
reconfigured but could not find any module in restarted LyX. This might have 
something to do with my Windows configuration.

I then placed it in "c:\Program Files (x86)\LyX 2.3\Resources\layouts\" as 
administrator, reconfigured and now it is available in document settings/modules. 
Everything works including getting rid of the rotating error message :)

I will try it in my Mac tonight.

All the best!
Niklas


On Windows 7 the module should go to "C:\Users\\AppData\Roaming\LyX2.3\layouts\".  I would expect this to be the same on Windows 10. The 
"c:\Program Files (x86)\LyX 2.3\Resources\layouts\" location should be left for layouts and 
modules of the official LyX distribution. When LyX 2.3.1 comes out and you upgrade, this folder will be 
overwritten and Paul's module will be lost (unless it gets incorporated into the official LyX distro.).

Andrew


The correct path name for the user configuration directory is
shown in the About LyX dialog. Probably there is a missing or
an additional space in path name here.


Hi!

Yes of course. The path should be "C:\Users\name>\AppData\Roaming\LyX2.3\". I was too quick and put it in 
~\local\Lyx2.3\Resourses in mistake. I now removed it från c:\Program 
Files (x86)\LyX 2.3\Resources\layouts\", reconfigured and all is well.


Thanks

Niklas


On Mac the directory path name should contain LyX-2.3, BTW.

Stephan



Re: LyX 2.3.0 and tables with footnotes

2018-04-04 Thread Stephan Witt
Am 04.04.2018 um 10:36 schrieb Andrew Parsloe :
> 
> On 4/04/2018 6:15 p.m., Niklas Huldén wrote:
>> On 03.04.2018 20:58, Paul A. Rubin wrote:
>>> On 04/03/2018 12:38 PM, Niklas Huldén wrote:
>>>> Den 03-04-2018 kl. 18:51, skrev Paul A. Rubin:
>>>>> On 04/03/2018 10:55 AM, Niklas Huldén wrote:
>>>>>> Hello all!
>>>>>> 
>>>>>> I am testing LyX 2.3.0 on windows 10 with MikTex 2.9. I have some old 
>>>>>> tables with footnotes inside them which used to line up fine with the 
>>>>>> table using the "minipage trick" putting the table in a minipage 
>>>>>> (whitout the caption).
>>>>>> In LyX 2.3.0 this results in the footnote becoming an ordinary footnote, 
>>>>>> which makes it hard to keep tables and footnotes on the same page. But I 
>>>>>> understand this is a feature now. Is there any way to "emulate" the old 
>>>>>> behavior? I include a MWF and two screenshots.
>>>>>> 
>>>>>> Thanks and all the best!
>>>>>> Niklas
>>>>> You could add \renewcommand{\tablefootnote}{\footnote} to the document 
>>>>> preamble. (If you do this a lot, you might want to cobble together a 
>>>>> module for it.)
>>>>> 
>>>>> Paul
>>>>> 
>>>> Thank you Paul! This works fine and takes me out of immediate danger zone. 
>>>> I guess a module would be a good idea in the long run.
>>>> 
>>>> A somewhat linked issue is that I get an error message if I use the rotate 
>>>> package in a LyX file that uses tablefootnotes: "Package tablefootnote 
>>>> Error: Package rotating loaded after tablefootnote."
>>>> 
>>>> Hard to find a place to load rotate before the tablefootnote though.
>>>> 
>>>> Many thanks again!
>>>> 
>>>> Niklas
>>>> 
>>> Niklas,
>>> 
>>> I've attached a module. Try putting it in your local layouts folder 
>>> (~/.lyx/layouts on most Linux systems), then reconfigure LyX, add it to 
>>> your document (and do /not/ add the \renewcommand line in the preamble), 
>>> then see if you get the desired results (including using the rotate 
>>> package).
>>> 
>>> Cheers,
>>> Paul
>>> 
>> Hello,
>> 
>> Thank you Paul! I placed the module in (windows 10) 
>> "c:\Users\myselfwhatever\AppData\Local\LyX 2.3\Resources\layouts\ and 
>> reconfigured but could not find any module in restarted LyX. This might have 
>> something to do with my Windows configuration.
>> 
>> I then placed it in "c:\Program Files (x86)\LyX 2.3\Resources\layouts\" as 
>> administrator, reconfigured and now it is available in document 
>> settings/modules. Everything works including getting rid of the rotating 
>> error message :)
>> 
>> I will try it in my Mac tonight.
>> 
>> All the best!
>> Niklas
>> 
> On Windows 7 the module should go to "C:\Users\ name>\AppData\Roaming\LyX2.3\layouts\".  I would expect this to be the same 
> on Windows 10. The "c:\Program Files (x86)\LyX 2.3\Resources\layouts\" 
> location should be left for layouts and modules of the official LyX 
> distribution. When LyX 2.3.1 comes out and you upgrade, this folder will be 
> overwritten and Paul's module will be lost (unless it gets incorporated into 
> the official LyX distro.).
> 
> Andrew

The correct path name for the user configuration directory is
shown in the About LyX dialog. Probably there is a missing or
an additional space in path name here.

On Mac the directory path name should contain LyX-2.3, BTW.

Stephan

Re: LyX 2.3.0 and tables with footnotes

2018-04-04 Thread Jürgen Spitzmüller
2018-04-03 17:54 GMT+02:00 Scott Kostyshak :

> By the way, I think there are two questions here: 1. do we want to
> change the output of 2.2.x files? and 2. do we want the behavior in new
> 2.3.x-created files to be different? I would guess the answer to 2. is
> yes it is expected. I'm not sure about 1.
>

We should not do the tablefootnote thing if the table is in a minipage.
That was an oversight when we implemented table footnote support.

I'll fix that.

Jürgen


>
> Best,
>
> Scott
>


Re: LyX 2.3.0 and tables with footnotes

2018-04-04 Thread Andrew Parsloe



On 4/04/2018 6:15 p.m., Niklas Huldén wrote:

On 03.04.2018 20:58, Paul A. Rubin wrote:

On 04/03/2018 12:38 PM, Niklas Huldén wrote:

Den 03-04-2018 kl. 18:51, skrev Paul A. Rubin:

On 04/03/2018 10:55 AM, Niklas Huldén wrote:

Hello all!

I am testing LyX 2.3.0 on windows 10 with MikTex 2.9. I have some 
old tables with footnotes inside them which used to line up fine 
with the table using the "minipage trick" putting the table in a 
minipage (whitout the caption).
In LyX 2.3.0 this results in the footnote becoming an ordinary 
footnote, which makes it hard to keep tables and footnotes on the 
same page. But I understand this is a feature now. Is there any 
way to "emulate" the old behavior? I include a MWF and two 
screenshots.


Thanks and all the best!
Niklas
You could add \renewcommand{\tablefootnote}{\footnote} to the 
document preamble. (If you do this a lot, you might want to cobble 
together a module for it.)


Paul

Thank you Paul! This works fine and takes me out of immediate danger 
zone. I guess a module would be a good idea in the long run.


A somewhat linked issue is that I get an error message if I use the 
rotate package in a LyX file that uses tablefootnotes: "Package 
tablefootnote Error: Package rotating loaded after tablefootnote."


Hard to find a place to load rotate before the tablefootnote though.

Many thanks again!

Niklas


Niklas,

I've attached a module. Try putting it in your local layouts folder 
(~/.lyx/layouts on most Linux systems), then reconfigure LyX, add it 
to your document (and do /not/ add the \renewcommand line in the 
preamble), then see if you get the desired results (including using 
the rotate package).


Cheers,
Paul


Hello,

Thank you Paul! I placed the module in (windows 10) 
"c:\Users\myselfwhatever\AppData\Local\LyX 2.3\Resources\layouts\ and 
reconfigured but could not find any module in restarted LyX. This 
might have something to do with my Windows configuration.


I then placed it in "c:\Program Files (x86)\LyX 
2.3\Resources\layouts\" as administrator, reconfigured and now it is 
available in document settings/modules. Everything works including 
getting rid of the rotating error message :)


I will try it in my Mac tonight.

All the best!
Niklas

On Windows 7 the module should go to "C:\Users\name>\AppData\Roaming\LyX2.3\layouts\".  I would expect this to be the 
same on Windows 10. The "c:\Program Files (x86)\LyX 
2.3\Resources\layouts\" location should be left for layouts and modules 
of the official LyX distribution. When LyX 2.3.1 comes out and you 
upgrade, this folder will be overwritten and Paul's module will be lost 
(unless it gets incorporated into the official LyX distro.).


Andrew


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: LyX 2.3.0 and tables with footnotes

2018-04-03 Thread Niklas Huldén

On 03.04.2018 20:58, Paul A. Rubin wrote:

On 04/03/2018 12:38 PM, Niklas Huldén wrote:

Den 03-04-2018 kl. 18:51, skrev Paul A. Rubin:

On 04/03/2018 10:55 AM, Niklas Huldén wrote:

Hello all!

I am testing LyX 2.3.0 on windows 10 with MikTex 2.9. I have some 
old tables with footnotes inside them which used to line up fine 
with the table using the "minipage trick" putting the table in a 
minipage (whitout the caption).
In LyX 2.3.0 this results in the footnote becoming an ordinary 
footnote, which makes it hard to keep tables and footnotes on the 
same page. But I understand this is a feature now. Is there any way 
to "emulate" the old behavior? I include a MWF and two screenshots.


Thanks and all the best!
Niklas
You could add \renewcommand{\tablefootnote}{\footnote} to the 
document preamble. (If you do this a lot, you might want to cobble 
together a module for it.)


Paul

Thank you Paul! This works fine and takes me out of immediate danger 
zone. I guess a module would be a good idea in the long run.


A somewhat linked issue is that I get an error message if I use the 
rotate package in a LyX file that uses tablefootnotes: "Package 
tablefootnote Error: Package rotating loaded after tablefootnote."


Hard to find a place to load rotate before the tablefootnote though.

Many thanks again!

Niklas


Niklas,

I've attached a module. Try putting it in your local layouts folder 
(~/.lyx/layouts on most Linux systems), then reconfigure LyX, add it to 
your document (and do /not/ add the \renewcommand line in the preamble), 
then see if you get the desired results (including using the rotate 
package).


Cheers,
Paul


Hello,

Thank you Paul! I placed the module in (windows 10) 
"c:\Users\myselfwhatever\AppData\Local\LyX 2.3\Resources\layouts\ and 
reconfigured but could not find any module in restarted LyX. This might 
have something to do with my Windows configuration.


I then placed it in "c:\Program Files (x86)\LyX 2.3\Resources\layouts\" 
as administrator, reconfigured and now it is available in document 
settings/modules. Everything works including getting rid of the rotating 
error message :)


I will try it in my Mac tonight.

All the best!
Niklas



Re: LyX 2.3.0 and tables with footnotes

2018-04-03 Thread Paul A. Rubin

On 04/03/2018 12:38 PM, Niklas Huldén wrote:

Den 03-04-2018 kl. 18:51, skrev Paul A. Rubin:

On 04/03/2018 10:55 AM, Niklas Huldén wrote:

Hello all!

I am testing LyX 2.3.0 on windows 10 with MikTex 2.9. I have some 
old tables with footnotes inside them which used to line up fine 
with the table using the "minipage trick" putting the table in a 
minipage (whitout the caption).
In LyX 2.3.0 this results in the footnote becoming an ordinary 
footnote, which makes it hard to keep tables and footnotes on the 
same page. But I understand this is a feature now. Is there any way 
to "emulate" the old behavior? I include a MWF and two screenshots.


Thanks and all the best!
Niklas
You could add \renewcommand{\tablefootnote}{\footnote} to the 
document preamble. (If you do this a lot, you might want to cobble 
together a module for it.)


Paul

Thank you Paul! This works fine and takes me out of immediate danger 
zone. I guess a module would be a good idea in the long run.


A somewhat linked issue is that I get an error message if I use the 
rotate package in a LyX file that uses tablefootnotes: "Package 
tablefootnote Error: Package rotating loaded after tablefootnote."


Hard to find a place to load rotate before the tablefootnote though.

Many thanks again!

Niklas


Niklas,

I've attached a module. Try putting it in your local layouts folder 
(~/.lyx/layouts on most Linux systems), then reconfigure LyX, add it to 
your document (and do /not/ add the \renewcommand line in the preamble), 
then see if you get the desired results (including using the rotate 
package).


Cheers,
Paul

#\DeclareLyXModule{No Table Notes}
#DescriptionBegin
# Avoids use of the tablenotes package and converts forces footnotes in tables
# to use the standard \footnote command (requiring that the table be in a 
minipage).
#DescriptionEnd
#
# Author: Paul Rubin 
#

Format 66

Provides tablefootnote 1

AddToPreamble
  \newcommand{\tablefootnote}{\footnote}
EndPreamble



Re: LyX 2.3.0 and tables with footnotes

2018-04-03 Thread Niklas Huldén

Den 03-04-2018 kl. 18:51, skrev Paul A. Rubin:

On 04/03/2018 10:55 AM, Niklas Huldén wrote:

Hello all!

I am testing LyX 2.3.0 on windows 10 with MikTex 2.9. I have some old 
tables with footnotes inside them which used to line up fine with the 
table using the "minipage trick" putting the table in a minipage 
(whitout the caption).
In LyX 2.3.0 this results in the footnote becoming an ordinary 
footnote, which makes it hard to keep tables and footnotes on the 
same page. But I understand this is a feature now. Is there any way 
to "emulate" the old behavior? I include a MWF and two screenshots.


Thanks and all the best!
Niklas
You could add \renewcommand{\tablefootnote}{\footnote} to the document 
preamble. (If you do this a lot, you might want to cobble together a 
module for it.)


Paul

Thank you Paul! This works fine and takes me out of immediate danger 
zone. I guess a module would be a good idea in the long run.


A somewhat linked issue is that I get an error message if I use the 
rotate package in a LyX file that uses tablefootnotes: "Package 
tablefootnote Error: Package rotating loaded after tablefootnote."


Hard to find a place to load rotate before the tablefootnote though.

Many thanks again!

Niklas



Re: LyX 2.3.0 and tables with footnotes

2018-04-03 Thread Scott Kostyshak
On Tue, Apr 03, 2018 at 02:55:28PM +, Niklas Huldén wrote:
> Hello all!
> 
> I am testing LyX 2.3.0 on windows 10 with MikTex 2.9. I have some old tables
> with footnotes inside them which used to line up fine with the table using
> the "minipage trick" putting the table in a minipage (whitout the caption).
> In LyX 2.3.0 this results in the footnote becoming an ordinary footnote,
> which makes it hard to keep tables and footnotes on the same page. But I
> understand this is a feature now. Is there any way to "emulate" the old
> behavior? I include a MWF and two screenshots.
> 
> Thanks and all the best!

Thanks for this pefect bug report, Niklas! A simple .lyx file in 2.2.x
format, and before and after screenshots--It is always a pleasure to
receive a well-organized bug report. I can reproduce your findings.

By the way, I think there are two questions here: 1. do we want to
change the output of 2.2.x files? and 2. do we want the behavior in new
2.3.x-created files to be different? I would guess the answer to 2. is
yes it is expected. I'm not sure about 1.

Best,

Scott


signature.asc
Description: PGP signature


Re: LyX 2.3.0 and tables with footnotes

2018-04-03 Thread Paul A. Rubin

On 04/03/2018 10:55 AM, Niklas Huldén wrote:

Hello all!

I am testing LyX 2.3.0 on windows 10 with MikTex 2.9. I have some old 
tables with footnotes inside them which used to line up fine with the 
table using the "minipage trick" putting the table in a minipage 
(whitout the caption).
In LyX 2.3.0 this results in the footnote becoming an ordinary 
footnote, which makes it hard to keep tables and footnotes on the same 
page. But I understand this is a feature now. Is there any way to 
"emulate" the old behavior? I include a MWF and two screenshots.


Thanks and all the best!
Niklas
You could add \renewcommand{\tablefootnote}{\footnote} to the document 
preamble. (If you do this a lot, you might want to cobble together a 
module for it.)


Paul



LyX 2.3.0 and tables with footnotes

2018-04-03 Thread Niklas Huldén

Hello all!

I am testing LyX 2.3.0 on windows 10 with MikTex 2.9. I have some old 
tables with footnotes inside them which used to line up fine with the 
table using the "minipage trick" putting the table in a minipage 
(whitout the caption).
In LyX 2.3.0 this results in the footnote becoming an ordinary footnote, 
which makes it hard to keep tables and footnotes on the same page. But I 
understand this is a feature now. Is there any way to "emulate" the old 
behavior? I include a MWF and two screenshots.


Thanks and all the best!
Niklas


tablefoot.lyx
Description: application/lyx


Re: Lyx Tables/Figures and Section Question

2017-06-30 Thread Christos Makridis
Thanks Ricardo, and yes if anyone has any familiarity with putting
tables/figures at different parts of a document, let me know. Right now,
they kind of get meshed together and I want to separate the tables/figures
for the manuscript out from those associated with the appendix of my paper.

Thank you!


Re: Lyx Tables/Figures and Section Question

2017-06-30 Thread Ricardo Berlasso
2017-06-30 18:50 GMT+02:00 Christos Makridis :

> Hey Ricardo,
>
> Fantastic advice! I did the first part easily, but on the appendix part -
> here's a follow up.
>
> The journal I'm submitting to asks for tables and figures to be last. Is
> there any way to put the appendix before the end? If not, is there a way to
> separate out the tables/figures that go with the main text so that they
> come strictly before anything from the appendix? I don't want the
> tables/figures to be mixed together with them.
>

I'd never used it so I cannot tell precisely how (or if) it works and how
it interact with the appendixes, but I think the LaTeX package endfloat can
be used to send all floats to the end of the document on a section of their
own:

http://ctan.org/pkg/endfloat

Maybe someone with more experience can give you more info.

Cheers,
Ricardo



>
> Thank you for taking the time to reply!
>


Re: Lyx Tables/Figures and Section Question

2017-06-30 Thread Ricardo Berlasso
I forgot to add the list, sorry. Sending the message again:

2017-06-30 10:15 GMT+02:00 Ricardo Berlasso :

> 2017-06-30 0:55 GMT+02:00 Christos Makridis :
>
>> Hey Lyx Community,
>>
>> I've got two simple questions for you all when you have time.
>>
>> First, how do you get tables and figures to give roman numerals, rather
>> than numerics?
>>
>
> On the LaTeX preamble, write the following
>
> \renewcommand{\thefigure}{\Roman{figure}}
>
>
>
>>
>> Second, how do you make it so that when you're referencing a figure or
>> table from the appendix ("\section*{Appendix}"), it actually shows
>> something like "Appendix Figure II" -- so it is restarting the numbering
>> once you get to the appendix.
>>
>
> You don't need to use the \section* to insert appendixes: if you use any
> of the "book" documentclasses just do, at the end of the document, Document
> → Start appendix here and then use the "chapter" environment for
> appendixes, the "section" environment for sub appendixes and so on. This
> way the numbering should restart automatically.
>
> Regards,
> Ricardo
>
>
>
>>
>> There's some useful material in the link below, but nothing that
>> completely answered my question.
>> https://wiki.lyx.org/FAQ/Numbering#fig-by-sections
>>
>> Thank you for your time!
>>
>> --
>> Christos Makridis
>> Ph.D. Candidate, Stanford University
>> Department of Management Science & Engineering
>> Department of Economics
>> www.christosmakridis.com
>>
>
>


Lyx Tables/Figures and Section Question

2017-06-29 Thread Christos Makridis
Hey Lyx Community,

I've got two simple questions for you all when you have time.

First, how do you get tables and figures to give roman numerals, rather
than numerics?

Second, how do you make it so that when you're referencing a figure or
table from the appendix ("\section*{Appendix}"), it actually shows
something like "Appendix Figure II" -- so it is restarting the numbering
once you get to the appendix.

There's some useful material in the link below, but nothing that completely
answered my question.
https://wiki.lyx.org/FAQ/Numbering#fig-by-sections

Thank you for your time!

-- 
Christos Makridis
Ph.D. Candidate, Stanford University
Department of Management Science & Engineering
Department of Economics
www.christosmakridis.com


Re: indented list of tables

2017-03-27 Thread Steve Burnham
On Mon, Mar 27, 2017 at 7:09 PM Jacob Bishop  wrote:

> On Thu, Mar 16, 2017 at 7:37 PM, Steve Burnham  wrote:
>
> In my list of tables it appears to be every so slightly indented which my
> thesis editor is not happy with. In the link for a MWE you can see that the
> numbers 1.1 light up with the actual name of the chapter in the table of
> contents rather then with the number itself. I found this:
> http://lyx.475766.n2.nabble.com/No-indent-in-LOF-LOT-and-tables-td479678.html 
> that
> suggests adding "listsleft" to the options. I have done that but with no
> success in un-indenting the list of tables. Are there any other options
> that I can change?
>
> -Steve
>
> https://www.dropbox.com/s/8ryk9ihpiwoudmj/list_of_tables.zip?dl=0
>
>
> I think that "listleft" is specific to koma-script. If you don't use
> tocloft, then the magic is to add
>
> \makeatletter
>
> \renewcommand*\l@table{\@dottedtocline{1}{0em}{2.3em}}
>
> \renewcommand*\l@figure{\@dottedtocline{1}{0em}{2.3em}}
>
> \makeatother
>
> to your preamble to fix both the list of tables, and the list of figures.
> That seemed to do it for me. In terms of sources, I looked at the
> documentation for the tocloft package, on pages 3-4, which has the relevant
> information if you can make sense of it.
>
> Jacob
>

That did the trick!. Tocloft package wound up screwing up some other things
so I quit using that. The thesis class for the university is messy so it's
hard to know what packages are interfering with each other. You've now
helped me on my master's thesis and PhD dissertation so thank you again!
Fortunately this time around things went smoother with less formatting
issues since I've been doing most of my writing in LyX. Funny thing is my
list of tables in the master's thesis has this issue but the thesis editor
never caught it, hah!

-Steve


Re: indented list of tables

2017-03-27 Thread Jacob Bishop
On Thu, Mar 16, 2017 at 7:37 PM, Steve Burnham  wrote:

> In my list of tables it appears to be every so slightly indented which my
> thesis editor is not happy with. In the link for a MWE you can see that the
> numbers 1.1 light up with the actual name of the chapter in the table of
> contents rather then with the number itself. I found this:
> http://lyx.475766.n2.nabble.com/No-indent-in-LOF-LOT-a
> nd-tables-td479678.html that suggests adding "listsleft" to the options.
> I have done that but with no success in un-indenting the list of tables.
> Are there any other options that I can change?
>
> -Steve
>
> https://www.dropbox.com/s/8ryk9ihpiwoudmj/list_of_tables.zip?dl=0
>

I think that "listleft" is specific to koma-script. If you don't use
tocloft, then the magic is to add

\makeatletter

\renewcommand*\l@table{\@dottedtocline{1}{0em}{2.3em}}

\renewcommand*\l@figure{\@dottedtocline{1}{0em}{2.3em}}

\makeatother

to your preamble to fix both the list of tables, and the list of figures.
That seemed to do it for me. In terms of sources, I looked at the
documentation for the tocloft package, on pages 3-4, which has the relevant
information if you can make sense of it.

Jacob


indented list of tables

2017-03-17 Thread Steve Burnham
In my list of tables it appears to be every so slightly indented which my
thesis editor is not happy with. In the link for a MWE you can see that the
numbers 1.1 light up with the actual name of the chapter in the table of
contents rather then with the number itself. I found this:
http://lyx.475766.n2.nabble.com/No-indent-in-LOF-LOT-and-tables-td479678.html
that
suggests adding "listsleft" to the options. I have done that but with no
success in un-indenting the list of tables. Are there any other options
that I can change?

-Steve

https://www.dropbox.com/s/8ryk9ihpiwoudmj/list_of_tables.zip?dl=0


Re: caption for tables and figures

2016-11-01 Thread edu Gpl
from Document setting > Numbering & TOC
you can control levels of the numbring.

regards

2016-10-31 22:09 GMT+03:00 Benedict Holland :

> Hi Katrin,
>
> My guess is you want something like this. http://tex.stackexchange.com/
> questions/150314/change-table-caption-numbering
>
> You will probably need to create the tables using latex. I am unsure if
> Lyx has a specific way of doing what you want. My guess is that you want to
> renew the thetable command.
>
> Thanks,
> ~Ben
>

On Mon, Oct 31, 2016 at 2:07 PM, John Kane  wrote:

> Welcome,
> Can you supply a minimal example showing the problem?
> There are some suggestions on how to prepare such a example at
> https://wiki.lyx.org/FAQ/MinimalExample
>
> On 31 October 2016 at 13:22, Hirsch, Katrin  wrote:
>
>> To whom it may concern,
>>
>>
>>
>> I am using lyx for a while now to write my thesis. It’s a nice software
>> as long as you know the little bits and bobs. But I sorted tables and so
>> on. Now I have a problem in setting the numbering of my tables and figures
>> (and equations) in a document of the class books(standard class with extra
>> fond sizes). I intend to have only one level in the numbering . But the
>> software seems to set the levels with respect to the chapter hierarchy.  Is
>> there a way to change the settings for the numbering of Tables, figures …
>> and equations as well?
>>
>>
>>
>> Kind regards
>>
>>
>>
>> Katrin Hirsch
>>
>> Clinical Demonstrator/PhD
>>
>> School of Life and Health Sciences
>>
>> Aston University
>>
>> Birmingham, B47ET
>>
>> Phone: 0121-204-4712
>>
>>
>>
>
>
>
> --
> John Kane
> Kingston ON Canada
>


Re: caption for tables and figures

2016-10-31 Thread Benedict Holland
Hi Katrin,

My guess is you want something like this.
http://tex.stackexchange.com/questions/150314/change-table-caption-numbering

You will probably need to create the tables using latex. I am unsure if Lyx
has a specific way of doing what you want. My guess is that you want to
renew the thetable command.

Thanks,
~Ben

On Mon, Oct 31, 2016 at 2:07 PM, John Kane  wrote:

> Welcome,
> Can you supply a minimal example showing the problem?
> There are some suggestions on how to prepare such a example at
> https://wiki.lyx.org/FAQ/MinimalExample
>
> On 31 October 2016 at 13:22, Hirsch, Katrin  wrote:
>
>> To whom it may concern,
>>
>>
>>
>> I am using lyx for a while now to write my thesis. It’s a nice software
>> as long as you know the little bits and bobs. But I sorted tables and so
>> on. Now I have a problem in setting the numbering of my tables and figures
>> (and equations) in a document of the class books(standard class with extra
>> fond sizes). I intend to have only one level in the numbering . But the
>> software seems to set the levels with respect to the chapter hierarchy.  Is
>> there a way to change the settings for the numbering of Tables, figures …
>> and equations as well?
>>
>>
>>
>> Kind regards
>>
>>
>>
>> Katrin Hirsch
>>
>> Clinical Demonstrator/PhD
>>
>> School of Life and Health Sciences
>>
>> Aston University
>>
>> Birmingham, B47ET
>>
>> Phone: 0121-204-4712
>>
>>
>>
>
>
>
> --
> John Kane
> Kingston ON Canada
>


Re: caption for tables and figures

2016-10-31 Thread John Kane
Welcome,
Can you supply a minimal example showing the problem?
There are some suggestions on how to prepare such a example at
https://wiki.lyx.org/FAQ/MinimalExample

On 31 October 2016 at 13:22, Hirsch, Katrin  wrote:

> To whom it may concern,
>
>
>
> I am using lyx for a while now to write my thesis. It’s a nice software as
> long as you know the little bits and bobs. But I sorted tables and so on.
> Now I have a problem in setting the numbering of my tables and figures (and
> equations) in a document of the class books(standard class with extra fond
> sizes). I intend to have only one level in the numbering . But the software
> seems to set the levels with respect to the chapter hierarchy.  Is there a
> way to change the settings for the numbering of Tables, figures … and
> equations as well?
>
>
>
> Kind regards
>
>
>
> Katrin Hirsch
>
> Clinical Demonstrator/PhD
>
> School of Life and Health Sciences
>
> Aston University
>
> Birmingham, B47ET
>
> Phone: 0121-204-4712
>
>
>



-- 
John Kane
Kingston ON Canada


caption for tables and figures

2016-10-31 Thread Hirsch, Katrin
To whom it may concern,

I am using lyx for a while now to write my thesis. It's a nice software as long 
as you know the little bits and bobs. But I sorted tables and so on. Now I have 
a problem in setting the numbering of my tables and figures (and equations) in 
a document of the class books(standard class with extra fond sizes). I intend 
to have only one level in the numbering . But the software seems to set the 
levels with respect to the chapter hierarchy.  Is there a way to change the 
settings for the numbering of Tables, figures ... and equations as well?

Kind regards

Katrin Hirsch
Clinical Demonstrator/PhD
School of Life and Health Sciences
Aston University
Birmingham, B47ET
Phone: 0121-204-4712



Re: How to align tables side by side at the bottom?

2016-06-03 Thread Helge Hafting


Den 21. mai 2016 13:41, skrev racoon:

Hi,

I am trying to place two tables side by side so that their captions at 
the bottom align at the bottom. I tried several combinations of 
Content and Box alignment of minipages but failed. Using sub figures 
instead didn't help either.



Box alignment is a bit tricky, but this is doable:

1. Put a protected space (ctrl+space) after the captions for table 1 and 
table 2. This little trick make the box alignment settings work "as 
expected".
2. Open settings for each of the two minipages. Under "Alignment", 
change "Box" to "Bottom".


Step two causes the boxes to align by their bottoms, which again causes 
the tables to be lined up by their captions because in both cases, the 
caption is at the bottom of the box.  This is nice and intuitive - 
unfortunately, step 1 is necessary to make it work. That is not so 
intuitive, but box alignment can often be made to work by tossing in a 
protected space at the start or at the end of the box.


Don't put the protected space inside the caption box. Use the cursor 
keys, and add the protected space just outside the caption box. LyX may 
decide to display it on the next line.


Helge Hafting


Re: How to align tables side by side at the bottom?

2016-05-21 Thread Scott Kostyshak
On Sat, May 21, 2016 at 09:21:21PM +0200, racoon wrote:
> On 21.05.2016 19:27, Scott Kostyshak wrote:
> > On Sat, May 21, 2016 at 01:41:44PM +0200, racoon wrote:
> > > Hi,
> > > 
> > > I am trying to place two tables side by side so that their captions at the
> > > bottom align at the bottom. I tried several combinations of Content and 
> > > Box
> > > alignment of minipages but failed. Using sub figures instead didn't help
> > > either.
> > 
> > I thought that putting them in sub-floats would work but it didn't.
> > 
> > Maybe take a look at the captions LaTeX package.
> 
> Thanks. I'll take a look. But isn't the package only responsible for
> tweaking the caption itself? I am looking for a way to align the whole
> content of the boxes or subfloats at the bottom.

Good point. I'm not sure what's best.

Scott


signature.asc
Description: PGP signature


Re: How to align tables side by side at the bottom?

2016-05-21 Thread racoon

On 21.05.2016 19:27, Scott Kostyshak wrote:

On Sat, May 21, 2016 at 01:41:44PM +0200, racoon wrote:

Hi,

I am trying to place two tables side by side so that their captions at the
bottom align at the bottom. I tried several combinations of Content and Box
alignment of minipages but failed. Using sub figures instead didn't help
either.


I thought that putting them in sub-floats would work but it didn't.

Maybe take a look at the captions LaTeX package.


Thanks. I'll take a look. But isn't the package only responsible for 
tweaking the caption itself? I am looking for a way to align the whole 
content of the boxes or subfloats at the bottom.


Daniel



Re: How to align tables side by side at the bottom?

2016-05-21 Thread Scott Kostyshak
On Sat, May 21, 2016 at 01:41:44PM +0200, racoon wrote:
> Hi,
> 
> I am trying to place two tables side by side so that their captions at the
> bottom align at the bottom. I tried several combinations of Content and Box
> alignment of minipages but failed. Using sub figures instead didn't help
> either.

I thought that putting them in sub-floats would work but it didn't.

Maybe take a look at the captions LaTeX package.

Scott


signature.asc
Description: PGP signature


How to align tables side by side at the bottom?

2016-05-21 Thread racoon

Hi,

I am trying to place two tables side by side so that their captions at 
the bottom align at the bottom. I tried several combinations of Content 
and Box alignment of minipages but failed. Using sub figures instead 
didn't help either.


Daniel


tables side by side.lyx
Description: application/lyx


  1   2   3   4   5   6   7   8   9   10   >