Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Listing Format of ATL Rules in Latex(What is the language name?)
Listing Format of ATL Rules in Latex [message #1840416] Wed, 14 April 2021 20:00 Go to next message
Mohammed Hamdi is currently offline Mohammed HamdiFriend
Messages: 5
Registered: March 2021
Junior Member
Hello,

I want to add my ATL program to the pdf draft with the same Eclipse coloring using Latex. I create the listing for that but I do not know what should I put as a language name in the listing format.

Here is the header of my listing:

\begin{lstlisting}[language=, caption=Model Refactoring, label=model-refactoring]

Could you please explain to me which name is the right one for the language?

Thanks in advance,

Mohammed
Re: Listing Format of ATL Rules in Latex [message #1840435 is a reply to message #1840416] Thu, 15 April 2021 08:11 Go to previous messageGo to next message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 581
Registered: September 2012
Location: Belgium
Senior Member

You have to define the language yourself with lstlisting. Therefore, you can choose the language name yourself, but of course "atl" appears most logical. See https://github.com/dwagelaar/trainbenchmark-ttc/blob/master/paper/atl/ttc15-atl.tex for an example.

Cheers,
Dennis
Re: Listing Format of ATL Rules in Latex [message #1840470 is a reply to message #1840435] Thu, 15 April 2021 22:25 Go to previous message
Mohammed Hamdi is currently offline Mohammed HamdiFriend
Messages: 5
Registered: March 2021
Junior Member
Thank you so much Dennis. The example is really useful, I followed it and it works.

Regards,
Previous Topic:Source attachment
Next Topic:Null-safe navigator operator
Goto Forum:
  


Current Time: Sat Nov 11 08:17:33 GMT 2023

Powered by FUDForum. Page generated in 0.03039 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top