From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sharon Kimble Subject: Re: 2-column mode for many cooking recipes Date: Thu, 01 Mar 2018 12:07:52 +0000 Message-ID: <87po4oj8x3.fsf@skimble.plus.com> References: <87606ho2sa.fsf@skimble.plus.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45866) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erN0F-0003jF-Ah for emacs-orgmode@gnu.org; Thu, 01 Mar 2018 07:08:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1erN0B-0008My-6E for emacs-orgmode@gnu.org; Thu, 01 Mar 2018 07:08:03 -0500 Received: from avasout01.plus.net ([84.93.230.227]:33381) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1erN0A-0008LP-S5 for emacs-orgmode@gnu.org; Thu, 01 Mar 2018 07:07:59 -0500 In-Reply-To: <87606ho2sa.fsf@skimble.plus.com> (Sharon Kimble's message of "Wed, 28 Feb 2018 09:56:53 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: org-mode-email --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Sharon Kimble writes: > I have this as a recipe - > > ** Date Bread > \index[pies]{Date bread}\index[menu]{Bread!date}\index[cook]{Bake!date br= ead}\index{Fruit!dates} > /12 ounces stoned dates/\\ > /1 teaspoonful bicarbonate of soda/\\ > /1 cupful boiling water/\\ > /4 ounces margarine/\\ > /1 egg/\\ > /2 cups flour/\\ > /$\frac{1}{2}$ cup sugar/\\ > /pinch of salt/ > > Cut dates into pieces, shake soda over the dates, and pour water over. Ad= d margarine cut into small > pieces and stir well. Break egg into mixture, then add sugar and flour. D= ivide into two loaf tins > and bake 90 minutes in moderate oven, Regulo 4 (cite:0187). > > How can I have the ingredients in a left-most column and the method in a > right-most column please? So that everything below the index entries is > in 2-column mode which ends after the citation. And it can then be > renewed below the next index entries of the next entry, ad infinitum. > > This is for an org-mode document that is exported to latex and built > into a pdf file. > As a follow-up to this, and thanks to Akater and Eric for their input - =2D-8<---------------cut here---------------start------------->8--- ** Macaroon Tart \index[pies]{Macaroon tart}\index[menu]{Tart!macaroon}\index[cook]{Bake!mac= aroon tart} #+begin_ingredients /\uline{short pastry}/\footnotemark \\ /jam/\\ /1 teacupful sugar/\\ /almond essence/\\ /1 teacupful semolina/\\ /1 reconstituted powdered egg/\\ /3 ounces margarine/ #+end_ingredients #+begin_steps =2D Line the sandwich tin with short pastry. =2D Spread jam over it and fill with mixture creamed together from all of t= he above ingredients. =2D Bake in fairly hot oven for over 20 minutes (cite:0186). #+end_steps \footnotetext{See \uline{Short Pastry+} in Part 1 - Basics, Biscuits, Bread= & Pastries} \footnotetext{See Short Pastry+ in Part 1 - Basics, Biscuits, Bread \& Past= ries} \footnotetext{See *Short Pastry+* in Part 1 - Basics, Biscuits, Bread \& Pa= stries} =2D-8<---------------cut here---------------end--------------->8--- In a minipage like Eric suggested, org-mode footnotes do not work, they end up putting the footnote at the bottom of their minipage, which isn't ideal. The solution is as I've shown above to use \footnotemark and then the \footnotetext{foo} where you want. But to get the new footnote to show t the bottom of the page like the rest of the document you also need to have in your preamble '#+latex_header: \usepackage[bottom]{footmisc}' which will then place your new footnote at the bottom of the generated PDF. But, and its a big but, you can't have any text decorations (think *bold*, _underline_, etc) in your footnote text as it breaks the positioning and display of the footnotes. As shown in this latex output - =2D-8<---------------cut here---------------start------------->8--- \section{Macaroon Tart} \label{sec:orgb1ba005} \index[pies]{Macaroon tart}\index[menu]{Tart!macaroon}\index[cook]{Bake!mac= aroon tart} \begin{ingredients} \emph{\uline{short pastry}}\footnotemark \\ \emph{jam}\\ \emph{1 teacupful sugar}\\ \emph{almond essence}\\ \emph{1 teacupful semolina}\\ \emph{1 reconstituted powdered egg}\\ \emph{3 ounces margarine} \end{ingredients} \begin{steps} \begin{itemize} \item Line the sandwich tin with short pastry. \item Spread jam over it and fill with mixture creamed together from all of= the above ingredients. \item Bake in fairly hot oven for over 20 minutes (\cite{0186}). \end{itemize} \end{steps} \footnotetext\{See \uline{Short Pastry+} in Part 1 - Basics, Biscuits, Brea= d \& Pastries\} \footnotetext{See Short Pastry+ in Part 1 - Basics, Biscuits, Bread \& Past= ries} \footnotetext{See *Short Pastry+* in Part 1 - Basics, Biscuits, Bread \& Pa= stries} =2D-8<---------------cut here---------------end--------------->8--- The first footnote text breaks because of having the underlined text inside it, it inserts a backslash just before the first opening curly bracket, and places a backslash just before the closing curly bracket. Not good! The second footnote text works. The third footnote text breaks because of the org-mode decoration, specifically the stars to either side of 'Short Pastry+'. Maybe the org-mode exporter to latex could be altered to allow underlines in footnotes in minipages, but I suspect that it can't be done. I think that its one of those weird latex-isms, love it or hate it, you've got to use it to achieve nirvana! So to summarise - =2D if you want footnotes in minipages, you must =2D use \footnotemark where you want the footnote inside the minipage, and = \footnotetext{foo} outside the minipage, =2D use #+latex_header: \usepackage[bottom]{footmisc} to place your built f= ootnote at the page end, and finally=20 =2D do not use any org-mode decoration of text to achieve *bold*, _underlin= e_, etc within your \footnotetext{foo}, use plain text only. Thanks to Eric and Akater, for their suggestions. Sharon. =2D-=20 A taste of linux =3D http://www.sharons.org.uk TGmeds =3D http://www.tgmeds.org.uk DrugFacts =3D https://www.drugfacts.org.uk=20=20 Debian 9.3, fluxbox 1.3.7, emacs 25.3.2, org-mode 9.1.6-10-g0c9329-elpaplus --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEELSc/6QwVBIYugJDbNoGAGQr4g1sFAlqX7RkACgkQNoGAGQr4 g1uTIQ/+NweJgLnFYRZkjE8c6fAtv/2zvBq1oMj1oetEoaJZYwDyBsYjW3hRumku tCHXFEYao/DFsh65MBsenn/BiWJV/VnG2C7nrwQ+yWFdeAhTlbXUVtMuVw+Ukg74 SYmByf3QoU6vtF/Ne0/yPopRt2O3s1w7lKpewSkex+ElJBb2JIYgRoeMeIoXC5fq 3nVjZrTnzylkCcll+EU9prUyuEB1bW7xJNigQYfvPgMP56nWS44NsnnJ0b5Ps8fe MDqsIOw9ByyCxZ7zcF/+d5a3hZzcW91x5c6Y94EIfebnXg6iIF6WkCs53s4mV0Rf NpdAdadU2BLV9ZW7x/oOHb20mfigxGbqpzC5uMh59LOSAws09/NvIrHChnvQBgbS ecUWC9ghtKef4kQ7LPc3Hu0klVcG3cbdeeNSbfPKPFZbWydeiSK6flF78a4NFeBQ Vi05sVzQ20kBj/ALlYYTzPYKWHpklnLTy/F6OGDRKdScgYe/hL8mShUbTybqlF8K WoxANBFAocQYVfCR47jKE2Wm7qEHSmKOV7i49rT9mcBWVSqRL422DUbBdYDVbrz6 da7uEQDWEhx2Ko4q32ldCJpnu4MftFy3V/x0xkDX1Y3QrTlH8QP+QPiSxaeW8Wpt 1J9yDfQKSsVdyIUNlg7zs0i49b5Dc0sC25czjvENzhzxFuMrvMI= =3xCA -----END PGP SIGNATURE----- --=-=-=--