From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Hannon Subject: Re: Theorems in org-mode? Date: Fri, 4 May 2012 17:54:55 -0700 (PDT) Message-ID: <1336179295.57637.YahooMailNeo@web161903.mail.bf1.yahoo.com> References: <87aa1n332k.fsf@gmail.com> Reply-To: Michael Hannon Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58279) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQTH1-0005wB-TU for emacs-orgmode@gnu.org; Fri, 04 May 2012 20:55:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SQTH0-0006Sn-1O for emacs-orgmode@gnu.org; Fri, 04 May 2012 20:54:59 -0400 Received: from nm27-vm0.bullet.mail.bf1.yahoo.com ([98.139.213.139]:45418) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SQTGz-0006RF-PW for emacs-orgmode@gnu.org; Fri, 04 May 2012 20:54:57 -0400 In-Reply-To: <87aa1n332k.fsf@gmail.com> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rafael , org-mode list > From: Rafael =0A>To: org-mode list =0A>Sent: Friday, May 4, 2012 5:05 PM=0A>Subject: [O] Theorems in org-= mode?=0A> =0A>=0A>Motivated by the side note by Nicolas in=0A>http://www.ma= il-archive.com/emacs-orgmode@gnu.org/msg55225.html, I tried=0A>the example = at the end of this message, which requires=0A>org-special-blocks.el. It exp= orts nicely to LaTeX->PDF with the new=0A>exporter (not so much with the ol= d), so thanks!=0A>=0A>I wonder what I would need to add to make it export n= icely to HTML with=0A>either the old or the new exporter. The old exporter = inserts the labels=0A>with the text of the theorems, and the new inserts st= uff like=0A>\begin{theorem} .. \end{theorem} with the text of the theorems.= =0A>=0A>Now, the org-special-blocks documentation says:=0A>=0A>=A0 When #+b= egin_foo is encountered by the html exporter, a div=0A>=A0 with class foo i= s inserted into the HTML file.=A0 It is up to the=0A>=A0 user to add this c= lass to his or her stylesheet if this div is to=0A>=A0 mean anything.=0A>= =0A>I have used=0A>=0A>#+STYLE: =0A>=0A>but if somebod= y with actual HTML knowledge could suggest something=0A>prettier I would ap= preciate it.=0A.=0A.=0A.=0A=0AFWIW, I've played with this a bit recently.= =A0 The example below makes an HTML document with "Pay attention to this te= xt" in large, red, indented font.=0A=0AI prefer to put the CSS in a separat= e file, but I think it's straightforward to include the equivalent statemen= ts directly in the Org file.=0A=0A-- Mike=0A=0A=0A=0A=0A#+STYLE:=A0=A0=A0 <= link rel=3D"stylesheet" type=3D"text/css" href=3D"./special-block.css" />= =0A=0A* test=0A=0A#+BEGIN_ATTENTION=0A=0APay attention to this text!=0A=0A#= +END_ATTENTION=0A=0A###### Contents of special-block.css follow=0A=0A# .ATT= ENTION=0A# {=0A# font-size: 40px;=0A# text-indent: 50px;=0A# color: red;=0A= # }