Fraga, Eric writes on Wed 30 Oct 2019 14:55: > > By default, the width of LaTeX exported inlinetasks is less than > > that of regular text. > > > > I would like to be able to change this default, ideally both on a > > per-file basis and a per-inlinetask basis (but either way would > > already be very good!).
> I have the following which, although it does not do what you want, it > may give you some pointers: > > #+begin_src emacs-lisp > (defun org-latex-format-inlinetask (todo type priority name tags contents > info) > "Format an inline task element for LaTeX export." > (let ((theinlinetask (concat todo " " name "\n\n\\noindent " contents))) > (if (and todo (not (equal todo "NOTE"))) > (format "\\footnote{%s}\\marginpar{\\fbox{\\tiny\\thefootnote. > %s}}" theinlinetask todo) > (format "\\hl{%s}" contents)))) > (setq org-latex-format-inlinetask-function 'org-latex-format-inlinetask) > #+end_src > > You can trim this down and replace the \\hl{%s} with, for instance, an > mdframed environment which allows you to control the width easily. I have succeeded, following exactly what you suggested. Thank you very much. (It also fixes the problem that standard inlinetasks don't seem to span over multiple pages...) -- EOST (École et Observatoire des Sciences de la Terre) IPG (Institut de Physique du Globe) | alain.coch...@unistra.fr 5 rue René Descartes [bureau 106] | Phone: +33 (0)3 68 85 50 44 F-67084 Strasbourg Cedex, France | Fax: +33 (0)3 68 85 01 25