From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Alexandrov <321942@gmail.com> Subject: bug#31273: 27.0.50; org: #+begin_right block is not exported correctly Date: Sat, 28 Apr 2018 17:53:24 +0300 Message-ID: <87k1sr9ycb.fsf@gmail.com> References: <87bme6gg7i.fsf@gmail.com> <87r2mzqv7w.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48661) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fCREj-0002rg-J0 for emacs-orgmode@gnu.org; Sat, 28 Apr 2018 10:54:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fCREg-0007E4-GN for emacs-orgmode@gnu.org; Sat, 28 Apr 2018 10:54:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:34239) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fCREg-0007Dq-6t for emacs-orgmode@gnu.org; Sat, 28 Apr 2018 10:54:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fCREf-0007Sl-Pr for emacs-orgmode@gnu.org; Sat, 28 Apr 2018 10:54:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87r2mzqv7w.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Sat, 28 Apr 2018 16:08:51 +0200") 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: Nicolas Goaziou Cc: 31273@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Nicolas Goaziou wrote: > Dmitry Alexandrov <321942@gmail.com> writes: >> with the latest Emacs from git master, exporting #+begin_right block >> neither to HTML, nor to ODT (didn=E2=80=99t test other options) does not= work >> as expected, while this should be pretty possible with both. >> >> With HTML, as far as I can see, the problem is in that, so a CSS class >> is named =E2=80=98org-right=E2=80=99: >> >> .org-right { margin-left: auto; margin-right: 0px; text-align: right= ; } >> >> >> while in the HTML it is referenced as just =E2=80=98right=E2=80=99: >> >>
> > ".org-right" is an internal CSS class for table alignment. > > OTOH, "#+begin_right" starts a special block that, as expected, create > a "right" div. > > So, there is no issue here. You can either define "right" CSS, or > (untested), try "#+begin_org-right". Thank you for a response, #+begin_org-right block indeed works like a charm. Now, I am not sure, whether am I supposed to use #+begin_org-center blocks = instead of #+begin_center too. In fact, given that #+begin_center creates a .org-center div block, that is= centred by default CSS (and stylesheets of other formats), I found your an= swer absolutely surprising. I would be probably not alone on this feeling; see, for instance, Fabrice N= iessen=E2=80=99s Org mode syntax reference card [0], where (as far as I got= it) #+begin_right is presented as alignment tag for paragraphs rather than= tables: =2D-8<---------------cut here---------------start------------->8--- Centered text #+begin_left This text is \\ aligned to the left! #+end_left #+begin_center This text is \\ centered! #+end_center #+begin_right This text is \\ aligned to the right! #+end_right =2D-8<---------------cut here---------------end--------------->8--- In a part for centring it is in accordance to (info "(org) Paragraphs"), wh= ich says: =2D-8<---------------cut here---------------start------------->8--- If you would like to center some text, do it like this: #+BEGIN_CENTER Everything should be made as simple as possible, \\ but not any simpler #+END_CENTER =2D-8<---------------cut here---------------end--------------->8--- [0] https://github.com/fniessen/refcard-org-mode --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEE1yoTx9fONarixgNIydoJ3hnBsjAFAlrkiuQACgkQydoJ3hnB sjDRpwf9HZKl+5ZRWRttgG+PZtQ5qIOSWP+HmwZdjT3WkuxdHAFbUu0AcDpZrFI6 NdzRn2x6ORaF5Jr0O/38YXjPerR/7xgY20sP8VwdKwlgk/QMec6XyeA4vJ/K6h+p 3M0tlWFtwnGWeFsj4sxYVSVTRqC6n698DARRECvZ0++ebFahYCS45WuZhSuR9XVK 9GR5D2com33rQFFranbfptv26NtsI3x7YIzN67OCJxnR+XBlozQe1RmG7b1Tja1k 3T0oejcU53naQLUtMAOwXzEH13NbG0ljI12CbuU6ujqtdVt/4c4zURDdHblhmXuc 9v5sSzqd1kC2akZ2yFUW8Cl7WJMwHQ== =eR7h -----END PGP SIGNATURE----- --=-=-=--