fehlende Zeichen in verbatim und lstlisting-Umgebung
Verwendete Umgebung: sharelatex.com
Minimalbeispiel:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{listings}
\begin{document}
\begin{verbatim}
apt-get install software-properties-common
apt‑key adv ‑‑keyserver keyserver.ubuntu.com ‑‑recv‑keys E084DAB9
add-apt-repository ppa:marutter/rrutter
apt-get update
apt-get upgrade
\end{verbatim}
\begin{lstlisting}
[caption={ein paar Zeilen code}\label{lst:test123},captionpos=t]
apt-get install software-properties-common
apt‑key adv ‑‑keyserver keyserver.ubuntu.com ‑‑recv‑keys E084DAB9
add-apt-repository ppa:marutter/rrutter
apt-get update
apt-get upgrade
\end{lstlisting}
\end{document}
Problem: Ich möchte die Befehle in ein Dokument einfügen.
Beim kompilieren kommen jetzt ganz viele Fehlermeldungen:
Package inputenc Error: Unicode char \u8:‑ not set up for use with LaTeX.
See the inputenc package documentation for explanation. Type H <return> for immediate help. ... l.12 \end{verbatim} Your command was ignored. Type I <command> <return> to replace it with another command, or <return> to continue without it.
main.tex, line 17
Package inputenc Error: Unicode char \u8:�\expandafter\lst@FillFixed@ not set up for use with LaTeX.
See the inputenc package documentation for explanation. Type H <return> for immediate help. ... l.17 apt‑key adv ‑‑keyserver keyserver.ubuntu.com ‑‑recv‑keys E0... Your command was ignored. Type I <command> <return> to replace it with another command, or <return> to continue without it.
main.tex, line 17
Package inputenc Error: Keyboard character used is undefined
(inputenc) in inputencoding `utf8'. See the inputenc package documentation for explanation. Type H <return> for immediate help. ... l.17 apt‑key adv ‑‑keyserver keyserver.ubuntu.com ‑‑recv‑keys E0... You need to provide a definition with \DeclareInputText or \DeclareInputMath before using this key.
main.tex, line 17
Package inputenc Error: Unicode char \u8:�\lst@FillFixed@\lst@EC� not set up for use with LaTeX.
See the inputenc package documentation for explanation. Type H <return> for immediate help. ... l.17 apt‑key adv ‑‑keyserver keyserver.ubuntu.com ‑‑recv‑keys E0... Your command was ignored. Type I <command> <return> to replace it with another command, or <return> to continue without it.
main.tex, line 17
Package inputenc Error: Keyboard character used is undefined
(inputenc) in inputencoding `utf8'. See the inputenc package documentation for explanation. Type H <return> for immediate help. ... l.17 apt‑key adv ‑‑keyserver keyserver.ubuntu.com ‑‑recv‑keys E0... You need to provide a definition with \DeclareInputText or \DeclareInputMath before using this key.
main.tex, line 17
Package inputenc Error: Unicode char \u8:�\lst@EC�\lst@EC� not set up for use with LaTeX.
See the inputenc package documentation for explanation. Type H <return> for immediate help. ... l.17 apt‑key adv ‑‑keyserver keyserver.ubuntu.com ‑‑recv‑keys E0... Your command was ignored. Type I <command> <return> to replace it with another command, or <return> to continue without it.
main.tex, line 17
Package inputenc Error: Unicode char \u8:�\lst@FillFixed@\lst@EC� not set up for use with LaTeX.
See the inputenc package documentation for explanation. Type H <return> for immediate help. ... l.17 ...er keyserver.ubuntu.com ‑‑recv‑keys E084DAB9 Your command was ignored. Type I <command> <return> to replace it with another command, or <return> to continue without it.
main.tex, line 17
Package inputenc Error: Keyboard character used is undefined
(inputenc) in inputencoding `utf8'. See the inputenc package documentation for explanation. Type H <return> for immediate help. ... l.17 ...er keyserver.ubuntu.com ‑‑recv‑keys E084DAB9 You need to provide a definition with \DeclareInputText or \DeclareInputMath before using this key.
main.tex, line 17
Package inputenc Error: Unicode char \u8:�\lst@EC�\lst@EC� not set up for use with LaTeX.
See the inputenc package documentation for explanation. Type H <return> for immediate help. ... l.17 ...er keyserver.ubuntu.com ‑‑recv‑keys E084DAB9 Your command was ignored. Type I <command> <return> to replace it with another command, or <return> to continue without it.
:
Einen Hinweis habe ich hier gefunden, kann ihn nur nicht auf mein Problem übertragen:
http://texwelt.de/wissen/fragen/3013/package-inputenc-error-unicode-char-u8-not-set-up-for-use-with-latex-warum-zeigt-das-literaturverzeichnis-keine-umlaute
Wie kann ich das Problem lösen? Es fehlen alle '--' komplett
Ausgabe:
![alt text][1]
[1]: http://texwelt.de/wissen/upfiles/latex.pnghttp://texwelt.de/wissen/upfiles/latex_1.png