Following the answer to another question of mine, which had custom minipage settings for quotes,
\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[
a6paper,
showframe,
]{geometry}
\newenvironment{myquote}[1]{%
\par
\begin{minipage}{\dimexpr\textwidth-2\parindent\relax}%
\def\myquoteauthorname{#1}%
}{%
\par\vspace{1ex}
\noindent
\hspace*{0.25\textwidth}%
\rule{0.5\textwidth}{.4pt}
\par\vspace{1ex}
\centering
\textsc{\myquoteauthorname}\par
\end{minipage}
\par}
\begin{document}
\begin{myquote}{Robert Kleinhenz}
When asked what it was like to set about proving something, the mathematician
likened proving a theorem to seeing the peak of a mountain and trying to climb
to the top. One establishes a base camp and begins scaling the mountain's sheer
face, encountering obstacles at every turn, often retracing one's steps and
struggling every foot of the journey. Finally when the top is reached, one
stands examining the peak, taking in the view of the surrounding countryside
and then noting the automobile road up the other side!
\end{myquote}
\end{document}
and which would output:
For two-column paper, I replaced \textwidth with \columnwidth to have:
\documentclass[12pt, twocolumn]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[
a4paper,
showframe,
]{geometry}
\newenvironment{myquotecolumn}[1]{%
\par
\begin{minipage}{\dimexpr\columnwidth -2\parindent\relax}%
\def\myquoteauthorname{#1}%
}{%
\par\vspace{1ex}
\noindent
\hspace*{0.25\columnwidth }%
\rule{0.5\columnwidth }{.4pt}
\par\vspace{1ex}
\centering
\textsc{\myquoteauthorname}\par
\end{minipage}
\par}
\begin{document}
\begin{myquotecolumn}{Robert Kleinhenz}
When asked what it was like to set about proving something, the mathematician
likened proving a theorem to seeing the peak of a mountain and trying to climb
to the top. One establishes a base camp and begins scaling the mountain's sheer
face, encountering obstacles at every turn, often retracing one's steps and
struggling every foot of the journey. Finally when the top is reached, one
stands examining the peak, taking in the view of the surrounding countryside
and then noting the automobile road up the other side!
\end{myquotecolumn}
\end{document}
which would output:
Is it somehow possible to combine them? That I have one environment and it adjusts itself whether it is single column or two columns?


\columnwidthcause any problem in a one-column document? – frougon Jul 17 '19 at 09:32\linewidth, but there is a difference between\linewidthand\columnwidthinside list environments (see Difference between \textwidth, \linewidth and \hsize). I don't know why so many people use\textwidthall the time... This is a matter of intended use, but without more info, I believe I'd use\linewidthhere too (inside a list environment, theminipagewould be centered within an item's width). – frougon Jul 17 '19 at 09:45