Hi all, It seems that the LaTeX exporter doe not escape the ampersand character and braces when inside a table. Exporting this: === org-mode snippet ==== * Example This is an ampersand: &, and these are curly braces {}. | Below is an ampersand | and the same curly braces | | & | { and } | ========================= Results in: ==== Exported LaTeX ===== % Created 2008-10-21 Tue 16:31 \documentclass[11pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{hyperref} \title{* Example} \author{Peter Frings} \date{21 October 2008} \begin{document} \maketitle \setcounter{tocdepth}{3} \tableofcontents This is an ampersand: \&, and these are curly braces \{\}. \begin{tabular}{ll} Below is an ampersand & and the same curly braces \\ & & { and } \\ \end{tabular} \end{document} ========================= Unrelated: what trick/mode/command do you guys use to make those nice snippets like: ,---[xxx] | blah | blah `--- Cheers, Peter.
On Tue, Oct 21, 2008 at 8:07 PM, Peter wrote: [snip] > > Unrelated: what trick/mode/command do you guys use to make those nice > snippets like: > ,---[xxx] > | blah > | blah > `--- Boxquote. http://www.emacswiki.org/cgi-bin/wiki/BoxQuote http://www.davep.org/emacs/#boxquote.el -- Manish
On Tue, Oct 21, 2008 at 8:07 PM, Peter wrote: > Hi all, > > It seems that the LaTeX exporter doe not escape the ampersand > character and braces when inside a table. It does not escape percent ("%") character as well. -- Manish
Manish wrote: > On Tue, Oct 21, 2008 at 8:07 PM, Peter wrote: > [snip] > > > > Unrelated: what trick/mode/command do you guys use to make those nice > > snippets like: > > ,---[xxx] > > | blah > > | blah > > `--- > > Boxquote. > http://www.emacswiki.org/cgi-bin/wiki/BoxQuote > http://www.davep.org/emacs/#boxquote.el > > -- Manish How about a yasnippet box: ,------------------------. ! A box from a yasnippet | `------------------------´ The snippet file: >>> --->8-------------------------->8-------------------------->8--- #name : ! box | # -- ,${1:$(make-string (string-width text) ?\-)}--. ! ${1:SubTitle} | \`${1:$(make-string (string-width text) ?\-)}--´ $0 <<< ---8<--------------------------8<--------------------------8<--- Setup yasnippets! It's the best package I found since Org-mode. After loading the snippet above, you just type box and hit TAB. The box grows as you type. After TAB point is automatically at ${1:SubTitle} (where SubTitle is the default text, that is overwritten if you decide to type somthing. There could be $2, $3 etc. to TAB to more than one place in the snippet (S-TAB backwards). $0 is where point should go after the last TAB, that exits the snippet. Homepage: http://code.google.com/p/yasnippet/ Demo: http://www.youtube.com/watch?v=vOj7btx3ATg You can even easily define, which editing mode inherits from which, simply by changing the directory structure. WOWWWW. Fast, simple, productive!!!
Hope it's not too offtopic: Ever knew about the humorous sides of RMS: http://www.youtube.com/watch?v=S76pHIYx3ik Have fun! Sebastian
Fixed, thanks.
- Carsten
On Oct 21, 2008, at 4:37 PM, peter.frings@agfa.com wrote:
> Hi all,
>
> It seems that the LaTeX exporter doe not escape the ampersand
> character and braces when inside a table.
>
>
> Exporting this:
> === org-mode snippet ====
> * Example
> This is an ampersand: &, and these are curly braces {}.
>
> | Below is an ampersand | and the same curly braces |
> | & | { and } |
> =========================
>
> Results in:
> ==== Exported LaTeX =====
>
> % Created 2008-10-21 Tue 16:31
> \documentclass[11pt,a4paper]{article}
> \usepackage[utf8]{inputenc}
> \usepackage[T1]{fontenc}
> \usepackage{hyperref}
>
>
> \title{* Example}
> \author{Peter Frings}
> \date{21 October 2008}
>
> \begin{document}
>
> \maketitle
>
> \setcounter{tocdepth}{3}
> \tableofcontents
>
> This is an ampersand: \&, and these are curly braces \{\}.
>
> \begin{tabular}{ll}
> Below is an ampersand & and the same curly braces \\
> & & { and } \\
> \end{tabular}
>
>
> \end{document}
> =========================
>
>
> Unrelated: what trick/mode/command do you guys use to make those
> nice snippets like:
> ,---[xxx]
> | blah
> | blah
> `---
>
> Cheers,
> Peter.
>
>
> _______________________________________________
> 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
[-- Attachment #1.1: Type: text/plain, Size: 301 bytes --] On Oct 21, 2008, at 7:48 PM, Manish wrote: > On Tue, Oct 21, 2008 at 8:07 PM, Peter wrote: >> Hi all, >> >> It seems that the LaTeX exporter doe not escape the ampersand >> character and braces when inside a table. > > It does not escape percent ("%") character as well. Fixed, thanks. - Carsten [-- Attachment #1.2: Type: text/html, Size: 863 bytes --] [-- Attachment #2: Type: text/plain, Size: 204 bytes --] _______________________________________________ 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