From: Dave K. <dku...@da...> - 2018-08-29 21:14:30
|
With respect to LibreOffice and ODF files, something analogous to what Engelbert says about latex can be said about the generation of ODF files for LibreOffice Writer. After you have used rst2odt.py to translate your reST doc into an ODF file, you can open that file in LibreOffice Writer and control orphans and widows by setting paragraph styles. Look under menu item: Format --> Paragraph ... --> Text flow Then look for orphan and widow control, and also look for "Do not split paragraph" and "Keep with next paragraph". Or, click on: Styles --> Styles and Formatting And, edit the default paragraph style. And, if you work at it a bit and follow the rst2odt.py documentation, you can likely create a style-sheet (document) that initializes the orphan and widow options etc. the way you'd like. See the following for information about that: http://docutils.sourceforge.net/docs/user/odt.html#defining-and-using-a-custom-stylesheet Dave On Wed, Aug 29, 2018 at 10:07:12PM +0200, engelbert gruber wrote: > as this, keeping paragraphs and tables together, is a layout problem and > therefore is depending on the output format, it actually is nothing > docutils, or AsciiDoc could or should do. Docutils is no typesetter, that > would be the browser in the case of html, in which case the "page"-size is > volatile. > I would go for latex. latex is a system to produce correctly set > documents. > You can tweak the output by providing a your specific latex preamble > and in worst cases you have to change the text > i do not think roff is easier or better, although roff is smaller and > faster. > all the best > On Tue, 28 Aug 2018 at 10:19, R. Diez via Docutils-users > <doc...@li...> wrote: > > Hi there: > > I am evaluating reStructuredText for my documentation needs. > > The one thing that bothers me most often with Microsoft Word or > LibreOffice Writer is that paragraphs or tables are not kept together > when generating a PDF or printing. Not everyone can always read the docs > on a screen. It looks unprofessional when a page break comes at the > wrong time. > > I haven't learnt much about reStructuredText yet, but I could not > (quickly) find a way to mark paragraphs or tables to be kept together on > a page. > > For more detailed information about why I need an easy, consistent way > for this kind of thing, check out the following discussion about > AsciiDoc, which, in my opinion, does not fit the bill in this respect: > > How to keep paragraphs or table rows together in a consistent manner > > https://groups.google.com/forum/#!topic/asciidoc/5TA3SzU0W84 > > Thanks in advance, > Â rdiez > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Docutils-users mailing list > Doc...@li... > https://lists.sourceforge.net/lists/listinfo/docutils-users > > Please use "Reply All" to reply to the list. > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Docutils-users mailing list > Doc...@li... > https://lists.sourceforge.net/lists/listinfo/docutils-users > > Please use "Reply All" to reply to the list. -- Dave Kuhlman http://www.davekuhlman.org |