🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.dtp.tex
2 messages
2 total messages Started by Michał Różański Fri, 25 Jun 2010 08:30
Łamanie tekstu w komórkach
#16733
Author: Michał Różański
Date: Fri, 25 Jun 2010 08:30
31 lines
2120 bytes
Witam

Mam taką tabele:

{%
\newcommand{\mc}[3]{\multicolumn{#1}{#2}{#3}}
\begin{center}
\begin{tabular} {p{2cm}p{3cm}|l|l|l|l|l|}\hline
\textbf{Symbol} & \textbf{Atrybut} & \textbf{Wartość} & 
\textbf{Symbol} & \textbf{Opis}\\\hline
{\textbf{A}} & Zlecenie & Liczba & A1 & \\\hline
{\textbf{B}} & Towar & Powyżej 16 sztuk\linebreak Ponizej 16 sztuk & 
B1\linebreak B2 & \\\hline
{\textbf{C}} & Palety & Palety po 24 sztuki\linebreak Palety po 32 
sztuki & C1\linebreak C2 & \\\hline
{\textbf{D}} & Fracht & Duży\linebreak Mały\linebreak Mieszany & 
D1\linebreak D2\linebreak D3 & \\\hline
{\textbf{E}} & Magazyn & Pusty\linebreak Pełny & E1\linebreak E2 & 
\\\hline
{\textbf{F}} & Miasto & Warszawa\linebreak Gdańsk\linebreak Kraków & 
F1\linebreak F2\linebreak F3 & \\\hline
\end{tabular}
\end{center}
}%

I chce w niektórych komórkach dać złamany tekst... No właśnie 
próbowałem już \newline \\ i \breakline jedynie "\\" daje jakieś 
efekty przy okazji rozwalając mi całą tabelkę ;)

Może mi ktoś kto jest bardziej obeznany z LaTeX'em podać sposób na 
wymuszenie łamania tekstu w komórkach??
Re: Łamanie tekstu w komórkach
#16734
Author: Andrzej Kosmala
Date: Mon, 28 Jun 2010 18:10
14 lines
1208 bytes
Dnia 25.06.2010 Michał Różański <michal.rozanski@gmail.com> napisał/a:
> Witam
>
> Mam taką tabele:
>
> {%
> \newcommand{\mc}[3]{\multicolumn{#1}{#2}{#3}}
> \begin{center}
> \begin{tabular} {p{2cm}p{3cm}|l|l|l|l|l|}\hline
aby mieć możliwość łamania tekstu musisz użyć p m lub b jako typ kolumny ale
nie l c lub r. Można też użyć pakietu tabulary, który ma LCJR i pozwala na
łamanie linii w komórce.
pozdrawiam
Andrzej
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads