GeneralHow to declare table attributes outside table environment?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
User avatar
cbustaam
Posts: 57
Joined: Mon Sep 01, 2008 10:17 pm

How to declare table attributes outside table environment?

Post by cbustaam »

Hi all,

I'm need to declare some table attributes (like borders) outside the table environment. For example, I know that all tables are going to be of size 3x3, and I want to be a border between row 1 and 2 and between column 1 and 2. Can I declare this settings in the preamble (or somewhere else) without declaring inside the table environment?

Why I need this? Because my table is created for another program (MATLAB) and the option that allows me to export a matrix to latex (command matrix2latex) only allows me to have border in every possible site or in no one. So I pretend to generate a table without borders in MATLAB, call this file with the input command and then declare where the borders have to be in the preamble of my main tex file.

It is possible?

Bests.
"Show me your .emacs and I'll tell you who you are." -- modified proverb

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

How to declare table attributes outside table environment?

Post by localghost »

The utilization of a tabular environment is not bound to a table environment. Declaring the lines should be no big deal for you.


Thorsten
User avatar
cbustaam
Posts: 57
Joined: Mon Sep 01, 2008 10:17 pm

Re: How to declare table attributes outside table environmen

Post by cbustaam »

My mistake, I had to refer to the tabular environment instead the table float.
Declaring the lines manually on the tex file generated by MATLAB is not an option, because the idea is have this process automatized, and could be extremely tedious put the table borders manually (in a lot ob rows and columns) each time i got new results (it might be several times at a day).
Any idea.

Pd. what is the right forum to post this? i think that the General forum it's an appropriated place.
"Show me your .emacs and I'll tell you who you are." -- modified proverb
Post Reply