Text Formatting ⇒ How to format process/definition/theorem steps
How to format process/definition/theorem steps
Hope someone could help me out because I'm really stuck and the default LyX functions aren't useful!
Thanks!
Kind regards,
Kris
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
How to format process/definition/theorem steps
Code: Select all
\begin{description} \item[(D3) \hfill]
\begin{lstlisting}[basicstyle={\small\ttfamily}]
{ ?P :hasPrivateKeyFor ?key .
?doc :signature [ :signedwith ?key ]
} => { ?P :claims [ is :semantics of ?doc ] } .
\end{lstlisting}
\end{description}
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
How to format process/definition/theorem steps
Code: Select all
\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage{enumitem}
\usepackage{alltt}
\begin{document}
\begin{enumerate}[label={(P\arabic*)},leftmargin=*]
\item
\begin{minipage}[c]{\linewidth}
\small
\begin{alltt}
romeo:i :semantics \{
romeo:i a foaf:Person;
:HasPrivateKeyFor PubKey;
foaf:name "Romeo";
foaf:knows jult.me;
\}
\end{alltt}
\end{minipage}
\end{enumerate}
\end{document}
Best regards and welcome to the board
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10