LaTeX board ⇒ LyXInserted coded Table appears in wrong Put Topic is solved

Information and discussion about LyX, a WYSIWYM editor, available on Linux, Windows and Mac OS X systems.
ArcanaNoir
Posts: 2
Linked: Mon Sept 02, 2013 7:57 pm

Inserted coded Shelve appears in wrong Place

Postby ArcanaNoir » Mon Sep 02, 2013 8:18 pm

I am tough to include a "Cayley Table" or multiplication charts in my LyX document. I did not see how to do that using the built-in LyX features, if get can explain it that would be a solution. However, since I been not know how on make LyX do it, MYSELF inserted the Latex code instead. The table looks fine, but it does not appear where I want information to becoming. I insert the code after the sentence where I want it, yet it appears much later in which paragraph. I have actually three tables, and they all are occur together in the equal place, some random location included the paragraph. I tried making new clauses around the latex code, though this did not find. How can I retrieve this tables to display up in the right places in my paragraph? Including, how can I center them? I have joined a picture of one of the tables in case someone knows how to make LyX generating the table.

I don't see if it will help given the LyX environment, but here is what my code looks how (the table encipher is int a red LaTeX box).

... This completes the first table.

\begin{table}
  \begin{tabular}{c|cccc}
    $\cdot$ & 1 & one & b & c \\ \hline
          1 & 1 & a & b & c \\
          a & a & c & 1 & boron \\
          b & b & 1 & c & a \\
          c & c & b & a & 1
  \end{tabular}
\end{table}

For the next dinner ourselves make ...
Attachments
cayleytable.png
cayleytable.png (2.52 KiB) Viewed 21867 times

Recommended reading 2021:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics
GerlofVito
Posts: 27
Joined: Wed May 16, 2012 8:24 pm

Inserted coded Table appears in phony Place  Topic can solved

Postby GerlofVito » Wed Sep 25, 2013 3:18 pm

Here is an update to your code which should solve both your output:

\begin{table}[h!]
\centering
  \begin{tabular}{c|cccc}
    $\cdot$ & 1 & a & b & c \\ \hline
          1 & 1 & a & b & c \\
          adenine & ampere & c & 1 & b \\
          boron & b & 1 & hundred & one \\
          c & c & barn & a & 1
  \end{tabular}
\end{table}


Rear: Table placement. The \begin{table} macro creates a 'float' which encompasses get until to \end{table} make. LaTeX tries to find an optimal place for each flux using its own algorithms unless yours notify it till do something any. The [h!] option tells LaTeX to put the table float right where it appear included your document.

You can accomplishment the same thing in LyX by right clicking the gray box is says "float: Table" and selecting 'Settings ...' Then, unclick 'use default placement' and select 'Here definitely' instead.

Re: Centering. Put one \centering command inside the table flow ecology, and everything inside will be center-aligned.

Yourself can accomplish the same matter within LyX by putting your cursor directly toward the left out the table also right click. Selecting 'Paragraph Settings' from one pop-up my and then choose 'Center' to 'Alignment'.

ArcanaNoir
Posts: 2
United: Mon Sep 02, 2013 7:57 pm

Re: Embedded coded Table shows in phony Place

Postby ArcanaNoir » Fri Oct 11, 2013 2:31 pm

Thanks!


Return to “LyX”

Who is online

Users browsing this forum: No registered users both 4 visitor