public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Change the font size and the space between code and output in the generated beamer file?
@ 2015-01-06  3:46 Shu Fai Cheung
       [not found] ` <3897137a-f140-4aa9-a756-b460a9b8a086-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Shu Fai Cheung @ 2015-01-06  3:46 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


[-- Attachment #1.1: Type: text/plain, Size: 1216 bytes --]

I use rmarkdown::render to convert a Rmd file to a beamer pdf file. I 
learned from a previous post that I can use "fontsize" in YAML metadata to 
set the fontsize for the whole PDF file generated by pandoc.

However, is it possible to set the font size only for code and output of 
the code? For example, I would like make the code smaller than the text.

Related to this issue, will the space between the code and its output 
reduce accordingly if I reduce the font size? If not, how can I reduce the 
space between the code and its output? (I am not sure if this question is 
related to pandoc, if the spacing does not depend on font size).

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/3897137a-f140-4aa9-a756-b460a9b8a086%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 1638 bytes --]

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

* Re: Change the font size and the space between code and output in the generated beamer file?
       [not found] ` <3897137a-f140-4aa9-a756-b460a9b8a086-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2015-01-06  4:20   ` John MacFarlane
       [not found]     ` <20150106042007.GA70959-bi+AKbBUZKbivNSvqvJHCtPlBySK3R6THiGdP5j34PU@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: John MacFarlane @ 2015-01-06  4:20 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

+++ Shu Fai Cheung [Jan 05 15 19:46 ]:
>I use rmarkdown::render to convert a Rmd file to a beamer pdf file. I
>learned from a previous post that I can use "fontsize" in YAML metadata to
>set the fontsize for the whole PDF file generated by pandoc.

>However, is it possible to set the font size only for code and output of
>the code? For example, I would like make the code smaller than the text.

You might try with --latex-engine=xelatex, then you can adjust the
following variables:

mainfont
sansfont
monofont

Note that they will take  system font names, rather than the special
font names used by regular pdflatex.


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

* Re: Change the font size and the space between code and output in the generated beamer file?
       [not found]     ` <20150106042007.GA70959-bi+AKbBUZKbivNSvqvJHCtPlBySK3R6THiGdP5j34PU@public.gmane.org>
@ 2015-01-11 10:45       ` Shu Fai Cheung
  0 siblings, 0 replies; 3+ messages in thread
From: Shu Fai Cheung @ 2015-01-11 10:45 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


[-- Attachment #1.1: Type: text/plain, Size: 1397 bytes --]

Thanks for the advice. I will take a look.

John MacFarlane於 2015年1月6日星期二 UTC+8下午12時20分23秒寫道:
>
> +++ Shu Fai Cheung [Jan 05 15 19:46 ]: 
> >I use rmarkdown::render to convert a Rmd file to a beamer pdf file. I 
> >learned from a previous post that I can use "fontsize" in YAML metadata 
> to 
> >set the fontsize for the whole PDF file generated by pandoc. 
>
> >However, is it possible to set the font size only for code and output of 
> >the code? For example, I would like make the code smaller than the text. 
>
> You might try with --latex-engine=xelatex, then you can adjust the 
> following variables: 
>
> mainfont 
> sansfont 
> monofont 
>
> Note that they will take  system font names, rather than the special 
> font names used by regular pdflatex. 
>

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/357c7576-f962-424f-b136-d6f70c71cdd0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 1969 bytes --]

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

end of thread, other threads:[~2015-01-11 10:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-06  3:46 Change the font size and the space between code and output in the generated beamer file? Shu Fai Cheung
     [not found] ` <3897137a-f140-4aa9-a756-b460a9b8a086-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-01-06  4:20   ` John MacFarlane
     [not found]     ` <20150106042007.GA70959-bi+AKbBUZKbivNSvqvJHCtPlBySK3R6THiGdP5j34PU@public.gmane.org>
2015-01-11 10:45       ` Shu Fai Cheung

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 NNTP newsgroup(s).