emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* quotation marks in LaTeX (again)
@ 2010-10-04 20:00 Don March
  2010-10-05  7:42 ` Carsten Dominik
  2010-10-05  8:42 ` Sven Bretfeld
  0 siblings, 2 replies; 5+ messages in thread
From: Don March @ 2010-10-04 20:00 UTC (permalink / raw)
  To: emacs-orgmode

There's been some talk about quotation marks when exporting to LaTeX,
but I've noticed some issues in addition (I think) to those mentioned
by others.

     "'a quote' inside a quote"
is exported to LaTeX as
     ``'a quote' inside a quote''
but should be
     ``\,`a quote' inside a quote''

Similarly,
     "a quote that ends with 'a quote'"
is exported as
     ``a quote that ends with `a quote'''
but should be
     ``a quote that ends with `a quote'\,''

Implementing the \enquote solution proposed by Sven Bretfeld would a
fix for this, but that would probably have to be optional.  So I was
working on a regexp fix for this, but then I realized that there's a
host of cases where the beginning quote isn't recognized as beginning
because there isn't whitespace in front of it, such as when a quote
starts a parenthetical ("like this").  Maybe the solution is to use
the list of "allowed chars in pre" from
org-emphasis-regexp-components?

Don

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

* Re: quotation marks in LaTeX (again)
  2010-10-04 20:00 quotation marks in LaTeX (again) Don March
@ 2010-10-05  7:42 ` Carsten Dominik
  2010-10-05 14:23   ` Don March
  2010-10-05  8:42 ` Sven Bretfeld
  1 sibling, 1 reply; 5+ messages in thread
From: Carsten Dominik @ 2010-10-05  7:42 UTC (permalink / raw)
  To: Don March; +Cc: emacs-orgmode


On Oct 4, 2010, at 10:00 PM, Don March wrote:

> There's been some talk about quotation marks when exporting to LaTeX,
> but I've noticed some issues in addition (I think) to those mentioned
> by others.
>
>     "'a quote' inside a quote"
> is exported to LaTeX as
>     ``'a quote' inside a quote''
> but should be
>     ``\,`a quote' inside a quote''
>
> Similarly,
>     "a quote that ends with 'a quote'"
> is exported as
>     ``a quote that ends with `a quote'''
> but should be
>     ``a quote that ends with `a quote'\,''
>
> Implementing the \enquote solution proposed by Sven Bretfeld

Could you please point me to that earlier discussion?  I cannot
find it right now.

THanks!

- Carsten

> would a
> fix for this, but that would probably have to be optional.  So I was
> working on a regexp fix for this, but then I realized that there's a
> host of cases where the beginning quote isn't recognized as beginning
> because there isn't whitespace in front of it, such as when a quote
> starts a parenthetical ("like this").  Maybe the solution is to use
> the list of "allowed chars in pre" from
> org-emphasis-regexp-components?
>
> Don
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please 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] 5+ messages in thread

* Re: quotation marks in LaTeX (again)
  2010-10-04 20:00 quotation marks in LaTeX (again) Don March
  2010-10-05  7:42 ` Carsten Dominik
@ 2010-10-05  8:42 ` Sven Bretfeld
  2010-10-05 14:36   ` Don March
  1 sibling, 1 reply; 5+ messages in thread
From: Sven Bretfeld @ 2010-10-05  8:42 UTC (permalink / raw)
  To: Don March; +Cc: emacs-orgmode

Hi Don

Don March <don.march@gmail.com> writes:

> Implementing the \enquote solution proposed by Sven Bretfeld would a
> fix for this, but that would probably have to be optional.  So I was
> working on a regexp fix for this, but then I realized that there's a
> host of cases where the beginning quote isn't recognized as beginning
> because there isn't whitespace in front of it, such as when a quote
> starts a parenthetical ("like this").  Maybe the solution is to use
> the list of "allowed chars in pre" from
> org-emphasis-regexp-components?

The different styles of quotation marks needed for different languages
might also be a problem for a regexp solution. I'm using the \enquote
method since quite a while and write English and German text in that way
without further user interference. \enquote just picks the correct
version in dependency of the babel environment.

Greetings,

Sven

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

* Re: quotation marks in LaTeX (again)
  2010-10-05  7:42 ` Carsten Dominik
@ 2010-10-05 14:23   ` Don March
  0 siblings, 0 replies; 5+ messages in thread
From: Don March @ 2010-10-05 14:23 UTC (permalink / raw)
  To: emacs-orgmode

Carsten Dominik <carsten.dominik@gmail.com> writes:

> On Oct 4, 2010, at 10:00 PM, Don March wrote:
>
>> Implementing the \enquote solution proposed by Sven Bretfeld
>
> Could you please point me to that earlier discussion?  I cannot
> find it right now.
>

Sure--"[feature request] Quotation marks in LaTeX export", 2010-01-22,
http://article.gmane.org/gmane.emacs.orgmode/21588

>
>> So I was working on a regexp fix for this, but then I realized that
>> there's a host of cases where the beginning quote isn't recognized as
>> beginning because there isn't whitespace in front of it, such as when
>> a quote starts a parenthetical ("like this").  Maybe the solution is
>> to use the list of "allowed chars in pre" from
>> org-emphasis-regexp-components?
>>

I'd be happy to work on this, by the way, but don't want to start on a
solution that other people don't want.

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

* Re: quotation marks in LaTeX (again)
  2010-10-05  8:42 ` Sven Bretfeld
@ 2010-10-05 14:36   ` Don March
  0 siblings, 0 replies; 5+ messages in thread
From: Don March @ 2010-10-05 14:36 UTC (permalink / raw)
  To: emacs-orgmode

"Sven Bretfeld" <sven.bretfeld@gmx.ch> writes:

> The different styles of quotation marks needed for different languages
> might also be a problem for a regexp solution. I'm using the \enquote
> method since quite a while and write English and German text in that way
> without further user interference. \enquote just picks the correct
> version in dependency of the babel environment.

Definitely--I agree that the csquotes solution is probably best, but
since Carsten said that would probably be an option there needs to be a
vanilla LaTeX solution too.

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

end of thread, other threads:[~2010-10-05 14:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-04 20:00 quotation marks in LaTeX (again) Don March
2010-10-05  7:42 ` Carsten Dominik
2010-10-05 14:23   ` Don March
2010-10-05  8:42 ` Sven Bretfeld
2010-10-05 14:36   ` Don March

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