emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@uva.nl>
To: Frank Chang <frank.nevermind@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: LaTeX Export: The output of headline is incorrect when tag contains '_' or '@'
Date: Thu, 3 Jul 2008 10:37:05 -0700	[thread overview]
Message-ID: <9A1455D0-7A4E-4706-BC7D-DF86D6E809AE@uva.nl> (raw)
In-Reply-To: <loom.20080703T075710-837@post.gmane.org>

Fixed, thanks.

- Carsten

On Jul 3, 2008, at 1:05 AM, Frank Chang wrote:

> Hello everyone,
>
> I'm new to Emacs (22.1) and org-mode (6.05b).
> Recently I start to use org-mode for note-taking, and it's really  
> useful.
>
> But the problem comes when I try to export my org file to LaTeX.
> For example, if the headline is:
>
>   * Headline                 :@tag_1:tag_2:tag3:
>
> which contains 3 tags: '@tag_1', 'tag_1',  and 'tag3',
> then the output will become
>
>   #+OPTIONS:   toc:nil ^:nil
>   \section{Headline                 :@tag\_{}1:tag\_{}2}
>
>   #+OPTIONS:   toc:nil ^:{}
>   #+OPTIONS:   toc:nil ^:t
>   \section{Headline                 :@$tag_1$:$tag_2$}
>
> which seems incorrect.
>
> I look at the source code 'org-export-latex.el', and find the  
> statement in
> function org-export-latex-keywords-maybe()
>
>   ;; convert tags
>   (when (re-search-forward "\\(:[a-zA-Z0-9]+\\)+:" nil t)
>         (if (or (not org-export-with-tags)
>             (plist-get remove-list :tags))
>         (replace-match "")
>       (replace-match (format "\\texttt{%s}" (match-string 0)) t t)))
>
> It seems that LaTeX exporter takes only letters and numbers as parts  
> of tags.
>
> But even I add '_' and '@' in regex it doesn't work, because '_'   
> has been
> exported by the function org-export-latex-special-chars() (maybe  
> '\_{}')
>
> I'm a Emacs newbie, and really don't know what to do next:)
>
> So is there any way to work around or fix it?
>
> Thanks.
>
>
> Best regards,
> Frank
>
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2008-07-03 17:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-03  8:05 LaTeX Export: The output of headline is incorrect when tag contains '_' or '@' Frank Chang
2008-07-03 17:37 ` Carsten Dominik [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-07-03  5:17 Frank Chang

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=9A1455D0-7A4E-4706-BC7D-DF86D6E809AE@uva.nl \
    --to=dominik@uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=frank.nevermind@gmail.com \
    /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).