New answers tagged

3

A \par inside lrbox does nothing at all. Why is the height “wrong”? Because you're not measuring it. You're just measuring the height of some random character. If you look in the log file, you'll see the line \jhbin=\box46. What happens if you try \hbox{\jhbin}? You get a period. Why? Because ASCII 46 is the period. If you define other save boxes, you'd ...


1

Why do you put the box in a \hbox? The \hbox obviously "swallows" the height. The height of a box can be retrieved with \ht. \settoheight uses this internally, and there is no need to use it if you already have a box. So the upshot is that you only need \heightofhw=\ht\jhbin as in \documentclass{article} \usepackage[utf8]{inputenc} \begin{document} \...


0

\documentclass{article} \usepackage[skins]{tcolorbox} \usetikzlibrary{shadows,shadows.blur} \begin{document} \begin{tcolorbox}[enhanced,width=5in,%center upper, drop fuzzy shadow={shadow xshift=\boxShadowOfset, shadow yshift=-1.2\boxShadowOfset, shadow blur steps=6,fill=cyan}, boxrule=4pt,sharp corners,colframe=cyan,colback=white!10] ...


1

Since this is a very long paragrahp, it is not that surprising that the contents overflows the page. If you put your quotation environment inside a \fbox which will show a frame around its content, you see that it add quite large margin. \documentclass{beamer} \usepackage{lipsum} \begin{document} \begin{frame} \frametitle{Example} \begin{itemize} \...


6

Like this? \documentclass{article} \usepackage{tcolorbox} \newtcbox{\CartoucheBox}{colback=white,boxrule=0.6pt} \begin{document} \CartoucheBox{A cartouche box.} \end{document} With a couple of coordinate computations (using the calc library) you can get this shape: \documentclass{article} \usepackage[skins]{tcolorbox} \usetikzlibrary{calc} \pgfkeys{...


-1

Rabarberski's 2012 question (Belgium): I want to add a box with some copyright statement at the bottom of my paper. What is the easiest/best way to do this? An easy book example places the copyright notice on the back side of the title page. \documentclass{book} \begin{document} \begin{titlepage}\begin{center} \huge\bf Applied Weeding \\[2pc] \Large\bf A ...


1

Based on this answer here is how you can hack the framenumber. \documentclass{beamer} \setbeamertemplate{footline}[page number]{} \setbeamertemplate{footline}{% \hfill% \usebeamercolor[fg]{page number in head/foot}% \usebeamerfont{page number in head/foot}% \fcolorbox{red}{red}{\insertframenumber% \,/\,\inserttotalframenumber}% \kern1em\...


Top 50 recent answers are included