emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Bug in the :VISIBILITY: handling of "folded" PROPERTY?


From: Sébastien Vauban
Subject: [Orgmode] Bug in the :VISIBILITY: handling of "folded" PROPERTY?
Date: Thu, 16 Dec 2010 14:14:35 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (windows-nt)

#+TITLE:     Example of file for which folded PROPERTY is not respected
#+DATE:      2010-12-16
#+LANGUAGE:  en_US

* To
#+begin_src csv :tangle addresses.csv
FirstName,LastName,Address,PostCode,Town,Country
Albert,Bellertelle,Rue de la Gare 19,5000,Namur,
#+end_src

* Subject, opening and closing
#+tblname: i-parts
| Subject    | This is the subject  |
| Opening    | Best                 |
| Closing    | Regards              |
| Enclosures | isodoc documentation |

* Body
#+srcname: body
#+begin_src org :results latex
Thanks for the support.
Find here the doc (attached).
#+end_src

* Composed letter                                                  :noexport:
  :PROPERTIES:
  :VISIBILITY: folded
  :END:
#+begin_src latex :noweb yes :tangle yes :var i-subject=i-parts[0,1] :var 
i-opening=i-parts[1,1] :var i-closing=i-parts[2,1] :var 
i-enclosures=i-parts[3,1]
\documentclass[11pt]{isodoc}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{datatool}
\DTLloaddb{addresses}{addresses.csv}

\usepackage[scorpios]{isodoc-style}

\setupdocument{
    subject = {i-subject},
    opening = {i-opening},
    closing = {i-closing},
    enclosures = {i-enclosures}
}

\begin{document}
\DTLforeach{addresses}{%
  \firstname=FirstName,%
  \lastname=LastName,%
  \addressi=Address,%
  \postcode=PostCode,%
  \town=Town,%
  \country=Country%
}{%
\letter[language=french,to={\firstname~\lastname\\\addressi\\\postcode~\town\\\country},openingcomma={,}]{%
<<body()>>
}}
\end{document}
#+end_src

Best regards,
  Seb

-- 
Sébastien Vauban




reply via email to

[Prev in Thread] Current Thread [Next in Thread]