Hello listers,
Is there a Latex command to enclose a phrase in a centralized box?
\begin{center}\fbox{A short phrase}\end{center}
The idea is to give a big emphasis to a short content.
The content is mine, so I think is not appropriate to use quotation.
\newcommand{\important}[1]{%\begin{center}\fbox{#1}\end{center}}
Actually, I am explaining something about the HTTP protocol. After
some explanation, as an example of HTTP request, I will say:
get http://www.mydearlatex.org http/1.1
How could I emphasize it with a Latex command?
\documentclass{article}\usepackage[svgnames]{xcolor}\usepackage{listings,parskip}\lstdefinelanguage{HTTP}{morekeywords={get,put,head},}[keywords,comments,strings]\lstloadlanguages{[LaTeX]TeX,HTTP}\lstset{basicstyle=\color{Black}\ttfamily,keywordstyle=\color{DarkGreen}\bfseries,identifierstyle=\color{DarkBlue}\upshape,commentstyle=\color{Gray}\upshape,stringstyle=\color{DarkRed}\upshape,emphstyle=\color{MediumBlue}\itshape,showstringspaces=false,columns=fullflexible,keepspaces=true,frame=single}\begin{document}The common form of a HTTP request looks like this\begin{lstlisting}[language={HTTP}]get http://www.mydearlatex.org http/1.1\end{lstlisting}\end{document}