Re: [Orgmode] Differences html/pdf
On Oct 28, 2009, at 11:23 PM, Nick Dokos wrote: Bastien wrote: Carsten Dominik writes: In the latex version they're not exported for some reasons... That is correct, we have not implemented keeping all line breaks in LaTeX. I've searched around a bit, and to my big surprise, I cannot find a LaTeX package preserving line breaks. I understand such a function doesn't come along nicely with the general LaTeX philosophy, but it should be possible after all... Did anyone already tried to find such a package ? Not a package, but there is \obeylines (plain TeX) that will preserve line breaks - e.g. Knuth[1] suggests that it be used for typesetting poetry: {\obeylines\smallskip Roses are red, \quad Violets are blue; Rhymes can be typeset \quad with boxes and glue. \smallskip} It apparently works by pretending that the newline is a \par token. OK, this is pretty good, and I have added it to be inserted as a consequence of setting org-export-preserve-breaks. But I believe in complex documents there might be problems, so I would be interested in test results. Only then we will decide if this should stay in. - Carsten ___ 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
Re: [Orgmode] Differences html/pdf
Bastien wrote: > Carsten Dominik writes: > > >> In the latex version they're not exported for some reasons... > > > > That is correct, we have not implemented keeping all line breaks in > > LaTeX. > > I've searched around a bit, and to my big surprise, I cannot find a > LaTeX package preserving line breaks. I understand such a function > doesn't come along nicely with the general LaTeX philosophy, but it > should be possible after all... > > Did anyone already tried to find such a package ? > Not a package, but there is \obeylines (plain TeX) that will preserve line breaks - e.g. Knuth[1] suggests that it be used for typesetting poetry: {\obeylines\smallskip Roses are red, \quad Violets are blue; Rhymes can be typeset \quad with boxes and glue. \smallskip} It apparently works by pretending that the newline is a \par token. Nick [1] Knuth, "The TeXbook", p. 94 ___ 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
Re: [Orgmode] Differences html/pdf
On Oct 28, 2009, at 6:26 AM, Bastien wrote: Carsten Dominik writes: In the latex version they're not exported for some reasons... That is correct, we have not implemented keeping all line breaks in LaTeX. I've searched around a bit, and to my big surprise, I cannot find a LaTeX package preserving line breaks. I understand such a function doesn't come along nicely with the general LaTeX philosophy, but it should be possible after all... Did anyone already tried to find such a package ? -- Bastien Aloha Bastien, Plain LaTeX has \linebreak and \nolinebreak, that might be appropriate. Tom ___ 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
Re: [Orgmode] Differences html/pdf
Carsten Dominik writes: >> In the latex version they're not exported for some reasons... > > That is correct, we have not implemented keeping all line breaks in > LaTeX. I've searched around a bit, and to my big surprise, I cannot find a LaTeX package preserving line breaks. I understand such a function doesn't come along nicely with the general LaTeX philosophy, but it should be possible after all... Did anyone already tried to find such a package ? -- Bastien ___ 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
Re: [Orgmode] Differences html/pdf
On Oct 28, 2009, at 3:16 PM, andrea Crotti wrote: I normally prefer to export to pdf but I see that there are some differences. I added #+OPTIONS: toc:nil \n:nil todo:nil and toc is not exported in both, todo are anyway always exported This is about the TODO keywords, and they are stripped in both and newline are kept only in html. In the latex version they're not exported for some reasons... That is correct, we have not implemented keeping all line breaks in LaTeX. Too hard, unfortunately. - Carsten ___ 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