Skip to content

Instantly share code, notes, and snippets.

@kauplan
Created December 12, 2020 12:45
Show Gist options
  • Save kauplan/2e2c63c09ac9503ff8ce08d247217278 to your computer and use it in GitHub Desktop.
Save kauplan/2e2c63c09ac9503ff8ce08d247217278 to your computer and use it in GitHub Desktop.
会話のサンプル
\documentclass[dvipdfmx,uplatex,9pt,a5paper,papersize]{jsarticle}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[deluxe,uplatex]{otf}
\newenvironment{conversation}{%
\list{}{%
\leftmargin=6zw
\labelsep=1zw
\labelwidth=\leftmargin
\advance \labelwidth by -\labelsep
\let \makelabel=\talkitem
}%
}{%
\endlist%
}
\newcommand*\talkitem[1]{%
\gtfamily\sffamily\bfseries%
{\itshape #1}\,:%
\hfil%
}
\newcommand{\dummy}{%
Bla bla bla Bla bla bla
Bla bla bla Bla bla bla
Bla bla bla Bla bla bla
Bla bla bla Bla bla bla
Bla bla bla Bla bla bla
}
\begin{document}
\dummy
\begin{conversation}
\item[Alice] \dummy
\item[Bob] \dummy
\item[Charlie] \dummy
\end{conversation}
\dummy
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment