Text so wie eingegeben

Schriftbild, Absätze und Auflistungen einstellen


Alex_1979
Forum-Newbie
Forum-Newbie
Beiträge: 1
Registriert: Mo 30. Jul 2018, 07:55

Text so wie eingegeben

Beitrag von Alex_1979 »

Ich habe da mal eine Frage und zwar: Gibt es einen Befehl in Latex der es mir ermöglicht einen Text genau so auszugeben wie ich ihn im Latex geschrieben habe.

als Beispiel:
Test goal:
==========

This test installs the ICApplication. This include the following steps: - Install application Preconditions:

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

- ECPSystemManager running Steps:

======

1. Install the ICApplication specifying the relative path to the tarball
2. Verify response
3. Verify results: Logs: OK : The system version is correct or: not OK: Otherwise


im Moment wird er so ausgegeben.

Test goal: ========== This test installs the ICApplication. This include the following steps: - Install application Preconditions: ============== - ECPSystemManager running Steps: ====== 1. Install the ICApplication specifying the relative path to the tarball 2. Verify response 3. Verify results: Logs: OK : The system version is correct or: not OK: Otherwise

Danke euch.

markusv
Forum-Meister
Forum-Meister
Beiträge: 947
Registriert: Do 3. Sep 2015, 17:20
Wohnort: Leipzig

Beitrag von markusv »

Hallo und willkommen im Forum.

Bitte versuch immer, ein möglichst kurzes, aber lauffähiges Minimalbeispiel zu erstellen. Das hilft potentiellen Helfern und damit letztlich auch dir.

Du kannst bspw. die verbatim-Umgebung nutzen. Diese setzt den darin enthaltenen Text ohne die Berücksichtigung von LaTeX-Befehlen oder -Interpretationen (wie bspw. Zeilensprung=Leerzeichen, Leerzeile=Absatz etc.). Der Text wird in monospace (\ttfamily) gesetzt, dies kann aber auch geändert werden.
\documentclass{scrartcl}
\begin{document}
\begin{verbatim}
==========

This test installs the ICApplication. This include the following steps: - Install application Preconditions:

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

- ECPSystemManager running Steps:

======

1. Install the ICApplication specifying the relative path to the tarball
2. Verify response
3. Verify results: Logs: OK : The system version is correct or: not OK: Otherwise
\end{verbatim}

%Änderung in "normale" Brotschrift
\makeatletter
\def\verbatim@font{\normalfont\sffamily}
\makeatother

\begin{verbatim}
==========

This test installs the ICApplication. This include the following steps: - Install application Preconditions:

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

- ECPSystemManager running Steps:

======

1. Install the ICApplication specifying the relative path to the tarball
2. Verify response
3. Verify results: Logs: OK : The system version is correct or: not OK: Otherwise
\end{verbatim}
\end{document}
Wäre Microsoft Word für das Schreiben von Büchern entwickelt worden,
würde es Microsoft Book heißen.

Unkomplizierte und schnelle LaTeX-Hilfe, bspw. Erstellung von Vorlagen und Bewerbungen:
Help-LaTeX@web.de

Gast

Beitrag von Gast »

Für fancy Quellcode und Syntaxhervorhebung gibt es auch die Pakete listings und minted (wenn Du Python installiert hast). Ferner gibt es auch fancyvrb, verbatim (das Paket, nicht die Umgebung) und einige andere verbatim-Pakete. Man sollte im Hinterkopf behalten, dass verbatim-ähnliche Konstrukte für TeX bisweilen recht kompliziert zu handhaben sind und daher nicht immer alle Dinge so funktionieren, wie man es von "normalem Text" kennt.

Antworten