> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/latex/pl/artykuly-szczegolowe/02-a-quick-visual-guide-to-creating-table-cells-with-diagonal-lines-in-latex.md).

# Krótki wizualny przewodnik tworzenia komórek tabeli z ukośnymi liniami w LaTeX-u

Istnieje wiele pakietów w LaTeX-u, które pomagają w tworzeniu tabel – [booktabs](https://www.ctan.org/pkg/booktabs) jest popularnym przykładem — a dostępnych online jest także coraz więcej automatycznych generatorów tabel (takich jak [ten](https://www.tablesgenerator.com/)) które są świetnym sposobem na wygenerowanie kodu LaTeX dla tabeli bez konieczności ręcznego wpisywania go. Istnieje nawet pakiet, który pomoże Ci tworzyć [naprawdę długie tabele](https://www.overleaf.com/read/xxwzfxkxxjmc) obejmujące wiele stron! Ale co jeśli chcesz dodać dodatkowe style lub formatowanie do niektórych komórek w swoich tabelach?

Prosta odpowiedź brzmi: zwykle istnieje na to pakiet! Skupiamy się tutaj na jednym konkretnym elemencie formatowania komórek — jak tworzyć komórki tabeli z ukośnymi liniami. Te ukośne linie są często używane w lewym górnym rogu tabeli, aby umożliwić umieszczenie nagłówków wierszy i kolumn w tej samej komórce, a istnieją dwa podobne pakiety, których można użyć, aby to osiągnąć: `slashbox` i `diagbox`.

Aby ułatwić Ci wypróbowanie tego, dodaliśmy [krótki przykład](https://www.overleaf.com/read/zrnpkbmzvtk) który pokazuje, jak tworzyć ukośne linie w komórkach tabeli za pomocą tych pakietów. Niektórzy wolą używać `diagbox` ponieważ linie tworzone przez `slashbox` mogą być bardziej postrzępione, podczas gdy `diagbox` linie są gładsze; jednak w przykładzie uwzględniliśmy opcje dla obu, abyś mógł sam zdecydować!

Ponadto nagraliśmy animowany GIF pokazujący, jak dodać plik `slashbox.sty` do swojego projektu bezpośrednio z repozytorium CTAN.

![Korzystanie z pakietów LaTeX slashbox i diagbox do tabel w Overleaf](/files/d436ce53e55c84dcd526f77a2dd256298b3a0463)

Mamy nadzieję, że to pomoże, a jeśli chcesz zobaczyć więcej samouczków w formie animowanych GIF-ów, prosimy [daj nam znać](https://www.overleaf.com/contact).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/latex/pl/artykuly-szczegolowe/02-a-quick-visual-guide-to-creating-table-cells-with-diagonal-lines-in-latex.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
