emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* bug in LaTeX exporter (org-mode 6.07)
@ 2008-10-21 14:37 peter.frings
  2008-10-21 17:13 ` Manish
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: peter.frings @ 2008-10-21 14:37 UTC (permalink / raw)
  To: emacs-orgmode Org-Mode

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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: bug in LaTeX exporter (org-mode 6.07)
  2008-10-21 14:37 bug in LaTeX exporter (org-mode 6.07) peter.frings
@ 2008-10-21 17:13 ` Manish
  2008-10-21 18:55   ` Sebastian Rose
  2008-10-21 17:48 ` bug in LaTeX exporter (org-mode 6.07) Manish
  2008-12-16  7:40 ` Carsten Dominik
  2 siblings, 1 reply; 7+ messages in thread
From: Manish @ 2008-10-21 17:13 UTC (permalink / raw)
  To: peter.frings; +Cc: emacs-orgmode Org-Mode

  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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: bug in LaTeX exporter (org-mode 6.07)
  2008-10-21 14:37 bug in LaTeX exporter (org-mode 6.07) peter.frings
  2008-10-21 17:13 ` Manish
@ 2008-10-21 17:48 ` Manish
  2008-12-16  7:40   ` Carsten Dominik
  2008-12-16  7:40 ` Carsten Dominik
  2 siblings, 1 reply; 7+ messages in thread
From: Manish @ 2008-10-21 17:48 UTC (permalink / raw)
  To: peter.frings; +Cc: emacs-orgmode Org-Mode

  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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: bug in LaTeX exporter (org-mode 6.07)
  2008-10-21 17:13 ` Manish
@ 2008-10-21 18:55   ` Sebastian Rose
  2008-10-21 19:11     ` Offtopic: Did you smile today? Sebastian Rose
  0 siblings, 1 reply; 7+ messages in thread
From: Sebastian Rose @ 2008-10-21 18:55 UTC (permalink / raw)
  To: Manish; +Cc: emacs-orgmode Org-Mode

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!!!

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Offtopic: Did you smile today?
  2008-10-21 18:55   ` Sebastian Rose
@ 2008-10-21 19:11     ` Sebastian Rose
  0 siblings, 0 replies; 7+ messages in thread
From: Sebastian Rose @ 2008-10-21 19:11 UTC (permalink / raw)
  To: emacs-orgmode Org-Mode

Hope it's not too offtopic:

Ever knew about the humorous sides of RMS:

http://www.youtube.com/watch?v=S76pHIYx3ik

Have fun!

   Sebastian

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: bug in LaTeX exporter (org-mode 6.07)
  2008-10-21 14:37 bug in LaTeX exporter (org-mode 6.07) peter.frings
  2008-10-21 17:13 ` Manish
  2008-10-21 17:48 ` bug in LaTeX exporter (org-mode 6.07) Manish
@ 2008-12-16  7:40 ` Carsten Dominik
  2 siblings, 0 replies; 7+ messages in thread
From: Carsten Dominik @ 2008-12-16  7:40 UTC (permalink / raw)
  To: peter.frings; +Cc: emacs-orgmode Org-Mode

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: bug in LaTeX exporter (org-mode 6.07)
  2008-10-21 17:48 ` bug in LaTeX exporter (org-mode 6.07) Manish
@ 2008-12-16  7:40   ` Carsten Dominik
  0 siblings, 0 replies; 7+ messages in thread
From: Carsten Dominik @ 2008-12-16  7:40 UTC (permalink / raw)
  To: Manish; +Cc: emacs-orgmode Org-Mode


[-- 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-12-16  7:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-21 14:37 bug in LaTeX exporter (org-mode 6.07) peter.frings
2008-10-21 17:13 ` Manish
2008-10-21 18:55   ` Sebastian Rose
2008-10-21 19:11     ` Offtopic: Did you smile today? Sebastian Rose
2008-10-21 17:48 ` bug in LaTeX exporter (org-mode 6.07) Manish
2008-12-16  7:40   ` Carsten Dominik
2008-12-16  7:40 ` Carsten Dominik

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).