1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

LaTeX で破線の囲みをする。

Posted at

ascmac みたいなのを破線でやる方法

\documentclass{jlreq}
\usepackage{tcolorbox}

\tcbuselibrary{skins, breakable} % 破線などのライブラリ

\newenvironment{dashedScreen}{%
    \begin{tcolorbox}[
        frame hidden,
        interior hidden,
        enhanced, % 高度な設定を可能にする
        arc=1em, % 角の半径
        borderline={1pt}{0pt}{dashed}
    ]
}{%
    \end{tcolorbox}
}

\begin{document}

\begin{dashedScreen}
    $n\geq3$ なる整数 n に対して,\par $x^n+y^n=z^n$ を満たす正の整数の組 $x,y,z$ は存在しない。
\end{dashedScreen}

\end{document}

image.png

\documentclass{jlreq}
\usepackage{tcolorbox}

\tcbuselibrary{skins, breakable} % 破線などのライブラリ

\newenvironment{dashedItembox}[1]{%
    \begin{tcolorbox}[
        coltitle=black,
        title=#1,
        frame hidden,
        interior hidden,
        enhanced, % 高度な設定を可能にする
        arc=1em, % 角の半径
        borderline={1pt}{0pt}{dashed}, % 破線
        attach boxed title to top left={ % タイトルボックスの移動
            xshift=1em, 
            yshift*=-\tcboxedtitleheight/2
        },
        colbacktitle=white,
        boxed title style={frame hidden}, 
    ]
}{%
    \end{tcolorbox}
}

\begin{document}

\begin{dashedItembox}{フェルマーの最終定理}
    $n\geq3$ なる整数 n に対して,\par $x^n+y^n=z^n$ を満たす正の整数の組 $x,y,z$ は存在しない。
\end{dashedItembox}

\end{document}

image.png

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?