Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
colored paragraph
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
pcastellvi@gmail.com  
View profile  
 More options May 26 2009, 1:58 am
Newsgroups: comp.text.tex
From: "pcastel...@gmail.com" <pcastel...@gmail.com>
Date: Mon, 25 May 2009 22:58:55 -0700 (PDT)
Local: Tues, May 26 2009 1:58 am
Subject: colored paragraph
Hi comp.text.tex

I would like to put color to a paragraph containing equations and
verbatim. Something like this

\colorbox{blue}{
\begin{minipage}{\textwidth}

\begin{verbatim}
(%i15) limit(exp(1/x), x, 0, plus);
\end{verbatim}
$$\infty \leqno{\tt (\%o15) }$$

\end{minipage}

}

but it doesn't work. Can anybody help me?

Tanks in advance


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ulrike Fischer  
View profile  
 More options May 26 2009, 2:32 am
Newsgroups: comp.text.tex
From: Ulrike Fischer <ne...@nililand.de>
Date: Tue, 26 May 2009 08:32:49 +0200
Local: Tues, May 26 2009 2:32 am
Subject: Re: colored paragraph
Am Mon, 25 May 2009 22:58:55 -0700 (PDT) schrieb
pcastel...@gmail.com:

Use an lrbox:

http://www.tex.ac.uk/cgi-bin/texfaq2html?label=verbwithin

--
Ulrike Fischer


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rolf Niepraschk  
View profile  
 More options May 26 2009, 6:38 am
Newsgroups: comp.text.tex
From: Rolf Niepraschk <Rolf.Niepras...@gmx.de>
Date: Tue, 26 May 2009 12:38:29 +0200
Local: Tues, May 26 2009 6:38 am
Subject: Re: colored paragraph
pcastel...@gmail.com schrieb:
> Hi comp.text.tex

> I would like to put color to a paragraph containing equations and
> verbatim. Something like this

...
\documentclass{article}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{xcolor}
\usepackage{listings}
\lstset{%
  basicstyle=\footnotesize\ttfamily,
  backgroundcolor=\color{black!10}

}

\begin{document}
  \begin{lstlisting}[language={}]
  (%i15) limit(exp(1/x), x, 0, plus);
  \end{lstlisting}
\end{document}
%---------------------------

...Rolf


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »