emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Tim Burt <tcburt@rochester.rr.com>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: Emacs-orgmode <emacs-orgmode@gnu.org>,
	Juan Pechiar <pechiar@computer.org>
Subject: Re: latex-export + columnview: misinterpretation of section prefixes as emphasis
Date: Tue, 01 Jun 2010 06:51:46 -0400	[thread overview]
Message-ID: <87aarfqb3x.fsf@rochester.rr.com> (raw)
In-Reply-To: <973F8F1E-E4BF-4209-94B6-BC45353C38BF@gmail.com> (Carsten Dominik's message of "Tue, 1 Jun 2010 09:32:14 +0200")



Carsten Dominik <carsten.dominik@gmail.com> 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.
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

  reply	other threads:[~2010-06-01 10:49 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-31  3:38 latex-export + columnview: misinterpretation of section prefixes as emphasis Juan Pechiar
     [not found] ` <D96E521D-17DE-4725-AD9A-363522C9B1E9@tsdye.com>
     [not found]   ` <20100531130409.GE27574@soloJazz.com>
2010-05-31 16:57     ` Thomas S. Dye
2010-06-01  7:32 ` Carsten Dominik
2010-06-01 10:51   ` Tim Burt [this message]
2010-06-01 13:34     ` Carsten Dominik
2010-06-01 14:52       ` tcburt
2016-06-22 18:45 ` Lele Gaifax
2016-06-22 19:56   ` Nicolas Goaziou
2016-06-22 20:16     ` Lele Gaifax
2016-06-22 20:46       ` Nicolas Goaziou
2016-06-23  6:36         ` Lele Gaifax
2016-06-24  9:38           ` Nicolas Goaziou
2016-06-24 12:08             ` Lele Gaifax
2016-06-24 12:26               ` [PATCH] org-colview.el: Fix typo in function name Lele Gaifax
2016-06-24 12:49                 ` Nicolas Goaziou
2016-06-24 13:06                   ` Lele Gaifax
2016-06-24 14:01                     ` Nicolas Goaziou
2016-06-24 12:47               ` latex-export + columnview: misinterpretation of section prefixes as emphasis Nicolas Goaziou
2016-06-24 13:03                 ` Lele Gaifax

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87aarfqb3x.fsf@rochester.rr.com \
    --to=tcburt@rochester.rr.com \
    --cc=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=pechiar@computer.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).