emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: nicholas.dokos@hp.com
Cc: emacs-orgmode@gnu.org, waterloo <waterloo2005@gmail.com>
Subject: Small bug in the LaTeX exporter? [was:  Re: I_can_not_understand_ +strike-through+]
Date: Sun, 16 Aug 2009 22:31:34 -0400	[thread overview]
Message-ID: <13768.1250476294@gamaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Nick Dokos <nicholas.dokos@hp.com> of "Sun, 16 Aug 2009 21:48:18 EDT." <13103.1250473698@gamaville.dokosmarshall.org>

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

  parent reply	other threads:[~2009-08-17  2:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-17  1:14 I can not understand ‘+strike-through+’ waterloo
2009-08-17  1:48 ` Nick Dokos
2009-08-17  2:21   ` [Orgmode] " waterloo
2009-08-17  2:31   ` Nick Dokos [this message]
2009-08-17  2:55     ` Small bug in the LaTeX exporter? [was: Re: I_can_not_understand_ +strike-through+] Nick Dokos
2009-08-18  6:29       ` Carsten Dominik

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=13768.1250476294@gamaville.dokosmarshall.org \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=waterloo2005@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).