emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Combination of =code= and Description
@ 2010-12-10 10:22 Rainer M Krug
  2011-02-03 18:28 ` Bastien
  0 siblings, 1 reply; 5+ messages in thread
From: Rainer M Krug @ 2010-12-10 10:22 UTC (permalink / raw)
  To: emacs-orgmode

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

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?

Cheers,

Rainer

- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Tel:        +33 - (0)9 53 10 27 44
Cell:       +27 - (0)8 39 47 90 42
Fax (SA):   +27 - (0)8 65 16 27 82
Fax (D) :   +49 - (0)3 21 21 25 22 44
Fax (FR):   +33 - (0)9 58 10 27 44
email:      Rainer@krugs.de

Skype:      RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0B/0wACgkQoYgNqgF2egp63gCfaAkADwvJobTVcjmhY8JSnEO1
MpIAnj/SHyA84dm4aM+kVH0RlLb4tdlL
=v6du
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Combination of =code= and Description
  2010-12-10 10:22 Combination of =code= and Description Rainer M Krug
@ 2011-02-03 18:28 ` Bastien
  2011-02-03 19:27   ` Achim Gratz
  2011-02-03 20:09   ` Erik Iverson
  0 siblings, 2 replies; 5+ messages in thread
From: Bastien @ 2011-02-03 18:28 UTC (permalink / raw)
  To: Rainer M Krug; +Cc: emacs-orgmode

Hi Rainer,

Rainer M Krug <r.m.krug@gmail.com> 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?

-- 
 Bastien

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Combination of =code= and Description
  2011-02-03 18:28 ` Bastien
@ 2011-02-03 19:27   ` Achim Gratz
  2011-02-11 11:23     ` Bastien
  2011-02-03 20:09   ` Erik Iverson
  1 sibling, 1 reply; 5+ messages in thread
From: Achim Gratz @ 2011-02-03 19:27 UTC (permalink / raw)
  To: emacs-orgmode

Bastien <bastien.guerry@wikimedia.fr> writes:
> But
>
>   \item[{\texttt code}]some additional text
>
> would do the job.

No, it doesn't - it makes the first "c" character non-bold typewriter
and the rest "ode" bold sans serif.  There simply is no boldface version
of the typewriter font in standard LaTeX, so the form of the argument to
item isn't really responsible for the result.

If it were, then I think from a LaTeX perspective \texttt{code} is
preferred, although the fully braced construct also works in that
situation.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptation for Waldorf rackAttack V1.04R1:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Combination of =code= and Description
  2011-02-03 18:28 ` Bastien
  2011-02-03 19:27   ` Achim Gratz
@ 2011-02-03 20:09   ` Erik Iverson
  1 sibling, 0 replies; 5+ messages in thread
From: Erik Iverson @ 2011-02-03 20:09 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode, Rainer M Krug



Bastien wrote:
> Hi Rainer,
> 
> Rainer M Krug <r.m.krug@gmail.com> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Re: Combination of =code= and Description
  2011-02-03 19:27   ` Achim Gratz
@ 2011-02-11 11:23     ` Bastien
  0 siblings, 0 replies; 5+ messages in thread
From: Bastien @ 2011-02-11 11:23 UTC (permalink / raw)
  To: Achim Gratz; +Cc: emacs-orgmode

Hi Achim,

Achim Gratz <Stromeko@nexgo.de> writes:

> Bastien <bastien.guerry@wikimedia.fr> writes:
>> But
>>
>>   \item[{\texttt code}]some additional text
>>
>> would do the job.
>
> No, it doesn't - it makes the first "c" character non-bold typewriter
> and the rest "ode" bold sans serif.  There simply is no boldface version
> of the typewriter font in standard LaTeX, so the form of the argument to
> item isn't really responsible for the result.

Thanks, I stand corrected.

> If it were, then I think from a LaTeX perspective \texttt{code} is
> preferred, although the fully braced construct also works in that
> situation.

So let's live with it.

Thanks,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-02-11 11:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-10 10:22 Combination of =code= and Description Rainer M Krug
2011-02-03 18:28 ` Bastien
2011-02-03 19:27   ` Achim Gratz
2011-02-11 11:23     ` Bastien
2011-02-03 20:09   ` Erik Iverson

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).