emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Latex export error in tables
@ 2009-02-07 18:25 Flávio de Souza
  2009-02-07 20:05 ` Manish
  0 siblings, 1 reply; 7+ messages in thread
From: Flávio de Souza @ 2009-02-07 18:25 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 229 bytes --]


Hi,

I am trying to export one org file to latex, but I am getting lots of
erros in the tables.

I checked the tex generated file and table has wrong textbuf.

I attached my org file so you guys can reproduce the error easily.


[-- Attachment #2: projeto.org --]
[-- Type: application/octet-stream, Size: 8319 bytes --]


* Dados do Projeto
** Nome e OS 
   - Ingenio Cristóbal Colón ( ICC )
   - 2008/09221

** Contatos
   - Renato Estrada
   - Edward Dardón

** Grupo do Projeto
   - Gerente de Projeto : André Giorgini
   - Coordenador Técnico: Flávio de Souza

** Planejamento
*** Por quê?
*** Visão
*** Brainstorming
* Escopo Horas
  :PROPERTIES:
   :COLUMNS:  %50ITEM %10Quoted(Quotation){+} %10Sold(Sold){+} %10Required(Required){+}
   :Quoted:   230
   :Sold:     1640
   :ID: 09.0001-ESCH
  :END:
** Quantidade de Horas
*** Gerência
    :PROPERTIES:
    :Quoted:   10
    :END:          
*** Definição
    :PROPERTIES:
    :Quoted:   50
    :END:         
*** Configuração
    :PROPERTIES:
    :Quoted:   100
    :END:      
*** Comis. & Start up
    :PROPERTIES:
    :Quoted:   50
    :END: 
*** Documentação
    :PROPERTIES:
    :Quoted:   20
    :END:      
* Escopo Pontos
  :PROPERTIES:
   :COLUMNS:  %50ITEM %10Quoted(Quotation){+} %10Sold(Sold){+} %10Required(Required){+}
  :Quoted:   301
  :Sold:     1110
   :ID: 09.0001-ESCP
  :END:

** Entradas
*** 4-20mA
   :PROPERTIES:
    :Quoted:   20
    :Sold:   110
   :END:
*** DI
   :PROPERTIES:
    :Quoted:   25
    :Sold:   100
   :END:

*** FF
   :PROPERTIES:
    :Quoted:   35
    :Sold:   100
   :END:

*** PA
   :PROPERTIES:
    :Quoted:   0
    :Sold:   100
   :END:

** Saídas
*** 4-20mA
   :PROPERTIES:
    :Quoted:   10
    :Sold:   100
   :END:

*** DO
   :PROPERTIES:
    :Quoted:   10
    :Sold:   100
   :END:
*** FF
   :PROPERTIES:
    :Quoted:   12
    :Sold:   100
   :END:
    
*** PA
   :PROPERTIES:
    :Quoted:   0
    :Sold:   100
   :END:

** Supervisório
*** Histórico
   :PROPERTIES:
    :Quoted:   112
    :Sold:   100
   :END:

*** Alarmes
   :PROPERTIES:
    :Quoted:   55
    :Sold:   100
   :END:

*** Controles
   :PROPERTIES:
    :Quoted:   22
    :Sold:   100
   :END:

* Escopo Telas
  :PROPERTIES:
   :COLUMNS:  %50ITEM %10Quoted(Quotation){+} %10Sold(Sold){+} %10Required(Required){+}
  :Quoted:   134
  :Sold:     530
   :ID: 09.0001-ESCT
  :END:

** Sinótico
 :PROPERTIES:
  :Quoted: 30
  :Sold:   30
 :END:

** Sintônia  
 :PROPERTIES:
   :Quoted:   22
  :Sold:   100
 :END:

** Relatório 
 :PROPERTIES:
   :Quoted:   01
  :Sold:   100
 :END:

** Tendência 
 :PROPERTIES:
   :Quoted:   51
  :Sold:   100
 :END:

** Motores  
 :PROPERTIES:
   :Quoted:   05
  :Sold:   100
 :END:

** Pop-Ups  
 :PROPERTIES:
   :Quoted:   25
  :Sold:   100
 :END:

* Escopo Hardware Painel
** Gabinete

| Item | Descrição | Tamanho | Área |
|      |           |         |      |
|      |           |         |      |

** Módulos

| Item | Código | Descrição      | Qtd |
|    1 | DF50   | Fonte          |   3 |
|    2 | DF75   | CPU            |   2 |
|    3 | DF44   | 16 EA (4-20mA) |   7 |
|    4 | DF46   | 4 SA (4-20mA)  |   8 |
|    5 | DF45   | 8 EA (RTD)     |   3 |
|    6 | DF11   | 16 ED (24 Vdc) |   3 |
|    7 | DF28   | 16 SD (Relé)   |   2 |

** Acessórios

| Item | Código | Descrição           | Qtd. |
|    1 | DF3    | Flat Cable          |    4 |
|    2 | DF7A   | Flat Cable          |    2 |
|    3 | DF82   | Cabo Inter CPU      |    1 |
|    4 | DF54   | Cabo Ethernet Comum |    2 |
|    5 | DF78   | Rack p/ redundância |    1 |
|    6 | DF84   | Protetor p/ partida |    1 |
|    7 | DF1A   | Rack 4 Slots        |    6 |

** Terceiros
| Item OS | Código           | Descrição      | Qtd |
|      40 | Fuentes de Poder | Fonte 5A       |   4 |
|      53 | Painel           | Painel Control |   1 |
|         |                  |                |     |
** Computadores

* Escopo de Áreas
  - General         -> 0XXX
  - Calderas        -> 1XXX 
  - Preparación     -> 2XXX
  - Generación      -> 4XXX

* WBS [0%]
  :PROPERTIES:
   :COLUMNS:  %50ITEM  %10Effort(Estimate){:} %5SoldHours(Sold){:} %15CLOCKSUM(Clocked)
   :ID: 09.0001-WBS
  :END:
*** Definição
 :PROPERTIES:
   :SoldHours:     8:00
   :Effort:   4:00
 :END:
**** Kick Off Meeting
**** Arquitetura
     
*** Configuração
 :PROPERTIES:
   :SoldHours:     8:00
   :Effort:   4:00
 :END:
**** Lógica
**** HMI

*** Documentação
 :PROPERTIES:
   :SoldHours:     8:00
   :Effort:   4:00
 :END:
**** Arquitetura
**** Data Sheet
**** Lista de Pontos de Entrada/Saída
**** Lista de Designação de Pontos
**** Lista de Alarmes
**** Lista de Controles
**** Lista de Intertravamentos
**** Projeto de Painel
**** Manual de Operação do Sistema

*** Comissionamento
 :PROPERTIES:
   :SoldHours:     8:00
   :Effort:   4:00
 :END:
*** Partida   
 :PROPERTIES:
   :SoldHours:     8:00
   :Effort:   4:00
 :END:
*** Operação Assistida
 :PROPERTIES:
   :SoldHours:     8:00
   :Effort:   4:00
 :END:

* Summary
** Pontos
#+BEGIN: columnview :hlines 2 :vlines t :id "09.0001-ESCP"  :skip-empty-rows t
|   | ITEM            | Quotation | Sold | Required |
|---+-----------------+-----------+------+----------|
|   | * Escopo Pontos |       301 | 1110 |          |
|---+-----------------+-----------+------+----------|
|   | ** Entradas     |        80 |  410 |          |
|   | *** 4-20mA      |        20 |  110 |          |
|   | *** DI          |        25 |  100 |          |
|   | *** FF          |        35 |  100 |          |
|   | *** PA          |         0 |  100 |          |
|---+-----------------+-----------+------+----------|
|   | ** Saídas       |        32 |  400 |          |
|   | *** 4-20mA      |        10 |  100 |          |
|   | *** DO          |        10 |  100 |          |
|   | *** FF          |        12 |  100 |          |
|   | *** PA          |         0 |  100 |          |
|---+-----------------+-----------+------+----------|
|   | ** Supervisório |       189 |  300 |          |
|   | *** Histórico   |       112 |  100 |          |
|   | *** Alarmes     |        55 |  100 |          |
|   | *** Controles   |        22 |  100 |          |
| / | <>              |        <> |   <> | <>       |
#+END:

** Horas
#+BEGIN: columnview :hlines 2 :vlines t :id "09.0001-ESCH"  :skip-empty-rows t
|   | ITEM                   | Quotation | Sold | Required |
|---+------------------------+-----------+------+----------|
|   | * Escopo Horas         |       230 | 1640 |          |
|---+------------------------+-----------+------+----------|
|   | ** Quantidade de Horas |       230 |      |          |
|   | *** Gerência           |        10 |      |          |
|   | *** Definição          |        50 |      |          |
|   | *** Configuração       |       100 |      |          |
|   | *** Comis. & Start up  |        50 |      |          |
|   | *** Documentação       |        20 |      |          |
| / | <>                     |        <> | <>   | <>       |
#+END:

** Telas
#+BEGIN: columnview :hlines 1 :vlines t :id "09.0001-ESCT"  :skip-empty-rows t
|   | ITEM           | Quotation | Sold | Required |
|---+----------------+-----------+------+----------|
|   | * Escopo Telas |       134 |  530 |          |
|   | ** Sinótico    |        30 |      |          |
|   | ** Sintônia    |        22 |  100 |          |
|   | ** Relatório   |        01 |  100 |          |
|   | ** Tendência   |        51 |  100 |          |
|   | ** Motores     |        05 |  100 |          |
|   | ** Pop-Ups     |        25 |  100 |          |
| / | <>             |        <> |   <> | <>       |
#+END:

** Horas do Projeto
#+BEGIN: columnview :hlines 3 :vlines t :id "09.0001-WBS"  :skip-empty-rows t
|   | ITEM                    | Estimate |  Sold | Clocked |
|---+-------------------------+----------+-------+---------|
|   | ** WBS [0%]             |    24:00 | 48:00 |         |
|   | **** Definição          |     4:00 |  8:00 |         |
|   | **** Configuração       |     4:00 |  8:00 |         |
|   | **** Documentação       |     4:00 |  8:00 |         |
|   | **** Comissionamento    |     4:00 |  8:00 |         |
|   | **** Partida            |     4:00 |  8:00 |         |
|   | **** Operação Assistida |     4:00 |  8:00 |         |
| / | <>                      |       <> |    <> | <>      |
#+END:





[-- Attachment #3: Type: text/plain, Size: 91 bytes --]


I am using org version 6.21b.

Please, help me.

-- 
Flávio de Souza
flaviostz@gmail.com

[-- Attachment #4: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Latex export error in tables
  2009-02-07 18:25 Latex export error in tables Flávio de Souza
@ 2009-02-07 20:05 ` Manish
       [not found]   ` <87hc36ylr4.fsf@gmail.com>
  0 siblings, 1 reply; 7+ messages in thread
From: Manish @ 2009-02-07 20:05 UTC (permalink / raw)
  To: Flávio de Souza; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1048 bytes --]

Flávio de Souza :
> Hi,
>
> I am trying to export one org file to latex, but I am getting lots of
> erros in the tables.

I am afraid you will have to be more descriptive than that.

> I checked the tex generated file and table has wrong textbuf.
>
> I attached my org file so you guys can reproduce the error easily.

Since you mentioned that the issues were with tables so I commented out the
headings that did not contain any tables and tried the export to PDF and
everything seems to be fine.  I am attaching the edited org file and the
generated PDF. And oh.. I did have to adjust the number of leading stars to
match my odd level settings.

Some characters may not have been rendered correctly.

> I am using org version 6.21b.

I tried with Org (477141d as of Fri Feb 6 12:44:52), GNU Emacs 23.0.90.1 on
Windows XP.

I would suggest making the smallest possible org file that can demonstrate the
issue along with a copy of your relevant settings from .emacs so your issue
can be replicated easily.

-- 
Manish

[-- Attachment #2: projeto.pdf --]
[-- Type: application/pdf, Size: 93260 bytes --]

[-- Attachment #3: projeto.org --]
[-- Type: application/octet-stream, Size: 8189 bytes --]

#+TITLE: Test Document
* COMMENT Dados do Projeto
*** Nome e OS 
    - Ingenio Cristóbal Colón ( ICC )
    - 2008/09221
*** Contatos
    - Renato Estrada
    - Edward Dardón
*** Grupo do Projeto
    - Gerente de Projeto : André Giorgini
    - Coordenador Técnico: Flávio de Souza
*** Planejamento
*** Por quê?
*** Visão
*** Brainstorming
* COMMENT Escopo Horas
  :PROPERTIES:
   :COLUMNS:  %50ITEM %10Quoted(Quotation){+} %10Sold(Sold){+} %10Required(Required){+}
   :Quoted:   230
   :Sold:     1640
   :ID: 09.0001-ESCH
  :END:
*** Quantidade de Horas
*** Gerência
    :PROPERTIES:
    :Quoted:   10
    :END:          
*** Definição
    :PROPERTIES:
    :Quoted:   50
    :END:         
*** Configuração
    :PROPERTIES:
    :Quoted:   100
    :END:      
*** Comis. & Start up
    :PROPERTIES:
    :Quoted:   50
    :END: 
*** Documentação
    :PROPERTIES:
    :Quoted:   20
    :END:      
* COMMENT Escopo Pontos
  :PROPERTIES:
   :COLUMNS:  %50ITEM %10Quoted(Quotation){+} %10Sold(Sold){+} %10Required(Required){+}
  :Quoted:   301
  :Sold:     1110
   :ID: 09.0001-ESCP
  :END:
*** Entradas
*** 4-20mA
   :PROPERTIES:
    :Quoted:   20
    :Sold:   110
   :END:
*** DI
   :PROPERTIES:
    :Quoted:   25
    :Sold:   100
   :END:

*** FF
   :PROPERTIES:
    :Quoted:   35
    :Sold:   100
   :END:

*** PA
   :PROPERTIES:
    :Quoted:   0
    :Sold:   100
   :END:

*** Saídas
***** 4-20mA
     :PROPERTIES:
      :Quoted:   10
      :Sold:   100
     :END:
      
***** DO
     :PROPERTIES:
      :Quoted:   10
      :Sold:   100
     :END:
***** FF
     :PROPERTIES:
      :Quoted:   12
      :Sold:   100
     :END:
      
***** PA
     :PROPERTIES:
      :Quoted:   0
      :Sold:   100
     :END:

*** Supervisório
***** Histórico
     :PROPERTIES:
      :Quoted:   112
      :Sold:   100
     :END:

***** Alarmes
     :PROPERTIES:
      :Quoted:   55
      :Sold:   100
     :END:

***** Controles
     :PROPERTIES:
      :Quoted:   22
      :Sold:   100
     :END:

* COMMENT Escopo Telas
  :PROPERTIES:
   :COLUMNS:  %50ITEM %10Quoted(Quotation){+} %10Sold(Sold){+} %10Required(Required){+}
  :Quoted:   134
  :Sold:     530
   :ID: 09.0001-ESCT
  :END:

*** Sinótico
  :PROPERTIES:
   :Quoted: 30
   :Sold:   30
  :END:

*** Sintônia  
  :PROPERTIES:
    :Quoted:   22
   :Sold:   100
  :END:

*** Relatório 
  :PROPERTIES:
    :Quoted:   01
   :Sold:   100
  :END:

*** Tendência 
  :PROPERTIES:
    :Quoted:   51
   :Sold:   100
  :END:

*** Motores  
  :PROPERTIES:
    :Quoted:   05
   :Sold:   100
  :END:

*** Pop-Ups  
  :PROPERTIES:
    :Quoted:   25
   :Sold:   100
  :END:

* Escopo Hardware Painel
*** Gabinete

| Item | Descrição | Tamanho | Área |
|      |           |         |      |
|      |           |         |      |

*** Módulos

| Item | Código | Descrição      | Qtd |
|    1 | DF50   | Fonte          |   3 |
|    2 | DF75   | CPU            |   2 |
|    3 | DF44   | 16 EA (4-20mA) |   7 |
|    4 | DF46   | 4 SA (4-20mA)  |   8 |
|    5 | DF45   | 8 EA (RTD)     |   3 |
|    6 | DF11   | 16 ED (24 Vdc) |   3 |
|    7 | DF28   | 16 SD (Relé)   |   2 |

*** Acessórios

| Item | Código | Descrição           | Qtd. |
|    1 | DF3    | Flat Cable          |    4 |
|    2 | DF7A   | Flat Cable          |    2 |
|    3 | DF82   | Cabo Inter CPU      |    1 |
|    4 | DF54   | Cabo Ethernet Comum |    2 |
|    5 | DF78   | Rack p/ redundância |    1 |
|    6 | DF84   | Protetor p/ partida |    1 |
|    7 | DF1A   | Rack 4 Slots        |    6 |

*** Terceiros
| Item OS | Código           | Descrição      | Qtd |
|      40 | Fuentes de Poder | Fonte 5A       |   4 |
|      53 | Painel           | Painel Control |   1 |
|         |                  |                |     |
*** Computadores

* COMMENT Escopo de Áreas
  - General         -> 0XXX
  - Calderas        -> 1XXX 
  - Preparación     -> 2XXX
  - Generación      -> 4XXX

* COMMENT WBS [0%]
  :PROPERTIES:
   :COLUMNS:  %50ITEM  %10Effort(Estimate){:} %5SoldHours(Sold){:} %15CLOCKSUM(Clocked)
   :ID: 09.0001-WBS
  :END:
*** Definição
 :PROPERTIES:
   :SoldHours:     8:00
   :Effort:   4:00
 :END:
**** Kick Off Meeting
**** Arquitetura
     
*** Configuração
 :PROPERTIES:
   :SoldHours:     8:00
   :Effort:   4:00
 :END:
**** Lógica
**** HMI

*** Documentação
 :PROPERTIES:
   :SoldHours:     8:00
   :Effort:   4:00
 :END:
**** Arquitetura
**** Data Sheet
**** Lista de Pontos de Entrada/Saída
**** Lista de Designação de Pontos
**** Lista de Alarmes
**** Lista de Controles
**** Lista de Intertravamentos
**** Projeto de Painel
**** Manual de Operação do Sistema

*** Comissionamento
 :PROPERTIES:
   :SoldHours:     8:00
   :Effort:   4:00
 :END:
*** Partida   
 :PROPERTIES:
   :SoldHours:     8:00
   :Effort:   4:00
 :END:
*** Operação Assistida
 :PROPERTIES:
   :SoldHours:     8:00
   :Effort:   4:00
 :END:

* Summary
*** Pontos
#+BEGIN: columnview :hlines 2 :vlines t :id "09.0001-ESCP"  :skip-empty-rows t
|   | ITEM            | Quotation | Sold | Required |
|---+-----------------+-----------+------+----------|
|   | * Escopo Pontos |       301 | 1110 |          |
|---+-----------------+-----------+------+----------|
|   | ** Entradas     |        80 |  410 |          |
|   | *** 4-20mA      |        20 |  110 |          |
|   | *** DI          |        25 |  100 |          |
|   | *** FF          |        35 |  100 |          |
|   | *** PA          |         0 |  100 |          |
|---+-----------------+-----------+------+----------|
|   | ** Saídas       |        32 |  400 |          |
|   | *** 4-20mA      |        10 |  100 |          |
|   | *** DO          |        10 |  100 |          |
|   | *** FF          |        12 |  100 |          |
|   | *** PA          |         0 |  100 |          |
|---+-----------------+-----------+------+----------|
|   | ** Supervisório |       189 |  300 |          |
|   | *** Histórico   |       112 |  100 |          |
|   | *** Alarmes     |        55 |  100 |          |
|   | *** Controles   |        22 |  100 |          |
| / | <>              |        <> |   <> | <>       |
#+END:

*** Horas
#+BEGIN: columnview :hlines 2 :vlines t :id "09.0001-ESCH"  :skip-empty-rows t
|   | ITEM                   | Quotation | Sold | Required |
|---+------------------------+-----------+------+----------|
|   | * Escopo Horas         |       230 | 1640 |          |
|---+------------------------+-----------+------+----------|
|   | ** Quantidade de Horas |       230 |      |          |
|   | *** Gerência           |        10 |      |          |
|   | *** Definição          |        50 |      |          |
|   | *** Configuração       |       100 |      |          |
|   | *** Comis. & Start up  |        50 |      |          |
|   | *** Documentação       |        20 |      |          |
| / | <>                     |        <> | <>   | <>       |
#+END:

*** Telas
#+BEGIN: columnview :hlines 1 :vlines t :id "09.0001-ESCT"  :skip-empty-rows t
|   | ITEM           | Quotation | Sold | Required |
|---+----------------+-----------+------+----------|
|   | * Escopo Telas |       134 |  530 |          |
|   | ** Sinótico    |        30 |      |          |
|   | ** Sintônia    |        22 |  100 |          |
|   | ** Relatório   |        01 |  100 |          |
|   | ** Tendência   |        51 |  100 |          |
|   | ** Motores     |        05 |  100 |          |
|   | ** Pop-Ups     |        25 |  100 |          |
| / | <>             |        <> |   <> | <>       |
#+END:

*** Horas do Projeto
#+BEGIN: columnview :hlines 3 :vlines t :id "09.0001-WBS"  :skip-empty-rows t
|   | ITEM                    | Estimate |  Sold | Clocked |
|---+-------------------------+----------+-------+---------|
|   | ** WBS [0%]             |    24:00 | 48:00 |         |
|   | **** Definição          |     4:00 |  8:00 |         |
|   | **** Configuração       |     4:00 |  8:00 |         |
|   | **** Documentação       |     4:00 |  8:00 |         |
|   | **** Comissionamento    |     4:00 |  8:00 |         |
|   | **** Partida            |     4:00 |  8:00 |         |
|   | **** Operação Assistida |     4:00 |  8:00 |         |
| / | <>                      |       <> |    <> | <>      |
#+END:




   

[-- Attachment #4: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Latex export error in tables
       [not found]   ` <87hc36ylr4.fsf@gmail.com>
@ 2009-02-08 12:57     ` Manish
  2009-02-09 12:40       ` Flávio
  0 siblings, 1 reply; 7+ messages in thread
From: Manish @ 2009-02-08 12:57 UTC (permalink / raw)
  To: Flávio de Souza

2009/2/8 Flávio de Souza
[...]
>
> I tried with smaller files (only one dynamic block) but the problem
> seems to disappear. I made some other attempts, but all useless. So I
> think is something related with all those blocks I am using in this
> particular org file.

Did those other files contain utf-8 characters?

>
>
> Problem happens 100% time when using my complete, that's the reason I
> sent the whole file.
>
[snip: pdflatex compile log]
> (/usr/share/texmf-texlive/tex/generic/babel/babel.def))) (./projeto.aux)
> Runaway argument?
> {\contentsline {subsection}{\numberline {4.1}Por qu\GenericError {(in\ETC.
> ! File ended while scanning use of \@writefile.
> <inserted text>
>        \par
> l.14 \begin{document}
>
> (/usr/share/texmf/tex/context/base/supp-pdf.tex
> [Loading MPS to PDF converter (version 2006.09.02).]
> ) (/usr/share/texmf-texlive/tex/latex/hyperref/nameref.sty
> (/usr/share/texmf-texlive/tex/latex/oberdiek/refcount.sty)) (./projeto.out)
> (./projeto.out)
>
> ! Package inputenc Error: Unicode char \u8:ávi not set up for use with LaTeX.

I think this is an issue at a more fundamental level than with export to Latex
from Org.  Are you able to compile *any* utf-8 encoded tex file to PDF in your
setup at all (whether generated by Org or something else?)  I am no unicode
expert.  May be you would like to pursue this issue in parallel in some
tex|latex|pdflatex group as well?

-- 
Manish

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Latex export error in tables
  2009-02-08 12:57     ` Manish
@ 2009-02-09 12:40       ` Flávio
  2009-02-09 12:51         ` R: " Giovanni Ridolfi
  2009-02-09 14:22         ` Manish
  0 siblings, 2 replies; 7+ messages in thread
From: Flávio @ 2009-02-09 12:40 UTC (permalink / raw)
  To: emacs-orgmode

Manish <mailtomanish.sharma <at> gmail.com> writes:

> 
> 2009/2/8 Flávio de Souza
> [...]
> >
> > I tried with smaller files (only one dynamic block) but the problem
> > seems to disappear. I made some other attempts, but all useless. So I
> > think is something related with all those blocks I am using in this
> > particular org file.
> 
> Did those other files contain utf-8 characters?
> 
> >
> >
> > Problem happens 100% time when using my complete, that's the reason I
> > sent the whole file.
> >
> [snip: pdflatex compile log]
> > (/usr/share/texmf-texlive/tex/generic/babel/babel.def))) (./projeto.aux)
> > Runaway argument?
> > {\contentsline {subsection}{\numberline {4.1}Por qu\GenericError {(in\ETC.
> > ! File ended while scanning use of \@writefile.
> > <inserted text>
> >        \par
> > l.14 \begin{document}
> >
> > (/usr/share/texmf/tex/context/base/supp-pdf.tex
> > [Loading MPS to PDF converter (version 2006.09.02).]
> > ) (/usr/share/texmf-texlive/tex/latex/hyperref/nameref.sty
> > (/usr/share/texmf-texlive/tex/latex/oberdiek/refcount.sty)) (./projeto.out)
> > (./projeto.out)
> >
> > ! Package inputenc Error: Unicode char \u8:ávi not set up for use with LaTeX.
> 
> I think this is an issue at a more fundamental level than with export to Latex
> from Org.  Are you able to compile *any* utf-8 encoded tex file to PDF in your
> setup at all (whether generated by Org or something else?)  I am no unicode
> expert.  May be you would like to pursue this issue in parallel in some
> tex|latex|pdflatex group as well?
> 


Manish,

This is not a utf-8 encoding problem. When I generate a tex file with org, I
change manually from \usepackage[utf8]{inputenc} to
\usepackage[latin1]{inputenc}. All characters are recognized without any
problems. I tested it both in Linux and Windows XP. This works fine.

Now I will try to narrow down my problem and see if we can find a solution. I
really believe the problem is in tex code generated by org. I will show you the
reason I am pointing the problem to org.

If I have an org table in my file like this one:

#+BEGIN: columnview :hlines 1 :vlines t :id "09.0001-ESCH"  :skip-empty-rows t
|   | ITEM                 | Quotation | Sold | Required |
|---+----------------------+-----------+------+----------|
|   | * Escopo Horas       |       230 | 1640 |          |
|   | ** Gerência          |        10 |      |          |
|   | ** Definição         |        50 |      |          |
|   | ** Configuração      |       100 |      |          |
|   | ** Comis. & Start up |        50 |      |          |
|   | ** Documentação      |        20 |      |          |
| / | <>                   |        <> | <>   | <>       |
#+END:

Then I select the option to generate latex "[L] export as LaTeX to temporary
buffer" ( I only want the tex code, I am not going to do any further
transformation on it ). The raw code for that specific part of the file is:


\begin{tabular}{l|l|r|l}
 ITEM                    &  Quotation  &  Sold  &  Required  \\
\hline
 * Escopo Horas          &        230  &  1640  &            \\
 \textbf{* Gerência      &         10  &        &            \\
 *} Definição            &         50  &        &            \\
 \textbf{* Configuração  &        100  &        &            \\
 *} Comis. & Start up    &         50  &        &            \\
 ** Documentação         &         20  &        &            \\
\end{tabular}

The problems I can point to in this code are:

1) The code "\textbf{* Gerência" is wrong, it should be "\textbf{*} Gerência"
2) The code "*} Definição" is wrong, it should be "\textbf{*} Definição". The
same problem happens in other rows as you can see above. So all these open
command lines will be the source for the errors.
3) One minor problem is that the character "&" at "Comis. & Start up" should be
genrated as "\&". However this is a minor problem and I just dont use this
character anymore. 

Now I will describe my solution (workaround) I found today for it. Firstly I
changed my org table configuration to:

#+BEGIN: columnview :hlines 2 :vlines t :id "09.0001-ESCH"  :skip-empty-rows t
|   | ITEM                 | Quotation | Sold | Required |
|---+----------------------+-----------+------+----------|
|   | * Escopo Horas       |       230 | 1640 |          |
|---+----------------------+-----------+------+----------|
|   | ** Gerência          |        10 |      |          |
|---+----------------------+-----------+------+----------|
|   | ** Definição         |        50 |      |          |
|---+----------------------+-----------+------+----------|
|   | ** Configuração      |       100 |      |          |
|---+----------------------+-----------+------+----------|
|   | ** Comis.and Startup |        50 |      |          |
|---+----------------------+-----------+------+----------|
|   | ** Documentação      |        20 |      |          |
| / | <>                   |        <> | <>   | <>       |
#+END:

With the option :hlines 2 my table has horizontal lines in every row. When I
generate tex, it will look like this:

\begin{tabular}{l|l|r|l}
 ITEM                  &  Quotation  &  Sold  &  Required  \\
\hline
 * Escopo Horas        &        230  &  1640  &            \\
\hline
 ** Gerência           &         10  &        &            \\
\hline
 ** Definição          &         50  &        &            \\
\hline
 ** Configuração       &        100  &        &            \\
\hline
 ** Comis.and Start up  &         50  &        &            \\
\hline
 ** Documentação       &         20  &        &            \\
\end{tabular}

The above code is a perfect tex table and I get no errors, because now the code
is generated with \hline. I needed to "deviate" org tex generation code from
using \textbuf.... :)

I am not a specialist in Tex, I dont even know what \textbf means :) ...
... and I am still learning org, but in my opinion the problem is when org
generates the tex code.  

Maybe Carsten can give his opinion too. 

Thanks
Flávio.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* R: Re: Latex export error in tables
  2009-02-09 12:40       ` Flávio
@ 2009-02-09 12:51         ` Giovanni Ridolfi
  2009-02-09 14:22         ` Manish
  1 sibling, 0 replies; 7+ messages in thread
From: Giovanni Ridolfi @ 2009-02-09 12:51 UTC (permalink / raw)
  To: emacs-orgmode, Flávio

--- Lun 9/2/09, Flávio <flaviostz@gmail.com> ha scritto:
[...] snip
> 3) One minor problem is that the character
> "&" at "Comis. & Start up"
> should be
> genrated as "\&". However this is a minor
> problem and I just dont use this
> character anymore. 

Flavio, you can "LaTeX-escape" the &:

Comis. \(\&\) Start up

I hope it works, but I didn't test it.

cheers,
Giovanni


      Passa a Yahoo! Mail.

La webmail che ti offre GRATIS spazio illimitato, 
antispam e messenger integrato.
http://it.mail..yahoo.com/              

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Re: Latex export error in tables
  2009-02-09 12:40       ` Flávio
  2009-02-09 12:51         ` R: " Giovanni Ridolfi
@ 2009-02-09 14:22         ` Manish
  2009-02-10 21:39           ` Flávio de Souza
  1 sibling, 1 reply; 7+ messages in thread
From: Manish @ 2009-02-09 14:22 UTC (permalink / raw)
  To: Flávio; +Cc: emacs-orgmode

On Mon, Feb 9, 2009 at 6:10 PM, Flávio wrote:
[snip (44 lines)]
>
> This is not a utf-8 encoding problem. When I generate a tex file with org, I
> change manually from \usepackage[utf8]{inputenc} to
> \usepackage[latin1]{inputenc}. All characters are recognized without any
> problems. I tested it both in Linux and Windows XP. This works fine.
>
> Now I will try to narrow down my problem and see if we can find a solution. I
> really believe the problem is in tex code generated by org. I will show you the
> reason I am pointing the problem to org.
>
> If I have an org table in my file like this one:
>
> #+BEGIN: columnview :hlines 1 :vlines t :id "09.0001-ESCH" :skip-empty-rows t
> |  | ITEM         | Quotation | Sold | Required |
> |---+----------------------+-----------+------+----------|
> |  | * Escopo Horas    |    230 | 1640 |     |
> |  | ** Gerência     |    10 |   |     |
> |  | ** Definição     |    50 |   |     |
> |  | ** Configuração   |    100 |   |     |
> |  | ** Comis. & Start up |    50 |   |     |
> |  | ** Documentação   |    20 |   |     |
> | / | <>          |    <> | <>  | <>    |
> #+END:
>
> Then I select the option to generate latex "[L] export as LaTeX to temporary
> buffer" ( I only want the tex code, I am not going to do any further
> transformation on it ). The raw code for that specific part of the file is:
>
>
> \begin{tabular}{l|l|r|l}
> ITEM          & Quotation & Sold & Required \\
> \hline
> * Escopo Horas     &    230 & 1640 &      \\
> \textbf{* Gerência   &     10 &    &      \\
> *} Definição      &     50 &    &      \\
> \textbf{* Configuração &    100 &    &      \\
> *} Comis. & Start up  &     50 &    &      \\
> ** Documentação     &     20 &    &      \\
> \end{tabular}
>
> The problems I can point to in this code are:
>
> 1) The code "\textbf{* Gerência" is wrong, it should be "\textbf{*} Gerência"
> 2) The code "*} Definição" is wrong, it should be "\textbf{*} Definição". The
> same problem happens in other rows as you can see above. So all these open
> command lines will be the source for the errors.
> 3) One minor problem is that the character "&" at "Comis. & Start up" should be
> genrated as "\&". However this is a minor problem and I just dont use this
> character anymore.
>
> Now I will describe my solution (workaround) I found today for it. Firstly I
> changed my org table configuration to:
>
> #+BEGIN: columnview :hlines 2 :vlines t :id "09.0001-ESCH" :skip-empty-rows t
> |  | ITEM         | Quotation | Sold | Required |
> |---+----------------------+-----------+------+----------|
> |  | * Escopo Horas    |    230 | 1640 |     |
> |---+----------------------+-----------+------+----------|
> |  | ** Gerência     |    10 |   |     |
> |---+----------------------+-----------+------+----------|
> |  | ** Definição     |    50 |   |     |
> |---+----------------------+-----------+------+----------|
> |  | ** Configuração   |    100 |   |     |
> |---+----------------------+-----------+------+----------|
> |  | ** Comis.and Startup |    50 |   |     |
> |---+----------------------+-----------+------+----------|
> |  | ** Documentação   |    20 |   |     |
> | / | <>          |    <> | <>  | <>    |
> #+END:
>
> With the option :hlines 2 my table has horizontal lines in every row. When I
> generate tex, it will look like this:
>
> \begin{tabular}{l|l|r|l}
> ITEM         & Quotation & Sold & Required \\
> \hline
> * Escopo Horas    &    230 & 1640 &      \\
> \hline
> ** Gerência      &     10 &    &      \\
> \hline
> ** Definição     &     50 &    &      \\
> \hline
> ** Configuração    &    100 &    &      \\
> \hline
> ** Comis.and Start up &     50 &    &      \\
> \hline
> ** Documentação    &     20 &    &      \\
> \end{tabular}
>
> The above code is a perfect tex table and I get no errors, because now the code
> is generated with \hline. I needed to "deviate" org tex generation code from
> using \textbuf.... :)

That was quite detailed analysis so I tried to replicate it.

This is the input file (I only added a first blank line and a dummy heading):

--8<---------------cut here---------------start------------->8---
#
* test table
#+BEGIN: columnview :hlines 1 :vlines t :id "09.0001-ESCH"  :skip-empty-rows t
|   | ITEM                 | Quotation | Sold | Required |
|---+----------------------+-----------+------+----------|
|   | * Escopo Horas       |       230 | 1640 |          |
|   | ** Ger�ncia          |        10 |      |          |
|   | ** Defini��o         |        50 |      |          |
|   | ** Configura��o      |       100 |      |          |
|   | ** Comis. & Start up |        50 |      |          |
|   | ** Documenta��o      |        20 |      |          |
| / | <>                   |        <> | <>   | <>       |
#+END:
--8<---------------cut here---------------end--------------->8---

I did a C-c C-e L to export to tex and following is what I got:

--8<---------------cut here---------------start------------->8---
% Created 2009-02-09 Mon 19:35
\documentclass[11pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{hyperref}


\title{flavio}
\author{Manish Sharma}
\date{09 February 2009}

\begin{document}

\maketitle

\section{test table}
\label{sec-1}


\begin{center}
\begin{tabular}{l|l|r|l}
 ITEM                   &  Quotation  &  Sold  &  Required  \\
\hline
 * Escopo Horas         &        230  &  1640  &            \\
 ** Ger�ncia            &         10  &        &            \\
 ** Defini��o           &         50  &        &            \\
 ** Configura��o        &        100  &        &            \\
 ** Comis. \& Start up  &         50  &        &            \\
 ** Documenta��o        &         20  &        &            \\
\end{tabular}
\end{center}



\end{document}
--8<---------------cut here---------------end--------------->8---

It does not exhibit any of the three issues you listed.  I have no clue why it
works for me so I checked my latex export related settings but there's nothing
interesting there.  Now I know none of this helps you but thought I would add
a data point.  May be someone else can try too?

-- 
Manish

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Latex export error in tables
  2009-02-09 14:22         ` Manish
@ 2009-02-10 21:39           ` Flávio de Souza
  0 siblings, 0 replies; 7+ messages in thread
From: Flávio de Souza @ 2009-02-10 21:39 UTC (permalink / raw)
  To: Manish; +Cc: emacs-orgmode

Manish <mailtomanish.sharma@gmail.com> writes:

> On Mon, Feb 9, 2009 at 6:10 PM, Flávio wrote:
> [snip (44 lines)]
>>
>> This is not a utf-8 encoding problem. When I generate a tex file with org, I
>> change manually from \usepackage[utf8]{inputenc} to
>> \usepackage[latin1]{inputenc}. All characters are recognized without any
>> problems. I tested it both in Linux and Windows XP. This works fine.
>>
>> Now I will try to narrow down my problem and see if we can find a solution. I
>> really believe the problem is in tex code generated by org. I will show you the
>> reason I am pointing the problem to org.
>>
>> If I have an org table in my file like this one:
>>
>> #+BEGIN: columnview :hlines 1 :vlines t :id "09.0001-ESCH" :skip-empty-rows t
>> |  | ITEM         | Quotation | Sold | Required |
>> |---+----------------------+-----------+------+----------|
>> |  | * Escopo Horas    |    230 | 1640 |     |
>> |  | ** Gerência     |    10 |   |     |
>> |  | ** Definição     |    50 |   |     |
>> |  | ** Configuração   |    100 |   |     |
>> |  | ** Comis. & Start up |    50 |   |     |
>> |  | ** Documentação   |    20 |   |     |
>> | / | <>          |    <> | <>  | <>    |
>> #+END:
>>
>> Then I select the option to generate latex "[L] export as LaTeX to temporary
>> buffer" ( I only want the tex code, I am not going to do any further
>> transformation on it ). The raw code for that specific part of the file is:
>>
>>
>> \begin{tabular}{l|l|r|l}
>> ITEM          & Quotation & Sold & Required \\
>> \hline
>> * Escopo Horas     &    230 & 1640 &      \\
>> \textbf{* Gerência   &     10 &    &      \\
>> *} Definição      &     50 &    &      \\
>> \textbf{* Configuração &    100 &    &      \\
>> *} Comis. & Start up  &     50 &    &      \\
>> ** Documentação     &     20 &    &      \\
>> \end{tabular}
>>
>> The problems I can point to in this code are:
>>
>> 1) The code "\textbf{* Gerência" is wrong, it should be "\textbf{*} Gerência"
>> 2) The code "*} Definição" is wrong, it should be "\textbf{*} Definição". The
>> same problem happens in other rows as you can see above. So all these open
>> command lines will be the source for the errors.
>> 3) One minor problem is that the character "&" at "Comis. & Start up" should be
>> genrated as "\&". However this is a minor problem and I just dont use this
>> character anymore.
>>
>> Now I will describe my solution (workaround) I found today for it. Firstly I
>> changed my org table configuration to:
>>
>> #+BEGIN: columnview :hlines 2 :vlines t :id "09.0001-ESCH" :skip-empty-rows t
>> |  | ITEM         | Quotation | Sold | Required |
>> |---+----------------------+-----------+------+----------|
>> |  | * Escopo Horas    |    230 | 1640 |     |
>> |---+----------------------+-----------+------+----------|
>> |  | ** Gerência     |    10 |   |     |
>> |---+----------------------+-----------+------+----------|
>> |  | ** Definição     |    50 |   |     |
>> |---+----------------------+-----------+------+----------|
>> |  | ** Configuração   |    100 |   |     |
>> |---+----------------------+-----------+------+----------|
>> |  | ** Comis.and Startup |    50 |   |     |
>> |---+----------------------+-----------+------+----------|
>> |  | ** Documentação   |    20 |   |     |
>> | / | <>          |    <> | <>  | <>    |
>> #+END:
>>
>> With the option :hlines 2 my table has horizontal lines in every row. When I
>> generate tex, it will look like this:
>>
>> \begin{tabular}{l|l|r|l}
>> ITEM         & Quotation & Sold & Required \\
>> \hline
>> * Escopo Horas    &    230 & 1640 &      \\
>> \hline
>> ** Gerência      &     10 &    &      \\
>> \hline
>> ** Definição     &     50 &    &      \\
>> \hline
>> ** Configuração    &    100 &    &      \\
>> \hline
>> ** Comis.and Start up &     50 &    &      \\
>> \hline
>> ** Documentação    &     20 &    &      \\
>> \end{tabular}
>>
>> The above code is a perfect tex table and I get no errors, because now the code
>> is generated with \hline. I needed to "deviate" org tex generation code from
>> using \textbuf.... :)
>
> That was quite detailed analysis so I tried to replicate it.
>
> This is the input file (I only added a first blank line and a dummy heading):
>
> --8<---------------cut here---------------start------------->8---
> #
> * test table
> #+BEGIN: columnview :hlines 1 :vlines t :id "09.0001-ESCH"  :skip-empty-rows t
> |   | ITEM                 | Quotation | Sold | Required |
> |---+----------------------+-----------+------+----------|
> |   | * Escopo Horas       |       230 | 1640 |          |
> |   | ** Ger�ncia          |        10 |      |          |
> |   | ** Defini��o         |        50 |      |          |
> |   | ** Configura��o      |       100 |      |          |
> |   | ** Comis. & Start up |        50 |      |          |
> |   | ** Documenta��o      |        20 |      |          |
> | / | <>                   |        <> | <>   | <>       |
> #+END:
> --8<---------------cut here---------------end--------------->8---
>
> I did a C-c C-e L to export to tex and following is what I got:
>
> --8<---------------cut here---------------start------------->8---
> % Created 2009-02-09 Mon 19:35
> \documentclass[11pt,a4paper]{article}
> \usepackage[utf8]{inputenc}
> \usepackage[T1]{fontenc}
> \usepackage{hyperref}
>
>
> \title{flavio}
> \author{Manish Sharma}
> \date{09 February 2009}
>
> \begin{document}
>
> \maketitle
>
> \section{test table}
> \label{sec-1}
>
>
> \begin{center}
> \begin{tabular}{l|l|r|l}
>  ITEM                   &  Quotation  &  Sold  &  Required  \\
> \hline
>  * Escopo Horas         &        230  &  1640  &            \\
>  ** Ger�ncia            &         10  &        &            \\
>  ** Defini��o           &         50  &        &            \\
>  ** Configura��o        &        100  &        &            \\
>  ** Comis. \& Start up  &         50  &        &            \\
>  ** Documenta��o        &         20  &        &            \\
> \end{tabular}
> \end{center}
>
>
>
> \end{document}
> --8<---------------cut here---------------end--------------->8---
>
> It does not exhibit any of the three issues you listed.  I have no clue why it
> works for me so I checked my latex export related settings but there's nothing
> interesting there.  Now I know none of this helps you but thought I would add
> a data point.  May be someone else can try too?
>
> -- 
> Manish
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>


Thanks for your effort. Maybe it really has to do with my enconding
system.

Since I found a workaround, I will stop searching for a solution now.

-- 
Flávio de Souza
flaviostz@gmail.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-02-10 21:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-07 18:25 Latex export error in tables Flávio de Souza
2009-02-07 20:05 ` Manish
     [not found]   ` <87hc36ylr4.fsf@gmail.com>
2009-02-08 12:57     ` Manish
2009-02-09 12:40       ` Flávio
2009-02-09 12:51         ` R: " Giovanni Ridolfi
2009-02-09 14:22         ` Manish
2009-02-10 21:39           ` Flávio de Souza

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).