From d37e4dc0f2f9f65a94eb99546c5263374abe261c Mon Sep 17 00:00:00 2001 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 5a2de8afb..ed985133a 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -2453,10 +2453,10 @@ See `org-latex-format-inlinetask-function' for details." (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}")))