.append without linebreak

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

KCS
Posts: 3
Joined: Tue Jan 24, 2017 10:58 am

.append without linebreak

Postby KCS » Tue Jan 24, 2017 12:34 pm

I am using EViews 9.1 and the add-in that generates LaTex Code from a table.
I'm not satisfied with the way this add-on generates the output, my main issue being that it generates a linebreak after each entry, resulting in a terribly long texcode. I would therefore like to personalize the add-in. It seems to me that the .append command forces a line break. My question is: is there an alternative command that allows to append text without breaking the line?
I appreciate all the help!

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13600
Joined: Tue Sep 16, 2008 5:38 pm

Re: .append without linebreak

Postby EViews Gareth » Tue Jan 24, 2017 12:39 pm

There is not.

However you might be able to concatenate lines in the program before appending them to the text object.

Thus:

Code: Select all

{%tablename}.append this is some {%tablename}.append text that is added
would change to

Code: Select all

{%tablename}.append this is some text that is added

KCS
Posts: 3
Joined: Tue Jan 24, 2017 10:58 am

Re: .append without linebreak

Postby KCS » Tue Jan 24, 2017 3:19 pm

Thanks. I have a follow-up question:

I found the new feature that when copying a table, one can choose latex code instead of text.
However, even for the simplest, say 2x2 table with numbers, the resulting tex code is cumbersome by putting each entry in a multi-column environment. Any thoughts why that is the case? Otherwise, this copy command would be such a great feature!

EViews Rebecca
EViews Developer
Posts: 113
Joined: Thu Apr 18, 2013 8:37 am

Re: .append without linebreak

Postby EViews Rebecca » Tue Jan 24, 2017 5:26 pm

The multicolumn environment is there to accommodate complex tables, such as regression output that includes headings and summary statistics.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests