I was about to suggest something like this.

I also find it looks better  to declare the first and fourth columns
left aligned, the second and third decimal aligned. Then I would make
the Header fields multicolumns each and center aligned.

You turn the Table Toolbar on, put the cursor into a column and then use
the Table Toolbar to do that/

Finally center the whole table.

But then beauty is in the eye of the beholder.

el

On 2025-01-31 19:24, Paul Rubin wrote:
[...]
>> On Fri, Jan 31, 2025 at 7:26 PM A-Imam Al-Sammak>>
<imam.sam...@gmail.com> wrote:
>> 
>> Hi Eberhard I have a table that has one of the columns entries 
>> that has a long sentence. With default settings the table expands 
>> outside the page margin. I want to be able to fix column width 
>> such that the entry vacancy spans over vertically. An example 
>> table is attached.
[...]
> Put the cursor in the right hand column (any row), right-click and 
> select "Settings...". In the "Table Settings" tab, change the 
> "Width:" select control to "Custom", pick your preferred method of 
> expressing the width in the right-hand select control, and fill in 
> the desired width in the middle box. I've attached a modified 
> version in which I set the width of the right column somewhat 
> arbitrarily.
[...]
#LyX 2.4 created this file. For more info see https://www.lyx.org/
\lyxformat 620
\begin_document
\begin_header
\save_transient_properties true
\origin /Users/el/Desktop/
\textclass extbook
\use_default_options true
\begin_modules
tcolorbox
\end_modules
\maintain_unincluded_children no
\language english
\language_package default
\inputencoding auto-legacy
\fontencoding auto
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_roman_osf false
\font_sans_osf false
\font_typewriter_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype false
\use_dash_ligatures true
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\float_placement class
\float_alignment class
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\use_geometry false
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\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 basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 1
\use_formatted_ref 0
\use_minted 0
\use_lineno 0
\index Index
\shortcut idx
\color #008000
\end_index
\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
\tablestyle default
\tracking_changes false
\output_changes false
\change_bars false
\postpone_fragile_content false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\docbook_table_output 0
\docbook_mathml_prefix 1
\end_header

\begin_body

\begin_layout Title
AI tools use
\end_layout

\begin_layout Standard
There are several AI tools:
\end_layout

\begin_layout Itemize
ChatGPT
\end_layout

\begin_layout Itemize
Copilot
\end_layout

\begin_layout Itemize
DeepSeek
\end_layout

\begin_layout Standard
DeepSeek is a Chinese product and it is the latest to enter this market.
 
\end_layout

\begin_layout Standard
Although all of tehm can do normal search,
 DeepSeek is excellent for scientific work as it is the only one that you can 
attach a circuit (JPEG,
 so far) which will it will read and understand.
 It will solve it as well mostly correct,
 for example I gave it my book example 1.8 and solved it for me (with little 
difference,
 I think due use of exact values,
 it also uses 
\begin_inset Formula $V_{T}=26\,mV$
\end_inset

 instead of 
\begin_inset Formula $V_{T}=25\,mV$
\end_inset

 I used).
 The results were as follows:
\end_layout

\begin_layout Standard
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="4" columns="4">
<features tabularvalignment="middle">
<column alignment="left" valignment="top">
<column alignment="decimal" decimal_point="." valignment="top">
<column alignment="decimal" decimal_point="." valignment="top">
<column alignment="left" valignment="top" width="40text%">
<row>
<cell multicolumn="1" alignment="center" valignment="top" topline="true" 
bottomline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout
Quantity
\end_layout

\end_inset
</cell>
<cell multicolumn="1" alignment="center" valignment="top" topline="true" 
bottomline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout
DeepSeek
\end_layout

\end_inset
</cell>
<cell multicolumn="1" alignment="center" valignment="top" topline="true" 
bottomline="true" leftline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout
My results
\end_layout

\end_inset
</cell>
<cell multicolumn="1" alignment="center" valignment="top" topline="true" 
bottomline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout
Comments
\end_layout

\end_inset
</cell>
</row>
<row>
<cell alignment="left" valignment="top" topline="true" leftline="true" 
usebox="none">
\begin_inset Text

\begin_layout Plain Layout
\begin_inset Formula $A_{v}$
\end_inset


\end_layout

\end_inset
</cell>
<cell alignment="decimal" valignment="top" topline="true" leftline="true" 
usebox="none">
\begin_inset Text

\begin_layout Plain Layout
\begin_inset Formula $-75.5$
\end_inset


\end_layout

\end_inset
</cell>
<cell alignment="decimal" valignment="top" topline="true" leftline="true" 
usebox="none">
\begin_inset Text

\begin_layout Plain Layout
\begin_inset Formula $77$
\end_inset


\end_layout

\end_inset
</cell>
<cell alignment="left" valignment="top" topline="true" leftline="true" 
rightline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout
\begin_inset Formula $V_{T}=26\,mV$
\end_inset

 instead of 
\begin_inset Formula $V_{T}=25\,mV$
\end_inset

 + using exact values
\end_layout

\end_inset
</cell>
</row>
<row>
<cell alignment="left" valignment="top" topline="true" leftline="true" 
usebox="none">
\begin_inset Text

\begin_layout Plain Layout
\begin_inset Formula $A_{i}$
\end_inset


\end_layout

\end_inset
</cell>
<cell alignment="decimal" valignment="top" topline="true" leftline="true" 
usebox="none">
\begin_inset Text

\begin_layout Plain Layout

\end_layout

\end_inset
</cell>
<cell alignment="decimal" valignment="top" topline="true" leftline="true" 
usebox="none">
\begin_inset Text

\begin_layout Plain Layout
\begin_inset Formula $-21.3$
\end_inset


\end_layout

\end_inset
</cell>
<cell alignment="left" valignment="top" topline="true" leftline="true" 
rightline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout

\end_layout

\end_inset
</cell>
</row>
<row>
<cell alignment="left" valignment="top" topline="true" bottomline="true" 
leftline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout

\end_layout

\end_inset
</cell>
<cell alignment="decimal" valignment="top" topline="true" bottomline="true" 
leftline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout

\end_layout

\end_inset
</cell>
<cell alignment="decimal" valignment="top" topline="true" bottomline="true" 
leftline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout

\end_layout

\end_inset
</cell>
<cell alignment="left" valignment="top" topline="true" bottomline="true" 
leftline="true" rightline="true" usebox="none">
\begin_inset Text

\begin_layout Plain Layout

\end_layout

\end_inset
</cell>
</row>
</lyxtabular>

\end_inset


\end_layout

\end_body
\end_document
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-users

Reply via email to