Back to index

texmacs  1.0.7.15
tab.cpp
Go to the documentation of this file.
00001 
00002 /******************************************************************************
00003 * MODULE     : tab.cpp
00004 * DESCRIPTION: spacing
00005 * COPYRIGHT  : (C) 1999  David Allouche
00006 *******************************************************************************
00007 * This software falls under the GNU general public license version 3 or later.
00008 * It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
00009 * in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
00010 ******************************************************************************/
00011 
00012 #include "tab.hpp"
00013 
00014 /******************************************************************************
00015 * Constructor
00016 ******************************************************************************/
00017 
00018 tab_rep::tab_rep (int pos2, tree t): pos (pos2) {
00019   if (N(t) <= 1) {
00020     kind= tab_all; weight= 1.0; }
00021   else if (t[1] == "first") {
00022     kind= tab_first; weight= 0; }
00023   else if (t[1] == "last") {
00024     kind= tab_last; weight= 0; }
00025   else {
00026     kind= tab_all; weight= as_double (t[1]); }
00027 }