8000 GitHub - conjikidow/latex-listings-pddl: Syntax highlighting support for PDDL in the LaTeX listings package
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Syntax highlighting support for PDDL in the LaTeX listings package

License

Notifications You must be signed in to change notification settings

conjikidow/latex-listings-pddl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

latex-listings-pddl

Syntax highlighting support for PDDL in the LaTeX listings package.

How to Set Up

  1. Create lstlang0.sty in your texmf trees (if it does not already exist).
    • You can use either of TEXMFLOCAL or TEXMFHOME as texmf trees.
      • To view the values of these variables, run tlmgr conf.
    • Place lstlang0.sty in texmf_tree_root/tex/latex/listings/.
      • For example, ${TEXMFHOME}/tex/latex/listings/lstlang0.sty.
  2. Clone this repository.
    • Clone it into the same directory as lstlang0.sty (texmf_tree_root/tex/latex/listings/).
  3. Include lstlang-pddl.sty in lstlang0.sty.
    • Add
      \input{latex-listings-pddl/lstlang-pddl.sty}
      to lstlang0.sty.
  4. Create lstlocal.cfg (if it does not already exist).
    • Place it into the same directory as lstlang0.sty.
  5. Set the default version of PDDL in the lstlocal.cfg.
    • Add
      \lstset{defaultdialect=[3.1]PDDL}
      to lstlocal.cfg.
    • Available PDDL versions are:
      • 1.2
        • Note that some features of PDDL1.2 are not supported, as they are rarely used.
      • 2.1
      • 2.2
      • 3.0
      • 3.1

How to Use

  • Include the listings package in your LaTeX document.
    \usepackage{listings}
  • Set the option language as PDDL in the lstlisting environment.
    • Example:
      \begin{lstlisting}[language=PDDL]
      (define (domain example)
          ...
      )
      \end{lstlisting}
  • You can specify a specific version of PDDL.
    • Example:
      \begin{lstlisting}[language={[2.1]PDDL}]
      (define (domain example)
          ...
      )
      \end{lstlisting}
    • To change the default version, see How to Set Up above.
  • You can also include PDDL source files similarly.
    • Example:
      \lstinputlisting[language={[2.2]PDDL}]{path/to/source/domain.pddl}
  • For more on the listings package, see here.

References

About

Syntax highlighting support for PDDL in the LaTeX listings packag 54AF e

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0