Re: Tables: Setting width for entire column
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 > lyx-users@lists.lyx.org > http://lists.lyx.org/mailman/listinfo/lyx-users > -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Tables: Setting width for entire column
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 lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Tables: Setting width for entire column
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 > lyx-users@lists.lyx.org > http://lists.lyx.org/mailman/listinfo/lyx-users > mwe.lyx Description: application/lyx -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Tables: Setting width for entire column
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
Re: Tables: Setting width for entire column
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 lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Tables: Setting width for entire column
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 lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Tables: Setting width for entire column
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 > lyx-users@lists.lyx.org > http://lists.lyx.org/mailman/listinfo/lyx-users > -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Tables: Setting width for entire column
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 lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users