* Small font size in beamer tables
@ 2011-08-04 0:00 Vikas Rawal
2011-08-04 0:04 ` suvayu ali
0 siblings, 1 reply; 6+ messages in thread
From: Vikas Rawal @ 2011-08-04 0:00 UTC (permalink / raw)
To: emacs-orgmode
I am using beamer class in orgmode to make a presentation. I need to
use small font size for some of my tables.
LaTeX_CLASS_OPTIONS changes font size in the text but not in the tables.
Something like this does not work.
#+ATTR_LaTeX: size=small align=p{2cm}|r|r|p{1cm}|p{1cm}|r|p{1cm}|p{1cm}|
What would be the easiest way to specify that a table uses smaller
font size.
Vikas
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Small font size in beamer tables
2011-08-04 0:00 Small font size in beamer tables Vikas Rawal
@ 2011-08-04 0:04 ` suvayu ali
2011-08-04 0:33 ` Vikas Rawal
0 siblings, 1 reply; 6+ messages in thread
From: suvayu ali @ 2011-08-04 0:04 UTC (permalink / raw)
To: emacs-orgmode
On Thu, Aug 4, 2011 at 2:00 AM, Vikas Rawal
<vikaslists@agrarianresearch.org> wrote:
> I am using beamer class in orgmode to make a presentation. I need to
> use small font size for some of my tables.
>
http://orgmode.org/worg/org-hacks.html#latex-command-for-floats
--
Suvayu
Open source is the future. It sets us free.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Small font size in beamer tables
2011-08-04 0:04 ` suvayu ali
@ 2011-08-04 0:33 ` Vikas Rawal
2011-08-04 1:07 ` suvayu ali
0 siblings, 1 reply; 6+ messages in thread
From: Vikas Rawal @ 2011-08-04 0:33 UTC (permalink / raw)
To: emacs-orgmode, suvayu ali
> > I am using beamer class in orgmode to make a presentation. I need to
> > use small font size for some of my tables.
> >
>
> http://orgmode.org/worg/org-hacks.html#latex-command-for-floats
Oh. Thanks very much for a prompt response. In fact, I was just
reading that extremely useful thread on this list where you proposed
this solution and provided the patch for the documentation.
The solution is not working for me somehow. Which is to say that, with
my limited knowledge of latex, I have not been able to understand
this. So may I please you to elaborate a bit.
I have this line:
#+ATTR_LaTeX: placement=\footnotesize align=p{2cm}|r|r|p{1cm}|p{1cm}|r|p{1cm}|p{1cm}|
This does not produce any change.
I have also tried just:
#+ATTR_LaTeX: placement=\footnotesize
What am I supposed to do with [<options>]. Do i have to have some?
If it is relevant, my table is produced by a src block which processes
an R script.
So the entire frame looks like:
*** frame title
#+CAPTION: the table title here
#+ATTR_LaTeX: placement=\footnotesize align=p{2cm}|r|r|p{1cm}|p{1cm}|r|p{1cm}|p{1cm}|
#+BEGIN_SRC R :results value :colnames yes :hline yes
[R script here]
#+END_SRC
I shall be grateful if you could help me tweak this.
Vikas
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Small font size in beamer tables
2011-08-04 0:33 ` Vikas Rawal
@ 2011-08-04 1:07 ` suvayu ali
2011-08-04 2:02 ` Vikas Rawal
2011-08-04 18:31 ` Guenter Kolousek
0 siblings, 2 replies; 6+ messages in thread
From: suvayu ali @ 2011-08-04 1:07 UTC (permalink / raw)
To: emacs-orgmode, suvayu ali
Hello Vikas,
On Thu, Aug 4, 2011 at 2:33 AM, Vikas Rawal
<vikaslists@agrarianresearch.org> wrote:
> I have this line:
> #+ATTR_LaTeX: placement=\footnotesize align=p{2cm}|r|r|p{1cm}|p{1cm}|r|p{1cm}|p{1cm}|
>
> This does not produce any change.
>
> I have also tried just:
>
> #+ATTR_LaTeX: placement=\footnotesize
>
> What am I supposed to do with [<options>]. Do i have to have some?
>
I hadn't tried my solution for beamer export. In beamer tables don't
use the table environment, hence my previous solution doesn't work.
That said, I did find an ugly hack. Try this:
#+LATEX: {\tiny
#+ATTR_LaTeX: align=rr
| M (GeV) | K-factor |
|---------+----------|
| 50 | 1.075 |
| 150 | 1.01 |
| 250 | 0.9932 |
| 350 | 0.9778 |
| 450 | 0.9621 |
#+LATEX: }
Hopefully this was helpful.
--
Suvayu
Open source is the future. It sets us free.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Small font size in beamer tables
2011-08-04 1:07 ` suvayu ali
@ 2011-08-04 2:02 ` Vikas Rawal
2011-08-04 18:31 ` Guenter Kolousek
1 sibling, 0 replies; 6+ messages in thread
From: Vikas Rawal @ 2011-08-04 2:02 UTC (permalink / raw)
To: emacs-orgmode
> I hadn't tried my solution for beamer export. In beamer tables don't
> use the table environment, hence my previous solution doesn't work.
>
> That said, I did find an ugly hack. Try this:
>
> #+LATEX: {\tiny
> #+ATTR_LaTeX: align=rr
> | M (GeV) | K-factor |
> |---------+----------|
> | 50 | 1.075 |
> | 150 | 1.01 |
> | 250 | 0.9932 |
> | 350 | 0.9778 |
> | 450 | 0.9621 |
> #+LATEX: }
>
You are my hero of the day!!!
Thank you very much.
Vikas
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Small font size in beamer tables
2011-08-04 1:07 ` suvayu ali
2011-08-04 2:02 ` Vikas Rawal
@ 2011-08-04 18:31 ` Guenter Kolousek
1 sibling, 0 replies; 6+ messages in thread
From: Guenter Kolousek @ 2011-08-04 18:31 UTC (permalink / raw)
To: emacs-orgmode
Using beamer the following just works fine too, if the table
is the only element inside a frame:
#+LATEX: \tiny
#+ATTR_LaTeX: align=rr
| M (GeV) | K-factor |
|---------+----------|
| 50 | 1.075 |
| 150 | 1.01 |
| 250 | 0.9932 |
| 350 | 0.9778 |
| 450 | 0.9621 |
Günter
Am 2011-08-04 03:07, schrieb suvayu ali:
> Hello Vikas,
>
> On Thu, Aug 4, 2011 at 2:33 AM, Vikas Rawal
> <vikaslists@agrarianresearch.org> wrote:
>> I have this line:
>> #+ATTR_LaTeX: placement=\footnotesize align=p{2cm}|r|r|p{1cm}|p{1cm}|r|p{1cm}|p{1cm}|
>>
>> This does not produce any change.
>>
>> I have also tried just:
>>
>> #+ATTR_LaTeX: placement=\footnotesize
>>
>> What am I supposed to do with [<options>]. Do i have to have some?
>>
>
> I hadn't tried my solution for beamer export. In beamer tables don't
> use the table environment, hence my previous solution doesn't work.
>
> That said, I did find an ugly hack. Try this:
>
> #+LATEX: {\tiny
> #+ATTR_LaTeX: align=rr
> | M (GeV) | K-factor |
> |---------+----------|
> | 50 | 1.075 |
> | 150 | 1.01 |
> | 250 | 0.9932 |
> | 350 | 0.9778 |
> | 450 | 0.9621 |
> #+LATEX: }
>
> Hopefully this was helpful.
>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-08-05 5:30 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-04 0:00 Small font size in beamer tables Vikas Rawal
2011-08-04 0:04 ` suvayu ali
2011-08-04 0:33 ` Vikas Rawal
2011-08-04 1:07 ` suvayu ali
2011-08-04 2:02 ` Vikas Rawal
2011-08-04 18:31 ` Guenter Kolousek
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).