emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* In-line code and fonts
@ 2012-05-07 23:59 Erich Neuwirth
  2012-05-08  3:35 ` Neil Smithline
  2012-05-08  7:26 ` Andreas Leha
  0 siblings, 2 replies; 3+ messages in thread
From: Erich Neuwirth @ 2012-05-07 23:59 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 409 bytes --]

I need control over the font used for results of inline computations in exported files.
When I have the following code

This is inline R 1+2 = src_R{1+2} 

and export it to html (or LaTeX) the fonts used for the regular text and the fonts used for the results 
of the computation are different. Is there an easy way to tell org mode to use the regular text font for the
result of the computation?



[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 495 bytes --]

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

* Re: In-line code and fonts
  2012-05-07 23:59 In-line code and fonts Erich Neuwirth
@ 2012-05-08  3:35 ` Neil Smithline
  2012-05-08  7:26 ` Andreas Leha
  1 sibling, 0 replies; 3+ messages in thread
From: Neil Smithline @ 2012-05-08  3:35 UTC (permalink / raw)
  To: Erich Neuwirth; +Cc: emacs-orgmode

It is not really an Org Mode solution but, if HTML is an acceptable 
output format, I would imagine that you can concoct some CSS to make the 
HTML look the way you want it to.

You can add CSS via the `style' keyword. It can go in projects (see Info 
section 13.3.1,2) or in the file itself (see 12.5.9).

While I think that using CSS is a nasty hack and would consider this a 
bug or missing feature if you can't fix it within Org, if the nasty hack 
allows you to get your work done...

Neil Smithline
http://www.neilsmithline.com
Proud GNU Emacs user since 1986, v. 18.24.


On 5/7 19:59 , Erich Neuwirth wrote:
> I need control over the font used for results of inline computations in exported files.
> When I have the following code
>
> This is inline R 1+2 = src_R{1+2}
>
> and export it to html (or LaTeX) the fonts used for the regular text and the fonts used for the results
> of the computation are different. Is there an easy way to tell org mode to use the regular text font for the
> result of the computation?
>
>

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

* Re: In-line code and fonts
  2012-05-07 23:59 In-line code and fonts Erich Neuwirth
  2012-05-08  3:35 ` Neil Smithline
@ 2012-05-08  7:26 ` Andreas Leha
  1 sibling, 0 replies; 3+ messages in thread
From: Andreas Leha @ 2012-05-08  7:26 UTC (permalink / raw)
  To: emacs-orgmode

Erich Neuwirth <erich.neuwirth@univie.ac.at> writes:

> I need control over the font used for results of inline computations in exported files.
> When I have the following code
>
> This is inline R 1+2 = src_R{1+2} 
>
> and export it to html (or LaTeX) the fonts used for the regular text and the fonts used for the results 
> of the computation are different. Is there an easy way to tell org mode to use the regular text font for the
> result of the computation?

Hi Erich,

try something like

This is inline R 1+2 = src_R[:results raw]{1+2}

Cheers,
Andreas

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

end of thread, other threads:[~2012-05-08  7:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-07 23:59 In-line code and fonts Erich Neuwirth
2012-05-08  3:35 ` Neil Smithline
2012-05-08  7:26 ` Andreas Leha

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).