From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Iverson Subject: Re: Combination of =code= and Description Date: Thu, 03 Feb 2011 14:09:25 -0600 Message-ID: <4D4B0B75.4030501@ccbr.umn.edu> References: <4D01FF4C.9080009@gmail.com> <871v3prmz8.fsf@altern.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=47169 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pl5Uj-0000wL-0u for emacs-orgmode@gnu.org; Thu, 03 Feb 2011 15:09:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pl5Uf-0001DT-D2 for emacs-orgmode@gnu.org; Thu, 03 Feb 2011 15:09:30 -0500 Received: from walleye.ccbr.umn.edu ([128.101.116.11]:4769) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pl5Uf-0001DK-6x for emacs-orgmode@gnu.org; Thu, 03 Feb 2011 15:09:29 -0500 In-Reply-To: <871v3prmz8.fsf@altern.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: emacs-orgmode , Rainer M Krug Bastien wrote: > Hi Rainer, > > Rainer M Krug writes: > >> I would like to have a description as follow: >> >> - first :: some text >> - second :: some more text >> - =code= :: some additional text >> >> but =code= is not formatted as bold. If I say >> >> - \bold{=code=} :: some additional text >> >> I get, as one could expect, "=code=" in bold. >> >> Is it possible to get code in bold? > > Yes. For now it produces: > > ,---- > | \begin{description} > | \item[first]some text > | \item[second]some more text > | \item[\texttt{code}]some additional text > | \end{description} > `---- > > where \texttt{code} is not taken into account. > > But > > \item[{\texttt code}]some additional text > > would do the job. I don't know what are the LaTeX conventions > regarding the use of {\texttt ...} vs. \texttt{...} constructs. > > Any LaTeX guru here? Certainly not a guru, but if you look at the zoomed-in PDF output of your second attempt above: \item[{\texttt code}]some additional text, you'll see that only the first letter 'c' is written in typewriter font, and the rest are bold. This is because you did not use brackets to group the argument, so it only passes the first letter it sees. So if you do use brackets, you'll note that you only get typewriter font, and not in bold: why is this? I believe that, http://www.tex.ac.uk/cgi-bin/texfaq2html?label=bold-extras explains that Computer Modern fonts do not come with a bold teletype font. The page offers some solutions for you if you want this. This is what I believe is happening anyway, and would be happy to be corrected by a true guru! --Erik Iverson