From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alain.Cochard@unistra.fr Subject: Re: How to change the width of a latex exported inlinetask? Date: Fri, 1 Nov 2019 23:48:20 +0100 Message-ID: <23996.46644.570364.190663@frac.u-strasbg.fr> References: <23993.40052.641597.871776@frac.u-strasbg.fr> <87ftjagu5i.fsf@ucl.ac.uk> Reply-To: alain.cochard@unistra.fr Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:50383) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQfic-0008N7-1l for emacs-orgmode@gnu.org; Fri, 01 Nov 2019 18:48:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQfiZ-00086S-H7 for emacs-orgmode@gnu.org; Fri, 01 Nov 2019 18:48:32 -0400 Received: from smr1.u-strasbg.fr ([130.79.222.217]:49738) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iQfiZ-0007rt-9d for emacs-orgmode@gnu.org; Fri, 01 Nov 2019 18:48:31 -0400 In-Reply-To: <87ftjagu5i.fsf@ucl.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: "Fraga, Eric" Cc: "emacs-orgmode@gnu.org" , "Alain.Cochard@unistra.fr" 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, i= t > may give you some pointers: >=20 > #+begin=5Fsrc emacs-lisp > (defun org-latex-format-inlinetask (todo type priority name tags c= ontents info) > "Format an inline task element for LaTeX export." > (let ((theinlinetask (concat todo " " name "\n\n\\noindent " con= tents))) > (if (and todo (not (equal todo "NOTE"))) > (format "\\footnote{%s}\\marginpar{\\fbox{\\tiny\\thefootn= ote. %s}}" theinlinetask todo) > (format "\\hl{%s}" contents)))) > (setq org-latex-format-inlinetask-function 'org-latex-format-inlin= etask) > #+end=5Fsrc >=20 > 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...) --=20 EOST (=C9cole et Observatoire des Sciences de la Terre)=20 IPG (Institut de Physique du Globe) | alain.cochard@unistra.fr 5 rue Ren=E9 Descartes [bureau 106] | Phone: +33 (0)3 68 85 50 44=20 F-67084 Strasbourg Cedex, France | Fax: +33 (0)3 68 85 01 25 =20=