Small bug in the LaTeX exporter? [was: Re: [Orgmode] I_can_not_understand_ +strike-through+]

2009-08-16 Thread Nick Dokos
Trying to answer waterloo's question about strike-through, I tried
LaTeX-exporting the following:

--8<---cut here---start->8---

* Emphasis and monospace

  - *bold*

  - /italic/

  - _underlined_

  - =code=

  - ~verbatim~

  - +strike-through+

  
--8<---cut here---end--->8---

but the resulting LaTeX file has the wrong markup for strike-through:

,
| ...
| \begin{itemize}
| \item \textbf{bold}
| \item \emph{italic}
| \item \underline{underlined}
| \item \texttt{code}
| \item \texttt{verbatim}
| \item \texttt{strike-through}
| \end{itemize}
| ...  
`

The correct markup, according to the TeX FAQ:

http://www.tex.ac.uk/cgi-bin/texfaq2html?label=overstrike,

is obtained using the ulem package:


\usepackage{ulem}

...
\sout{strike-through}
...


The change for \sout is trivial (just change
org-export-latex-emphasis-alist), but adding the ulem package
conditionally is perhaps more difficult. Maybe it should be
added unconditionally? AFAIK, there is no mechanism for including
\usepackages conditionally, is there?

Thanks,
Nick





___
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


Re: Small bug in the LaTeX exporter? [was: Re: [Orgmode] I_can_not_understand_ +strike-through+]

2009-08-16 Thread Nick Dokos
Nick Dokos  wrote:

> ...
> The correct markup, according to the TeX FAQ:
> 
> http://www.tex.ac.uk/cgi-bin/texfaq2html?label=overstrike,
> 
> is obtained using the ulem package:
> 
> 
> \usepackage{ulem}
> 
> ...
> \sout{strike-through}
> ...
> 
> 

...or as the FAQ clearly states but I omitted to mention:

\usepackage{soul}

...
\st{strike-through}
...

I don't know which of the two packages is "better", but as far
as the LaTeX exporter is concerned, they both present the same
problem.

Nick


___
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


Re: Small bug in the LaTeX exporter? [was: Re: [Orgmode] I_can_not_understand_ +strike-through+]

2009-08-17 Thread Carsten Dominik

Hi Nick and waterloo,

I have now added the ulem package to support strike-through emphasis.
Thanks for looking this up in the TeX docs.

- Carsten

On Aug 17, 2009, at 3:55 AM, Nick Dokos wrote:


Nick Dokos  wrote:


...
The correct markup, according to the TeX FAQ:

http://www.tex.ac.uk/cgi-bin/texfaq2html?label=overstrike,

is obtained using the ulem package:


\usepackage{ulem}

...
\sout{strike-through}
...




...or as the FAQ clearly states but I omitted to mention:

\usepackage{soul}

...
\st{strike-through}
...

I don't know which of the two packages is "better", but as far
as the LaTeX exporter is concerned, they both present the same
problem.

Nick


___
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




___
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