Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: LaTeX - asymetric tables


  • Subject: Re: lug-bg: LaTeX - asymetric tables
  • From: mmarkov@xxxxxxx (Minko Markov)
  • Date: Mon, 03 Feb 2003 23:37:48 -0800



George Danchev wrote:
  [del]

Zdravey Georgi,

Pqrvo, dezhurnite izvineniya za latinicata :)

Nyama da citiram chasti ot emaila ti, shtoto Netscape shte napravi
headers s encoding 8859-5. Mislya, che imam otgovor na pitaneto.
Pqrvo obache da se razberem za tova kakvo pitash. Mozhe bi e
tryabvalo da narisuvash edna primerna tablica, kakvato iskash da
napravish na Latex, s ASCII-grafika. Ne sqm 100% siguren, che ti
razbiram vqprosa.

Tova e pqrviyat ti primer:

> <table>
>   <tbody>
>     <tr>
>       <td style="vertical-align: top;">LEFT ABOVE<br>
>       </td>
>       <td style="vertical-align: top;" rowspan="2" colspan="1">COLUMN
> RIGHT<br>
>       </td>
>     </tr>
>     <tr>
>       <td style="vertical-align: top;">LEFT DOWN<br>
>       </td>
>     </tr>
>   </tbody>
> </table>

Tuk celta e da se napravi entry, koeto zaema dva reda v dadenata kolona?
Taka li? Da zasilim efekta:

===================================================================
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<body>

<table>
  <tbody>
    <tr>
      <td style="vertical-align: top;">ONE
      </td>
      <td style="vertical-align: center;" rowspan="2" colspan="1">TWO00000
      </td>
      <td style="vertical-align: top;">alabala
      </td>
    </tr>
    <tr>
      <td style="vertical-align: top;">THREE
      </td>
      <td style="vertical-align: top;">five
      </td>
    </tr>
  </tbody>
</table>

</body>
</html>
============================================================

Tova li e? Ako e tova, na Latex ti tryabva packet multirow.

Kodqt ti na Latex, koyto spored teb e fasul, e problematichen:

> \begin{tabular}{|c|c|}
>         \multicolumn {1}{c} { LEFT ABOVE } & \hline { RIGHT ABOVE } \\
>         \multicolumn {2}{c} { DOWN }  \\
> \end{tabular}

Tova ne se kompilira pri men! Ti kompilira li go, ili e naizust?
Spored men, bi tryabvalo da e
....
 \multicolumn {1}{|c|} { LEFT ABOVE } &
 \multicolumn {1}{|c|} { RIGHT ABOVE } \\
....
Q?

Eto go otgovora, ako razbiram vqprosa:

===============================================================================

\documentclass{article}
\usepackage{multirow}

\begin{document}

Georgi's ``trivial'' table, multicolumn:

\begin{tabular}{|c|c|}
  \hline
  \multicolumn {1}{|c|} { LEFT ABOVE } &
  \multicolumn {1}{|c|} { RIGHT ABOVE } \\
  \hline
  \multicolumn {2}{|c|} { DOWN }  \\
  \hline
\end{tabular}

\bigskip
\bigskip

A slightly more involved one:

\renewcommand{\multirowsetup}{\centering}
\newlength{\MYLENGTH} \settowidth{\MYLENGTH}{TWO000000}
\begin{tabular}{|c|c|c|}
  \hline
   One  & \multirow{2}{\MYLENGTH}{TWO000000} & alabala  \\
  \cline{1-1} \cline{3-3}
   Three & & five \\
  \hline
\end{tabular}

\end{document}

===============================================================================

Pozdravi,
Minko

PS	Ne sqm nikakqv hacker na Latex. Poglednah v "The Latex Companion",
knigata sqs san-bernara, i vidyah za packeta multirow. Opitqt mi s tablici
e nishtozhen. Pinizqt s \renewcommand i \settowidth e za se izbegne
zadavane na fiksirana shirina kato vtori parametqr na \multirow.
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================



 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.