Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Xpand in Latex listings
Xpand in Latex listings [message #538361] Mon, 07 June 2010 13:10 Go to next message
Hauke Fuhrmann is currently offline Hauke FuhrmannFriend
Messages: 333
Registered: July 2009
Senior Member
Dear Xpand Gurus,
maybe better: dear Latex Gurus in the lines of Xpand users,

we have the weird idea to do some publications in *Latex* which display
Xpand listings using the lstlistings package.

Due to multiple reasons definition of a proper syntax highlighting in
Latex is rather difficult. The reasons are below.

Does anybody has a language/style definition for Xpand that does proper
rendering of Xpand files for lstlistings?

And please: comments like "don't use latex" or "do a screenshot" are of
little help. As I hear from Latex people: "don't use such a strange
language like Xpand!" :-)

Problems:

* Guillemots are not supported in UTF8 in lstlistings (workarounds:
use escape char or lstinputlisting with latin1 encoding)
* Generated Code-Strings like C or Java Code is displayed in
Sring-Color. However, it's difficult to specify "everything except Xpand
tags" as String in lstlistings.
* If the point above is not solvable, it's difficult to distinguish
between keywords in Xtend and the target language like "if", "else",
"switch"...

Any insights?

Cheers,
Hauke
Re: Xpand in Latex listings [message #674294 is a reply to message #538361] Thu, 26 May 2011 12:53 Go to previous message
mrodrigo Missing name is currently offline mrodrigo Missing nameFriend
Messages: 6
Registered: March 2011
Junior Member
Hello Hauke,

Maybe you have found a solutions to your issue, anyway, I paste here a link to one web where anybody can get a .tex and .sty files for use with Xpand and LaTex.

Xpand and LaTeX are friends!

Regards!

[Updated on: Thu, 26 May 2011 12:55]

Report message to a moderator

Previous Topic:Extending the given function operators for Acceleo
Next Topic:Copy files unsing the MWE2 workflow
Goto Forum:
  


Current Time: Mon Dec 09 20:05:41 GMT 2024

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

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

Back to the top