2012/4/24 Carnë Draug <carandraug+...@gmail.com>:
> On 19 April 2012 10:24, Markus Bergholz <marku...@gmail.com> wrote:
>> 2012/4/18 Markus Bergholz <marku...@gmail.com>:
>>>> I believe this function would fit better in the miscellaneous package
>>>> (and can you take a look at csv2latex and maybe publish on that
>>>> package?).
>>>
>>> Oh, i didn't know that those package exist.
>>> As far as i see it is similar as mine, only by going through a CSV
>>> file, but with optionaly horizontal/vertical lines and optionaly
>>> row/column titles.
>>>
>>>
>>>> Also, you don't have a copyright notice on that function so we can't
>>>> add it to Octave-Forge until then. I'd suggest GPLv3+ (that's the
>>>> license octave itself and most code in octave-forge uses).
>>>
>>> I don't care about the licence. So GPLv3+ is fine too.
>>>
>>>> Quite a few different versions of this function have already been proposed,
>>>> see for example this thread:
>>>>
>>>> http://octave.1599824.n4.nabble.com/Creating-Pretty-Report-from-Octave-tp2245980p2245980.html
>>>>
>>>> Maybe you could help by merging the features of all variants into one?
>>>
>>> I'll take a look and see what my lousy octave skills can do :)
>>>
>>>
>>> greetings
>>> markus
>>
>> First i've change the name from matrix2textable to texwrite.
>> Than I've include the features of the csv2tex (switching rows lines
>> on/off, column on/off, alignment set to left/right/center). But i've
>> don't include the rows/column titles/naming. I don't know if it is
>> needed and don't know how to handle it.
>> Then i've added a display in matrix feature.
>> I've added the code and an example pdf, how does it all look like, but
>> i don't know how smooth the code is.
>>
>> greetings
>> markus
>
> Hi Markus
>
> sorry for the very late reply.

 it's okey :)

> I have rewrote the documentation of the
> function so as to use texinfo properly. I have also renamed textable.
> I have made a few changes, specially with the input handling, how the
> defaults are set up and a very minimum input checking and then
> comitted it. Please see
> http://octave.svn.sourceforge.net/viewvc/octave/trunk/octave-forge/main/miscellaneous/inst/textable.m
>
> Note how the defaults are set up at the top with the line:
>
> function textable (data, filename, rlines = 1, clines = 1, alignment =
> "r", matrixformat = 0)
> endfunction

i guess now it isn't working anymore (correctly).
further more, textable output comes with a warning.

warning: implicit conversion from matrix to sq_string

>
> I also didn't quite understand the sprintf('r') lines, there's no need
> for that, you can assign the character directly to variable.

if i tried that i get an error

error: `r' undefined near line 4 column 27

>
> And why not having the user entering the actual character rather than
> a number?
> It will make it easier to remember the API and what value
> means.

I don't know how to handle it. everything i've tried like that, ended
in an error of undefined :)

> And the last input argument, that overwrites all the ones
> before, what's its use? I don't understand it. Do you think any of
> this should be changed?

This is a completly different latex rendering.
Take a look at this [1]. This would bring octave matrix as a matrix to
latex. The syntax is very different as compared to table syntax.

And this [2] is the textable default output now and how latex would
render it. it is missing the 'r' alignment parameter. if your screen
size is larger than my 10" netbook screen atm, you'll see without
scrolling down how the output should be :)

Thx for your effort, i'll try to continue working on textable script
this weekend.

greetings
markus

[1] http://notes.osuv.de/doku.php?id=software:texwrite:example#matrixformat
[2] 
http://notes.osuv.de/doku.php?id=software:texwrite:example#textable_m_testtex

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to