長い数式の左余白を変更する

長い数式の左余白を変更する

overfull \hboxの長い整列方程式があり20pt、 の左余白を減らして と のみにしたいとします10ptoverfull \hbox各行10ptに負のスペースを追加せずにこれを実現するにはどうすればよいでしょうか?

\documentclass[11pt]{article}
\pdfoutput=1
\pagestyle{empty}

\usepackage{amsmath}

\begin{document}
My ``overfull {\textbackslash}hbox'' long equation example
\begin{align}
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\notag\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\notag\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\notag\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\notag\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\notag\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\notag\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\notag\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\notag\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\notag\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\notag\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\notag\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\notag\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x
\end{align}
\end{document}

ここに画像の説明を入力してください

adjustwidthパッケージの周囲光で試してみましたchangepageが、時々動作しません (その理由はわかりません)。

注1.非常に長い期間で機能するソリューションが必要です複数ページ「整列した」方程式。分割できません。

注2.数式のサイズを変更する必要はありません。サイズを変更できることはわかっていますが、左余白を変更するだけで済む場合もあります。

答え1

+方程式におよび/または記号が多数含まれていると仮定すると-、長さパラメータ の値を減らすことを検討してください\medmuskip。たとえば、 命令を発行すると\medmuskip=2mu、環境alignが適切に適合します。

完全な MWE:

\documentclass[11pt]{article}
\usepackage{amsmath,showframe}
\begin{document}
\begingroup % localize scope of next instruction
\medmuskip=2mu % <-- new
\begin{align}
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\notag\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\notag\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\notag\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\notag\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\notag\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\notag\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\notag\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\notag\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\notag\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\notag\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\notag\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\notag\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x
\end{align}
\endgroup
\end{document}

答え2

パッケージchangepageは宣伝どおりに動作します :)。ただし、1 つのページで開始して次のページで停止することはできません。

次の MWE を試してください (そのままchangepage使用すれば動作します...) 外側の余白を変更します。

\documentclass[11pt,twoside]{article}
\usepackage{amsmath}
\usepackage[strict]{changepage}

%-------------------------------------- only for show page layout
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%

\begin{document}
My ``overfull \verb+\hbox+ long equation example
    \begin{adjustwidth*}{}{-\marginparwidth}
\begin{equation}
    \begin{aligned}
& x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x   \\
& x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x   \\
& x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x   \\
& x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x   \\
& x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x   \\
& x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x   \\
& x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x   \\
& x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x   \\
& x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x   \\
& x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x   \\
& x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x   \\
& x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x   \\
& x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x
    \end{aligned}
\end{equation}
    \end{adjustwidth*}
\end{document}

ここに画像の説明を入力してください

編集: 左、つまり内側の余白を変更したい場合、たとえば 22 mm に拡張したい場合は、次のようにします。

\documentclass[11pt,twoside]{article}
\usepackage{amsmath}
\usepackage[strict]{changepage}

%-------------------------------------- only for show page layout
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%

\begin{document}
My ``overfull \verb+\hbox+ long equation example
    \begin{adjustwidth*}{-22mm}{}
\begin{equation}
    \begin{aligned}
& x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x   \\
& x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x   \\
& x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x   \\
& x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x   \\
& x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x   \\
& x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x   \\
& x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x   \\
& x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x   \\
& x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x   \\
& x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x   \\
& x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x   \\
& x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x   \\
& x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x
    \end{aligned}
\end{equation}
    \end{adjustwidth*}
\end{document}

ここに画像の説明を入力してください

ボットの例がドキュメント内で機能しない場合は、MWE に挿入されていない不一致がドキュメント内に存在します。

答え3

計算しなくても十分簡単です。

\documentclass[11pt]{article}

\usepackage{amsmath}

\begin{document}
My \verb|Overfull \hbox| long equation example
and some text some text some text some text
some text some text some text some text
\begin{equation}
\makebox[\textwidth]{%
$\begin{aligned}
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x
\end{aligned}$}
\end{equation}
\end{document}

ここに画像の説明を入力してください

を使用しているようです\pdfoutput=1。 を使用しないでください。 でコンパイルしてくださいpdflatex

表示を分割したい場合は、 を使ってそれも可能ですchangepage(ただし計算が必要です)。もちろん、方程式の番号もシフトされます。

\documentclass[11pt]{article}

\usepackage{amsmath,changepage}
\usepackage{showframe} % just for the example

\allowdisplaybreaks

\begin{document}
My \verb|Overfull \hbox| long equation example
and some text some text some text some text
some text some text some text some text
\begin{adjustwidth}{-10pt}{-10pt}
\begin{align}
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+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x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x\\
&x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x+x
\end{align}
\end{adjustwidth}
My \verb|Overfull \hbox| long equation example
and some text some text some text some text
some text some text some text some text

\end{document}

関連情報