From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: Re: latex-export + columnview: misinterpretation of section prefixes as emphasis Date: Tue, 1 Jun 2010 10:52:49 -0400 Message-ID: <20100601145249.NGL0I.308430.root@hrndva-web05-z02> References: <8E842A8D-5C36-4E86-8AEE-E886361F3D74@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=52169 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJSpz-0006QJ-OE for emacs-orgmode@gnu.org; Tue, 01 Jun 2010 10:53:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OJSpn-0001cc-At for emacs-orgmode@gnu.org; Tue, 01 Jun 2010 10:53:02 -0400 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.123]:55981) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJSpn-0001cK-5o for emacs-orgmode@gnu.org; Tue, 01 Jun 2010 10:52:51 -0400 In-Reply-To: <8E842A8D-5C36-4E86-8AEE-E886361F3D74@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: Emacs-orgmode , Juan Pechiar ---- Carsten Dominik wrote: > > On Jun 1, 2010, at 12:51 PM, Tim Burt wrote: > > > > > > > Carsten Dominik writes: > > > >> Hi Juan, > >> On May 31, 2010, at 5:38 AM, Juan Pechiar wrote: > >> > >>> Hi! > >>> > >>> The test file below contains a columnview table showing section > >>> headers. > >>> > >>> Export to HTML works OK: the asterisks inside the table are > >>> transformed into indentation. > >>> > >>> Export to LaTeX: asterisk pairs are interpreted as emphasis, > >>> resulting > >>> in an incorrect renering of asterisks and bold asterisks. > >>> > >>> Following the code, I got lost at org-export-latex-fontify. > >>> > >>> I will keep searching for what is happening, but any guidance will > >>> be > >>> appreciated. > >> > >> I have fixed at least part of the problem, so the stars will no > >> longer > >> be > >> interpreted as emphasis. > >> > >> However, I am still getting strange results. FOrmatting a latex file > >> with this: > >> > >> \begin{center} > >> \begin{tabular}{l} > >> ITEM \\ > >> \hline > >> * There comes the table \\ > >> * first \\ > >> ** second \\ > >> *** third \\ > >> *** other third \\ > >> **** fourth \\ > >> ** other second \\ > >> \end{tabular} > >> \end{center} > >> > >> somehow swallows some of the stars, but seemingly random. > >> For example, the star before "There" remains, but the star > >> before "first" disappears. > >> > >> This must be some strange LaTeX thing - does anyone > >> understand what is going on here? > > > > This is indeed a LaTeX thing. The newline sequence (\\) has more than > > one signature > > - \\ :: simple newline > > - \\[additionalSpace] :: newline with additionalSpace > > - \\*[additionalSpace] :: same as above but will not break a page > > After the \\ sequence, LaTeX looks for a [ or a * in case the optional > > argument exists. In the example above the star is found as _part of a > > command sequence_ and is therefore not available as something to > > typeset. > > > > One solution in this situation is to put an empty group before the > > stars: > > \begin{center} > > \begin{tabular}{l} > > ITEM \\ > > \hline > > {}* There comes the table \\ > > {}* first \\ > > {}** second \\ > > {}*** third \\ > > {}*** other third \\ > > {}**** fourth \\ > > {}** other second \\ > > \end{tabular} > > \end{center} > > > > I will think on other possible options. I hope this helps. > > Well, it certainly helps! Thanks a lot. At least I understand > now what is going on. I guess one solution would be to add an empty > column into the Org table and export this as an empty column. > Whatever we do, it will be a hack. I have not found a hack-free solution yet. Here are some other things I've tried that would be less hackish, but have all failed: - Replace \\ with \tabularnewline :: Same behavior as with \\ - Replace \\ with \\{} :: Extra horizontal space before the * - Replace \\ with \tabularnewline{} :: Same behavior as \\{} I just now tried another solution that does work, but may still be considered a hack. In short, use the optional argument explicitly: - Replace \\ with \\[0pt] :: This has the expected behavior for the * and for the spacing Tim > > - Carsten > > > > Tim > > > > > >> > >> - Carsten > >> > >> > >>> > >>> Thanks! > >>> > >>> .j. > >>> > >>> > >>> Test file: > >>> ======================================== > >>> #+COLUMNS: %25ITEM > >>> > >>> * There comes the table > >>> > >>> #+BEGIN: columnview :vlines 1 :id global > >>> | | ITEM | > >>> |---+-------------------------| > >>> | | * There comes the table | > >>> | | * first | > >>> | | ** second | > >>> | | *** third | > >>> | | *** other third | > >>> | | **** fourth | > >>> | | ** other second | > >>> | / | <> | > >>> #+END: > >>> > >>> * first > >>> ** second > >>> *** third > >>> *** other third > >>> **** fourth > >>> ** other second > >>> ======================================== > >>> > >>> LaTeX output: > >>> ======================================== > >>> \begin{tabular}{l} > >>> ITEM \\ > >>> \hline > >>> * There comes the table \\ > >>> * first \\ > >>> ** second \\ > >>> *** third \\ > >>> \textbf{*} other third \\ > >>> \textbf{**} fourth \\ > >>> ** other second \\ > >>> \end{tabular} > >>> ======================================== > >>> > >>> And the PDF display reads: > >>> ======================================== > >>> ITEM > >>> * There comes the table > >>> first > >>> * second > >>> ** third > >>> * other third > >>> ** fourth > >>> * other second > >>> ======================================== > >>> > >>> > >>> > >>> _______________________________________________ > >>> Emacs-orgmode mailing list > >>> Please use `Reply All' to send replies to the list. > >>> Emacs-orgmode@gnu.org > >>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode > >> > >> - Carsten > >> > >> > >> > >> > >> _______________________________________________ > >> Emacs-orgmode mailing list > >> Please use `Reply All' to send replies to the list. > >> Emacs-orgmode@gnu.org > >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > - Carsten > > >