Matt wrote:
I want to use lyx to align an array of equations of the form:
y1=d1 on x1=e1 y2=d2 on x2=e2
Here d* and e* are variable length expressions.
To do this I chose 5 fields with alignment rlcrl. No matter what I do, I cannot get the last field to appear in dvi with a left alignment! I am using lyx 1.3.5.
Use the align, Flalign or Alignat-environment. (create a formula and use then the menu Edit->Math->Change Formula Type)
I attached an example using Alignat.
regards Uwe
#LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass scrartcl \begin_preamble \usepackage[gennarrow]{eurosym} \usepackage{icomma} \usepackage{textcomp} \usepackage{soul} \usepackage{calc} \usepackage{array} \usepackage{multirow}
\renewcommand{\multirowsetup}{\centering}
\setlength{\extrarowheight}{2pt}
\newcolumntype{A}[1]
{>{\centering\hspace{0pt}}m{#1}}
\renewcommand{\underbar}[1]{\ul{#1}}
\setkomafont{captionlabel}{\bfseries}
\usepackage[colorlinks=true, urlcolor=blue,
linkcolor=black, pdftitle={Titel},
pdfauthor={Uwe St�hr}, bookmarksnumbered=true,
pdfnewwindow=true, pdfstartview=XYZ,
pdfpagelayout=OneColumn,
bookmarksopen]{hyperref}
\usepackage[figure]{hypcap}
%Linkfl�che f�r Querverweise vergr��ern
\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
\renewcommand{\figureautorefname}{Abb.\negthinspace}
\renewcommand{\tableautorefname}{Tab.\negthinspace}
\renewcommand{\sectionautorefname}{Kap.\negthinspace}
\renewcommand{\subsectionautorefname}{Kap.\negthinspace}
\renewcommand{\subsubsectionautorefname}{Kap.\negthinspace}
\newlength{\abc}
\settowidth{\abc}{\space}
\renewcommand{\equationautorefname}{\hspace{-\abc}}
%Damit die Zeichen � , � und � in LyX direkt eingegeben werden k�nnen.
\DeclareInputText{176}{\ifmmode^\circ\else\textdegree\fi}
\DeclareInputText{183}{\ifmmode\cdot\else\textperiodcentered\fi}
\DeclareInputText{215}{\ifmmode\times\else\texttimes\fi}
%setzt die Schwelle herauf, ab der Gleitumgebungen allein
%auf einer Seite erscheinen
\renewcommand{\floatpagefraction}{0.7}
%setzt die Schwelle herauf, ab der Gleitumgebungen unten
%auf einer Seite erscheinen d�rfen
\renewcommand{\bottomfraction}{0.5}
\end_preamble
\options fleqn,tablecaptionabove
\language ngerman
\inputencoding auto
\fontscheme ae
\graphics default
\paperfontsize 12
\spacing single
\papersize a4paper
\paperpackage a4
\use_geometry 0
\use_amsmath 1
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 4
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language german
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle empty
\bullet 1
1
34
-1
\end_bullet
\bullet 2
2
35
-1
\end_bullet
\bullet 3
2
7
-1
\end_bullet
\layout Standard
hello
\begin_inset Formula \begin{alignat*}{3}
y_{1}= & \: dd1 & \textrm{on} & & x_{1}= & \: e1\\
y_{2}= & \: d2 & \hspace{1cm}\textrm{on} & \hspace{1cm} & x_{2}= & \:
ee2\end{alignat*}
\end_inset
\the_end
