From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Re: Rationale for *text* -> \alert{text} for Beamer export? Date: Thu, 2 May 2013 00:09:05 +0200 Message-ID: <20130502000905.4196ef0d@aga-netbook> References: <20130501170006.57df8cf2@aga-netbook> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42620) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXfD6-0000Bs-6K for emacs-orgmode@gnu.org; Wed, 01 May 2013 18:09:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXfD3-0003dl-4F for emacs-orgmode@gnu.org; Wed, 01 May 2013 18:09:12 -0400 Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:48863) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXfD2-0003av-Sm for emacs-orgmode@gnu.org; Wed, 01 May 2013 18:09:09 -0400 Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id 726A642063 for ; Thu, 2 May 2013 00:09:07 +0200 (CEST) Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RoVlR4f7rjJg for ; Thu, 2 May 2013 00:09:07 +0200 (CEST) Received: from aga-netbook (jedenzero5-dziewiecosiem.echostar.pl [213.156.105.98]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id 3E8D842062 for ; Thu, 2 May 2013 00:09:07 +0200 (CEST) In-Reply-To: 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: emacs-orgmode@gnu.org Dnia 2013-05-01, o godz. 11:41:49 tsd@tsdye.com (Thomas S. Dye) napisa=C5=82(a): > Hi John, >=20 > Jumping in late here, with apologies if that's left me wide of the > mark. >=20 > John Hendy writes: >=20 > > On Wed, May 1, 2013 at 10:00 AM, Marcin Borkowski > > wrote: >=20 > > Can you explain semantic vs. visual? As in you can more easily > > customize the meaning of \alert{} or \emph{} whereas \textbf{} and > > \textit{} only has one meaning? Sort of like using a css tag which > > can be later customized vs. specifically calling out exactly what > > you're thinking you want to do at the moment? >=20 > IMHO, the best discussion of this difference is the first chapter of > Lamport's LaTeX User's Guide and Manual. Here is the gist as I > understand it: >=20 > 1) A principle of typesetting is that the layout of a document should > reflect its logical structure. >=20 > 2) A computer typesetting program can achieve this if it knows what > key parts of the document mean. >=20 > 3) So, markup should be semantic, rather than visual. >=20 > It is possible to achieve identical results using visual markup, of > course, but why not let the computer keep track of things instead? +1 Notice also that even LaTeX breaks the rule of "use only semantic markup in the document" (and in fact, there are cases when the rule is a bit fuzzy anyway). Finding examples of /visual/ markup in LaTeX (without semantic counterparts) are left as an exercise for the reader;). (Hint: rahzrengvbaf fglyrf qrcraq abg ba gur punenpgre bs gur rahzrengvba, ohg ba vgf qrcgu, naq jvgubhg cnpxntrf yvxr rahzvgrz vg'f abg rnfl gb qrsvar lbhe bja rahzrengvba fglyrf.) > > Sure, and understood. In general, I'm using *text* simply to call > > attention to something important. I work in product development, so > > something like: > > > > Customer response to product sampling: > > - *US:* blah blah blah > > - *China:* blah blah blah > > - *India: blah blah blah >=20 > Here, to achieve semantic markup, you would use description lists >=20 > - US :: blah > - China :: blah > - India :: blah >=20 > The :: separator lets Org (and ultimately LaTeX) know that the part > before the separator is the term that is being described. And then use the enumitem package to customize the exact look of the description environment. > hth, > Tom Regards, --=20 Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University