On 23.09.2016 13:52, Guillaume Munch wrote:
Le 22/09/2016 à 13:34, racoon a écrit :
On 22.09.2016 14:29, Jürgen Spitzmüller wrote:
You should also list it here:
http://wiki.lyx.org/Layouts/Modules#toc2
It is not a module. So should I list the "hack" just as a comment there?
Note that my concern regarding the MultiPar change was only for a module
distributed with LyX.
I think there is a way to avoid the problem. Unfortunately only partially.
The pdfcomment package actually provides a way to insert line breaks in
comments by using \textCR. So one can just replace blank lines (\par) by
this command. Like this:
Preamble
\usepackage{letltxmacro}
\LetLtxMacro{\oldpdfcomment}{\pdfcomment}
\renewcommand{\pdfcomment}[2][]{{%
\let\par\textCR
\oldpdfcomment[#1]{#2}%
}}
\LetLtxMacro{\oldpdfmarkupcomment}{\pdfmarkupcomment}
\renewcommand{\pdfmarkupcomment}[3][]{{%
\let\par\textCR
\oldpdfmarkupcomment[#1]{#2}{#3}%
}}
EndPreamble
Unfortunately, this solves the problem only partially since line breaks
are allowed only in comments and not in the markup (first mandatory
argument of \pdfmarkupcomment). But the markup is actually
lyxgrayedout's main argument. So this conflicts with its MultiPar.
Let me know what you think. And maybe you have suggestions for improvement.
If that works then I would suggest to do the same in the PDF Comments
module since it does not support line breaks within comments so far.
Daniel