Sha256: e1c9645b030a663305116b11c1ddc4a972fb8e17c623ff474c064af8e2bbc193

Contents?: true

Size: 364 Bytes

Versions: 127

Compression:

Stored size: 364 Bytes

Contents

We can include code listings, as seen in Listing~\ref{code:foo}.

\begin{codelisting}
\label{code:foo}
Defining a foo function.
%= ruby
\begin{code}
def foo
  "bar"
end
\end{code}
\end{codelisting}

Including the type of source code (in this case, Ruby) should result in syntax highlighting. (The type is put in a comment so that the markup is still valid \LaTeX.)

Version data entries

127 entries across 127 versions & 1 rubygems

Version Path
polytexnic-1.0.1 spec/fixtures/code_listing.tex
polytexnic-1.0.0 spec/fixtures/code_listing.tex
polytexnic-1.0.beta8 spec/fixtures/code_listing.tex
polytexnic-1.0.beta7 spec/fixtures/code_listing.tex
polytexnic-1.0.beta6 spec/fixtures/code_listing.tex
polytexnic-1.0.beta5 spec/fixtures/code_listing.tex
polytexnic-1.0.beta4 spec/fixtures/code_listing.tex
polytexnic-1.0.beta3 spec/fixtures/code_listing.tex
polytexnic-1.0.beta2 spec/fixtures/code_listing.tex
polytexnic-1.0.beta1 spec/fixtures/code_listing.tex
polytexnic-0.9.10 spec/fixtures/code_listing.tex
polytexnic-0.9.9 spec/fixtures/code_listing.tex
polytexnic-0.9.8 spec/fixtures/code_listing.tex
polytexnic-0.9.7 spec/fixtures/code_listing.tex
polytexnic-0.9.6 spec/fixtures/code_listing.tex
polytexnic-0.9.5 spec/fixtures/code_listing.tex
polytexnic-0.9.4 spec/fixtures/code_listing.tex
polytexnic-0.9.3 spec/fixtures/code_listing.tex
polytexnic-0.9.2 spec/fixtures/code_listing.tex
polytexnic-0.9.1 spec/fixtures/code_listing.tex