LyXOverlapping text in matrices

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
luc4
Posts: 13
Joined: Thu Apr 09, 2009 12:43 pm

Overlapping text in matrices

Post by luc4 »

Hi! I noticed sometimes there the text of two adjacent cells in a matrix overlaps. An example of the problem is attached. The two lines seem to be too close. Is there any way to correct this behavior? I already tried \displaystyle. Thanks!
Attachments
Instance of the issue.
Instance of the issue.
Picture 1.png (28.02 KiB) Viewed 3867 times

Recommended reading 2024:

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

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

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Overlapping text in matrices

Post by gmedina »

Hi,

having access to the actual code that you are using, we would be able to provide more accurate advise. Anyway, one option is to use the optional argument of \\ to increase the vertical spacing between rows. Take a llok at the following simple example:

Code: Select all

\documentclass{report}
\usepackage{amsmath}

\begin{document}

\[
  \begin{bmatrix}
  A \\
  B 
  \end{bmatrix}
\]

\[
  \begin{bmatrix}
  A \\[2em]
  B 
  \end{bmatrix}
\]

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
luc4
Posts: 13
Joined: Thu Apr 09, 2009 12:43 pm

Re: Overlapping text in matrices

Post by luc4 »

Hi! Thanks for the information. Unfortunately I don't know if this helps me as I don't use the code: I'm using LyX. I know I could insert Tex code, but I think it would be really really uncomfortable. Is it possible to do the same with LyX?
Thanks!
Post Reply