On Sun, 2005-02-06 at 13:01, Martin Vermeer wrote:
> Something I was very happy discovering, as I was already mentally
> prepared to install the 'pmat' package and engage in ERT :-/
> 
> In the matrix set-up dialogue on the math panel, you can add pipe
> characters to the "ccccc" alignment string, and they will come out as
> vertical lines in the displayed AND printed matrix... cool. Thus
> encouraged, I added \hline to the start of the first cell on a line, and
> true enough a horizontal line appeared in the printout. And after saving
> and reloading also in the display.
> 
> I haven't looked very hard, but couldn't find reference to this in the
> documentation, or on the Web by googling. This is the kind of thing that
> is not very discoverable for someone not already proficient in LaTeX
> math.
> 
> It should at least be in the docs, but better even, in the UI. And there
> are already menu shortcuts for aligning and even swapping matrix rows;
> how hard would it be to add one for a horizontal line?
> 
> - Martin

Here is a patch that removes the discoverability problem at least for
vertical rules.

(First time I used Qt Designer BTW!)

- Martin

Index: ui/QMathMatrixDialogBase.ui
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/qt2/ui/QMathMatrixDialogBase.ui,v
retrieving revision 1.3
diff -u -r1.3 QMathMatrixDialogBase.ui
--- ui/QMathMatrixDialogBase.ui	14 Aug 2003 15:45:06 -0000	1.3
+++ ui/QMathMatrixDialogBase.ui	7 Feb 2005 15:47:24 -0000
@@ -377,7 +377,7 @@
                     </property>
                     <property>
                         <name>toolTip</name>
-                        <string>Horizontal alignment per column (l,c,r)</string>
+                        <string>Horizontal alignment per column (l,c,r) or |</string>
                     </property>
                 </widget>
                 <widget row="0"  column="1" >
@@ -396,7 +396,7 @@
                     </property>
                     <property stdset="1">
                         <name>text</name>
-                        <string>&amp;Horizontal:</string>
+                        <string>&amp;Horizontal [lcr|]:</string>
                     </property>
                     <property>
                         <name>buddy</name>

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to