LyXtable inserted through code tex does not appear in the next page

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
poofidoudou
Posts: 1
Joined: Mon Aug 07, 2017 12:59 pm

table inserted through code tex does not appear in the next page

Post by poofidoudou »

Hello everyone,
I am using Lyx to write my master thesis. I insert lot of tables with code tex for example in page 2.
The problem is that the table appears in page 5 or 6 and not in page 3.
Does S.O has the solution ?
Thank you

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

thomasb
Posts: 134
Joined: Thu Aug 03, 2017 10:54 am

table inserted through code tex does not appear in the next page

Post by thomasb »

Try to code the document yourself...
In handmaid Latex, the ! option forces the figure "here" :

Code: Select all

\documentclass{article}
\usepackage{graphicx}

\begin{document}

\listoffigures

\begin{figure}[!h] % "!h" means "absolutely here"
\centering
\includegraphics{Tux.png}
\caption{Tux, le pingouin}
\label{Tux}
\end{figure}

\end{document}
It should be the same for tables. Do you have access to the code generated by Lyx ?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

table inserted through code tex does not appear in the next page

Post by Stefan Kottwitz »

Welcome to the forum!

There are float options (for figures and tables that you can set. Have a look at this settings window:
lyx-table-float.png
lyx-table-float.png (27.5 KiB) Viewed 3870 times
Click "Here Definitely" as last option, bur better click everything except that, allowing all possible placement for optimal page breaks and nearest positioning.

Thomas: "!" is a code for "relaxed" positioning, with less typographic restrictions. So !h means "here, take it easy". But the best is "!htbp" for "here, top, bottom, or float page, take it easy" that gets vey flexible near placement and keeps good page filling for good page breaks.

Stefan
LaTeX.org admin
Post Reply