Browse Source

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.
Ihor Radchenko 3 years ago
parent
commit
d37e4dc0f2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lisp/ox-latex.el

+ 2 - 2
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}")))