emacs-orgmode
[Top][All Lists]
Advanced

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

[O] linebreak after tag of headline in ox-latex.el


From: Rasmus Rempling
Subject: [O] linebreak after tag of headline in ox-latex.el
Date: Fri, 18 Oct 2013 14:34:34 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.0

Hello,

I export frequently minutes with todos with latex to pdf. I always include planning information, e.g.:

***** NEXT Check this :Rasmus:
DEADLINE: <2013-10-15 tis> SCHEDULED: <2013-10-15 tis>
+ some comments

After upgrading to (Org-mode version 8.2.1, GNU Emacs 23.4.1 ) the deadline and schedule is not linebreaked after the tag. This gives a unwanted output with all task information on the same line.

Without knowing if it is the most appropriate solution I propose adding \n in the last row of:

(defun org-latex-format-headline-default-function
(todo todo-type priority text tags)
"Default format function for a headline.
See `org-latex-format-headline-function' for details."
(concat
(and todo (format "{\\bfseries\\sffamily %s} " todo))
(and priority (format "\\framebox{\\#%c} " priority))
text
(and tags
(format "\\hfill{}\\textsc{%s}\n" (mapconcat 'identity tags ":")))))

, in order to get a better output of the task todo. I tried the above and compiled and got the output as I wanted. However, I don’t know if there are any inconvenience by doing so.

/rasmus rempling



reply via email to

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