Home > Archive > Tex > October 2006 > Line in paragraph
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Aleks Kleyn 2006-10-30, 7:43 pm |
| I use amsart class to prepare pages. usually when line is too crouded I get
message like
Overfull \hbox (9.9368pt too wide) in paragraph
Then applying hyphenation I can resolve this problem in the most cases.
However when I use math I cannot apply hyphenation. Not each time it is mind
to put math in separate line because it makes text unreadable. So I need way
to force print math expression in the next line if it has not enough space
in the current line.
Part of the answer may be here. Recently I started to use minipage. And I
see that design of paragraph in minipage is different then in the main text.
And in minipage I see another message
Underfull \hbox (badness 1571) in paragraph
How I can see what kind of setting were changed, and can I apply them to
math expression?
Aleks Kleyn
| |
| Aleks Kleyn 2006-10-30, 10:02 pm |
| Playing with this problem I tryed different code including \raggedright and
package ragged2e. However nothing meet what I expected. The best choice in
the next code
\documentclass{amsart}
\begin{document}
We got ambiguity of notation.
Writing elements of basis
$\star D$-\penalty0\hskip0pt\relax vector space
$Hom_{D{}^*{}_*}(\mathcal{A},\mathcal{B}
)$
as ${}_*$-\penalty0\hskip0pt\relax rows or ${}^*$-\penalty0\hskip0pt\relax
rows, we present
$\star D$-\penalty0\hskip0pt\relax vector space
$Hom_{D{}^*{}_*}(\mathcal{A},\mathcal{B}
)$
as ${}_*{}^* D$-\penalty0\hskip0pt\relax\ or ${}^*{}_*
D$-\penalty0\hskip0pt\relax vector space.
\begin{minipage}{\textwidth}
\setlength{\parindent}{20pt}
\addtolength{\hoffset}{-20pt}
We got ambiguity of notation.
Writing elements of basis
$\star D$-\penalty0\hskip0pt\relax vector space
$Hom_{D{}^*{}_*}(\mathcal{A},\mathcal{B}
)$
as ${}_*$-\penalty0\hskip0pt\relax rows or ${}^*$-\penalty0\hskip0pt\relax
rows, we present
$\star D$-\penalty0\hskip0pt\relax vector space
$Hom_{D{}^*{}_*}(\mathcal{A},\mathcal{B}
)$
as ${}_*{}^* D$-\penalty0\hskip0pt\relax\ or ${}^*{}_*
D$-\penalty0\hskip0pt\relax vector space.
\end{minipage}
\end{document}
You can see the difference between two paragraphs.
However this code has two problems. Text is shifted right and it is not
clear how to put it on proper place. Also minipage cannot be separated on
two pages and this also creates problems.
What kind of setting changed in the minipage? Is it possible to apply these
settings without minipage and how local they may be: can I apply them to
part of paragraph, to paragraph or to whole paper?
Aleks Kleyn
| |
|
|
Aleks Kleyn wrote:
> Playing with this problem I tryed different code including \raggedright and
> package ragged2e. However nothing meet what I expected. The best choice in
> the next code
>
> \documentclass{amsart}
> \begin{document}
>
> We got ambiguity of notation.
> Writing elements of basis
> $\star D$-\penalty0\hskip0pt\relax vector space
> $Hom_{D{}^*{}_*}(\mathcal{A},\mathcal{B}
)$
> as ${}_*$-\penalty0\hskip0pt\relax rows or ${}^*$-\penalty0\hskip0pt\relax
> rows, we present
> $\star D$-\penalty0\hskip0pt\relax vector space
> $Hom_{D{}^*{}_*}(\mathcal{A},\mathcal{B}
)$
> as ${}_*{}^* D$-\penalty0\hskip0pt\relax\ or ${}^*{}_*
> D$-\penalty0\hskip0pt\relax vector space.
>
> \begin{minipage}{\textwidth}
> \setlength{\parindent}{20pt}
> \addtolength{\hoffset}{-20pt}
\hoffset takes effect in the output routine, by which time
the minipage environment is ended and the previous value
of \hoffset restored. If it were effective, it would shift every
page (whole pages) left, including the previous paragraph
on this page.
> We got ambiguity of notation.
> Writing elements of basis
> $\star D$-\penalty0\hskip0pt\relax vector space
> $Hom_{D{}^*{}_*}(\mathcal{A},\mathcal{B}
)$
> as ${}_*$-\penalty0\hskip0pt\relax rows or ${}^*$-\penalty0\hskip0pt\relax
> rows, we present
> $\star D$-\penalty0\hskip0pt\relax vector space
> $Hom_{D{}^*{}_*}(\mathcal{A},\mathcal{B}
)$
> as ${}_*{}^* D$-\penalty0\hskip0pt\relax\ or ${}^*{}_*
> D$-\penalty0\hskip0pt\relax vector space.
> \end{minipage}
> \end{document}
>
> You can see the difference between two paragraphs.
>
> However this code has two problems. Text is shifted right and it is not
> clear how to put it on proper place. Also minipage cannot be separated on
> two pages and this also creates problems.
A minipage (like a \parbaox, a tabular, and a \mbox) is treated
as a single unit. Effectively as a large character. This large
character starts a paragraph. The shift you see is the whole
minipage shifted \parindent. So put \noindent before
\begin{minipage}.
>
> What kind of setting changed in the minipage? Is it possible to apply these
> settings without minipage and how local they may be: can I apply them to
> part of paragraph, to paragraph or to whole paper?
A minipage is basically a sloppypar with \parindent set to 0pt.
To get the first paragraph to look like the one in the minipage,
surround it in \begin{sloppypar}...\end{sloppypar}.
Dan
|
|
|
|
|