Пример #1
0
void LatexDocVisitor::visitPre(DocHtmlCell *c)
{
  if (m_hide) return;
  
  m_currentColumn++;
  //Skip columns that span from above.
  QMap<int, int>::Iterator it = m_rowspanIndices.find(m_currentColumn);
  while (it!=m_rowspanIndices.end() && 0<it.data())
  {
    m_t << "&";
    m_currentColumn++;
    it++;
  }

  int rs = rowspan(c);
  if (rs>0)
  {
    m_inRowspan = TRUE;
    m_rowspanIndices[m_currentColumn] = rs;
    m_t << "\\multirow{" << rs << "}{\\linewidth}{";
  }
  int a = align(c);
  if (a==1)
  {
    m_t << "\\PBS\\centering ";
  }
  else if (a==2)
  {
    m_t << "\\PBS\\raggedleft ";
  }
  if (c->isHeading())
  {
    m_t << "{\\bf ";
  }
}
Пример #2
0
void LatexDocVisitor::visitPre(DocHtmlCell *cell)
{
  if (m_hide) return;
  
  m_currentColumn++;
  //Skip columns that span from above.
  QMap<int, int>::Iterator it = m_rowspanIndices.find(m_currentColumn);
  while (0 < it.data() && it != m_rowspanIndices.end())
  {
    m_t << "&";
    m_currentColumn++;
    it++;
  }

  int rs = rowspan(cell);
  if (0 < rs)
  {
    m_inRowspan = TRUE;
    m_rowspanIndices[m_currentColumn] = rs;
    m_t << "\\multirow{" << rs << "}{\\linewidth}{";
  }
}