Re: Wider margins on text, but no margins on tables?

2023-08-23 Thread Ihor Radchenko
William Denton  writes:

> But for tables it can be a problem because sometimes I have a table that i 
> want 
> as wide as possible.  Is there a way to have tables fit inside the 
> margin-width 
> settings until they get too wide, then expand out?  That way a small table 
> isn't 
> flush left, but a big one is.

No easy way, AFAIK. You may probably hook into
`window-size-change-functions' to calculate margins dynamically. See
`olivetti-mode' for an example how to use this hook.

> Or perhaps there is a way to set Org tables to have margin-widths of 0, so it 
> would be:  narrowed paragraph, narrowed paragraph, table flush left, narrowed 
> paragraph.

AFAIK, window margins are set for the whole window. They are fixed. The
best you can do it creating artificial margins by setting paragraph
line-prefix/wrap-prefix property + 
https://codeberg.org/joostkremers/visual-fill-column

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Wider margins on text, but no margins on tables?

2023-08-18 Thread William Denton
I have always run Emacs full screen and never set any margins, so the text goes 
from one side of my screen to the other.  (It's not a big screen.)  Today I'm 
trying out narrowing how text is displayed by setting left-margin-width and 
right-margin-width, so there's blank space on either side.  It looks good for 
most things, and helps readability.


But for tables it can be a problem because sometimes I have a table that i want 
as wide as possible.  Is there a way to have tables fit inside the margin-width 
settings until they get too wide, then expand out?  That way a small table isn't 
flush left, but a big one is.


Or perhaps there is a way to set Org tables to have margin-widths of 0, so it 
would be:  narrowed paragraph, narrowed paragraph, table flush left, narrowed 
paragraph.


Has anyone here configured something like this?  If there's a hook to use it's 
beyond what I can hack.  Any related tips or configurations would be welcome too.



Thanks,

Bill

--
William Denton
https://www.miskatonic.org/
Librarian, artist and licensed private investigator.
Toronto, Canada
CO₂: 419.19 ppm (Mauna Loa Observatory, 2023-08-17)