Re: How to specify column alignment in LaTeX table output?

2025-01-10 Thread Richard H Stanton
> On Jan 10, 2025, at 10:59 AM, Rens Oliemans wrote: > > Richard H Stanton writes: > >> Here’s an example: >> >> #+begin_src python :results output replace raw >> print("a") >> #+end_src >> >> Every time I run this code bloc

Re: How to specify column alignment in LaTeX table output?

2025-01-10 Thread Richard H Stanton
On Jan 10, 2025, at 10:59 AM, Rens Oliemans wrote: > > Richard H Stanton writes: > >> Here’s an example: >> >> #+begin_src python :results output replace raw >> print("a") >> #+end_src >> >> Every time I run this code block,

Re: How to specify column alignment in LaTeX table output?

2025-01-10 Thread Richard H Stanton
> On Jan 10, 2025, at 8:59 AM, Richard H Stanton wrote: > >> >> On Jan 10, 2025, at 1:47 AM, Rens Oliemans wrote: >> >> Richard H Stanton writes: >> >>> what are the recommended headers for a Python code block that exports a >>> t

Re: How to specify column alignment in LaTeX table output?

2025-01-10 Thread Richard H Stanton
On Jan 9, 2025, at 10:13 PM, Pedro Andres Aranda Gutierrez wrote: > > Hi, > > For org tables generated in Python, I use python-tabulate. Actually, I forked > the original library to include the possibility of generating the latex > attributes from Python too. > > Something like: > > --- cut

Re: How to specify column alignment in LaTeX table output?

2025-01-10 Thread Richard H Stanton
> On Jan 10, 2025, at 1:47 AM, Rens Oliemans wrote: > > Richard H Stanton writes: > >> what are the recommended headers for a Python code block that exports a >> table? For example, ":results output raw” and ":results output drawer” both >> seem

Re: How to specify column alignment in LaTeX table output?

2025-01-09 Thread Richard H Stanton
On Jan 9, 2025, at 2:17 AM, Rens Oliemans wrote: > > Richard H Stanton writes: > >> Here’s a table in my org document: >> >> #+ATTR_LATEX: :align :options [htbp] >> #+begin_table >> |---++---+| >&

How to specify column alignment in LaTeX table output?

2025-01-09 Thread Richard H Stanton
Here’s a table in my org document: #+ATTR_LATEX: :align :options [htbp] #+begin_table |---++---+| | Tier | Number | Total | % of Total | |---++---+| | 1 | 4 | 8,700.00 | 57.39 | | 2 | 19 | 5,398.00 |

How to export a single subtree but include document preamble?

2024-04-03 Thread Richard H. Stanton
I just tried to export a single subtree from an org document to a PDF file: 1) Type C-c C-e [org-export-dispatch] 2) C-s to narrow to subtree 3) l -> o to export to PDF via LaTeX However, instead of exporting the portion of the file I want, I get the error message Undefined Org macro: newline;

LaTeX export ignores caption if table is in a drawer

2023-05-25 Thread Richard H. Stanton
I often create tables programatically from within an org code block. To make sure I don’t produce multiple copies of the output, I like to enclose the results in a drawer. However, the exporter seems to ignore any caption I might assign if the table itself is inside a drawer. For example, if you

Re: Trouble producing nicely aligned org tables from emacs-jupyter code blocks using latest org version

2022-05-19 Thread Richard H. Stanton
Commenting out the last line of init.el, thus not loading the beacon package, gets things to work OK. But so does changing which version of org mode is loaded by commenting out one of the lines and uncommenting the other, so this is not only about the beacon package. Best, Richard >

Re: Trouble producing nicely aligned org tables from emacs-jupyter code blocks using latest org version

2022-05-19 Thread Richard H. Stanton
After a lot of bisecting my init.el to create the simplest possible example that shows the problem, I found that removing the package beacon makes everything work OK, both in sync and async mode. > On May 19, 2022, at 6:37 AM, Ihor Radchenko wrote: > > Richard Stanton writes: > >> A bit mo

Re: How to stop results being hidden when using ":results drawer"?

2022-05-12 Thread Richard H. Stanton
>> I’m creating documents where I run Python code blocks that create LaTeX >> mathematical output that I want to be able to export to either LaTeX/PDF or >> HTML. >> >> Using :wrap in the header works fine, except that LaTeX complains about the >> unknown environment “results” (it still comp