It is a long standing bug that lyX does not automatically convert # to \# in the LaTeX output so that one easily gets compilation errors.
\end_layout
\begin_layout Verbatim
-
This is Verbatim.
\end_layout
\begin_layout Verbatim
\noindent
\align block
-
The following 2 lines are empty:
\end_layout
\end_layout
\begin_layout Verbatim
-
Almost everything is allowed in Verbatim:"%&$§#~'`
\backslash
}][{|
\end_layout
\begin_layout Verbatim*
-
This is Verbatim*.
\end_layout
\begin_layout Plain Layout
-https://www.tug.org/texinfohtml/dvips.html#Option-details
+https://www.tug.org/texinfohtml/dvips.html
+\backslash
+#Option-details
\end_layout
\end_inset
\end_layout
\begin_layout Verbatim
-
Dies ist Unformatiert.
\end_layout
\begin_layout Verbatim
-
Die folgenden 2 Zeilen sind leer:
\end_layout
\end_layout
\begin_layout Verbatim
-
Fast alles ist in Unformatiert erlaubt:"%&$§#~'`
\backslash
}][{|
\end_layout
\begin_layout Verbatim*
-
Dies ist Unformatiert*.
\end_layout
\begin_layout Plain Layout
-https://www.tug.org/texinfohtml/dvips.html#Option-details
+https://www.tug.org/texinfohtml/dvips.html
+\backslash
+#Option-details
\end_layout
\end_inset
\end_layout
\begin_layout Verbatim
-
Esto es entorno Literal.
\end_layout
\begin_layout Verbatim
\noindent
\align block
-
Las dos líneas siguientes están vacías:
\end_layout
\end_layout
\begin_layout Verbatim
-
Casi todo está permitido en entorno Literal:"%&$§#~'`
\backslash
}][{|
\end_layout
\begin_layout Verbatim*
-
Esto es entorno Literal*.
\end_layout
\begin_layout Plain Layout
-https://www.tug.org/texinfohtml/dvips.html#Option-details
+https://www.tug.org/texinfohtml/dvips.html
+\backslash
+#Option-details
\end_layout
\end_inset
\end_layout
\begin_layout Verbatim
-
This is Verbatim.
\end_layout
\begin_layout Verbatim
\noindent
\align block
-
The following 2 lines are empty:
\end_layout
\end_layout
\begin_layout Verbatim
-
Almost everything is allowed in Verbatim:"%&$§#~'`
\backslash
}][{|
\end_layout
\begin_layout Verbatim*
-
This is Verbatim*.
\end_layout
\begin_layout Plain Layout
-https://www.tug.org/texinfohtml/dvips.html#Option-details
+https://www.tug.org/texinfohtml/dvips.html
+\backslash
+#Option-details
\end_layout
\end_inset
\end_layout
\begin_layout Verbatim
-
これは原文儘(verbatim)環境です。
\end_layout
\begin_layout Verbatim
\noindent
\align block
-
この下の2行は空白行です。
\end_layout
\end_layout
\begin_layout Verbatim
-
右記の各文字を始め、ほぼすべての文字が使えます。例:"%&$§#~'`
\backslash
}][{|
\end_layout
\begin_layout Verbatim*
-
This is Verbatim*.
\end_layout
\begin_layout Plain Layout
-https://www.tug.org/texinfohtml/dvips.html#Option-details
+https://www.tug.org/texinfohtml/dvips.html
+\backslash
+#Option-details
\end_layout
\end_inset