Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

If I use \begin{textbf} and \end{textbf} (for example) inside a minipage, it seems to apply only to the first character. Here's a simple example:

\documentclass{article}

\begin{document}

\begin{minipage}{10cm}
\begin{textbf}
This is a test.
\end{textbf}
\end{minipage}

\end{document}

Only the "T" of "This" appears bold. Am I doing something very stupid? (Probably!)

share|improve this question
add comment

1 Answer

\begin{textbf}
This
\end{textbf}

is

\begingroup\textbf This \endgroup

which is

\begingroup\textbf{T}his \endgroup

So the fact that it only affects the T is unrelated to the minipage.

You want the declarative version \bfseries not the \textbf command which takes an argument.

\begin{minipage}{3cm}\bfseries
 This
\end{minipage}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.