From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: LaTeX Export: The output of headline is incorrect when tag contains '_' or '@' Date: Thu, 3 Jul 2008 10:37:05 -0700 Message-ID: <9A1455D0-7A4E-4706-BC7D-DF86D6E809AE@uva.nl> References: Mime-Version: 1.0 (Apple Message framework v924) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KESk7-0006MJ-Rj for emacs-orgmode@gnu.org; Thu, 03 Jul 2008 13:37:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KESk5-0006ID-Up for emacs-orgmode@gnu.org; Thu, 03 Jul 2008 13:37:15 -0400 Received: from [199.232.76.173] (port=52756 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KESk5-0006Hb-RZ for emacs-orgmode@gnu.org; Thu, 03 Jul 2008 13:37:13 -0400 Received: from korteweg.uva.nl ([146.50.98.70]:9347) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KESk3-0003Cc-DX for emacs-orgmode@gnu.org; Thu, 03 Jul 2008 13:37:12 -0400 In-Reply-To: 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: Frank Chang Cc: emacs-orgmode@gnu.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