New answers tagged

1

I always like to see a visual example of these Latex messages. The images above show probably the most frequent occurrence of Overfull \hbox. If you visuals too, her you go: -> NOTE: The explanations above are very good, so consult them in addition. The Latex view: The compiled pdf view: The problem is, that sometimes Latex is not able to fit certain ...


2

tcolorbox offers two kind of boxes tcbox and tcolorbox. First ones are for a short texts which won't break in lines while seconds can contain longer texts and use a whole line as default width. Therefore, I think that what OP wants is not possible with a unique command. Following code proposes an environment (tcolorbox) for the larger boxes. The inner ...


5

As the docs says, it typesets the material, i.e. turns it from a series of input tokens into a list of glyphs, etc., which can be printed. However, \hbox_set:Nn does not add anything to the current list (in contrast to \hbox:n), which means that typeset material is simply stored (under the name of the N-type variable).


7

(This has nothing to do with expl3 boxes, so this answer uses plain TeX box syntax.) With normal settings, \strutbox is just a cleverly stored integer, the \meaning of that macro is: \strutbox: \char"B So what happens if you're using \setbox\mybox\vbox{\strutbox} is the same as if you did \setbox\mybox\vbox{\char"B} (so this prints the character ...


1

Don't try to use itemize inside of a box. itemize operates in vertical mode, while \framebox operates in horizontal mode. Instead, just place the check at the lead of the text. \documentclass{article} \usepackage{amssymb} \usepackage{fancybox} \usepackage[breakable]{tcolorbox} \usepackage{graphicx} \begin{document} \framebox[1.1\width]{ $...


0

As explained in the fancybox documentation (page 5): Entire paragraphs or other vertical mode material such as displayed equations can be nested in a \parbox or minipage. MWE \documentclass{article} \usepackage{fancybox} \begin{document} \shadowbox{% \parbox{\textwidth}{% \bfseries Definitions: Upper bound, Least Upper Bound, ...


2

\documentclass[a4paper,12pt,headings=openany,numbers=noenddot,listof=totoc]{scrreprt} \usepackage[utf8]{inputenc} \usepackage[T2A,T1]{fontenc} \usepackage[USenglish]{babel} \usepackage{erewhon} \usepackage{graphicx} \usepackage{float} \usepackage[top=2.5cm,bottom=3.5cm,left=3cm,right=3cm,headheight=14.5pt,footnotesep=1cm,marginparsep=1cm]{geometry} \...


2

the markup used was very over complicated (you never need to nest a parbox in a p column and apart from the headings you do not need parbox line breaking here at all. this fits although I may have missed some vertical lines and alignments. \documentclass[a4paper,12pt,headings=openany,numbers=noenddot,listof=totoc]{scrreprt} \usepackage[utf8]{inputenc} \...


Top 50 recent answers are included