Niklas Werner wrote:
> 
> Hi!
> 
> > Niklas Werner wrote:
> > > Hi All!
> > >
> > > I can't get a table in the Brieftext-paragraph-format!
> > > latex fails with more than 35 errors! all along the lines of:
> > > [...]

the problem is the environment definition of text-layout. therefore
in every table cell is a begin{brieftext and a \end{brieftext}.
This gave the errors, while LyX takes the actual layout as the one
for each cell. there are two ways to prevent this:
1: write table by ERT
   \begin{tabular}{|c...|}
   ....
   \end{tabular}
2. insert the noCommand paragraph-style in 
    ~/.lyx/layouts/g-brief-de.layout

# noCommand style definition
Style noCommand
  Margin                Static
  LatexType             Paragraph
  LatexName             dummy
  ParSkip               0.4
  KeepEmpty             1  
  Align                 Block
  AlignPossible         Block, Left, Right, Center
End

   close LyX and restart.
   write your lettertext, hit enter, choose layout noCommand, 
   insert lyx table as usual and than choose layout of the
   table line (not the cells) back to text-layout.

Herbert

p.s. open the attached lyx-file after modifying the g-brief-de.layout
with the noCommand style.


-- 
[EMAIL PROTECTED]
http://perce.de/lyx/
#LyX 1.1 created this file. For more info see http://www.lyx.org/
\lyxformat 218
\textclass g-brief-de
\begin_preamble
%%\lochermarke
\faltmarken
%%\fenstermarken
\trennlinien
%% \klassisch
\usepackage{ae}
\end_preamble
\language german
\inputencoding latin2
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize a4paper
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language polish
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle empty

\layout Name

Name
\layout Unterschrift

Signature
\layout Strasse

Address
\layout Zusatz

\layout Ort

PLZ ORT
\layout Land

\layout RetourAdresse

yes, here again
\layout Telefon

2344655467546
\layout Telefax

34654565
\layout Telex

\layout EMail

[EMAIL PROTECTED] 
\layout HTTP

\layout Bank

\layout Adresse

blubb
\layout Betreff

\layout Postvermerk

\layout MeinZeichen

\layout IhrZeichen

\layout IhrSchreiben

\layout Anlagen

\layout Verteiler

\layout Datum


\latex latex 

\backslash 
today
\layout Anrede

Sehr geehrte Damen und Herren,
\layout Gruss

Mit freundlichen Grüßen,
\layout Brieftext

A table insert with ERT:
\layout Brieftext


\latex latex 

\backslash 
begin{tabular}{|c|c|}
\backslash 
hline
\layout Brieftext


\latex latex 
1 & 2 
\backslash 

\backslash 

\backslash 
hline
\backslash 
hline
\layout Brieftext


\latex latex 
3 & 4 
\backslash 

\backslash 

\backslash 
hline
\layout Brieftext


\latex latex 

\backslash 
end{tabular}
\layout Brieftext

another table insert with Lyx
\layout Brieftext


\latex latex 

\backslash 
mbox{
\begin_inset  Tabular
<lyxtabular version="2" rows="2" columns="2">
<features rotate="false" islongtable="false" endhead="0" endfirsthead="0" endfoot="0" 
endlastfoot="0">
<column alignment="center" valignment="top" leftline="true" rightline="false" width="" 
special="">
<column alignment="center" valignment="top" leftline="true" rightline="true" width="" 
special="">
<row topline="true" bottomline="true" newpage="false">
<cell multicolumn="0" alignment="center" valignment="top" topline="true" 
bottomline="false" leftline="true" rightline="false" rotate="false" usebox="none" 
width="" special="">
\begin_inset Text

\layout noCommand

1
\end_inset 
</cell>
<cell multicolumn="0" alignment="center" valignment="top" topline="true" 
bottomline="false" leftline="true" rightline="true" rotate="false" usebox="none" 
width="" special="">
\begin_inset Text

\layout noCommand

2
\end_inset 
</cell>
</row>
<row topline="true" bottomline="true" newpage="false">
<cell multicolumn="0" alignment="center" valignment="top" topline="true" 
bottomline="false" leftline="true" rightline="false" rotate="false" usebox="none" 
width="" special="">
\begin_inset Text

\layout noCommand

3
\end_inset 
</cell>
<cell multicolumn="0" alignment="center" valignment="top" topline="true" 
bottomline="false" leftline="true" rightline="true" rotate="false" usebox="none" 
width="" special="">
\begin_inset Text

\layout noCommand

4
\end_inset 
</cell>
</row>
</lyxtabular>

\end_inset 

}
\layout Brieftext

with Lyanother line 
\layout Brieftext

\the_end

Reply via email to