Christopher Jones wrote: > > Thanks sooooo much! Since I sent that post, I had come up with the following > slution: > > \begin{tabbing} > Q. XXX \= \parbox[t]{\columnwidth}{...} \\ > ... > \end{tabbing} > > Your solution worked MUCH better, since mine, though it kept the text within > the column, left the \parbox extended too far to the right (left margin was OK), > leaving only about 1cm of margin between the text and the right-hand column > edge. I had tried using other variables than \columnwidth, such as \linewidth, > but to no avail. i thought that there must be a better solution, like a lyx one ;-) here it comes: save the following attached lyx-styles in ~/.lyx.layouts. insert in ~./lyx/layouts/stdclass.inc a line Input myPar.layout restart lyx and you have the two paragraph-styles myParI and myParII within lyx. the also attached lyx-file tab.lyx shows the use of these layouts. it works only when you've installed the myPar-styles correct. Herbert -- http://perce.de/lyx/
# Extended textclass definition file. # Author : Herbert Voss <[EMAIL PROTECTED]> # # This include files contains various standard environments for lists. # # myParI style definition Preamble \newlength{\ParIindent}\setlength{\ParIindent}{0.5cm} \newlength{\ParIIindent}\setlength{\ParIIindent}{0.75cm} EndPreamble Style myParI Margin First_Dynamic LatexType List_Environment LatexName myParI NextNoIndent 1 LeftMargin MM RightMargin MM ParIndent MM LabelSep XX ParSkip 0.4 ItemSep 0.1 TopSep 0.7 BottomSep 0.7 ParSep 0.3 Align Block AlignPossible Block, Left LabelType Manual LabelString MM LabelFont Shape italic EndFont # #define the latex environment myParI # Preamble \newenvironment{myParI}{% \begin{list}{}{ \setlength{\labelwidth}{\ParIindent}\setlength{\leftmargin}{\ParIindent} \setlength{\labelsep}{0cm}\setlength{\rightmargin}{0cm} \setlength{\parsep}{0.25ex plus0.1ex minus 0.1ex} \setlength{\itemsep}{0ex plus0.2ex} \let\makelabel\myParIlabel}% } {\end{list}} \newcommand*\myParIlabel[1]{\raggedright #1} EndPreamble End # myParII style definition Style myParII Margin First_Dynamic LatexType List_Environment LatexName myParII NextNoIndent 1 LeftMargin MMM RightMargin MMM ParIndent MMM LabelSep XXXX ParSkip 0.4 ItemSep 0.2 TopSep 0.7 BottomSep 0.7 ParSep 0.3 Align Block AlignPossible Block, Left LabelType Manual LabelString MM LabelFont Shape italic EndFont # #define the latex environment myParII # Preamble \newenvironment{myParII}{% \begin{list}{}{ \setlength{\labelwidth}{\ParIIindent}\setlength{\leftmargin}{\ParIIindent} \setlength{\labelsep}{0cm}\setlength{\rightmargin}{0cm} \setlength{\parsep}{0.25ex plus0.1ex minus 0.1ex} \setlength{\itemsep}{0ex plus0.2ex} \let\makelabel\myParIIlabel}% } {\end{list}} \newcommand*\myParIIlabel[1]{\raggedright #1} EndPreamble End
#LyX 1.2 created this file. For more info see http://www.lyx.org/ \lyxformat 218 \textclass article \begin_preamble \usepackage{multicol} \end_preamble \language ngerman \inputencoding default \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard A standardline without any special formatting. You can change the indenting with \layout Standard \family typewriter \backslash setlength{ \backslash ParIindent}{0.5cm} \layout Standard \family typewriter \backslash settolength{ \backslash ParIIindent}{0.75cm} \layout Standard The predefined values are 0.5cm and 0.75cm \layout Standard \latex latex \backslash begin{multicols}{3} \layout myParI Q. a line with paragraphstyle \series bold myPartI \series default \layout myParII A. a line with paragraphstyle \series bold myPartII \layout myParI Q. a line with paragraphstyle \series bold myPartI \series default a line with paragraphstyle \series bold myPartI \series default a line with paragraphstyle \series bold myPartI \series default \layout myParII A. a line with paragraphstyle \series bold myPartII \series default a line with paragraphstyle \series bold myPartII \series default a line with paragraphstyle \series bold myPartII \layout Standard \latex latex \backslash setlength{ \backslash ParIindent}{1cm} \layout Standard \latex latex \backslash setlength{ \backslash ParIIindent}{1.25cm} \layout myParI Q. bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla \layout myParII A. blah blah blah Tblah blah blah The line with \backslash kill is only my tabbing line, which defines the tabstops. in this case the first one at 1cm and the second one at 2 cm. it's also possible to use a real textline for defining \layout myParI Q. blah blah blah The line with \backslash kill is only my tabbing line, which defines the tabstops. in this case the first one at 1cm and the second one at 2 cm. it's also possible to use a real textline for defining the tabstops.blah blah blah The line with \backslash kill is only my tabbing line, which defines the tabstops. in this case the first one at 1cm and the second one at 2 cm. it's also possible to use a \layout Standard \latex latex \backslash setlength{ \backslash ParIindent}{0.5cm} \layout Standard \latex latex \backslash setlength{ \backslash ParIIindent}{0.75cm} \layout myParI Q. a line with paragraphstyle \series bold myPartI \series default \layout myParII A. a line with paragraphstyle \series bold myPartII \layout myParI Q. a line with paragraphstyle \series bold myPartI \series default a line with paragraphstyle \series bold myPartI \series default a line with paragraphstyle \series bold myPartI \series default \layout myParII A. a line with paragraphstyle \series bold myPartII \series default a line with paragraphstyle \series bold myPartII \series default a line with paragraphstyle \series bold myPartII \layout Standard \latex latex \backslash end{multicols} \the_end