From 40f6e9a4e66ca733f9be27097bfa6cc814868032 Mon Sep 17 00:00:00 2001 Message-Id: <40f6e9a4e66ca733f9be27097bfa6cc814868032.1640922780.git.yantar92@gmail.com> From: Ihor Radchenko Date: Fri, 31 Dec 2021 11:51:01 +0800 Subject: [PATCH] ox-latex: Scale inlinetasks according to column width * lisp/ox-latex.el (org-latex-format-inlinetask-default-function): Set inlinetask box width relative to \linewidth in current column. Using \textwidth scales the box wider than column in multi-column documents. --- lisp/ox-latex.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index 32d29cc44..8f50c06f3 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -2191,10 +2191,10 @@ (defun org-latex-format-inlinetask-default-function (mapcar #'org-latex--protect-text tags))))))) (concat "\\begin{center}\n" "\\fbox{\n" - "\\begin{minipage}[c]{.6\\textwidth}\n" + "\\begin{minipage}[c]{.6\\linewidth}\n" full-title "\n\n" (and (org-string-nw-p contents) - (concat "\\rule[.8em]{\\textwidth}{2pt}\n\n" contents)) + (concat "\\rule[.8em]{\\linewidth}{2pt}\n\n" contents)) "\\end{minipage}\n" "}\n" "\\end{center}"))) -- 2.32.0