From f3424bdf60072e61cd6f930e91ad98e9d9735fa8 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Thu, 28 May 2020 18:46:25 +0200 Subject: [PATCH] Fix hbox bug --- kanjiLib.tex | 7 +++---- todo.notes | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/kanjiLib.tex b/kanjiLib.tex index 6f393f0..fcad874 100644 --- a/kanjiLib.tex +++ b/kanjiLib.tex @@ -85,16 +85,15 @@ % Meaning % % ---------------------------------------------------------------------------- % -\newtcolorbox{meaningBox}{ %TODO: Make the box autoshrink horizontally while still making newlines when it's full. +\newtcolorbox{meaningBox}{ + tcbox width=auto limited, + capture=hbox, enhanced, colback=black!20, left=15pt, right=15pt, top=15pt, bottom=15pt, - width=\textwidth, - hbox, - capture=minipage } \newcommand{\kanjiMeaning}[1]{ diff --git a/todo.notes b/todo.notes index a92deee..230401d 100644 --- a/todo.notes +++ b/todo.notes @@ -7,6 +7,6 @@ TODO: [ ] Rename functions and files [ ] Document functions and files [ ] *Add .- logic in jishoScrape/src/textFiltration.js* - [ ] *Fix hbox* + [√] *Fix hbox* [ ] Fix makefile [ ] Clean code \ No newline at end of file